diff --git a/amplify-migration-apps/README.md b/amplify-migration-apps/README.md index 06bfacf93a5..39d82df1b3a 100644 --- a/amplify-migration-apps/README.md +++ b/amplify-migration-apps/README.md @@ -221,25 +221,21 @@ Some refactors target a `-holding` stack (visible in the target stack name). Res moved from the Gen2 stack to the holding stack (to make room), then from the Gen1 stack to the Gen2 stack. The holding stack persists as the final destination for the Gen2 stateful resources. -## Sanitization +## Normalization and Sanitization -Sensitive values must be replaced with safe placeholder values before they are committed. -Each app's `package.json` includes a `sanitize` script that invokes the shared `sanitize.ts` -at the root of this directory. This runs automatically on commit via the Husky pre-commit hook, -so you don't need to run it manually. If you do want to run it yourself: +After snapshots are captured, they must be normalized and sanitized before committing. +See the [E2E system README](../packages/amplify-gen2-migration-e2e-system/README.md#snapshot-post-processing) +for details on what each step does. + +To run them manually on a single app: ```console cd amplify-migration-apps/ -npm run sanitize +npx tsx ../normalize.ts +npx tsx ../sanitize.ts ``` -The script extracts values from `amplify-meta.json` and replaces them across all snapshot files: - -| Value | Placeholder | -| ---------------- | ---------------------------------- | -| AWS Account ID | `123456789012` | -| Amplify App ID | `` | -| AppSync API Key | `da2-fakeapikey00000000000000` | +Order matters — normalize first, then sanitize. ## Typechecking diff --git a/amplify-migration-apps/backend-only/_snapshot.post.generate/amplify/backend.ts b/amplify-migration-apps/backend-only/_snapshot.post.generate/amplify/backend.ts index d56183de4e3..df3ddd2979d 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.generate/amplify/backend.ts +++ b/amplify-migration-apps/backend-only/_snapshot.post.generate/amplify/backend.ts @@ -44,7 +44,7 @@ cfnGraphqlApi.additionalAuthenticationProviders = [ ]; const s3Bucket = backend.storage.resources.cfnResources.cfnBucket; // Use this bucket name post refactor -// s3Bucket.bucketName = 'backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-main'; +// s3Bucket.bucketName = 'backendonlycb1a13ab81664ecaa7d015068ab2d016x-x'; s3Bucket.bucketEncryption = { serverSideEncryptionConfiguration: [ { diff --git a/amplify-migration-apps/backend-only/_snapshot.post.generate/amplify/data/resource.ts b/amplify-migration-apps/backend-only/_snapshot.post.generate/amplify/data/resource.ts index 3472b1a80c4..bf975088aaf 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.generate/amplify/data/resource.ts +++ b/amplify-migration-apps/backend-only/_snapshot.post.generate/amplify/data/resource.ts @@ -49,10 +49,10 @@ export const data = defineData({ migratedAmplifyGen1DynamoDbTableMappings: [ { //The "branchname" variable needs to be the same as your deployment branch if you want to reuse your Gen1 app tables - branchName: 'main', + branchName: 'x', modelNameToTableNameMapping: { - Project: 'Project-sgumi4ggubb4jdo6i54km7skka-main', - Todo: 'Todo-sgumi4ggubb4jdo6i54km7skka-main', + Project: 'Project-q2d7oghxlbgxxj3fr2t6f2bpm4-x', + Todo: 'Todo-q2d7oghxlbgxxj3fr2t6f2bpm4-x', }, }, ], diff --git a/amplify-migration-apps/backend-only/_snapshot.post.generate/amplify/storage/resource.ts b/amplify-migration-apps/backend-only/_snapshot.post.generate/amplify/storage/resource.ts index 17eada6fbfe..b914fbb6e99 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.generate/amplify/storage/resource.ts +++ b/amplify-migration-apps/backend-only/_snapshot.post.generate/amplify/storage/resource.ts @@ -3,7 +3,7 @@ import { defineStorage } from '@aws-amplify/backend'; const branchName = process.env.AWS_BRANCH ?? 'sandbox'; export const storage = defineStorage({ - name: `backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-${branchName}`, + name: `backendonlycb1a13ab81664ecaa7d015068ab2d016x-${branchName}`, access: (allow) => ({ 'public/*': [ allow.guest.to(['read']), diff --git a/amplify-migration-apps/backend-only/_snapshot.post.generate/package.json b/amplify-migration-apps/backend-only/_snapshot.post.generate/package.json index f73d414bfec..055835d2c70 100644 --- a/amplify-migration-apps/backend-only/_snapshot.post.generate/package.json +++ b/amplify-migration-apps/backend-only/_snapshot.post.generate/package.json @@ -7,16 +7,27 @@ "hoistingLimits": "workspaces" }, "scripts": { + "configure": "./backend/configure.sh", "sanitize": "tsx ../sanitize.ts", - "typecheck": "cd _snapshot.post.generate/amplify && npx tsc --noEmit" - }, - "dependencies": { - "cli-table3": "0.6.5" + "normalize": "tsx ../normalize.ts", + "typecheck": "cd _snapshot.post.generate/amplify && npx tsc --noEmit", + "test:gen1": "true", + "test:gen2": "true", + "test:shared-data": "true", + "test:e2e": "cd ../../packages/amplify-gen2-migration-e2e-system && npx tsx src/cli.ts --app backend-only --profile ${AWS_PROFILE:-default}", + "deploy": "cd ../../packages/amplify-gen2-migration-e2e-system && npx tsx src/cli.ts --app backend-only --step deploy --profile ${AWS_PROFILE:-default}", + "pre-push": "true", + "post-generate": "npx tsx migration/post-generate.ts", + "post-refactor": "npx tsx migration/post-refactor.ts", + "post-sandbox": "true", + "pre-sandbox": "true", + "post-push": "true" }, "devDependencies": { "@aws-amplify/backend": "^1.18.0", "@aws-amplify/backend-cli": "^1.8.0", "@aws-amplify/backend-data": "^1.6.2", + "@aws-sdk/client-cognito-identity-provider": "^3.936.0", "@types/aws-lambda": "^8.10.92", "@types/node": "*", "aws-cdk": "^2", @@ -25,5 +36,8 @@ "constructs": "^10.0.0", "esbuild": "^0.27.0", "tsx": "^4.20.6" + }, + "dependencies": { + "cli-table3": "0.6.5" } } diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-e2e-sandbox-x-auth179371D7-x.__to__.amplify-backendonly-e2e-sandbox-x-auth179371D7-x-holding.mappings.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-e2e-sandbox-x-auth179371D7-x.__to__.amplify-backendonly-e2e-sandbox-x-auth179371D7-x-holding.mappings.json new file mode 100644 index 00000000000..a26dac917cd --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-e2e-sandbox-x-auth179371D7-x.__to__.amplify-backendonly-e2e-sandbox-x-auth179371D7-x-holding.mappings.json @@ -0,0 +1,52 @@ +[ + { + "Source": { + "StackName": "amplify-backendonly-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + }, + "Destination": { + "StackName": "amplify-backendonly-e2e-sandbox-x-auth179371D7-x-holding", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + } + }, + { + "Source": { + "StackName": "amplify-backendonly-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + }, + "Destination": { + "StackName": "amplify-backendonly-e2e-sandbox-x-auth179371D7-x-holding", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + } + }, + { + "Source": { + "StackName": "amplify-backendonly-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + }, + "Destination": { + "StackName": "amplify-backendonly-e2e-sandbox-x-auth179371D7-x-holding", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + } + }, + { + "Source": { + "StackName": "amplify-backendonly-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + }, + "Destination": { + "StackName": "amplify-backendonly-e2e-sandbox-x-auth179371D7-x-holding", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + } + }, + { + "Source": { + "StackName": "amplify-backendonly-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + }, + "Destination": { + "StackName": "amplify-backendonly-e2e-sandbox-x-auth179371D7-x-holding", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + } + } +] diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-e2e-sandbox-x-auth179371D7-x.__to__.amplify-backendonly-e2e-sandbox-x-auth179371D7-x-holding.source.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-e2e-sandbox-x-auth179371D7-x.__to__.amplify-backendonly-e2e-sandbox-x-auth179371D7-x-holding.source.template.json new file mode 100644 index 00000000000..3faab4fa3c5 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-e2e-sandbox-x-auth179371D7-x.__to__.amplify-backendonly-e2e-sandbox-x-auth179371D7-x-holding.source.template.json @@ -0,0 +1,386 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", + "Resources": { + "amplifyAuthauthenticatedUserRoleD8DA3689": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:253c6cb3-ea32-4bc6-9532-d622a04831ed" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/auth/amplifyAuth/authenticatedUserRole/Resource" + } + }, + "amplifyAuthunauthenticatedUserRole2B524D9E": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:253c6cb3-ea32-4bc6-9532-d622a04831ed" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "unauthenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/auth/amplifyAuth/unauthenticatedUserRole/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/02LwQrCMBBEv6X3dK0BvUtPXkQqniUmq26bbqBZLRLy71Kk2tPMvJnRoDcVVIUZY2ldV3q6QjpgFHQnMbZTZoyXZMOdSQKkc8ThGIJX9Y1/fja1J2RZVn+yd8hC8p7Py9wEjzsRYx89smRFpoc0wWk4ac5ZcXAIbVy9tIb1FqqijUTl8GShHqH56gf10GUazgAAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/auth/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifybackendonlye2esandbox363d3cd24dauthamplifyAuthUserPoolC6936963Ref": { + "Value": "us-east-1_QCCMEQ5di" + }, + "amplifybackendonlye2esandbox363d3cd24dauthamplifyAuthUserPoolAppClientD789C43ARef": { + "Value": "2351hpg07effv1sr4a6fv32pni" + }, + "amplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref": { + "Value": "us-east-1:253c6cb3-ea32-4bc6-9532-d622a04831ed" + }, + "amplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef": { + "Value": "amplify-backendonl2604142-amplifyAuthauthenticatedU-e2MZgmxI4x06" + }, + "amplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref": { + "Value": "amplify-backendonl2604142-amplifyAuthunauthenticate-T0OFU3aW6x78" + } + } +} diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-e2e-sandbox-x-auth179371D7-x.__to__.amplify-backendonly-e2e-sandbox-x-auth179371D7-x-holding.target.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-e2e-sandbox-x-auth179371D7-x.__to__.amplify-backendonly-e2e-sandbox-x-auth179371D7-x-holding.target.template.json new file mode 100644 index 00000000000..8ba5e60c837 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-e2e-sandbox-x-auth179371D7-x.__to__.amplify-backendonly-e2e-sandbox-x-auth179371D7-x-holding.target.template.json @@ -0,0 +1,211 @@ +{ + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "Temporary holding stack for Gen2 migration", + "Resources": { + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AccountRecoverySetting": { + "RecoveryMechanisms": [ + { + "Name": "verified_email", + "Priority": 1 + } + ] + }, + "AdminCreateUserConfig": { + "AllowAdminCreateUserOnly": false + }, + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": 8, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false, + "TemporaryPasswordValidityDays": 7 + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "SmsVerificationMessage": "The verification code to your new account is {####}", + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolTags": { + "amplify:deployment-type": "sandbox", + "amplify:friendly-name": "amplifyAuth", + "created-by": "amplify" + }, + "UsernameAttributes": [ + "email" + ], + "UsernameConfiguration": { + "CaseSensitive": false + }, + "VerificationMessageTemplate": { + "DefaultEmailOption": "CONFIRM_WITH_CODE", + "EmailMessage": "Your verification code is {####}", + "EmailSubject": "Your verification code", + "SmsMessage": "The verification code to your new account is {####}" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/auth/amplifyAuth/UserPool/Resource" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 43200, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": "us-east-1_QCCMEQ5di" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlows": [ + "code" + ], + "AllowedOAuthFlowsUserPoolClient": true, + "AllowedOAuthScopes": [ + "profile", + "phone", + "email", + "openid", + "aws.cognito.signin.user.admin" + ], + "CallbackURLs": [ + "https://example.com" + ], + "ExplicitAuthFlows": [ + "ALLOW_CUSTOM_AUTH", + "ALLOW_USER_SRP_AUTH", + "ALLOW_REFRESH_TOKEN_AUTH" + ], + "PreventUserExistenceErrors": "ENABLED", + "SupportedIdentityProviders": [ + "COGNITO" + ], + "UserPoolId": "us-east-1_QCCMEQ5di" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/auth/amplifyAuth/UserPoolAppClient/Resource" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": true, + "CognitoIdentityProviders": [ + { + "ClientId": "2351hpg07effv1sr4a6fv32pni", + "ProviderName": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_QCCMEQ5di" + ] + ] + } + } + ], + "IdentityPoolTags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "SupportedLoginProviders": {} + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/auth/amplifyAuth/IdentityPool" + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:253c6cb3-ea32-4bc6-9532-d622a04831ed", + "RoleMappings": { + "UserPoolWebClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_QCCMEQ5di", + ":", + "2351hpg07effv1sr4a6fv32pni" + ] + ] + }, + "Type": "Token" + } + }, + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-backendonl2604142-amplifyAuthunauthenticate-T0OFU3aW6x78", + "authenticated": "arn:aws:iam::123456789012:role/amplify-backendonl2604142-amplifyAuthauthenticatedU-e2MZgmxI4x06" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/auth/amplifyAuth/IdentityPoolRoleAttachment" + } + } + }, + "Outputs": {} +} diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x.__to__.amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x-holding.mappings.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x.__to__.amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x-holding.mappings.json new file mode 100644 index 00000000000..2de0843b4a8 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x.__to__.amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x-holding.mappings.json @@ -0,0 +1,12 @@ +[ + { + "Source": { + "StackName": "amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x", + "LogicalResourceId": "backendonlycb1a13ab81664ecaa7d015068ab2d016xgen2xBucketD26234B2" + }, + "Destination": { + "StackName": "amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x-holding", + "LogicalResourceId": "backendonlycb1a13ab81664ecaa7d015068ab2d016xgen2xBucketD26234B2" + } + } +] diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x.__to__.amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x-holding.source.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x.__to__.amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x-holding.source.template.json new file mode 100644 index 00000000000..a157db02be2 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x.__to__.amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x-holding.source.template.json @@ -0,0 +1,631 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", + "Resources": { + "backendonlycb1a13ab81664ecaa7d015068ab2d016xgen2xBucketPolicyA39B9A14": { + "Type": "AWS::S3::BucketPolicy", + "Properties": { + "Bucket": "amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:*", + "Condition": { + "Bool": { + "aws:SecureTransport": "false" + } + }, + "Effect": "Deny", + "Principal": { + "AWS": "*" + }, + "Resource": [ + "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + "/*" + ] + ] + } + ] + }, + { + "Action": [ + "s3:PutBucketPolicy", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*" + ], + "Effect": "Allow", + "Principal": { + "AWS": "arn:aws:iam::123456789012:role/amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + }, + "Resource": [ + "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/storage/backendonlycb1a13ab81664ecaa7d015068ab2d016x-gen2-x/Bucket/Policy/Resource" + } + }, + "backendonlycb1a13ab81664ecaa7d015068ab2d016xgen2xBucketAutoDeleteObjectsCustomResource562A7B1D": { + "Type": "Custom::S3AutoDeleteObjects", + "Properties": { + "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "BucketName": "amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/storage/backendonlycb1a13ab81664ecaa7d015068ab2d016x-gen2-x/Bucket/AutoDeleteObjectsCustomResource/Default" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ] + }, + "ManagedPolicyArns": [ + { + "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" + }, + "Timeout": 900, + "MemorySize": 128, + "Handler": "index.handler", + "Role": "arn:aws:iam::123456789012:role/amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Runtime": "nodejs22.x", + "Description": { + "Fn::Join": [ + "", + [ + "Lambda function for auto-deleting objects in ", + "amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + " S3 bucket." + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", + "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", + "aws:asset:property": "Code" + } + }, + "BACKENDONLYCB1A13AB81664ECAA7D015068AB2D0163F871GEN2SWEDQGWLIFBUCKETNAMEParameter8E93043F": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/backendonly/e2e-sandbox-x/BACKENDONLYCB_1_A_13_AB_81664_ECAA_7_D_015068_AB_2_D_0163_F_871_GEN_2_SWEDQGWLIF_BUCKET_NAME", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": "amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/storage/BACKENDONLYCB_1_A_13_AB_81664_ECAA_7_D_015068_AB_2_D_0163_F_871_GEN_2_SWEDQGWLIF_BUCKET_NAMEParameter/Resource" + } + }, + "amplifybackendonlye2esandbox363d3cd24dstorageAccess367149079": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + "/public/*" + ] + ] + } + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/*", + "public/" + ] + } + }, + "Effect": "Allow", + "Resource": "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "amplifybackendonlye2esandbox363d3cd24dstorageAccess367149079", + "Roles": [ + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/storage/amplify-backendonly-e2e-sandbox-x--storageAccess3/Resource" + } + }, + "amplifybackendonlye2esandbox363d3cd24dstorageAccess4F48428D0": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:PutObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/*", + "public/", + "protected/*", + "protected/", + "private/*", + "private/" + ] + } + }, + "Effect": "Allow", + "Resource": "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r" + }, + { + "Action": "s3:DeleteObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + "/private/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "amplifybackendonlye2esandbox363d3cd24dstorageAccess4F48428D0", + "Roles": [ + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/storage/amplify-backendonly-e2e-sandbox-x--storageAccess4/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/5WNy07DMBBFv6VZO0NIBQt2fawhapYIIdcZokliW/JMWpDlf0epJQJLVnNH5z5qqB8qqDb6yqXpxnKiM8RnZMGuFW1Gpa/8HnkLcT+bEUUdPlxWr7Gw9EmueCp+hxc/b+GGGLJ1N4s/4oSCL+cBjXCR3lRGjZ/IfK2t+f9Hdw60ogUtult1UswWYiuBXN/ooC0KhmXj50mKtIW4rmeVkjrMLN6ekP0cDC5o1X9QE/yFOgx7zah2zCit6J5cn5TzHcLAd5e6hvtHqDYDE5VhdkIW4ZTvN8L1/x56AQAA" + }, + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/storage/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref": { + "Type": "String" + }, + "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef": { + "Type": "String" + } + }, + "Outputs": { + "amplifybackendonlye2esandbox363d3cd24dstoragebackendonlycb1a13ab81664ecaa7d015068ab2d016xgen2xBucket6602343ARef": { + "Value": "amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r" + } + } +} diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x.__to__.amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x-holding.target.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x.__to__.amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x-holding.target.template.json new file mode 100644 index 00000000000..55a050df61a --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x.__to__.amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x-holding.target.template.json @@ -0,0 +1,71 @@ +{ + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "Temporary holding stack for Gen2 migration", + "Resources": { + "backendonlycb1a13ab81664ecaa7d015068ab2d016xgen2xBucketD26234B2": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "BucketKeyEnabled": false, + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "MaxAge": 3000 + } + ] + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "backendonlycb1a13ab81664ecaa7d015068ab2d016x-gen2-x" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/storage/backendonlycb1a13ab81664ecaa7d015068ab2d016x-gen2-x/Bucket/Resource" + } + } + }, + "Outputs": {} +} diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.mappings.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.mappings.json deleted file mode 100644 index 759c58ea547..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.mappings.json +++ /dev/null @@ -1,52 +0,0 @@ -[ - { - "Source": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" - }, - "Destination": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" - } - }, - { - "Source": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" - }, - "Destination": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" - } - }, - { - "Source": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" - }, - "Destination": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" - } - }, - { - "Source": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" - }, - "Destination": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" - } - }, - { - "Source": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" - }, - "Destination": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" - } - } -] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.source.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.source.template.json deleted file mode 100644 index d4c0a8b779b..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.source.template.json +++ /dev/null @@ -1,398 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.11.1\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", - "Resources": { - "amplifyAuthauthenticatedUserRoleD8DA3689": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:33a8fea2-6293-4bec-8726-31e6b5817de5" - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "authenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/authenticatedUserRole/Resource" - } - }, - "amplifyAuthunauthenticatedUserRole2B524D9E": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:33a8fea2-6293-4bec-8726-31e6b5817de5" - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "unauthenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/unauthenticatedUserRole/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/02LwQrCMBBEv8V7urbBg1fpyYtIxbPEZNVt0w00q0VC/l2KVHuamTczGvSmgnJlxlhY1xWerpAOGAXdSYztlBnjJdlwZ5IA6RxxOIbgVX3jn59N7QlZltWf7B2ykLzn8zI3weNOxNhHjyxZkekhTXAaTppzVhwcQhvXL62h2kK5aiNRMTxZqEdovvoBH9Args4AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Outputs": { - "amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthUserPoolACA7606BRef": { - "Value": "us-east-1_W9u2NBSRe" - }, - "amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthUserPoolAppClientF2CDC3A8Ref": { - "Value": "55m5602upkjiv7819hcf2ht5v3" - }, - "amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef": { - "Value": "us-east-1:33a8fea2-6293-4bec-8726-31e6b5817de5" - }, - "amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef": { - "Value": "amplify-backendonly-ge-amplifyAuthauthenticatedU-NrnOsacJVeCr" - }, - "amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref": { - "Value": "amplify-backendonly-ge-amplifyAuthunauthenticate-mFzNB8V2DE4J" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.target.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.target.template.json deleted file mode 100644 index 281c9db4335..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT-holding.target.template.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "Temporary holding stack for Gen2 migration", - "Resources": { - "amplifyAuthUserPool4BA7F805": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AccountRecoverySetting": { - "RecoveryMechanisms": [ - { - "Name": "verified_email", - "Priority": 1 - } - ] - }, - "AdminCreateUserConfig": { - "AllowAdminCreateUserOnly": false - }, - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": "Your verification code is {####}", - "EmailVerificationSubject": "Your verification code", - "MfaConfiguration": "OFF", - "Policies": { - "PasswordPolicy": { - "MinimumLength": 8, - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false, - "TemporaryPasswordValidityDays": 7 - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "SmsVerificationMessage": "The verification code to your new account is {####}", - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolTags": { - "amplify:app-id": "backendonly", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "amplify:friendly-name": "amplifyAuth", - "created-by": "amplify" - }, - "UsernameAttributes": [ - "email" - ], - "UsernameConfiguration": { - "CaseSensitive": false - }, - "VerificationMessageTemplate": { - "DefaultEmailOption": "CONFIRM_WITH_CODE", - "EmailMessage": "Your verification code is {####}", - "EmailSubject": "Your verification code", - "SmsMessage": "The verification code to your new account is {####}" - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/UserPool/Resource" - } - }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 43200, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": "us-east-1_W9u2NBSRe" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, - "amplifyAuthUserPoolAppClient2626C6F8": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlows": [ - "code" - ], - "AllowedOAuthFlowsUserPoolClient": true, - "AllowedOAuthScopes": [ - "profile", - "phone", - "email", - "openid", - "aws.cognito.signin.user.admin" - ], - "CallbackURLs": [ - "https://example.com" - ], - "ExplicitAuthFlows": [ - "ALLOW_CUSTOM_AUTH", - "ALLOW_USER_SRP_AUTH", - "ALLOW_REFRESH_TOKEN_AUTH" - ], - "PreventUserExistenceErrors": "ENABLED", - "SupportedIdentityProviders": [ - "COGNITO" - ], - "UserPoolId": "us-east-1_W9u2NBSRe" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/UserPoolAppClient/Resource" - } - }, - "amplifyAuthIdentityPool3FDE84CC": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": true, - "CognitoIdentityProviders": [ - { - "ClientId": "55m5602upkjiv7819hcf2ht5v3", - "ProviderName": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - "us-east-1_W9u2NBSRe" - ] - ] - } - } - ], - "IdentityPoolTags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "SupportedLoginProviders": {} - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/IdentityPool" - } - }, - "amplifyAuthIdentityPoolRoleAttachment045F17C8": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": "us-east-1:33a8fea2-6293-4bec-8726-31e6b5817de5", - "RoleMappings": { - "UserPoolWebClientRoleMapping": { - "AmbiguousRoleResolution": "AuthenticatedRole", - "IdentityProvider": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - "us-east-1_W9u2NBSRe", - ":", - "55m5602upkjiv7819hcf2ht5v3" - ] - ] - }, - "Type": "Token" - } - }, - "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-backendonly-ge-amplifyAuthunauthenticate-mFzNB8V2DE4J", - "authenticated": "arn:aws:iam::123456789012:role/amplify-backendonly-ge-amplifyAuthauthenticatedU-NrnOsacJVeCr" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/IdentityPoolRoleAttachment" - } - } - }, - "Outputs": {} -} \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.mappings.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.mappings.json deleted file mode 100644 index 606b64a3606..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.mappings.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "Source": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I", - "LogicalResourceId": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738" - }, - "Destination": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding", - "LogicalResourceId": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738" - } - } -] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.source.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.source.template.json deleted file mode 100644 index dfdd342e50f..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.source.template.json +++ /dev/null @@ -1,621 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", - "Resources": { - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucketPolicy14D90AB6": { - "Type": "AWS::S3::BucketPolicy", - "Properties": { - "Bucket": "amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:*", - "Condition": { - "Bool": { - "aws:SecureTransport": "false" - } - }, - "Effect": "Deny", - "Principal": { - "AWS": "*" - }, - "Resource": [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - "/*" - ] - ] - } - ] - }, - { - "Action": [ - "s3:PutBucketPolicy", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*" - ], - "Effect": "Allow", - "Principal": { - "AWS": "arn:aws:iam::123456789012:role/amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - }, - "Resource": [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - "/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-gen2-main/Bucket/Policy/Resource" - } - }, - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucketAutoDeleteObjectsCustomResource31970782": { - "Type": "Custom::S3AutoDeleteObjects", - "Properties": { - "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "BucketName": "amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc" - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-gen2-main/Bucket/AutoDeleteObjectsCustomResource/Default" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ] - }, - "ManagedPolicyArns": [ - { - "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" - }, - "Timeout": 900, - "MemorySize": 128, - "Handler": "index.handler", - "Role": "arn:aws:iam::123456789012:role/amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Runtime": "nodejs22.x", - "Description": { - "Fn::Join": [ - "", - [ - "Lambda function for auto-deleting objects in ", - "amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - " S3 bucket." - ] - ] - } - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", - "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", - "aws:asset:property": "Code" - } - }, - "BACKENDONLYCB1A13AB81664ECAA7D015068AB2D0165E0FAGEN2MAINBUCKETNAMEParameterF8DFE544": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/backendonly/gen2main-branch-8e0f260810/BACKENDONLYCB_1_A_13_AB_81664_ECAA_7_D_015068_AB_2_D_0165_E_0_FA_GEN_2_MAIN_BUCKET_NAME", - "Tags": { - "amplify:app-id": "backendonly", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": "amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/BACKENDONLYCB_1_A_13_AB_81664_ECAA_7_D_015068_AB_2_D_0165_E_0_FA_GEN_2_MAIN_BUCKET_NAMEParameter/Resource" - } - }, - "amplifybackendonlygen2mainbranch8e0f260810storageAccess30A2D62BD": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - "/public/*" - ] - ] - } - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/*", - "public/" - ] - } - }, - "Effect": "Allow", - "Resource": "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "amplifybackendonlygen2mainbranch8e0f260810storageAccess30A2D62BD", - "Roles": [ - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/amplify-backendonly-gen2main-branch-8e0f260810--storageAccess3/Resource" - } - }, - "amplifybackendonlygen2mainbranch8e0f260810storageAccess4B03641A3": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:PutObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/*", - "public/", - "protected/*", - "protected/", - "private/*", - "private/" - ] - } - }, - "Effect": "Allow", - "Resource": "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc" - }, - { - "Action": "s3:DeleteObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - "/private/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "amplifybackendonlygen2mainbranch8e0f260810storageAccess4B03641A3", - "Roles": [ - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/amplify-backendonly-gen2main-branch-8e0f260810--storageAccess4/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WLTQ6CMBCFz8K+jIgu3Cp7Q+AAppaRjNA26QwQ03B3QyASV+97fznk5yNkiZ44NU2X9vSEeEcWbGrRplN64kfkE8TbYDoUVbzcRquUvifz2ePVz4rZQqwlkGtLHbRFwbCsfmZWpC3E/b89Z1UMLN5WyH4IBpdq57+qDH6kBsNNM6orM0otuiXXzsr5BuHNhzHP4XiBLHkzURoGJ2QRqlW/LyyDFv0AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref": { - "Type": "String" - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef": { - "Type": "String" - } - }, - "Outputs": { - "amplifybackendonlygen2mainbranch8e0f260810storagebackendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket8CDA8E49Ref": { - "Value": "amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.target.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.target.template.json deleted file mode 100644 index 03d10f9a77a..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I-holding.target.template.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "Temporary holding stack for Gen2 migration", - "Resources": { - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "BucketKeyEnabled": false, - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "MaxAge": 3000 - } - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-gen2-main" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-gen2-main/Bucket/Resource" - } - } - }, - "Outputs": {} -} \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.mappings.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.mappings.json deleted file mode 100644 index c5c90be833c..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.mappings.json +++ /dev/null @@ -1,52 +0,0 @@ -[ - { - "Source": { - "StackName": "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A", - "LogicalResourceId": "UserPool" - }, - "Destination": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" - } - }, - { - "Source": { - "StackName": "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A", - "LogicalResourceId": "UserPoolClientWeb" - }, - "Destination": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" - } - }, - { - "Source": { - "StackName": "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A", - "LogicalResourceId": "UserPoolClient" - }, - "Destination": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" - } - }, - { - "Source": { - "StackName": "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A", - "LogicalResourceId": "IdentityPool" - }, - "Destination": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" - } - }, - { - "Source": { - "StackName": "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A", - "LogicalResourceId": "IdentityPoolRoleMap" - }, - "Destination": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" - } - } -] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.source.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.source.template.json deleted file mode 100644 index 5278197515b..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.source.template.json +++ /dev/null @@ -1,190 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "env": { - "Type": "String" - }, - "identityPoolName": { - "Type": "String" - }, - "allowUnauthenticatedIdentities": { - "Type": "String" - }, - "resourceNameTruncated": { - "Type": "String" - }, - "userPoolName": { - "Type": "String" - }, - "autoVerifiedAttributes": { - "Type": "CommaDelimitedList" - }, - "mfaConfiguration": { - "Type": "String" - }, - "mfaTypes": { - "Type": "CommaDelimitedList" - }, - "smsAuthenticationMessage": { - "Type": "String" - }, - "smsVerificationMessage": { - "Type": "String" - }, - "emailVerificationSubject": { - "Type": "String" - }, - "emailVerificationMessage": { - "Type": "String" - }, - "defaultPasswordPolicy": { - "Type": "String" - }, - "passwordPolicyMinLength": { - "Type": "String" - }, - "passwordPolicyCharacters": { - "Type": "CommaDelimitedList" - }, - "requiredAttributes": { - "Type": "CommaDelimitedList" - }, - "aliasAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientGenerateSecret": { - "Type": "String" - }, - "userpoolClientRefreshTokenValidity": { - "Type": "String" - }, - "userpoolClientWriteAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientReadAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientLambdaRole": { - "Type": "String" - }, - "userpoolClientSetAttributes": { - "Type": "String" - }, - "sharedId": { - "Type": "String" - }, - "resourceName": { - "Type": "String" - }, - "authSelections": { - "Type": "String" - }, - "useDefault": { - "Type": "String" - }, - "usernameAttributes": { - "Type": "CommaDelimitedList" - }, - "userPoolGroupList": { - "Type": "CommaDelimitedList" - }, - "serviceName": { - "Type": "String" - }, - "usernameCaseSensitive": { - "Type": "String" - }, - "useEnabledMfas": { - "Type": "String" - }, - "authRoleArn": { - "Type": "String" - }, - "unauthRoleArn": { - "Type": "String" - }, - "breakCircularDependency": { - "Type": "String" - }, - "dependsOn": { - "Type": "CommaDelimitedList" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - "main", - "NONE" - ] - } - }, - "Resources": { - "UserPoolClientRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - }, - "Action": "sts:AssumeRole" - } - ] - }, - "RoleName": { - "Fn::Join": [ - "", - [ - "upClientLambdaRolef8c4c57b", - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A" - ] - } - ] - }, - "-", - "main" - ] - ] - } - } - } - }, - "Outputs": { - "IdentityPoolId": { - "Description": "Id for the identity pool", - "Value": "us-east-1:3d2fd52c-2247-42b8-8773-3102fce814b8" - }, - "IdentityPoolName": { - "Value": "backendonlyf8c4c57b_identitypool_f8c4c57b__main" - }, - "UserPoolId": { - "Description": "Id for the user pool", - "Value": "us-east-1_1rvCNKN5B" - }, - "UserPoolArn": { - "Description": "Arn for the user pool", - "Value": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1rvCNKN5B" - }, - "UserPoolName": { - "Value": "backendonlyf8c4c57b_userpool_f8c4c57b" - }, - "AppClientIDWeb": { - "Description": "The user pool app client id for web", - "Value": "2udsup370on7n0b1gdf8hpijc6" - }, - "AppClientID": { - "Description": "The user pool app client id", - "Value": "773c808k3864f2k0sqk4j71gsj" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.target.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.target.template.json deleted file mode 100644 index 178ab4671af..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.__to__.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.target.template.json +++ /dev/null @@ -1,524 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.11.1\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", - "Resources": { - "amplifyAuthauthenticatedUserRoleD8DA3689": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:33a8fea2-6293-4bec-8726-31e6b5817de5" - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "authenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/authenticatedUserRole/Resource" - } - }, - "amplifyAuthunauthenticatedUserRole2B524D9E": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:33a8fea2-6293-4bec-8726-31e6b5817de5" - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "unauthenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/unauthenticatedUserRole/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/02LwQrCMBBEv8V7urbBg1fpyYtIxbPEZNVt0w00q0VC/l2KVHuamTczGvSmgnJlxlhY1xWerpAOGAXdSYztlBnjJdlwZ5IA6RxxOIbgVX3jn59N7QlZltWf7B2ykLzn8zI3weNOxNhHjyxZkekhTXAaTppzVhwcQhvXL62h2kK5aiNRMTxZqEdovvoBH9Args4AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - }, - "amplifyAuthUserPool4BA7F805": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": "Your verification code is {####}", - "EmailVerificationSubject": "Your verification code", - "MfaConfiguration": "OFF", - "Policies": { - "PasswordPolicy": { - "MinimumLength": "8", - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolName": { - "Fn::Join": [ - "", - [ - "backendonlyf8c4c57b_userpool_f8c4c57b", - "-", - "main" - ] - ] - }, - "UsernameAttributes": [ - "email" - ], - "UsernameConfiguration": { - "CaseSensitive": false - } - } - }, - "amplifyAuthUserPoolAppClient2626C6F8": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "backenf8c4c57b_app_clientWeb", - "RefreshTokenValidity": "30", - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": "us-east-1_1rvCNKN5B" - } - }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "backenf8c4c57b_app_client", - "GenerateSecret": "false", - "RefreshTokenValidity": "30", - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": "us-east-1_1rvCNKN5B" - } - }, - "amplifyAuthIdentityPool3FDE84CC": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": "true", - "CognitoIdentityProviders": [ - { - "ClientId": "773c808k3864f2k0sqk4j71gsj", - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": "us-east-1_1rvCNKN5B" - } - ] - } - }, - { - "ClientId": "2udsup370on7n0b1gdf8hpijc6", - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": "us-east-1_1rvCNKN5B" - } - ] - } - } - ], - "IdentityPoolName": { - "Fn::Join": [ - "", - [ - "backendonlyf8c4c57b_identitypool_f8c4c57b__", - "main" - ] - ] - } - } - }, - "amplifyAuthIdentityPoolRoleAttachment045F17C8": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": "us-east-1:3d2fd52c-2247-42b8-8773-3102fce814b8", - "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-backendonly-main-5e0fa-unauthRole", - "authenticated": "arn:aws:iam::123456789012:role/amplify-backendonly-main-5e0fa-authRole" - } - } - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Outputs": { - "amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthUserPoolACA7606BRef": { - "Value": "us-east-1_W9u2NBSRe" - }, - "amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthUserPoolAppClientF2CDC3A8Ref": { - "Value": "55m5602upkjiv7819hcf2ht5v3" - }, - "amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef": { - "Value": "us-east-1:33a8fea2-6293-4bec-8726-31e6b5817de5" - }, - "amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef": { - "Value": "amplify-backendonly-ge-amplifyAuthauthenticatedU-NrnOsacJVeCr" - }, - "amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref": { - "Value": "amplify-backendonly-ge-amplifyAuthunauthenticate-mFzNB8V2DE4J" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.mappings.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.mappings.json deleted file mode 100644 index d2fc08ac276..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.mappings.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "Source": { - "StackName": "amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR", - "LogicalResourceId": "S3Bucket" - }, - "Destination": { - "StackName": "amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I", - "LogicalResourceId": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738" - } - } -] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.source.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.source.template.json deleted file mode 100644 index c3476642330..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.source.template.json +++ /dev/null @@ -1,469 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-S3\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "env": { - "Type": "String" - }, - "bucketName": { - "Type": "String" - }, - "authRoleName": { - "Type": "String" - }, - "unauthRoleName": { - "Type": "String" - }, - "authPolicyName": { - "Type": "String" - }, - "unauthPolicyName": { - "Type": "String" - }, - "s3PublicPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3PrivatePolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3ProtectedPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3UploadsPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3ReadPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3PermissionsAuthenticatedPublic": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedProtected": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedPrivate": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedUploads": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsGuestPublic": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsGuestUploads": { - "Type": "String", - "Default": "DISALLOW" - }, - "AuthenticatedAllowList": { - "Type": "String", - "Default": "DISALLOW" - }, - "GuestAllowList": { - "Type": "String", - "Default": "DISALLOW" - }, - "selectedGuestPermissions": { - "Type": "CommaDelimitedList", - "Default": "NONE" - }, - "selectedAuthenticatedPermissions": { - "Type": "CommaDelimitedList", - "Default": "NONE" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - "main", - "NONE" - ] - }, - "CreateAuthPublic": { - "Fn::Not": [ - { - "Fn::Equals": [ - "s3:PutObject,s3:GetObject,s3:DeleteObject", - "DISALLOW" - ] - } - ] - }, - "CreateAuthProtected": { - "Fn::Not": [ - { - "Fn::Equals": [ - "s3:PutObject,s3:GetObject,s3:DeleteObject", - "DISALLOW" - ] - } - ] - }, - "CreateAuthPrivate": { - "Fn::Not": [ - { - "Fn::Equals": [ - "s3:PutObject,s3:GetObject,s3:DeleteObject", - "DISALLOW" - ] - } - ] - }, - "CreateAuthUploads": { - "Fn::Not": [ - { - "Fn::Equals": [ - "s3:PutObject", - "DISALLOW" - ] - } - ] - }, - "CreateGuestPublic": { - "Fn::Not": [ - { - "Fn::Equals": [ - "s3:GetObject", - "DISALLOW" - ] - } - ] - }, - "CreateGuestUploads": { - "Fn::Not": [ - { - "Fn::Equals": [ - "DISALLOW", - "DISALLOW" - ] - } - ] - }, - "AuthReadAndList": { - "Fn::Not": [ - { - "Fn::Equals": [ - "ALLOW", - "DISALLOW" - ] - } - ] - }, - "GuestReadAndList": { - "Fn::Not": [ - { - "Fn::Equals": [ - "ALLOW", - "DISALLOW" - ] - } - ] - } - }, - "Outputs": { - "BucketName": { - "Description": "Bucket name for the S3 bucket", - "Value": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-main" - }, - "Region": { - "Value": "us-east-1" - } - }, - "Resources": { - "S3AuthPublicPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - "s3:PutObject,s3:GetObject,s3:DeleteObject" - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-main", - "/public/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "Public_policy_c31471c3", - "Roles": [ - "amplify-backendonly-main-5e0fa-authRole" - ] - }, - "Condition": "CreateAuthPublic" - }, - "S3AuthProtectedPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - "s3:PutObject,s3:GetObject,s3:DeleteObject" - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-main", - "/protected/${cognito-identity.amazonaws.com:sub}/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "Protected_policy_c31471c3", - "Roles": [ - "amplify-backendonly-main-5e0fa-authRole" - ] - }, - "Condition": "CreateAuthProtected" - }, - "S3AuthPrivatePolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - "s3:PutObject,s3:GetObject,s3:DeleteObject" - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-main", - "/private/${cognito-identity.amazonaws.com:sub}/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "Private_policy_c31471c3", - "Roles": [ - "amplify-backendonly-main-5e0fa-authRole" - ] - }, - "Condition": "CreateAuthPrivate" - }, - "S3AuthUploadPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - "s3:PutObject" - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-main", - "/uploads/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "Uploads_policy_c31471c3", - "Roles": [ - "amplify-backendonly-main-5e0fa-authRole" - ] - }, - "Condition": "CreateAuthUploads" - }, - "S3GuestPublicPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - "s3:GetObject" - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-main", - "/public/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "Public_policy_c31471c3", - "Roles": [ - "amplify-backendonly-main-5e0fa-unauthRole" - ] - }, - "Condition": "CreateGuestPublic" - }, - "S3AuthReadPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-main", - "/protected/*" - ] - ] - } - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/", - "public/*", - "protected/", - "protected/*", - "private/${cognito-identity.amazonaws.com:sub}/", - "private/${cognito-identity.amazonaws.com:sub}/*" - ] - } - }, - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-main" - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "read_policy_c31471c3", - "Roles": [ - "amplify-backendonly-main-5e0fa-authRole" - ] - }, - "Condition": "AuthReadAndList" - }, - "S3GuestReadPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-main", - "/protected/*" - ] - ] - } - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/", - "public/*", - "protected/", - "protected/*" - ] - } - }, - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-main" - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "read_policy_c31471c3", - "Roles": [ - "amplify-backendonly-main-5e0fa-unauthRole" - ] - }, - "Condition": "GuestReadAndList" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.target.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.target.template.json deleted file mode 100644 index 2c4aa9226e0..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.__to__.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.target.template.json +++ /dev/null @@ -1,685 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", - "Resources": { - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucketPolicy14D90AB6": { - "Type": "AWS::S3::BucketPolicy", - "Properties": { - "Bucket": "amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:*", - "Condition": { - "Bool": { - "aws:SecureTransport": "false" - } - }, - "Effect": "Deny", - "Principal": { - "AWS": "*" - }, - "Resource": [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - "/*" - ] - ] - } - ] - }, - { - "Action": [ - "s3:PutBucketPolicy", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*" - ], - "Effect": "Allow", - "Principal": { - "AWS": "arn:aws:iam::123456789012:role/amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - }, - "Resource": [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - "/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-gen2-main/Bucket/Policy/Resource" - } - }, - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucketAutoDeleteObjectsCustomResource31970782": { - "Type": "Custom::S3AutoDeleteObjects", - "Properties": { - "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "BucketName": "amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc" - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-gen2-main/Bucket/AutoDeleteObjectsCustomResource/Default" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ] - }, - "ManagedPolicyArns": [ - { - "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" - }, - "Timeout": 900, - "MemorySize": 128, - "Handler": "index.handler", - "Role": "arn:aws:iam::123456789012:role/amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Runtime": "nodejs22.x", - "Description": { - "Fn::Join": [ - "", - [ - "Lambda function for auto-deleting objects in ", - "amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - " S3 bucket." - ] - ] - } - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", - "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", - "aws:asset:property": "Code" - } - }, - "BACKENDONLYCB1A13AB81664ECAA7D015068AB2D0165E0FAGEN2MAINBUCKETNAMEParameterF8DFE544": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/backendonly/gen2main-branch-8e0f260810/BACKENDONLYCB_1_A_13_AB_81664_ECAA_7_D_015068_AB_2_D_0165_E_0_FA_GEN_2_MAIN_BUCKET_NAME", - "Tags": { - "amplify:app-id": "backendonly", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": "amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/BACKENDONLYCB_1_A_13_AB_81664_ECAA_7_D_015068_AB_2_D_0165_E_0_FA_GEN_2_MAIN_BUCKET_NAMEParameter/Resource" - } - }, - "amplifybackendonlygen2mainbranch8e0f260810storageAccess30A2D62BD": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - "/public/*" - ] - ] - } - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/*", - "public/" - ] - } - }, - "Effect": "Allow", - "Resource": "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "amplifybackendonlygen2mainbranch8e0f260810storageAccess30A2D62BD", - "Roles": [ - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/amplify-backendonly-gen2main-branch-8e0f260810--storageAccess3/Resource" - } - }, - "amplifybackendonlygen2mainbranch8e0f260810storageAccess4B03641A3": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:PutObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/*", - "public/", - "protected/*", - "protected/", - "private/*", - "private/" - ] - } - }, - "Effect": "Allow", - "Resource": "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc" - }, - { - "Action": "s3:DeleteObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - "/private/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "amplifybackendonlygen2mainbranch8e0f260810storageAccess4B03641A3", - "Roles": [ - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/amplify-backendonly-gen2main-branch-8e0f260810--storageAccess4/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WLTQ6CMBCFz8K+jIgu3Cp7Q+AAppaRjNA26QwQ03B3QyASV+97fznk5yNkiZ44NU2X9vSEeEcWbGrRplN64kfkE8TbYDoUVbzcRquUvifz2ePVz4rZQqwlkGtLHbRFwbCsfmZWpC3E/b89Z1UMLN5WyH4IBpdq57+qDH6kBsNNM6orM0otuiXXzsr5BuHNhzHP4XiBLHkzURoGJ2QRqlW/LyyDFv0AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - }, - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketName": { - "Fn::Join": [ - "", - [ - "backendonlycb1a13ab81664ecaa7d015068ab2d016", - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - "amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR" - ] - } - ] - }, - "-", - "main" - ] - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "Id": "S3CORSRuleId1", - "MaxAge": 3000 - } - ] - }, - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - } - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref": { - "Type": "String" - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef": { - "Type": "String" - } - }, - "Outputs": { - "amplifybackendonlygen2mainbranch8e0f260810storagebackendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket8CDA8E49Ref": { - "Value": "amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-x-x-authbackendonlyf8c4c57b-x.__to__.amplify-backendonly-e2e-sandbox-x-auth179371D7-x.mappings.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-x-x-authbackendonlyf8c4c57b-x.__to__.amplify-backendonly-e2e-sandbox-x-auth179371D7-x.mappings.json new file mode 100644 index 00000000000..2bdf4752f42 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-x-x-authbackendonlyf8c4c57b-x.__to__.amplify-backendonly-e2e-sandbox-x-auth179371D7-x.mappings.json @@ -0,0 +1,52 @@ +[ + { + "Source": { + "StackName": "amplify-backendonly-x-x-authbackendonlyf8c4c57b-x", + "LogicalResourceId": "UserPool" + }, + "Destination": { + "StackName": "amplify-backendonly-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + } + }, + { + "Source": { + "StackName": "amplify-backendonly-x-x-authbackendonlyf8c4c57b-x", + "LogicalResourceId": "UserPoolClientWeb" + }, + "Destination": { + "StackName": "amplify-backendonly-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + } + }, + { + "Source": { + "StackName": "amplify-backendonly-x-x-authbackendonlyf8c4c57b-x", + "LogicalResourceId": "UserPoolClient" + }, + "Destination": { + "StackName": "amplify-backendonly-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + } + }, + { + "Source": { + "StackName": "amplify-backendonly-x-x-authbackendonlyf8c4c57b-x", + "LogicalResourceId": "IdentityPool" + }, + "Destination": { + "StackName": "amplify-backendonly-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + } + }, + { + "Source": { + "StackName": "amplify-backendonly-x-x-authbackendonlyf8c4c57b-x", + "LogicalResourceId": "IdentityPoolRoleMap" + }, + "Destination": { + "StackName": "amplify-backendonly-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + } + } +] diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-x-x-authbackendonlyf8c4c57b-x.__to__.amplify-backendonly-e2e-sandbox-x-auth179371D7-x.source.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-x-x-authbackendonlyf8c4c57b-x.__to__.amplify-backendonly-e2e-sandbox-x-auth179371D7-x.source.template.json new file mode 100644 index 00000000000..0d882180936 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-x-x-authbackendonlyf8c4c57b-x.__to__.amplify-backendonly-e2e-sandbox-x-auth179371D7-x.source.template.json @@ -0,0 +1,190 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "identityPoolName": { + "Type": "String" + }, + "allowUnauthenticatedIdentities": { + "Type": "String" + }, + "resourceNameTruncated": { + "Type": "String" + }, + "userPoolName": { + "Type": "String" + }, + "autoVerifiedAttributes": { + "Type": "CommaDelimitedList" + }, + "mfaConfiguration": { + "Type": "String" + }, + "mfaTypes": { + "Type": "CommaDelimitedList" + }, + "smsAuthenticationMessage": { + "Type": "String" + }, + "smsVerificationMessage": { + "Type": "String" + }, + "emailVerificationSubject": { + "Type": "String" + }, + "emailVerificationMessage": { + "Type": "String" + }, + "defaultPasswordPolicy": { + "Type": "String" + }, + "passwordPolicyMinLength": { + "Type": "String" + }, + "passwordPolicyCharacters": { + "Type": "CommaDelimitedList" + }, + "requiredAttributes": { + "Type": "CommaDelimitedList" + }, + "aliasAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientGenerateSecret": { + "Type": "String" + }, + "userpoolClientRefreshTokenValidity": { + "Type": "String" + }, + "userpoolClientWriteAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientReadAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientLambdaRole": { + "Type": "String" + }, + "userpoolClientSetAttributes": { + "Type": "String" + }, + "sharedId": { + "Type": "String" + }, + "resourceName": { + "Type": "String" + }, + "authSelections": { + "Type": "String" + }, + "useDefault": { + "Type": "String" + }, + "usernameAttributes": { + "Type": "CommaDelimitedList" + }, + "userPoolGroupList": { + "Type": "CommaDelimitedList" + }, + "serviceName": { + "Type": "String" + }, + "usernameCaseSensitive": { + "Type": "String" + }, + "useEnabledMfas": { + "Type": "String" + }, + "authRoleArn": { + "Type": "String" + }, + "unauthRoleArn": { + "Type": "String" + }, + "breakCircularDependency": { + "Type": "String" + }, + "dependsOn": { + "Type": "CommaDelimitedList" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + "x", + "NONE" + ] + } + }, + "Resources": { + "UserPoolClientRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + }, + "Action": "sts:AssumeRole" + } + ] + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "upClientLambdaRolef8c4c57b", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + "amplify-backendonly-x-x-authbackendonlyf8c4c57b-x" + ] + } + ] + }, + "-", + "x" + ] + ] + } + } + } + }, + "Outputs": { + "IdentityPoolId": { + "Description": "Id for the identity pool", + "Value": "us-east-1:ad436de3-7529-46d9-be87-050ea1dd015c" + }, + "IdentityPoolName": { + "Value": "backendonlyf8c4c57b_identitypool_f8c4c57b__x" + }, + "UserPoolId": { + "Description": "Id for the user pool", + "Value": "us-east-1_cI3qDOXA2" + }, + "UserPoolArn": { + "Description": "Arn for the user pool", + "Value": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_cI3qDOXA2" + }, + "UserPoolName": { + "Value": "backendonlyf8c4c57b_userpool_f8c4c57b" + }, + "AppClientIDWeb": { + "Description": "The user pool app client id for web", + "Value": "6h7936arcjp36o7dhshkqb6d2a" + }, + "AppClientID": { + "Description": "The user pool app client id", + "Value": "3ggneb92n0rfe5qet1h7p48evc" + } + } +} diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-x-x-authbackendonlyf8c4c57b-x.__to__.amplify-backendonly-e2e-sandbox-x-auth179371D7-x.target.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-x-x-authbackendonlyf8c4c57b-x.__to__.amplify-backendonly-e2e-sandbox-x-auth179371D7-x.target.template.json new file mode 100644 index 00000000000..56bd7dfca51 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-x-x-authbackendonlyf8c4c57b-x.__to__.amplify-backendonly-e2e-sandbox-x-auth179371D7-x.target.template.json @@ -0,0 +1,512 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", + "Resources": { + "amplifyAuthauthenticatedUserRoleD8DA3689": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:253c6cb3-ea32-4bc6-9532-d622a04831ed" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/auth/amplifyAuth/authenticatedUserRole/Resource" + } + }, + "amplifyAuthunauthenticatedUserRole2B524D9E": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:253c6cb3-ea32-4bc6-9532-d622a04831ed" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "unauthenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/auth/amplifyAuth/unauthenticatedUserRole/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/02LwQrCMBBEv6X3dK0BvUtPXkQqniUmq26bbqBZLRLy71Kk2tPMvJnRoDcVVIUZY2ldV3q6QjpgFHQnMbZTZoyXZMOdSQKkc8ThGIJX9Y1/fja1J2RZVn+yd8hC8p7Py9wEjzsRYx89smRFpoc0wWk4ac5ZcXAIbVy9tIb1FqqijUTl8GShHqH56gf10GUazgAAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/auth/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + }, + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": "8", + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolName": { + "Fn::Join": [ + "", + [ + "backendonlyf8c4c57b_userpool_f8c4c57b", + "-", + "x" + ] + ] + }, + "UsernameAttributes": [ + "email" + ], + "UsernameConfiguration": { + "CaseSensitive": false + } + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "backenf8c4c57b_app_clientWeb", + "RefreshTokenValidity": "30", + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": "us-east-1_cI3qDOXA2" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "backenf8c4c57b_app_client", + "GenerateSecret": "false", + "RefreshTokenValidity": "30", + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": "us-east-1_cI3qDOXA2" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": "true", + "CognitoIdentityProviders": [ + { + "ClientId": "3ggneb92n0rfe5qet1h7p48evc", + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": "us-east-1_cI3qDOXA2" + } + ] + } + }, + { + "ClientId": "6h7936arcjp36o7dhshkqb6d2a", + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": "us-east-1_cI3qDOXA2" + } + ] + } + } + ], + "IdentityPoolName": { + "Fn::Join": [ + "", + [ + "backendonlyf8c4c57b_identitypool_f8c4c57b__", + "x" + ] + ] + } + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:ad436de3-7529-46d9-be87-050ea1dd015c", + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-backendonly-x-x-unauthRole", + "authenticated": "arn:aws:iam::123456789012:role/amplify-backendonly-x-x-authRole" + } + } + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifybackendonlye2esandbox363d3cd24dauthamplifyAuthUserPoolC6936963Ref": { + "Value": "us-east-1_QCCMEQ5di" + }, + "amplifybackendonlye2esandbox363d3cd24dauthamplifyAuthUserPoolAppClientD789C43ARef": { + "Value": "2351hpg07effv1sr4a6fv32pni" + }, + "amplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref": { + "Value": "us-east-1:253c6cb3-ea32-4bc6-9532-d622a04831ed" + }, + "amplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef": { + "Value": "amplify-backendonl2604142-amplifyAuthauthenticatedU-e2MZgmxI4x06" + }, + "amplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref": { + "Value": "amplify-backendonl2604142-amplifyAuthunauthenticate-T0OFU3aW6x78" + } + } +} diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-x-x-storages3c31471c3-x.__to__.amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x.mappings.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-x-x-storages3c31471c3-x.__to__.amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x.mappings.json new file mode 100644 index 00000000000..4e126553056 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-x-x-storages3c31471c3-x.__to__.amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x.mappings.json @@ -0,0 +1,12 @@ +[ + { + "Source": { + "StackName": "amplify-backendonly-x-x-storages3c31471c3-x", + "LogicalResourceId": "S3Bucket" + }, + "Destination": { + "StackName": "amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x", + "LogicalResourceId": "backendonlycb1a13ab81664ecaa7d015068ab2d016xgen2xBucketD26234B2" + } + } +] diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-x-x-storages3c31471c3-x.__to__.amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x.source.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-x-x-storages3c31471c3-x.__to__.amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x.source.template.json new file mode 100644 index 00000000000..c31a73dd284 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-x-x-storages3c31471c3-x.__to__.amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x.source.template.json @@ -0,0 +1,469 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-S3\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "bucketName": { + "Type": "String" + }, + "authRoleName": { + "Type": "String" + }, + "unauthRoleName": { + "Type": "String" + }, + "authPolicyName": { + "Type": "String" + }, + "unauthPolicyName": { + "Type": "String" + }, + "s3PublicPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3PrivatePolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3ProtectedPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3UploadsPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3ReadPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3PermissionsAuthenticatedPublic": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedProtected": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedPrivate": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedUploads": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsGuestPublic": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsGuestUploads": { + "Type": "String", + "Default": "DISALLOW" + }, + "AuthenticatedAllowList": { + "Type": "String", + "Default": "DISALLOW" + }, + "GuestAllowList": { + "Type": "String", + "Default": "DISALLOW" + }, + "selectedGuestPermissions": { + "Type": "CommaDelimitedList", + "Default": "NONE" + }, + "selectedAuthenticatedPermissions": { + "Type": "CommaDelimitedList", + "Default": "NONE" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + "x", + "NONE" + ] + }, + "CreateAuthPublic": { + "Fn::Not": [ + { + "Fn::Equals": [ + "s3:PutObject,s3:GetObject,s3:DeleteObject", + "DISALLOW" + ] + } + ] + }, + "CreateAuthProtected": { + "Fn::Not": [ + { + "Fn::Equals": [ + "s3:PutObject,s3:GetObject,s3:DeleteObject", + "DISALLOW" + ] + } + ] + }, + "CreateAuthPrivate": { + "Fn::Not": [ + { + "Fn::Equals": [ + "s3:PutObject,s3:GetObject,s3:DeleteObject", + "DISALLOW" + ] + } + ] + }, + "CreateAuthUploads": { + "Fn::Not": [ + { + "Fn::Equals": [ + "s3:PutObject", + "DISALLOW" + ] + } + ] + }, + "CreateGuestPublic": { + "Fn::Not": [ + { + "Fn::Equals": [ + "s3:GetObject", + "DISALLOW" + ] + } + ] + }, + "CreateGuestUploads": { + "Fn::Not": [ + { + "Fn::Equals": [ + "DISALLOW", + "DISALLOW" + ] + } + ] + }, + "AuthReadAndList": { + "Fn::Not": [ + { + "Fn::Equals": [ + "ALLOW", + "DISALLOW" + ] + } + ] + }, + "GuestReadAndList": { + "Fn::Not": [ + { + "Fn::Equals": [ + "ALLOW", + "DISALLOW" + ] + } + ] + } + }, + "Outputs": { + "BucketName": { + "Description": "Bucket name for the S3 bucket", + "Value": "backendonlycb1a13ab81664ecaa7d015068ab2d016x-x" + }, + "Region": { + "Value": "us-east-1" + } + }, + "Resources": { + "S3AuthPublicPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + "s3:PutObject,s3:GetObject,s3:DeleteObject" + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "backendonlycb1a13ab81664ecaa7d015068ab2d016x-x", + "/public/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "Public_policy_c31471c3", + "Roles": [ + "amplify-backendonly-x-x-authRole" + ] + }, + "Condition": "CreateAuthPublic" + }, + "S3AuthProtectedPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + "s3:PutObject,s3:GetObject,s3:DeleteObject" + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "backendonlycb1a13ab81664ecaa7d015068ab2d016x-x", + "/protected/${cognito-identity.amazonaws.com:sub}/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "Protected_policy_c31471c3", + "Roles": [ + "amplify-backendonly-x-x-authRole" + ] + }, + "Condition": "CreateAuthProtected" + }, + "S3AuthPrivatePolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + "s3:PutObject,s3:GetObject,s3:DeleteObject" + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "backendonlycb1a13ab81664ecaa7d015068ab2d016x-x", + "/private/${cognito-identity.amazonaws.com:sub}/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "Private_policy_c31471c3", + "Roles": [ + "amplify-backendonly-x-x-authRole" + ] + }, + "Condition": "CreateAuthPrivate" + }, + "S3AuthUploadPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + "s3:PutObject" + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "backendonlycb1a13ab81664ecaa7d015068ab2d016x-x", + "/uploads/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "Uploads_policy_c31471c3", + "Roles": [ + "amplify-backendonly-x-x-authRole" + ] + }, + "Condition": "CreateAuthUploads" + }, + "S3GuestPublicPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + "s3:GetObject" + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "backendonlycb1a13ab81664ecaa7d015068ab2d016x-x", + "/public/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "Public_policy_c31471c3", + "Roles": [ + "amplify-backendonly-x-x-unauthRole" + ] + }, + "Condition": "CreateGuestPublic" + }, + "S3AuthReadPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "backendonlycb1a13ab81664ecaa7d015068ab2d016x-x", + "/protected/*" + ] + ] + } + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/", + "public/*", + "protected/", + "protected/*", + "private/${cognito-identity.amazonaws.com:sub}/", + "private/${cognito-identity.amazonaws.com:sub}/*" + ] + } + }, + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "backendonlycb1a13ab81664ecaa7d015068ab2d016x-x" + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "read_policy_c31471c3", + "Roles": [ + "amplify-backendonly-x-x-authRole" + ] + }, + "Condition": "AuthReadAndList" + }, + "S3GuestReadPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "backendonlycb1a13ab81664ecaa7d015068ab2d016x-x", + "/protected/*" + ] + ] + } + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/", + "public/*", + "protected/", + "protected/*" + ] + } + }, + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "backendonlycb1a13ab81664ecaa7d015068ab2d016x-x" + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "read_policy_c31471c3", + "Roles": [ + "amplify-backendonly-x-x-unauthRole" + ] + }, + "Condition": "GuestReadAndList" + } + } +} diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-x-x-storages3c31471c3-x.__to__.amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x.target.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-x-x-storages3c31471c3-x.__to__.amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x.target.template.json new file mode 100644 index 00000000000..7ea35fbf634 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/refactor.__from__.amplify-backendonly-x-x-storages3c31471c3-x.__to__.amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x.target.template.json @@ -0,0 +1,695 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", + "Resources": { + "backendonlycb1a13ab81664ecaa7d015068ab2d016xgen2xBucketPolicyA39B9A14": { + "Type": "AWS::S3::BucketPolicy", + "Properties": { + "Bucket": "amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:*", + "Condition": { + "Bool": { + "aws:SecureTransport": "false" + } + }, + "Effect": "Deny", + "Principal": { + "AWS": "*" + }, + "Resource": [ + "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + "/*" + ] + ] + } + ] + }, + { + "Action": [ + "s3:PutBucketPolicy", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*" + ], + "Effect": "Allow", + "Principal": { + "AWS": "arn:aws:iam::123456789012:role/amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + }, + "Resource": [ + "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/storage/backendonlycb1a13ab81664ecaa7d015068ab2d016x-gen2-x/Bucket/Policy/Resource" + } + }, + "backendonlycb1a13ab81664ecaa7d015068ab2d016xgen2xBucketAutoDeleteObjectsCustomResource562A7B1D": { + "Type": "Custom::S3AutoDeleteObjects", + "Properties": { + "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "BucketName": "amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/storage/backendonlycb1a13ab81664ecaa7d015068ab2d016x-gen2-x/Bucket/AutoDeleteObjectsCustomResource/Default" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ] + }, + "ManagedPolicyArns": [ + { + "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" + }, + "Timeout": 900, + "MemorySize": 128, + "Handler": "index.handler", + "Role": "arn:aws:iam::123456789012:role/amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Runtime": "nodejs22.x", + "Description": { + "Fn::Join": [ + "", + [ + "Lambda function for auto-deleting objects in ", + "amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + " S3 bucket." + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", + "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", + "aws:asset:property": "Code" + } + }, + "BACKENDONLYCB1A13AB81664ECAA7D015068AB2D0163F871GEN2SWEDQGWLIFBUCKETNAMEParameter8E93043F": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/backendonly/e2e-sandbox-x/BACKENDONLYCB_1_A_13_AB_81664_ECAA_7_D_015068_AB_2_D_0163_F_871_GEN_2_SWEDQGWLIF_BUCKET_NAME", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": "amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/storage/BACKENDONLYCB_1_A_13_AB_81664_ECAA_7_D_015068_AB_2_D_0163_F_871_GEN_2_SWEDQGWLIF_BUCKET_NAMEParameter/Resource" + } + }, + "amplifybackendonlye2esandbox363d3cd24dstorageAccess367149079": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + "/public/*" + ] + ] + } + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/*", + "public/" + ] + } + }, + "Effect": "Allow", + "Resource": "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "amplifybackendonlye2esandbox363d3cd24dstorageAccess367149079", + "Roles": [ + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/storage/amplify-backendonly-e2e-sandbox-x--storageAccess3/Resource" + } + }, + "amplifybackendonlye2esandbox363d3cd24dstorageAccess4F48428D0": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:PutObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/*", + "public/", + "protected/*", + "protected/", + "private/*", + "private/" + ] + } + }, + "Effect": "Allow", + "Resource": "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r" + }, + { + "Action": "s3:DeleteObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + "/private/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "amplifybackendonlye2esandbox363d3cd24dstorageAccess4F48428D0", + "Roles": [ + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/storage/amplify-backendonly-e2e-sandbox-x--storageAccess4/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/5WNy07DMBBFv6VZO0NIBQt2fawhapYIIdcZokliW/JMWpDlf0epJQJLVnNH5z5qqB8qqDb6yqXpxnKiM8RnZMGuFW1Gpa/8HnkLcT+bEUUdPlxWr7Gw9EmueCp+hxc/b+GGGLJ1N4s/4oSCL+cBjXCR3lRGjZ/IfK2t+f9Hdw60ogUtult1UswWYiuBXN/ooC0KhmXj50mKtIW4rmeVkjrMLN6ekP0cDC5o1X9QE/yFOgx7zah2zCit6J5cn5TzHcLAd5e6hvtHqDYDE5VhdkIW4ZTvN8L1/x56AQAA" + }, + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/storage/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + }, + "backendonlycb1a13ab81664ecaa7d015068ab2d016xgen2xBucketD26234B2": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketName": { + "Fn::Join": [ + "", + [ + "backendonlycb1a13ab81664ecaa7d015068ab2d016", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + "amplify-backendonly-x-x-storages3c31471c3-x" + ] + } + ] + }, + "-", + "x" + ] + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "Id": "S3CORSRuleId1", + "MaxAge": 3000 + } + ] + }, + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + } + }, + "UpdateReplacePolicy": "Retain", + "DeletionPolicy": "Retain" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref": { + "Type": "String" + }, + "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef": { + "Type": "String" + } + }, + "Outputs": { + "amplifybackendonlye2esandbox363d3cd24dstoragebackendonlycb1a13ab81664ecaa7d015068ab2d016xgen2xBucket6602343ARef": { + "Value": "amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r" + } + } +} diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-e2e-sandbox-x-auth179371D7-x.parameters.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-e2e-sandbox-x-auth179371D7-x.parameters.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-e2e-sandbox-x-auth179371D7-x.parameters.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-e2e-sandbox-x-auth179371D7-x.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-e2e-sandbox-x-auth179371D7-x.template.json new file mode 100644 index 00000000000..0d036c12efc --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-e2e-sandbox-x-auth179371D7-x.template.json @@ -0,0 +1,590 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", + "Resources": { + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AccountRecoverySetting": { + "RecoveryMechanisms": [ + { + "Name": "verified_email", + "Priority": 1 + } + ] + }, + "AdminCreateUserConfig": { + "AllowAdminCreateUserOnly": false + }, + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": 8, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false, + "TemporaryPasswordValidityDays": 7 + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "SmsVerificationMessage": "The verification code to your new account is {####}", + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolTags": { + "amplify:deployment-type": "sandbox", + "amplify:friendly-name": "amplifyAuth", + "created-by": "amplify" + }, + "UsernameAttributes": [ + "email" + ], + "UsernameConfiguration": { + "CaseSensitive": false + }, + "VerificationMessageTemplate": { + "DefaultEmailOption": "CONFIRM_WITH_CODE", + "EmailMessage": "Your verification code is {####}", + "EmailSubject": "Your verification code", + "SmsMessage": "The verification code to your new account is {####}" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/auth/amplifyAuth/UserPool/Resource" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 43200, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": "us-east-1_QCCMEQ5di" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlows": [ + "code" + ], + "AllowedOAuthFlowsUserPoolClient": true, + "AllowedOAuthScopes": [ + "profile", + "phone", + "email", + "openid", + "aws.cognito.signin.user.admin" + ], + "CallbackURLs": [ + "https://example.com" + ], + "ExplicitAuthFlows": [ + "ALLOW_CUSTOM_AUTH", + "ALLOW_USER_SRP_AUTH", + "ALLOW_REFRESH_TOKEN_AUTH" + ], + "PreventUserExistenceErrors": "ENABLED", + "SupportedIdentityProviders": [ + "COGNITO" + ], + "UserPoolId": "us-east-1_QCCMEQ5di" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/auth/amplifyAuth/UserPoolAppClient/Resource" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": true, + "CognitoIdentityProviders": [ + { + "ClientId": "2351hpg07effv1sr4a6fv32pni", + "ProviderName": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_QCCMEQ5di" + ] + ] + } + } + ], + "IdentityPoolTags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "SupportedLoginProviders": {} + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/auth/amplifyAuth/IdentityPool" + } + }, + "amplifyAuthauthenticatedUserRoleD8DA3689": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:253c6cb3-ea32-4bc6-9532-d622a04831ed" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/auth/amplifyAuth/authenticatedUserRole/Resource" + } + }, + "amplifyAuthunauthenticatedUserRole2B524D9E": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:253c6cb3-ea32-4bc6-9532-d622a04831ed" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "unauthenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/auth/amplifyAuth/unauthenticatedUserRole/Resource" + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:253c6cb3-ea32-4bc6-9532-d622a04831ed", + "RoleMappings": { + "UserPoolWebClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_QCCMEQ5di", + ":", + "2351hpg07effv1sr4a6fv32pni" + ] + ] + }, + "Type": "Token" + } + }, + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-backendonl2604142-amplifyAuthunauthenticate-T0OFU3aW6x78", + "authenticated": "arn:aws:iam::123456789012:role/amplify-backendonl2604142-amplifyAuthauthenticatedU-e2MZgmxI4x06" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/auth/amplifyAuth/IdentityPoolRoleAttachment" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/02LwQrCMBBEv6X3dK0BvUtPXkQqniUmq26bbqBZLRLy71Kk2tPMvJnRoDcVVIUZY2ldV3q6QjpgFHQnMbZTZoyXZMOdSQKkc8ThGIJX9Y1/fja1J2RZVn+yd8hC8p7Py9wEjzsRYx89smRFpoc0wWk4ac5ZcXAIbVy9tIb1FqqijUTl8GShHqH56gf10GUazgAAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/auth/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifybackendonlye2esandbox363d3cd24dauthamplifyAuthUserPoolC6936963Ref": { + "Value": "us-east-1_QCCMEQ5di" + }, + "amplifybackendonlye2esandbox363d3cd24dauthamplifyAuthUserPoolAppClientD789C43ARef": { + "Value": "2351hpg07effv1sr4a6fv32pni" + }, + "amplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref": { + "Value": "us-east-1:253c6cb3-ea32-4bc6-9532-d622a04831ed" + }, + "amplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef": { + "Value": "amplify-backendonl2604142-amplifyAuthauthenticatedU-e2MZgmxI4x06" + }, + "amplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref": { + "Value": "amplify-backendonl2604142-amplifyAuthunauthenticate-T0OFU3aW6x78" + } + } +} diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x.parameters.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x.parameters.json new file mode 100644 index 00000000000..8acf4216dca --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x.parameters.json @@ -0,0 +1,10 @@ +[ + { + "ParameterKey": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef", + "ParameterValue": "amplify-backendonl2604142-amplifyAuthauthenticatedU-e2MZgmxI4x06" + }, + { + "ParameterKey": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref", + "ParameterValue": "amplify-backendonl2604142-amplifyAuthunauthenticate-T0OFU3aW6x78" + } +] diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x.template.json new file mode 100644 index 00000000000..61a9ed41ceb --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x.template.json @@ -0,0 +1,695 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", + "Resources": { + "backendonlycb1a13ab81664ecaa7d015068ab2d016xgen2xBucketD26234B2": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "BucketKeyEnabled": false, + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "MaxAge": 3000 + } + ] + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "backendonlycb1a13ab81664ecaa7d015068ab2d016x-gen2-x" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/storage/backendonlycb1a13ab81664ecaa7d015068ab2d016x-gen2-x/Bucket/Resource" + } + }, + "backendonlycb1a13ab81664ecaa7d015068ab2d016xgen2xBucketPolicyA39B9A14": { + "Type": "AWS::S3::BucketPolicy", + "Properties": { + "Bucket": "amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:*", + "Condition": { + "Bool": { + "aws:SecureTransport": "false" + } + }, + "Effect": "Deny", + "Principal": { + "AWS": "*" + }, + "Resource": [ + "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + "/*" + ] + ] + } + ] + }, + { + "Action": [ + "s3:PutBucketPolicy", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*" + ], + "Effect": "Allow", + "Principal": { + "AWS": "arn:aws:iam::123456789012:role/amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + }, + "Resource": [ + "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/storage/backendonlycb1a13ab81664ecaa7d015068ab2d016x-gen2-x/Bucket/Policy/Resource" + } + }, + "backendonlycb1a13ab81664ecaa7d015068ab2d016xgen2xBucketAutoDeleteObjectsCustomResource562A7B1D": { + "Type": "Custom::S3AutoDeleteObjects", + "Properties": { + "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "BucketName": "amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/storage/backendonlycb1a13ab81664ecaa7d015068ab2d016x-gen2-x/Bucket/AutoDeleteObjectsCustomResource/Default" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ] + }, + "ManagedPolicyArns": [ + { + "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" + }, + "Timeout": 900, + "MemorySize": 128, + "Handler": "index.handler", + "Role": "arn:aws:iam::123456789012:role/amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Runtime": "nodejs22.x", + "Description": { + "Fn::Join": [ + "", + [ + "Lambda function for auto-deleting objects in ", + "amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + " S3 bucket." + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", + "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", + "aws:asset:property": "Code" + } + }, + "BACKENDONLYCB1A13AB81664ECAA7D015068AB2D0163F871GEN2SWEDQGWLIFBUCKETNAMEParameter8E93043F": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/backendonly/e2e-sandbox-x/BACKENDONLYCB_1_A_13_AB_81664_ECAA_7_D_015068_AB_2_D_0163_F_871_GEN_2_SWEDQGWLIF_BUCKET_NAME", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": "amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/storage/BACKENDONLYCB_1_A_13_AB_81664_ECAA_7_D_015068_AB_2_D_0163_F_871_GEN_2_SWEDQGWLIF_BUCKET_NAMEParameter/Resource" + } + }, + "amplifybackendonlye2esandbox363d3cd24dstorageAccess367149079": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + "/public/*" + ] + ] + } + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/*", + "public/" + ] + } + }, + "Effect": "Allow", + "Resource": "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "amplifybackendonlye2esandbox363d3cd24dstorageAccess367149079", + "Roles": [ + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/storage/amplify-backendonly-e2e-sandbox-x--storageAccess3/Resource" + } + }, + "amplifybackendonlye2esandbox363d3cd24dstorageAccess4F48428D0": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:PutObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/*", + "public/", + "protected/*", + "protected/", + "private/*", + "private/" + ] + } + }, + "Effect": "Allow", + "Resource": "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r" + }, + { + "Action": "s3:DeleteObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r", + "/private/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "amplifybackendonlye2esandbox363d3cd24dstorageAccess4F48428D0", + "Roles": [ + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/storage/amplify-backendonly-e2e-sandbox-x--storageAccess4/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/5WNy07DMBBFv6VZO0NIBQt2fawhapYIIdcZokliW/JMWpDlf0epJQJLVnNH5z5qqB8qqDb6yqXpxnKiM8RnZMGuFW1Gpa/8HnkLcT+bEUUdPlxWr7Gw9EmueCp+hxc/b+GGGLJ1N4s/4oSCL+cBjXCR3lRGjZ/IfK2t+f9Hdw60ogUtult1UswWYiuBXN/ooC0KhmXj50mKtIW4rmeVkjrMLN6ekP0cDC5o1X9QE/yFOgx7zah2zCit6J5cn5TzHcLAd5e6hvtHqDYDE5VhdkIW4ZTvN8L1/x56AQAA" + }, + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/storage/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref": { + "Type": "String" + }, + "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef": { + "Type": "String" + } + }, + "Outputs": { + "amplifybackendonlye2esandbox363d3cd24dstoragebackendonlycb1a13ab81664ecaa7d015068ab2d016xgen2xBucket6602343ARef": { + "Value": "amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r" + } + } +} diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.parameters.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.parameters.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.parameters.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.template.json deleted file mode 100644 index e4c6ac26f39..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.template.json +++ /dev/null @@ -1,604 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.11.1\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", - "Resources": { - "amplifyAuthUserPool4BA7F805": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AccountRecoverySetting": { - "RecoveryMechanisms": [ - { - "Name": "verified_email", - "Priority": 1 - } - ] - }, - "AdminCreateUserConfig": { - "AllowAdminCreateUserOnly": false - }, - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": "Your verification code is {####}", - "EmailVerificationSubject": "Your verification code", - "MfaConfiguration": "OFF", - "Policies": { - "PasswordPolicy": { - "MinimumLength": 8, - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false, - "TemporaryPasswordValidityDays": 7 - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "SmsVerificationMessage": "The verification code to your new account is {####}", - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolTags": { - "amplify:app-id": "backendonly", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "amplify:friendly-name": "amplifyAuth", - "created-by": "amplify" - }, - "UsernameAttributes": [ - "email" - ], - "UsernameConfiguration": { - "CaseSensitive": false - }, - "VerificationMessageTemplate": { - "DefaultEmailOption": "CONFIRM_WITH_CODE", - "EmailMessage": "Your verification code is {####}", - "EmailSubject": "Your verification code", - "SmsMessage": "The verification code to your new account is {####}" - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/UserPool/Resource" - } - }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 43200, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": "us-east-1_W9u2NBSRe" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, - "amplifyAuthUserPoolAppClient2626C6F8": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlows": [ - "code" - ], - "AllowedOAuthFlowsUserPoolClient": true, - "AllowedOAuthScopes": [ - "profile", - "phone", - "email", - "openid", - "aws.cognito.signin.user.admin" - ], - "CallbackURLs": [ - "https://example.com" - ], - "ExplicitAuthFlows": [ - "ALLOW_CUSTOM_AUTH", - "ALLOW_USER_SRP_AUTH", - "ALLOW_REFRESH_TOKEN_AUTH" - ], - "PreventUserExistenceErrors": "ENABLED", - "SupportedIdentityProviders": [ - "COGNITO" - ], - "UserPoolId": "us-east-1_W9u2NBSRe" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/UserPoolAppClient/Resource" - } - }, - "amplifyAuthIdentityPool3FDE84CC": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": true, - "CognitoIdentityProviders": [ - { - "ClientId": "55m5602upkjiv7819hcf2ht5v3", - "ProviderName": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - "us-east-1_W9u2NBSRe" - ] - ] - } - } - ], - "IdentityPoolTags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "SupportedLoginProviders": {} - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/IdentityPool" - } - }, - "amplifyAuthauthenticatedUserRoleD8DA3689": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:33a8fea2-6293-4bec-8726-31e6b5817de5" - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "authenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/authenticatedUserRole/Resource" - } - }, - "amplifyAuthunauthenticatedUserRole2B524D9E": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:33a8fea2-6293-4bec-8726-31e6b5817de5" - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "unauthenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/unauthenticatedUserRole/Resource" - } - }, - "amplifyAuthIdentityPoolRoleAttachment045F17C8": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": "us-east-1:33a8fea2-6293-4bec-8726-31e6b5817de5", - "RoleMappings": { - "UserPoolWebClientRoleMapping": { - "AmbiguousRoleResolution": "AuthenticatedRole", - "IdentityProvider": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - "us-east-1_W9u2NBSRe", - ":", - "55m5602upkjiv7819hcf2ht5v3" - ] - ] - }, - "Type": "Token" - } - }, - "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-backendonly-ge-amplifyAuthunauthenticate-mFzNB8V2DE4J", - "authenticated": "arn:aws:iam::123456789012:role/amplify-backendonly-ge-amplifyAuthauthenticatedU-NrnOsacJVeCr" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/IdentityPoolRoleAttachment" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/02LwQrCMBBEv8V7urbBg1fpyYtIxbPEZNVt0w00q0VC/l2KVHuamTczGvSmgnJlxlhY1xWerpAOGAXdSYztlBnjJdlwZ5IA6RxxOIbgVX3jn59N7QlZltWf7B2ykLzn8zI3weNOxNhHjyxZkekhTXAaTppzVhwcQhvXL62h2kK5aiNRMTxZqEdovvoBH9Args4AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Outputs": { - "amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthUserPoolACA7606BRef": { - "Value": "us-east-1_W9u2NBSRe" - }, - "amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthUserPoolAppClientF2CDC3A8Ref": { - "Value": "55m5602upkjiv7819hcf2ht5v3" - }, - "amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef": { - "Value": "us-east-1:33a8fea2-6293-4bec-8726-31e6b5817de5" - }, - "amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef": { - "Value": "amplify-backendonly-ge-amplifyAuthauthenticatedU-NrnOsacJVeCr" - }, - "amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref": { - "Value": "amplify-backendonly-ge-amplifyAuthunauthenticate-mFzNB8V2DE4J" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.parameters.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.parameters.json deleted file mode 100644 index 63f7ac787b0..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.parameters.json +++ /dev/null @@ -1,10 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef", - "ParameterValue": "amplify-backendonly-ge-amplifyAuthauthenticatedU-NrnOsacJVeCr" - }, - { - "ParameterKey": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref", - "ParameterValue": "amplify-backendonly-ge-amplifyAuthunauthenticate-mFzNB8V2DE4J" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.template.json deleted file mode 100644 index 7d2b002bc3d..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.template.json +++ /dev/null @@ -1,693 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", - "Resources": { - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "BucketKeyEnabled": false, - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "MaxAge": 3000 - } - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-gen2-main" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-gen2-main/Bucket/Resource" - } - }, - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucketPolicy14D90AB6": { - "Type": "AWS::S3::BucketPolicy", - "Properties": { - "Bucket": "amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:*", - "Condition": { - "Bool": { - "aws:SecureTransport": "false" - } - }, - "Effect": "Deny", - "Principal": { - "AWS": "*" - }, - "Resource": [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - "/*" - ] - ] - } - ] - }, - { - "Action": [ - "s3:PutBucketPolicy", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*" - ], - "Effect": "Allow", - "Principal": { - "AWS": "arn:aws:iam::123456789012:role/amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - }, - "Resource": [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - "/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-gen2-main/Bucket/Policy/Resource" - } - }, - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucketAutoDeleteObjectsCustomResource31970782": { - "Type": "Custom::S3AutoDeleteObjects", - "Properties": { - "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "BucketName": "amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc" - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-gen2-main/Bucket/AutoDeleteObjectsCustomResource/Default" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ] - }, - "ManagedPolicyArns": [ - { - "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" - }, - "Timeout": 900, - "MemorySize": 128, - "Handler": "index.handler", - "Role": "arn:aws:iam::123456789012:role/amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Runtime": "nodejs22.x", - "Description": { - "Fn::Join": [ - "", - [ - "Lambda function for auto-deleting objects in ", - "amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - " S3 bucket." - ] - ] - } - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", - "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", - "aws:asset:property": "Code" - } - }, - "BACKENDONLYCB1A13AB81664ECAA7D015068AB2D0165E0FAGEN2MAINBUCKETNAMEParameterF8DFE544": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/backendonly/gen2main-branch-8e0f260810/BACKENDONLYCB_1_A_13_AB_81664_ECAA_7_D_015068_AB_2_D_0165_E_0_FA_GEN_2_MAIN_BUCKET_NAME", - "Tags": { - "amplify:app-id": "backendonly", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": "amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/BACKENDONLYCB_1_A_13_AB_81664_ECAA_7_D_015068_AB_2_D_0165_E_0_FA_GEN_2_MAIN_BUCKET_NAMEParameter/Resource" - } - }, - "amplifybackendonlygen2mainbranch8e0f260810storageAccess30A2D62BD": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - "/public/*" - ] - ] - } - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/*", - "public/" - ] - } - }, - "Effect": "Allow", - "Resource": "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "amplifybackendonlygen2mainbranch8e0f260810storageAccess30A2D62BD", - "Roles": [ - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/amplify-backendonly-gen2main-branch-8e0f260810--storageAccess3/Resource" - } - }, - "amplifybackendonlygen2mainbranch8e0f260810storageAccess4B03641A3": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:PutObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/*", - "public/", - "protected/*", - "protected/", - "private/*", - "private/" - ] - } - }, - "Effect": "Allow", - "Resource": "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc" - }, - { - "Action": "s3:DeleteObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc", - "/private/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "amplifybackendonlygen2mainbranch8e0f260810storageAccess4B03641A3", - "Roles": [ - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/amplify-backendonly-gen2main-branch-8e0f260810--storageAccess4/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WLTQ6CMBCFz8K+jIgu3Cp7Q+AAppaRjNA26QwQ03B3QyASV+97fznk5yNkiZ44NU2X9vSEeEcWbGrRplN64kfkE8TbYDoUVbzcRquUvifz2ePVz4rZQqwlkGtLHbRFwbCsfmZWpC3E/b89Z1UMLN5WyH4IBpdq57+qDH6kBsNNM6orM0otuiXXzsr5BuHNhzHP4XiBLHkzURoGJ2QRqlW/LyyDFv0AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref": { - "Type": "String" - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef": { - "Type": "String" - } - }, - "Outputs": { - "amplifybackendonlygen2mainbranch8e0f260810storagebackendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket8CDA8E49Ref": { - "Value": "amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.parameters.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.parameters.json deleted file mode 100644 index 8838fdc3782..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.parameters.json +++ /dev/null @@ -1,146 +0,0 @@ -[ - { - "ParameterKey": "usernameAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "authRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-backendonly-main-5e0fa-authRole" - }, - { - "ParameterKey": "autoVerifiedAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "allowUnauthenticatedIdentities", - "ParameterValue": "true" - }, - { - "ParameterKey": "smsVerificationMessage", - "ParameterValue": "Your verification code is {####}" - }, - { - "ParameterKey": "userpoolClientReadAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "breakCircularDependency", - "ParameterValue": "true" - }, - { - "ParameterKey": "mfaTypes", - "ParameterValue": "SMS Text Message" - }, - { - "ParameterKey": "emailVerificationSubject", - "ParameterValue": "Your verification code" - }, - { - "ParameterKey": "sharedId", - "ParameterValue": "f8c4c57b" - }, - { - "ParameterKey": "useDefault", - "ParameterValue": "default" - }, - { - "ParameterKey": "userpoolClientGenerateSecret", - "ParameterValue": "false" - }, - { - "ParameterKey": "mfaConfiguration", - "ParameterValue": "OFF" - }, - { - "ParameterKey": "identityPoolName", - "ParameterValue": "backendonlyf8c4c57b_identitypool_f8c4c57b" - }, - { - "ParameterKey": "userPoolGroupList", - "ParameterValue": "" - }, - { - "ParameterKey": "authSelections", - "ParameterValue": "identityPoolAndUserPool" - }, - { - "ParameterKey": "resourceNameTruncated", - "ParameterValue": "backenf8c4c57b" - }, - { - "ParameterKey": "smsAuthenticationMessage", - "ParameterValue": "Your authentication code is {####}" - }, - { - "ParameterKey": "passwordPolicyMinLength", - "ParameterValue": "8" - }, - { - "ParameterKey": "userPoolName", - "ParameterValue": "backendonlyf8c4c57b_userpool_f8c4c57b" - }, - { - "ParameterKey": "userpoolClientWriteAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "dependsOn", - "ParameterValue": "" - }, - { - "ParameterKey": "useEnabledMfas", - "ParameterValue": "true" - }, - { - "ParameterKey": "usernameCaseSensitive", - "ParameterValue": "false" - }, - { - "ParameterKey": "resourceName", - "ParameterValue": "backendonlyf8c4c57b" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "serviceName", - "ParameterValue": "Cognito" - }, - { - "ParameterKey": "emailVerificationMessage", - "ParameterValue": "Your verification code is {####}" - }, - { - "ParameterKey": "userpoolClientRefreshTokenValidity", - "ParameterValue": "30" - }, - { - "ParameterKey": "userpoolClientSetAttributes", - "ParameterValue": "false" - }, - { - "ParameterKey": "unauthRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-backendonly-main-5e0fa-unauthRole" - }, - { - "ParameterKey": "requiredAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "passwordPolicyCharacters", - "ParameterValue": "" - }, - { - "ParameterKey": "aliasAttributes", - "ParameterValue": "" - }, - { - "ParameterKey": "userpoolClientLambdaRole", - "ParameterValue": "backenf8c4c57b_userpoolclient_lambda_role" - }, - { - "ParameterKey": "defaultPasswordPolicy", - "ParameterValue": "false" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.template.json deleted file mode 100644 index f92f2b63239..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.template.json +++ /dev/null @@ -1,316 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "env": { - "Type": "String" - }, - "identityPoolName": { - "Type": "String" - }, - "allowUnauthenticatedIdentities": { - "Type": "String" - }, - "resourceNameTruncated": { - "Type": "String" - }, - "userPoolName": { - "Type": "String" - }, - "autoVerifiedAttributes": { - "Type": "CommaDelimitedList" - }, - "mfaConfiguration": { - "Type": "String" - }, - "mfaTypes": { - "Type": "CommaDelimitedList" - }, - "smsAuthenticationMessage": { - "Type": "String" - }, - "smsVerificationMessage": { - "Type": "String" - }, - "emailVerificationSubject": { - "Type": "String" - }, - "emailVerificationMessage": { - "Type": "String" - }, - "defaultPasswordPolicy": { - "Type": "String" - }, - "passwordPolicyMinLength": { - "Type": "String" - }, - "passwordPolicyCharacters": { - "Type": "CommaDelimitedList" - }, - "requiredAttributes": { - "Type": "CommaDelimitedList" - }, - "aliasAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientGenerateSecret": { - "Type": "String" - }, - "userpoolClientRefreshTokenValidity": { - "Type": "String" - }, - "userpoolClientWriteAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientReadAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientLambdaRole": { - "Type": "String" - }, - "userpoolClientSetAttributes": { - "Type": "String" - }, - "sharedId": { - "Type": "String" - }, - "resourceName": { - "Type": "String" - }, - "authSelections": { - "Type": "String" - }, - "useDefault": { - "Type": "String" - }, - "usernameAttributes": { - "Type": "CommaDelimitedList" - }, - "userPoolGroupList": { - "Type": "CommaDelimitedList" - }, - "serviceName": { - "Type": "String" - }, - "usernameCaseSensitive": { - "Type": "String" - }, - "useEnabledMfas": { - "Type": "String" - }, - "authRoleArn": { - "Type": "String" - }, - "unauthRoleArn": { - "Type": "String" - }, - "breakCircularDependency": { - "Type": "String" - }, - "dependsOn": { - "Type": "CommaDelimitedList" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - "main", - "NONE" - ] - } - }, - "Resources": { - "UserPool": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": "Your verification code is {####}", - "EmailVerificationSubject": "Your verification code", - "MfaConfiguration": "OFF", - "Policies": { - "PasswordPolicy": { - "MinimumLength": "8", - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolName": { - "Fn::Join": [ - "", - [ - "backendonlyf8c4c57b_userpool_f8c4c57b", - "-", - "main" - ] - ] - }, - "UsernameAttributes": [ - "email" - ], - "UsernameConfiguration": { - "CaseSensitive": false - } - } - }, - "UserPoolClientWeb": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "backenf8c4c57b_app_clientWeb", - "RefreshTokenValidity": "30", - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": "us-east-1_1rvCNKN5B" - } - }, - "UserPoolClient": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "backenf8c4c57b_app_client", - "GenerateSecret": "false", - "RefreshTokenValidity": "30", - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": "us-east-1_1rvCNKN5B" - } - }, - "UserPoolClientRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - }, - "Action": "sts:AssumeRole" - } - ] - }, - "RoleName": { - "Fn::Join": [ - "", - [ - "upClientLambdaRolef8c4c57b", - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - "amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A" - ] - } - ] - }, - "-", - "main" - ] - ] - } - } - }, - "IdentityPool": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": "true", - "CognitoIdentityProviders": [ - { - "ClientId": "773c808k3864f2k0sqk4j71gsj", - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": "us-east-1_1rvCNKN5B" - } - ] - } - }, - { - "ClientId": "2udsup370on7n0b1gdf8hpijc6", - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": "us-east-1_1rvCNKN5B" - } - ] - } - } - ], - "IdentityPoolName": { - "Fn::Join": [ - "", - [ - "backendonlyf8c4c57b_identitypool_f8c4c57b__", - "main" - ] - ] - } - } - }, - "IdentityPoolRoleMap": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": "us-east-1:3d2fd52c-2247-42b8-8773-3102fce814b8", - "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-backendonly-main-5e0fa-unauthRole", - "authenticated": "arn:aws:iam::123456789012:role/amplify-backendonly-main-5e0fa-authRole" - } - } - } - }, - "Outputs": { - "IdentityPoolId": { - "Description": "Id for the identity pool", - "Value": "us-east-1:3d2fd52c-2247-42b8-8773-3102fce814b8" - }, - "IdentityPoolName": { - "Value": "backendonlyf8c4c57b_identitypool_f8c4c57b__main" - }, - "UserPoolId": { - "Description": "Id for the user pool", - "Value": "us-east-1_1rvCNKN5B" - }, - "UserPoolArn": { - "Description": "Arn for the user pool", - "Value": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1rvCNKN5B" - }, - "UserPoolName": { - "Value": "backendonlyf8c4c57b_userpool_f8c4c57b" - }, - "AppClientIDWeb": { - "Description": "The user pool app client id for web", - "Value": "2udsup370on7n0b1gdf8hpijc6" - }, - "AppClientID": { - "Description": "The user pool app client id", - "Value": "773c808k3864f2k0sqk4j71gsj" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.parameters.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.parameters.json deleted file mode 100644 index 9575dd3277d..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.parameters.json +++ /dev/null @@ -1,86 +0,0 @@ -[ - { - "ParameterKey": "s3PermissionsGuestPublic", - "ParameterValue": "s3:GetObject" - }, - { - "ParameterKey": "bucketName", - "ParameterValue": "backendonlycb1a13ab81664ecaa7d015068ab2d016" - }, - { - "ParameterKey": "s3PublicPolicy", - "ParameterValue": "Public_policy_c31471c3" - }, - { - "ParameterKey": "AuthenticatedAllowList", - "ParameterValue": "ALLOW" - }, - { - "ParameterKey": "unauthRoleName", - "ParameterValue": "amplify-backendonly-main-5e0fa-unauthRole" - }, - { - "ParameterKey": "s3PrivatePolicy", - "ParameterValue": "Private_policy_c31471c3" - }, - { - "ParameterKey": "selectedGuestPermissions", - "ParameterValue": "s3:GetObject,s3:ListBucket" - }, - { - "ParameterKey": "s3PermissionsAuthenticatedPublic", - "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" - }, - { - "ParameterKey": "s3PermissionsAuthenticatedPrivate", - "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" - }, - { - "ParameterKey": "s3PermissionsAuthenticatedUploads", - "ParameterValue": "s3:PutObject" - }, - { - "ParameterKey": "s3UploadsPolicy", - "ParameterValue": "Uploads_policy_c31471c3" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "unauthPolicyName", - "ParameterValue": "s3_amplify_c31471c3" - }, - { - "ParameterKey": "authRoleName", - "ParameterValue": "amplify-backendonly-main-5e0fa-authRole" - }, - { - "ParameterKey": "GuestAllowList", - "ParameterValue": "ALLOW" - }, - { - "ParameterKey": "authPolicyName", - "ParameterValue": "s3_amplify_c31471c3" - }, - { - "ParameterKey": "s3ProtectedPolicy", - "ParameterValue": "Protected_policy_c31471c3" - }, - { - "ParameterKey": "s3PermissionsAuthenticatedProtected", - "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" - }, - { - "ParameterKey": "s3PermissionsGuestUploads", - "ParameterValue": "DISALLOW" - }, - { - "ParameterKey": "s3ReadPolicy", - "ParameterValue": "read_policy_c31471c3" - }, - { - "ParameterKey": "selectedAuthenticatedPermissions", - "ParameterValue": "s3:PutObject,s3:GetObject,s3:ListBucket,s3:DeleteObject" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.template.json deleted file mode 100644 index 87ee6202dd7..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.template.json +++ /dev/null @@ -1,533 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-S3\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "env": { - "Type": "String" - }, - "bucketName": { - "Type": "String" - }, - "authRoleName": { - "Type": "String" - }, - "unauthRoleName": { - "Type": "String" - }, - "authPolicyName": { - "Type": "String" - }, - "unauthPolicyName": { - "Type": "String" - }, - "s3PublicPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3PrivatePolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3ProtectedPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3UploadsPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3ReadPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3PermissionsAuthenticatedPublic": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedProtected": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedPrivate": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedUploads": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsGuestPublic": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsGuestUploads": { - "Type": "String", - "Default": "DISALLOW" - }, - "AuthenticatedAllowList": { - "Type": "String", - "Default": "DISALLOW" - }, - "GuestAllowList": { - "Type": "String", - "Default": "DISALLOW" - }, - "selectedGuestPermissions": { - "Type": "CommaDelimitedList", - "Default": "NONE" - }, - "selectedAuthenticatedPermissions": { - "Type": "CommaDelimitedList", - "Default": "NONE" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - "main", - "NONE" - ] - }, - "CreateAuthPublic": { - "Fn::Not": [ - { - "Fn::Equals": [ - "s3:PutObject,s3:GetObject,s3:DeleteObject", - "DISALLOW" - ] - } - ] - }, - "CreateAuthProtected": { - "Fn::Not": [ - { - "Fn::Equals": [ - "s3:PutObject,s3:GetObject,s3:DeleteObject", - "DISALLOW" - ] - } - ] - }, - "CreateAuthPrivate": { - "Fn::Not": [ - { - "Fn::Equals": [ - "s3:PutObject,s3:GetObject,s3:DeleteObject", - "DISALLOW" - ] - } - ] - }, - "CreateAuthUploads": { - "Fn::Not": [ - { - "Fn::Equals": [ - "s3:PutObject", - "DISALLOW" - ] - } - ] - }, - "CreateGuestPublic": { - "Fn::Not": [ - { - "Fn::Equals": [ - "s3:GetObject", - "DISALLOW" - ] - } - ] - }, - "CreateGuestUploads": { - "Fn::Not": [ - { - "Fn::Equals": [ - "DISALLOW", - "DISALLOW" - ] - } - ] - }, - "AuthReadAndList": { - "Fn::Not": [ - { - "Fn::Equals": [ - "ALLOW", - "DISALLOW" - ] - } - ] - }, - "GuestReadAndList": { - "Fn::Not": [ - { - "Fn::Equals": [ - "ALLOW", - "DISALLOW" - ] - } - ] - } - }, - "Outputs": { - "BucketName": { - "Description": "Bucket name for the S3 bucket", - "Value": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-main" - }, - "Region": { - "Value": "us-east-1" - } - }, - "Resources": { - "S3Bucket": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketName": { - "Fn::Join": [ - "", - [ - "backendonlycb1a13ab81664ecaa7d015068ab2d016", - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - "amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR" - ] - } - ] - }, - "-", - "main" - ] - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "Id": "S3CORSRuleId1", - "MaxAge": 3000 - } - ] - }, - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - } - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain" - }, - "S3AuthPublicPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - "s3:PutObject,s3:GetObject,s3:DeleteObject" - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-main", - "/public/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "Public_policy_c31471c3", - "Roles": [ - "amplify-backendonly-main-5e0fa-authRole" - ] - }, - "Condition": "CreateAuthPublic" - }, - "S3AuthProtectedPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - "s3:PutObject,s3:GetObject,s3:DeleteObject" - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-main", - "/protected/${cognito-identity.amazonaws.com:sub}/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "Protected_policy_c31471c3", - "Roles": [ - "amplify-backendonly-main-5e0fa-authRole" - ] - }, - "Condition": "CreateAuthProtected" - }, - "S3AuthPrivatePolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - "s3:PutObject,s3:GetObject,s3:DeleteObject" - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-main", - "/private/${cognito-identity.amazonaws.com:sub}/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "Private_policy_c31471c3", - "Roles": [ - "amplify-backendonly-main-5e0fa-authRole" - ] - }, - "Condition": "CreateAuthPrivate" - }, - "S3AuthUploadPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - "s3:PutObject" - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-main", - "/uploads/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "Uploads_policy_c31471c3", - "Roles": [ - "amplify-backendonly-main-5e0fa-authRole" - ] - }, - "Condition": "CreateAuthUploads" - }, - "S3GuestPublicPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - "s3:GetObject" - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-main", - "/public/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "Public_policy_c31471c3", - "Roles": [ - "amplify-backendonly-main-5e0fa-unauthRole" - ] - }, - "Condition": "CreateGuestPublic" - }, - "S3AuthReadPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-main", - "/protected/*" - ] - ] - } - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/", - "public/*", - "protected/", - "protected/*", - "private/${cognito-identity.amazonaws.com:sub}/", - "private/${cognito-identity.amazonaws.com:sub}/*" - ] - } - }, - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-main" - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "read_policy_c31471c3", - "Roles": [ - "amplify-backendonly-main-5e0fa-authRole" - ] - }, - "Condition": "AuthReadAndList" - }, - "S3GuestReadPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-main", - "/protected/*" - ] - ] - } - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/", - "public/*", - "protected/", - "protected/*" - ] - } - }, - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-main" - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "read_policy_c31471c3", - "Roles": [ - "amplify-backendonly-main-5e0fa-unauthRole" - ] - }, - "Condition": "GuestReadAndList" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-x-x-authbackendonlyf8c4c57b-x.parameters.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-x-x-authbackendonlyf8c4c57b-x.parameters.json new file mode 100644 index 00000000000..0f2a056d0f1 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-x-x-authbackendonlyf8c4c57b-x.parameters.json @@ -0,0 +1,146 @@ +[ + { + "ParameterKey": "usernameAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "authRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-backendonly-x-x-authRole" + }, + { + "ParameterKey": "autoVerifiedAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "allowUnauthenticatedIdentities", + "ParameterValue": "true" + }, + { + "ParameterKey": "smsVerificationMessage", + "ParameterValue": "Your verification code is {####}" + }, + { + "ParameterKey": "userpoolClientReadAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "breakCircularDependency", + "ParameterValue": "true" + }, + { + "ParameterKey": "mfaTypes", + "ParameterValue": "SMS Text Message" + }, + { + "ParameterKey": "emailVerificationSubject", + "ParameterValue": "Your verification code" + }, + { + "ParameterKey": "sharedId", + "ParameterValue": "f8c4c57b" + }, + { + "ParameterKey": "useDefault", + "ParameterValue": "default" + }, + { + "ParameterKey": "userpoolClientGenerateSecret", + "ParameterValue": "false" + }, + { + "ParameterKey": "mfaConfiguration", + "ParameterValue": "OFF" + }, + { + "ParameterKey": "identityPoolName", + "ParameterValue": "backendonlyf8c4c57b_identitypool_f8c4c57b" + }, + { + "ParameterKey": "userPoolGroupList", + "ParameterValue": "" + }, + { + "ParameterKey": "authSelections", + "ParameterValue": "identityPoolAndUserPool" + }, + { + "ParameterKey": "resourceNameTruncated", + "ParameterValue": "backenf8c4c57b" + }, + { + "ParameterKey": "smsAuthenticationMessage", + "ParameterValue": "Your authentication code is {####}" + }, + { + "ParameterKey": "passwordPolicyMinLength", + "ParameterValue": "8" + }, + { + "ParameterKey": "userPoolName", + "ParameterValue": "backendonlyf8c4c57b_userpool_f8c4c57b" + }, + { + "ParameterKey": "userpoolClientWriteAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "dependsOn", + "ParameterValue": "" + }, + { + "ParameterKey": "useEnabledMfas", + "ParameterValue": "true" + }, + { + "ParameterKey": "usernameCaseSensitive", + "ParameterValue": "false" + }, + { + "ParameterKey": "resourceName", + "ParameterValue": "backendonlyf8c4c57b" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "serviceName", + "ParameterValue": "Cognito" + }, + { + "ParameterKey": "emailVerificationMessage", + "ParameterValue": "Your verification code is {####}" + }, + { + "ParameterKey": "userpoolClientRefreshTokenValidity", + "ParameterValue": "30" + }, + { + "ParameterKey": "userpoolClientSetAttributes", + "ParameterValue": "false" + }, + { + "ParameterKey": "unauthRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-backendonly-x-x-unauthRole" + }, + { + "ParameterKey": "requiredAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "passwordPolicyCharacters", + "ParameterValue": "" + }, + { + "ParameterKey": "aliasAttributes", + "ParameterValue": "" + }, + { + "ParameterKey": "userpoolClientLambdaRole", + "ParameterValue": "backenf8c4c57b_userpoolclient_lambda_role" + }, + { + "ParameterKey": "defaultPasswordPolicy", + "ParameterValue": "false" + } +] diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-x-x-authbackendonlyf8c4c57b-x.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-x-x-authbackendonlyf8c4c57b-x.template.json new file mode 100644 index 00000000000..29e2679df3d --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-x-x-authbackendonlyf8c4c57b-x.template.json @@ -0,0 +1,316 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "identityPoolName": { + "Type": "String" + }, + "allowUnauthenticatedIdentities": { + "Type": "String" + }, + "resourceNameTruncated": { + "Type": "String" + }, + "userPoolName": { + "Type": "String" + }, + "autoVerifiedAttributes": { + "Type": "CommaDelimitedList" + }, + "mfaConfiguration": { + "Type": "String" + }, + "mfaTypes": { + "Type": "CommaDelimitedList" + }, + "smsAuthenticationMessage": { + "Type": "String" + }, + "smsVerificationMessage": { + "Type": "String" + }, + "emailVerificationSubject": { + "Type": "String" + }, + "emailVerificationMessage": { + "Type": "String" + }, + "defaultPasswordPolicy": { + "Type": "String" + }, + "passwordPolicyMinLength": { + "Type": "String" + }, + "passwordPolicyCharacters": { + "Type": "CommaDelimitedList" + }, + "requiredAttributes": { + "Type": "CommaDelimitedList" + }, + "aliasAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientGenerateSecret": { + "Type": "String" + }, + "userpoolClientRefreshTokenValidity": { + "Type": "String" + }, + "userpoolClientWriteAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientReadAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientLambdaRole": { + "Type": "String" + }, + "userpoolClientSetAttributes": { + "Type": "String" + }, + "sharedId": { + "Type": "String" + }, + "resourceName": { + "Type": "String" + }, + "authSelections": { + "Type": "String" + }, + "useDefault": { + "Type": "String" + }, + "usernameAttributes": { + "Type": "CommaDelimitedList" + }, + "userPoolGroupList": { + "Type": "CommaDelimitedList" + }, + "serviceName": { + "Type": "String" + }, + "usernameCaseSensitive": { + "Type": "String" + }, + "useEnabledMfas": { + "Type": "String" + }, + "authRoleArn": { + "Type": "String" + }, + "unauthRoleArn": { + "Type": "String" + }, + "breakCircularDependency": { + "Type": "String" + }, + "dependsOn": { + "Type": "CommaDelimitedList" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + "x", + "NONE" + ] + } + }, + "Resources": { + "UserPool": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": "8", + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolName": { + "Fn::Join": [ + "", + [ + "backendonlyf8c4c57b_userpool_f8c4c57b", + "-", + "x" + ] + ] + }, + "UsernameAttributes": [ + "email" + ], + "UsernameConfiguration": { + "CaseSensitive": false + } + } + }, + "UserPoolClientWeb": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "backenf8c4c57b_app_clientWeb", + "RefreshTokenValidity": "30", + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": "us-east-1_cI3qDOXA2" + } + }, + "UserPoolClient": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "backenf8c4c57b_app_client", + "GenerateSecret": "false", + "RefreshTokenValidity": "30", + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": "us-east-1_cI3qDOXA2" + } + }, + "UserPoolClientRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + }, + "Action": "sts:AssumeRole" + } + ] + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "upClientLambdaRolef8c4c57b", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + "amplify-backendonly-x-x-authbackendonlyf8c4c57b-x" + ] + } + ] + }, + "-", + "x" + ] + ] + } + } + }, + "IdentityPool": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": "true", + "CognitoIdentityProviders": [ + { + "ClientId": "3ggneb92n0rfe5qet1h7p48evc", + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": "us-east-1_cI3qDOXA2" + } + ] + } + }, + { + "ClientId": "6h7936arcjp36o7dhshkqb6d2a", + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": "us-east-1_cI3qDOXA2" + } + ] + } + } + ], + "IdentityPoolName": { + "Fn::Join": [ + "", + [ + "backendonlyf8c4c57b_identitypool_f8c4c57b__", + "x" + ] + ] + } + } + }, + "IdentityPoolRoleMap": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:ad436de3-7529-46d9-be87-050ea1dd015c", + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-backendonly-x-x-unauthRole", + "authenticated": "arn:aws:iam::123456789012:role/amplify-backendonly-x-x-authRole" + } + } + } + }, + "Outputs": { + "IdentityPoolId": { + "Description": "Id for the identity pool", + "Value": "us-east-1:ad436de3-7529-46d9-be87-050ea1dd015c" + }, + "IdentityPoolName": { + "Value": "backendonlyf8c4c57b_identitypool_f8c4c57b__x" + }, + "UserPoolId": { + "Description": "Id for the user pool", + "Value": "us-east-1_cI3qDOXA2" + }, + "UserPoolArn": { + "Description": "Arn for the user pool", + "Value": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_cI3qDOXA2" + }, + "UserPoolName": { + "Value": "backendonlyf8c4c57b_userpool_f8c4c57b" + }, + "AppClientIDWeb": { + "Description": "The user pool app client id for web", + "Value": "6h7936arcjp36o7dhshkqb6d2a" + }, + "AppClientID": { + "Description": "The user pool app client id", + "Value": "3ggneb92n0rfe5qet1h7p48evc" + } + } +} diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-x-x-storages3c31471c3-x.parameters.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-x-x-storages3c31471c3-x.parameters.json new file mode 100644 index 00000000000..a66ebe73634 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-x-x-storages3c31471c3-x.parameters.json @@ -0,0 +1,86 @@ +[ + { + "ParameterKey": "s3PermissionsGuestPublic", + "ParameterValue": "s3:GetObject" + }, + { + "ParameterKey": "bucketName", + "ParameterValue": "backendonlycb1a13ab81664ecaa7d015068ab2d016" + }, + { + "ParameterKey": "s3PublicPolicy", + "ParameterValue": "Public_policy_c31471c3" + }, + { + "ParameterKey": "AuthenticatedAllowList", + "ParameterValue": "ALLOW" + }, + { + "ParameterKey": "unauthRoleName", + "ParameterValue": "amplify-backendonly-x-x-unauthRole" + }, + { + "ParameterKey": "s3PrivatePolicy", + "ParameterValue": "Private_policy_c31471c3" + }, + { + "ParameterKey": "selectedGuestPermissions", + "ParameterValue": "s3:GetObject,s3:ListBucket" + }, + { + "ParameterKey": "s3PermissionsAuthenticatedPublic", + "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" + }, + { + "ParameterKey": "s3PermissionsAuthenticatedPrivate", + "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" + }, + { + "ParameterKey": "s3PermissionsAuthenticatedUploads", + "ParameterValue": "s3:PutObject" + }, + { + "ParameterKey": "s3UploadsPolicy", + "ParameterValue": "Uploads_policy_c31471c3" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "unauthPolicyName", + "ParameterValue": "s3_amplify_c31471c3" + }, + { + "ParameterKey": "authRoleName", + "ParameterValue": "amplify-backendonly-x-x-authRole" + }, + { + "ParameterKey": "GuestAllowList", + "ParameterValue": "ALLOW" + }, + { + "ParameterKey": "authPolicyName", + "ParameterValue": "s3_amplify_c31471c3" + }, + { + "ParameterKey": "s3ProtectedPolicy", + "ParameterValue": "Protected_policy_c31471c3" + }, + { + "ParameterKey": "s3PermissionsAuthenticatedProtected", + "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" + }, + { + "ParameterKey": "s3PermissionsGuestUploads", + "ParameterValue": "DISALLOW" + }, + { + "ParameterKey": "s3ReadPolicy", + "ParameterValue": "read_policy_c31471c3" + }, + { + "ParameterKey": "selectedAuthenticatedPermissions", + "ParameterValue": "s3:PutObject,s3:GetObject,s3:ListBucket,s3:DeleteObject" + } +] diff --git a/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-x-x-storages3c31471c3-x.template.json b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-x-x-storages3c31471c3-x.template.json new file mode 100644 index 00000000000..f2017f19297 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.post.refactor/update.amplify-backendonly-x-x-storages3c31471c3-x.template.json @@ -0,0 +1,533 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-S3\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "bucketName": { + "Type": "String" + }, + "authRoleName": { + "Type": "String" + }, + "unauthRoleName": { + "Type": "String" + }, + "authPolicyName": { + "Type": "String" + }, + "unauthPolicyName": { + "Type": "String" + }, + "s3PublicPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3PrivatePolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3ProtectedPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3UploadsPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3ReadPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3PermissionsAuthenticatedPublic": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedProtected": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedPrivate": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedUploads": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsGuestPublic": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsGuestUploads": { + "Type": "String", + "Default": "DISALLOW" + }, + "AuthenticatedAllowList": { + "Type": "String", + "Default": "DISALLOW" + }, + "GuestAllowList": { + "Type": "String", + "Default": "DISALLOW" + }, + "selectedGuestPermissions": { + "Type": "CommaDelimitedList", + "Default": "NONE" + }, + "selectedAuthenticatedPermissions": { + "Type": "CommaDelimitedList", + "Default": "NONE" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + "x", + "NONE" + ] + }, + "CreateAuthPublic": { + "Fn::Not": [ + { + "Fn::Equals": [ + "s3:PutObject,s3:GetObject,s3:DeleteObject", + "DISALLOW" + ] + } + ] + }, + "CreateAuthProtected": { + "Fn::Not": [ + { + "Fn::Equals": [ + "s3:PutObject,s3:GetObject,s3:DeleteObject", + "DISALLOW" + ] + } + ] + }, + "CreateAuthPrivate": { + "Fn::Not": [ + { + "Fn::Equals": [ + "s3:PutObject,s3:GetObject,s3:DeleteObject", + "DISALLOW" + ] + } + ] + }, + "CreateAuthUploads": { + "Fn::Not": [ + { + "Fn::Equals": [ + "s3:PutObject", + "DISALLOW" + ] + } + ] + }, + "CreateGuestPublic": { + "Fn::Not": [ + { + "Fn::Equals": [ + "s3:GetObject", + "DISALLOW" + ] + } + ] + }, + "CreateGuestUploads": { + "Fn::Not": [ + { + "Fn::Equals": [ + "DISALLOW", + "DISALLOW" + ] + } + ] + }, + "AuthReadAndList": { + "Fn::Not": [ + { + "Fn::Equals": [ + "ALLOW", + "DISALLOW" + ] + } + ] + }, + "GuestReadAndList": { + "Fn::Not": [ + { + "Fn::Equals": [ + "ALLOW", + "DISALLOW" + ] + } + ] + } + }, + "Outputs": { + "BucketName": { + "Description": "Bucket name for the S3 bucket", + "Value": "backendonlycb1a13ab81664ecaa7d015068ab2d016x-x" + }, + "Region": { + "Value": "us-east-1" + } + }, + "Resources": { + "S3Bucket": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketName": { + "Fn::Join": [ + "", + [ + "backendonlycb1a13ab81664ecaa7d015068ab2d016", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + "amplify-backendonly-x-x-storages3c31471c3-x" + ] + } + ] + }, + "-", + "x" + ] + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "Id": "S3CORSRuleId1", + "MaxAge": 3000 + } + ] + }, + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + } + }, + "UpdateReplacePolicy": "Retain", + "DeletionPolicy": "Retain" + }, + "S3AuthPublicPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + "s3:PutObject,s3:GetObject,s3:DeleteObject" + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "backendonlycb1a13ab81664ecaa7d015068ab2d016x-x", + "/public/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "Public_policy_c31471c3", + "Roles": [ + "amplify-backendonly-x-x-authRole" + ] + }, + "Condition": "CreateAuthPublic" + }, + "S3AuthProtectedPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + "s3:PutObject,s3:GetObject,s3:DeleteObject" + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "backendonlycb1a13ab81664ecaa7d015068ab2d016x-x", + "/protected/${cognito-identity.amazonaws.com:sub}/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "Protected_policy_c31471c3", + "Roles": [ + "amplify-backendonly-x-x-authRole" + ] + }, + "Condition": "CreateAuthProtected" + }, + "S3AuthPrivatePolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + "s3:PutObject,s3:GetObject,s3:DeleteObject" + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "backendonlycb1a13ab81664ecaa7d015068ab2d016x-x", + "/private/${cognito-identity.amazonaws.com:sub}/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "Private_policy_c31471c3", + "Roles": [ + "amplify-backendonly-x-x-authRole" + ] + }, + "Condition": "CreateAuthPrivate" + }, + "S3AuthUploadPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + "s3:PutObject" + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "backendonlycb1a13ab81664ecaa7d015068ab2d016x-x", + "/uploads/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "Uploads_policy_c31471c3", + "Roles": [ + "amplify-backendonly-x-x-authRole" + ] + }, + "Condition": "CreateAuthUploads" + }, + "S3GuestPublicPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + "s3:GetObject" + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "backendonlycb1a13ab81664ecaa7d015068ab2d016x-x", + "/public/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "Public_policy_c31471c3", + "Roles": [ + "amplify-backendonly-x-x-unauthRole" + ] + }, + "Condition": "CreateGuestPublic" + }, + "S3AuthReadPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "backendonlycb1a13ab81664ecaa7d015068ab2d016x-x", + "/protected/*" + ] + ] + } + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/", + "public/*", + "protected/", + "protected/*", + "private/${cognito-identity.amazonaws.com:sub}/", + "private/${cognito-identity.amazonaws.com:sub}/*" + ] + } + }, + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "backendonlycb1a13ab81664ecaa7d015068ab2d016x-x" + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "read_policy_c31471c3", + "Roles": [ + "amplify-backendonly-x-x-authRole" + ] + }, + "Condition": "AuthReadAndList" + }, + "S3GuestReadPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "backendonlycb1a13ab81664ecaa7d015068ab2d016x-x", + "/protected/*" + ] + ] + } + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/", + "public/*", + "protected/", + "protected/*" + ] + } + }, + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "backendonlycb1a13ab81664ecaa7d015068ab2d016x-x" + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "read_policy_c31471c3", + "Roles": [ + "amplify-backendonly-x-x-unauthRole" + ] + }, + "Condition": "GuestReadAndList" + } + } +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/.gitignore b/amplify-migration-apps/backend-only/_snapshot.pre.generate/.gitignore index 4a025af5313..8c9162f3547 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/.gitignore +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/.gitignore @@ -36,7 +36,6 @@ dist/ node_modules/ aws-exports.js awsconfiguration.json -amplifyconfiguration.json amplifyconfiguration.dart amplify-build-config.json amplify-gradle-config.json diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json index d4ba3e5e0d2..d519c6239a5 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json @@ -1,14 +1,14 @@ { "providers": { "awscloudformation": { - "AuthRoleName": "amplify-backendonly-main-5e0fa-authRole", - "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-backendonly-main-5e0fa-unauthRole", - "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-backendonly-main-5e0fa-authRole", + "AuthRoleName": "amplify-backendonly-x-x-authRole", + "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-backendonly-x-x-unauthRole", + "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-backendonly-x-x-authRole", "Region": "us-east-1", - "DeploymentBucketName": "amplify-backendonly-main-5e0fa-deployment", - "UnauthRoleName": "amplify-backendonly-main-5e0fa-unauthRole", - "StackName": "amplify-backendonly-main-5e0fa", - "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-backendonly-main-5e0fa/6563d5d0-1b19-11f1-9ce2-0e0bf294f4d9", + "DeploymentBucketName": "amplify-backendonly-x-x-deployment", + "UnauthRoleName": "amplify-backendonly-x-x-unauthRole", + "StackName": "amplify-backendonly-x-x", + "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-backendonly-x-x/53088ca0-387e-11f1-b94b-12f2170fbccd", "AmplifyAppId": "backendonly" } }, @@ -39,17 +39,17 @@ ] }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-main-5e0fa-deployment/amplify-cfn-templates/auth/backendonlyf8c4c57b-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-x-x-deployment/amplify-cfn-templates/auth/backendonlyf8c4c57b-cloudformation-template.json", "logicalId": "authbackendonlyf8c4c57b" }, - "lastPushTimeStamp": "2026-03-08T18:15:12.219Z", + "lastPushTimeStamp": "2026-04-15T03:56:34.413Z", "output": { - "UserPoolId": "us-east-1_1rvCNKN5B", - "AppClientIDWeb": "2udsup370on7n0b1gdf8hpijc6", - "AppClientID": "773c808k3864f2k0sqk4j71gsj", - "IdentityPoolId": "us-east-1:3d2fd52c-2247-42b8-8773-3102fce814b8", - "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1rvCNKN5B", - "IdentityPoolName": "backendonlyf8c4c57b_identitypool_f8c4c57b__main", + "UserPoolId": "us-east-1_cI3qDOXA2", + "AppClientIDWeb": "6h7936arcjp36o7dhshkqb6d2a", + "AppClientID": "3ggneb92n0rfe5qet1h7p48evc", + "IdentityPoolId": "us-east-1:ad436de3-7529-46d9-be87-050ea1dd015c", + "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_cI3qDOXA2", + "IdentityPoolName": "backendonlyf8c4c57b_identitypool_f8c4c57b__x", "UserPoolName": "backendonlyf8c4c57b_userpool_f8c4c57b" }, "lastPushDirHash": "686H3dissPlXxzTHFb9vBmwM2jw=" @@ -85,13 +85,13 @@ } ] }, - "GraphQLAPIIdOutput": "sgumi4ggubb4jdo6i54km7skka", - "GraphQLAPIEndpointOutput": "https://24agelrb6rgfrcvxhfwq53ge7a.appsync-api.us-east-1.amazonaws.com/graphql", + "GraphQLAPIIdOutput": "q2d7oghxlbgxxj3fr2t6f2bpm4", + "GraphQLAPIEndpointOutput": "https://b4xajwtybbb4hpq77w4ji2ntua.appsync-api.us-east-1.amazonaws.com/graphql", "GraphQLAPIKeyOutput": "da2-fakeapikey00000000000000" }, - "lastPushTimeStamp": "2026-03-08T18:15:12.219Z", + "lastPushTimeStamp": "2026-04-15T03:56:34.413Z", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-main-5e0fa-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", "logicalId": "apibackendonly" }, "lastPushDirHash": "6xeb+ZtO7QcOMff2eTn6QF9a60Y=" @@ -102,13 +102,13 @@ "service": "S3", "providerPlugin": "awscloudformation", "dependsOn": [], - "lastPushTimeStamp": "2026-03-08T18:15:12.219Z", + "lastPushTimeStamp": "2026-04-15T03:56:34.413Z", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-main-5e0fa-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-x-x-deployment/amplify-cfn-templates/storage/cloudformation-template.json", "logicalId": "storages3c31471c3" }, "output": { - "BucketName": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-main", + "BucketName": "backendonlycb1a13ab81664ecaa7d015068ab2d016x-x", "Region": "us-east-1" }, "lastPushDirHash": "5S73DL/tGImodFS4Yhe8QtAEepc=" @@ -119,27 +119,27 @@ "build": true, "providerPlugin": "awscloudformation", "service": "Lambda", - "lastBuildTimeStamp": "2026-03-08T18:09:55.981Z", + "lastBuildTimeStamp": "2026-04-15T03:51:48.792Z", "lastBuildType": "PROD", - "lastPackageTimeStamp": "2026-03-08T18:09:56.174Z", + "lastPackageTimeStamp": "2026-04-15T03:51:49.000Z", "distZipFilename": "quotegeneratorbe-513654756a51615a5779-build.zip", "s3Bucket": { - "deploymentBucketName": "amplify-backendonly-main-5e0fa-deployment", + "deploymentBucketName": "amplify-backendonly-x-x-deployment", "s3Key": "amplify-builds/quotegeneratorbe-513654756a51615a5779-build.zip" }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-main-5e0fa-deployment/amplify-cfn-templates/function/quotegeneratorbe-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-x-x-deployment/amplify-cfn-templates/function/quotegeneratorbe-cloudformation-template.json", "logicalId": "functionquotegeneratorbe" }, - "lastPushTimeStamp": "2026-03-08T18:15:12.219Z", + "lastPushTimeStamp": "2026-04-15T03:56:34.413Z", "output": { - "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/backendonlyLambdaRole8a0d8e62-main", + "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/backendonlyLambdaRole8a0d8e62-x", "Region": "us-east-1", - "Arn": "arn:aws:lambda:us-east-1:123456789012:function:quotegeneratorbe-main", - "Name": "quotegeneratorbe-main", - "LambdaExecutionRole": "backendonlyLambdaRole8a0d8e62-main" + "Arn": "arn:aws:lambda:us-east-1:123456789012:function:quotegeneratorbe-x", + "Name": "quotegeneratorbe-x", + "LambdaExecutionRole": "backendonlyLambdaRole8a0d8e62-x" }, "lastPushDirHash": "g+QSHqf0IzubQUzZPRqNTEsEhkI=" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/cloudformation-template.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/cloudformation-template.json index bd8db70c50b..f46214f1502 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/cloudformation-template.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/cloudformation-template.json @@ -127,7 +127,7 @@ "ApiId" ] }, - "Expires": 1773598197 + "Expires": 1776829909 } }, "GraphQLAPINONEDS95A13CF0": { @@ -531,7 +531,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -628,7 +628,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -725,7 +725,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -822,7 +822,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -919,7 +919,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1049,4 +1049,4 @@ } }, "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/parameters.json index 32885531b2b..befd2dff8be 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/parameters.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/parameters.json @@ -8,6 +8,6 @@ "Outputs.UserPoolId" ] }, - "S3DeploymentBucket": "amplify-backendonly-main-5e0fa-deployment", + "S3DeploymentBucket": "amplify-backendonly-x-x-deployment", "S3DeploymentRootKey": "amplify-appsync-files/47418d5f9df78fb8fa9acaa5bd04a81ebc30971b" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/InvokeQuotegeneratorLambdaDataSource.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/InvokeQuotegeneratorLambdaDataSource.req.vtl index dd90b6f6376..01114f78993 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/InvokeQuotegeneratorLambdaDataSource.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/InvokeQuotegeneratorLambdaDataSource.req.vtl @@ -12,4 +12,4 @@ "prev": $util.toJson($ctx.prev) } } -## [End] Invoke AWS Lambda data source: QuotegeneratorLambdaDataSource. ** \ No newline at end of file +## [End] Invoke AWS Lambda data source: QuotegeneratorLambdaDataSource. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/InvokeQuotegeneratorLambdaDataSource.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/InvokeQuotegeneratorLambdaDataSource.res.vtl index e6b83d8b6ab..1316903313e 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/InvokeQuotegeneratorLambdaDataSource.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/InvokeQuotegeneratorLambdaDataSource.res.vtl @@ -3,4 +3,4 @@ $util.error($ctx.error.message, $ctx.error.type) #end $util.toJson($ctx.result) -## [End] Handle error or return result. ** \ No newline at end of file +## [End] Handle error or return result. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.createProject.auth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.createProject.auth.1.req.vtl index bd515ae3245..e49fc3223df 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.createProject.auth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.createProject.auth.1.req.vtl @@ -49,4 +49,4 @@ $util.unauthorized() #end #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.createProject.init.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.createProject.init.1.req.vtl index df6b4cbbc5c..407b5845fc2 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.createProject.init.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.createProject.init.1.req.vtl @@ -8,4 +8,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.createProject.postAuth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.createProject.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.createProject.postAuth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.createProject.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.createProject.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.createProject.req.vtl index 6ade2d502a3..c026957a16e 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.createProject.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.createProject.req.vtl @@ -63,4 +63,4 @@ $util.qr($mergedValues.put("__typename", "Project")) $util.qr($PutObject.put("key", $Key)) #end $util.toJson($PutObject) -## [End] Create Request template. ** \ No newline at end of file +## [End] Create Request template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.createProject.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.createProject.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.createProject.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.createProject.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.createTodo.auth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.createTodo.auth.1.req.vtl index b074fcd47a3..a13011bfca8 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.createTodo.auth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.createTodo.auth.1.req.vtl @@ -49,4 +49,4 @@ $util.unauthorized() #end #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.createTodo.init.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.createTodo.init.1.req.vtl index df6b4cbbc5c..407b5845fc2 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.createTodo.init.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.createTodo.init.1.req.vtl @@ -8,4 +8,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.createTodo.postAuth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.createTodo.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.createTodo.postAuth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.createTodo.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.createTodo.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.createTodo.req.vtl index f03395e5eaa..ba7382bb4e2 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.createTodo.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.createTodo.req.vtl @@ -63,4 +63,4 @@ $util.qr($mergedValues.put("__typename", "Todo")) $util.qr($PutObject.put("key", $Key)) #end $util.toJson($PutObject) -## [End] Create Request template. ** \ No newline at end of file +## [End] Create Request template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.createTodo.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.createTodo.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.createTodo.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.createTodo.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.deleteProject.auth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.deleteProject.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.deleteProject.auth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.deleteProject.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.deleteProject.auth.1.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.deleteProject.auth.1.res.vtl index d60b77ecdd7..a616f67a6c4 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.deleteProject.auth.1.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.deleteProject.auth.1.res.vtl @@ -24,4 +24,4 @@ $util.unauthorized() $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.deleteProject.postAuth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.deleteProject.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.deleteProject.postAuth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.deleteProject.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.deleteProject.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.deleteProject.req.vtl index ace459bd501..d2cb40cd15d 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.deleteProject.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.deleteProject.req.vtl @@ -55,4 +55,4 @@ $util.qr($DeleteRequest.put("key", $Key)) $util.qr($DeleteRequest.put("condition", $Conditions)) #end $util.toJson($DeleteRequest) -## [End] Delete Request template. ** \ No newline at end of file +## [End] Delete Request template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.deleteProject.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.deleteProject.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.deleteProject.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.deleteProject.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.deleteTodo.auth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.deleteTodo.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.deleteTodo.auth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.deleteTodo.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.deleteTodo.auth.1.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.deleteTodo.auth.1.res.vtl index d60b77ecdd7..a616f67a6c4 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.deleteTodo.auth.1.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.deleteTodo.auth.1.res.vtl @@ -24,4 +24,4 @@ $util.unauthorized() $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.deleteTodo.postAuth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.deleteTodo.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.deleteTodo.postAuth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.deleteTodo.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.deleteTodo.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.deleteTodo.req.vtl index ace459bd501..d2cb40cd15d 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.deleteTodo.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.deleteTodo.req.vtl @@ -55,4 +55,4 @@ $util.qr($DeleteRequest.put("key", $Key)) $util.qr($DeleteRequest.put("condition", $Conditions)) #end $util.toJson($DeleteRequest) -## [End] Delete Request template. ** \ No newline at end of file +## [End] Delete Request template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.deleteTodo.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.deleteTodo.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.deleteTodo.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.deleteTodo.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateProject.auth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateProject.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateProject.auth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateProject.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateProject.auth.1.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateProject.auth.1.res.vtl index f7af8a41604..dd719b0da67 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateProject.auth.1.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateProject.auth.1.res.vtl @@ -52,4 +52,4 @@ $util.unauthorized() $util.error("Unauthorized on ${deniedFields.keySet()}", "Unauthorized") #end $util.toJson({}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateProject.init.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateProject.init.1.req.vtl index ab5766fb051..dde2512aea8 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateProject.init.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateProject.init.1.req.vtl @@ -6,4 +6,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateProject.postAuth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateProject.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateProject.postAuth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateProject.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateProject.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateProject.req.vtl index a1bd67d21b6..648b67d7c57 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateProject.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateProject.req.vtl @@ -127,4 +127,4 @@ $util.qr($update.put("expression", "$expression")) $util.qr($UpdateItem.put("condition", $Conditions)) #end $util.toJson($UpdateItem) -## [End] Mutation Update resolver. ** \ No newline at end of file +## [End] Mutation Update resolver. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateProject.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateProject.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateProject.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateProject.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateTodo.auth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateTodo.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateTodo.auth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateTodo.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateTodo.auth.1.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateTodo.auth.1.res.vtl index e766d81e79e..aff2d1e083c 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateTodo.auth.1.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateTodo.auth.1.res.vtl @@ -52,4 +52,4 @@ $util.unauthorized() $util.error("Unauthorized on ${deniedFields.keySet()}", "Unauthorized") #end $util.toJson({}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateTodo.init.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateTodo.init.1.req.vtl index ab5766fb051..dde2512aea8 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateTodo.init.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateTodo.init.1.req.vtl @@ -6,4 +6,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateTodo.postAuth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateTodo.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateTodo.postAuth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateTodo.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateTodo.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateTodo.req.vtl index a1bd67d21b6..648b67d7c57 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateTodo.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateTodo.req.vtl @@ -127,4 +127,4 @@ $util.qr($update.put("expression", "$expression")) $util.qr($UpdateItem.put("condition", $Conditions)) #end $util.toJson($UpdateItem) -## [End] Mutation Update resolver. ** \ No newline at end of file +## [End] Mutation Update resolver. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateTodo.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateTodo.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateTodo.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Mutation.updateTodo.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Project.owner.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Project.owner.req.vtl index 1aae0961a3e..a9c5efa2bb8 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Project.owner.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Project.owner.req.vtl @@ -1 +1 @@ -$util.toJson({"version":"2018-05-29","payload":{}}) \ No newline at end of file +$util.toJson({"version":"2018-05-29","payload":{}}) diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Project.owner.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Project.owner.res.vtl index c6de7a4f2cf..0552e7005c8 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Project.owner.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Project.owner.res.vtl @@ -17,4 +17,4 @@ $util.qr($ctx.source.put("owner", $ownerEntitiesLast)) $util.toJson($ctx.source.owner) #end -## [End] Parse owner field auth for Get. ** \ No newline at end of file +## [End] Parse owner field auth for Get. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Project.todos.auth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Project.todos.auth.1.req.vtl index 58516f2d3ba..e83ccb93117 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Project.todos.auth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Project.todos.auth.1.req.vtl @@ -37,4 +37,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Project.todos.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Project.todos.req.vtl index d0c5ca01dba..40dbad4a712 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Project.todos.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Project.todos.req.vtl @@ -69,4 +69,4 @@ null #end, "index": "gsi-Project.todos" } -#end \ No newline at end of file +#end diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Project.todos.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Project.todos.res.vtl index 922c4ce53d0..ae420dbf03f 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Project.todos.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Project.todos.res.vtl @@ -10,4 +10,4 @@ $util.error($ctx.error.message, $ctx.error.type) #end #end $util.toJson($result) -#end \ No newline at end of file +#end diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.getProject.auth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.getProject.auth.1.req.vtl index c25f744430b..da78f5423e7 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.getProject.auth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.getProject.auth.1.req.vtl @@ -33,4 +33,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.getProject.postAuth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.getProject.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.getProject.postAuth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.getProject.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.getProject.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.getProject.req.vtl index a8d7811a021..fd7fbfc8013 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.getProject.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.getProject.req.vtl @@ -31,4 +31,4 @@ $util.qr($GetRequest.put("query", $query)) $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) #end $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.getProject.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.getProject.res.vtl index e9ef1436bdd..92e05f99816 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.getProject.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.getProject.res.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson(null) #end -## [End] Get Response template. ** \ No newline at end of file +## [End] Get Response template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.getRandomQuote.auth.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.getRandomQuote.auth.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.getRandomQuote.auth.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.getRandomQuote.auth.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.getRandomQuote.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.getRandomQuote.res.vtl index 634741579ce..c37b82e4a30 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.getRandomQuote.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.getRandomQuote.res.vtl @@ -1 +1 @@ -$util.toJson($ctx.prev.result) \ No newline at end of file +$util.toJson($ctx.prev.result) diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.getTodo.auth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.getTodo.auth.1.req.vtl index c25f744430b..da78f5423e7 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.getTodo.auth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.getTodo.auth.1.req.vtl @@ -33,4 +33,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.getTodo.postAuth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.getTodo.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.getTodo.postAuth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.getTodo.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.getTodo.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.getTodo.req.vtl index a8d7811a021..fd7fbfc8013 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.getTodo.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.getTodo.req.vtl @@ -31,4 +31,4 @@ $util.qr($GetRequest.put("query", $query)) $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) #end $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.getTodo.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.getTodo.res.vtl index e9ef1436bdd..92e05f99816 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.getTodo.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.getTodo.res.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson(null) #end -## [End] Get Response template. ** \ No newline at end of file +## [End] Get Response template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.listProjects.auth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.listProjects.auth.1.req.vtl index c25f744430b..da78f5423e7 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.listProjects.auth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.listProjects.auth.1.req.vtl @@ -33,4 +33,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.listProjects.postAuth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.listProjects.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.listProjects.postAuth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.listProjects.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.listProjects.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.listProjects.req.vtl index 014213710e8..ef976126825 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.listProjects.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.listProjects.req.vtl @@ -47,4 +47,4 @@ #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) #end $util.toJson($ListRequest) -## [End] List Request. ** \ No newline at end of file +## [End] List Request. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.listProjects.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.listProjects.res.vtl index ee8b6670cbc..aab9983954e 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.listProjects.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.listProjects.res.vtl @@ -4,4 +4,4 @@ #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.listTodos.auth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.listTodos.auth.1.req.vtl index c25f744430b..da78f5423e7 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.listTodos.auth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.listTodos.auth.1.req.vtl @@ -33,4 +33,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.listTodos.postAuth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.listTodos.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.listTodos.postAuth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.listTodos.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.listTodos.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.listTodos.req.vtl index 014213710e8..ef976126825 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.listTodos.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.listTodos.req.vtl @@ -47,4 +47,4 @@ #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) #end $util.toJson($ListRequest) -## [End] List Request. ** \ No newline at end of file +## [End] List Request. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.listTodos.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.listTodos.res.vtl index ee8b6670cbc..aab9983954e 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.listTodos.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Query.listTodos.res.vtl @@ -4,4 +4,4 @@ #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/QuoteResponse.author.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/QuoteResponse.author.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/QuoteResponse.author.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/QuoteResponse.author.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/QuoteResponse.author.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/QuoteResponse.author.res.vtl index f935ef45b0b..7641a22fda9 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/QuoteResponse.author.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/QuoteResponse.author.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["author"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/QuoteResponse.message.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/QuoteResponse.message.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/QuoteResponse.message.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/QuoteResponse.message.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/QuoteResponse.message.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/QuoteResponse.message.res.vtl index 16ec362ea79..7c27c12d67a 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/QuoteResponse.message.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/QuoteResponse.message.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["message"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/QuoteResponse.quote.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/QuoteResponse.quote.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/QuoteResponse.quote.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/QuoteResponse.quote.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/QuoteResponse.quote.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/QuoteResponse.quote.res.vtl index 3f2d91b1b36..d872575dc9e 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/QuoteResponse.quote.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/QuoteResponse.quote.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["quote"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/QuoteResponse.timestamp.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/QuoteResponse.timestamp.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/QuoteResponse.timestamp.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/QuoteResponse.timestamp.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/QuoteResponse.timestamp.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/QuoteResponse.timestamp.res.vtl index 5123c52c5aa..76a126983d6 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/QuoteResponse.timestamp.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/QuoteResponse.timestamp.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["timestamp"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/QuoteResponse.totalQuotes.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/QuoteResponse.totalQuotes.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/QuoteResponse.totalQuotes.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/QuoteResponse.totalQuotes.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/QuoteResponse.totalQuotes.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/QuoteResponse.totalQuotes.res.vtl index de3d42f8713..07afe2a2c90 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/QuoteResponse.totalQuotes.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/QuoteResponse.totalQuotes.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["totalQuotes"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onCreateProject.auth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onCreateProject.auth.1.req.vtl index ca6973a44ed..0d61efbb69c 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onCreateProject.auth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onCreateProject.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onCreateProject.postAuth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onCreateProject.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onCreateProject.postAuth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onCreateProject.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onCreateProject.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onCreateProject.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onCreateProject.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onCreateProject.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onCreateProject.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onCreateProject.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onCreateProject.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onCreateProject.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onCreateTodo.auth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onCreateTodo.auth.1.req.vtl index ca6973a44ed..0d61efbb69c 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onCreateTodo.auth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onCreateTodo.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onCreateTodo.postAuth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onCreateTodo.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onCreateTodo.postAuth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onCreateTodo.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onCreateTodo.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onCreateTodo.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onCreateTodo.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onCreateTodo.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onCreateTodo.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onCreateTodo.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onCreateTodo.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onCreateTodo.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onDeleteProject.auth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onDeleteProject.auth.1.req.vtl index ca6973a44ed..0d61efbb69c 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onDeleteProject.auth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onDeleteProject.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onDeleteProject.postAuth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onDeleteProject.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onDeleteProject.postAuth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onDeleteProject.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onDeleteProject.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onDeleteProject.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onDeleteProject.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onDeleteProject.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onDeleteProject.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onDeleteProject.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onDeleteProject.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onDeleteProject.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onDeleteTodo.auth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onDeleteTodo.auth.1.req.vtl index ca6973a44ed..0d61efbb69c 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onDeleteTodo.auth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onDeleteTodo.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onDeleteTodo.postAuth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onDeleteTodo.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onDeleteTodo.postAuth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onDeleteTodo.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onDeleteTodo.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onDeleteTodo.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onDeleteTodo.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onDeleteTodo.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onDeleteTodo.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onDeleteTodo.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onDeleteTodo.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onDeleteTodo.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onUpdateProject.auth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onUpdateProject.auth.1.req.vtl index ca6973a44ed..0d61efbb69c 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onUpdateProject.auth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onUpdateProject.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onUpdateProject.postAuth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onUpdateProject.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onUpdateProject.postAuth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onUpdateProject.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onUpdateProject.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onUpdateProject.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onUpdateProject.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onUpdateProject.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onUpdateProject.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onUpdateProject.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onUpdateProject.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onUpdateProject.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onUpdateTodo.auth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onUpdateTodo.auth.1.req.vtl index ca6973a44ed..0d61efbb69c 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onUpdateTodo.auth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onUpdateTodo.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onUpdateTodo.postAuth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onUpdateTodo.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onUpdateTodo.postAuth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onUpdateTodo.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onUpdateTodo.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onUpdateTodo.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onUpdateTodo.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onUpdateTodo.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onUpdateTodo.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onUpdateTodo.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onUpdateTodo.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Subscription.onUpdateTodo.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Todo.owner.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Todo.owner.req.vtl index 1aae0961a3e..a9c5efa2bb8 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Todo.owner.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Todo.owner.req.vtl @@ -1 +1 @@ -$util.toJson({"version":"2018-05-29","payload":{}}) \ No newline at end of file +$util.toJson({"version":"2018-05-29","payload":{}}) diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Todo.owner.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Todo.owner.res.vtl index c6de7a4f2cf..0552e7005c8 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Todo.owner.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/resolvers/Todo.owner.res.vtl @@ -17,4 +17,4 @@ $util.qr($ctx.source.put("owner", $ownerEntitiesLast)) $util.toJson($ctx.source.owner) #end -## [End] Parse owner field auth for Get. ** \ No newline at end of file +## [End] Parse owner field auth for Get. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/stacks/ConnectionStack.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/stacks/ConnectionStack.json index 765e7847997..2e29888397e 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/stacks/ConnectionStack.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/stacks/ConnectionStack.json @@ -111,7 +111,7 @@ { "Ref": "referencetotransformerrootstackTodoNestedStackTodoNestedStackResource9AC126A3OutputstransformerrootstackTodoTodoTableC67E79C2Ref" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -140,4 +140,4 @@ "Type": "String" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/stacks/CustomResources.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/stacks/CustomResources.json index 016991278d0..5fe357d6096 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/stacks/CustomResources.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/stacks/CustomResources.json @@ -58,4 +58,4 @@ "Value": "" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/stacks/FunctionDirectiveStack.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/stacks/FunctionDirectiveStack.json index 320e15cb1be..ebb69f88cb4 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/stacks/FunctionDirectiveStack.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/stacks/FunctionDirectiveStack.json @@ -278,4 +278,4 @@ "Type": "String" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/stacks/Project.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/stacks/Project.json index daae2c34bb7..13124ab2091 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/stacks/Project.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/stacks/Project.json @@ -503,7 +503,7 @@ { "Ref": "ProjectTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -604,7 +604,7 @@ { "Ref": "ProjectTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -771,7 +771,7 @@ { "Ref": "ProjectTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -959,7 +959,7 @@ { "Ref": "ProjectTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1111,7 +1111,7 @@ { "Ref": "ProjectTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1232,7 +1232,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1278,7 +1278,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1324,7 +1324,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1403,7 +1403,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1533,4 +1533,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/stacks/Todo.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/stacks/Todo.json index 0984deede62..9bb77eb6416 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/stacks/Todo.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/build/stacks/Todo.json @@ -503,7 +503,7 @@ { "Ref": "TodoTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -598,7 +598,7 @@ { "Ref": "TodoTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -729,7 +729,7 @@ { "Ref": "TodoTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -881,7 +881,7 @@ { "Ref": "TodoTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1030,7 +1030,7 @@ { "Ref": "TodoTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1067,7 +1067,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1104,7 +1104,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1141,7 +1141,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1172,7 +1172,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1259,4 +1259,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/cli-inputs.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/cli-inputs.json index 1b0240fcf01..803bf145e76 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/cli-inputs.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/cli-inputs.json @@ -14,4 +14,4 @@ } ] } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/parameters.json index bd40dd4a46b..90a400a89e6 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/parameters.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/parameters.json @@ -8,4 +8,4 @@ "Outputs.UserPoolId" ] } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/resolvers/README.md b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/resolvers/README.md index 89e564c5b31..1634d295144 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/resolvers/README.md +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/resolvers/README.md @@ -1,2 +1,2 @@ Any resolvers that you add in this directory will override the ones automatically generated by Amplify CLI and will be directly copied to the cloud. -For more information, visit [https://docs.amplify.aws/cli/graphql-transformer/resolvers](https://docs.amplify.aws/cli/graphql-transformer/resolvers) \ No newline at end of file +For more information, visit [https://docs.amplify.aws/cli/graphql-transformer/resolvers](https://docs.amplify.aws/cli/graphql-transformer/resolvers) diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/transform.conf.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/transform.conf.json index 98e1e19f038..d0421b1df09 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/transform.conf.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/api/backendonly/transform.conf.json @@ -1,4 +1,4 @@ { "Version": 5, "ElasticsearchWarning": true -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/backendonlyf8c4c57b/build/backendonlyf8c4c57b-cloudformation-template.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/backendonlyf8c4c57b/build/backendonlyf8c4c57b-cloudformation-template.json index e4e894afdcc..678f4481b94 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/backendonlyf8c4c57b/build/backendonlyf8c4c57b-cloudformation-template.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/backendonlyf8c4c57b/build/backendonlyf8c4c57b-cloudformation-template.json @@ -410,4 +410,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/backendonlyf8c4c57b/build/parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/backendonlyf8c4c57b/build/parameters.json index 59c2504008e..fc66768060c 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/backendonlyf8c4c57b/build/parameters.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/backendonlyf8c4c57b/build/parameters.json @@ -56,4 +56,4 @@ }, "breakCircularDependency": true, "dependsOn": [] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/backendonlyf8c4c57b/cli-inputs.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/backendonlyf8c4c57b/cli-inputs.json index 7d9650c1bd9..14bad6739b6 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/backendonlyf8c4c57b/cli-inputs.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/backendonlyf8c4c57b/cli-inputs.json @@ -59,4 +59,4 @@ "breakCircularDependency": true, "dependsOn": [] } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/backendonly/build/cloudformation-template.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/backendonly/build/cloudformation-template.json index bd8db70c50b..f46214f1502 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/backendonly/build/cloudformation-template.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/backendonly/build/cloudformation-template.json @@ -127,7 +127,7 @@ "ApiId" ] }, - "Expires": 1773598197 + "Expires": 1776829909 } }, "GraphQLAPINONEDS95A13CF0": { @@ -531,7 +531,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -628,7 +628,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -725,7 +725,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -822,7 +822,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -919,7 +919,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1049,4 +1049,4 @@ } }, "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/backendonlyf8c4c57b/build/backendonlyf8c4c57b-cloudformation-template.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/backendonlyf8c4c57b/build/backendonlyf8c4c57b-cloudformation-template.json index e4e894afdcc..678f4481b94 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/backendonlyf8c4c57b/build/backendonlyf8c4c57b-cloudformation-template.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/backendonlyf8c4c57b/build/backendonlyf8c4c57b-cloudformation-template.json @@ -410,4 +410,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json index f1c0adb61bb..3ddfd6ce1b9 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json @@ -202,7 +202,7 @@ "authbackendonlyf8c4c57b": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-main-5e0fa-deployment/amplify-cfn-templates/auth/backendonlyf8c4c57b-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-x-x-deployment/amplify-cfn-templates/auth/backendonlyf8c4c57b-cloudformation-template.json", "Parameters": { "identityPoolName": "backendonlyf8c4c57b_identitypool_f8c4c57b", "allowUnauthenticatedIdentities": true, @@ -249,14 +249,14 @@ }, "breakCircularDependency": true, "dependsOn": "", - "env": "main" + "env": "x" } } }, "apibackendonly": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-main-5e0fa-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", "Parameters": { "AppSyncApiName": "backendonly", "DynamoDBBillingMode": "PAY_PER_REQUEST", @@ -267,16 +267,16 @@ "Outputs.UserPoolId" ] }, - "S3DeploymentBucket": "amplify-backendonly-main-5e0fa-deployment", + "S3DeploymentBucket": "amplify-backendonly-x-x-deployment", "S3DeploymentRootKey": "amplify-appsync-files/47418d5f9df78fb8fa9acaa5bd04a81ebc30971b", - "env": "main" + "env": "x" } } }, "storages3c31471c3": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-main-5e0fa-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-x-x-deployment/amplify-cfn-templates/storage/cloudformation-template.json", "Parameters": { "bucketName": "backendonlycb1a13ab81664ecaa7d015068ab2d016", "selectedGuestPermissions": "s3:GetObject,s3:ListBucket", @@ -302,18 +302,18 @@ "s3PermissionsAuthenticatedUploads": "s3:PutObject", "s3PermissionsGuestPublic": "s3:GetObject", "s3PermissionsGuestUploads": "DISALLOW", - "env": "main" + "env": "x" } } }, "functionquotegeneratorbe": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-main-5e0fa-deployment/amplify-cfn-templates/function/quotegeneratorbe-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-x-x-deployment/amplify-cfn-templates/function/quotegeneratorbe-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-backendonly-main-5e0fa-deployment", + "deploymentBucketName": "amplify-backendonly-x-x-deployment", "s3Key": "amplify-builds/quotegeneratorbe-513654756a51615a5779-build.zip", - "env": "main" + "env": "x" } } }, @@ -521,4 +521,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/quotegeneratorbe/quotegeneratorbe-cloudformation-template.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/quotegeneratorbe/quotegeneratorbe-cloudformation-template.json index 60d607e5e8b..880ce3bd4a4 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/quotegeneratorbe/quotegeneratorbe-cloudformation-template.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/quotegeneratorbe/quotegeneratorbe-cloudformation-template.json @@ -199,4 +199,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json index f1c0adb61bb..3ddfd6ce1b9 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json @@ -202,7 +202,7 @@ "authbackendonlyf8c4c57b": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-main-5e0fa-deployment/amplify-cfn-templates/auth/backendonlyf8c4c57b-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-x-x-deployment/amplify-cfn-templates/auth/backendonlyf8c4c57b-cloudformation-template.json", "Parameters": { "identityPoolName": "backendonlyf8c4c57b_identitypool_f8c4c57b", "allowUnauthenticatedIdentities": true, @@ -249,14 +249,14 @@ }, "breakCircularDependency": true, "dependsOn": "", - "env": "main" + "env": "x" } } }, "apibackendonly": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-main-5e0fa-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", "Parameters": { "AppSyncApiName": "backendonly", "DynamoDBBillingMode": "PAY_PER_REQUEST", @@ -267,16 +267,16 @@ "Outputs.UserPoolId" ] }, - "S3DeploymentBucket": "amplify-backendonly-main-5e0fa-deployment", + "S3DeploymentBucket": "amplify-backendonly-x-x-deployment", "S3DeploymentRootKey": "amplify-appsync-files/47418d5f9df78fb8fa9acaa5bd04a81ebc30971b", - "env": "main" + "env": "x" } } }, "storages3c31471c3": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-main-5e0fa-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-x-x-deployment/amplify-cfn-templates/storage/cloudformation-template.json", "Parameters": { "bucketName": "backendonlycb1a13ab81664ecaa7d015068ab2d016", "selectedGuestPermissions": "s3:GetObject,s3:ListBucket", @@ -302,18 +302,18 @@ "s3PermissionsAuthenticatedUploads": "s3:PutObject", "s3PermissionsGuestPublic": "s3:GetObject", "s3PermissionsGuestUploads": "DISALLOW", - "env": "main" + "env": "x" } } }, "functionquotegeneratorbe": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-main-5e0fa-deployment/amplify-cfn-templates/function/quotegeneratorbe-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-x-x-deployment/amplify-cfn-templates/function/quotegeneratorbe-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-backendonly-main-5e0fa-deployment", + "deploymentBucketName": "amplify-backendonly-x-x-deployment", "s3Key": "amplify-builds/quotegeneratorbe-513654756a51615a5779-build.zip", - "env": "main" + "env": "x" } } }, @@ -521,4 +521,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/storage/s3c31471c3/build/cloudformation-template.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/storage/s3c31471c3/build/cloudformation-template.json index 8bac1dbfa69..204a64677c8 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/storage/s3c31471c3/build/cloudformation-template.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/storage/s3c31471c3/build/cloudformation-template.json @@ -643,4 +643,4 @@ "Condition": "GuestReadAndList" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json index 425fd5a5ebb..7f358b3b11e 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json @@ -92,4 +92,4 @@ "service": "S3" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/function/quotegeneratorbe/amplify.state b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/function/quotegeneratorbe/amplify.state index 0c3efe04706..ab8a6cc8046 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/function/quotegeneratorbe/amplify.state +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/function/quotegeneratorbe/amplify.state @@ -3,4 +3,4 @@ "functionRuntime": "nodejs", "useLegacyBuild": true, "defaultEditorFile": "src/index.js" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/function/quotegeneratorbe/custom-policies.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/function/quotegeneratorbe/custom-policies.json index 528c94f2f26..1f21c530082 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/function/quotegeneratorbe/custom-policies.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/function/quotegeneratorbe/custom-policies.json @@ -3,4 +3,4 @@ "Action": [], "Resource": [] } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/function/quotegeneratorbe/function-parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/function/quotegeneratorbe/function-parameters.json index d5078776c21..481f6af97f7 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/function/quotegeneratorbe/function-parameters.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/function/quotegeneratorbe/function-parameters.json @@ -1,3 +1,3 @@ { "lambdaLayers": [] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/function/quotegeneratorbe/quotegeneratorbe-cloudformation-template.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/function/quotegeneratorbe/quotegeneratorbe-cloudformation-template.json index 60d607e5e8b..880ce3bd4a4 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/function/quotegeneratorbe/quotegeneratorbe-cloudformation-template.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/function/quotegeneratorbe/quotegeneratorbe-cloudformation-template.json @@ -199,4 +199,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/function/quotegeneratorbe/src/package.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/function/quotegeneratorbe/src/package.json index 2143bf92d00..333ff04a2bb 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/function/quotegeneratorbe/src/package.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/function/quotegeneratorbe/src/package.json @@ -10,4 +10,4 @@ "dependencies": { "cli-table3": "0.6.5" } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s3c31471c3/build/cloudformation-template.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s3c31471c3/build/cloudformation-template.json index 6e2bc99e890..d9b5969f570 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s3c31471c3/build/cloudformation-template.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s3c31471c3/build/cloudformation-template.json @@ -634,4 +634,4 @@ "Condition": "GuestReadAndList" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s3c31471c3/build/parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s3c31471c3/build/parameters.json index af6e2914a1b..8f699d08a01 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s3c31471c3/build/parameters.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s3c31471c3/build/parameters.json @@ -31,4 +31,4 @@ "s3PermissionsAuthenticatedUploads": "s3:PutObject", "s3PermissionsGuestPublic": "s3:GetObject", "s3PermissionsGuestUploads": "DISALLOW" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s3c31471c3/cli-inputs.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s3c31471c3/cli-inputs.json index fe0c584c619..782d10c6c7b 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s3c31471c3/cli-inputs.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s3c31471c3/cli-inputs.json @@ -13,4 +13,4 @@ ], "triggerFunction": "NONE", "groupAccess": {} -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/tags.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/tags.json index b9321d71b83..71f6abe11a6 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/tags.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/#current-cloud-backend/tags.json @@ -7,4 +7,4 @@ "Key": "user:Application", "Value": "{project-name}" } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/.config/project-config.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/.config/project-config.json index 50619d29927..44b4a190940 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/.config/project-config.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/.config/project-config.json @@ -8,11 +8,11 @@ "config": { "SourceDir": "src", "DistributionDir": "dist", - "BuildCommand": "npm run-script build", + "BuildCommand": "npm run build", "StartCommand": "npm run-script start" } }, "providers": [ "awscloudformation" ] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/amplify-meta.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/amplify-meta.json index d4ba3e5e0d2..d519c6239a5 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/amplify-meta.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/amplify-meta.json @@ -1,14 +1,14 @@ { "providers": { "awscloudformation": { - "AuthRoleName": "amplify-backendonly-main-5e0fa-authRole", - "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-backendonly-main-5e0fa-unauthRole", - "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-backendonly-main-5e0fa-authRole", + "AuthRoleName": "amplify-backendonly-x-x-authRole", + "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-backendonly-x-x-unauthRole", + "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-backendonly-x-x-authRole", "Region": "us-east-1", - "DeploymentBucketName": "amplify-backendonly-main-5e0fa-deployment", - "UnauthRoleName": "amplify-backendonly-main-5e0fa-unauthRole", - "StackName": "amplify-backendonly-main-5e0fa", - "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-backendonly-main-5e0fa/6563d5d0-1b19-11f1-9ce2-0e0bf294f4d9", + "DeploymentBucketName": "amplify-backendonly-x-x-deployment", + "UnauthRoleName": "amplify-backendonly-x-x-unauthRole", + "StackName": "amplify-backendonly-x-x", + "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-backendonly-x-x/53088ca0-387e-11f1-b94b-12f2170fbccd", "AmplifyAppId": "backendonly" } }, @@ -39,17 +39,17 @@ ] }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-main-5e0fa-deployment/amplify-cfn-templates/auth/backendonlyf8c4c57b-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-x-x-deployment/amplify-cfn-templates/auth/backendonlyf8c4c57b-cloudformation-template.json", "logicalId": "authbackendonlyf8c4c57b" }, - "lastPushTimeStamp": "2026-03-08T18:15:12.219Z", + "lastPushTimeStamp": "2026-04-15T03:56:34.413Z", "output": { - "UserPoolId": "us-east-1_1rvCNKN5B", - "AppClientIDWeb": "2udsup370on7n0b1gdf8hpijc6", - "AppClientID": "773c808k3864f2k0sqk4j71gsj", - "IdentityPoolId": "us-east-1:3d2fd52c-2247-42b8-8773-3102fce814b8", - "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1rvCNKN5B", - "IdentityPoolName": "backendonlyf8c4c57b_identitypool_f8c4c57b__main", + "UserPoolId": "us-east-1_cI3qDOXA2", + "AppClientIDWeb": "6h7936arcjp36o7dhshkqb6d2a", + "AppClientID": "3ggneb92n0rfe5qet1h7p48evc", + "IdentityPoolId": "us-east-1:ad436de3-7529-46d9-be87-050ea1dd015c", + "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_cI3qDOXA2", + "IdentityPoolName": "backendonlyf8c4c57b_identitypool_f8c4c57b__x", "UserPoolName": "backendonlyf8c4c57b_userpool_f8c4c57b" }, "lastPushDirHash": "686H3dissPlXxzTHFb9vBmwM2jw=" @@ -85,13 +85,13 @@ } ] }, - "GraphQLAPIIdOutput": "sgumi4ggubb4jdo6i54km7skka", - "GraphQLAPIEndpointOutput": "https://24agelrb6rgfrcvxhfwq53ge7a.appsync-api.us-east-1.amazonaws.com/graphql", + "GraphQLAPIIdOutput": "q2d7oghxlbgxxj3fr2t6f2bpm4", + "GraphQLAPIEndpointOutput": "https://b4xajwtybbb4hpq77w4ji2ntua.appsync-api.us-east-1.amazonaws.com/graphql", "GraphQLAPIKeyOutput": "da2-fakeapikey00000000000000" }, - "lastPushTimeStamp": "2026-03-08T18:15:12.219Z", + "lastPushTimeStamp": "2026-04-15T03:56:34.413Z", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-main-5e0fa-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", "logicalId": "apibackendonly" }, "lastPushDirHash": "6xeb+ZtO7QcOMff2eTn6QF9a60Y=" @@ -102,13 +102,13 @@ "service": "S3", "providerPlugin": "awscloudformation", "dependsOn": [], - "lastPushTimeStamp": "2026-03-08T18:15:12.219Z", + "lastPushTimeStamp": "2026-04-15T03:56:34.413Z", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-main-5e0fa-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-x-x-deployment/amplify-cfn-templates/storage/cloudformation-template.json", "logicalId": "storages3c31471c3" }, "output": { - "BucketName": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-main", + "BucketName": "backendonlycb1a13ab81664ecaa7d015068ab2d016x-x", "Region": "us-east-1" }, "lastPushDirHash": "5S73DL/tGImodFS4Yhe8QtAEepc=" @@ -119,27 +119,27 @@ "build": true, "providerPlugin": "awscloudformation", "service": "Lambda", - "lastBuildTimeStamp": "2026-03-08T18:09:55.981Z", + "lastBuildTimeStamp": "2026-04-15T03:51:48.792Z", "lastBuildType": "PROD", - "lastPackageTimeStamp": "2026-03-08T18:09:56.174Z", + "lastPackageTimeStamp": "2026-04-15T03:51:49.000Z", "distZipFilename": "quotegeneratorbe-513654756a51615a5779-build.zip", "s3Bucket": { - "deploymentBucketName": "amplify-backendonly-main-5e0fa-deployment", + "deploymentBucketName": "amplify-backendonly-x-x-deployment", "s3Key": "amplify-builds/quotegeneratorbe-513654756a51615a5779-build.zip" }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-main-5e0fa-deployment/amplify-cfn-templates/function/quotegeneratorbe-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-x-x-deployment/amplify-cfn-templates/function/quotegeneratorbe-cloudformation-template.json", "logicalId": "functionquotegeneratorbe" }, - "lastPushTimeStamp": "2026-03-08T18:15:12.219Z", + "lastPushTimeStamp": "2026-04-15T03:56:34.413Z", "output": { - "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/backendonlyLambdaRole8a0d8e62-main", + "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/backendonlyLambdaRole8a0d8e62-x", "Region": "us-east-1", - "Arn": "arn:aws:lambda:us-east-1:123456789012:function:quotegeneratorbe-main", - "Name": "quotegeneratorbe-main", - "LambdaExecutionRole": "backendonlyLambdaRole8a0d8e62-main" + "Arn": "arn:aws:lambda:us-east-1:123456789012:function:quotegeneratorbe-x", + "Name": "quotegeneratorbe-x", + "LambdaExecutionRole": "backendonlyLambdaRole8a0d8e62-x" }, "lastPushDirHash": "g+QSHqf0IzubQUzZPRqNTEsEhkI=" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/cloudformation-template.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/cloudformation-template.json index bd8db70c50b..f46214f1502 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/cloudformation-template.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/cloudformation-template.json @@ -127,7 +127,7 @@ "ApiId" ] }, - "Expires": 1773598197 + "Expires": 1776829909 } }, "GraphQLAPINONEDS95A13CF0": { @@ -531,7 +531,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -628,7 +628,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -725,7 +725,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -822,7 +822,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -919,7 +919,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1049,4 +1049,4 @@ } }, "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/parameters.json index 32885531b2b..befd2dff8be 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/parameters.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/parameters.json @@ -8,6 +8,6 @@ "Outputs.UserPoolId" ] }, - "S3DeploymentBucket": "amplify-backendonly-main-5e0fa-deployment", + "S3DeploymentBucket": "amplify-backendonly-x-x-deployment", "S3DeploymentRootKey": "amplify-appsync-files/47418d5f9df78fb8fa9acaa5bd04a81ebc30971b" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/InvokeQuotegeneratorLambdaDataSource.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/InvokeQuotegeneratorLambdaDataSource.req.vtl index dd90b6f6376..01114f78993 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/InvokeQuotegeneratorLambdaDataSource.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/InvokeQuotegeneratorLambdaDataSource.req.vtl @@ -12,4 +12,4 @@ "prev": $util.toJson($ctx.prev) } } -## [End] Invoke AWS Lambda data source: QuotegeneratorLambdaDataSource. ** \ No newline at end of file +## [End] Invoke AWS Lambda data source: QuotegeneratorLambdaDataSource. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/InvokeQuotegeneratorLambdaDataSource.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/InvokeQuotegeneratorLambdaDataSource.res.vtl index e6b83d8b6ab..1316903313e 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/InvokeQuotegeneratorLambdaDataSource.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/InvokeQuotegeneratorLambdaDataSource.res.vtl @@ -3,4 +3,4 @@ $util.error($ctx.error.message, $ctx.error.type) #end $util.toJson($ctx.result) -## [End] Handle error or return result. ** \ No newline at end of file +## [End] Handle error or return result. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.createProject.auth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.createProject.auth.1.req.vtl index bd515ae3245..e49fc3223df 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.createProject.auth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.createProject.auth.1.req.vtl @@ -49,4 +49,4 @@ $util.unauthorized() #end #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.createProject.init.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.createProject.init.1.req.vtl index df6b4cbbc5c..407b5845fc2 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.createProject.init.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.createProject.init.1.req.vtl @@ -8,4 +8,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.createProject.postAuth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.createProject.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.createProject.postAuth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.createProject.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.createProject.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.createProject.req.vtl index 6ade2d502a3..c026957a16e 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.createProject.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.createProject.req.vtl @@ -63,4 +63,4 @@ $util.qr($mergedValues.put("__typename", "Project")) $util.qr($PutObject.put("key", $Key)) #end $util.toJson($PutObject) -## [End] Create Request template. ** \ No newline at end of file +## [End] Create Request template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.createProject.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.createProject.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.createProject.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.createProject.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.createTodo.auth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.createTodo.auth.1.req.vtl index b074fcd47a3..a13011bfca8 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.createTodo.auth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.createTodo.auth.1.req.vtl @@ -49,4 +49,4 @@ $util.unauthorized() #end #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.createTodo.init.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.createTodo.init.1.req.vtl index df6b4cbbc5c..407b5845fc2 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.createTodo.init.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.createTodo.init.1.req.vtl @@ -8,4 +8,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.createTodo.postAuth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.createTodo.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.createTodo.postAuth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.createTodo.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.createTodo.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.createTodo.req.vtl index f03395e5eaa..ba7382bb4e2 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.createTodo.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.createTodo.req.vtl @@ -63,4 +63,4 @@ $util.qr($mergedValues.put("__typename", "Todo")) $util.qr($PutObject.put("key", $Key)) #end $util.toJson($PutObject) -## [End] Create Request template. ** \ No newline at end of file +## [End] Create Request template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.createTodo.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.createTodo.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.createTodo.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.createTodo.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.deleteProject.auth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.deleteProject.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.deleteProject.auth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.deleteProject.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.deleteProject.auth.1.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.deleteProject.auth.1.res.vtl index d60b77ecdd7..a616f67a6c4 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.deleteProject.auth.1.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.deleteProject.auth.1.res.vtl @@ -24,4 +24,4 @@ $util.unauthorized() $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.deleteProject.postAuth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.deleteProject.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.deleteProject.postAuth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.deleteProject.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.deleteProject.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.deleteProject.req.vtl index ace459bd501..d2cb40cd15d 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.deleteProject.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.deleteProject.req.vtl @@ -55,4 +55,4 @@ $util.qr($DeleteRequest.put("key", $Key)) $util.qr($DeleteRequest.put("condition", $Conditions)) #end $util.toJson($DeleteRequest) -## [End] Delete Request template. ** \ No newline at end of file +## [End] Delete Request template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.deleteProject.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.deleteProject.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.deleteProject.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.deleteProject.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.deleteTodo.auth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.deleteTodo.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.deleteTodo.auth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.deleteTodo.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.deleteTodo.auth.1.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.deleteTodo.auth.1.res.vtl index d60b77ecdd7..a616f67a6c4 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.deleteTodo.auth.1.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.deleteTodo.auth.1.res.vtl @@ -24,4 +24,4 @@ $util.unauthorized() $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.deleteTodo.postAuth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.deleteTodo.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.deleteTodo.postAuth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.deleteTodo.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.deleteTodo.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.deleteTodo.req.vtl index ace459bd501..d2cb40cd15d 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.deleteTodo.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.deleteTodo.req.vtl @@ -55,4 +55,4 @@ $util.qr($DeleteRequest.put("key", $Key)) $util.qr($DeleteRequest.put("condition", $Conditions)) #end $util.toJson($DeleteRequest) -## [End] Delete Request template. ** \ No newline at end of file +## [End] Delete Request template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.deleteTodo.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.deleteTodo.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.deleteTodo.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.deleteTodo.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateProject.auth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateProject.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateProject.auth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateProject.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateProject.auth.1.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateProject.auth.1.res.vtl index f7af8a41604..dd719b0da67 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateProject.auth.1.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateProject.auth.1.res.vtl @@ -52,4 +52,4 @@ $util.unauthorized() $util.error("Unauthorized on ${deniedFields.keySet()}", "Unauthorized") #end $util.toJson({}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateProject.init.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateProject.init.1.req.vtl index ab5766fb051..dde2512aea8 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateProject.init.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateProject.init.1.req.vtl @@ -6,4 +6,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateProject.postAuth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateProject.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateProject.postAuth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateProject.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateProject.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateProject.req.vtl index a1bd67d21b6..648b67d7c57 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateProject.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateProject.req.vtl @@ -127,4 +127,4 @@ $util.qr($update.put("expression", "$expression")) $util.qr($UpdateItem.put("condition", $Conditions)) #end $util.toJson($UpdateItem) -## [End] Mutation Update resolver. ** \ No newline at end of file +## [End] Mutation Update resolver. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateProject.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateProject.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateProject.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateProject.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateTodo.auth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateTodo.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateTodo.auth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateTodo.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateTodo.auth.1.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateTodo.auth.1.res.vtl index e766d81e79e..aff2d1e083c 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateTodo.auth.1.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateTodo.auth.1.res.vtl @@ -52,4 +52,4 @@ $util.unauthorized() $util.error("Unauthorized on ${deniedFields.keySet()}", "Unauthorized") #end $util.toJson({}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateTodo.init.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateTodo.init.1.req.vtl index ab5766fb051..dde2512aea8 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateTodo.init.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateTodo.init.1.req.vtl @@ -6,4 +6,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateTodo.postAuth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateTodo.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateTodo.postAuth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateTodo.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateTodo.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateTodo.req.vtl index a1bd67d21b6..648b67d7c57 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateTodo.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateTodo.req.vtl @@ -127,4 +127,4 @@ $util.qr($update.put("expression", "$expression")) $util.qr($UpdateItem.put("condition", $Conditions)) #end $util.toJson($UpdateItem) -## [End] Mutation Update resolver. ** \ No newline at end of file +## [End] Mutation Update resolver. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateTodo.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateTodo.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateTodo.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Mutation.updateTodo.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Project.owner.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Project.owner.req.vtl index 1aae0961a3e..a9c5efa2bb8 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Project.owner.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Project.owner.req.vtl @@ -1 +1 @@ -$util.toJson({"version":"2018-05-29","payload":{}}) \ No newline at end of file +$util.toJson({"version":"2018-05-29","payload":{}}) diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Project.owner.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Project.owner.res.vtl index c6de7a4f2cf..0552e7005c8 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Project.owner.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Project.owner.res.vtl @@ -17,4 +17,4 @@ $util.qr($ctx.source.put("owner", $ownerEntitiesLast)) $util.toJson($ctx.source.owner) #end -## [End] Parse owner field auth for Get. ** \ No newline at end of file +## [End] Parse owner field auth for Get. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Project.todos.auth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Project.todos.auth.1.req.vtl index 58516f2d3ba..e83ccb93117 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Project.todos.auth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Project.todos.auth.1.req.vtl @@ -37,4 +37,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Project.todos.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Project.todos.req.vtl index d0c5ca01dba..40dbad4a712 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Project.todos.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Project.todos.req.vtl @@ -69,4 +69,4 @@ null #end, "index": "gsi-Project.todos" } -#end \ No newline at end of file +#end diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Project.todos.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Project.todos.res.vtl index 922c4ce53d0..ae420dbf03f 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Project.todos.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Project.todos.res.vtl @@ -10,4 +10,4 @@ $util.error($ctx.error.message, $ctx.error.type) #end #end $util.toJson($result) -#end \ No newline at end of file +#end diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.getProject.auth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.getProject.auth.1.req.vtl index c25f744430b..da78f5423e7 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.getProject.auth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.getProject.auth.1.req.vtl @@ -33,4 +33,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.getProject.postAuth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.getProject.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.getProject.postAuth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.getProject.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.getProject.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.getProject.req.vtl index a8d7811a021..fd7fbfc8013 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.getProject.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.getProject.req.vtl @@ -31,4 +31,4 @@ $util.qr($GetRequest.put("query", $query)) $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) #end $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.getProject.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.getProject.res.vtl index e9ef1436bdd..92e05f99816 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.getProject.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.getProject.res.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson(null) #end -## [End] Get Response template. ** \ No newline at end of file +## [End] Get Response template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.getRandomQuote.auth.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.getRandomQuote.auth.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.getRandomQuote.auth.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.getRandomQuote.auth.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.getRandomQuote.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.getRandomQuote.res.vtl index 634741579ce..c37b82e4a30 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.getRandomQuote.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.getRandomQuote.res.vtl @@ -1 +1 @@ -$util.toJson($ctx.prev.result) \ No newline at end of file +$util.toJson($ctx.prev.result) diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.getTodo.auth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.getTodo.auth.1.req.vtl index c25f744430b..da78f5423e7 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.getTodo.auth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.getTodo.auth.1.req.vtl @@ -33,4 +33,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.getTodo.postAuth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.getTodo.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.getTodo.postAuth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.getTodo.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.getTodo.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.getTodo.req.vtl index a8d7811a021..fd7fbfc8013 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.getTodo.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.getTodo.req.vtl @@ -31,4 +31,4 @@ $util.qr($GetRequest.put("query", $query)) $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) #end $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.getTodo.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.getTodo.res.vtl index e9ef1436bdd..92e05f99816 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.getTodo.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.getTodo.res.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson(null) #end -## [End] Get Response template. ** \ No newline at end of file +## [End] Get Response template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.listProjects.auth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.listProjects.auth.1.req.vtl index c25f744430b..da78f5423e7 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.listProjects.auth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.listProjects.auth.1.req.vtl @@ -33,4 +33,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.listProjects.postAuth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.listProjects.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.listProjects.postAuth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.listProjects.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.listProjects.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.listProjects.req.vtl index 014213710e8..ef976126825 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.listProjects.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.listProjects.req.vtl @@ -47,4 +47,4 @@ #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) #end $util.toJson($ListRequest) -## [End] List Request. ** \ No newline at end of file +## [End] List Request. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.listProjects.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.listProjects.res.vtl index ee8b6670cbc..aab9983954e 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.listProjects.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.listProjects.res.vtl @@ -4,4 +4,4 @@ #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.listTodos.auth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.listTodos.auth.1.req.vtl index c25f744430b..da78f5423e7 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.listTodos.auth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.listTodos.auth.1.req.vtl @@ -33,4 +33,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.listTodos.postAuth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.listTodos.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.listTodos.postAuth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.listTodos.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.listTodos.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.listTodos.req.vtl index 014213710e8..ef976126825 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.listTodos.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.listTodos.req.vtl @@ -47,4 +47,4 @@ #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) #end $util.toJson($ListRequest) -## [End] List Request. ** \ No newline at end of file +## [End] List Request. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.listTodos.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.listTodos.res.vtl index ee8b6670cbc..aab9983954e 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.listTodos.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Query.listTodos.res.vtl @@ -4,4 +4,4 @@ #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/QuoteResponse.author.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/QuoteResponse.author.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/QuoteResponse.author.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/QuoteResponse.author.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/QuoteResponse.author.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/QuoteResponse.author.res.vtl index f935ef45b0b..7641a22fda9 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/QuoteResponse.author.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/QuoteResponse.author.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["author"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/QuoteResponse.message.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/QuoteResponse.message.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/QuoteResponse.message.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/QuoteResponse.message.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/QuoteResponse.message.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/QuoteResponse.message.res.vtl index 16ec362ea79..7c27c12d67a 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/QuoteResponse.message.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/QuoteResponse.message.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["message"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/QuoteResponse.quote.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/QuoteResponse.quote.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/QuoteResponse.quote.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/QuoteResponse.quote.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/QuoteResponse.quote.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/QuoteResponse.quote.res.vtl index 3f2d91b1b36..d872575dc9e 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/QuoteResponse.quote.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/QuoteResponse.quote.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["quote"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/QuoteResponse.timestamp.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/QuoteResponse.timestamp.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/QuoteResponse.timestamp.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/QuoteResponse.timestamp.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/QuoteResponse.timestamp.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/QuoteResponse.timestamp.res.vtl index 5123c52c5aa..76a126983d6 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/QuoteResponse.timestamp.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/QuoteResponse.timestamp.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["timestamp"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/QuoteResponse.totalQuotes.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/QuoteResponse.totalQuotes.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/QuoteResponse.totalQuotes.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/QuoteResponse.totalQuotes.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/QuoteResponse.totalQuotes.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/QuoteResponse.totalQuotes.res.vtl index de3d42f8713..07afe2a2c90 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/QuoteResponse.totalQuotes.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/QuoteResponse.totalQuotes.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["totalQuotes"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onCreateProject.auth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onCreateProject.auth.1.req.vtl index ca6973a44ed..0d61efbb69c 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onCreateProject.auth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onCreateProject.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onCreateProject.postAuth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onCreateProject.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onCreateProject.postAuth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onCreateProject.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onCreateProject.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onCreateProject.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onCreateProject.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onCreateProject.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onCreateProject.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onCreateProject.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onCreateProject.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onCreateProject.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onCreateTodo.auth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onCreateTodo.auth.1.req.vtl index ca6973a44ed..0d61efbb69c 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onCreateTodo.auth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onCreateTodo.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onCreateTodo.postAuth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onCreateTodo.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onCreateTodo.postAuth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onCreateTodo.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onCreateTodo.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onCreateTodo.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onCreateTodo.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onCreateTodo.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onCreateTodo.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onCreateTodo.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onCreateTodo.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onCreateTodo.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onDeleteProject.auth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onDeleteProject.auth.1.req.vtl index ca6973a44ed..0d61efbb69c 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onDeleteProject.auth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onDeleteProject.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onDeleteProject.postAuth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onDeleteProject.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onDeleteProject.postAuth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onDeleteProject.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onDeleteProject.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onDeleteProject.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onDeleteProject.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onDeleteProject.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onDeleteProject.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onDeleteProject.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onDeleteProject.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onDeleteProject.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onDeleteTodo.auth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onDeleteTodo.auth.1.req.vtl index ca6973a44ed..0d61efbb69c 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onDeleteTodo.auth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onDeleteTodo.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onDeleteTodo.postAuth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onDeleteTodo.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onDeleteTodo.postAuth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onDeleteTodo.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onDeleteTodo.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onDeleteTodo.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onDeleteTodo.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onDeleteTodo.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onDeleteTodo.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onDeleteTodo.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onDeleteTodo.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onDeleteTodo.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onUpdateProject.auth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onUpdateProject.auth.1.req.vtl index ca6973a44ed..0d61efbb69c 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onUpdateProject.auth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onUpdateProject.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onUpdateProject.postAuth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onUpdateProject.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onUpdateProject.postAuth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onUpdateProject.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onUpdateProject.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onUpdateProject.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onUpdateProject.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onUpdateProject.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onUpdateProject.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onUpdateProject.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onUpdateProject.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onUpdateProject.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onUpdateTodo.auth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onUpdateTodo.auth.1.req.vtl index ca6973a44ed..0d61efbb69c 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onUpdateTodo.auth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onUpdateTodo.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onUpdateTodo.postAuth.1.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onUpdateTodo.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onUpdateTodo.postAuth.1.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onUpdateTodo.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onUpdateTodo.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onUpdateTodo.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onUpdateTodo.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onUpdateTodo.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onUpdateTodo.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onUpdateTodo.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onUpdateTodo.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Subscription.onUpdateTodo.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Todo.owner.req.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Todo.owner.req.vtl index 1aae0961a3e..a9c5efa2bb8 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Todo.owner.req.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Todo.owner.req.vtl @@ -1 +1 @@ -$util.toJson({"version":"2018-05-29","payload":{}}) \ No newline at end of file +$util.toJson({"version":"2018-05-29","payload":{}}) diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Todo.owner.res.vtl b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Todo.owner.res.vtl index c6de7a4f2cf..0552e7005c8 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Todo.owner.res.vtl +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/resolvers/Todo.owner.res.vtl @@ -17,4 +17,4 @@ $util.qr($ctx.source.put("owner", $ownerEntitiesLast)) $util.toJson($ctx.source.owner) #end -## [End] Parse owner field auth for Get. ** \ No newline at end of file +## [End] Parse owner field auth for Get. ** diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/stacks/ConnectionStack.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/stacks/ConnectionStack.json index 765e7847997..2e29888397e 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/stacks/ConnectionStack.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/stacks/ConnectionStack.json @@ -111,7 +111,7 @@ { "Ref": "referencetotransformerrootstackTodoNestedStackTodoNestedStackResource9AC126A3OutputstransformerrootstackTodoTodoTableC67E79C2Ref" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -140,4 +140,4 @@ "Type": "String" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/stacks/CustomResources.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/stacks/CustomResources.json index 016991278d0..5fe357d6096 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/stacks/CustomResources.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/stacks/CustomResources.json @@ -58,4 +58,4 @@ "Value": "" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/stacks/FunctionDirectiveStack.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/stacks/FunctionDirectiveStack.json index 320e15cb1be..ebb69f88cb4 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/stacks/FunctionDirectiveStack.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/stacks/FunctionDirectiveStack.json @@ -278,4 +278,4 @@ "Type": "String" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/stacks/Project.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/stacks/Project.json index daae2c34bb7..13124ab2091 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/stacks/Project.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/stacks/Project.json @@ -503,7 +503,7 @@ { "Ref": "ProjectTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -604,7 +604,7 @@ { "Ref": "ProjectTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -771,7 +771,7 @@ { "Ref": "ProjectTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -959,7 +959,7 @@ { "Ref": "ProjectTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1111,7 +1111,7 @@ { "Ref": "ProjectTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1232,7 +1232,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1278,7 +1278,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1324,7 +1324,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1403,7 +1403,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1533,4 +1533,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/stacks/Todo.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/stacks/Todo.json index 0984deede62..9bb77eb6416 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/stacks/Todo.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/build/stacks/Todo.json @@ -503,7 +503,7 @@ { "Ref": "TodoTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -598,7 +598,7 @@ { "Ref": "TodoTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -729,7 +729,7 @@ { "Ref": "TodoTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -881,7 +881,7 @@ { "Ref": "TodoTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1030,7 +1030,7 @@ { "Ref": "TodoTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1067,7 +1067,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1104,7 +1104,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1141,7 +1141,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1172,7 +1172,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1259,4 +1259,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/cli-inputs.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/cli-inputs.json index 1b0240fcf01..803bf145e76 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/cli-inputs.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/cli-inputs.json @@ -14,4 +14,4 @@ } ] } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/parameters.json index bd40dd4a46b..90a400a89e6 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/parameters.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/parameters.json @@ -8,4 +8,4 @@ "Outputs.UserPoolId" ] } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/resolvers/README.md b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/resolvers/README.md index 89e564c5b31..1634d295144 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/resolvers/README.md +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/resolvers/README.md @@ -1,2 +1,2 @@ Any resolvers that you add in this directory will override the ones automatically generated by Amplify CLI and will be directly copied to the cloud. -For more information, visit [https://docs.amplify.aws/cli/graphql-transformer/resolvers](https://docs.amplify.aws/cli/graphql-transformer/resolvers) \ No newline at end of file +For more information, visit [https://docs.amplify.aws/cli/graphql-transformer/resolvers](https://docs.amplify.aws/cli/graphql-transformer/resolvers) diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/transform.conf.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/transform.conf.json index 98e1e19f038..d0421b1df09 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/transform.conf.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/api/backendonly/transform.conf.json @@ -1,4 +1,4 @@ { "Version": 5, "ElasticsearchWarning": true -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/auth/backendonlyf8c4c57b/build/backendonlyf8c4c57b-cloudformation-template.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/auth/backendonlyf8c4c57b/build/backendonlyf8c4c57b-cloudformation-template.json index e4e894afdcc..678f4481b94 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/auth/backendonlyf8c4c57b/build/backendonlyf8c4c57b-cloudformation-template.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/auth/backendonlyf8c4c57b/build/backendonlyf8c4c57b-cloudformation-template.json @@ -410,4 +410,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/auth/backendonlyf8c4c57b/build/parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/auth/backendonlyf8c4c57b/build/parameters.json index 59c2504008e..fc66768060c 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/auth/backendonlyf8c4c57b/build/parameters.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/auth/backendonlyf8c4c57b/build/parameters.json @@ -56,4 +56,4 @@ }, "breakCircularDependency": true, "dependsOn": [] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/auth/backendonlyf8c4c57b/cli-inputs.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/auth/backendonlyf8c4c57b/cli-inputs.json index 7d9650c1bd9..14bad6739b6 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/auth/backendonlyf8c4c57b/cli-inputs.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/auth/backendonlyf8c4c57b/cli-inputs.json @@ -59,4 +59,4 @@ "breakCircularDependency": true, "dependsOn": [] } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/backendonly/build/cloudformation-template.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/backendonly/build/cloudformation-template.json index bd8db70c50b..f46214f1502 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/backendonly/build/cloudformation-template.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/backendonly/build/cloudformation-template.json @@ -127,7 +127,7 @@ "ApiId" ] }, - "Expires": 1773598197 + "Expires": 1776829909 } }, "GraphQLAPINONEDS95A13CF0": { @@ -531,7 +531,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -628,7 +628,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -725,7 +725,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -822,7 +822,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -919,7 +919,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1049,4 +1049,4 @@ } }, "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/backendonlyf8c4c57b/build/backendonlyf8c4c57b-cloudformation-template.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/backendonlyf8c4c57b/build/backendonlyf8c4c57b-cloudformation-template.json index e4e894afdcc..678f4481b94 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/backendonlyf8c4c57b/build/backendonlyf8c4c57b-cloudformation-template.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/backendonlyf8c4c57b/build/backendonlyf8c4c57b-cloudformation-template.json @@ -410,4 +410,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json index f1c0adb61bb..3ddfd6ce1b9 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json @@ -202,7 +202,7 @@ "authbackendonlyf8c4c57b": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-main-5e0fa-deployment/amplify-cfn-templates/auth/backendonlyf8c4c57b-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-x-x-deployment/amplify-cfn-templates/auth/backendonlyf8c4c57b-cloudformation-template.json", "Parameters": { "identityPoolName": "backendonlyf8c4c57b_identitypool_f8c4c57b", "allowUnauthenticatedIdentities": true, @@ -249,14 +249,14 @@ }, "breakCircularDependency": true, "dependsOn": "", - "env": "main" + "env": "x" } } }, "apibackendonly": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-main-5e0fa-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", "Parameters": { "AppSyncApiName": "backendonly", "DynamoDBBillingMode": "PAY_PER_REQUEST", @@ -267,16 +267,16 @@ "Outputs.UserPoolId" ] }, - "S3DeploymentBucket": "amplify-backendonly-main-5e0fa-deployment", + "S3DeploymentBucket": "amplify-backendonly-x-x-deployment", "S3DeploymentRootKey": "amplify-appsync-files/47418d5f9df78fb8fa9acaa5bd04a81ebc30971b", - "env": "main" + "env": "x" } } }, "storages3c31471c3": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-main-5e0fa-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-x-x-deployment/amplify-cfn-templates/storage/cloudformation-template.json", "Parameters": { "bucketName": "backendonlycb1a13ab81664ecaa7d015068ab2d016", "selectedGuestPermissions": "s3:GetObject,s3:ListBucket", @@ -302,18 +302,18 @@ "s3PermissionsAuthenticatedUploads": "s3:PutObject", "s3PermissionsGuestPublic": "s3:GetObject", "s3PermissionsGuestUploads": "DISALLOW", - "env": "main" + "env": "x" } } }, "functionquotegeneratorbe": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-main-5e0fa-deployment/amplify-cfn-templates/function/quotegeneratorbe-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-x-x-deployment/amplify-cfn-templates/function/quotegeneratorbe-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-backendonly-main-5e0fa-deployment", + "deploymentBucketName": "amplify-backendonly-x-x-deployment", "s3Key": "amplify-builds/quotegeneratorbe-513654756a51615a5779-build.zip", - "env": "main" + "env": "x" } } }, @@ -521,4 +521,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/quotegeneratorbe/quotegeneratorbe-cloudformation-template.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/quotegeneratorbe/quotegeneratorbe-cloudformation-template.json index 60d607e5e8b..880ce3bd4a4 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/quotegeneratorbe/quotegeneratorbe-cloudformation-template.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/quotegeneratorbe/quotegeneratorbe-cloudformation-template.json @@ -199,4 +199,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json index f1c0adb61bb..3ddfd6ce1b9 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json @@ -202,7 +202,7 @@ "authbackendonlyf8c4c57b": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-main-5e0fa-deployment/amplify-cfn-templates/auth/backendonlyf8c4c57b-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-x-x-deployment/amplify-cfn-templates/auth/backendonlyf8c4c57b-cloudformation-template.json", "Parameters": { "identityPoolName": "backendonlyf8c4c57b_identitypool_f8c4c57b", "allowUnauthenticatedIdentities": true, @@ -249,14 +249,14 @@ }, "breakCircularDependency": true, "dependsOn": "", - "env": "main" + "env": "x" } } }, "apibackendonly": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-main-5e0fa-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", "Parameters": { "AppSyncApiName": "backendonly", "DynamoDBBillingMode": "PAY_PER_REQUEST", @@ -267,16 +267,16 @@ "Outputs.UserPoolId" ] }, - "S3DeploymentBucket": "amplify-backendonly-main-5e0fa-deployment", + "S3DeploymentBucket": "amplify-backendonly-x-x-deployment", "S3DeploymentRootKey": "amplify-appsync-files/47418d5f9df78fb8fa9acaa5bd04a81ebc30971b", - "env": "main" + "env": "x" } } }, "storages3c31471c3": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-main-5e0fa-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-x-x-deployment/amplify-cfn-templates/storage/cloudformation-template.json", "Parameters": { "bucketName": "backendonlycb1a13ab81664ecaa7d015068ab2d016", "selectedGuestPermissions": "s3:GetObject,s3:ListBucket", @@ -302,18 +302,18 @@ "s3PermissionsAuthenticatedUploads": "s3:PutObject", "s3PermissionsGuestPublic": "s3:GetObject", "s3PermissionsGuestUploads": "DISALLOW", - "env": "main" + "env": "x" } } }, "functionquotegeneratorbe": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-main-5e0fa-deployment/amplify-cfn-templates/function/quotegeneratorbe-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-x-x-deployment/amplify-cfn-templates/function/quotegeneratorbe-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-backendonly-main-5e0fa-deployment", + "deploymentBucketName": "amplify-backendonly-x-x-deployment", "s3Key": "amplify-builds/quotegeneratorbe-513654756a51615a5779-build.zip", - "env": "main" + "env": "x" } } }, @@ -521,4 +521,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/awscloudformation/build/storage/s3c31471c3/build/cloudformation-template.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/awscloudformation/build/storage/s3c31471c3/build/cloudformation-template.json index 8bac1dbfa69..204a64677c8 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/awscloudformation/build/storage/s3c31471c3/build/cloudformation-template.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/awscloudformation/build/storage/s3c31471c3/build/cloudformation-template.json @@ -643,4 +643,4 @@ "Condition": "GuestReadAndList" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/backend-config.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/backend-config.json index 425fd5a5ebb..7f358b3b11e 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/backend-config.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/backend-config.json @@ -92,4 +92,4 @@ "service": "S3" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/function/quotegeneratorbe/amplify.state b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/function/quotegeneratorbe/amplify.state index 0c3efe04706..ab8a6cc8046 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/function/quotegeneratorbe/amplify.state +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/function/quotegeneratorbe/amplify.state @@ -3,4 +3,4 @@ "functionRuntime": "nodejs", "useLegacyBuild": true, "defaultEditorFile": "src/index.js" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/function/quotegeneratorbe/custom-policies.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/function/quotegeneratorbe/custom-policies.json index 528c94f2f26..1f21c530082 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/function/quotegeneratorbe/custom-policies.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/function/quotegeneratorbe/custom-policies.json @@ -3,4 +3,4 @@ "Action": [], "Resource": [] } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/function/quotegeneratorbe/function-parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/function/quotegeneratorbe/function-parameters.json index d5078776c21..481f6af97f7 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/function/quotegeneratorbe/function-parameters.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/function/quotegeneratorbe/function-parameters.json @@ -1,3 +1,3 @@ { "lambdaLayers": [] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/function/quotegeneratorbe/quotegeneratorbe-cloudformation-template.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/function/quotegeneratorbe/quotegeneratorbe-cloudformation-template.json index 60d607e5e8b..880ce3bd4a4 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/function/quotegeneratorbe/quotegeneratorbe-cloudformation-template.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/function/quotegeneratorbe/quotegeneratorbe-cloudformation-template.json @@ -199,4 +199,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/function/quotegeneratorbe/src/package.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/function/quotegeneratorbe/src/package.json index 2143bf92d00..333ff04a2bb 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/function/quotegeneratorbe/src/package.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/function/quotegeneratorbe/src/package.json @@ -10,4 +10,4 @@ "dependencies": { "cli-table3": "0.6.5" } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/storage/s3c31471c3/build/cloudformation-template.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/storage/s3c31471c3/build/cloudformation-template.json index 6e2bc99e890..d9b5969f570 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/storage/s3c31471c3/build/cloudformation-template.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/storage/s3c31471c3/build/cloudformation-template.json @@ -634,4 +634,4 @@ "Condition": "GuestReadAndList" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/storage/s3c31471c3/build/parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/storage/s3c31471c3/build/parameters.json index af6e2914a1b..8f699d08a01 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/storage/s3c31471c3/build/parameters.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/storage/s3c31471c3/build/parameters.json @@ -31,4 +31,4 @@ "s3PermissionsAuthenticatedUploads": "s3:PutObject", "s3PermissionsGuestPublic": "s3:GetObject", "s3PermissionsGuestUploads": "DISALLOW" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/storage/s3c31471c3/cli-inputs.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/storage/s3c31471c3/cli-inputs.json index fe0c584c619..782d10c6c7b 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/storage/s3c31471c3/cli-inputs.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/storage/s3c31471c3/cli-inputs.json @@ -13,4 +13,4 @@ ], "triggerFunction": "NONE", "groupAccess": {} -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/tags.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/tags.json index b9321d71b83..71f6abe11a6 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/tags.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/tags.json @@ -7,4 +7,4 @@ "Key": "user:Application", "Value": "{project-name}" } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts index f1d8760531e..555584bd10e 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts @@ -32,4 +32,4 @@ export type AmplifyDependentResourcesAttributes = { "Region": "string" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/cli.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/cli.json index 11dc8ca0f7d..6991bfaca44 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/cli.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/cli.json @@ -62,4 +62,4 @@ "debug": { "shareProjectConfig": false } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/team-provider-info.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/team-provider-info.json index 6bb13f3e803..a3b532e15bf 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/team-provider-info.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/amplify/team-provider-info.json @@ -1,14 +1,14 @@ { - "main": { + "x": { "awscloudformation": { - "AuthRoleName": "amplify-backendonly-main-5e0fa-authRole", - "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-backendonly-main-5e0fa-unauthRole", - "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-backendonly-main-5e0fa-authRole", + "AuthRoleName": "amplify-backendonly-x-x-authRole", + "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-backendonly-x-x-unauthRole", + "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-backendonly-x-x-authRole", "Region": "us-east-1", - "DeploymentBucketName": "amplify-backendonly-main-5e0fa-deployment", - "UnauthRoleName": "amplify-backendonly-main-5e0fa-unauthRole", - "StackName": "amplify-backendonly-main-5e0fa", - "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-backendonly-main-5e0fa/6563d5d0-1b19-11f1-9ce2-0e0bf294f4d9", + "DeploymentBucketName": "amplify-backendonly-x-x-deployment", + "UnauthRoleName": "amplify-backendonly-x-x-unauthRole", + "StackName": "amplify-backendonly-x-x", + "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-backendonly-x-x/53088ca0-387e-11f1-b94b-12f2170fbccd", "AmplifyAppId": "backendonly" }, "categories": { @@ -17,7 +17,7 @@ }, "function": { "quotegeneratorbe": { - "deploymentBucketName": "amplify-backendonly-main-5e0fa-deployment", + "deploymentBucketName": "amplify-backendonly-x-x-deployment", "s3Key": "amplify-builds/quotegeneratorbe-513654756a51615a5779-build.zip" } }, @@ -29,4 +29,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.generate/package.json b/amplify-migration-apps/backend-only/_snapshot.pre.generate/package.json index 3e8aa480a2a..207b6763f90 100644 --- a/amplify-migration-apps/backend-only/_snapshot.pre.generate/package.json +++ b/amplify-migration-apps/backend-only/_snapshot.pre.generate/package.json @@ -7,7 +7,23 @@ "hoistingLimits": "workspaces" }, "scripts": { + "configure": "./backend/configure.sh", "sanitize": "tsx ../sanitize.ts", - "typecheck": "cd _snapshot.post.generate/amplify && npx tsc --noEmit" + "normalize": "tsx ../normalize.ts", + "typecheck": "cd _snapshot.post.generate/amplify && npx tsc --noEmit", + "test:gen1": "true", + "test:gen2": "true", + "test:shared-data": "true", + "test:e2e": "cd ../../packages/amplify-gen2-migration-e2e-system && npx tsx src/cli.ts --app backend-only --profile ${AWS_PROFILE:-default}", + "deploy": "cd ../../packages/amplify-gen2-migration-e2e-system && npx tsx src/cli.ts --app backend-only --step deploy --profile ${AWS_PROFILE:-default}", + "pre-push": "true", + "post-generate": "npx tsx migration/post-generate.ts", + "post-refactor": "npx tsx migration/post-refactor.ts", + "post-sandbox": "true", + "pre-sandbox": "true", + "post-push": "true" + }, + "devDependencies": { + "@aws-sdk/client-cognito-identity-provider": "^3.936.0" } } diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.description.txt b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.outputs.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.outputs.json new file mode 100644 index 00000000000..b1b4cb6f031 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.outputs.json @@ -0,0 +1,6 @@ +[ + { + "OutputKey": "amplifybackendonlye2esandbox363d3cd24ddataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEventECB17234Arn", + "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-backendonl2604142-TableManagerCustomProvid-hhZym1kC9BC3" + } +] diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.parameters.json new file mode 100644 index 00000000000..bf0dff80c49 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.parameters.json @@ -0,0 +1,6 @@ +[ + { + "ParameterKey": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId", + "ParameterValue": "64fwpekbzfhs7ctgvnsvdv33fa" + } +] diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.template.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.template.json new file mode 100644 index 00000000000..9c89f755fd5 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.template.json @@ -0,0 +1,771 @@ +{ + "Resources": { + "AmplifyManagedTableIsCompleteRoleF825222C": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:CreateTable", + "dynamodb:UpdateTable", + "dynamodb:DeleteTable", + "dynamodb:DescribeTable", + "dynamodb:DescribeContinuousBackups", + "dynamodb:DescribeTimeToLive", + "dynamodb:UpdateContinuousBackups", + "dynamodb:UpdateTimeToLive", + "dynamodb:TagResource", + "dynamodb:UntagResource", + "dynamodb:ListTagsOfResource" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/*-${apiId}-${envName}", + { + "apiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "envName": "NONE" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", + { + "tableName": "Project-q2d7oghxlbgxxj3fr2t6f2bpm4-x" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", + { + "tableName": "Todo-q2d7oghxlbgxxj3fr2t6f2bpm4-x" + } + ] + } + ] + }, + { + "Action": "lambda:ListTags", + "Effect": "Allow", + "Resource": { + "Fn::Sub": [ + "arn:${AWS::Partition}:lambda:${AWS::Region}:${AWS::AccountId}:function:*TableManager*", + {} + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "CreateUpdateDeleteTablesPolicy" + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/AmplifyManagedTableIsCompleteRole/Resource" + } + }, + "AmplifyManagedTableOnEventRoleB4E71DEA": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:CreateTable", + "dynamodb:UpdateTable", + "dynamodb:DeleteTable", + "dynamodb:DescribeTable", + "dynamodb:DescribeContinuousBackups", + "dynamodb:DescribeTimeToLive", + "dynamodb:UpdateContinuousBackups", + "dynamodb:UpdateTimeToLive", + "dynamodb:TagResource", + "dynamodb:UntagResource", + "dynamodb:ListTagsOfResource" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/*-${apiId}-${envName}", + { + "apiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "envName": "NONE" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", + { + "tableName": "Project-q2d7oghxlbgxxj3fr2t6f2bpm4-x" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", + { + "tableName": "Todo-q2d7oghxlbgxxj3fr2t6f2bpm4-x" + } + ] + } + ] + }, + { + "Action": "lambda:ListTags", + "Effect": "Allow", + "Resource": { + "Fn::Sub": [ + "arn:${AWS::Partition}:lambda:${AWS::Region}:${AWS::AccountId}:function:*TableManager*", + {} + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "CreateUpdateDeleteTablesPolicy" + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/AmplifyManagedTableOnEventRole/Resource" + } + }, + "AmplifyManagedTableOnEventRoleDefaultPolicyF6DABCB6": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "states:StartExecution", + "Effect": "Allow", + "Resource": { + "Ref": "AmplifyTableWaiterStateMachine060600BC" + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "AmplifyManagedTableOnEventRoleDefaultPolicyF6DABCB6", + "Roles": [ + { + "Ref": "AmplifyManagedTableOnEventRoleB4E71DEA" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/AmplifyManagedTableOnEventRole/DefaultPolicy/Resource" + } + }, + "TableManagerCustomProviderframeworkonEvent1DFC2ECC": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6.zip" + }, + "Description": "AmplifyManagedTable - onEvent (amplify-backendonly-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider)", + "Environment": { + "Variables": { + "WAITER_STATE_MACHINE_ARN": { + "Ref": "AmplifyTableWaiterStateMachine060600BC" + } + } + }, + "Handler": "amplify-table-manager-handler.onEvent", + "Role": { + "Fn::GetAtt": [ + "AmplifyManagedTableOnEventRoleB4E71DEA", + "Arn" + ] + }, + "Runtime": "nodejs24.x", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 840 + }, + "DependsOn": [ + "AmplifyManagedTableOnEventRoleDefaultPolicyF6DABCB6", + "AmplifyManagedTableOnEventRoleB4E71DEA" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider/framework-onEvent/Resource", + "aws:asset:path": "asset.f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6", + "aws:asset:is-bundled": false, + "aws:asset:property": "Code" + } + }, + "TableManagerCustomProviderframeworkisComplete2E51021B": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6.zip" + }, + "Description": "AmplifyManagedTable - isComplete (amplify-backendonly-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider)", + "Handler": "amplify-table-manager-handler.isComplete", + "Role": { + "Fn::GetAtt": [ + "AmplifyManagedTableIsCompleteRoleF825222C", + "Arn" + ] + }, + "Runtime": "nodejs24.x", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 840 + }, + "DependsOn": [ + "AmplifyManagedTableIsCompleteRoleF825222C" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider/framework-isComplete/Resource", + "aws:asset:path": "asset.f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6", + "aws:asset:is-bundled": false, + "aws:asset:property": "Code" + } + }, + "AmplifyTableWaiterStateMachineRole470BE899": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "states.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Role/Resource" + } + }, + "AmplifyTableWaiterStateMachineRoleDefaultPolicy89F3836A": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "TableManagerCustomProviderframeworkisComplete2E51021B", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "TableManagerCustomProviderframeworkisComplete2E51021B", + "Arn" + ] + }, + ":*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "AmplifyTableWaiterStateMachineRoleDefaultPolicy89F3836A", + "Roles": [ + { + "Ref": "AmplifyTableWaiterStateMachineRole470BE899" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Role/DefaultPolicy/Resource" + } + }, + "AmplifyTableWaiterStateMachine060600BC": { + "Type": "AWS::StepFunctions::StateMachine", + "Properties": { + "DefinitionString": { + "Fn::Join": [ + "", + [ + "{\"StartAt\":\"framework-isComplete-task\",\"States\":{\"framework-isComplete-task\":{\"End\":true,\"Retry\":[{\"ErrorEquals\":[\"States.ALL\"],\"IntervalSeconds\":10,\"MaxAttempts\":360,\"BackoffRate\":1}],\"Type\":\"Task\",\"Resource\":\"", + { + "Fn::GetAtt": [ + "TableManagerCustomProviderframeworkisComplete2E51021B", + "Arn" + ] + }, + "\"}}}" + ] + ] + }, + "RoleArn": { + "Fn::GetAtt": [ + "AmplifyTableWaiterStateMachineRole470BE899", + "Arn" + ] + } + }, + "DependsOn": [ + "AmplifyTableWaiterStateMachineRoleDefaultPolicy89F3836A", + "AmplifyTableWaiterStateMachineRole470BE899" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/zWNyw6CMBBFv8V9GbFE92Li0hj4ADK0IymPNmFaiWn67wbQ1Tk3Z3ElyHMO+QEXzpQestG0EB/EnnTtUQ0CF26iwQli5UYSt5fd+HSjUZ917pbEiFOrEeI9WOWNs2v7exJcNMhMnuG6QnABZVAD+RKZkqiIXZgVia3WHjtju+3sF5KwThP0fHxLCacL5IeejcnmYL2ZCKqdX3lj/13PAAAA" + }, + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId": { + "Type": "String" + } + }, + "Outputs": { + "amplifybackendonlye2esandbox363d3cd24ddataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEventECB17234Arn": { + "Value": { + "Fn::GetAtt": [ + "TableManagerCustomProviderframeworkonEvent1DFC2ECC", + "Arn" + ] + } + } + } +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.description.txt b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.outputs.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.outputs.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.outputs.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.parameters.json new file mode 100644 index 00000000000..18d706ae2ce --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.parameters.json @@ -0,0 +1,30 @@ +[ + { + "ParameterKey": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId", + "ParameterValue": "64fwpekbzfhs7ctgvnsvdv33fa" + }, + { + "ParameterKey": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataTodoNestedStackTodoNestedStackResource816A561BOutputsamplifybackendonlye2esandbox363d3cd24ddataamplifyDataTodoTodoTableA22C737DTableArn", + "ParameterValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Todo-q2d7oghxlbgxxj3fr2t6f2bpm4-x" + }, + { + "ParameterKey": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef", + "ParameterValue": "amplify-backendonl2604142-amplifyAuthauthenticatedU-e2MZgmxI4x06" + }, + { + "ParameterKey": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataTodoNestedStackTodoNestedStackResource816A561BOutputsamplifybackendonlye2esandbox363d3cd24ddataamplifyDataTodoTodoDataSource6A510C2FName", + "ParameterValue": "TodoTable" + }, + { + "ParameterKey": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref", + "ParameterValue": "amplify-backendonl2604142-amplifyAuthunauthenticate-T0OFU3aW6x78" + }, + { + "ParameterKey": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref", + "ParameterValue": "us-east-1:253c6cb3-ea32-4bc6-9532-d622a04831ed" + } +] diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.template.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.template.json new file mode 100644 index 00000000000..41e43417554 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.template.json @@ -0,0 +1,446 @@ +{ + "Resources": { + "Projecttodosauth0FunctionProjecttodosauth0FunctionAppSyncFunctionB9D5F5D1": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "Projecttodosauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/5b76230ddca90214a01050b60af72361023d26ae9f8b9f3ac2b9df9b331548ff.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/ConnectionStack/Projecttodosauth0Function/Projecttodosauth0Function.AppSyncFunction" + } + }, + "ProjectTodosDataResolverFnProjectTodosDataResolverFnAppSyncFunction6418E519": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataTodoNestedStackTodoNestedStackResource816A561BOutputsamplifybackendonlye2esandbox363d3cd24ddataamplifyDataTodoTodoDataSource6A510C2FName" + }, + "FunctionVersion": "2018-05-29", + "Name": "ProjectTodosDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e91161e60738a0c871aa03b1cbde892843a99e562f5fe5d16f100a96c39191f0.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/49e7a1f2fb4c809b82bed6b0242a2a3bcfa2c5276ebd2539ff330fee36f8fe18.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/ConnectionStack/ProjectTodosDataResolverFn/ProjectTodosDataResolverFn.AppSyncFunction" + } + }, + "ProjecttodosResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "FieldName": "todos", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "Projecttodosauth0FunctionProjecttodosauth0FunctionAppSyncFunctionB9D5F5D1", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "ProjectTodosDataResolverFnProjectTodosDataResolverFnAppSyncFunction6418E519", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Project\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"todos\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataTodoNestedStackTodoNestedStackResource816A561BOutputsamplifybackendonlye2esandbox363d3cd24ddataamplifyDataTodoTodoTableA22C737DTableArn" + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Project" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/ConnectionStack/projectTodosResolver" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXMQQ6CQAxA0bO4HyoO0b2QuHQBByB1KKSAHUJnIIZwd4OuXv7mW7DXFNITrpq4ZkhGfsH2JA3UVAHdYHDVetOsRlUKCvcDoxnk0Q0UclQyOE36EQdb0cojigvspfDSchdnPMIUrZSkflxo3nfze1QBO5ZuN+Ibgl7Pi7VwuUF66pU5maMEfhOUf7+QP0CWpwAAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/ConnectionStack/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId": { + "Type": "String" + }, + "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name": { + "Type": "String" + }, + "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataTodoNestedStackTodoNestedStackResource816A561BOutputsamplifybackendonlye2esandbox363d3cd24ddataamplifyDataTodoTodoDataSource6A510C2FName": { + "Type": "String" + }, + "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataTodoNestedStackTodoNestedStackResource816A561BOutputsamplifybackendonlye2esandbox363d3cd24ddataamplifyDataTodoTodoTableA22C737DTableArn": { + "Type": "String" + }, + "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef": { + "Type": "String" + }, + "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref": { + "Type": "String" + }, + "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref": { + "Type": "String" + } + } +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.description.txt b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.description.txt new file mode 100644 index 00000000000..6b3d983ba60 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.description.txt @@ -0,0 +1 @@ +An auto-generated nested stack for the @function directive. diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.outputs.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.outputs.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.outputs.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.parameters.json new file mode 100644 index 00000000000..ddf4498feab --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.parameters.json @@ -0,0 +1,22 @@ +[ + { + "ParameterKey": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId", + "ParameterValue": "64fwpekbzfhs7ctgvnsvdv33fa" + }, + { + "ParameterKey": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef", + "ParameterValue": "amplify-backendonl2604142-amplifyAuthauthenticatedU-e2MZgmxI4x06" + }, + { + "ParameterKey": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref", + "ParameterValue": "amplify-backendonl2604142-amplifyAuthunauthenticate-T0OFU3aW6x78" + }, + { + "ParameterKey": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref", + "ParameterValue": "us-east-1:253c6cb3-ea32-4bc6-9532-d622a04831ed" + } +] diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.template.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.template.json new file mode 100644 index 00000000000..a18790f2cf4 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.template.json @@ -0,0 +1,560 @@ +{ + "Description": "An auto-generated nested stack for the @function directive.", + "AWSTemplateFormatVersion": "2010-09-09", + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + "NONE", + "NONE" + ] + } + ] + }, + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Resources": { + "QuotegeneratorGen2SwedqgwlifLambdaDataSourceServiceRoleB8202CCB": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/QuotegeneratorGen2SwedqgwlifLambdaDataSource/ServiceRole/Resource" + } + }, + "QuotegeneratorGen2SwedqgwlifLambdaDataSourceServiceRoleDefaultPolicy73BD834F": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator-gen2-x", + {} + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator-gen2-x" + } + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator-gen2-x", + {} + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator-gen2-x" + } + ] + }, + ":*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "QuotegeneratorGen2SwedqgwlifLambdaDataSourceServiceRoleDefaultPolicy73BD834F", + "Roles": [ + { + "Ref": "QuotegeneratorGen2SwedqgwlifLambdaDataSourceServiceRoleB8202CCB" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/QuotegeneratorGen2SwedqgwlifLambdaDataSource/ServiceRole/DefaultPolicy/Resource" + } + }, + "QuotegeneratorGen2SwedqgwlifLambdaDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "LambdaConfig": { + "LambdaFunctionArn": { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator-gen2-x", + {} + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator-gen2-x" + } + ] + } + }, + "Name": "QuotegeneratorGen2SwedqgwlifLambdaDataSource", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "QuotegeneratorGen2SwedqgwlifLambdaDataSourceServiceRoleB8202CCB", + "Arn" + ] + }, + "Type": "AWS_LAMBDA" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/QuotegeneratorGen2SwedqgwlifLambdaDataSource/Resource" + } + }, + "InvokeQuotegeneratorGen2SwedqgwlifLambdaDataSourceInvokeQuotegeneratorGen2SwedqgwlifLambdaDataSourceAppSyncFunction88B50E2A": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "QuotegeneratorGen2SwedqgwlifLambdaDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "InvokeQuotegeneratorGen2SwedqgwlifLambdaDataSource", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/78782c75a87f723f2233b8f3eb0eafb4c9d776d40551ff4f5878175aef97aed8.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a20e304512b1fde77dc16ed9d5e0ed03817afcab629ce87ef11c99877b7b1e30.vtl" + } + }, + "DependsOn": [ + "QuotegeneratorGen2SwedqgwlifLambdaDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/InvokeQuotegeneratorGen2SwedqgwlifLambdaDataSource/InvokeQuotegeneratorGen2SwedqgwlifLambdaDataSource.AppSyncFunction" + } + }, + "QuerygetRandomQuoteResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "FieldName": "getRandomQuote", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QueryGetRandomQuoteAuthFNQueryGetRandomQuoteAuthFNAppSyncFunction15864A6C", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "InvokeQuotegeneratorGen2SwedqgwlifLambdaDataSourceInvokeQuotegeneratorGen2SwedqgwlifLambdaDataSourceAppSyncFunction88B50E2A", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getRandomQuote\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n{}\n## [End] Stash resolver specific context.. **" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/387d5992f5fc03d05de27289457dcc374a84c42a889acb504aff1031047dde00.vtl" + }, + "TypeName": "Query" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/queryGetRandomQuoteResolver" + } + }, + "QueryGetRandomQuoteAuthFNQueryGetRandomQuoteAuthFNAppSyncFunction15864A6C": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryGetRandomQuoteAuthFN", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/QueryGetRandomQuoteAuthFN/QueryGetRandomQuoteAuthFN.AppSyncFunction" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOQWvDMAyFf0vvjpalbPc1o6cxRvIDimorQY0jl8huKSH/fdhlh50+vSe9hxpo3mqod3jXyrqp8nyG9Zs0kusj2sm0g7RBHEcOYvCup9XjfHYIxyQ2mwdUMni96kMsrF9l+YkR+5AWSzn/X/3l2iADj2nB0twO0pEGf6NlM4wzrF3w5b7wJ3i2jyyf02Z0f0JVigofGUb3cEh2opj/2Uwx+4gjy7gZCY7goi+3poHXd6h3F2WuliSRZ4LuyV9Irx7YCwEAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Parameters": { + "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId": { + "Type": "String" + }, + "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef": { + "Type": "String" + }, + "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref": { + "Type": "String" + }, + "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref": { + "Type": "String" + }, + "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name": { + "Type": "String" + } + } +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataProjectNestedStackProjectNested-x.description.txt b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataProjectNestedStackProjectNested-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataProjectNestedStackProjectNested-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataProjectNestedStackProjectNested-x.outputs.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataProjectNestedStackProjectNested-x.outputs.json new file mode 100644 index 00000000000..18179e21a35 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataProjectNestedStackProjectNested-x.outputs.json @@ -0,0 +1,14 @@ +[ + { + "OutputKey": "GetAttProjectTableStreamArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Project-q2d7oghxlbgxxj3fr2t6f2bpm4-x/stream/2026-04-15T03:52:55.194", + "Description": "Your DynamoDB table StreamArn.", + "ExportName": "64fwpekbzfhs7ctgvnsvdv33fa:GetAtt:ProjectTable:StreamArn" + }, + { + "OutputKey": "GetAttProjectTableName", + "OutputValue": "Project-q2d7oghxlbgxxj3fr2t6f2bpm4-x", + "Description": "Your DynamoDB table name.", + "ExportName": "64fwpekbzfhs7ctgvnsvdv33fa:GetAtt:ProjectTable:Name" + } +] diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataProjectNestedStackProjectNested-x.parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataProjectNestedStackProjectNested-x.parameters.json new file mode 100644 index 00000000000..35a05c9370e --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataProjectNestedStackProjectNested-x.parameters.json @@ -0,0 +1,46 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId", + "ParameterValue": "64fwpekbzfhs7ctgvnsvdv33fa" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "true" + }, + { + "ParameterKey": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef", + "ParameterValue": "amplify-backendonl2604142-amplifyAuthauthenticatedU-e2MZgmxI4x06" + }, + { + "ParameterKey": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceB327995EOutputsamplifybackendonlye2esandbox363d3cd24ddataamplifyDataAmplifyTableManagerTabB8C02936", + "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-backendonl2604142-TableManagerCustomProvid-hhZym1kC9BC3" + }, + { + "ParameterKey": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref", + "ParameterValue": "amplify-backendonl2604142-amplifyAuthunauthenticate-T0OFU3aW6x78" + }, + { + "ParameterKey": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref", + "ParameterValue": "us-east-1:253c6cb3-ea32-4bc6-9532-d622a04831ed" + } +] diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataProjectNestedStackProjectNested-x.template.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataProjectNestedStackProjectNested-x.template.json new file mode 100644 index 00000000000..84ed9a67164 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataProjectNestedStackProjectNested-x.template.json @@ -0,0 +1,2128 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceB327995EOutputsamplifybackendonlye2esandbox363d3cd24ddataamplifyDataAmplifyTableManagerTabB8C02936": { + "Type": "String" + }, + "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId": { + "Type": "String" + }, + "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name": { + "Type": "String" + }, + "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef": { + "Type": "String" + }, + "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref": { + "Type": "String" + }, + "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + "NONE", + "NONE" + ] + } + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + }, + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Resources": { + "ProjectTable": { + "Type": "Custom::ImportedAmplifyDynamoDBTable", + "Properties": { + "ServiceToken": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceB327995EOutputsamplifybackendonlye2esandbox363d3cd24ddataamplifyDataAmplifyTableManagerTabB8C02936" + }, + "tableName": "Project-q2d7oghxlbgxxj3fr2t6f2bpm4-x", + "attributeDefinitions": [ + { + "attributeName": "id", + "attributeType": "S" + } + ], + "keySchema": [ + { + "attributeName": "id", + "keyType": "HASH" + } + ], + "provisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "sseSpecification": { + "sseEnabled": false + }, + "streamSpecification": { + "streamViewType": "NEW_AND_OLD_IMAGES" + }, + "deletionProtectionEnabled": true, + "allowDestructiveGraphqlSchemaUpdates": true, + "replaceTableUponGsiUpdate": false, + "isImported": true, + "pointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "billingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Project/ProjectTable/Default/Default" + } + }, + "ProjectIAMRole928454B5": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem", + "dynamodb:ConditionCheckItem", + "dynamodb:DescribeTable", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": "Project-q2d7oghxlbgxxj3fr2t6f2bpm4-x" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": "Project-q2d7oghxlbgxxj3fr2t6f2bpm4-x" + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess" + } + ], + "RoleName": { + "Fn::Join": [ + "", + [ + "ProjectIAMRole032cf0-", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "-NONE" + ] + ] + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Project/ProjectIAMRole/Resource" + } + }, + "ProjectDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "ProjectTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + } + }, + "Name": "ProjectTable", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "ProjectIAMRole928454B5", + "Arn" + ] + }, + "Type": "AMAZON_DYNAMODB" + }, + "DependsOn": [ + "ProjectIAMRole928454B5" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Project/ProjectDataSource/Resource" + } + }, + "QuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionED686A7E": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetProjectauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/b3e5411cda152c2308dac0a81ffb999cc9c81ea2a1f51e6ce05a377bef8c4dfd.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Project/QuerygetProjectauth0Function/QuerygetProjectauth0Function.AppSyncFunction" + } + }, + "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetProjectpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Project/QuerygetProjectpostAuth0Function/QuerygetProjectpostAuth0Function.AppSyncFunction" + } + }, + "QueryGetProjectDataResolverFnQueryGetProjectDataResolverFnAppSyncFunctionD6A0F260": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProjectDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryGetProjectDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/08f4d557693d96c1a4efba0f9dc91330e4b19772fd5477c156468843e3d9cb5e.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4c6a2d29f01c6091bd1d9afe16e5849d456c96f17c3b215938c8067399532719.vtl" + } + }, + "DependsOn": [ + "ProjectDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Project/QueryGetProjectDataResolverFn/QueryGetProjectDataResolverFn.AppSyncFunction" + } + }, + "GetProjectResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "FieldName": "getProject", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionED686A7E", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryGetProjectDataResolverFnQueryGetProjectDataResolverFnAppSyncFunctionD6A0F260", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "ProjectTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Project/queryGetProjectResolver" + } + }, + "QuerylistProjectsauth0FunctionQuerylistProjectsauth0FunctionAppSyncFunctionC4E09D6C": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerylistProjectsauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/b3e5411cda152c2308dac0a81ffb999cc9c81ea2a1f51e6ce05a377bef8c4dfd.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Project/QuerylistProjectsauth0Function/QuerylistProjectsauth0Function.AppSyncFunction" + } + }, + "QuerylistProjectspostAuth0FunctionQuerylistProjectspostAuth0FunctionAppSyncFunctionCD78842F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerylistProjectspostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Project/QuerylistProjectspostAuth0Function/QuerylistProjectspostAuth0Function.AppSyncFunction" + } + }, + "QueryListProjectsDataResolverFnQueryListProjectsDataResolverFnAppSyncFunction0812E3B9": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProjectDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryListProjectsDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9fcbe070ecd3023c5bf5b966fa9584757db9762eef123bad0820bd87591b2174.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/cc01911d0269d4080ea57505dc445dfc315ef7ad85d3d9d4ea1357858bff451d.vtl" + } + }, + "DependsOn": [ + "ProjectDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Project/QueryListProjectsDataResolverFn/QueryListProjectsDataResolverFn.AppSyncFunction" + } + }, + "ListProjectResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "FieldName": "listProjects", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerylistProjectsauth0FunctionQuerylistProjectsauth0FunctionAppSyncFunctionC4E09D6C", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerylistProjectspostAuth0FunctionQuerylistProjectspostAuth0FunctionAppSyncFunctionCD78842F", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryListProjectsDataResolverFnQueryListProjectsDataResolverFnAppSyncFunction0812E3B9", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listProjects\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "ProjectTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Project/queryListProjectsResolver" + } + }, + "MutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction412D09B9": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateProjectinit0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a183ddccbd956316c38ef97177b8f088ef0826f62023323f5ae6053d348ccffc.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Project/MutationcreateProjectinit0Function/MutationcreateProjectinit0Function.AppSyncFunction" + } + }, + "MutationcreateProjectauth0FunctionMutationcreateProjectauth0FunctionAppSyncFunction4FB957D8": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateProjectauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/bec8053450360bcba98bf86fd1d7222c4ab098a68d5dd9edde9c8bedb1269920.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Project/MutationcreateProjectauth0Function/MutationcreateProjectauth0Function.AppSyncFunction" + } + }, + "MutationcreateProjectpostAuth0FunctionMutationcreateProjectpostAuth0FunctionAppSyncFunctionE02C5772": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateProjectpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Project/MutationcreateProjectpostAuth0Function/MutationcreateProjectpostAuth0Function.AppSyncFunction" + } + }, + "MutationCreateProjectDataResolverFnMutationCreateProjectDataResolverFnAppSyncFunction729D2B08": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProjectDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationCreateProjectDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/3cb178b90d1c8bc93547dc8641ba504d90fbb14ed1e69b69300519d3e30293d4.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "ProjectDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Project/MutationCreateProjectDataResolverFn/MutationCreateProjectDataResolverFn.AppSyncFunction" + } + }, + "CreateProjectResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "FieldName": "createProject", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction412D09B9", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationcreateProjectauth0FunctionMutationcreateProjectauth0FunctionAppSyncFunction4FB957D8", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationcreateProjectpostAuth0FunctionMutationcreateProjectpostAuth0FunctionAppSyncFunctionE02C5772", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationCreateProjectDataResolverFnMutationCreateProjectDataResolverFnAppSyncFunction729D2B08", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "ProjectTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Project/mutationCreateProjectResolver" + } + }, + "MutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunction20F7A53C": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateProjectinit0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/06db846fd14e6fc371f22b12b5545ba8e2dbfeda85d8c8d586c71c282166657b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Project/MutationupdateProjectinit0Function/MutationupdateProjectinit0Function.AppSyncFunction" + } + }, + "MutationupdateProjectauth0FunctionMutationupdateProjectauth0FunctionAppSyncFunctionF9C2F303": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProjectDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateProjectauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/3b23a1864d96bd46ffb8192c8f07be60a9c7d1ea5107981da41331d305221140.vtl" + } + }, + "DependsOn": [ + "ProjectDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Project/MutationupdateProjectauth0Function/MutationupdateProjectauth0Function.AppSyncFunction" + } + }, + "MutationupdateProjectpostAuth0FunctionMutationupdateProjectpostAuth0FunctionAppSyncFunction92184EC0": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateProjectpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Project/MutationupdateProjectpostAuth0Function/MutationupdateProjectpostAuth0Function.AppSyncFunction" + } + }, + "MutationUpdateProjectDataResolverFnMutationUpdateProjectDataResolverFnAppSyncFunction9E902778": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProjectDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationUpdateProjectDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/474bf0776ec2164a13191d1a0a9e057154931e4918fea5086f49850d02a5371b.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "ProjectDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Project/MutationUpdateProjectDataResolverFn/MutationUpdateProjectDataResolverFn.AppSyncFunction" + } + }, + "UpdateProjectResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "FieldName": "updateProject", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunction20F7A53C", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationupdateProjectauth0FunctionMutationupdateProjectauth0FunctionAppSyncFunctionF9C2F303", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationupdateProjectpostAuth0FunctionMutationupdateProjectpostAuth0FunctionAppSyncFunction92184EC0", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationUpdateProjectDataResolverFnMutationUpdateProjectDataResolverFnAppSyncFunction9E902778", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "ProjectTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Project/mutationUpdateProjectResolver" + } + }, + "MutationdeleteProjectauth0FunctionMutationdeleteProjectauth0FunctionAppSyncFunction67C3BC9D": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProjectDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeleteProjectauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/6257bfd1ef2992bd01df135516c0df15c5ff692f426e0c71c93960be8f8c81df.vtl" + } + }, + "DependsOn": [ + "ProjectDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Project/MutationdeleteProjectauth0Function/MutationdeleteProjectauth0Function.AppSyncFunction" + } + }, + "MutationdeleteProjectpostAuth0FunctionMutationdeleteProjectpostAuth0FunctionAppSyncFunctionA59E7CB4": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeleteProjectpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Project/MutationdeleteProjectpostAuth0Function/MutationdeleteProjectpostAuth0Function.AppSyncFunction" + } + }, + "MutationDeleteProjectDataResolverFnMutationDeleteProjectDataResolverFnAppSyncFunctionC40E2160": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProjectDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationDeleteProjectDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4f7907d1209a2c9953a0c053df402c634e359546d70c7cc5c2e8e21ea734880f.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "ProjectDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Project/MutationDeleteProjectDataResolverFn/MutationDeleteProjectDataResolverFn.AppSyncFunction" + } + }, + "DeleteProjectResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "FieldName": "deleteProject", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationdeleteProjectauth0FunctionMutationdeleteProjectauth0FunctionAppSyncFunction67C3BC9D", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationdeleteProjectpostAuth0FunctionMutationdeleteProjectpostAuth0FunctionAppSyncFunctionA59E7CB4", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationDeleteProjectDataResolverFnMutationDeleteProjectDataResolverFnAppSyncFunctionC40E2160", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "ProjectTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Project/mutationDeleteProjectResolver" + } + }, + "SubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction658E1FC9": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononCreateProjectauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/15280eef569babaeeee5f837ecf7400c728eec6ca2f4c0437bcbddfcb67fe27b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Project/SubscriptiononCreateProjectauth0Function/SubscriptiononCreateProjectauth0Function.AppSyncFunction" + } + }, + "SubscriptiononCreateProjectpostAuth0FunctionSubscriptiononCreateProjectpostAuth0FunctionAppSyncFunction7668C51E": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononCreateProjectpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Project/SubscriptiononCreateProjectpostAuth0Function/SubscriptiononCreateProjectpostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDABDBE4E": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnCreateProjectDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Project/SubscriptionOnCreateProjectDataResolverFn/SubscriptionOnCreateProjectDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononCreateProjectResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "FieldName": "onCreateProject", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction658E1FC9", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononCreateProjectpostAuth0FunctionSubscriptiononCreateProjectpostAuth0FunctionAppSyncFunction7668C51E", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDABDBE4E", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Project/subscriptionOnCreateProjectResolver" + } + }, + "SubscriptiononUpdateProjectauth0FunctionSubscriptiononUpdateProjectauth0FunctionAppSyncFunction8B215B31": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononUpdateProjectauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/15280eef569babaeeee5f837ecf7400c728eec6ca2f4c0437bcbddfcb67fe27b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Project/SubscriptiononUpdateProjectauth0Function/SubscriptiononUpdateProjectauth0Function.AppSyncFunction" + } + }, + "SubscriptiononUpdateProjectpostAuth0FunctionSubscriptiononUpdateProjectpostAuth0FunctionAppSyncFunction78FDCDB2": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononUpdateProjectpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Project/SubscriptiononUpdateProjectpostAuth0Function/SubscriptiononUpdateProjectpostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnUpdateProjectDataResolverFnSubscriptionOnUpdateProjectDataResolverFnAppSyncFunctionDD9A3318": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnUpdateProjectDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Project/SubscriptionOnUpdateProjectDataResolverFn/SubscriptionOnUpdateProjectDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononUpdateProjectResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "FieldName": "onUpdateProject", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononUpdateProjectauth0FunctionSubscriptiononUpdateProjectauth0FunctionAppSyncFunction8B215B31", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononUpdateProjectpostAuth0FunctionSubscriptiononUpdateProjectpostAuth0FunctionAppSyncFunction78FDCDB2", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnUpdateProjectDataResolverFnSubscriptionOnUpdateProjectDataResolverFnAppSyncFunctionDD9A3318", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Project/subscriptionOnUpdateProjectResolver" + } + }, + "SubscriptiononDeleteProjectauth0FunctionSubscriptiononDeleteProjectauth0FunctionAppSyncFunction733430CC": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononDeleteProjectauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/15280eef569babaeeee5f837ecf7400c728eec6ca2f4c0437bcbddfcb67fe27b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Project/SubscriptiononDeleteProjectauth0Function/SubscriptiononDeleteProjectauth0Function.AppSyncFunction" + } + }, + "SubscriptiononDeleteProjectpostAuth0FunctionSubscriptiononDeleteProjectpostAuth0FunctionAppSyncFunctionBA3AA141": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononDeleteProjectpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Project/SubscriptiononDeleteProjectpostAuth0Function/SubscriptiononDeleteProjectpostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnDeleteProjectDataResolverFnSubscriptionOnDeleteProjectDataResolverFnAppSyncFunctionFA79F0CD": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnDeleteProjectDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Project/SubscriptionOnDeleteProjectDataResolverFn/SubscriptionOnDeleteProjectDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononDeleteProjectResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "FieldName": "onDeleteProject", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononDeleteProjectauth0FunctionSubscriptiononDeleteProjectauth0FunctionAppSyncFunction733430CC", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononDeleteProjectpostAuth0FunctionSubscriptiononDeleteProjectpostAuth0FunctionAppSyncFunctionBA3AA141", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnDeleteProjectDataResolverFnSubscriptionOnDeleteProjectDataResolverFnAppSyncFunctionFA79F0CD", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Project/subscriptionOnDeleteProjectResolver" + } + }, + "ProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunction7F1893B2": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "ProjectOwnerDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/041534e5fd916595f752318f161512d7c7f83b9f2cf32d0f0be381c12253ff68.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/064303962e481067b44300212516363b99aaee539b6bafaf756fdd83ff0b60f0.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Project/ProjectOwnerDataResolverFn/ProjectOwnerDataResolverFn.AppSyncFunction" + } + }, + "ProjectownerResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "FieldName": "owner", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunction7F1893B2", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Project\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"owner\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Project" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Project/projectOwnerResolver" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOwW6DMAyGn6X31GNU230F7bhNsHtlEoNSwEGx06pCvPsEnTrt9PuTP9l/DvlLBtkOr7K3rt8PvoH5g0TJ1Yq2N0XLXxhxJKW4QhHYefWBTUUSUrRkiiQaxj9s+THjVU6zuzGOwTXwjc1ARxQyHkeYqzDc7TDQYnCa5MYW5nLTy6ZExfpx8j+9J7ZriSJw67sUcWv0+3m4UFyMHE4oQirwtoaRAxyT7UnXAsvqfiadkpptXSt2nrvFcHAEZ3m65Dk8v0K2O4v3+5hY/UhQ3fMHIPwRXTYBAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Project/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Outputs": { + "GetAttProjectTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "ProjectTable", + "TableStreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "GetAtt:ProjectTable:StreamArn" + ] + ] + } + } + }, + "GetAttProjectTableName": { + "Description": "Your DynamoDB table name.", + "Value": "Project-q2d7oghxlbgxxj3fr2t6f2bpm4-x", + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "GetAtt:ProjectTable:Name" + ] + ] + } + } + } + } +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataTodoNestedStackTodoNestedStackR-x.description.txt b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataTodoNestedStackTodoNestedStackR-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataTodoNestedStackTodoNestedStackR-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataTodoNestedStackTodoNestedStackR-x.outputs.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataTodoNestedStackTodoNestedStackR-x.outputs.json new file mode 100644 index 00000000000..9c17402016f --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataTodoNestedStackTodoNestedStackR-x.outputs.json @@ -0,0 +1,22 @@ +[ + { + "OutputKey": "GetAttTodoTableName", + "OutputValue": "Todo-q2d7oghxlbgxxj3fr2t6f2bpm4-x", + "Description": "Your DynamoDB table name.", + "ExportName": "64fwpekbzfhs7ctgvnsvdv33fa:GetAtt:TodoTable:Name" + }, + { + "OutputKey": "amplifybackendonlye2esandbox363d3cd24ddataamplifyDataTodoTodoTableA22C737DTableArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Todo-q2d7oghxlbgxxj3fr2t6f2bpm4-x" + }, + { + "OutputKey": "amplifybackendonlye2esandbox363d3cd24ddataamplifyDataTodoTodoDataSource6A510C2FName", + "OutputValue": "TodoTable" + }, + { + "OutputKey": "GetAttTodoTableStreamArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Todo-q2d7oghxlbgxxj3fr2t6f2bpm4-x/stream/2026-04-15T03:53:43.178", + "Description": "Your DynamoDB table StreamArn.", + "ExportName": "64fwpekbzfhs7ctgvnsvdv33fa:GetAtt:TodoTable:StreamArn" + } +] diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataTodoNestedStackTodoNestedStackR-x.parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataTodoNestedStackTodoNestedStackR-x.parameters.json new file mode 100644 index 00000000000..35a05c9370e --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataTodoNestedStackTodoNestedStackR-x.parameters.json @@ -0,0 +1,46 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId", + "ParameterValue": "64fwpekbzfhs7ctgvnsvdv33fa" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "true" + }, + { + "ParameterKey": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef", + "ParameterValue": "amplify-backendonl2604142-amplifyAuthauthenticatedU-e2MZgmxI4x06" + }, + { + "ParameterKey": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceB327995EOutputsamplifybackendonlye2esandbox363d3cd24ddataamplifyDataAmplifyTableManagerTabB8C02936", + "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-backendonl2604142-TableManagerCustomProvid-hhZym1kC9BC3" + }, + { + "ParameterKey": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref", + "ParameterValue": "amplify-backendonl2604142-amplifyAuthunauthenticate-T0OFU3aW6x78" + }, + { + "ParameterKey": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref", + "ParameterValue": "us-east-1:253c6cb3-ea32-4bc6-9532-d622a04831ed" + } +] diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataTodoNestedStackTodoNestedStackR-x.template.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataTodoNestedStackTodoNestedStackR-x.template.json new file mode 100644 index 00000000000..8e41e1c8f83 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-amplifyDataTodoNestedStackTodoNestedStackR-x.template.json @@ -0,0 +1,2170 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceB327995EOutputsamplifybackendonlye2esandbox363d3cd24ddataamplifyDataAmplifyTableManagerTabB8C02936": { + "Type": "String" + }, + "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId": { + "Type": "String" + }, + "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name": { + "Type": "String" + }, + "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef": { + "Type": "String" + }, + "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref": { + "Type": "String" + }, + "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + "NONE", + "NONE" + ] + } + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + }, + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Resources": { + "TodoTable": { + "Type": "Custom::ImportedAmplifyDynamoDBTable", + "Properties": { + "ServiceToken": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceB327995EOutputsamplifybackendonlye2esandbox363d3cd24ddataamplifyDataAmplifyTableManagerTabB8C02936" + }, + "tableName": "Todo-q2d7oghxlbgxxj3fr2t6f2bpm4-x", + "attributeDefinitions": [ + { + "attributeName": "id", + "attributeType": "S" + }, + { + "attributeName": "projectTodosId", + "attributeType": "S" + } + ], + "keySchema": [ + { + "attributeName": "id", + "keyType": "HASH" + } + ], + "globalSecondaryIndexes": [ + { + "indexName": "gsi-Project.todos", + "keySchema": [ + { + "attributeName": "projectTodosId", + "keyType": "HASH" + } + ], + "projection": { + "projectionType": "ALL" + }, + "provisionedThroughput": { + "readCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "writeCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + } + ], + "provisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "sseSpecification": { + "sseEnabled": false + }, + "streamSpecification": { + "streamViewType": "NEW_AND_OLD_IMAGES" + }, + "deletionProtectionEnabled": true, + "allowDestructiveGraphqlSchemaUpdates": true, + "replaceTableUponGsiUpdate": false, + "isImported": true, + "pointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "billingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Todo/TodoTable/Default/Default" + } + }, + "TodoIAMRole2DA8E66E": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem", + "dynamodb:ConditionCheckItem", + "dynamodb:DescribeTable", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": "Todo-q2d7oghxlbgxxj3fr2t6f2bpm4-x" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": "Todo-q2d7oghxlbgxxj3fr2t6f2bpm4-x" + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess" + } + ], + "RoleName": { + "Fn::Join": [ + "", + [ + "TodoIAMRolecfd440-", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "-NONE" + ] + ] + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Todo/TodoIAMRole/Resource" + } + }, + "TodoDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "TodoTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + } + }, + "Name": "TodoTable", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "TodoIAMRole2DA8E66E", + "Arn" + ] + }, + "Type": "AMAZON_DYNAMODB" + }, + "DependsOn": [ + "TodoIAMRole2DA8E66E" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Todo/TodoDataSource/Resource" + } + }, + "QuerygetTodoauth0FunctionQuerygetTodoauth0FunctionAppSyncFunction846D8436": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetTodoauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/b3e5411cda152c2308dac0a81ffb999cc9c81ea2a1f51e6ce05a377bef8c4dfd.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Todo/QuerygetTodoauth0Function/QuerygetTodoauth0Function.AppSyncFunction" + } + }, + "QuerygetTodopostAuth0FunctionQuerygetTodopostAuth0FunctionAppSyncFunction6BE14593": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetTodopostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Todo/QuerygetTodopostAuth0Function/QuerygetTodopostAuth0Function.AppSyncFunction" + } + }, + "QueryGetTodoDataResolverFnQueryGetTodoDataResolverFnAppSyncFunctionE2B57DAD": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TodoDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryGetTodoDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/08f4d557693d96c1a4efba0f9dc91330e4b19772fd5477c156468843e3d9cb5e.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4c6a2d29f01c6091bd1d9afe16e5849d456c96f17c3b215938c8067399532719.vtl" + } + }, + "DependsOn": [ + "TodoDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Todo/QueryGetTodoDataResolverFn/QueryGetTodoDataResolverFn.AppSyncFunction" + } + }, + "GetTodoResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "FieldName": "getTodo", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerygetTodoauth0FunctionQuerygetTodoauth0FunctionAppSyncFunction846D8436", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetTodopostAuth0FunctionQuerygetTodopostAuth0FunctionAppSyncFunction6BE14593", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryGetTodoDataResolverFnQueryGetTodoDataResolverFnAppSyncFunctionE2B57DAD", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "TodoTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Todo/queryGetTodoResolver" + } + }, + "QuerylistTodosauth0FunctionQuerylistTodosauth0FunctionAppSyncFunction7D761961": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerylistTodosauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/b3e5411cda152c2308dac0a81ffb999cc9c81ea2a1f51e6ce05a377bef8c4dfd.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Todo/QuerylistTodosauth0Function/QuerylistTodosauth0Function.AppSyncFunction" + } + }, + "QuerylistTodospostAuth0FunctionQuerylistTodospostAuth0FunctionAppSyncFunction154D8577": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerylistTodospostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Todo/QuerylistTodospostAuth0Function/QuerylistTodospostAuth0Function.AppSyncFunction" + } + }, + "QueryListTodosDataResolverFnQueryListTodosDataResolverFnAppSyncFunctionF825FE47": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TodoDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryListTodosDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9fcbe070ecd3023c5bf5b966fa9584757db9762eef123bad0820bd87591b2174.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/cc01911d0269d4080ea57505dc445dfc315ef7ad85d3d9d4ea1357858bff451d.vtl" + } + }, + "DependsOn": [ + "TodoDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Todo/QueryListTodosDataResolverFn/QueryListTodosDataResolverFn.AppSyncFunction" + } + }, + "ListTodoResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "FieldName": "listTodos", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerylistTodosauth0FunctionQuerylistTodosauth0FunctionAppSyncFunction7D761961", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerylistTodospostAuth0FunctionQuerylistTodospostAuth0FunctionAppSyncFunction154D8577", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryListTodosDataResolverFnQueryListTodosDataResolverFnAppSyncFunctionF825FE47", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listTodos\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "TodoTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Todo/queryListTodosResolver" + } + }, + "MutationcreateTodoinit0FunctionMutationcreateTodoinit0FunctionAppSyncFunction54DE5B8B": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateTodoinit0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a183ddccbd956316c38ef97177b8f088ef0826f62023323f5ae6053d348ccffc.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Todo/MutationcreateTodoinit0Function/MutationcreateTodoinit0Function.AppSyncFunction" + } + }, + "MutationcreateTodoauth0FunctionMutationcreateTodoauth0FunctionAppSyncFunction21817E36": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateTodoauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a4dfbec83984a61cb784845599e251c404cfca989937a3bb6eaa817305170ad4.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Todo/MutationcreateTodoauth0Function/MutationcreateTodoauth0Function.AppSyncFunction" + } + }, + "MutationcreateTodopostAuth0FunctionMutationcreateTodopostAuth0FunctionAppSyncFunctionED59EB9F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateTodopostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Todo/MutationcreateTodopostAuth0Function/MutationcreateTodopostAuth0Function.AppSyncFunction" + } + }, + "MutationCreateTodoDataResolverFnMutationCreateTodoDataResolverFnAppSyncFunction900EC5CF": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TodoDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationCreateTodoDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/2bf64327ca5682da4be84d0d16440204e25abc3a221195b41f2d21dfa432e5ab.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "TodoDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Todo/MutationCreateTodoDataResolverFn/MutationCreateTodoDataResolverFn.AppSyncFunction" + } + }, + "CreateTodoResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "FieldName": "createTodo", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationcreateTodoinit0FunctionMutationcreateTodoinit0FunctionAppSyncFunction54DE5B8B", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationcreateTodoauth0FunctionMutationcreateTodoauth0FunctionAppSyncFunction21817E36", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationcreateTodopostAuth0FunctionMutationcreateTodopostAuth0FunctionAppSyncFunctionED59EB9F", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationCreateTodoDataResolverFnMutationCreateTodoDataResolverFnAppSyncFunction900EC5CF", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "TodoTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Todo/mutationCreateTodoResolver" + } + }, + "MutationupdateTodoinit0FunctionMutationupdateTodoinit0FunctionAppSyncFunction1B95BB19": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateTodoinit0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/06db846fd14e6fc371f22b12b5545ba8e2dbfeda85d8c8d586c71c282166657b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Todo/MutationupdateTodoinit0Function/MutationupdateTodoinit0Function.AppSyncFunction" + } + }, + "MutationupdateTodoauth0FunctionMutationupdateTodoauth0FunctionAppSyncFunction1E4A3112": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TodoDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateTodoauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/7ad0add370a0907cb73cb8b771eaf4dc378d85b38d864db355bd3de9ee78ce0a.vtl" + } + }, + "DependsOn": [ + "TodoDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Todo/MutationupdateTodoauth0Function/MutationupdateTodoauth0Function.AppSyncFunction" + } + }, + "MutationupdateTodopostAuth0FunctionMutationupdateTodopostAuth0FunctionAppSyncFunction50C507D7": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateTodopostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Todo/MutationupdateTodopostAuth0Function/MutationupdateTodopostAuth0Function.AppSyncFunction" + } + }, + "MutationUpdateTodoDataResolverFnMutationUpdateTodoDataResolverFnAppSyncFunctionBC238C49": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TodoDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationUpdateTodoDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/474bf0776ec2164a13191d1a0a9e057154931e4918fea5086f49850d02a5371b.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "TodoDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Todo/MutationUpdateTodoDataResolverFn/MutationUpdateTodoDataResolverFn.AppSyncFunction" + } + }, + "UpdateTodoResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "FieldName": "updateTodo", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationupdateTodoinit0FunctionMutationupdateTodoinit0FunctionAppSyncFunction1B95BB19", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationupdateTodoauth0FunctionMutationupdateTodoauth0FunctionAppSyncFunction1E4A3112", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationupdateTodopostAuth0FunctionMutationupdateTodopostAuth0FunctionAppSyncFunction50C507D7", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationUpdateTodoDataResolverFnMutationUpdateTodoDataResolverFnAppSyncFunctionBC238C49", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "TodoTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Todo/mutationUpdateTodoResolver" + } + }, + "MutationdeleteTodoauth0FunctionMutationdeleteTodoauth0FunctionAppSyncFunctionC82C218C": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TodoDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeleteTodoauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/6257bfd1ef2992bd01df135516c0df15c5ff692f426e0c71c93960be8f8c81df.vtl" + } + }, + "DependsOn": [ + "TodoDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Todo/MutationdeleteTodoauth0Function/MutationdeleteTodoauth0Function.AppSyncFunction" + } + }, + "MutationdeleteTodopostAuth0FunctionMutationdeleteTodopostAuth0FunctionAppSyncFunction483271A2": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeleteTodopostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Todo/MutationdeleteTodopostAuth0Function/MutationdeleteTodopostAuth0Function.AppSyncFunction" + } + }, + "MutationDeleteTodoDataResolverFnMutationDeleteTodoDataResolverFnAppSyncFunction3879153F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TodoDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationDeleteTodoDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4f7907d1209a2c9953a0c053df402c634e359546d70c7cc5c2e8e21ea734880f.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "TodoDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Todo/MutationDeleteTodoDataResolverFn/MutationDeleteTodoDataResolverFn.AppSyncFunction" + } + }, + "DeleteTodoResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "FieldName": "deleteTodo", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationdeleteTodoauth0FunctionMutationdeleteTodoauth0FunctionAppSyncFunctionC82C218C", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationdeleteTodopostAuth0FunctionMutationdeleteTodopostAuth0FunctionAppSyncFunction483271A2", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationDeleteTodoDataResolverFnMutationDeleteTodoDataResolverFnAppSyncFunction3879153F", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "TodoTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Todo/mutationDeleteTodoResolver" + } + }, + "SubscriptiononCreateTodoauth0FunctionSubscriptiononCreateTodoauth0FunctionAppSyncFunction042EF9E1": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononCreateTodoauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/15280eef569babaeeee5f837ecf7400c728eec6ca2f4c0437bcbddfcb67fe27b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Todo/SubscriptiononCreateTodoauth0Function/SubscriptiononCreateTodoauth0Function.AppSyncFunction" + } + }, + "SubscriptiononCreateTodopostAuth0FunctionSubscriptiononCreateTodopostAuth0FunctionAppSyncFunction18E34C4E": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononCreateTodopostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Todo/SubscriptiononCreateTodopostAuth0Function/SubscriptiononCreateTodopostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnCreateTodoDataResolverFnSubscriptionOnCreateTodoDataResolverFnAppSyncFunction462A70C9": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnCreateTodoDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Todo/SubscriptionOnCreateTodoDataResolverFn/SubscriptionOnCreateTodoDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononCreateTodoResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "FieldName": "onCreateTodo", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononCreateTodoauth0FunctionSubscriptiononCreateTodoauth0FunctionAppSyncFunction042EF9E1", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononCreateTodopostAuth0FunctionSubscriptiononCreateTodopostAuth0FunctionAppSyncFunction18E34C4E", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnCreateTodoDataResolverFnSubscriptionOnCreateTodoDataResolverFnAppSyncFunction462A70C9", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Todo/subscriptionOnCreateTodoResolver" + } + }, + "SubscriptiononUpdateTodoauth0FunctionSubscriptiononUpdateTodoauth0FunctionAppSyncFunction80D0DFA3": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononUpdateTodoauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/15280eef569babaeeee5f837ecf7400c728eec6ca2f4c0437bcbddfcb67fe27b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Todo/SubscriptiononUpdateTodoauth0Function/SubscriptiononUpdateTodoauth0Function.AppSyncFunction" + } + }, + "SubscriptiononUpdateTodopostAuth0FunctionSubscriptiononUpdateTodopostAuth0FunctionAppSyncFunction04445BC7": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononUpdateTodopostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Todo/SubscriptiononUpdateTodopostAuth0Function/SubscriptiononUpdateTodopostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnUpdateTodoDataResolverFnSubscriptionOnUpdateTodoDataResolverFnAppSyncFunction523DF0E4": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnUpdateTodoDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Todo/SubscriptionOnUpdateTodoDataResolverFn/SubscriptionOnUpdateTodoDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononUpdateTodoResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "FieldName": "onUpdateTodo", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononUpdateTodoauth0FunctionSubscriptiononUpdateTodoauth0FunctionAppSyncFunction80D0DFA3", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononUpdateTodopostAuth0FunctionSubscriptiononUpdateTodopostAuth0FunctionAppSyncFunction04445BC7", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnUpdateTodoDataResolverFnSubscriptionOnUpdateTodoDataResolverFnAppSyncFunction523DF0E4", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Todo/subscriptionOnUpdateTodoResolver" + } + }, + "SubscriptiononDeleteTodoauth0FunctionSubscriptiononDeleteTodoauth0FunctionAppSyncFunctionF69F2220": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononDeleteTodoauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/15280eef569babaeeee5f837ecf7400c728eec6ca2f4c0437bcbddfcb67fe27b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Todo/SubscriptiononDeleteTodoauth0Function/SubscriptiononDeleteTodoauth0Function.AppSyncFunction" + } + }, + "SubscriptiononDeleteTodopostAuth0FunctionSubscriptiononDeleteTodopostAuth0FunctionAppSyncFunctionE131CBE7": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononDeleteTodopostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Todo/SubscriptiononDeleteTodopostAuth0Function/SubscriptiononDeleteTodopostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnDeleteTodoDataResolverFnSubscriptionOnDeleteTodoDataResolverFnAppSyncFunction3E641E8C": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnDeleteTodoDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Todo/SubscriptionOnDeleteTodoDataResolverFn/SubscriptionOnDeleteTodoDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononDeleteTodoResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "FieldName": "onDeleteTodo", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononDeleteTodoauth0FunctionSubscriptiononDeleteTodoauth0FunctionAppSyncFunctionF69F2220", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononDeleteTodopostAuth0FunctionSubscriptiononDeleteTodopostAuth0FunctionAppSyncFunctionE131CBE7", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnDeleteTodoDataResolverFnSubscriptionOnDeleteTodoDataResolverFnAppSyncFunction3E641E8C", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Todo/subscriptionOnDeleteTodoResolver" + } + }, + "TodoOwnerDataResolverFnTodoOwnerDataResolverFnAppSyncFunction0C7BF45B": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "TodoOwnerDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/041534e5fd916595f752318f161512d7c7f83b9f2cf32d0f0be381c12253ff68.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/064303962e481067b44300212516363b99aaee539b6bafaf756fdd83ff0b60f0.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Todo/TodoOwnerDataResolverFn/TodoOwnerDataResolverFn.AppSyncFunction" + } + }, + "TodoownerResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "FieldName": "owner", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "TodoOwnerDataResolverFnTodoOwnerDataResolverFnAppSyncFunction0C7BF45B", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Todo\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"owner\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Todo" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Todo/todoOwnerResolver" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOwW6DMAyGn6X31GNU230F7bhNsHtlEoNSwEGx06pCvPsEnTrt9PuTP9l/DvlLBtkOr7K3rt8PvoH5g0TJ1Yq2N0XLXxhxJKW4QhHYefWBTUUSUrRkiiQaxj9s+THjVU6zuzGOwTXwjc1ARxQyHkeYqzDc7TDQYnCa5MYW5nLTy6ZExfpx8j+9J7ZriSJw67sUcWv0+3m4UFyMHE4oQirwtoaRAxyT7UnXAsvqfiadkpptXSt2nrvFcHAEZ3m65Dk8v0K2O4v3+5hY/UhQ3fMHIPwRXTYBAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Todo/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Outputs": { + "GetAttTodoTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "TodoTable", + "TableStreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "GetAtt:TodoTable:StreamArn" + ] + ] + } + } + }, + "GetAttTodoTableName": { + "Description": "Your DynamoDB table name.", + "Value": "Todo-q2d7oghxlbgxxj3fr2t6f2bpm4-x", + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + }, + "GetAtt:TodoTable:Name" + ] + ] + } + } + }, + "amplifybackendonlye2esandbox363d3cd24ddataamplifyDataTodoTodoDataSource6A510C2FName": { + "Value": { + "Fn::GetAtt": [ + "TodoDataSource", + "Name" + ] + } + }, + "amplifybackendonlye2esandbox363d3cd24ddataamplifyDataTodoTodoTableA22C737DTableArn": { + "Value": { + "Fn::GetAtt": [ + "TodoTable", + "TableArn" + ] + } + } + } +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-auth179371D7-x.description.txt b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-auth179371D7-x.description.txt new file mode 100644 index 00000000000..b66e3e0b9e2 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-auth179371D7-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"AmplifySandbox","createdWith":"1.11.2","stackType":"auth-Cognito","metadata":{}} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-auth179371D7-x.outputs.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-auth179371D7-x.outputs.json new file mode 100644 index 00000000000..397a5144d53 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-auth179371D7-x.outputs.json @@ -0,0 +1,22 @@ +[ + { + "OutputKey": "amplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref", + "OutputValue": "us-east-1:253c6cb3-ea32-4bc6-9532-d622a04831ed" + }, + { + "OutputKey": "amplifybackendonlye2esandbox363d3cd24dauthamplifyAuthUserPoolAppClientD789C43ARef", + "OutputValue": "2351hpg07effv1sr4a6fv32pni" + }, + { + "OutputKey": "amplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef", + "OutputValue": "amplify-backendonl2604142-amplifyAuthauthenticatedU-e2MZgmxI4x06" + }, + { + "OutputKey": "amplifybackendonlye2esandbox363d3cd24dauthamplifyAuthUserPoolC6936963Ref", + "OutputValue": "us-east-1_QCCMEQ5di" + }, + { + "OutputKey": "amplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref", + "OutputValue": "amplify-backendonl2604142-amplifyAuthunauthenticate-T0OFU3aW6x78" + } +] diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-auth179371D7-x.parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-auth179371D7-x.parameters.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-auth179371D7-x.parameters.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-auth179371D7-x.template.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-auth179371D7-x.template.json new file mode 100644 index 00000000000..4638e3b5791 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-auth179371D7-x.template.json @@ -0,0 +1,632 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", + "Resources": { + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AccountRecoverySetting": { + "RecoveryMechanisms": [ + { + "Name": "verified_email", + "Priority": 1 + } + ] + }, + "AdminCreateUserConfig": { + "AllowAdminCreateUserOnly": false + }, + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": 8, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false, + "TemporaryPasswordValidityDays": 7 + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "SmsVerificationMessage": "The verification code to your new account is {####}", + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolTags": { + "amplify:deployment-type": "sandbox", + "amplify:friendly-name": "amplifyAuth", + "created-by": "amplify" + }, + "UsernameAttributes": [ + "email" + ], + "UsernameConfiguration": { + "CaseSensitive": false + }, + "VerificationMessageTemplate": { + "DefaultEmailOption": "CONFIRM_WITH_CODE", + "EmailMessage": "Your verification code is {####}", + "EmailSubject": "Your verification code", + "SmsMessage": "The verification code to your new account is {####}" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/auth/amplifyAuth/UserPool/Resource" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 43200, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": { + "Ref": "amplifyAuthUserPool4BA7F805" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlows": [ + "code" + ], + "AllowedOAuthFlowsUserPoolClient": true, + "AllowedOAuthScopes": [ + "profile", + "phone", + "email", + "openid", + "aws.cognito.signin.user.admin" + ], + "CallbackURLs": [ + "https://example.com" + ], + "ExplicitAuthFlows": [ + "ALLOW_CUSTOM_AUTH", + "ALLOW_USER_SRP_AUTH", + "ALLOW_REFRESH_TOKEN_AUTH" + ], + "PreventUserExistenceErrors": "ENABLED", + "SupportedIdentityProviders": [ + "COGNITO" + ], + "UserPoolId": { + "Ref": "amplifyAuthUserPool4BA7F805" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/auth/amplifyAuth/UserPoolAppClient/Resource" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": true, + "CognitoIdentityProviders": [ + { + "ClientId": { + "Ref": "amplifyAuthUserPoolAppClient2626C6F8" + }, + "ProviderName": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + { + "Ref": "amplifyAuthUserPool4BA7F805" + } + ] + ] + } + } + ], + "IdentityPoolTags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "SupportedLoginProviders": {} + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/auth/amplifyAuth/IdentityPool" + } + }, + "amplifyAuthauthenticatedUserRoleD8DA3689": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/auth/amplifyAuth/authenticatedUserRole/Resource" + } + }, + "amplifyAuthunauthenticatedUserRole2B524D9E": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "unauthenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/auth/amplifyAuth/unauthenticatedUserRole/Resource" + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + }, + "RoleMappings": { + "UserPoolWebClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + { + "Ref": "amplifyAuthUserPool4BA7F805" + }, + ":", + { + "Ref": "amplifyAuthUserPoolAppClient2626C6F8" + } + ] + ] + }, + "Type": "Token" + } + }, + "Roles": { + "unauthenticated": { + "Fn::GetAtt": [ + "amplifyAuthunauthenticatedUserRole2B524D9E", + "Arn" + ] + }, + "authenticated": { + "Fn::GetAtt": [ + "amplifyAuthauthenticatedUserRoleD8DA3689", + "Arn" + ] + } + } + }, + "DependsOn": [ + "amplifyAuthIdentityPool3FDE84CC", + "amplifyAuthUserPoolAppClient2626C6F8" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/auth/amplifyAuth/IdentityPoolRoleAttachment" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/02LwQrCMBBEv6X3dK0BvUtPXkQqniUmq26bbqBZLRLy71Kk2tPMvJnRoDcVVIUZY2ldV3q6QjpgFHQnMbZTZoyXZMOdSQKkc8ThGIJX9Y1/fja1J2RZVn+yd8hC8p7Py9wEjzsRYx89smRFpoc0wWk4ac5ZcXAIbVy9tIb1FqqijUTl8GShHqH56gf10GUazgAAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/auth/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifybackendonlye2esandbox363d3cd24dauthamplifyAuthUserPoolC6936963Ref": { + "Value": { + "Ref": "amplifyAuthUserPool4BA7F805" + } + }, + "amplifybackendonlye2esandbox363d3cd24dauthamplifyAuthUserPoolAppClientD789C43ARef": { + "Value": { + "Ref": "amplifyAuthUserPoolAppClient2626C6F8" + } + }, + "amplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref": { + "Value": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } + }, + "amplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef": { + "Value": { + "Ref": "amplifyAuthauthenticatedUserRoleD8DA3689" + } + }, + "amplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref": { + "Value": { + "Ref": "amplifyAuthunauthenticatedUserRole2B524D9E" + } + } + } +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-data7552DF31-x.description.txt b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-data7552DF31-x.description.txt new file mode 100644 index 00000000000..e1c50802cb1 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-data7552DF31-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"AmplifySandbox","createdWith":"1.21.2","stackType":"api-AppSync","metadata":{"dataSources":"dynamodb","authorizationModes":"amazon_cognito_identity_pools,amazon_cognito_user_pools,api_key,aws_iam","customOperations":"queries"}} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-data7552DF31-x.outputs.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-data7552DF31-x.outputs.json new file mode 100644 index 00000000000..070b39440aa --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-data7552DF31-x.outputs.json @@ -0,0 +1,18 @@ +[ + { + "OutputKey": "amplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIDefaultApiKey521D74CEApiKey", + "OutputValue": "da2-fakeapikey00000000000000" + }, + { + "OutputKey": "amplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DGraphQLUrl", + "OutputValue": "https://kndhawwuejg2jhg6h5k7ew3esu.appsync-api.us-east-1.amazonaws.com/graphql" + }, + { + "OutputKey": "amplifybackendonlye2esandbox363d3cd24ddataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB13FFB099DestinationBucketArn", + "OutputValue": "arn:aws:s3:::amplify-backendonl2604142-amplifydataamplifycodege-jbfjafbzordj" + }, + { + "OutputKey": "amplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId", + "OutputValue": "64fwpekbzfhs7ctgvnsvdv33fa" + } +] diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-data7552DF31-x.parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-data7552DF31-x.parameters.json new file mode 100644 index 00000000000..e4e27911af9 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-data7552DF31-x.parameters.json @@ -0,0 +1,38 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthUserPoolC6936963Ref", + "ParameterValue": "us-east-1_QCCMEQ5di" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "true" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef", + "ParameterValue": "amplify-backendonl2604142-amplifyAuthauthenticatedU-e2MZgmxI4x06" + }, + { + "ParameterKey": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref", + "ParameterValue": "amplify-backendonl2604142-amplifyAuthunauthenticate-T0OFU3aW6x78" + }, + { + "ParameterKey": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref", + "ParameterValue": "us-east-1:253c6cb3-ea32-4bc6-9532-d622a04831ed" + } +] diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-data7552DF31-x.template.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-data7552DF31-x.template.json new file mode 100644 index 00000000000..c4753f2461d --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-data7552DF31-x.template.json @@ -0,0 +1,2172 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.21.2\",\"stackType\":\"api-AppSync\",\"metadata\":{\"dataSources\":\"dynamodb\",\"authorizationModes\":\"amazon_cognito_identity_pools,amazon_cognito_user_pools,api_key,aws_iam\",\"customOperations\":\"queries\"}}", + "Resources": { + "amplifyDataGraphQLAPI42A6FA33": { + "Type": "AWS::AppSync::GraphQLApi", + "Properties": { + "AdditionalAuthenticationProviders": [ + { + "AuthenticationType": "AMAZON_COGNITO_USER_POOLS", + "UserPoolConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "UserPoolId": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthUserPoolC6936963Ref" + } + } + } + ], + "AuthenticationType": "API_KEY", + "Name": "amplifyData", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/GraphQLAPI/Resource" + } + }, + "amplifyDataGraphQLAPITransformerSchemaFF50A789": { + "Type": "AWS::AppSync::GraphQLSchema", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "DefinitionS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/7abe69f41e2c7b2f34c37ecc48c144aa1d8760334c115aa4164f3a1d924c6c4e.graphql" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/GraphQLAPI/TransformerSchema" + } + }, + "amplifyDataGraphQLAPIDefaultApiKey1C8ED374": { + "Type": "AWS::AppSync::ApiKey", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "Expires": 1776830579 + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/GraphQLAPI/DefaultApiKey" + } + }, + "amplifyDataGraphQLAPINONEDS684BF699": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "Name": "NONE_DS", + "Type": "NONE" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/GraphQLAPI/NONE_DS/Resource" + } + }, + "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/6f452f503c25fa3085ff592ac1046623c8a65b4f7fd30c0094d8f6715f24d080.json" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/AmplifyTableManager.NestedStack/AmplifyTableManager.NestedStackResource", + "aws:asset:path": "amplifybackendonlye2esandbox363d3cd24ddataamplifyDataAmplifyTableManager38D5FBEA.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "amplifyDataProjectNestedStackProjectNestedStackResourceCF4E56E3": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceB327995EOutputsamplifybackendonlye2esandbox363d3cd24ddataamplifyDataAmplifyTableManagerTabB8C02936": { + "Fn::GetAtt": [ + "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833", + "Outputs.amplifybackendonlye2esandbox363d3cd24ddataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEventECB17234Arn" + ] + }, + "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + }, + "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef" + }, + "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref" + }, + "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref" + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/277eae48a9e5fd7c9879a1de99b629643d6b5e7b8867be807a238087592960d2.json" + ] + ] + } + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Project.NestedStack/Project.NestedStackResource", + "aws:asset:path": "amplifybackendonlye2esandbox363d3cd24ddataamplifyDataProject73CF064B.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "amplifyDataTodoNestedStackTodoNestedStackResource551CEA56": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceB327995EOutputsamplifybackendonlye2esandbox363d3cd24ddataamplifyDataAmplifyTableManagerTabB8C02936": { + "Fn::GetAtt": [ + "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833", + "Outputs.amplifybackendonlye2esandbox363d3cd24ddataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEventECB17234Arn" + ] + }, + "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + }, + "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef" + }, + "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref" + }, + "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref" + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/57d857e50e8a1a3302507026f75bc1a1b918010697b82b1019d7541227ced5a7.json" + ] + ] + } + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/Todo.NestedStack/Todo.NestedStackResource", + "aws:asset:path": "amplifybackendonlye2esandbox363d3cd24ddataamplifyDataTodo702902AD.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "amplifyDataFunctionDirectiveStackNestedStackFunctionDirectiveStackNestedStackResource1246A302": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef" + }, + "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref" + }, + "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref" + }, + "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/723ac5949488ac841e305db846e1b82efc7b77b250ecfd95af8eb0aa52c08b83.json" + ] + ] + } + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack.NestedStack/FunctionDirectiveStack.NestedStackResource", + "aws:asset:path": "amplifybackendonlye2esandbox363d3cd24ddataamplifyDataFunctionDirectiveStackABD2D581.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "amplifyDataConnectionStackNestedStackConnectionStackNestedStackResourceAB0F312B": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPINONEDSD6CF5616Name": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + }, + "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataTodoNestedStackTodoNestedStackResource816A561BOutputsamplifybackendonlye2esandbox363d3cd24ddataamplifyDataTodoTodoDataSource6A510C2FName": { + "Fn::GetAtt": [ + "amplifyDataTodoNestedStackTodoNestedStackResource551CEA56", + "Outputs.amplifybackendonlye2esandbox363d3cd24ddataamplifyDataTodoTodoDataSource6A510C2FName" + ] + }, + "referencetoamplifybackendonlye2esandbox363d3cd24ddataamplifyDataTodoNestedStackTodoNestedStackResource816A561BOutputsamplifybackendonlye2esandbox363d3cd24ddataamplifyDataTodoTodoTableA22C737DTableArn": { + "Fn::GetAtt": [ + "amplifyDataTodoNestedStackTodoNestedStackResource551CEA56", + "Outputs.amplifybackendonlye2esandbox363d3cd24ddataamplifyDataTodoTodoTableA22C737DTableArn" + ] + }, + "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef" + }, + "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref" + }, + "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref": { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref" + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/639a74b8413c38c1d641aa133a59695d025bfce0a4350df904cce6234a8a9ace.json" + ] + ] + } + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789", + "amplifyDataTodoNestedStackTodoNestedStackResource551CEA56" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/ConnectionStack.NestedStack/ConnectionStack.NestedStackResource", + "aws:asset:path": "amplifybackendonlye2esandbox363d3cd24ddataamplifyDataConnectionStack86E621E3.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "amplifyDataQuoteResponseMessageDataResolverFnQuoteResponseMessageDataResolverFnAppSyncFunction7EFF678A": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "DataSourceName": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QuoteResponseMessageDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e5ac72a83d18a0cb18ce60e30414111cc0d76e69bd8d494c413d5b55a20705f5.vtl" + } + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/QuoteResponseMessageDataResolverFn/QuoteResponseMessageDataResolverFn.AppSyncFunction" + } + }, + "QuoteResponsemessageResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "FieldName": "message", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "amplifyDataQuoteResponseMessageDataResolverFnQuoteResponseMessageDataResolverFnAppSyncFunction7EFF678A", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"QuoteResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"message\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "QuoteResponse" + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/quoteResponseMessageResolver" + } + }, + "amplifyDataQuoteResponseQuoteDataResolverFnQuoteResponseQuoteDataResolverFnAppSyncFunctionBF0C3544": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "DataSourceName": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QuoteResponseQuoteDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/3b461e850d433a4a0a8dae9667c711a5a57e615b38ffcc6597d09108fe8fffba.vtl" + } + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/QuoteResponseQuoteDataResolverFn/QuoteResponseQuoteDataResolverFn.AppSyncFunction" + } + }, + "QuoteResponsequoteResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "FieldName": "quote", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "amplifyDataQuoteResponseQuoteDataResolverFnQuoteResponseQuoteDataResolverFnAppSyncFunctionBF0C3544", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"QuoteResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"quote\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "QuoteResponse" + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/quoteResponseQuoteResolver" + } + }, + "amplifyDataQuoteResponseAuthorDataResolverFnQuoteResponseAuthorDataResolverFnAppSyncFunction5826B69D": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "DataSourceName": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QuoteResponseAuthorDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/5823531964e22e13b2baefe1694abf0d7a5e8389c373235cca9403e7fee3bd76.vtl" + } + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/QuoteResponseAuthorDataResolverFn/QuoteResponseAuthorDataResolverFn.AppSyncFunction" + } + }, + "QuoteResponseauthorResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "FieldName": "author", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "amplifyDataQuoteResponseAuthorDataResolverFnQuoteResponseAuthorDataResolverFnAppSyncFunction5826B69D", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"QuoteResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"author\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "QuoteResponse" + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/quoteResponseAuthorResolver" + } + }, + "amplifyDataQuoteResponseTimestampDataResolverFnQuoteResponseTimestampDataResolverFnAppSyncFunctionFC9EF265": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "DataSourceName": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QuoteResponseTimestampDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9ef1ff70f2fb1662ee5d5fef0e6ca25043179817bdfc6515940c3bb3124e50fa.vtl" + } + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/QuoteResponseTimestampDataResolverFn/QuoteResponseTimestampDataResolverFn.AppSyncFunction" + } + }, + "QuoteResponsetimestampResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "FieldName": "timestamp", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "amplifyDataQuoteResponseTimestampDataResolverFnQuoteResponseTimestampDataResolverFnAppSyncFunctionFC9EF265", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"QuoteResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"timestamp\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "QuoteResponse" + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/quoteResponseTimestampResolver" + } + }, + "amplifyDataQuoteResponseTotalQuotesDataResolverFnQuoteResponseTotalQuotesDataResolverFnAppSyncFunction93F109B1": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "DataSourceName": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QuoteResponseTotalQuotesDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/668f960eab72d9e9d3fba64454998577b3a9fe2e3d1b61ba52bc895a3bdeb6a4.vtl" + } + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/QuoteResponseTotalQuotesDataResolverFn/QuoteResponseTotalQuotesDataResolverFn.AppSyncFunction" + } + }, + "QuoteResponsetotalQuotesResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "FieldName": "totalQuotes", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "amplifyDataQuoteResponseTotalQuotesDataResolverFnQuoteResponseTotalQuotesDataResolverFnAppSyncFunction93F109B1", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"QuoteResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"totalQuotes\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "QuoteResponse" + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/quoteResponseTotalQuotesResolver" + } + }, + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA": { + "Type": "AWS::S3::Bucket", + "Properties": { + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD" + ], + "AllowedOrigins": [ + { + "Fn::Join": [ + "", + [ + "https://", + { + "Ref": "AWS::Region" + }, + ".console.aws.amazon.com/amplify" + ] + ] + } + ] + } + ] + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "aws-cdk:cr-owned:febfae09", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/Resource" + } + }, + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucketPolicyF1C1C548": { + "Type": "AWS::S3::BucketPolicy", + "Properties": { + "Bucket": { + "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" + }, + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "s3:PutBucketPolicy", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*" + ], + "Effect": "Allow", + "Principal": { + "AWS": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + } + }, + "Resource": [ + { + "Fn::GetAtt": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/Policy/Resource" + } + }, + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucketAutoDeleteObjectsCustomResource437F26F5": { + "Type": "Custom::S3AutoDeleteObjects", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "Arn" + ] + }, + "BucketName": { + "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" + } + }, + "DependsOn": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucketPolicyF1C1C548" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/AutoDeleteObjectsCustomResource/Default" + } + }, + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentAwsCliLayerE322F905": { + "Type": "AWS::Lambda::LayerVersion", + "Properties": { + "Content": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "e2659170a0721541efa761a8d5d04d5e36cbbf691c4b15a9053002b7c825055d.zip" + }, + "Description": "/opt/awscli/aws" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsDeployment/AwsCliLayer/Resource", + "aws:asset:path": "asset.e2659170a0721541efa761a8d5d04d5e36cbbf691c4b15a9053002b7c825055d.zip", + "aws:asset:is-bundled": false, + "aws:asset:property": "Content" + } + }, + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB21775929": { + "Type": "Custom::CDKBucketDeployment", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBC5D8AB21", + "Arn" + ] + }, + "SourceBucketNames": [ + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + } + ], + "SourceObjectKeys": [ + "ad70f505f765bd0b304fd89f8ab2207618d71cbcd96373228985e4ef7e65654e.zip" + ], + "SourceMarkers": [ + {} + ], + "DestinationBucketName": { + "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" + }, + "WaitForDistributionInvalidation": true, + "Prune": true, + "OutputObjectKeys": true, + "DestinationBucketArn": { + "Fn::GetAtt": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", + "Arn" + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsDeployment/CustomResource-1536MiB/Default" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ] + }, + "ManagedPolicyArns": [ + { + "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" + }, + "Timeout": 900, + "MemorySize": 128, + "Handler": "index.handler", + "Role": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Description": { + "Fn::Join": [ + "", + [ + "Lambda function for auto-deleting objects in ", + { + "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" + }, + " S3 bucket." + ] + ] + } + }, + "DependsOn": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", + "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", + "aws:asset:property": "Code" + } + }, + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/ServiceRole/Resource" + } + }, + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleDefaultPolicyFF1C635B": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "s3:GetObject*", + "s3:GetBucket*", + "s3:List*" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":s3:::", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + } + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":s3:::", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/*" + ] + ] + } + ] + }, + { + "Action": [ + "s3:GetObject*", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*", + "s3:PutObject", + "s3:PutObjectLegalHold", + "s3:PutObjectRetention", + "s3:PutObjectTagging", + "s3:PutObjectVersionTagging", + "s3:Abort*" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + }, + { + "Action": [ + "s3:GetObject*", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*", + "s3:PutObject", + "s3:PutObjectLegalHold", + "s3:PutObjectRetention", + "s3:PutObjectTagging", + "s3:PutObjectVersionTagging", + "s3:Abort*" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "modelIntrospectionSchemaBucketF566B665", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "modelIntrospectionSchemaBucketF566B665", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleDefaultPolicyFF1C635B", + "Roles": [ + { + "Ref": "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/ServiceRole/DefaultPolicy/Resource" + } + }, + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBC5D8AB21": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "3423a042b818e31c1e34a19d6689ab2e5f9b70fcbe9e71df66f241b20a200bd9.zip" + }, + "Environment": { + "Variables": { + "AWS_CA_BUNDLE": "/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem" + } + }, + "Handler": "index.handler", + "Layers": [ + { + "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentAwsCliLayerE322F905" + } + ], + "MemorySize": 1536, + "Role": { + "Fn::GetAtt": [ + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2", + "Arn" + ] + }, + "Runtime": "python3.13", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 900 + }, + "DependsOn": [ + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleDefaultPolicyFF1C635B", + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/Resource", + "aws:asset:path": "asset.3423a042b818e31c1e34a19d6689ab2e5f9b70fcbe9e71df66f241b20a200bd9", + "aws:asset:is-bundled": false, + "aws:asset:property": "Code" + } + }, + "modelIntrospectionSchemaBucketF566B665": { + "Type": "AWS::S3::Bucket", + "Properties": { + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "aws-cdk:cr-owned:cf2b1ae7", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/modelIntrospectionSchemaBucket/Resource" + } + }, + "modelIntrospectionSchemaBucketPolicy4DAB0D15": { + "Type": "AWS::S3::BucketPolicy", + "Properties": { + "Bucket": { + "Ref": "modelIntrospectionSchemaBucketF566B665" + }, + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:*", + "Condition": { + "Bool": { + "aws:SecureTransport": "false" + } + }, + "Effect": "Deny", + "Principal": { + "AWS": "*" + }, + "Resource": [ + { + "Fn::GetAtt": [ + "modelIntrospectionSchemaBucketF566B665", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "modelIntrospectionSchemaBucketF566B665", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + }, + { + "Action": [ + "s3:PutBucketPolicy", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*" + ], + "Effect": "Allow", + "Principal": { + "AWS": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + } + }, + "Resource": [ + { + "Fn::GetAtt": [ + "modelIntrospectionSchemaBucketF566B665", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "modelIntrospectionSchemaBucketF566B665", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/modelIntrospectionSchemaBucket/Policy/Resource" + } + }, + "modelIntrospectionSchemaBucketAutoDeleteObjectsCustomResourceFE57309F": { + "Type": "Custom::S3AutoDeleteObjects", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "Arn" + ] + }, + "BucketName": { + "Ref": "modelIntrospectionSchemaBucketF566B665" + } + }, + "DependsOn": [ + "modelIntrospectionSchemaBucketPolicy4DAB0D15" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/modelIntrospectionSchemaBucket/AutoDeleteObjectsCustomResource/Default" + } + }, + "modelIntrospectionSchemaBucketDeploymentAwsCliLayer13C432F7": { + "Type": "AWS::Lambda::LayerVersion", + "Properties": { + "Content": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "e2659170a0721541efa761a8d5d04d5e36cbbf691c4b15a9053002b7c825055d.zip" + }, + "Description": "/opt/awscli/aws" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/modelIntrospectionSchemaBucketDeployment/AwsCliLayer/Resource", + "aws:asset:path": "asset.e2659170a0721541efa761a8d5d04d5e36cbbf691c4b15a9053002b7c825055d.zip", + "aws:asset:is-bundled": false, + "aws:asset:property": "Content" + } + }, + "modelIntrospectionSchemaBucketDeploymentCustomResource1536MiB104B97EC": { + "Type": "Custom::CDKBucketDeployment", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBC5D8AB21", + "Arn" + ] + }, + "SourceBucketNames": [ + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + } + ], + "SourceObjectKeys": [ + "7bbe6c45e7a85c4ebb611e77444ebaadde5c178b52d94ba48f04a718491ff401.zip" + ], + "SourceMarkers": [ + {} + ], + "DestinationBucketName": { + "Ref": "modelIntrospectionSchemaBucketF566B665" + }, + "WaitForDistributionInvalidation": true, + "Prune": true, + "OutputObjectKeys": true + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/modelIntrospectionSchemaBucketDeployment/CustomResource-1536MiB/Default" + } + }, + "AMPLIFYDATAGRAPHQLENDPOINTParameter1C2CBB16": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/backendonly/e2e-sandbox-x/AMPLIFY_DATA_GRAPHQL_ENDPOINT", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "GraphQLUrl" + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/AMPLIFY_DATA_GRAPHQL_ENDPOINTParameter/Resource" + } + }, + "AMPLIFYDATAMODELINTROSPECTIONSCHEMABUCKETNAMEParameter47BF4F44": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/backendonly/e2e-sandbox-x/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_BUCKET_NAME", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": { + "Ref": "modelIntrospectionSchemaBucketF566B665" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_BUCKET_NAMEParameter/Resource" + } + }, + "AMPLIFYDATAMODELINTROSPECTIONSCHEMAKEYParameterB6AEAE8A": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/backendonly/e2e-sandbox-x/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_KEY", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": "modelIntrospectionSchema.json" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_KEYParameter/Resource" + } + }, + "AMPLIFYDATADEFAULTNAMEParameterE7C23CC4": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/backendonly/e2e-sandbox-x/AMPLIFY_DATA_DEFAULT_NAME", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": "amplifyData" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/AMPLIFY_DATA_DEFAULT_NAMEParameter/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/6VSTW/bMAz9Lc1ZUbMU3WE318F2WNFlMdDLUASMzLhM9OGKcjLD8H8fJKVpup2KnchHig+PepzL+e1Mzq7gyFNV76eaNnJ4QA5YVwHUXqyQXecVCjjyeoC25d4qOXzz0D6/6KKlO2AU5damys/7oqULVKlnNBALRUvfsRcPzuICAlSZtNza9+hrZ1UgZ0tnt9R0HiKIjahDH9CPgm/WAzBjYFnEIGpstesN2iDvOrXHsDgX4ms55GoSmtNImLNfw8TQb7KTL5PLL4jL8o1MLT6xFl1wC9QY8MdmhyrwZBT/Nf10UrN0mlT/pinjDyjLA1WAgHHpjwn7d/hpFBrMpgY5lFt7Dz36R/QcjajINhqDO/skzsmFeaMgMHJYOZ08TfFtyZyNgtnIoQqebLMEDwYD+tR/BeMoksFVgIZsE3v5JsuOgzPnyzxdR8qz8LWOotdwZKVJFkcuNaU93vH/xbP07kA1+ngno7CuRrnj68N8Lj99lrOrHRNNfWcDGZSrHP8Akcz7fT4DAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthUserPoolC6936963Ref": { + "Type": "String" + }, + "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef": { + "Type": "String" + }, + "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref": { + "Type": "String" + }, + "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref": { + "Type": "String" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId": { + "Value": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + } + }, + "amplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DGraphQLUrl": { + "Value": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "GraphQLUrl" + ] + } + }, + "amplifybackendonlye2esandbox363d3cd24ddataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB13FFB099DestinationBucketArn": { + "Value": { + "Fn::GetAtt": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB21775929", + "DestinationBucketArn" + ] + } + }, + "amplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIDefaultApiKey521D74CEApiKey": { + "Value": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPIDefaultApiKey1C8ED374", + "ApiKey" + ] + } + } + } +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-function1351588B-x.description.txt b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-function1351588B-x.description.txt new file mode 100644 index 00000000000..907003893a9 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-function1351588B-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"AmplifySandbox","createdWith":"1.18.0","stackType":"function-Lambda","metadata":{}} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-function1351588B-x.outputs.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-function1351588B-x.outputs.json new file mode 100644 index 00000000000..edbfb927b53 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-function1351588B-x.outputs.json @@ -0,0 +1,6 @@ +[ + { + "OutputKey": "amplifybackendonlye2esandbox363d3cd24dfunctionquotegeneratorbegen2xlambda933F80AFRef", + "OutputValue": "quotegeneratorbe-gen2-x" + } +] diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-function1351588B-x.parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-function1351588B-x.parameters.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-function1351588B-x.parameters.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-function1351588B-x.template.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-function1351588B-x.template.json new file mode 100644 index 00000000000..ec09017aaeb --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-function1351588B-x.template.json @@ -0,0 +1,398 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.18.0\",\"stackType\":\"function-Lambda\",\"metadata\":{}}", + "Resources": { + "quotegeneratorbegen2xlambdaServiceRole0ACA5205": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "quotegeneratorbe-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/function/quotegeneratorbe-gen2-x-lambda/ServiceRole/Resource" + } + }, + "quotegeneratorbegen2xlambda88BD52A3": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Architectures": [ + "x86_64" + ], + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "6548b84d54f89bb78d6b59300a01d3c45a8c0aedbee21a2cd8361de38ed60d9a.zip" + }, + "Environment": { + "Variables": { + "ENV": "gen2-x", + "REGION": "us-east-1", + "AMPLIFY_SSM_ENV_CONFIG": "{}" + } + }, + "EphemeralStorage": { + "Size": 512 + }, + "FunctionName": "quotegeneratorbe-gen2-x", + "Handler": "index.handler", + "MemorySize": 128, + "Role": { + "Fn::GetAtt": [ + "quotegeneratorbegen2xlambdaServiceRole0ACA5205", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "quotegeneratorbe-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 25 + }, + "DependsOn": [ + "quotegeneratorbegen2xlambdaServiceRole0ACA5205" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/function/quotegeneratorbe-gen2-x-lambda/Resource", + "aws:asset:path": "asset.6548b84d54f89bb78d6b59300a01d3c45a8c0aedbee21a2cd8361de38ed60d9a", + "aws:asset:is-bundled": true, + "aws:asset:property": "Code" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/zXNOw6DQAxF0bXQG4cMSvqAlJICFoDMjEHDx0jxEArE3iNAqU7zdJ9B80gwiWjV2LohHn2DW8Ea2FWB7AC0ar2NNDWOapkd94rFyXsRG/ws4GnCrZxHhryVwx00rUmVg+LrADTFbLEDh4yU4aph3sq/scO5qwJ1XrodjiPs9fY1Bu9PTKJevY8/iwQ/MZaXPwR/I7e7AAAA" + }, + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/function/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifybackendonlye2esandbox363d3cd24dfunctionquotegeneratorbegen2xlambda933F80AFRef": { + "Value": { + "Ref": "quotegeneratorbegen2xlambda88BD52A3" + } + } + } +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x.description.txt b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x.description.txt new file mode 100644 index 00000000000..950d1c3cb96 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"AmplifySandbox","createdWith":"1.4.3","stackType":"storage-S3","metadata":{}} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x.outputs.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x.outputs.json new file mode 100644 index 00000000000..283c7d352ca --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x.outputs.json @@ -0,0 +1,6 @@ +[ + { + "OutputKey": "amplifybackendonlye2esandbox363d3cd24dstoragebackendonlycb1a13ab81664ecaa7d015068ab2d016xgen2xBucket6602343ARef", + "OutputValue": "amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r" + } +] diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x.parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x.parameters.json new file mode 100644 index 00000000000..8acf4216dca --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x.parameters.json @@ -0,0 +1,10 @@ +[ + { + "ParameterKey": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef", + "ParameterValue": "amplify-backendonl2604142-amplifyAuthauthenticatedU-e2MZgmxI4x06" + }, + { + "ParameterKey": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref", + "ParameterValue": "amplify-backendonl2604142-amplifyAuthunauthenticate-T0OFU3aW6x78" + } +] diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x.template.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x.template.json new file mode 100644 index 00000000000..320007522cd --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x-storage0EC3F24A-x.template.json @@ -0,0 +1,806 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", + "Resources": { + "backendonlycb1a13ab81664ecaa7d015068ab2d016xgen2xBucketD26234B2": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "BucketKeyEnabled": false, + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "MaxAge": 3000 + } + ] + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "backendonlycb1a13ab81664ecaa7d015068ab2d016x-gen2-x" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/storage/backendonlycb1a13ab81664ecaa7d015068ab2d016x-gen2-x/Bucket/Resource" + } + }, + "backendonlycb1a13ab81664ecaa7d015068ab2d016xgen2xBucketPolicyA39B9A14": { + "Type": "AWS::S3::BucketPolicy", + "Properties": { + "Bucket": { + "Ref": "backendonlycb1a13ab81664ecaa7d015068ab2d016xgen2xBucketD26234B2" + }, + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:*", + "Condition": { + "Bool": { + "aws:SecureTransport": "false" + } + }, + "Effect": "Deny", + "Principal": { + "AWS": "*" + }, + "Resource": [ + { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d016xgen2xBucketD26234B2", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d016xgen2xBucketD26234B2", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + }, + { + "Action": [ + "s3:PutBucketPolicy", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*" + ], + "Effect": "Allow", + "Principal": { + "AWS": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + } + }, + "Resource": [ + { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d016xgen2xBucketD26234B2", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d016xgen2xBucketD26234B2", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/storage/backendonlycb1a13ab81664ecaa7d015068ab2d016x-gen2-x/Bucket/Policy/Resource" + } + }, + "backendonlycb1a13ab81664ecaa7d015068ab2d016xgen2xBucketAutoDeleteObjectsCustomResource562A7B1D": { + "Type": "Custom::S3AutoDeleteObjects", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "Arn" + ] + }, + "BucketName": { + "Ref": "backendonlycb1a13ab81664ecaa7d015068ab2d016xgen2xBucketD26234B2" + } + }, + "DependsOn": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d016xgen2xBucketPolicyA39B9A14" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/storage/backendonlycb1a13ab81664ecaa7d015068ab2d016x-gen2-x/Bucket/AutoDeleteObjectsCustomResource/Default" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ] + }, + "ManagedPolicyArns": [ + { + "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" + }, + "Timeout": 900, + "MemorySize": 128, + "Handler": "index.handler", + "Role": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Description": { + "Fn::Join": [ + "", + [ + "Lambda function for auto-deleting objects in ", + { + "Ref": "backendonlycb1a13ab81664ecaa7d015068ab2d016xgen2xBucketD26234B2" + }, + " S3 bucket." + ] + ] + } + }, + "DependsOn": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", + "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", + "aws:asset:property": "Code" + } + }, + "BACKENDONLYCB1A13AB81664ECAA7D015068AB2D0163F871GEN2SWEDQGWLIFBUCKETNAMEParameter8E93043F": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/backendonly/e2e-sandbox-x/BACKENDONLYCB_1_A_13_AB_81664_ECAA_7_D_015068_AB_2_D_0163_F_871_GEN_2_SWEDQGWLIF_BUCKET_NAME", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": { + "Ref": "backendonlycb1a13ab81664ecaa7d015068ab2d016xgen2xBucketD26234B2" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/storage/BACKENDONLYCB_1_A_13_AB_81664_ECAA_7_D_015068_AB_2_D_0163_F_871_GEN_2_SWEDQGWLIF_BUCKET_NAMEParameter/Resource" + } + }, + "amplifybackendonlye2esandbox363d3cd24dstorageAccess367149079": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d016xgen2xBucketD26234B2", + "Arn" + ] + }, + "/public/*" + ] + ] + } + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/*", + "public/" + ] + } + }, + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d016xgen2xBucketD26234B2", + "Arn" + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "amplifybackendonlye2esandbox363d3cd24dstorageAccess367149079", + "Roles": [ + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/storage/amplify-backendonly-e2e-sandbox-x--storageAccess3/Resource" + } + }, + "amplifybackendonlye2esandbox363d3cd24dstorageAccess4F48428D0": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:PutObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d016xgen2xBucketD26234B2", + "Arn" + ] + }, + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d016xgen2xBucketD26234B2", + "Arn" + ] + }, + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d016xgen2xBucketD26234B2", + "Arn" + ] + }, + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d016xgen2xBucketD26234B2", + "Arn" + ] + }, + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d016xgen2xBucketD26234B2", + "Arn" + ] + }, + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d016xgen2xBucketD26234B2", + "Arn" + ] + }, + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/*", + "public/", + "protected/*", + "protected/", + "private/*", + "private/" + ] + } + }, + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d016xgen2xBucketD26234B2", + "Arn" + ] + } + }, + { + "Action": "s3:DeleteObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d016xgen2xBucketD26234B2", + "Arn" + ] + }, + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d016xgen2xBucketD26234B2", + "Arn" + ] + }, + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "backendonlycb1a13ab81664ecaa7d015068ab2d016xgen2xBucketD26234B2", + "Arn" + ] + }, + "/private/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "amplifybackendonlye2esandbox363d3cd24dstorageAccess4F48428D0", + "Roles": [ + { + "Ref": "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/storage/amplify-backendonly-e2e-sandbox-x--storageAccess4/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/5WNy07DMBBFv6VZO0NIBQt2fawhapYIIdcZokliW/JMWpDlf0epJQJLVnNH5z5qqB8qqDb6yqXpxnKiM8RnZMGuFW1Gpa/8HnkLcT+bEUUdPlxWr7Gw9EmueCp+hxc/b+GGGLJ1N4s/4oSCL+cBjXCR3lRGjZ/IfK2t+f9Hdw60ogUtult1UswWYiuBXN/ooC0KhmXj50mKtIW4rmeVkjrMLN6ekP0cDC5o1X9QE/yFOgx7zah2zCit6J5cn5TzHcLAd5e6hvtHqDYDE5VhdkIW4ZTvN8L1/x56AQAA" + }, + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/storage/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref": { + "Type": "String" + }, + "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef": { + "Type": "String" + } + }, + "Outputs": { + "amplifybackendonlye2esandbox363d3cd24dstoragebackendonlycb1a13ab81664ecaa7d015068ab2d016xgen2xBucket6602343ARef": { + "Value": { + "Ref": "backendonlycb1a13ab81664ecaa7d015068ab2d016xgen2xBucketD26234B2" + } + } + } +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x.description.txt b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x.description.txt new file mode 100644 index 00000000000..d1c87f28683 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"AmplifySandbox","createdWith":"1.22.0","stackType":"root","metadata":{}} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x.outputs.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x.outputs.json new file mode 100644 index 00000000000..7fd51ccb2ac --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x.outputs.json @@ -0,0 +1,138 @@ +[ + { + "OutputKey": "webClientId", + "OutputValue": "2351hpg07effv1sr4a6fv32pni" + }, + { + "OutputKey": "socialProviders", + "OutputValue": "" + }, + { + "OutputKey": "usernameAttributes", + "OutputValue": "[\"email\"]" + }, + { + "OutputKey": "bucketName", + "OutputValue": "amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r" + }, + { + "OutputKey": "signupAttributes", + "OutputValue": "[\"email\"]" + }, + { + "OutputKey": "oauthClientId", + "OutputValue": "2351hpg07effv1sr4a6fv32pni" + }, + { + "OutputKey": "allowUnauthenticatedIdentities", + "OutputValue": "true" + }, + { + "OutputKey": "oauthCognitoDomain", + "OutputValue": "" + }, + { + "OutputKey": "oauthScope", + "OutputValue": "[\"profile\",\"phone\",\"email\",\"openid\",\"aws.cognito.signin.user.admin\"]" + }, + { + "OutputKey": "oauthRedirectSignOut", + "OutputValue": "" + }, + { + "OutputKey": "awsAppsyncAdditionalAuthenticationTypes", + "OutputValue": "AMAZON_COGNITO_USER_POOLS,AWS_IAM" + }, + { + "OutputKey": "mfaTypes", + "OutputValue": "[]" + }, + { + "OutputKey": "mfaConfiguration", + "OutputValue": "OFF" + }, + { + "OutputKey": "storageRegion", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "oauthResponseType", + "OutputValue": "code" + }, + { + "OutputKey": "awsAppsyncApiKey", + "OutputValue": "da2-fakeapikey00000000000000" + }, + { + "OutputKey": "awsAppsyncAuthenticationType", + "OutputValue": "API_KEY" + }, + { + "OutputKey": "oauthRedirectSignIn", + "OutputValue": "https://example.com" + }, + { + "OutputKey": "passwordPolicyMinLength", + "OutputValue": "8" + }, + { + "OutputKey": "awsAppsyncApiEndpoint", + "OutputValue": "https://kndhawwuejg2jhg6h5k7ew3esu.appsync-api.us-east-1.amazonaws.com/graphql" + }, + { + "OutputKey": "awsAppsyncApiId", + "OutputValue": "64fwpekbzfhs7ctgvnsvdv33fa" + }, + { + "OutputKey": "authRegion", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "buckets", + "OutputValue": "[\"{\\\"name\\\":\\\"backendonlycb1a13ab81664ecaa7d015068ab2d016x-gen2-x\\\",\\\"bucketName\\\":\\\"amplify-backendonl2604142-backendonlycb1a13ab81664-xpdnuaq3bl3r\\\",\\\"storageRegion\\\":\\\"us-east-1\\\",\\\"paths\\\":{\\\"public/*\\\":{\\\"guest\\\":[\\\"get\\\",\\\"list\\\"],\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]},\\\"protected/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]},\\\"private/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]}}}\"]" + }, + { + "OutputKey": "amplifyApiModelSchemaS3Uri", + "OutputValue": "s3://amplify-backendonl2604142-amplifydataamplifycodege-jbfjafbzordj/model-schema.graphql" + }, + { + "OutputKey": "groups", + "OutputValue": "[]" + }, + { + "OutputKey": "definedFunctions", + "OutputValue": "[\"quotegeneratorbe-gen2-x\"]" + }, + { + "OutputKey": "passwordlessOptions", + "OutputValue": "" + }, + { + "OutputKey": "awsAppsyncRegion", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "deploymentType", + "OutputValue": "sandbox" + }, + { + "OutputKey": "passwordPolicyRequirements", + "OutputValue": "[]" + }, + { + "OutputKey": "region", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "userPoolId", + "OutputValue": "us-east-1_QCCMEQ5di" + }, + { + "OutputKey": "identityPoolId", + "OutputValue": "us-east-1:253c6cb3-ea32-4bc6-9532-d622a04831ed" + }, + { + "OutputKey": "verificationMechanisms", + "OutputValue": "[\"email\"]" + } +] diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x.parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x.parameters.json new file mode 100644 index 00000000000..9b7e2669975 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x.parameters.json @@ -0,0 +1,7 @@ +[ + { + "ParameterKey": "BootstrapVersion", + "ParameterValue": "/cdk-bootstrap/hnb659fds/version", + "ResolvedValue": "30" + } +] diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x.template.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x.template.json new file mode 100644 index 00000000000..53bbe9ad9ac --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-e2e-sandbox-x.template.json @@ -0,0 +1,802 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.22.0\",\"stackType\":\"root\",\"metadata\":{}}", + "Metadata": { + "AWS::Amplify::Platform": { + "version": "1", + "stackOutputs": [ + "deploymentType", + "region" + ] + }, + "AWS::Amplify::Auth": { + "version": "1", + "stackOutputs": [ + "userPoolId", + "webClientId", + "identityPoolId", + "authRegion", + "allowUnauthenticatedIdentities", + "signupAttributes", + "usernameAttributes", + "verificationMechanisms", + "passwordPolicyMinLength", + "passwordPolicyRequirements", + "mfaConfiguration", + "mfaTypes", + "passwordlessOptions", + "socialProviders", + "oauthCognitoDomain", + "oauthScope", + "oauthRedirectSignIn", + "oauthRedirectSignOut", + "oauthResponseType", + "oauthClientId", + "groups" + ] + }, + "AWS::Amplify::GraphQL": { + "version": "1", + "stackOutputs": [ + "awsAppsyncApiId", + "awsAppsyncApiEndpoint", + "awsAppsyncAuthenticationType", + "awsAppsyncRegion", + "amplifyApiModelSchemaS3Uri", + "awsAppsyncApiKey", + "awsAppsyncAdditionalAuthenticationTypes" + ] + }, + "AWS::Amplify::Function": { + "version": "1", + "stackOutputs": [ + "definedFunctions" + ] + }, + "AWS::Amplify::Storage": { + "version": "1", + "stackOutputs": [ + "buckets", + "storageRegion", + "bucketName" + ] + } + }, + "Outputs": { + "deploymentType": { + "Value": "sandbox" + }, + "region": { + "Value": { + "Ref": "AWS::Region" + } + }, + "userPoolId": { + "Value": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifybackendonlye2esandbox363d3cd24dauthamplifyAuthUserPoolC6936963Ref" + ] + } + }, + "webClientId": { + "Value": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifybackendonlye2esandbox363d3cd24dauthamplifyAuthUserPoolAppClientD789C43ARef" + ] + } + }, + "identityPoolId": { + "Value": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref" + ] + } + }, + "authRegion": { + "Value": { + "Ref": "AWS::Region" + } + }, + "allowUnauthenticatedIdentities": { + "Value": "true" + }, + "signupAttributes": { + "Value": "[\"email\"]" + }, + "usernameAttributes": { + "Value": "[\"email\"]" + }, + "verificationMechanisms": { + "Value": "[\"email\"]" + }, + "passwordPolicyMinLength": { + "Value": "8" + }, + "passwordPolicyRequirements": { + "Value": "[]" + }, + "mfaConfiguration": { + "Value": "OFF" + }, + "mfaTypes": { + "Value": "[]" + }, + "passwordlessOptions": { + "Value": "" + }, + "socialProviders": { + "Value": "" + }, + "oauthCognitoDomain": { + "Value": "" + }, + "oauthScope": { + "Value": "[\"profile\",\"phone\",\"email\",\"openid\",\"aws.cognito.signin.user.admin\"]" + }, + "oauthRedirectSignIn": { + "Value": "https://example.com" + }, + "oauthRedirectSignOut": { + "Value": "" + }, + "oauthResponseType": { + "Value": "code" + }, + "oauthClientId": { + "Value": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifybackendonlye2esandbox363d3cd24dauthamplifyAuthUserPoolAppClientD789C43ARef" + ] + } + }, + "groups": { + "Value": "[]" + }, + "awsAppsyncApiId": { + "Value": { + "Fn::GetAtt": [ + "data7552DF31", + "Outputs.amplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DApiId" + ] + } + }, + "awsAppsyncApiEndpoint": { + "Value": { + "Fn::GetAtt": [ + "data7552DF31", + "Outputs.amplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIC33E393DGraphQLUrl" + ] + } + }, + "awsAppsyncAuthenticationType": { + "Value": "API_KEY" + }, + "awsAppsyncRegion": { + "Value": { + "Ref": "AWS::Region" + } + }, + "amplifyApiModelSchemaS3Uri": { + "Value": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Fn::Select": [ + 0, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "data7552DF31", + "Outputs.amplifybackendonlye2esandbox363d3cd24ddataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB13FFB099DestinationBucketArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "/model-schema.graphql" + ] + ] + } + }, + "awsAppsyncApiKey": { + "Value": { + "Fn::GetAtt": [ + "data7552DF31", + "Outputs.amplifybackendonlye2esandbox363d3cd24ddataamplifyDataGraphQLAPIDefaultApiKey521D74CEApiKey" + ] + } + }, + "awsAppsyncAdditionalAuthenticationTypes": { + "Value": "AMAZON_COGNITO_USER_POOLS,AWS_IAM" + }, + "definedFunctions": { + "Value": { + "Fn::Join": [ + "", + [ + "[\"", + { + "Fn::GetAtt": [ + "function1351588B", + "Outputs.amplifybackendonlye2esandbox363d3cd24dfunctionquotegeneratorbegen2xlambda933F80AFRef" + ] + }, + "\"]" + ] + ] + } + }, + "storageRegion": { + "Value": { + "Ref": "AWS::Region" + } + }, + "bucketName": { + "Value": { + "Fn::GetAtt": [ + "storage0EC3F24A", + "Outputs.amplifybackendonlye2esandbox363d3cd24dstoragebackendonlycb1a13ab81664ecaa7d015068ab2d016xgen2xBucket6602343ARef" + ] + } + }, + "buckets": { + "Value": { + "Fn::Join": [ + "", + [ + "[\"{\\\"name\\\":\\\"backendonlycb1a13ab81664ecaa7d015068ab2d016x-gen2-x\\\",\\\"bucketName\\\":\\\"", + { + "Fn::GetAtt": [ + "storage0EC3F24A", + "Outputs.amplifybackendonlye2esandbox363d3cd24dstoragebackendonlycb1a13ab81664ecaa7d015068ab2d016xgen2xBucket6602343ARef" + ] + }, + "\\\",\\\"storageRegion\\\":\\\"", + { + "Ref": "AWS::Region" + }, + "\\\",\\\"paths\\\":{\\\"public/*\\\":{\\\"guest\\\":[\\\"get\\\",\\\"list\\\"],\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]},\\\"protected/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]},\\\"private/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]}}}\"]" + ] + ] + } + } + }, + "Resources": { + "auth179371D7": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/0dad92eddc5c69963a3faa206c118acad7d3e63bd5b900c118be85feb9d9225c.json" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/auth.NestedStack/auth.NestedStackResource", + "aws:asset:path": "amplifybackendonlye2esandbox363d3cd24dauth777D76AF.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "data7552DF31": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthUserPoolC6936963Ref": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifybackendonlye2esandbox363d3cd24dauthamplifyAuthUserPoolC6936963Ref" + ] + }, + "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef" + ] + }, + "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref" + ] + }, + "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifybackendonlye2esandbox363d3cd24dauthamplifyAuthIdentityPool210F50E3Ref" + ] + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/4e21d500040e1de3f3f052c07c8b480e9a9945a5e5549e75ab0d744550603d15.json" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/data.NestedStack/data.NestedStackResource", + "aws:asset:path": "amplifybackendonlye2esandbox363d3cd24ddataC2EDCFE8.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "storage0EC3F24A": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifybackendonlye2esandbox363d3cd24dauthamplifyAuthunauthenticatedUserRoleECB5AFB3Ref" + ] + }, + "referencetoamplifybackendonlye2esandbox363d3cd24dauthNestedStackauthNestedStackResource276193F6Outputsamplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifybackendonlye2esandbox363d3cd24dauthamplifyAuthauthenticatedUserRole183CF69ARef" + ] + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/b452b65033b2308711c7eb3d35c0850426594477efae9e5b3f5b047b6db228a7.json" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/storage.NestedStack/storage.NestedStackResource", + "aws:asset:path": "amplifybackendonlye2esandbox363d3cd24dstorage85CE5812.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "function1351588B": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/61d9e9f7d9ee48ed6002789ea193b0a31f76bc788b304e32c0e50ebd451093cb.json" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/function.NestedStack/function.NestedStackResource", + "aws:asset:path": "amplifybackendonlye2esandbox363d3cd24dfunctionE6DD91E7.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/zPSMzI10DNQTCwv1k1OydbNyUzSqw4uSUzO1nFOy/MvLSkoLQGxwEK1Onn5Kal6WcX6ZUZGeoZmegaKWcWZmbpFpXklmbmpekEQGgAGekjOVAAAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-backendonly-e2e-sandbox-x/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "BootstrapVersion": { + "Type": "AWS::SSM::Parameter::Value", + "Default": "/cdk-bootstrap/hnb659fds/version", + "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]" + } + }, + "Rules": { + "CheckBootstrapVersion": { + "Assertions": [ + { + "Assert": { + "Fn::Not": [ + { + "Fn::Contains": [ + [ + "1", + "2", + "3", + "4", + "5" + ], + { + "Ref": "BootstrapVersion" + } + ] + } + ] + }, + "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI." + } + ] + } + } +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataAmplifyTableManagerNestedStackA-1O5LJDU8EK05A.description.txt b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataAmplifyTableManagerNestedStackA-1O5LJDU8EK05A.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataAmplifyTableManagerNestedStackA-1O5LJDU8EK05A.outputs.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataAmplifyTableManagerNestedStackA-1O5LJDU8EK05A.outputs.json deleted file mode 100644 index 38ea9a51510..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataAmplifyTableManagerNestedStackA-1O5LJDU8EK05A.outputs.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - { - "OutputKey": "amplifybackendonlygen2mainbranch8e0f260810dataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEventB37C1B9AArn", - "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-backendonly-ge-TableManagerCustomProvid-hkst44FcjL0J" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataAmplifyTableManagerNestedStackA-1O5LJDU8EK05A.parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataAmplifyTableManagerNestedStackA-1O5LJDU8EK05A.parameters.json deleted file mode 100644 index 93a76a82aaa..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataAmplifyTableManagerNestedStackA-1O5LJDU8EK05A.parameters.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId", - "ParameterValue": "pjpnolkqdzf57jyueue5dlgyam" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataAmplifyTableManagerNestedStackA-1O5LJDU8EK05A.template.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataAmplifyTableManagerNestedStackA-1O5LJDU8EK05A.template.json deleted file mode 100644 index 1ea94f031eb..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataAmplifyTableManagerNestedStackA-1O5LJDU8EK05A.template.json +++ /dev/null @@ -1,795 +0,0 @@ -{ - "Resources": { - "AmplifyManagedTableIsCompleteRoleF825222C": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:CreateTable", - "dynamodb:UpdateTable", - "dynamodb:DeleteTable", - "dynamodb:DescribeTable", - "dynamodb:DescribeContinuousBackups", - "dynamodb:DescribeTimeToLive", - "dynamodb:UpdateContinuousBackups", - "dynamodb:UpdateTimeToLive", - "dynamodb:TagResource", - "dynamodb:UntagResource", - "dynamodb:ListTagsOfResource" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/*-${apiId}-${envName}", - { - "apiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "envName": "NONE" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", - { - "tableName": "Project-sgumi4ggubb4jdo6i54km7skka-main" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", - { - "tableName": "Todo-sgumi4ggubb4jdo6i54km7skka-main" - } - ] - } - ] - }, - { - "Action": "lambda:ListTags", - "Effect": "Allow", - "Resource": { - "Fn::Sub": [ - "arn:${AWS::Partition}:lambda:${AWS::Region}:${AWS::AccountId}:function:*TableManager*", - {} - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "CreateUpdateDeleteTablesPolicy" - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/AmplifyTableManager/AmplifyManagedTableIsCompleteRole/Resource" - } - }, - "AmplifyManagedTableOnEventRoleB4E71DEA": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:CreateTable", - "dynamodb:UpdateTable", - "dynamodb:DeleteTable", - "dynamodb:DescribeTable", - "dynamodb:DescribeContinuousBackups", - "dynamodb:DescribeTimeToLive", - "dynamodb:UpdateContinuousBackups", - "dynamodb:UpdateTimeToLive", - "dynamodb:TagResource", - "dynamodb:UntagResource", - "dynamodb:ListTagsOfResource" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/*-${apiId}-${envName}", - { - "apiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "envName": "NONE" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", - { - "tableName": "Project-sgumi4ggubb4jdo6i54km7skka-main" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", - { - "tableName": "Todo-sgumi4ggubb4jdo6i54km7skka-main" - } - ] - } - ] - }, - { - "Action": "lambda:ListTags", - "Effect": "Allow", - "Resource": { - "Fn::Sub": [ - "arn:${AWS::Partition}:lambda:${AWS::Region}:${AWS::AccountId}:function:*TableManager*", - {} - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "CreateUpdateDeleteTablesPolicy" - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/AmplifyTableManager/AmplifyManagedTableOnEventRole/Resource" - } - }, - "AmplifyManagedTableOnEventRoleDefaultPolicyF6DABCB6": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "states:StartExecution", - "Effect": "Allow", - "Resource": { - "Ref": "AmplifyTableWaiterStateMachine060600BC" - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "AmplifyManagedTableOnEventRoleDefaultPolicyF6DABCB6", - "Roles": [ - { - "Ref": "AmplifyManagedTableOnEventRoleB4E71DEA" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/AmplifyTableManager/AmplifyManagedTableOnEventRole/DefaultPolicy/Resource" - } - }, - "TableManagerCustomProviderframeworkonEvent1DFC2ECC": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6.zip" - }, - "Description": "AmplifyManagedTable - onEvent (amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider)", - "Environment": { - "Variables": { - "WAITER_STATE_MACHINE_ARN": { - "Ref": "AmplifyTableWaiterStateMachine060600BC" - } - } - }, - "Handler": "amplify-table-manager-handler.onEvent", - "Role": { - "Fn::GetAtt": [ - "AmplifyManagedTableOnEventRoleB4E71DEA", - "Arn" - ] - }, - "Runtime": "nodejs24.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 840 - }, - "DependsOn": [ - "AmplifyManagedTableOnEventRoleDefaultPolicyF6DABCB6", - "AmplifyManagedTableOnEventRoleB4E71DEA" - ], - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider/framework-onEvent/Resource", - "aws:asset:path": "asset.f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6", - "aws:asset:is-bundled": false, - "aws:asset:property": "Code" - } - }, - "TableManagerCustomProviderframeworkisComplete2E51021B": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6.zip" - }, - "Description": "AmplifyManagedTable - isComplete (amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider)", - "Handler": "amplify-table-manager-handler.isComplete", - "Role": { - "Fn::GetAtt": [ - "AmplifyManagedTableIsCompleteRoleF825222C", - "Arn" - ] - }, - "Runtime": "nodejs24.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 840 - }, - "DependsOn": [ - "AmplifyManagedTableIsCompleteRoleF825222C" - ], - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider/framework-isComplete/Resource", - "aws:asset:path": "asset.f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6", - "aws:asset:is-bundled": false, - "aws:asset:property": "Code" - } - }, - "AmplifyTableWaiterStateMachineRole470BE899": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "states.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Role/Resource" - } - }, - "AmplifyTableWaiterStateMachineRoleDefaultPolicy89F3836A": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "lambda:InvokeFunction", - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "TableManagerCustomProviderframeworkisComplete2E51021B", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "TableManagerCustomProviderframeworkisComplete2E51021B", - "Arn" - ] - }, - ":*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "AmplifyTableWaiterStateMachineRoleDefaultPolicy89F3836A", - "Roles": [ - { - "Ref": "AmplifyTableWaiterStateMachineRole470BE899" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Role/DefaultPolicy/Resource" - } - }, - "AmplifyTableWaiterStateMachine060600BC": { - "Type": "AWS::StepFunctions::StateMachine", - "Properties": { - "DefinitionString": { - "Fn::Join": [ - "", - [ - "{\"StartAt\":\"framework-isComplete-task\",\"States\":{\"framework-isComplete-task\":{\"End\":true,\"Retry\":[{\"ErrorEquals\":[\"States.ALL\"],\"IntervalSeconds\":10,\"MaxAttempts\":360,\"BackoffRate\":1}],\"Type\":\"Task\",\"Resource\":\"", - { - "Fn::GetAtt": [ - "TableManagerCustomProviderframeworkisComplete2E51021B", - "Arn" - ] - }, - "\"}}}" - ] - ] - }, - "RoleArn": { - "Fn::GetAtt": [ - "AmplifyTableWaiterStateMachineRole470BE899", - "Arn" - ] - } - }, - "DependsOn": [ - "AmplifyTableWaiterStateMachineRoleDefaultPolicy89F3836A", - "AmplifyTableWaiterStateMachineRole470BE899" - ], - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/zWNyw6CMBBFv4V9GXm4cCsmLo2BDyBDGclAaROmSEzDvxtAV+fcnMXNIDunkES4SKzbITbcQHiQeGorj3pQuEgdGEcIpTOkbi+78+kM6882D1uVwbFpEcJ9ttqzs1v7+6okr1GEvMB1g5IcilkP5AsUWlVJ4uZJk9pr5bFj2+1nv7Aq61qCXk7vLIP0AknUC3M8zdbzSFAe/ALgt1g4zwAAAA==" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/AmplifyTableManager/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId": { - "Type": "String" - } - }, - "Outputs": { - "amplifybackendonlygen2mainbranch8e0f260810dataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEventB37C1B9AArn": { - "Value": { - "Fn::GetAtt": [ - "TableManagerCustomProviderframeworkonEvent1DFC2ECC", - "Arn" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataConnectionStackNestedStackConne-15XI1VJVXG6CD.description.txt b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataConnectionStackNestedStackConne-15XI1VJVXG6CD.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataConnectionStackNestedStackConne-15XI1VJVXG6CD.outputs.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataConnectionStackNestedStackConne-15XI1VJVXG6CD.outputs.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataConnectionStackNestedStackConne-15XI1VJVXG6CD.outputs.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataConnectionStackNestedStackConne-15XI1VJVXG6CD.parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataConnectionStackNestedStackConne-15XI1VJVXG6CD.parameters.json deleted file mode 100644 index 6c93458e31c..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataConnectionStackNestedStackConne-15XI1VJVXG6CD.parameters.json +++ /dev/null @@ -1,30 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef", - "ParameterValue": "amplify-backendonly-ge-amplifyAuthauthenticatedU-NrnOsacJVeCr" - }, - { - "ParameterKey": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef", - "ParameterValue": "us-east-1:33a8fea2-6293-4bec-8726-31e6b5817de5" - }, - { - "ParameterKey": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataTodoNestedStackTodoNestedStackResourceD9086696Outputsamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataTodoTodoDataSourceB3ECF35AName", - "ParameterValue": "TodoTable" - }, - { - "ParameterKey": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataTodoNestedStackTodoNestedStackResourceD9086696Outputsamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataTodoTodoTable43ECE720TableArn", - "ParameterValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Todo-sgumi4ggubb4jdo6i54km7skka-main" - }, - { - "ParameterKey": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref", - "ParameterValue": "amplify-backendonly-ge-amplifyAuthunauthenticate-mFzNB8V2DE4J" - }, - { - "ParameterKey": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId", - "ParameterValue": "pjpnolkqdzf57jyueue5dlgyam" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataConnectionStackNestedStackConne-15XI1VJVXG6CD.template.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataConnectionStackNestedStackConne-15XI1VJVXG6CD.template.json deleted file mode 100644 index 60714d5c378..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataConnectionStackNestedStackConne-15XI1VJVXG6CD.template.json +++ /dev/null @@ -1,440 +0,0 @@ -{ - "Resources": { - "Projecttodosauth0FunctionProjecttodosauth0FunctionAppSyncFunctionB9D5F5D1": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "Projecttodosauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/5b76230ddca90214a01050b60af72361023d26ae9f8b9f3ac2b9df9b331548ff.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/ConnectionStack/Projecttodosauth0Function/Projecttodosauth0Function.AppSyncFunction" - } - }, - "ProjectTodosDataResolverFnProjectTodosDataResolverFnAppSyncFunction6418E519": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataTodoNestedStackTodoNestedStackResourceD9086696Outputsamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataTodoTodoDataSourceB3ECF35AName" - }, - "FunctionVersion": "2018-05-29", - "Name": "ProjectTodosDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e91161e60738a0c871aa03b1cbde892843a99e562f5fe5d16f100a96c39191f0.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/49e7a1f2fb4c809b82bed6b0242a2a3bcfa2c5276ebd2539ff330fee36f8fe18.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/ConnectionStack/ProjectTodosDataResolverFn/ProjectTodosDataResolverFn.AppSyncFunction" - } - }, - "ProjecttodosResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "FieldName": "todos", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "Projecttodosauth0FunctionProjecttodosauth0FunctionAppSyncFunctionB9D5F5D1", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "ProjectTodosDataResolverFnProjectTodosDataResolverFnAppSyncFunction6418E519", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Project\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"todos\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataTodoNestedStackTodoNestedStackResourceD9086696Outputsamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataTodoTodoTable43ECE720TableArn" - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Project" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/ConnectionStack/projectTodosResolver" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXMsQ6CMBCA4WdhLycUB1chcXSAByBnOUgBr6TXQgzh3Q06ffmXX4O+5pAluElquimd7Qv2J0mgrgloJoWbtLsULYpQELifKCmgjGaiUKKQwmWRDxvYq54fkU2wjivHvR2ixzNU1XNN4uaV/HGo36MJOFgeDsWuIxjlsmoN+Q2yZBRrUx852DdB/fcLM5uzFKcAAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/ConnectionStack/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId": { - "Type": "String" - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name": { - "Type": "String" - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataTodoNestedStackTodoNestedStackResourceD9086696Outputsamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataTodoTodoDataSourceB3ECF35AName": { - "Type": "String" - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataTodoNestedStackTodoNestedStackResourceD9086696Outputsamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataTodoTodoTable43ECE720TableArn": { - "Type": "String" - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef": { - "Type": "String" - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref": { - "Type": "String" - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef": { - "Type": "String" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataFunctionDirectiveStackNestedSta-10ROTN35ESCS6.description.txt b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataFunctionDirectiveStackNestedSta-10ROTN35ESCS6.description.txt deleted file mode 100644 index 87d574fa42f..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataFunctionDirectiveStackNestedSta-10ROTN35ESCS6.description.txt +++ /dev/null @@ -1 +0,0 @@ -An auto-generated nested stack for the @function directive. \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataFunctionDirectiveStackNestedSta-10ROTN35ESCS6.outputs.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataFunctionDirectiveStackNestedSta-10ROTN35ESCS6.outputs.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataFunctionDirectiveStackNestedSta-10ROTN35ESCS6.outputs.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataFunctionDirectiveStackNestedSta-10ROTN35ESCS6.parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataFunctionDirectiveStackNestedSta-10ROTN35ESCS6.parameters.json deleted file mode 100644 index b015ed313c3..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataFunctionDirectiveStackNestedSta-10ROTN35ESCS6.parameters.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef", - "ParameterValue": "amplify-backendonly-ge-amplifyAuthauthenticatedU-NrnOsacJVeCr" - }, - { - "ParameterKey": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef", - "ParameterValue": "us-east-1:33a8fea2-6293-4bec-8726-31e6b5817de5" - }, - { - "ParameterKey": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref", - "ParameterValue": "amplify-backendonly-ge-amplifyAuthunauthenticate-mFzNB8V2DE4J" - }, - { - "ParameterKey": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId", - "ParameterValue": "pjpnolkqdzf57jyueue5dlgyam" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataFunctionDirectiveStackNestedSta-10ROTN35ESCS6.template.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataFunctionDirectiveStackNestedSta-10ROTN35ESCS6.template.json deleted file mode 100644 index 0edebab842e..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataFunctionDirectiveStackNestedSta-10ROTN35ESCS6.template.json +++ /dev/null @@ -1,556 +0,0 @@ -{ - "Description": "An auto-generated nested stack for the @function directive.", - "AWSTemplateFormatVersion": "2010-09-09", - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - "NONE", - "NONE" - ] - } - ] - }, - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Resources": { - "QuotegeneratorGen2MainLambdaDataSourceServiceRole60A70A64": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/FunctionDirectiveStack/QuotegeneratorGen2MainLambdaDataSource/ServiceRole/Resource" - } - }, - "QuotegeneratorGen2MainLambdaDataSourceServiceRoleDefaultPolicy3C33C32C": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "lambda:InvokeFunction", - "Effect": "Allow", - "Resource": [ - { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator-gen2-main", - {} - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator-gen2-main" - } - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator-gen2-main", - {} - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator-gen2-main" - } - ] - }, - ":*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "QuotegeneratorGen2MainLambdaDataSourceServiceRoleDefaultPolicy3C33C32C", - "Roles": [ - { - "Ref": "QuotegeneratorGen2MainLambdaDataSourceServiceRole60A70A64" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/FunctionDirectiveStack/QuotegeneratorGen2MainLambdaDataSource/ServiceRole/DefaultPolicy/Resource" - } - }, - "QuotegeneratorGen2MainLambdaDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "LambdaConfig": { - "LambdaFunctionArn": { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator-gen2-main", - {} - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator-gen2-main" - } - ] - } - }, - "Name": "QuotegeneratorGen2MainLambdaDataSource", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "QuotegeneratorGen2MainLambdaDataSourceServiceRole60A70A64", - "Arn" - ] - }, - "Type": "AWS_LAMBDA" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/FunctionDirectiveStack/QuotegeneratorGen2MainLambdaDataSource/Resource" - } - }, - "InvokeQuotegeneratorGen2MainLambdaDataSourceInvokeQuotegeneratorGen2MainLambdaDataSourceAppSyncFunction0A6EA349": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "QuotegeneratorGen2MainLambdaDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "InvokeQuotegeneratorGen2MainLambdaDataSource", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/12d7fa5a9bafe17d661f62f256922019e128757dbffb1669c489830ec8f39bad.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a20e304512b1fde77dc16ed9d5e0ed03817afcab629ce87ef11c99877b7b1e30.vtl" - } - }, - "DependsOn": [ - "QuotegeneratorGen2MainLambdaDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/FunctionDirectiveStack/InvokeQuotegeneratorGen2MainLambdaDataSource/InvokeQuotegeneratorGen2MainLambdaDataSource.AppSyncFunction" - } - }, - "QuerygetRandomQuoteResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "FieldName": "getRandomQuote", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QueryGetRandomQuoteAuthFNQueryGetRandomQuoteAuthFNAppSyncFunction15864A6C", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "InvokeQuotegeneratorGen2MainLambdaDataSourceInvokeQuotegeneratorGen2MainLambdaDataSourceAppSyncFunction0A6EA349", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getRandomQuote\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n{}\n## [End] Stash resolver specific context.. **" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/387d5992f5fc03d05de27289457dcc374a84c42a889acb504aff1031047dde00.vtl" - }, - "TypeName": "Query" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/FunctionDirectiveStack/queryGetRandomQuoteResolver" - } - }, - "QueryGetRandomQuoteAuthFNQueryGetRandomQuoteAuthFNAppSyncFunction15864A6C": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryGetRandomQuoteAuthFN", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/FunctionDirectiveStack/QueryGetRandomQuoteAuthFN/QueryGetRandomQuoteAuthFN.AppSyncFunction" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOQW/CMAyFfwv31IPCYdfRaadpmtofgEziVqapg+oEhKr+d5SgHXb6/J79nlxDfdjBdoN3rawbK89nWH5II7kuoh1N00sTxHHkIAbvelo8TmeH8JXEZvOISgavV32IheW7LD8xYhfSbCnn/6u/XBOk5yHNWJqbXlrS4G80r4ZxgqUNvtwX/gbP9pHla1qN7k+oSlHhI8PoHo7JjhTzP6spZhdxYBlWI8ERXPTtVtewe4ft5qLM1Zwk8kTQvvgElyxBfQsBAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/FunctionDirectiveStack/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Parameters": { - "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId": { - "Type": "String" - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef": { - "Type": "String" - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref": { - "Type": "String" - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef": { - "Type": "String" - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name": { - "Type": "String" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataProjectNestedStackProjectNested-19AQY2CYWPOUK.description.txt b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataProjectNestedStackProjectNested-19AQY2CYWPOUK.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataProjectNestedStackProjectNested-19AQY2CYWPOUK.outputs.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataProjectNestedStackProjectNested-19AQY2CYWPOUK.outputs.json deleted file mode 100644 index 7f56dadb7f4..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataProjectNestedStackProjectNested-19AQY2CYWPOUK.outputs.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "OutputKey": "GetAttProjectTableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Project-sgumi4ggubb4jdo6i54km7skka-main/stream/2026-03-08T18:10:52.501", - "Description": "Your DynamoDB table StreamArn.", - "ExportName": "pjpnolkqdzf57jyueue5dlgyam:GetAtt:ProjectTable:StreamArn" - }, - { - "OutputKey": "GetAttProjectTableName", - "OutputValue": "Project-sgumi4ggubb4jdo6i54km7skka-main", - "Description": "Your DynamoDB table name.", - "ExportName": "pjpnolkqdzf57jyueue5dlgyam:GetAtt:ProjectTable:Name" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataProjectNestedStackProjectNested-19AQY2CYWPOUK.parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataProjectNestedStackProjectNested-19AQY2CYWPOUK.parameters.json deleted file mode 100644 index 4886b14a6d2..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataProjectNestedStackProjectNested-19AQY2CYWPOUK.parameters.json +++ /dev/null @@ -1,46 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef", - "ParameterValue": "amplify-backendonly-ge-amplifyAuthauthenticatedU-NrnOsacJVeCr" - }, - { - "ParameterKey": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef", - "ParameterValue": "us-east-1:33a8fea2-6293-4bec-8726-31e6b5817de5" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "true" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource10281D13Outputsamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataAmplifyTableManagerTableMa0FF916B6", - "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-backendonly-ge-TableManagerCustomProvid-hkst44FcjL0J" - }, - { - "ParameterKey": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref", - "ParameterValue": "amplify-backendonly-ge-amplifyAuthunauthenticate-mFzNB8V2DE4J" - }, - { - "ParameterKey": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId", - "ParameterValue": "pjpnolkqdzf57jyueue5dlgyam" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataProjectNestedStackProjectNested-19AQY2CYWPOUK.template.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataProjectNestedStackProjectNested-19AQY2CYWPOUK.template.json deleted file mode 100644 index b8642ac36c0..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataProjectNestedStackProjectNested-19AQY2CYWPOUK.template.json +++ /dev/null @@ -1,2060 +0,0 @@ -{ - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource10281D13Outputsamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataAmplifyTableManagerTableMa0FF916B6": { - "Type": "String" - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId": { - "Type": "String" - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name": { - "Type": "String" - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef": { - "Type": "String" - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref": { - "Type": "String" - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef": { - "Type": "String" - } - }, - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - "NONE", - "NONE" - ] - } - ] - }, - "ShouldUsePayPerRequestBilling": { - "Fn::Equals": [ - { - "Ref": "DynamoDBBillingMode" - }, - "PAY_PER_REQUEST" - ] - }, - "ShouldUsePointInTimeRecovery": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "true" - ] - }, - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Resources": { - "ProjectTable": { - "Type": "Custom::ImportedAmplifyDynamoDBTable", - "Properties": { - "ServiceToken": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource10281D13Outputsamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataAmplifyTableManagerTableMa0FF916B6" - }, - "tableName": "Project-sgumi4ggubb4jdo6i54km7skka-main", - "attributeDefinitions": [ - { - "attributeName": "id", - "attributeType": "S" - } - ], - "keySchema": [ - { - "attributeName": "id", - "keyType": "HASH" - } - ], - "provisionedThroughput": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - { - "Ref": "AWS::NoValue" - }, - { - "ReadCapacityUnits": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "WriteCapacityUnits": { - "Ref": "DynamoDBModelTableWriteIOPS" - } - } - ] - }, - "sseSpecification": { - "sseEnabled": false - }, - "streamSpecification": { - "streamViewType": "NEW_AND_OLD_IMAGES" - }, - "deletionProtectionEnabled": true, - "allowDestructiveGraphqlSchemaUpdates": true, - "replaceTableUponGsiUpdate": false, - "isImported": true, - "pointInTimeRecoverySpecification": { - "Fn::If": [ - "ShouldUsePointInTimeRecovery", - { - "PointInTimeRecoveryEnabled": true - }, - { - "Ref": "AWS::NoValue" - } - ] - }, - "billingMode": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - "PAY_PER_REQUEST", - { - "Ref": "AWS::NoValue" - } - ] - } - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain", - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Project/ProjectTable/Default/Default" - } - }, - "ProjectIAMRole928454B5": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:DeleteItem", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:Query", - "dynamodb:UpdateItem", - "dynamodb:ConditionCheckItem", - "dynamodb:DescribeTable", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", - { - "tablename": "Project-sgumi4ggubb4jdo6i54km7skka-main" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", - { - "tablename": "Project-sgumi4ggubb4jdo6i54km7skka-main" - } - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "DynamoDBAccess" - } - ], - "RoleName": { - "Fn::Join": [ - "", - [ - "ProjectIAMRole032cf0-", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "-NONE" - ] - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Project/ProjectIAMRole/Resource" - } - }, - "ProjectDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DynamoDBConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "TableName": { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "ProjectTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - } - }, - "Name": "ProjectTable", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "ProjectIAMRole928454B5", - "Arn" - ] - }, - "Type": "AMAZON_DYNAMODB" - }, - "DependsOn": [ - "ProjectIAMRole928454B5" - ], - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Project/ProjectDataSource/Resource" - } - }, - "QuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionED686A7E": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetProjectauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/b3e5411cda152c2308dac0a81ffb999cc9c81ea2a1f51e6ce05a377bef8c4dfd.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Project/QuerygetProjectauth0Function/QuerygetProjectauth0Function.AppSyncFunction" - } - }, - "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetProjectpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Project/QuerygetProjectpostAuth0Function/QuerygetProjectpostAuth0Function.AppSyncFunction" - } - }, - "QueryGetProjectDataResolverFnQueryGetProjectDataResolverFnAppSyncFunctionD6A0F260": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ProjectDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryGetProjectDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/08f4d557693d96c1a4efba0f9dc91330e4b19772fd5477c156468843e3d9cb5e.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4c6a2d29f01c6091bd1d9afe16e5849d456c96f17c3b215938c8067399532719.vtl" - } - }, - "DependsOn": [ - "ProjectDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Project/QueryGetProjectDataResolverFn/QueryGetProjectDataResolverFn.AppSyncFunction" - } - }, - "GetProjectResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "FieldName": "getProject", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionED686A7E", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryGetProjectDataResolverFnQueryGetProjectDataResolverFnAppSyncFunctionD6A0F260", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "ProjectTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Project/queryGetProjectResolver" - } - }, - "QuerylistProjectsauth0FunctionQuerylistProjectsauth0FunctionAppSyncFunctionC4E09D6C": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerylistProjectsauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/b3e5411cda152c2308dac0a81ffb999cc9c81ea2a1f51e6ce05a377bef8c4dfd.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Project/QuerylistProjectsauth0Function/QuerylistProjectsauth0Function.AppSyncFunction" - } - }, - "QuerylistProjectspostAuth0FunctionQuerylistProjectspostAuth0FunctionAppSyncFunctionCD78842F": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerylistProjectspostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Project/QuerylistProjectspostAuth0Function/QuerylistProjectspostAuth0Function.AppSyncFunction" - } - }, - "QueryListProjectsDataResolverFnQueryListProjectsDataResolverFnAppSyncFunction0812E3B9": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ProjectDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryListProjectsDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9fcbe070ecd3023c5bf5b966fa9584757db9762eef123bad0820bd87591b2174.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/cc01911d0269d4080ea57505dc445dfc315ef7ad85d3d9d4ea1357858bff451d.vtl" - } - }, - "DependsOn": [ - "ProjectDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Project/QueryListProjectsDataResolverFn/QueryListProjectsDataResolverFn.AppSyncFunction" - } - }, - "ListProjectResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "FieldName": "listProjects", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerylistProjectsauth0FunctionQuerylistProjectsauth0FunctionAppSyncFunctionC4E09D6C", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerylistProjectspostAuth0FunctionQuerylistProjectspostAuth0FunctionAppSyncFunctionCD78842F", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryListProjectsDataResolverFnQueryListProjectsDataResolverFnAppSyncFunction0812E3B9", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listProjects\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "ProjectTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Project/queryListProjectsResolver" - } - }, - "MutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction412D09B9": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateProjectinit0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a183ddccbd956316c38ef97177b8f088ef0826f62023323f5ae6053d348ccffc.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Project/MutationcreateProjectinit0Function/MutationcreateProjectinit0Function.AppSyncFunction" - } - }, - "MutationcreateProjectauth0FunctionMutationcreateProjectauth0FunctionAppSyncFunction4FB957D8": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateProjectauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/bec8053450360bcba98bf86fd1d7222c4ab098a68d5dd9edde9c8bedb1269920.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Project/MutationcreateProjectauth0Function/MutationcreateProjectauth0Function.AppSyncFunction" - } - }, - "MutationcreateProjectpostAuth0FunctionMutationcreateProjectpostAuth0FunctionAppSyncFunctionE02C5772": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateProjectpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Project/MutationcreateProjectpostAuth0Function/MutationcreateProjectpostAuth0Function.AppSyncFunction" - } - }, - "MutationCreateProjectDataResolverFnMutationCreateProjectDataResolverFnAppSyncFunction729D2B08": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ProjectDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationCreateProjectDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/3cb178b90d1c8bc93547dc8641ba504d90fbb14ed1e69b69300519d3e30293d4.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "ProjectDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Project/MutationCreateProjectDataResolverFn/MutationCreateProjectDataResolverFn.AppSyncFunction" - } - }, - "CreateProjectResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "FieldName": "createProject", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction412D09B9", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationcreateProjectauth0FunctionMutationcreateProjectauth0FunctionAppSyncFunction4FB957D8", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationcreateProjectpostAuth0FunctionMutationcreateProjectpostAuth0FunctionAppSyncFunctionE02C5772", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationCreateProjectDataResolverFnMutationCreateProjectDataResolverFnAppSyncFunction729D2B08", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "ProjectTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Project/mutationCreateProjectResolver" - } - }, - "MutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunction20F7A53C": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateProjectinit0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/06db846fd14e6fc371f22b12b5545ba8e2dbfeda85d8c8d586c71c282166657b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Project/MutationupdateProjectinit0Function/MutationupdateProjectinit0Function.AppSyncFunction" - } - }, - "MutationupdateProjectauth0FunctionMutationupdateProjectauth0FunctionAppSyncFunctionF9C2F303": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ProjectDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateProjectauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/3b23a1864d96bd46ffb8192c8f07be60a9c7d1ea5107981da41331d305221140.vtl" - } - }, - "DependsOn": [ - "ProjectDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Project/MutationupdateProjectauth0Function/MutationupdateProjectauth0Function.AppSyncFunction" - } - }, - "MutationupdateProjectpostAuth0FunctionMutationupdateProjectpostAuth0FunctionAppSyncFunction92184EC0": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateProjectpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Project/MutationupdateProjectpostAuth0Function/MutationupdateProjectpostAuth0Function.AppSyncFunction" - } - }, - "MutationUpdateProjectDataResolverFnMutationUpdateProjectDataResolverFnAppSyncFunction9E902778": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ProjectDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationUpdateProjectDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/474bf0776ec2164a13191d1a0a9e057154931e4918fea5086f49850d02a5371b.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "ProjectDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Project/MutationUpdateProjectDataResolverFn/MutationUpdateProjectDataResolverFn.AppSyncFunction" - } - }, - "UpdateProjectResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "FieldName": "updateProject", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunction20F7A53C", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationupdateProjectauth0FunctionMutationupdateProjectauth0FunctionAppSyncFunctionF9C2F303", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationupdateProjectpostAuth0FunctionMutationupdateProjectpostAuth0FunctionAppSyncFunction92184EC0", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationUpdateProjectDataResolverFnMutationUpdateProjectDataResolverFnAppSyncFunction9E902778", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "ProjectTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Project/mutationUpdateProjectResolver" - } - }, - "MutationdeleteProjectauth0FunctionMutationdeleteProjectauth0FunctionAppSyncFunction67C3BC9D": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ProjectDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeleteProjectauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/6257bfd1ef2992bd01df135516c0df15c5ff692f426e0c71c93960be8f8c81df.vtl" - } - }, - "DependsOn": [ - "ProjectDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Project/MutationdeleteProjectauth0Function/MutationdeleteProjectauth0Function.AppSyncFunction" - } - }, - "MutationdeleteProjectpostAuth0FunctionMutationdeleteProjectpostAuth0FunctionAppSyncFunctionA59E7CB4": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeleteProjectpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Project/MutationdeleteProjectpostAuth0Function/MutationdeleteProjectpostAuth0Function.AppSyncFunction" - } - }, - "MutationDeleteProjectDataResolverFnMutationDeleteProjectDataResolverFnAppSyncFunctionC40E2160": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ProjectDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationDeleteProjectDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4f7907d1209a2c9953a0c053df402c634e359546d70c7cc5c2e8e21ea734880f.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "ProjectDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Project/MutationDeleteProjectDataResolverFn/MutationDeleteProjectDataResolverFn.AppSyncFunction" - } - }, - "DeleteProjectResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "FieldName": "deleteProject", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationdeleteProjectauth0FunctionMutationdeleteProjectauth0FunctionAppSyncFunction67C3BC9D", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationdeleteProjectpostAuth0FunctionMutationdeleteProjectpostAuth0FunctionAppSyncFunctionA59E7CB4", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationDeleteProjectDataResolverFnMutationDeleteProjectDataResolverFnAppSyncFunctionC40E2160", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "ProjectTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Project/mutationDeleteProjectResolver" - } - }, - "SubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction658E1FC9": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononCreateProjectauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/15280eef569babaeeee5f837ecf7400c728eec6ca2f4c0437bcbddfcb67fe27b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Project/SubscriptiononCreateProjectauth0Function/SubscriptiononCreateProjectauth0Function.AppSyncFunction" - } - }, - "SubscriptiononCreateProjectpostAuth0FunctionSubscriptiononCreateProjectpostAuth0FunctionAppSyncFunction7668C51E": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononCreateProjectpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Project/SubscriptiononCreateProjectpostAuth0Function/SubscriptiononCreateProjectpostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDABDBE4E": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnCreateProjectDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Project/SubscriptionOnCreateProjectDataResolverFn/SubscriptionOnCreateProjectDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononCreateProjectResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "FieldName": "onCreateProject", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction658E1FC9", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononCreateProjectpostAuth0FunctionSubscriptiononCreateProjectpostAuth0FunctionAppSyncFunction7668C51E", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDABDBE4E", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Project/subscriptionOnCreateProjectResolver" - } - }, - "SubscriptiononUpdateProjectauth0FunctionSubscriptiononUpdateProjectauth0FunctionAppSyncFunction8B215B31": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononUpdateProjectauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/15280eef569babaeeee5f837ecf7400c728eec6ca2f4c0437bcbddfcb67fe27b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Project/SubscriptiononUpdateProjectauth0Function/SubscriptiononUpdateProjectauth0Function.AppSyncFunction" - } - }, - "SubscriptiononUpdateProjectpostAuth0FunctionSubscriptiononUpdateProjectpostAuth0FunctionAppSyncFunction78FDCDB2": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononUpdateProjectpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Project/SubscriptiononUpdateProjectpostAuth0Function/SubscriptiononUpdateProjectpostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnUpdateProjectDataResolverFnSubscriptionOnUpdateProjectDataResolverFnAppSyncFunctionDD9A3318": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnUpdateProjectDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Project/SubscriptionOnUpdateProjectDataResolverFn/SubscriptionOnUpdateProjectDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononUpdateProjectResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "FieldName": "onUpdateProject", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononUpdateProjectauth0FunctionSubscriptiononUpdateProjectauth0FunctionAppSyncFunction8B215B31", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononUpdateProjectpostAuth0FunctionSubscriptiononUpdateProjectpostAuth0FunctionAppSyncFunction78FDCDB2", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnUpdateProjectDataResolverFnSubscriptionOnUpdateProjectDataResolverFnAppSyncFunctionDD9A3318", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Project/subscriptionOnUpdateProjectResolver" - } - }, - "SubscriptiononDeleteProjectauth0FunctionSubscriptiononDeleteProjectauth0FunctionAppSyncFunction733430CC": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononDeleteProjectauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/15280eef569babaeeee5f837ecf7400c728eec6ca2f4c0437bcbddfcb67fe27b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Project/SubscriptiononDeleteProjectauth0Function/SubscriptiononDeleteProjectauth0Function.AppSyncFunction" - } - }, - "SubscriptiononDeleteProjectpostAuth0FunctionSubscriptiononDeleteProjectpostAuth0FunctionAppSyncFunctionBA3AA141": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononDeleteProjectpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Project/SubscriptiononDeleteProjectpostAuth0Function/SubscriptiononDeleteProjectpostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnDeleteProjectDataResolverFnSubscriptionOnDeleteProjectDataResolverFnAppSyncFunctionFA79F0CD": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnDeleteProjectDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Project/SubscriptionOnDeleteProjectDataResolverFn/SubscriptionOnDeleteProjectDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononDeleteProjectResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "FieldName": "onDeleteProject", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononDeleteProjectauth0FunctionSubscriptiononDeleteProjectauth0FunctionAppSyncFunction733430CC", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononDeleteProjectpostAuth0FunctionSubscriptiononDeleteProjectpostAuth0FunctionAppSyncFunctionBA3AA141", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnDeleteProjectDataResolverFnSubscriptionOnDeleteProjectDataResolverFnAppSyncFunctionFA79F0CD", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Project/subscriptionOnDeleteProjectResolver" - } - }, - "ProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunction7F1893B2": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "ProjectOwnerDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/041534e5fd916595f752318f161512d7c7f83b9f2cf32d0f0be381c12253ff68.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/064303962e481067b44300212516363b99aaee539b6bafaf756fdd83ff0b60f0.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Project/ProjectOwnerDataResolverFn/ProjectOwnerDataResolverFn.AppSyncFunction" - } - }, - "ProjectownerResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "FieldName": "owner", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "ProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunction7F1893B2", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Project\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"owner\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Project" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Project/projectOwnerResolver" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOwW6DMAyGn6X34LV0h11Xqh63CXavTGJQCjgodlpViHefoFOnnX5/8if7zyF/3cF2gzfJrOuy3tcwfZAouUrRdqZo+AsjDqQUFygCO68+sClJQoqWTJFEw/CHDT9nvMl5cnfGIbgavrHu6YBCxuMAUxn6hx16mg2Oo9zZwnRc9WN9RMXqefI/nRLbpUQRuPFtirg2+v3cXynORvZnFCEVeF/CyB4OyXakS4F5cT+TjknNuq4UW8/tbDg4gou8XPMcdm+w3VzE+ywmVj8QlI/8AXh83Gc2AQAA" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Project/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Outputs": { - "GetAttProjectTableStreamArn": { - "Description": "Your DynamoDB table StreamArn.", - "Value": { - "Fn::GetAtt": [ - "ProjectTable", - "TableStreamArn" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "GetAtt:ProjectTable:StreamArn" - ] - ] - } - } - }, - "GetAttProjectTableName": { - "Description": "Your DynamoDB table name.", - "Value": "Project-sgumi4ggubb4jdo6i54km7skka-main", - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "GetAtt:ProjectTable:Name" - ] - ] - } - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataTodoNestedStackTodoNestedStackR-1N139P70BL8CB.description.txt b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataTodoNestedStackTodoNestedStackR-1N139P70BL8CB.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataTodoNestedStackTodoNestedStackR-1N139P70BL8CB.outputs.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataTodoNestedStackTodoNestedStackR-1N139P70BL8CB.outputs.json deleted file mode 100644 index 11f7fe9a7af..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataTodoNestedStackTodoNestedStackR-1N139P70BL8CB.outputs.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "OutputKey": "GetAttTodoTableName", - "OutputValue": "Todo-sgumi4ggubb4jdo6i54km7skka-main", - "Description": "Your DynamoDB table name.", - "ExportName": "pjpnolkqdzf57jyueue5dlgyam:GetAtt:TodoTable:Name" - }, - { - "OutputKey": "amplifybackendonlygen2mainbranch8e0f260810dataamplifyDataTodoTodoDataSourceB3ECF35AName", - "OutputValue": "TodoTable" - }, - { - "OutputKey": "amplifybackendonlygen2mainbranch8e0f260810dataamplifyDataTodoTodoTable43ECE720TableArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Todo-sgumi4ggubb4jdo6i54km7skka-main" - }, - { - "OutputKey": "GetAttTodoTableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Todo-sgumi4ggubb4jdo6i54km7skka-main/stream/2026-03-08T18:11:40.339", - "Description": "Your DynamoDB table StreamArn.", - "ExportName": "pjpnolkqdzf57jyueue5dlgyam:GetAtt:TodoTable:StreamArn" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataTodoNestedStackTodoNestedStackR-1N139P70BL8CB.parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataTodoNestedStackTodoNestedStackR-1N139P70BL8CB.parameters.json deleted file mode 100644 index 4886b14a6d2..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataTodoNestedStackTodoNestedStackR-1N139P70BL8CB.parameters.json +++ /dev/null @@ -1,46 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef", - "ParameterValue": "amplify-backendonly-ge-amplifyAuthauthenticatedU-NrnOsacJVeCr" - }, - { - "ParameterKey": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef", - "ParameterValue": "us-east-1:33a8fea2-6293-4bec-8726-31e6b5817de5" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "true" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource10281D13Outputsamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataAmplifyTableManagerTableMa0FF916B6", - "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-backendonly-ge-TableManagerCustomProvid-hkst44FcjL0J" - }, - { - "ParameterKey": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref", - "ParameterValue": "amplify-backendonly-ge-amplifyAuthunauthenticate-mFzNB8V2DE4J" - }, - { - "ParameterKey": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId", - "ParameterValue": "pjpnolkqdzf57jyueue5dlgyam" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataTodoNestedStackTodoNestedStackR-1N139P70BL8CB.template.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataTodoNestedStackTodoNestedStackR-1N139P70BL8CB.template.json deleted file mode 100644 index ac6a202d0ba..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f-amplifyDataTodoNestedStackTodoNestedStackR-1N139P70BL8CB.template.json +++ /dev/null @@ -1,2102 +0,0 @@ -{ - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource10281D13Outputsamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataAmplifyTableManagerTableMa0FF916B6": { - "Type": "String" - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId": { - "Type": "String" - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name": { - "Type": "String" - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef": { - "Type": "String" - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref": { - "Type": "String" - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef": { - "Type": "String" - } - }, - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - "NONE", - "NONE" - ] - } - ] - }, - "ShouldUsePayPerRequestBilling": { - "Fn::Equals": [ - { - "Ref": "DynamoDBBillingMode" - }, - "PAY_PER_REQUEST" - ] - }, - "ShouldUsePointInTimeRecovery": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "true" - ] - }, - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Resources": { - "TodoTable": { - "Type": "Custom::ImportedAmplifyDynamoDBTable", - "Properties": { - "ServiceToken": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource10281D13Outputsamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataAmplifyTableManagerTableMa0FF916B6" - }, - "tableName": "Todo-sgumi4ggubb4jdo6i54km7skka-main", - "attributeDefinitions": [ - { - "attributeName": "id", - "attributeType": "S" - }, - { - "attributeName": "projectTodosId", - "attributeType": "S" - } - ], - "keySchema": [ - { - "attributeName": "id", - "keyType": "HASH" - } - ], - "globalSecondaryIndexes": [ - { - "indexName": "gsi-Project.todos", - "keySchema": [ - { - "attributeName": "projectTodosId", - "keyType": "HASH" - } - ], - "projection": { - "projectionType": "ALL" - }, - "provisionedThroughput": { - "readCapacityUnits": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "writeCapacityUnits": { - "Ref": "DynamoDBModelTableWriteIOPS" - } - } - } - ], - "provisionedThroughput": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - { - "Ref": "AWS::NoValue" - }, - { - "ReadCapacityUnits": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "WriteCapacityUnits": { - "Ref": "DynamoDBModelTableWriteIOPS" - } - } - ] - }, - "sseSpecification": { - "sseEnabled": false - }, - "streamSpecification": { - "streamViewType": "NEW_AND_OLD_IMAGES" - }, - "deletionProtectionEnabled": true, - "allowDestructiveGraphqlSchemaUpdates": true, - "replaceTableUponGsiUpdate": false, - "isImported": true, - "pointInTimeRecoverySpecification": { - "Fn::If": [ - "ShouldUsePointInTimeRecovery", - { - "PointInTimeRecoveryEnabled": true - }, - { - "Ref": "AWS::NoValue" - } - ] - }, - "billingMode": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - "PAY_PER_REQUEST", - { - "Ref": "AWS::NoValue" - } - ] - } - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain", - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Todo/TodoTable/Default/Default" - } - }, - "TodoIAMRole2DA8E66E": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:DeleteItem", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:Query", - "dynamodb:UpdateItem", - "dynamodb:ConditionCheckItem", - "dynamodb:DescribeTable", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", - { - "tablename": "Todo-sgumi4ggubb4jdo6i54km7skka-main" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", - { - "tablename": "Todo-sgumi4ggubb4jdo6i54km7skka-main" - } - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "DynamoDBAccess" - } - ], - "RoleName": { - "Fn::Join": [ - "", - [ - "TodoIAMRolecfd440-", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "-NONE" - ] - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Todo/TodoIAMRole/Resource" - } - }, - "TodoDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DynamoDBConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "TableName": { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "TodoTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - } - }, - "Name": "TodoTable", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "TodoIAMRole2DA8E66E", - "Arn" - ] - }, - "Type": "AMAZON_DYNAMODB" - }, - "DependsOn": [ - "TodoIAMRole2DA8E66E" - ], - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Todo/TodoDataSource/Resource" - } - }, - "QuerygetTodoauth0FunctionQuerygetTodoauth0FunctionAppSyncFunction846D8436": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetTodoauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/b3e5411cda152c2308dac0a81ffb999cc9c81ea2a1f51e6ce05a377bef8c4dfd.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Todo/QuerygetTodoauth0Function/QuerygetTodoauth0Function.AppSyncFunction" - } - }, - "QuerygetTodopostAuth0FunctionQuerygetTodopostAuth0FunctionAppSyncFunction6BE14593": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetTodopostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Todo/QuerygetTodopostAuth0Function/QuerygetTodopostAuth0Function.AppSyncFunction" - } - }, - "QueryGetTodoDataResolverFnQueryGetTodoDataResolverFnAppSyncFunctionE2B57DAD": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "TodoDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryGetTodoDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/08f4d557693d96c1a4efba0f9dc91330e4b19772fd5477c156468843e3d9cb5e.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4c6a2d29f01c6091bd1d9afe16e5849d456c96f17c3b215938c8067399532719.vtl" - } - }, - "DependsOn": [ - "TodoDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Todo/QueryGetTodoDataResolverFn/QueryGetTodoDataResolverFn.AppSyncFunction" - } - }, - "GetTodoResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "FieldName": "getTodo", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerygetTodoauth0FunctionQuerygetTodoauth0FunctionAppSyncFunction846D8436", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetTodopostAuth0FunctionQuerygetTodopostAuth0FunctionAppSyncFunction6BE14593", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryGetTodoDataResolverFnQueryGetTodoDataResolverFnAppSyncFunctionE2B57DAD", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "TodoTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Todo/queryGetTodoResolver" - } - }, - "QuerylistTodosauth0FunctionQuerylistTodosauth0FunctionAppSyncFunction7D761961": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerylistTodosauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/b3e5411cda152c2308dac0a81ffb999cc9c81ea2a1f51e6ce05a377bef8c4dfd.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Todo/QuerylistTodosauth0Function/QuerylistTodosauth0Function.AppSyncFunction" - } - }, - "QuerylistTodospostAuth0FunctionQuerylistTodospostAuth0FunctionAppSyncFunction154D8577": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerylistTodospostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Todo/QuerylistTodospostAuth0Function/QuerylistTodospostAuth0Function.AppSyncFunction" - } - }, - "QueryListTodosDataResolverFnQueryListTodosDataResolverFnAppSyncFunctionF825FE47": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "TodoDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryListTodosDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9fcbe070ecd3023c5bf5b966fa9584757db9762eef123bad0820bd87591b2174.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/cc01911d0269d4080ea57505dc445dfc315ef7ad85d3d9d4ea1357858bff451d.vtl" - } - }, - "DependsOn": [ - "TodoDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Todo/QueryListTodosDataResolverFn/QueryListTodosDataResolverFn.AppSyncFunction" - } - }, - "ListTodoResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "FieldName": "listTodos", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerylistTodosauth0FunctionQuerylistTodosauth0FunctionAppSyncFunction7D761961", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerylistTodospostAuth0FunctionQuerylistTodospostAuth0FunctionAppSyncFunction154D8577", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryListTodosDataResolverFnQueryListTodosDataResolverFnAppSyncFunctionF825FE47", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listTodos\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "TodoTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Todo/queryListTodosResolver" - } - }, - "MutationcreateTodoinit0FunctionMutationcreateTodoinit0FunctionAppSyncFunction54DE5B8B": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateTodoinit0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a183ddccbd956316c38ef97177b8f088ef0826f62023323f5ae6053d348ccffc.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Todo/MutationcreateTodoinit0Function/MutationcreateTodoinit0Function.AppSyncFunction" - } - }, - "MutationcreateTodoauth0FunctionMutationcreateTodoauth0FunctionAppSyncFunction21817E36": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateTodoauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a4dfbec83984a61cb784845599e251c404cfca989937a3bb6eaa817305170ad4.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Todo/MutationcreateTodoauth0Function/MutationcreateTodoauth0Function.AppSyncFunction" - } - }, - "MutationcreateTodopostAuth0FunctionMutationcreateTodopostAuth0FunctionAppSyncFunctionED59EB9F": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateTodopostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Todo/MutationcreateTodopostAuth0Function/MutationcreateTodopostAuth0Function.AppSyncFunction" - } - }, - "MutationCreateTodoDataResolverFnMutationCreateTodoDataResolverFnAppSyncFunction900EC5CF": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "TodoDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationCreateTodoDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/2bf64327ca5682da4be84d0d16440204e25abc3a221195b41f2d21dfa432e5ab.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "TodoDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Todo/MutationCreateTodoDataResolverFn/MutationCreateTodoDataResolverFn.AppSyncFunction" - } - }, - "CreateTodoResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "FieldName": "createTodo", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationcreateTodoinit0FunctionMutationcreateTodoinit0FunctionAppSyncFunction54DE5B8B", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationcreateTodoauth0FunctionMutationcreateTodoauth0FunctionAppSyncFunction21817E36", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationcreateTodopostAuth0FunctionMutationcreateTodopostAuth0FunctionAppSyncFunctionED59EB9F", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationCreateTodoDataResolverFnMutationCreateTodoDataResolverFnAppSyncFunction900EC5CF", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "TodoTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Todo/mutationCreateTodoResolver" - } - }, - "MutationupdateTodoinit0FunctionMutationupdateTodoinit0FunctionAppSyncFunction1B95BB19": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateTodoinit0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/06db846fd14e6fc371f22b12b5545ba8e2dbfeda85d8c8d586c71c282166657b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Todo/MutationupdateTodoinit0Function/MutationupdateTodoinit0Function.AppSyncFunction" - } - }, - "MutationupdateTodoauth0FunctionMutationupdateTodoauth0FunctionAppSyncFunction1E4A3112": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "TodoDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateTodoauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/7ad0add370a0907cb73cb8b771eaf4dc378d85b38d864db355bd3de9ee78ce0a.vtl" - } - }, - "DependsOn": [ - "TodoDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Todo/MutationupdateTodoauth0Function/MutationupdateTodoauth0Function.AppSyncFunction" - } - }, - "MutationupdateTodopostAuth0FunctionMutationupdateTodopostAuth0FunctionAppSyncFunction50C507D7": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateTodopostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Todo/MutationupdateTodopostAuth0Function/MutationupdateTodopostAuth0Function.AppSyncFunction" - } - }, - "MutationUpdateTodoDataResolverFnMutationUpdateTodoDataResolverFnAppSyncFunctionBC238C49": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "TodoDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationUpdateTodoDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/474bf0776ec2164a13191d1a0a9e057154931e4918fea5086f49850d02a5371b.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "TodoDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Todo/MutationUpdateTodoDataResolverFn/MutationUpdateTodoDataResolverFn.AppSyncFunction" - } - }, - "UpdateTodoResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "FieldName": "updateTodo", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationupdateTodoinit0FunctionMutationupdateTodoinit0FunctionAppSyncFunction1B95BB19", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationupdateTodoauth0FunctionMutationupdateTodoauth0FunctionAppSyncFunction1E4A3112", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationupdateTodopostAuth0FunctionMutationupdateTodopostAuth0FunctionAppSyncFunction50C507D7", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationUpdateTodoDataResolverFnMutationUpdateTodoDataResolverFnAppSyncFunctionBC238C49", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "TodoTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Todo/mutationUpdateTodoResolver" - } - }, - "MutationdeleteTodoauth0FunctionMutationdeleteTodoauth0FunctionAppSyncFunctionC82C218C": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "TodoDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeleteTodoauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/6257bfd1ef2992bd01df135516c0df15c5ff692f426e0c71c93960be8f8c81df.vtl" - } - }, - "DependsOn": [ - "TodoDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Todo/MutationdeleteTodoauth0Function/MutationdeleteTodoauth0Function.AppSyncFunction" - } - }, - "MutationdeleteTodopostAuth0FunctionMutationdeleteTodopostAuth0FunctionAppSyncFunction483271A2": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeleteTodopostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Todo/MutationdeleteTodopostAuth0Function/MutationdeleteTodopostAuth0Function.AppSyncFunction" - } - }, - "MutationDeleteTodoDataResolverFnMutationDeleteTodoDataResolverFnAppSyncFunction3879153F": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "TodoDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationDeleteTodoDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4f7907d1209a2c9953a0c053df402c634e359546d70c7cc5c2e8e21ea734880f.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "TodoDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Todo/MutationDeleteTodoDataResolverFn/MutationDeleteTodoDataResolverFn.AppSyncFunction" - } - }, - "DeleteTodoResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "FieldName": "deleteTodo", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationdeleteTodoauth0FunctionMutationdeleteTodoauth0FunctionAppSyncFunctionC82C218C", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationdeleteTodopostAuth0FunctionMutationdeleteTodopostAuth0FunctionAppSyncFunction483271A2", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationDeleteTodoDataResolverFnMutationDeleteTodoDataResolverFnAppSyncFunction3879153F", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "TodoTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Todo/mutationDeleteTodoResolver" - } - }, - "SubscriptiononCreateTodoauth0FunctionSubscriptiononCreateTodoauth0FunctionAppSyncFunction042EF9E1": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononCreateTodoauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/15280eef569babaeeee5f837ecf7400c728eec6ca2f4c0437bcbddfcb67fe27b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Todo/SubscriptiononCreateTodoauth0Function/SubscriptiononCreateTodoauth0Function.AppSyncFunction" - } - }, - "SubscriptiononCreateTodopostAuth0FunctionSubscriptiononCreateTodopostAuth0FunctionAppSyncFunction18E34C4E": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononCreateTodopostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Todo/SubscriptiononCreateTodopostAuth0Function/SubscriptiononCreateTodopostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnCreateTodoDataResolverFnSubscriptionOnCreateTodoDataResolverFnAppSyncFunction462A70C9": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnCreateTodoDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Todo/SubscriptionOnCreateTodoDataResolverFn/SubscriptionOnCreateTodoDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononCreateTodoResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "FieldName": "onCreateTodo", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononCreateTodoauth0FunctionSubscriptiononCreateTodoauth0FunctionAppSyncFunction042EF9E1", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononCreateTodopostAuth0FunctionSubscriptiononCreateTodopostAuth0FunctionAppSyncFunction18E34C4E", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnCreateTodoDataResolverFnSubscriptionOnCreateTodoDataResolverFnAppSyncFunction462A70C9", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Todo/subscriptionOnCreateTodoResolver" - } - }, - "SubscriptiononUpdateTodoauth0FunctionSubscriptiononUpdateTodoauth0FunctionAppSyncFunction80D0DFA3": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononUpdateTodoauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/15280eef569babaeeee5f837ecf7400c728eec6ca2f4c0437bcbddfcb67fe27b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Todo/SubscriptiononUpdateTodoauth0Function/SubscriptiononUpdateTodoauth0Function.AppSyncFunction" - } - }, - "SubscriptiononUpdateTodopostAuth0FunctionSubscriptiononUpdateTodopostAuth0FunctionAppSyncFunction04445BC7": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononUpdateTodopostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Todo/SubscriptiononUpdateTodopostAuth0Function/SubscriptiononUpdateTodopostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnUpdateTodoDataResolverFnSubscriptionOnUpdateTodoDataResolverFnAppSyncFunction523DF0E4": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnUpdateTodoDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Todo/SubscriptionOnUpdateTodoDataResolverFn/SubscriptionOnUpdateTodoDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononUpdateTodoResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "FieldName": "onUpdateTodo", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononUpdateTodoauth0FunctionSubscriptiononUpdateTodoauth0FunctionAppSyncFunction80D0DFA3", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononUpdateTodopostAuth0FunctionSubscriptiononUpdateTodopostAuth0FunctionAppSyncFunction04445BC7", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnUpdateTodoDataResolverFnSubscriptionOnUpdateTodoDataResolverFnAppSyncFunction523DF0E4", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Todo/subscriptionOnUpdateTodoResolver" - } - }, - "SubscriptiononDeleteTodoauth0FunctionSubscriptiononDeleteTodoauth0FunctionAppSyncFunctionF69F2220": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononDeleteTodoauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/15280eef569babaeeee5f837ecf7400c728eec6ca2f4c0437bcbddfcb67fe27b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Todo/SubscriptiononDeleteTodoauth0Function/SubscriptiononDeleteTodoauth0Function.AppSyncFunction" - } - }, - "SubscriptiononDeleteTodopostAuth0FunctionSubscriptiononDeleteTodopostAuth0FunctionAppSyncFunctionE131CBE7": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononDeleteTodopostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Todo/SubscriptiononDeleteTodopostAuth0Function/SubscriptiononDeleteTodopostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnDeleteTodoDataResolverFnSubscriptionOnDeleteTodoDataResolverFnAppSyncFunction3E641E8C": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnDeleteTodoDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Todo/SubscriptionOnDeleteTodoDataResolverFn/SubscriptionOnDeleteTodoDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononDeleteTodoResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "FieldName": "onDeleteTodo", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononDeleteTodoauth0FunctionSubscriptiononDeleteTodoauth0FunctionAppSyncFunctionF69F2220", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononDeleteTodopostAuth0FunctionSubscriptiononDeleteTodopostAuth0FunctionAppSyncFunctionE131CBE7", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnDeleteTodoDataResolverFnSubscriptionOnDeleteTodoDataResolverFnAppSyncFunction3E641E8C", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Todo/subscriptionOnDeleteTodoResolver" - } - }, - "TodoOwnerDataResolverFnTodoOwnerDataResolverFnAppSyncFunction0C7BF45B": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "TodoOwnerDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/041534e5fd916595f752318f161512d7c7f83b9f2cf32d0f0be381c12253ff68.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/064303962e481067b44300212516363b99aaee539b6bafaf756fdd83ff0b60f0.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Todo/TodoOwnerDataResolverFn/TodoOwnerDataResolverFn.AppSyncFunction" - } - }, - "TodoownerResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "FieldName": "owner", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "TodoOwnerDataResolverFnTodoOwnerDataResolverFnAppSyncFunction0C7BF45B", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Todo\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"owner\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Todo" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Todo/todoOwnerResolver" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOwW6DMAyGn6X34LV0h11Xqh63CXavTGJQCjgodlpViHefoFOnnX5/8if7zyF/3cF2gzfJrOuy3tcwfZAouUrRdqZo+AsjDqQUFygCO68+sClJQoqWTJFEw/CHDT9nvMl5cnfGIbgavrHu6YBCxuMAUxn6hx16mg2Oo9zZwnRc9WN9RMXqefI/nRLbpUQRuPFtirg2+v3cXynORvZnFCEVeF/CyB4OyXakS4F5cT+TjknNuq4UW8/tbDg4gou8XPMcdm+w3VzE+ywmVj8QlI/8AXh83Gc2AQAA" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Todo/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Outputs": { - "GetAttTodoTableStreamArn": { - "Description": "Your DynamoDB table StreamArn.", - "Value": { - "Fn::GetAtt": [ - "TodoTable", - "TableStreamArn" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "GetAtt:TodoTable:StreamArn" - ] - ] - } - } - }, - "GetAttTodoTableName": { - "Description": "Your DynamoDB table name.", - "Value": "Todo-sgumi4ggubb4jdo6i54km7skka-main", - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - }, - "GetAtt:TodoTable:Name" - ] - ] - } - } - }, - "amplifybackendonlygen2mainbranch8e0f260810dataamplifyDataTodoTodoDataSourceB3ECF35AName": { - "Value": { - "Fn::GetAtt": [ - "TodoDataSource", - "Name" - ] - } - }, - "amplifybackendonlygen2mainbranch8e0f260810dataamplifyDataTodoTodoTable43ECE720TableArn": { - "Value": { - "Fn::GetAtt": [ - "TodoTable", - "TableArn" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.description.txt b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.description.txt deleted file mode 100644 index 813452072ac..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.11.1","stackType":"auth-Cognito","metadata":{}} \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.outputs.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.outputs.json deleted file mode 100644 index faf40c7dce5..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.outputs.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "OutputKey": "amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef", - "OutputValue": "amplify-backendonly-ge-amplifyAuthauthenticatedU-NrnOsacJVeCr" - }, - { - "OutputKey": "amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthUserPoolAppClientF2CDC3A8Ref", - "OutputValue": "55m5602upkjiv7819hcf2ht5v3" - }, - { - "OutputKey": "amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef", - "OutputValue": "us-east-1:33a8fea2-6293-4bec-8726-31e6b5817de5" - }, - { - "OutputKey": "amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref", - "OutputValue": "amplify-backendonly-ge-amplifyAuthunauthenticate-mFzNB8V2DE4J" - }, - { - "OutputKey": "amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthUserPoolACA7606BRef", - "OutputValue": "us-east-1_W9u2NBSRe" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.parameters.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.parameters.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.template.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.template.json deleted file mode 100644 index 0a00a874df7..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-auth179371D7-SEM95NL3BKFT.template.json +++ /dev/null @@ -1,646 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.11.1\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", - "Resources": { - "amplifyAuthUserPool4BA7F805": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AccountRecoverySetting": { - "RecoveryMechanisms": [ - { - "Name": "verified_email", - "Priority": 1 - } - ] - }, - "AdminCreateUserConfig": { - "AllowAdminCreateUserOnly": false - }, - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": "Your verification code is {####}", - "EmailVerificationSubject": "Your verification code", - "MfaConfiguration": "OFF", - "Policies": { - "PasswordPolicy": { - "MinimumLength": 8, - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false, - "TemporaryPasswordValidityDays": 7 - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "SmsVerificationMessage": "The verification code to your new account is {####}", - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolTags": { - "amplify:app-id": "backendonly", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "amplify:friendly-name": "amplifyAuth", - "created-by": "amplify" - }, - "UsernameAttributes": [ - "email" - ], - "UsernameConfiguration": { - "CaseSensitive": false - }, - "VerificationMessageTemplate": { - "DefaultEmailOption": "CONFIRM_WITH_CODE", - "EmailMessage": "Your verification code is {####}", - "EmailSubject": "Your verification code", - "SmsMessage": "The verification code to your new account is {####}" - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/UserPool/Resource" - } - }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 43200, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": { - "Ref": "amplifyAuthUserPool4BA7F805" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, - "amplifyAuthUserPoolAppClient2626C6F8": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlows": [ - "code" - ], - "AllowedOAuthFlowsUserPoolClient": true, - "AllowedOAuthScopes": [ - "profile", - "phone", - "email", - "openid", - "aws.cognito.signin.user.admin" - ], - "CallbackURLs": [ - "https://example.com" - ], - "ExplicitAuthFlows": [ - "ALLOW_CUSTOM_AUTH", - "ALLOW_USER_SRP_AUTH", - "ALLOW_REFRESH_TOKEN_AUTH" - ], - "PreventUserExistenceErrors": "ENABLED", - "SupportedIdentityProviders": [ - "COGNITO" - ], - "UserPoolId": { - "Ref": "amplifyAuthUserPool4BA7F805" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/UserPoolAppClient/Resource" - } - }, - "amplifyAuthIdentityPool3FDE84CC": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": true, - "CognitoIdentityProviders": [ - { - "ClientId": { - "Ref": "amplifyAuthUserPoolAppClient2626C6F8" - }, - "ProviderName": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - { - "Ref": "amplifyAuthUserPool4BA7F805" - } - ] - ] - } - } - ], - "IdentityPoolTags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "SupportedLoginProviders": {} - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/IdentityPool" - } - }, - "amplifyAuthauthenticatedUserRoleD8DA3689": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "authenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/authenticatedUserRole/Resource" - } - }, - "amplifyAuthunauthenticatedUserRole2B524D9E": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "unauthenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/unauthenticatedUserRole/Resource" - } - }, - "amplifyAuthIdentityPoolRoleAttachment045F17C8": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - }, - "RoleMappings": { - "UserPoolWebClientRoleMapping": { - "AmbiguousRoleResolution": "AuthenticatedRole", - "IdentityProvider": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - { - "Ref": "amplifyAuthUserPool4BA7F805" - }, - ":", - { - "Ref": "amplifyAuthUserPoolAppClient2626C6F8" - } - ] - ] - }, - "Type": "Token" - } - }, - "Roles": { - "unauthenticated": { - "Fn::GetAtt": [ - "amplifyAuthunauthenticatedUserRole2B524D9E", - "Arn" - ] - }, - "authenticated": { - "Fn::GetAtt": [ - "amplifyAuthauthenticatedUserRoleD8DA3689", - "Arn" - ] - } - } - }, - "DependsOn": [ - "amplifyAuthIdentityPool3FDE84CC", - "amplifyAuthUserPoolAppClient2626C6F8" - ], - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/amplifyAuth/IdentityPoolRoleAttachment" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/02LwQrCMBBEv8V7urbBg1fpyYtIxbPEZNVt0w00q0VC/l2KVHuamTczGvSmgnJlxlhY1xWerpAOGAXdSYztlBnjJdlwZ5IA6RxxOIbgVX3jn59N7QlZltWf7B2ykLzn8zI3weNOxNhHjyxZkekhTXAaTppzVhwcQhvXL62h2kK5aiNRMTxZqEdovvoBH9Args4AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Outputs": { - "amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthUserPoolACA7606BRef": { - "Value": { - "Ref": "amplifyAuthUserPool4BA7F805" - } - }, - "amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthUserPoolAppClientF2CDC3A8Ref": { - "Value": { - "Ref": "amplifyAuthUserPoolAppClient2626C6F8" - } - }, - "amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef": { - "Value": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } - }, - "amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef": { - "Value": { - "Ref": "amplifyAuthauthenticatedUserRoleD8DA3689" - } - }, - "amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref": { - "Value": { - "Ref": "amplifyAuthunauthenticatedUserRole2B524D9E" - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-data7552DF31-1VW2RYRRSPP6.description.txt b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-data7552DF31-1VW2RYRRSPP6.description.txt deleted file mode 100644 index e0c9e600428..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-data7552DF31-1VW2RYRRSPP6.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.21.0","stackType":"api-AppSync","metadata":{"dataSources":"dynamodb","authorizationModes":"amazon_cognito_identity_pools,amazon_cognito_user_pools,api_key,aws_iam","customOperations":"queries"}} \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-data7552DF31-1VW2RYRRSPP6.outputs.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-data7552DF31-1VW2RYRRSPP6.outputs.json deleted file mode 100644 index b56d0221c95..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-data7552DF31-1VW2RYRRSPP6.outputs.json +++ /dev/null @@ -1,18 +0,0 @@ -[ - { - "OutputKey": "amplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9GraphQLUrl", - "OutputValue": "https://6dzlmk7dbjfr3gls7n6lw7hunq.appsync-api.us-east-1.amazonaws.com/graphql" - }, - { - "OutputKey": "amplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIDefaultApiKeyA92FFACFApiKey", - "OutputValue": "da2-fakeapikey00000000000000" - }, - { - "OutputKey": "amplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId", - "OutputValue": "pjpnolkqdzf57jyueue5dlgyam" - }, - { - "OutputKey": "amplifybackendonlygen2mainbranch8e0f260810dataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB9671EA91DestinationBucketArn", - "OutputValue": "arn:aws:s3:::amplify-backendonly-ge-amplifydataamplifycodege-dpqe8qgqodjl" - } -] diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-data7552DF31-1VW2RYRRSPP6.parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-data7552DF31-1VW2RYRRSPP6.parameters.json deleted file mode 100644 index 8e1fa482180..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-data7552DF31-1VW2RYRRSPP6.parameters.json +++ /dev/null @@ -1,38 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthUserPoolACA7606BRef", - "ParameterValue": "us-east-1_W9u2NBSRe" - }, - { - "ParameterKey": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef", - "ParameterValue": "amplify-backendonly-ge-amplifyAuthauthenticatedU-NrnOsacJVeCr" - }, - { - "ParameterKey": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef", - "ParameterValue": "us-east-1:33a8fea2-6293-4bec-8726-31e6b5817de5" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "true" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref", - "ParameterValue": "amplify-backendonly-ge-amplifyAuthunauthenticate-mFzNB8V2DE4J" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-data7552DF31-1VW2RYRRSPP6.template.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-data7552DF31-1VW2RYRRSPP6.template.json deleted file mode 100644 index 6bc661b562b..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-data7552DF31-1VW2RYRRSPP6.template.json +++ /dev/null @@ -1,2206 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.21.0\",\"stackType\":\"api-AppSync\",\"metadata\":{\"dataSources\":\"dynamodb\",\"authorizationModes\":\"amazon_cognito_identity_pools,amazon_cognito_user_pools,api_key,aws_iam\",\"customOperations\":\"queries\"}}", - "Resources": { - "amplifyDataGraphQLAPI42A6FA33": { - "Type": "AWS::AppSync::GraphQLApi", - "Properties": { - "AdditionalAuthenticationProviders": [ - { - "AuthenticationType": "AMAZON_COGNITO_USER_POOLS", - "UserPoolConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "UserPoolId": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthUserPoolACA7606BRef" - } - } - } - ], - "AuthenticationType": "API_KEY", - "Name": "amplifyData", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/GraphQLAPI/Resource" - } - }, - "amplifyDataGraphQLAPITransformerSchemaFF50A789": { - "Type": "AWS::AppSync::GraphQLSchema", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "DefinitionS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/7abe69f41e2c7b2f34c37ecc48c144aa1d8760334c115aa4164f3a1d924c6c4e.graphql" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/GraphQLAPI/TransformerSchema" - } - }, - "amplifyDataGraphQLAPIDefaultApiKey1C8ED374": { - "Type": "AWS::AppSync::ApiKey", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "Expires": 1773599467 - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/GraphQLAPI/DefaultApiKey" - } - }, - "amplifyDataGraphQLAPINONEDS684BF699": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "Name": "NONE_DS", - "Type": "NONE" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/GraphQLAPI/NONE_DS/Resource" - } - }, - "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/664d95dcde410ddfeae26062ed5a3c1454ae355b2badc705b09f389f9a3a324b.json" - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/AmplifyTableManager.NestedStack/AmplifyTableManager.NestedStackResource", - "aws:asset:path": "amplifybackendonlygen2mainbranch8e0f260810dataamplifyDataAmplifyTableManagerA1BCB2D9.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "amplifyDataProjectNestedStackProjectNestedStackResourceCF4E56E3": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "DynamoDBModelTableWriteIOPS": { - "Ref": "DynamoDBModelTableWriteIOPS" - }, - "DynamoDBBillingMode": { - "Ref": "DynamoDBBillingMode" - }, - "DynamoDBEnablePointInTimeRecovery": { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "DynamoDBEnableServerSideEncryption": { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource10281D13Outputsamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataAmplifyTableManagerTableMa0FF916B6": { - "Fn::GetAtt": [ - "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833", - "Outputs.amplifybackendonlygen2mainbranch8e0f260810dataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEventB37C1B9AArn" - ] - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef" - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref" - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef" - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/bdd1c0745c2b41c4de6e9f874217cd247edd926c7be4f49b95e7680bd6f882b4.json" - ] - ] - } - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Project.NestedStack/Project.NestedStackResource", - "aws:asset:path": "amplifybackendonlygen2mainbranch8e0f260810dataamplifyDataProject3E8B7A09.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "amplifyDataTodoNestedStackTodoNestedStackResource551CEA56": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "DynamoDBModelTableWriteIOPS": { - "Ref": "DynamoDBModelTableWriteIOPS" - }, - "DynamoDBBillingMode": { - "Ref": "DynamoDBBillingMode" - }, - "DynamoDBEnablePointInTimeRecovery": { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "DynamoDBEnableServerSideEncryption": { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource10281D13Outputsamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataAmplifyTableManagerTableMa0FF916B6": { - "Fn::GetAtt": [ - "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833", - "Outputs.amplifybackendonlygen2mainbranch8e0f260810dataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEventB37C1B9AArn" - ] - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef" - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref" - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef" - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/67c0e3c5632c73b7078b0899bf5c348b052ee0ccb260fd923b0a5f4579eaaf94.json" - ] - ] - } - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/Todo.NestedStack/Todo.NestedStackResource", - "aws:asset:path": "amplifybackendonlygen2mainbranch8e0f260810dataamplifyDataTodoF0679F9B.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "amplifyDataFunctionDirectiveStackNestedStackFunctionDirectiveStackNestedStackResource1246A302": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef" - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref" - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef" - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/7509329927a2337e88e1f5e9f868ce6ca34260919f8413bcb54d65b21d9042cf.json" - ] - ] - } - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/FunctionDirectiveStack.NestedStack/FunctionDirectiveStack.NestedStackResource", - "aws:asset:path": "amplifybackendonlygen2mainbranch8e0f260810dataamplifyDataFunctionDirectiveStack994F6C0E.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "amplifyDataConnectionStackNestedStackConnectionStackNestedStackResourceAB0F312B": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPINONEDS6292E862Name": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataTodoNestedStackTodoNestedStackResourceD9086696Outputsamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataTodoTodoDataSourceB3ECF35AName": { - "Fn::GetAtt": [ - "amplifyDataTodoNestedStackTodoNestedStackResource551CEA56", - "Outputs.amplifybackendonlygen2mainbranch8e0f260810dataamplifyDataTodoTodoDataSourceB3ECF35AName" - ] - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataTodoNestedStackTodoNestedStackResourceD9086696Outputsamplifybackendonlygen2mainbranch8e0f260810dataamplifyDataTodoTodoTable43ECE720TableArn": { - "Fn::GetAtt": [ - "amplifyDataTodoNestedStackTodoNestedStackResource551CEA56", - "Outputs.amplifybackendonlygen2mainbranch8e0f260810dataamplifyDataTodoTodoTable43ECE720TableArn" - ] - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef" - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref" - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef": { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef" - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/f34cd3705abb7082b913a934033e29468169689deafaa343bccd958608efc311.json" - ] - ] - } - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789", - "amplifyDataTodoNestedStackTodoNestedStackResource551CEA56" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/ConnectionStack.NestedStack/ConnectionStack.NestedStackResource", - "aws:asset:path": "amplifybackendonlygen2mainbranch8e0f260810dataamplifyDataConnectionStackC7FE5336.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "amplifyDataQuoteResponseMessageDataResolverFnQuoteResponseMessageDataResolverFnAppSyncFunction7EFF678A": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "DataSourceName": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QuoteResponseMessageDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e5ac72a83d18a0cb18ce60e30414111cc0d76e69bd8d494c413d5b55a20705f5.vtl" - } - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/QuoteResponseMessageDataResolverFn/QuoteResponseMessageDataResolverFn.AppSyncFunction" - } - }, - "QuoteResponsemessageResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "FieldName": "message", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "amplifyDataQuoteResponseMessageDataResolverFnQuoteResponseMessageDataResolverFnAppSyncFunction7EFF678A", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"QuoteResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"message\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "QuoteResponse" - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/quoteResponseMessageResolver" - } - }, - "amplifyDataQuoteResponseQuoteDataResolverFnQuoteResponseQuoteDataResolverFnAppSyncFunctionBF0C3544": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "DataSourceName": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QuoteResponseQuoteDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/3b461e850d433a4a0a8dae9667c711a5a57e615b38ffcc6597d09108fe8fffba.vtl" - } - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/QuoteResponseQuoteDataResolverFn/QuoteResponseQuoteDataResolverFn.AppSyncFunction" - } - }, - "QuoteResponsequoteResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "FieldName": "quote", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "amplifyDataQuoteResponseQuoteDataResolverFnQuoteResponseQuoteDataResolverFnAppSyncFunctionBF0C3544", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"QuoteResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"quote\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "QuoteResponse" - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/quoteResponseQuoteResolver" - } - }, - "amplifyDataQuoteResponseAuthorDataResolverFnQuoteResponseAuthorDataResolverFnAppSyncFunction5826B69D": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "DataSourceName": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QuoteResponseAuthorDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/5823531964e22e13b2baefe1694abf0d7a5e8389c373235cca9403e7fee3bd76.vtl" - } - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/QuoteResponseAuthorDataResolverFn/QuoteResponseAuthorDataResolverFn.AppSyncFunction" - } - }, - "QuoteResponseauthorResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "FieldName": "author", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "amplifyDataQuoteResponseAuthorDataResolverFnQuoteResponseAuthorDataResolverFnAppSyncFunction5826B69D", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"QuoteResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"author\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "QuoteResponse" - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/quoteResponseAuthorResolver" - } - }, - "amplifyDataQuoteResponseTimestampDataResolverFnQuoteResponseTimestampDataResolverFnAppSyncFunctionFC9EF265": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "DataSourceName": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QuoteResponseTimestampDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9ef1ff70f2fb1662ee5d5fef0e6ca25043179817bdfc6515940c3bb3124e50fa.vtl" - } - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/QuoteResponseTimestampDataResolverFn/QuoteResponseTimestampDataResolverFn.AppSyncFunction" - } - }, - "QuoteResponsetimestampResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "FieldName": "timestamp", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "amplifyDataQuoteResponseTimestampDataResolverFnQuoteResponseTimestampDataResolverFnAppSyncFunctionFC9EF265", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"QuoteResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"timestamp\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "QuoteResponse" - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/quoteResponseTimestampResolver" - } - }, - "amplifyDataQuoteResponseTotalQuotesDataResolverFnQuoteResponseTotalQuotesDataResolverFnAppSyncFunction93F109B1": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "DataSourceName": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QuoteResponseTotalQuotesDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/668f960eab72d9e9d3fba64454998577b3a9fe2e3d1b61ba52bc895a3bdeb6a4.vtl" - } - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/QuoteResponseTotalQuotesDataResolverFn/QuoteResponseTotalQuotesDataResolverFn.AppSyncFunction" - } - }, - "QuoteResponsetotalQuotesResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "FieldName": "totalQuotes", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "amplifyDataQuoteResponseTotalQuotesDataResolverFnQuoteResponseTotalQuotesDataResolverFnAppSyncFunction93F109B1", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"QuoteResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"totalQuotes\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "QuoteResponse" - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/quoteResponseTotalQuotesResolver" - } - }, - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA": { - "Type": "AWS::S3::Bucket", - "Properties": { - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD" - ], - "AllowedOrigins": [ - { - "Fn::Join": [ - "", - [ - "https://", - { - "Ref": "AWS::Region" - }, - ".console.aws.amazon.com/amplify" - ] - ] - } - ] - } - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "aws-cdk:cr-owned:fb07a701", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/Resource" - } - }, - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucketPolicyF1C1C548": { - "Type": "AWS::S3::BucketPolicy", - "Properties": { - "Bucket": { - "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" - }, - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "s3:PutBucketPolicy", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*" - ], - "Effect": "Allow", - "Principal": { - "AWS": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - } - }, - "Resource": [ - { - "Fn::GetAtt": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/Policy/Resource" - } - }, - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucketAutoDeleteObjectsCustomResource437F26F5": { - "Type": "Custom::S3AutoDeleteObjects", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "Arn" - ] - }, - "BucketName": { - "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" - } - }, - "DependsOn": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucketPolicyF1C1C548" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/AutoDeleteObjectsCustomResource/Default" - } - }, - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentAwsCliLayerE322F905": { - "Type": "AWS::Lambda::LayerVersion", - "Properties": { - "Content": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "0cfdecad2260a3a84ad0c2d08a77e03c9d25e26c7b52f26b1e1faf97aef92f18.zip" - }, - "Description": "/opt/awscli/aws" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsDeployment/AwsCliLayer/Resource", - "aws:asset:path": "asset.0cfdecad2260a3a84ad0c2d08a77e03c9d25e26c7b52f26b1e1faf97aef92f18.zip", - "aws:asset:is-bundled": false, - "aws:asset:property": "Content" - } - }, - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB21775929": { - "Type": "Custom::CDKBucketDeployment", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBC5D8AB21", - "Arn" - ] - }, - "SourceBucketNames": [ - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - } - ], - "SourceObjectKeys": [ - "32dfdb997c964a959a5661de48004ddabb76fd570882b1292caef89600cddca4.zip" - ], - "SourceMarkers": [ - {} - ], - "DestinationBucketName": { - "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" - }, - "WaitForDistributionInvalidation": true, - "Prune": true, - "OutputObjectKeys": true, - "DestinationBucketArn": { - "Fn::GetAtt": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", - "Arn" - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsDeployment/CustomResource-1536MiB/Default" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ] - }, - "ManagedPolicyArns": [ - { - "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" - }, - "Timeout": 900, - "MemorySize": 128, - "Handler": "index.handler", - "Role": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Description": { - "Fn::Join": [ - "", - [ - "Lambda function for auto-deleting objects in ", - { - "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" - }, - " S3 bucket." - ] - ] - } - }, - "DependsOn": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - ], - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", - "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", - "aws:asset:property": "Code" - } - }, - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/ServiceRole/Resource" - } - }, - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleDefaultPolicyFF1C635B": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "s3:GetObject*", - "s3:GetBucket*", - "s3:List*" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":s3:::", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - } - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":s3:::", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/*" - ] - ] - } - ] - }, - { - "Action": [ - "s3:GetObject*", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*", - "s3:PutObject", - "s3:PutObjectLegalHold", - "s3:PutObjectRetention", - "s3:PutObjectTagging", - "s3:PutObjectVersionTagging", - "s3:Abort*" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - }, - { - "Action": [ - "s3:GetObject*", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*", - "s3:PutObject", - "s3:PutObjectLegalHold", - "s3:PutObjectRetention", - "s3:PutObjectTagging", - "s3:PutObjectVersionTagging", - "s3:Abort*" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "modelIntrospectionSchemaBucketF566B665", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "modelIntrospectionSchemaBucketF566B665", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleDefaultPolicyFF1C635B", - "Roles": [ - { - "Ref": "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/ServiceRole/DefaultPolicy/Resource" - } - }, - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBC5D8AB21": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "3423a042b818e31c1e34a19d6689ab2e5f9b70fcbe9e71df66f241b20a200bd9.zip" - }, - "Environment": { - "Variables": { - "AWS_CA_BUNDLE": "/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem" - } - }, - "Handler": "index.handler", - "Layers": [ - { - "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentAwsCliLayerE322F905" - } - ], - "MemorySize": 1536, - "Role": { - "Fn::GetAtt": [ - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2", - "Arn" - ] - }, - "Runtime": "python3.13", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 900 - }, - "DependsOn": [ - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleDefaultPolicyFF1C635B", - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2" - ], - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/Resource", - "aws:asset:path": "asset.3423a042b818e31c1e34a19d6689ab2e5f9b70fcbe9e71df66f241b20a200bd9", - "aws:asset:is-bundled": false, - "aws:asset:property": "Code" - } - }, - "modelIntrospectionSchemaBucketF566B665": { - "Type": "AWS::S3::Bucket", - "Properties": { - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "aws-cdk:cr-owned:7ef3c36e", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/modelIntrospectionSchemaBucket/Resource" - } - }, - "modelIntrospectionSchemaBucketPolicy4DAB0D15": { - "Type": "AWS::S3::BucketPolicy", - "Properties": { - "Bucket": { - "Ref": "modelIntrospectionSchemaBucketF566B665" - }, - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:*", - "Condition": { - "Bool": { - "aws:SecureTransport": "false" - } - }, - "Effect": "Deny", - "Principal": { - "AWS": "*" - }, - "Resource": [ - { - "Fn::GetAtt": [ - "modelIntrospectionSchemaBucketF566B665", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "modelIntrospectionSchemaBucketF566B665", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - }, - { - "Action": [ - "s3:PutBucketPolicy", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*" - ], - "Effect": "Allow", - "Principal": { - "AWS": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - } - }, - "Resource": [ - { - "Fn::GetAtt": [ - "modelIntrospectionSchemaBucketF566B665", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "modelIntrospectionSchemaBucketF566B665", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/modelIntrospectionSchemaBucket/Policy/Resource" - } - }, - "modelIntrospectionSchemaBucketAutoDeleteObjectsCustomResourceFE57309F": { - "Type": "Custom::S3AutoDeleteObjects", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "Arn" - ] - }, - "BucketName": { - "Ref": "modelIntrospectionSchemaBucketF566B665" - } - }, - "DependsOn": [ - "modelIntrospectionSchemaBucketPolicy4DAB0D15" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/modelIntrospectionSchemaBucket/AutoDeleteObjectsCustomResource/Default" - } - }, - "modelIntrospectionSchemaBucketDeploymentAwsCliLayer13C432F7": { - "Type": "AWS::Lambda::LayerVersion", - "Properties": { - "Content": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "0cfdecad2260a3a84ad0c2d08a77e03c9d25e26c7b52f26b1e1faf97aef92f18.zip" - }, - "Description": "/opt/awscli/aws" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/modelIntrospectionSchemaBucketDeployment/AwsCliLayer/Resource", - "aws:asset:path": "asset.0cfdecad2260a3a84ad0c2d08a77e03c9d25e26c7b52f26b1e1faf97aef92f18.zip", - "aws:asset:is-bundled": false, - "aws:asset:property": "Content" - } - }, - "modelIntrospectionSchemaBucketDeploymentCustomResource1536MiB104B97EC": { - "Type": "Custom::CDKBucketDeployment", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBC5D8AB21", - "Arn" - ] - }, - "SourceBucketNames": [ - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - } - ], - "SourceObjectKeys": [ - "7bbe6c45e7a85c4ebb611e77444ebaadde5c178b52d94ba48f04a718491ff401.zip" - ], - "SourceMarkers": [ - {} - ], - "DestinationBucketName": { - "Ref": "modelIntrospectionSchemaBucketF566B665" - }, - "WaitForDistributionInvalidation": true, - "Prune": true, - "OutputObjectKeys": true - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/modelIntrospectionSchemaBucketDeployment/CustomResource-1536MiB/Default" - } - }, - "AMPLIFYDATAGRAPHQLENDPOINTParameter1C2CBB16": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/backendonly/gen2main-branch-8e0f260810/AMPLIFY_DATA_GRAPHQL_ENDPOINT", - "Tags": { - "amplify:app-id": "backendonly", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "GraphQLUrl" - ] - } - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/AMPLIFY_DATA_GRAPHQL_ENDPOINTParameter/Resource" - } - }, - "AMPLIFYDATAMODELINTROSPECTIONSCHEMABUCKETNAMEParameter47BF4F44": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/backendonly/gen2main-branch-8e0f260810/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_BUCKET_NAME", - "Tags": { - "amplify:app-id": "backendonly", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": { - "Ref": "modelIntrospectionSchemaBucketF566B665" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_BUCKET_NAMEParameter/Resource" - } - }, - "AMPLIFYDATAMODELINTROSPECTIONSCHEMAKEYParameterB6AEAE8A": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/backendonly/gen2main-branch-8e0f260810/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_KEY", - "Tags": { - "amplify:app-id": "backendonly", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": "modelIntrospectionSchema.json" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_KEYParameter/Resource" - } - }, - "AMPLIFYDATADEFAULTNAMEParameterE7C23CC4": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/backendonly/gen2main-branch-8e0f260810/AMPLIFY_DATA_DEFAULT_NAME", - "Tags": { - "amplify:app-id": "backendonly", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": "amplifyData" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/AMPLIFY_DATA_DEFAULT_NAMEParameter/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/11RTW/CMAz9LdxDBt0Ou5ai7TCEGJV2RSZ1iyFNujilqqr+9yktnzv5vefIfs+JZPQ2l7MJNDxV2WmqaS+7NbLHLPWgTmKLbGunUEDDuw6qilujZPfpoDr86riiBTCKJDeD8r2KK3pgqTpgCUGIK/rCVqytwSV4SMehSW6e2UdtlCdrEmtyKmoHgYRG8KHP6HrBr7sOmNGzjEMRGVbatiUaLxe1OqFf3oTwWnajOhgdYRh4QWPZWE2qvcsj74WGcp+B7JLcrKBF94OOg6GUTKHR25tfcQMPIXpBUMpua/WQbaj3TdcdzKXsUu/IFBtwUKJHN/SvpO/FEDT1UJApQm/8m6Rmb8vbD12uNODR+E4H0ztoWGmSccOJpiHH0/x/czbOnilDF+7VC2MzlEd+OUeRnL/L2eTIRFNXG08lyu1Y/wC0BiClRgIAAA==" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthUserPoolACA7606BRef": { - "Type": "String" - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef": { - "Type": "String" - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref": { - "Type": "String" - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef": { - "Type": "String" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Outputs": { - "amplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId": { - "Value": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - } - }, - "amplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9GraphQLUrl": { - "Value": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "GraphQLUrl" - ] - } - }, - "amplifybackendonlygen2mainbranch8e0f260810dataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB9671EA91DestinationBucketArn": { - "Value": { - "Fn::GetAtt": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB21775929", - "DestinationBucketArn" - ] - } - }, - "amplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIDefaultApiKeyA92FFACFApiKey": { - "Value": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPIDefaultApiKey1C8ED374", - "ApiKey" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-function1351588B-1DC0LARPU9ICM.description.txt b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-function1351588B-1DC0LARPU9ICM.description.txt deleted file mode 100644 index 6cad6da1b61..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-function1351588B-1DC0LARPU9ICM.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.17.0","stackType":"function-Lambda","metadata":{}} \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-function1351588B-1DC0LARPU9ICM.outputs.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-function1351588B-1DC0LARPU9ICM.outputs.json deleted file mode 100644 index abe18f105df..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-function1351588B-1DC0LARPU9ICM.outputs.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - { - "OutputKey": "amplifybackendonlygen2mainbranch8e0f260810functionquotegeneratorbegen2mainlambda13CCA9BBRef", - "OutputValue": "quotegeneratorbe-gen2-main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-function1351588B-1DC0LARPU9ICM.parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-function1351588B-1DC0LARPU9ICM.parameters.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-function1351588B-1DC0LARPU9ICM.parameters.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-function1351588B-1DC0LARPU9ICM.template.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-function1351588B-1DC0LARPU9ICM.template.json deleted file mode 100644 index e106f3bc83c..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-function1351588B-1DC0LARPU9ICM.template.json +++ /dev/null @@ -1,410 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.17.0\",\"stackType\":\"function-Lambda\",\"metadata\":{}}", - "Resources": { - "quotegeneratorbegen2mainlambdaServiceRole586D26CE": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "quotegeneratorbe-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/function/quotegeneratorbe-gen2-main-lambda/ServiceRole/Resource" - } - }, - "quotegeneratorbegen2mainlambda4F42E790": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Architectures": [ - "x86_64" - ], - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "6548b84d54f89bb78d6b59300a01d3c45a8c0aedbee21a2cd8361de38ed60d9a.zip" - }, - "Environment": { - "Variables": { - "ENV": "gen2-main", - "REGION": "us-east-1", - "AMPLIFY_SSM_ENV_CONFIG": "{}" - } - }, - "EphemeralStorage": { - "Size": 512 - }, - "FunctionName": "quotegeneratorbe-gen2-main", - "Handler": "index.handler", - "MemorySize": 128, - "Role": { - "Fn::GetAtt": [ - "quotegeneratorbegen2mainlambdaServiceRole586D26CE", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "quotegeneratorbe-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 25 - }, - "DependsOn": [ - "quotegeneratorbegen2mainlambdaServiceRole586D26CE" - ], - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/function/quotegeneratorbe-gen2-main-lambda/Resource", - "aws:asset:path": "asset.6548b84d54f89bb78d6b59300a01d3c45a8c0aedbee21a2cd8361de38ed60d9a", - "aws:asset:is-bundled": true, - "aws:asset:property": "Code" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/zXNOw6DQAxF0bXQG4cMKdIGpJQUsABkZgwaPkaKh1Ag9h4BSnWap/sMmscdk4hWja0b4tE3uBWsgV0VyA5Aq9bbSFPjqJbZca9YnLwXscHPAp4m3Mp5ZMhbOdxB05pUOSi+DkBTzBY7cMhIGa4a5q38GzucuypQ56Xb4TjCXm9fY/D+xCTq1fv4s0jwE2N5+QM4T7/LuwAAAA==" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/function/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Outputs": { - "amplifybackendonlygen2mainbranch8e0f260810functionquotegeneratorbegen2mainlambda13CCA9BBRef": { - "Value": { - "Ref": "quotegeneratorbegen2mainlambda4F42E790" - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.description.txt b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.description.txt deleted file mode 100644 index 4600cb981f5..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.4.3","stackType":"storage-S3","metadata":{}} \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.outputs.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.outputs.json deleted file mode 100644 index 6e12f47b9f4..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.outputs.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - { - "OutputKey": "amplifybackendonlygen2mainbranch8e0f260810storagebackendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket8CDA8E49Ref", - "OutputValue": "amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.parameters.json deleted file mode 100644 index 63f7ac787b0..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.parameters.json +++ /dev/null @@ -1,10 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef", - "ParameterValue": "amplify-backendonly-ge-amplifyAuthauthenticatedU-NrnOsacJVeCr" - }, - { - "ParameterKey": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref", - "ParameterValue": "amplify-backendonly-ge-amplifyAuthunauthenticate-mFzNB8V2DE4J" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.template.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.template.json deleted file mode 100644 index 3f6bb4578ac..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810-storage0EC3F24A-1BTE7UH0TFE2I.template.json +++ /dev/null @@ -1,804 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", - "Resources": { - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "BucketKeyEnabled": false, - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "MaxAge": 3000 - } - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-gen2-main" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-gen2-main/Bucket/Resource" - } - }, - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucketPolicy14D90AB6": { - "Type": "AWS::S3::BucketPolicy", - "Properties": { - "Bucket": { - "Ref": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738" - }, - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:*", - "Condition": { - "Bool": { - "aws:SecureTransport": "false" - } - }, - "Effect": "Deny", - "Principal": { - "AWS": "*" - }, - "Resource": [ - { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - }, - { - "Action": [ - "s3:PutBucketPolicy", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*" - ], - "Effect": "Allow", - "Principal": { - "AWS": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - } - }, - "Resource": [ - { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-gen2-main/Bucket/Policy/Resource" - } - }, - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucketAutoDeleteObjectsCustomResource31970782": { - "Type": "Custom::S3AutoDeleteObjects", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "Arn" - ] - }, - "BucketName": { - "Ref": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738" - } - }, - "DependsOn": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucketPolicy14D90AB6" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-gen2-main/Bucket/AutoDeleteObjectsCustomResource/Default" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ] - }, - "ManagedPolicyArns": [ - { - "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" - }, - "Timeout": 900, - "MemorySize": 128, - "Handler": "index.handler", - "Role": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Description": { - "Fn::Join": [ - "", - [ - "Lambda function for auto-deleting objects in ", - { - "Ref": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738" - }, - " S3 bucket." - ] - ] - } - }, - "DependsOn": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - ], - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", - "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", - "aws:asset:property": "Code" - } - }, - "BACKENDONLYCB1A13AB81664ECAA7D015068AB2D0165E0FAGEN2MAINBUCKETNAMEParameterF8DFE544": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/backendonly/gen2main-branch-8e0f260810/BACKENDONLYCB_1_A_13_AB_81664_ECAA_7_D_015068_AB_2_D_0165_E_0_FA_GEN_2_MAIN_BUCKET_NAME", - "Tags": { - "amplify:app-id": "backendonly", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": { - "Ref": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/BACKENDONLYCB_1_A_13_AB_81664_ECAA_7_D_015068_AB_2_D_0165_E_0_FA_GEN_2_MAIN_BUCKET_NAMEParameter/Resource" - } - }, - "amplifybackendonlygen2mainbranch8e0f260810storageAccess30A2D62BD": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - }, - "/public/*" - ] - ] - } - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/*", - "public/" - ] - } - }, - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "amplifybackendonlygen2mainbranch8e0f260810storageAccess30A2D62BD", - "Roles": [ - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/amplify-backendonly-gen2main-branch-8e0f260810--storageAccess3/Resource" - } - }, - "amplifybackendonlygen2mainbranch8e0f260810storageAccess4B03641A3": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:PutObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - }, - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - }, - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - }, - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - }, - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - }, - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - }, - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/*", - "public/", - "protected/*", - "protected/", - "private/*", - "private/" - ] - } - }, - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - } - }, - { - "Action": "s3:DeleteObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - }, - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - }, - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738", - "Arn" - ] - }, - "/private/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "amplifybackendonlygen2mainbranch8e0f260810storageAccess4B03641A3", - "Roles": [ - { - "Ref": "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/amplify-backendonly-gen2main-branch-8e0f260810--storageAccess4/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WLTQ6CMBCFz8K+jIgu3Cp7Q+AAppaRjNA26QwQ03B3QyASV+97fznk5yNkiZ44NU2X9vSEeEcWbGrRplN64kfkE8TbYDoUVbzcRquUvifz2ePVz4rZQqwlkGtLHbRFwbCsfmZWpC3E/b89Z1UMLN5WyH4IBpdq57+qDH6kBsNNM6orM0otuiXXzsr5BuHNhzHP4XiBLHkzURoGJ2QRqlW/LyyDFv0AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref": { - "Type": "String" - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef": { - "Type": "String" - } - }, - "Outputs": { - "amplifybackendonlygen2mainbranch8e0f260810storagebackendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket8CDA8E49Ref": { - "Value": { - "Ref": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket50DDE738" - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810.description.txt b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810.description.txt deleted file mode 100644 index b40731368ef..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.21.0","stackType":"root","metadata":{}} \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810.outputs.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810.outputs.json deleted file mode 100644 index 72e286da2d4..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810.outputs.json +++ /dev/null @@ -1,138 +0,0 @@ -[ - { - "OutputKey": "webClientId", - "OutputValue": "55m5602upkjiv7819hcf2ht5v3" - }, - { - "OutputKey": "socialProviders", - "OutputValue": "" - }, - { - "OutputKey": "usernameAttributes", - "OutputValue": "[\"email\"]" - }, - { - "OutputKey": "bucketName", - "OutputValue": "amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc" - }, - { - "OutputKey": "signupAttributes", - "OutputValue": "[\"email\"]" - }, - { - "OutputKey": "oauthClientId", - "OutputValue": "55m5602upkjiv7819hcf2ht5v3" - }, - { - "OutputKey": "allowUnauthenticatedIdentities", - "OutputValue": "true" - }, - { - "OutputKey": "oauthCognitoDomain", - "OutputValue": "" - }, - { - "OutputKey": "oauthScope", - "OutputValue": "[\"profile\",\"phone\",\"email\",\"openid\",\"aws.cognito.signin.user.admin\"]" - }, - { - "OutputKey": "oauthRedirectSignOut", - "OutputValue": "" - }, - { - "OutputKey": "awsAppsyncAdditionalAuthenticationTypes", - "OutputValue": "AMAZON_COGNITO_USER_POOLS,AWS_IAM" - }, - { - "OutputKey": "mfaTypes", - "OutputValue": "[]" - }, - { - "OutputKey": "mfaConfiguration", - "OutputValue": "OFF" - }, - { - "OutputKey": "storageRegion", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "oauthResponseType", - "OutputValue": "code" - }, - { - "OutputKey": "awsAppsyncApiKey", - "OutputValue": "da2-fakeapikey00000000000000" - }, - { - "OutputKey": "awsAppsyncAuthenticationType", - "OutputValue": "API_KEY" - }, - { - "OutputKey": "oauthRedirectSignIn", - "OutputValue": "https://example.com" - }, - { - "OutputKey": "passwordPolicyMinLength", - "OutputValue": "8" - }, - { - "OutputKey": "awsAppsyncApiEndpoint", - "OutputValue": "https://6dzlmk7dbjfr3gls7n6lw7hunq.appsync-api.us-east-1.amazonaws.com/graphql" - }, - { - "OutputKey": "awsAppsyncApiId", - "OutputValue": "pjpnolkqdzf57jyueue5dlgyam" - }, - { - "OutputKey": "authRegion", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "buckets", - "OutputValue": "[\"{\\\"name\\\":\\\"backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-gen2-main\\\",\\\"bucketName\\\":\\\"amplify-backendonly-ge-backendonlycb1a13ab81664-hysxrjfwrstc\\\",\\\"storageRegion\\\":\\\"us-east-1\\\",\\\"paths\\\":{\\\"public/*\\\":{\\\"guest\\\":[\\\"get\\\",\\\"list\\\"],\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]},\\\"protected/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]},\\\"private/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]}}}\"]" - }, - { - "OutputKey": "amplifyApiModelSchemaS3Uri", - "OutputValue": "s3://amplify-backendonly-ge-amplifydataamplifycodege-dpqe8qgqodjl/model-schema.graphql" - }, - { - "OutputKey": "groups", - "OutputValue": "[]" - }, - { - "OutputKey": "definedFunctions", - "OutputValue": "[\"quotegeneratorbe-gen2-main\"]" - }, - { - "OutputKey": "passwordlessOptions", - "OutputValue": "" - }, - { - "OutputKey": "awsAppsyncRegion", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "deploymentType", - "OutputValue": "branch" - }, - { - "OutputKey": "passwordPolicyRequirements", - "OutputValue": "[]" - }, - { - "OutputKey": "region", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "userPoolId", - "OutputValue": "us-east-1_W9u2NBSRe" - }, - { - "OutputKey": "identityPoolId", - "OutputValue": "us-east-1:33a8fea2-6293-4bec-8726-31e6b5817de5" - }, - { - "OutputKey": "verificationMechanisms", - "OutputValue": "[\"email\"]" - } -] diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810.parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810.parameters.json deleted file mode 100644 index 74596fb6f32..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810.parameters.json +++ /dev/null @@ -1,7 +0,0 @@ -[ - { - "ParameterKey": "BootstrapVersion", - "ParameterValue": "/cdk-bootstrap/hnb659fds/version", - "ResolvedValue": "30" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810.template.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810.template.json deleted file mode 100644 index 4f741f955a6..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-gen2main-branch-8e0f260810.template.json +++ /dev/null @@ -1,1149 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.21.0\",\"stackType\":\"root\",\"metadata\":{}}", - "Metadata": { - "AWS::Amplify::Platform": { - "version": "1", - "stackOutputs": [ - "deploymentType", - "region" - ] - }, - "AWS::Amplify::Auth": { - "version": "1", - "stackOutputs": [ - "userPoolId", - "webClientId", - "identityPoolId", - "authRegion", - "allowUnauthenticatedIdentities", - "signupAttributes", - "usernameAttributes", - "verificationMechanisms", - "passwordPolicyMinLength", - "passwordPolicyRequirements", - "mfaConfiguration", - "mfaTypes", - "passwordlessOptions", - "socialProviders", - "oauthCognitoDomain", - "oauthScope", - "oauthRedirectSignIn", - "oauthRedirectSignOut", - "oauthResponseType", - "oauthClientId", - "groups" - ] - }, - "AWS::Amplify::GraphQL": { - "version": "1", - "stackOutputs": [ - "awsAppsyncApiId", - "awsAppsyncApiEndpoint", - "awsAppsyncAuthenticationType", - "awsAppsyncRegion", - "amplifyApiModelSchemaS3Uri", - "awsAppsyncApiKey", - "awsAppsyncAdditionalAuthenticationTypes" - ] - }, - "AWS::Amplify::Function": { - "version": "1", - "stackOutputs": [ - "definedFunctions" - ] - }, - "AWS::Amplify::Storage": { - "version": "1", - "stackOutputs": [ - "buckets", - "storageRegion", - "bucketName" - ] - } - }, - "Outputs": { - "deploymentType": { - "Value": "branch" - }, - "region": { - "Value": { - "Ref": "AWS::Region" - } - }, - "userPoolId": { - "Value": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthUserPoolACA7606BRef" - ] - } - }, - "webClientId": { - "Value": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthUserPoolAppClientF2CDC3A8Ref" - ] - } - }, - "identityPoolId": { - "Value": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef" - ] - } - }, - "authRegion": { - "Value": { - "Ref": "AWS::Region" - } - }, - "allowUnauthenticatedIdentities": { - "Value": "true" - }, - "signupAttributes": { - "Value": "[\"email\"]" - }, - "usernameAttributes": { - "Value": "[\"email\"]" - }, - "verificationMechanisms": { - "Value": "[\"email\"]" - }, - "passwordPolicyMinLength": { - "Value": "8" - }, - "passwordPolicyRequirements": { - "Value": "[]" - }, - "mfaConfiguration": { - "Value": "OFF" - }, - "mfaTypes": { - "Value": "[]" - }, - "passwordlessOptions": { - "Value": "" - }, - "socialProviders": { - "Value": "" - }, - "oauthCognitoDomain": { - "Value": "" - }, - "oauthScope": { - "Value": "[\"profile\",\"phone\",\"email\",\"openid\",\"aws.cognito.signin.user.admin\"]" - }, - "oauthRedirectSignIn": { - "Value": "https://example.com" - }, - "oauthRedirectSignOut": { - "Value": "" - }, - "oauthResponseType": { - "Value": "code" - }, - "oauthClientId": { - "Value": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthUserPoolAppClientF2CDC3A8Ref" - ] - } - }, - "groups": { - "Value": "[]" - }, - "awsAppsyncApiId": { - "Value": { - "Fn::GetAtt": [ - "data7552DF31", - "Outputs.amplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9ApiId" - ] - } - }, - "awsAppsyncApiEndpoint": { - "Value": { - "Fn::GetAtt": [ - "data7552DF31", - "Outputs.amplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIB11735D9GraphQLUrl" - ] - } - }, - "awsAppsyncAuthenticationType": { - "Value": "API_KEY" - }, - "awsAppsyncRegion": { - "Value": { - "Ref": "AWS::Region" - } - }, - "amplifyApiModelSchemaS3Uri": { - "Value": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Fn::Select": [ - 0, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "data7552DF31", - "Outputs.amplifybackendonlygen2mainbranch8e0f260810dataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB9671EA91DestinationBucketArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "/model-schema.graphql" - ] - ] - } - }, - "awsAppsyncApiKey": { - "Value": { - "Fn::GetAtt": [ - "data7552DF31", - "Outputs.amplifybackendonlygen2mainbranch8e0f260810dataamplifyDataGraphQLAPIDefaultApiKeyA92FFACFApiKey" - ] - } - }, - "awsAppsyncAdditionalAuthenticationTypes": { - "Value": "AMAZON_COGNITO_USER_POOLS,AWS_IAM" - }, - "definedFunctions": { - "Value": { - "Fn::Join": [ - "", - [ - "[\"", - { - "Fn::GetAtt": [ - "function1351588B", - "Outputs.amplifybackendonlygen2mainbranch8e0f260810functionquotegeneratorbegen2mainlambda13CCA9BBRef" - ] - }, - "\"]" - ] - ] - } - }, - "storageRegion": { - "Value": { - "Ref": "AWS::Region" - } - }, - "bucketName": { - "Value": { - "Fn::GetAtt": [ - "storage0EC3F24A", - "Outputs.amplifybackendonlygen2mainbranch8e0f260810storagebackendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket8CDA8E49Ref" - ] - } - }, - "buckets": { - "Value": { - "Fn::Join": [ - "", - [ - "[\"{\\\"name\\\":\\\"backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-gen2-main\\\",\\\"bucketName\\\":\\\"", - { - "Fn::GetAtt": [ - "storage0EC3F24A", - "Outputs.amplifybackendonlygen2mainbranch8e0f260810storagebackendonlycb1a13ab81664ecaa7d015068ab2d0165e0fagen2mainBucket8CDA8E49Ref" - ] - }, - "\\\",\\\"storageRegion\\\":\\\"", - { - "Ref": "AWS::Region" - }, - "\\\",\\\"paths\\\":{\\\"public/*\\\":{\\\"guest\\\":[\\\"get\\\",\\\"list\\\"],\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]},\\\"protected/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]},\\\"private/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]}}}\"]" - ] - ] - } - } - }, - "Resources": { - "AmplifyBranchLinkerCustomResourceLambdaServiceRole3DDCBC03": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/AmplifyBranchLinker/CustomResourceLambda/ServiceRole/Resource" - } - }, - "AmplifyBranchLinkerCustomResourceLambdaServiceRoleDefaultPolicy86099CA1": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "amplify:GetBranch", - "amplify:UpdateBranch" - ], - "Effect": "Allow", - "Resource": "arn:aws:amplify:*:*:apps/backendonly/branches/gen2-main" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "AmplifyBranchLinkerCustomResourceLambdaServiceRoleDefaultPolicy86099CA1", - "Roles": [ - { - "Ref": "AmplifyBranchLinkerCustomResourceLambdaServiceRole3DDCBC03" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/AmplifyBranchLinker/CustomResourceLambda/ServiceRole/DefaultPolicy/Resource" - } - }, - "AmplifyBranchLinkerCustomResourceLambda582AC093": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "79932156d8d106bc281ade4d58c51834eea98cc31252cfadaec1082aae5909aa.zip" - }, - "Handler": "index.handler", - "Role": { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceLambdaServiceRole3DDCBC03", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 10 - }, - "DependsOn": [ - "AmplifyBranchLinkerCustomResourceLambdaServiceRoleDefaultPolicy86099CA1", - "AmplifyBranchLinkerCustomResourceLambdaServiceRole3DDCBC03" - ], - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/AmplifyBranchLinker/CustomResourceLambda/Resource", - "aws:asset:path": "asset.79932156d8d106bc281ade4d58c51834eea98cc31252cfadaec1082aae5909aa", - "aws:asset:is-bundled": true, - "aws:asset:property": "Code" - } - }, - "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRole92A035EB": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/AmplifyBranchLinker/CustomResourceProvider/framework-onEvent/ServiceRole/Resource" - } - }, - "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRoleDefaultPolicy38AAE412": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "lambda:InvokeFunction", - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceLambda582AC093", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceLambda582AC093", - "Arn" - ] - }, - ":*" - ] - ] - } - ] - }, - { - "Action": "lambda:GetFunction", - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceLambda582AC093", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRoleDefaultPolicy38AAE412", - "Roles": [ - { - "Ref": "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRole92A035EB" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/AmplifyBranchLinker/CustomResourceProvider/framework-onEvent/ServiceRole/DefaultPolicy/Resource" - } - }, - "AmplifyBranchLinkerCustomResourceProviderframeworkonEvent3B23F900": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "07a90cc3efdfc34da22208dcd9d211f06f5b0e01b21e778edc7c3966b1f61d57.zip" - }, - "Description": "AWS CDK resource provider framework - onEvent (amplify-backendonly-gen2main-branch-8e0f260810/AmplifyBranchLinker/CustomResourceProvider)", - "Environment": { - "Variables": { - "USER_ON_EVENT_FUNCTION_ARN": { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceLambda582AC093", - "Arn" - ] - } - } - }, - "Handler": "framework.onEvent", - "LoggingConfig": { - "ApplicationLogLevel": "FATAL", - "LogFormat": "JSON" - }, - "Role": { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRole92A035EB", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 900 - }, - "DependsOn": [ - "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRoleDefaultPolicy38AAE412", - "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRole92A035EB" - ], - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/AmplifyBranchLinker/CustomResourceProvider/framework-onEvent/Resource", - "aws:asset:path": "asset.07a90cc3efdfc34da22208dcd9d211f06f5b0e01b21e778edc7c3966b1f61d57", - "aws:asset:is-bundled": false, - "aws:asset:property": "Code" - } - }, - "AmplifyBranchLinkerCustomResource96E36FC1": { - "Type": "Custom::AmplifyBranchLinkerResource", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceProviderframeworkonEvent3B23F900", - "Arn" - ] - }, - "appId": "backendonly", - "branchName": "gen2-main" - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/AmplifyBranchLinker/CustomResource/Default" - } - }, - "auth179371D7": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/c66cf4f5d00e56654778d28a836cc89675b1946cfc89d9a762271611c964ec6e.json" - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/auth.NestedStack/auth.NestedStackResource", - "aws:asset:path": "amplifybackendonlygen2mainbranch8e0f260810authFDFBFFF6.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "data7552DF31": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthUserPoolACA7606BRef": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthUserPoolACA7606BRef" - ] - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef" - ] - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref" - ] - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthIdentityPool91CBC3ADRef" - ] - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/2065ccb3f00b24cc3bf4f9fe7f923bc22d501f34ac6eb3cf43c71cf757aa824b.json" - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/data.NestedStack/data.NestedStackResource", - "aws:asset:path": "amplifybackendonlygen2mainbranch8e0f260810dataC701885F.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "storage0EC3F24A": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthunauthenticatedUserRole02B14E66Ref" - ] - }, - "referencetoamplifybackendonlygen2mainbranch8e0f260810authNestedStackauthNestedStackResource99123BA9Outputsamplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifybackendonlygen2mainbranch8e0f260810authamplifyAuthauthenticatedUserRole5699D34FRef" - ] - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/13a48bf0c915f84d9ec0ba2c0cf6df97e9a189e98904c63ed7bfbac25478bbb7.json" - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/storage.NestedStack/storage.NestedStackResource", - "aws:asset:path": "amplifybackendonlygen2mainbranch8e0f260810storageE30B2D9C.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "function1351588B": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "backendonly" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/b6a8214091daccc1c9dab8f82729312b2825bb18fbbd18f3f8a7db3db12a7afc.json" - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/function.NestedStack/function.NestedStackResource", - "aws:asset:path": "amplifybackendonlygen2mainbranch8e0f260810function710214C7.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/02PzWrDQAyEnyV3WU2cHHptDD22wXkAo6yVIP/slpU2oRi/e/C6LT19I4YZNCWWhx1uN/TQwrV9McgFp7OR66G6+s9kX8mAHtpMA42XlhofWu4UPzLek3cmwYPQiFMdBl5SmacwiPtezlXNoPuGVNkU3xaA7vGYXM92JGVY63Gqrv6v9VfMM+TI2egm/gYuqYWxiawhRceKpxju0nKEKjv1j5Gf+afzrhmWCdjpy70scfeK202nIkVM3mRkrFc+AUTtSG0ZAQAA" - }, - "Metadata": { - "aws:cdk:path": "amplify-backendonly-gen2main-branch-8e0f260810/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "BootstrapVersion": { - "Type": "AWS::SSM::Parameter::Value", - "Default": "/cdk-bootstrap/hnb659fds/version", - "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]" - } - }, - "Rules": { - "CheckBootstrapVersion": { - "Assertions": [ - { - "Assert": { - "Fn::Not": [ - { - "Fn::Contains": [ - [ - "1", - "2", - "3", - "4", - "5" - ], - { - "Ref": "BootstrapVersion" - } - ] - } - ] - }, - "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI." - } - ] - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-ConnectionStack-1O6ABIA8WCT9Q.description.txt b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-ConnectionStack-1O6ABIA8WCT9Q.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-ConnectionStack-1O6ABIA8WCT9Q.outputs.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-ConnectionStack-1O6ABIA8WCT9Q.outputs.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-ConnectionStack-1O6ABIA8WCT9Q.outputs.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-ConnectionStack-1O6ABIA8WCT9Q.parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-ConnectionStack-1O6ABIA8WCT9Q.parameters.json deleted file mode 100644 index 532b495660f..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-ConnectionStack-1O6ABIA8WCT9Q.parameters.json +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", - "ParameterValue": "amplify-appsync-files/47418d5f9df78fb8fa9acaa5bd04a81ebc30971b" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", - "ParameterValue": "sgumi4ggubb4jdo6i54km7skka" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", - "ParameterValue": "amplify-backendonly-main-5e0fa-deployment" - }, - { - "ParameterKey": "referencetotransformerrootstackTodoNestedStackTodoNestedStackResource9AC126A3OutputstransformerrootstackTodoTodoTableC67E79C2Ref", - "ParameterValue": "Todo-sgumi4ggubb4jdo6i54km7skka-main" - }, - { - "ParameterKey": "referencetotransformerrootstackTodoNestedStackTodoNestedStackResource9AC126A3OutputstransformerrootstackTodoTodoDataSourceBD713D7DName", - "ParameterValue": "TodoTable" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-ConnectionStack-1O6ABIA8WCT9Q.template.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-ConnectionStack-1O6ABIA8WCT9Q.template.json deleted file mode 100644 index 765e7847997..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-ConnectionStack-1O6ABIA8WCT9Q.template.json +++ /dev/null @@ -1,143 +0,0 @@ -{ - "Resources": { - "Projecttodosauth0FunctionProjecttodosauth0FunctionAppSyncFunctionB9D5F5D1": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "Projecttodosauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Project.todos.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "ProjectTodosDataResolverFnProjectTodosDataResolverFnAppSyncFunction6418E519": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackTodoNestedStackTodoNestedStackResource9AC126A3OutputstransformerrootstackTodoTodoDataSourceBD713D7DName" - }, - "FunctionVersion": "2018-05-29", - "Name": "ProjectTodosDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Project.todos.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Project.todos.res.vtl" - ] - ] - } - } - }, - "ProjecttodosResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "todos", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "Projecttodosauth0FunctionProjecttodosauth0FunctionAppSyncFunctionB9D5F5D1", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "ProjectTodosDataResolverFnProjectTodosDataResolverFnAppSyncFunction6418E519", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Project\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"todos\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "referencetotransformerrootstackTodoNestedStackTodoNestedStackResource9AC126A3OutputstransformerrootstackTodoTodoTableC67E79C2Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Project" - } - } - }, - "Parameters": { - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Type": "String" - }, - "referencetotransformerrootstackTodoNestedStackTodoNestedStackResource9AC126A3OutputstransformerrootstackTodoTodoDataSourceBD713D7DName": { - "Type": "String" - }, - "referencetotransformerrootstackTodoNestedStackTodoNestedStackResource9AC126A3OutputstransformerrootstackTodoTodoTableC67E79C2Ref": { - "Type": "String" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-CustomResourcesjson-1P0OHVSTS45C6.description.txt b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-CustomResourcesjson-1P0OHVSTS45C6.description.txt deleted file mode 100644 index 293dec5639e..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-CustomResourcesjson-1P0OHVSTS45C6.description.txt +++ /dev/null @@ -1 +0,0 @@ -An auto-generated nested stack. \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-CustomResourcesjson-1P0OHVSTS45C6.outputs.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-CustomResourcesjson-1P0OHVSTS45C6.outputs.json deleted file mode 100644 index 5e9753d822a..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-CustomResourcesjson-1P0OHVSTS45C6.outputs.json +++ /dev/null @@ -1,7 +0,0 @@ -[ - { - "OutputKey": "EmptyOutput", - "OutputValue": "", - "Description": "An empty output. You may delete this if you have at least one resource above." - } -] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-CustomResourcesjson-1P0OHVSTS45C6.parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-CustomResourcesjson-1P0OHVSTS45C6.parameters.json deleted file mode 100644 index e5af1af98fe..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-CustomResourcesjson-1P0OHVSTS45C6.parameters.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "ParameterKey": "S3DeploymentBucket", - "ParameterValue": "amplify-backendonly-main-5e0fa-deployment" - }, - { - "ParameterKey": "AppSyncApiId", - "ParameterValue": "sgumi4ggubb4jdo6i54km7skka" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "S3DeploymentRootKey", - "ParameterValue": "amplify-appsync-files/47418d5f9df78fb8fa9acaa5bd04a81ebc30971b" - }, - { - "ParameterKey": "AppSyncApiName", - "ParameterValue": "backendonly" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-CustomResourcesjson-1P0OHVSTS45C6.template.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-CustomResourcesjson-1P0OHVSTS45C6.template.json deleted file mode 100644 index 016991278d0..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-CustomResourcesjson-1P0OHVSTS45C6.template.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "An auto-generated nested stack.", - "Metadata": {}, - "Parameters": { - "AppSyncApiId": { - "Type": "String", - "Description": "The id of the AppSync API associated with this project." - }, - "AppSyncApiName": { - "Type": "String", - "Description": "The name of the AppSync API", - "Default": "AppSyncSimpleTransform" - }, - "env": { - "Type": "String", - "Description": "The environment name. e.g. Dev, Test, or Production", - "Default": "NONE" - }, - "S3DeploymentBucket": { - "Type": "String", - "Description": "The S3 bucket containing all deployment assets for the project." - }, - "S3DeploymentRootKey": { - "Type": "String", - "Description": "An S3 key relative to the S3DeploymentBucket that points to the root\nof the deployment directory." - } - }, - "Resources": { - "EmptyResource": { - "Type": "Custom::EmptyResource", - "Condition": "AlwaysFalse" - } - }, - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - ] - }, - "AlwaysFalse": { - "Fn::Equals": [ - "true", - "false" - ] - } - }, - "Outputs": { - "EmptyOutput": { - "Description": "An empty output. You may delete this if you have at least one resource above.", - "Value": "" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-FunctionDirectiveStack-O1V7H23H1TZJ.description.txt b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-FunctionDirectiveStack-O1V7H23H1TZJ.description.txt deleted file mode 100644 index 87d574fa42f..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-FunctionDirectiveStack-O1V7H23H1TZJ.description.txt +++ /dev/null @@ -1 +0,0 @@ -An auto-generated nested stack for the @function directive. \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-FunctionDirectiveStack-O1V7H23H1TZJ.outputs.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-FunctionDirectiveStack-O1V7H23H1TZJ.outputs.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-FunctionDirectiveStack-O1V7H23H1TZJ.outputs.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-FunctionDirectiveStack-O1V7H23H1TZJ.parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-FunctionDirectiveStack-O1V7H23H1TZJ.parameters.json deleted file mode 100644 index 9e93d5d05d9..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-FunctionDirectiveStack-O1V7H23H1TZJ.parameters.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", - "ParameterValue": "amplify-appsync-files/47418d5f9df78fb8fa9acaa5bd04a81ebc30971b" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", - "ParameterValue": "sgumi4ggubb4jdo6i54km7skka" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", - "ParameterValue": "amplify-backendonly-main-5e0fa-deployment" - }, - { - "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", - "ParameterValue": "main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-FunctionDirectiveStack-O1V7H23H1TZJ.template.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-FunctionDirectiveStack-O1V7H23H1TZJ.template.json deleted file mode 100644 index 320e15cb1be..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-FunctionDirectiveStack-O1V7H23H1TZJ.template.json +++ /dev/null @@ -1,281 +0,0 @@ -{ - "Description": "An auto-generated nested stack for the @function directive.", - "AWSTemplateFormatVersion": "2010-09-09", - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - }, - "NONE" - ] - } - ] - } - }, - "Resources": { - "QuotegeneratorLambdaDataSourceServiceRole2D26810D": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - } - } - }, - "QuotegeneratorLambdaDataSourceServiceRoleDefaultPolicy1B36E7EE": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "lambda:InvokeFunction", - "Effect": "Allow", - "Resource": [ - { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator-${env}", - { - "env": { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - } - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator" - } - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator-${env}", - { - "env": { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - } - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator" - } - ] - }, - ":*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "QuotegeneratorLambdaDataSourceServiceRoleDefaultPolicy1B36E7EE", - "Roles": [ - { - "Ref": "QuotegeneratorLambdaDataSourceServiceRole2D26810D" - } - ] - } - }, - "QuotegeneratorLambdaDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "LambdaConfig": { - "LambdaFunctionArn": { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator-${env}", - { - "env": { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - } - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator" - } - ] - } - }, - "Name": "QuotegeneratorLambdaDataSource", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "QuotegeneratorLambdaDataSourceServiceRole2D26810D", - "Arn" - ] - }, - "Type": "AWS_LAMBDA" - } - }, - "InvokeQuotegeneratorLambdaDataSourceInvokeQuotegeneratorLambdaDataSourceAppSyncFunctionE6745EF3": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "QuotegeneratorLambdaDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "InvokeQuotegeneratorLambdaDataSource", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/InvokeQuotegeneratorLambdaDataSource.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/InvokeQuotegeneratorLambdaDataSource.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "QuotegeneratorLambdaDataSource" - ] - }, - "QuerygetRandomQuoteResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "getRandomQuote", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QueryGetRandomQuoteAuthFNQueryGetRandomQuoteAuthFNAppSyncFunction15864A6C", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "InvokeQuotegeneratorLambdaDataSourceInvokeQuotegeneratorLambdaDataSourceAppSyncFunctionE6745EF3", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getRandomQuote\"))\n{}\n## [End] Stash resolver specific context.. **", - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getRandomQuote.res.vtl" - ] - ] - }, - "TypeName": "Query" - } - }, - "QueryGetRandomQuoteAuthFNQueryGetRandomQuoteAuthFNAppSyncFunction15864A6C": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryGetRandomQuoteAuthFN", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getRandomQuote.auth.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - } - }, - "Parameters": { - "referencetotransformerrootstackenv10C5A902Ref": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Type": "String" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-Project-R4Q9GR7AARZE.description.txt b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-Project-R4Q9GR7AARZE.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-Project-R4Q9GR7AARZE.outputs.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-Project-R4Q9GR7AARZE.outputs.json deleted file mode 100644 index 0bb54519055..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-Project-R4Q9GR7AARZE.outputs.json +++ /dev/null @@ -1,48 +0,0 @@ -[ - { - "OutputKey": "transformerrootstackProjectQuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionA68979B1FunctionId", - "OutputValue": "pob2sbrsyjfmlatlr7yvmrob6y" - }, - { - "OutputKey": "transformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId", - "OutputValue": "5vfs42pikjealixgr3dwmxkx6y" - }, - { - "OutputKey": "transformerrootstackProjectSubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction5D3DF8A6FunctionId", - "OutputValue": "g2blr4qs2nerjo2d2uef6acwnm" - }, - { - "OutputKey": "transformerrootstackProjectSubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDFF26C0AFunctionId", - "OutputValue": "irumqdnhbva63h7pc6ma5mgd3e" - }, - { - "OutputKey": "GetAttProjectDataSourceName", - "OutputValue": "ProjectTable", - "Description": "Your model DataSource name.", - "ExportName": "sgumi4ggubb4jdo6i54km7skka:GetAtt:ProjectDataSource:Name" - }, - { - "OutputKey": "transformerrootstackProjectMutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunctionF33DB6D0FunctionId", - "OutputValue": "4cuakqbq4beh3nfe7qqsc7d5fa" - }, - { - "OutputKey": "transformerrootstackProjectMutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction63376DADFunctionId", - "OutputValue": "g447b3vzrfcepmjspuwkmwaz2y" - }, - { - "OutputKey": "transformerrootstackProjectProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunctionC730BF38FunctionId", - "OutputValue": "74okgw54dnag5ipagl42klarvu" - }, - { - "OutputKey": "GetAttProjectTableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Project-sgumi4ggubb4jdo6i54km7skka-main/stream/2026-03-08T18:10:52.501", - "Description": "Your DynamoDB table StreamArn.", - "ExportName": "sgumi4ggubb4jdo6i54km7skka:GetAtt:ProjectTable:StreamArn" - }, - { - "OutputKey": "GetAttProjectTableName", - "OutputValue": "Project-sgumi4ggubb4jdo6i54km7skka-main", - "Description": "Your DynamoDB table name.", - "ExportName": "sgumi4ggubb4jdo6i54km7skka:GetAtt:ProjectTable:Name" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-Project-R4Q9GR7AARZE.parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-Project-R4Q9GR7AARZE.parameters.json deleted file mode 100644 index 20456e61f73..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-Project-R4Q9GR7AARZE.parameters.json +++ /dev/null @@ -1,42 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", - "ParameterValue": "amplify-appsync-files/47418d5f9df78fb8fa9acaa5bd04a81ebc30971b" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "false" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", - "ParameterValue": "sgumi4ggubb4jdo6i54km7skka" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", - "ParameterValue": "amplify-backendonly-main-5e0fa-deployment" - }, - { - "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", - "ParameterValue": "main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-Project-R4Q9GR7AARZE.template.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-Project-R4Q9GR7AARZE.template.json deleted file mode 100644 index daae2c34bb7..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-Project-R4Q9GR7AARZE.template.json +++ /dev/null @@ -1,1536 +0,0 @@ -{ - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "referencetotransformerrootstackenv10C5A902Ref": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Type": "String" - } - }, - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - }, - "NONE" - ] - } - ] - }, - "ShouldUseServerSideEncryption": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "true" - ] - }, - "ShouldUsePayPerRequestBilling": { - "Fn::Equals": [ - { - "Ref": "DynamoDBBillingMode" - }, - "PAY_PER_REQUEST" - ] - }, - "ShouldUsePointInTimeRecovery": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "true" - ] - } - }, - "Resources": { - "ProjectTable": { - "Type": "AWS::DynamoDB::Table", - "Properties": { - "AttributeDefinitions": [ - { - "AttributeName": "id", - "AttributeType": "S" - } - ], - "BillingMode": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - "PAY_PER_REQUEST", - { - "Ref": "AWS::NoValue" - } - ] - }, - "KeySchema": [ - { - "AttributeName": "id", - "KeyType": "HASH" - } - ], - "PointInTimeRecoverySpecification": { - "Fn::If": [ - "ShouldUsePointInTimeRecovery", - { - "PointInTimeRecoveryEnabled": true - }, - { - "Ref": "AWS::NoValue" - } - ] - }, - "ProvisionedThroughput": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - { - "Ref": "AWS::NoValue" - }, - { - "ReadCapacityUnits": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "WriteCapacityUnits": { - "Ref": "DynamoDBModelTableWriteIOPS" - } - } - ] - }, - "SSESpecification": { - "SSEEnabled": { - "Fn::If": [ - "ShouldUseServerSideEncryption", - true, - false - ] - } - }, - "StreamSpecification": { - "StreamViewType": "NEW_AND_OLD_IMAGES" - }, - "TableName": { - "Fn::Join": [ - "", - [ - "Project-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete" - }, - "ProjectIAMRole928454B5": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:DeleteItem", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:Query", - "dynamodb:UpdateItem", - "dynamodb:ConditionCheckItem", - "dynamodb:DescribeTable", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", - { - "tablename": { - "Fn::Join": [ - "", - [ - "Project-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - ] - }, - { - "Fn::Sub": [ - "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", - { - "tablename": { - "Fn::Join": [ - "", - [ - "Project-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "DynamoDBAccess" - } - ], - "RoleName": { - "Fn::Join": [ - "", - [ - "ProjectIAMRole032cf0-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - }, - "ProjectIAMRoleDefaultPolicy08A73B99": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator", - "dynamodb:Query", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:ConditionCheckItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:UpdateItem", - "dynamodb:DeleteItem", - "dynamodb:DescribeTable" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "ProjectTable", - "Arn" - ] - }, - { - "Ref": "AWS::NoValue" - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "ProjectIAMRoleDefaultPolicy08A73B99", - "Roles": [ - { - "Ref": "ProjectIAMRole928454B5" - } - ] - } - }, - "ProjectDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DynamoDBConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "TableName": { - "Ref": "ProjectTable" - } - }, - "Name": "ProjectTable", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "ProjectIAMRole928454B5", - "Arn" - ] - }, - "Type": "AMAZON_DYNAMODB" - }, - "DependsOn": [ - "ProjectIAMRole928454B5" - ] - }, - "QuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionED686A7E": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetProjectauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getProject.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetProjectpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getProject.postAuth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "QueryGetProjectDataResolverFnQueryGetProjectDataResolverFnAppSyncFunctionD6A0F260": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ProjectDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryGetProjectDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getProject.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getProject.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "ProjectDataSource" - ] - }, - "GetProjectResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "getProject", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionED686A7E", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryGetProjectDataResolverFnQueryGetProjectDataResolverFnAppSyncFunctionD6A0F260", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "ProjectTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - } - }, - "QueryListProjectsDataResolverFnQueryListProjectsDataResolverFnAppSyncFunction0812E3B9": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ProjectDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryListProjectsDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.listProjects.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.listProjects.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "ProjectDataSource" - ] - }, - "ListProjectResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "listProjects", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionED686A7E", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryListProjectsDataResolverFnQueryListProjectsDataResolverFnAppSyncFunction0812E3B9", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listProjects\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "ProjectTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - } - }, - "MutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction412D09B9": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateProjectinit0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createProject.init.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "MutationcreateProjectauth0FunctionMutationcreateProjectauth0FunctionAppSyncFunction4FB957D8": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateProjectauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createProject.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "MutationCreateProjectDataResolverFnMutationCreateProjectDataResolverFnAppSyncFunction729D2B08": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ProjectDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationCreateProjectDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createProject.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createProject.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "ProjectDataSource" - ] - }, - "CreateProjectResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "createProject", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction412D09B9", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationcreateProjectauth0FunctionMutationcreateProjectauth0FunctionAppSyncFunction4FB957D8", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationCreateProjectDataResolverFnMutationCreateProjectDataResolverFnAppSyncFunction729D2B08", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "ProjectTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "MutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunction20F7A53C": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateProjectinit0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateProject.init.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "MutationupdateProjectauth0FunctionMutationupdateProjectauth0FunctionAppSyncFunctionF9C2F303": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ProjectDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateProjectauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateProject.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateProject.auth.1.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "ProjectDataSource" - ] - }, - "MutationUpdateProjectDataResolverFnMutationUpdateProjectDataResolverFnAppSyncFunction9E902778": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ProjectDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationUpdateProjectDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateProject.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateProject.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "ProjectDataSource" - ] - }, - "UpdateProjectResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "updateProject", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunction20F7A53C", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationupdateProjectauth0FunctionMutationupdateProjectauth0FunctionAppSyncFunctionF9C2F303", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationUpdateProjectDataResolverFnMutationUpdateProjectDataResolverFnAppSyncFunction9E902778", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "ProjectTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "MutationdeleteProjectauth0FunctionMutationdeleteProjectauth0FunctionAppSyncFunction67C3BC9D": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ProjectDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeleteProjectauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteProject.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteProject.auth.1.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "ProjectDataSource" - ] - }, - "MutationDeleteProjectDataResolverFnMutationDeleteProjectDataResolverFnAppSyncFunctionC40E2160": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ProjectDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationDeleteProjectDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteProject.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteProject.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "ProjectDataSource" - ] - }, - "DeleteProjectResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "deleteProject", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationdeleteProjectauth0FunctionMutationdeleteProjectauth0FunctionAppSyncFunction67C3BC9D", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationDeleteProjectDataResolverFnMutationDeleteProjectDataResolverFnAppSyncFunctionC40E2160", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "ProjectTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "SubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction658E1FC9": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononCreateProjectauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Subscription.onCreateProject.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "SubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDABDBE4E": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnCreateProjectDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Subscription.onCreateProject.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Subscription.onCreateProject.res.vtl" - ] - ] - } - } - }, - "SubscriptiononCreateProjectResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onCreateProject", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction658E1FC9", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDABDBE4E", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - }, - "SubscriptiononUpdateProjectResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onUpdateProject", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction658E1FC9", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDABDBE4E", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - }, - "SubscriptiononDeleteProjectResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onDeleteProject", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction658E1FC9", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDABDBE4E", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - }, - "ProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunction7F1893B2": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "ProjectOwnerDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Project.owner.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Project.owner.res.vtl" - ] - ] - } - } - }, - "ProjectownerResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "owner", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "ProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunction7F1893B2", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Project\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"owner\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Project" - } - } - }, - "Outputs": { - "GetAttProjectTableStreamArn": { - "Description": "Your DynamoDB table StreamArn.", - "Value": { - "Fn::GetAtt": [ - "ProjectTable", - "StreamArn" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:ProjectTable:StreamArn" - ] - ] - } - } - }, - "GetAttProjectTableName": { - "Description": "Your DynamoDB table name.", - "Value": { - "Ref": "ProjectTable" - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:ProjectTable:Name" - ] - ] - } - } - }, - "GetAttProjectDataSourceName": { - "Description": "Your model DataSource name.", - "Value": { - "Fn::GetAtt": [ - "ProjectDataSource", - "Name" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:ProjectDataSource:Name" - ] - ] - } - } - }, - "transformerrootstackProjectQuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionA68979B1FunctionId": { - "Value": { - "Fn::GetAtt": [ - "QuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionED686A7E", - "FunctionId" - ] - } - }, - "transformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId": { - "Value": { - "Fn::GetAtt": [ - "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4", - "FunctionId" - ] - } - }, - "transformerrootstackProjectMutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction63376DADFunctionId": { - "Value": { - "Fn::GetAtt": [ - "MutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction412D09B9", - "FunctionId" - ] - } - }, - "transformerrootstackProjectMutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunctionF33DB6D0FunctionId": { - "Value": { - "Fn::GetAtt": [ - "MutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunction20F7A53C", - "FunctionId" - ] - } - }, - "transformerrootstackProjectSubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction5D3DF8A6FunctionId": { - "Value": { - "Fn::GetAtt": [ - "SubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction658E1FC9", - "FunctionId" - ] - } - }, - "transformerrootstackProjectSubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDFF26C0AFunctionId": { - "Value": { - "Fn::GetAtt": [ - "SubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDABDBE4E", - "FunctionId" - ] - } - }, - "transformerrootstackProjectProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunctionC730BF38FunctionId": { - "Value": { - "Fn::GetAtt": [ - "ProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunction7F1893B2", - "FunctionId" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-Todo-L6UYFFVPYZLW.description.txt b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-Todo-L6UYFFVPYZLW.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-Todo-L6UYFFVPYZLW.outputs.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-Todo-L6UYFFVPYZLW.outputs.json deleted file mode 100644 index d40ae6d378a..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-Todo-L6UYFFVPYZLW.outputs.json +++ /dev/null @@ -1,28 +0,0 @@ -[ - { - "OutputKey": "GetAttTodoTableName", - "OutputValue": "Todo-sgumi4ggubb4jdo6i54km7skka-main", - "Description": "Your DynamoDB table name.", - "ExportName": "sgumi4ggubb4jdo6i54km7skka:GetAtt:TodoTable:Name" - }, - { - "OutputKey": "GetAttTodoDataSourceName", - "OutputValue": "TodoTable", - "Description": "Your model DataSource name.", - "ExportName": "sgumi4ggubb4jdo6i54km7skka:GetAtt:TodoDataSource:Name" - }, - { - "OutputKey": "transformerrootstackTodoTodoTableC67E79C2Ref", - "OutputValue": "Todo-sgumi4ggubb4jdo6i54km7skka-main" - }, - { - "OutputKey": "GetAttTodoTableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Todo-sgumi4ggubb4jdo6i54km7skka-main/stream/2026-03-08T18:11:40.339", - "Description": "Your DynamoDB table StreamArn.", - "ExportName": "sgumi4ggubb4jdo6i54km7skka:GetAtt:TodoTable:StreamArn" - }, - { - "OutputKey": "transformerrootstackTodoTodoDataSourceBD713D7DName", - "OutputValue": "TodoTable" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-Todo-L6UYFFVPYZLW.parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-Todo-L6UYFFVPYZLW.parameters.json deleted file mode 100644 index b20c942610c..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-Todo-L6UYFFVPYZLW.parameters.json +++ /dev/null @@ -1,70 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", - "ParameterValue": "amplify-appsync-files/47418d5f9df78fb8fa9acaa5bd04a81ebc30971b" - }, - { - "ParameterKey": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectMutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunctionF33DB6D0FunctionId", - "ParameterValue": "4cuakqbq4beh3nfe7qqsc7d5fa" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", - "ParameterValue": "sgumi4ggubb4jdo6i54km7skka" - }, - { - "ParameterKey": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionA68979B1FunctionId", - "ParameterValue": "pob2sbrsyjfmlatlr7yvmrob6y" - }, - { - "ParameterKey": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDFF26C0AFunctionId", - "ParameterValue": "irumqdnhbva63h7pc6ma5mgd3e" - }, - { - "ParameterKey": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectMutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction63376DADFunctionId", - "ParameterValue": "g447b3vzrfcepmjspuwkmwaz2y" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "false" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunctionC730BF38FunctionId", - "ParameterValue": "74okgw54dnag5ipagl42klarvu" - }, - { - "ParameterKey": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId", - "ParameterValue": "5vfs42pikjealixgr3dwmxkx6y" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", - "ParameterValue": "amplify-backendonly-main-5e0fa-deployment" - }, - { - "ParameterKey": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction5D3DF8A6FunctionId", - "ParameterValue": "g2blr4qs2nerjo2d2uef6acwnm" - }, - { - "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", - "ParameterValue": "main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-Todo-L6UYFFVPYZLW.template.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-Todo-L6UYFFVPYZLW.template.json deleted file mode 100644 index 0984deede62..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U-Todo-L6UYFFVPYZLW.template.json +++ /dev/null @@ -1,1262 +0,0 @@ -{ - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "referencetotransformerrootstackenv10C5A902Ref": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Type": "String" - }, - "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionA68979B1FunctionId": { - "Type": "String" - }, - "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Type": "String" - }, - "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectMutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction63376DADFunctionId": { - "Type": "String" - }, - "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectMutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunctionF33DB6D0FunctionId": { - "Type": "String" - }, - "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction5D3DF8A6FunctionId": { - "Type": "String" - }, - "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDFF26C0AFunctionId": { - "Type": "String" - }, - "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunctionC730BF38FunctionId": { - "Type": "String" - } - }, - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - }, - "NONE" - ] - } - ] - }, - "ShouldUseServerSideEncryption": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "true" - ] - }, - "ShouldUsePayPerRequestBilling": { - "Fn::Equals": [ - { - "Ref": "DynamoDBBillingMode" - }, - "PAY_PER_REQUEST" - ] - }, - "ShouldUsePointInTimeRecovery": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "true" - ] - } - }, - "Resources": { - "TodoTable": { - "Type": "AWS::DynamoDB::Table", - "Properties": { - "AttributeDefinitions": [ - { - "AttributeName": "id", - "AttributeType": "S" - }, - { - "AttributeName": "projectTodosId", - "AttributeType": "S" - } - ], - "BillingMode": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - "PAY_PER_REQUEST", - { - "Ref": "AWS::NoValue" - } - ] - }, - "GlobalSecondaryIndexes": [ - { - "IndexName": "gsi-Project.todos", - "KeySchema": [ - { - "AttributeName": "projectTodosId", - "KeyType": "HASH" - } - ], - "Projection": { - "ProjectionType": "ALL" - }, - "ProvisionedThroughput": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - { - "Ref": "AWS::NoValue" - }, - { - "ReadCapacityUnits": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "WriteCapacityUnits": { - "Ref": "DynamoDBModelTableWriteIOPS" - } - } - ] - } - } - ], - "KeySchema": [ - { - "AttributeName": "id", - "KeyType": "HASH" - } - ], - "PointInTimeRecoverySpecification": { - "Fn::If": [ - "ShouldUsePointInTimeRecovery", - { - "PointInTimeRecoveryEnabled": true - }, - { - "Ref": "AWS::NoValue" - } - ] - }, - "ProvisionedThroughput": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - { - "Ref": "AWS::NoValue" - }, - { - "ReadCapacityUnits": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "WriteCapacityUnits": { - "Ref": "DynamoDBModelTableWriteIOPS" - } - } - ] - }, - "SSESpecification": { - "SSEEnabled": { - "Fn::If": [ - "ShouldUseServerSideEncryption", - true, - false - ] - } - }, - "StreamSpecification": { - "StreamViewType": "NEW_AND_OLD_IMAGES" - }, - "TableName": { - "Fn::Join": [ - "", - [ - "Todo-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete" - }, - "TodoIAMRole2DA8E66E": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:DeleteItem", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:Query", - "dynamodb:UpdateItem", - "dynamodb:ConditionCheckItem", - "dynamodb:DescribeTable", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", - { - "tablename": { - "Fn::Join": [ - "", - [ - "Todo-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - ] - }, - { - "Fn::Sub": [ - "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", - { - "tablename": { - "Fn::Join": [ - "", - [ - "Todo-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "DynamoDBAccess" - } - ], - "RoleName": { - "Fn::Join": [ - "", - [ - "TodoIAMRolecfd440-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - }, - "TodoIAMRoleDefaultPolicy7BBBF45B": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator", - "dynamodb:Query", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:ConditionCheckItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:UpdateItem", - "dynamodb:DeleteItem", - "dynamodb:DescribeTable" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "TodoTable", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "TodoTable", - "Arn" - ] - }, - "/index/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "TodoIAMRoleDefaultPolicy7BBBF45B", - "Roles": [ - { - "Ref": "TodoIAMRole2DA8E66E" - } - ] - } - }, - "TodoDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DynamoDBConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "TableName": { - "Ref": "TodoTable" - } - }, - "Name": "TodoTable", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "TodoIAMRole2DA8E66E", - "Arn" - ] - }, - "Type": "AMAZON_DYNAMODB" - }, - "DependsOn": [ - "TodoIAMRole2DA8E66E" - ] - }, - "QueryGetTodoDataResolverFnQueryGetTodoDataResolverFnAppSyncFunctionE2B57DAD": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "TodoDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryGetTodoDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getTodo.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getTodo.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "TodoDataSource" - ] - }, - "GetTodoResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "getTodo", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionA68979B1FunctionId" - }, - { - "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId" - }, - { - "Fn::GetAtt": [ - "QueryGetTodoDataResolverFnQueryGetTodoDataResolverFnAppSyncFunctionE2B57DAD", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "TodoTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - } - }, - "QueryListTodosDataResolverFnQueryListTodosDataResolverFnAppSyncFunctionF825FE47": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "TodoDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryListTodosDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.listTodos.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.listTodos.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "TodoDataSource" - ] - }, - "ListTodoResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "listTodos", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionA68979B1FunctionId" - }, - { - "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId" - }, - { - "Fn::GetAtt": [ - "QueryListTodosDataResolverFnQueryListTodosDataResolverFnAppSyncFunctionF825FE47", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listTodos\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "TodoTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - } - }, - "MutationcreateTodoauth0FunctionMutationcreateTodoauth0FunctionAppSyncFunction21817E36": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateTodoauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createTodo.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "MutationCreateTodoDataResolverFnMutationCreateTodoDataResolverFnAppSyncFunction900EC5CF": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "TodoDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationCreateTodoDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createTodo.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createTodo.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "TodoDataSource" - ] - }, - "CreateTodoResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "createTodo", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectMutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction63376DADFunctionId" - }, - { - "Fn::GetAtt": [ - "MutationcreateTodoauth0FunctionMutationcreateTodoauth0FunctionAppSyncFunction21817E36", - "FunctionId" - ] - }, - { - "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId" - }, - { - "Fn::GetAtt": [ - "MutationCreateTodoDataResolverFnMutationCreateTodoDataResolverFnAppSyncFunction900EC5CF", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "TodoTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "MutationupdateTodoauth0FunctionMutationupdateTodoauth0FunctionAppSyncFunction1E4A3112": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "TodoDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateTodoauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateTodo.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateTodo.auth.1.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "TodoDataSource" - ] - }, - "MutationUpdateTodoDataResolverFnMutationUpdateTodoDataResolverFnAppSyncFunctionBC238C49": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "TodoDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationUpdateTodoDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateTodo.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateTodo.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "TodoDataSource" - ] - }, - "UpdateTodoResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "updateTodo", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectMutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunctionF33DB6D0FunctionId" - }, - { - "Fn::GetAtt": [ - "MutationupdateTodoauth0FunctionMutationupdateTodoauth0FunctionAppSyncFunction1E4A3112", - "FunctionId" - ] - }, - { - "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId" - }, - { - "Fn::GetAtt": [ - "MutationUpdateTodoDataResolverFnMutationUpdateTodoDataResolverFnAppSyncFunctionBC238C49", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "TodoTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "MutationdeleteTodoauth0FunctionMutationdeleteTodoauth0FunctionAppSyncFunctionC82C218C": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "TodoDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeleteTodoauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteTodo.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteTodo.auth.1.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "TodoDataSource" - ] - }, - "MutationDeleteTodoDataResolverFnMutationDeleteTodoDataResolverFnAppSyncFunction3879153F": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "TodoDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationDeleteTodoDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteTodo.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteTodo.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "TodoDataSource" - ] - }, - "DeleteTodoResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "deleteTodo", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationdeleteTodoauth0FunctionMutationdeleteTodoauth0FunctionAppSyncFunctionC82C218C", - "FunctionId" - ] - }, - { - "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId" - }, - { - "Fn::GetAtt": [ - "MutationDeleteTodoDataResolverFnMutationDeleteTodoDataResolverFnAppSyncFunction3879153F", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "TodoTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "SubscriptiononCreateTodoResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onCreateTodo", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction5D3DF8A6FunctionId" - }, - { - "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId" - }, - { - "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDFF26C0AFunctionId" - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - }, - "SubscriptiononUpdateTodoResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onUpdateTodo", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction5D3DF8A6FunctionId" - }, - { - "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId" - }, - { - "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDFF26C0AFunctionId" - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - }, - "SubscriptiononDeleteTodoResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onDeleteTodo", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction5D3DF8A6FunctionId" - }, - { - "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId" - }, - { - "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDFF26C0AFunctionId" - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - }, - "TodoownerResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "owner", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunctionC730BF38FunctionId" - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Todo\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"owner\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Todo" - } - } - }, - "Outputs": { - "GetAttTodoTableStreamArn": { - "Description": "Your DynamoDB table StreamArn.", - "Value": { - "Fn::GetAtt": [ - "TodoTable", - "StreamArn" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:TodoTable:StreamArn" - ] - ] - } - } - }, - "GetAttTodoTableName": { - "Description": "Your DynamoDB table name.", - "Value": { - "Ref": "TodoTable" - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:TodoTable:Name" - ] - ] - } - } - }, - "GetAttTodoDataSourceName": { - "Description": "Your model DataSource name.", - "Value": { - "Fn::GetAtt": [ - "TodoDataSource", - "Name" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:TodoDataSource:Name" - ] - ] - } - } - }, - "transformerrootstackTodoTodoDataSourceBD713D7DName": { - "Value": { - "Fn::GetAtt": [ - "TodoDataSource", - "Name" - ] - } - }, - "transformerrootstackTodoTodoTableC67E79C2Ref": { - "Value": { - "Ref": "TodoTable" - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U.description.txt b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U.description.txt deleted file mode 100644 index f6589b95174..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"api-AppSync","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U.outputs.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U.outputs.json deleted file mode 100644 index e6fd6b40274..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U.outputs.json +++ /dev/null @@ -1,20 +0,0 @@ -[ - { - "OutputKey": "GraphQLAPIIdOutput", - "OutputValue": "sgumi4ggubb4jdo6i54km7skka", - "Description": "Your GraphQL API ID.", - "ExportName": "amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U:GraphQLApiId" - }, - { - "OutputKey": "GraphQLAPIEndpointOutput", - "OutputValue": "https://24agelrb6rgfrcvxhfwq53ge7a.appsync-api.us-east-1.amazonaws.com/graphql", - "Description": "Your GraphQL API endpoint.", - "ExportName": "amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U:GraphQLApiEndpoint" - }, - { - "OutputKey": "GraphQLAPIKeyOutput", - "OutputValue": "da2-fakeapikey00000000000000", - "Description": "Your GraphQL API ID.", - "ExportName": "amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U:GraphQLApiKey" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U.parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U.parameters.json deleted file mode 100644 index 48fa7663507..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U.parameters.json +++ /dev/null @@ -1,42 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "false" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "S3DeploymentBucket", - "ParameterValue": "amplify-backendonly-main-5e0fa-deployment" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "S3DeploymentRootKey", - "ParameterValue": "amplify-appsync-files/47418d5f9df78fb8fa9acaa5bd04a81ebc30971b" - }, - { - "ParameterKey": "AppSyncApiName", - "ParameterValue": "backendonly" - }, - { - "ParameterKey": "AuthCognitoUserPoolId", - "ParameterValue": "us-east-1_1rvCNKN5B" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U.template.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U.template.json deleted file mode 100644 index bd8db70c50b..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-apibackendonly-1MGXW8D4XK92U.template.json +++ /dev/null @@ -1,1052 +0,0 @@ -{ - "Parameters": { - "env": { - "Type": "String", - "Default": "NONE" - }, - "AppSyncApiName": { - "Type": "String", - "Default": "AppSyncSimpleTransform" - }, - "AuthCognitoUserPoolId": { - "Type": "String" - }, - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "S3DeploymentBucket": { - "Type": "String", - "Description": "An S3 Bucket name where assets are deployed" - }, - "S3DeploymentRootKey": { - "Type": "String", - "Description": "An S3 key relative to the S3DeploymentBucket that points to the root of the deployment directory." - } - }, - "Resources": { - "GraphQLAPI": { - "Type": "AWS::AppSync::GraphQLApi", - "Properties": { - "AdditionalAuthenticationProviders": [ - { - "AuthenticationType": "AMAZON_COGNITO_USER_POOLS", - "UserPoolConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "UserPoolId": { - "Ref": "AuthCognitoUserPoolId" - } - } - } - ], - "AuthenticationType": "API_KEY", - "Name": { - "Fn::Join": [ - "", - [ - { - "Ref": "AppSyncApiName" - }, - "-", - { - "Ref": "env" - } - ] - ] - } - } - }, - "GraphQLAPITransformerSchema3CB2AE18": { - "Type": "AWS::AppSync::GraphQLSchema", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "DefinitionS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/schema.graphql" - ] - ] - } - } - }, - "GraphQLAPIDefaultApiKey215A6DD7": { - "Type": "AWS::AppSync::ApiKey", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "Expires": 1773598197 - } - }, - "GraphQLAPINONEDS95A13CF0": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "Name": "NONE_DS", - "Type": "NONE" - } - }, - "Project": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "DynamoDBModelTableWriteIOPS": { - "Ref": "DynamoDBModelTableWriteIOPS" - }, - "DynamoDBBillingMode": { - "Ref": "DynamoDBBillingMode" - }, - "DynamoDBEnablePointInTimeRecovery": { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "DynamoDBEnableServerSideEncryption": { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "referencetotransformerrootstackenv10C5A902Ref": { - "Ref": "env" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Ref": "S3DeploymentBucket" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Ref": "S3DeploymentRootKey" - } - }, - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/stacks/Project.json" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "Todo": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "DynamoDBModelTableWriteIOPS": { - "Ref": "DynamoDBModelTableWriteIOPS" - }, - "DynamoDBBillingMode": { - "Ref": "DynamoDBBillingMode" - }, - "DynamoDBEnablePointInTimeRecovery": { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "DynamoDBEnableServerSideEncryption": { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "referencetotransformerrootstackenv10C5A902Ref": { - "Ref": "env" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Ref": "S3DeploymentBucket" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Ref": "S3DeploymentRootKey" - }, - "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionA68979B1FunctionId": { - "Fn::GetAtt": [ - "Project", - "Outputs.transformerrootstackProjectQuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionA68979B1FunctionId" - ] - }, - "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId": { - "Fn::GetAtt": [ - "Project", - "Outputs.transformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId" - ] - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectMutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction63376DADFunctionId": { - "Fn::GetAtt": [ - "Project", - "Outputs.transformerrootstackProjectMutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction63376DADFunctionId" - ] - }, - "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectMutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunctionF33DB6D0FunctionId": { - "Fn::GetAtt": [ - "Project", - "Outputs.transformerrootstackProjectMutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunctionF33DB6D0FunctionId" - ] - }, - "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction5D3DF8A6FunctionId": { - "Fn::GetAtt": [ - "Project", - "Outputs.transformerrootstackProjectSubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction5D3DF8A6FunctionId" - ] - }, - "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDFF26C0AFunctionId": { - "Fn::GetAtt": [ - "Project", - "Outputs.transformerrootstackProjectSubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDFF26C0AFunctionId" - ] - }, - "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunctionC730BF38FunctionId": { - "Fn::GetAtt": [ - "Project", - "Outputs.transformerrootstackProjectProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunctionC730BF38FunctionId" - ] - } - }, - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/stacks/Todo.json" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "FunctionDirectiveStack": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetotransformerrootstackenv10C5A902Ref": { - "Ref": "env" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Ref": "S3DeploymentBucket" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Ref": "S3DeploymentRootKey" - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - } - }, - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/stacks/FunctionDirectiveStack.json" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "ConnectionStack": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Ref": "S3DeploymentBucket" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Ref": "S3DeploymentRootKey" - }, - "referencetotransformerrootstackTodoNestedStackTodoNestedStackResource9AC126A3OutputstransformerrootstackTodoTodoDataSourceBD713D7DName": { - "Fn::GetAtt": [ - "Todo", - "Outputs.transformerrootstackTodoTodoDataSourceBD713D7DName" - ] - }, - "referencetotransformerrootstackTodoNestedStackTodoNestedStackResource9AC126A3OutputstransformerrootstackTodoTodoTableC67E79C2Ref": { - "Fn::GetAtt": [ - "Todo", - "Outputs.transformerrootstackTodoTodoTableC67E79C2Ref" - ] - } - }, - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/stacks/ConnectionStack.json" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18", - "Todo" - ] - }, - "QuoteResponseMessageDataResolverFnQuoteResponseMessageDataResolverFnAppSyncFunctionC82EE8AA": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "DataSourceName": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QuoteResponseMessageDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/resolvers/QuoteResponse.message.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/resolvers/QuoteResponse.message.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "QuoteResponsemessageResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "FieldName": "message", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuoteResponseMessageDataResolverFnQuoteResponseMessageDataResolverFnAppSyncFunctionC82EE8AA", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"QuoteResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"message\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "QuoteResponse" - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "QuoteResponseQuoteDataResolverFnQuoteResponseQuoteDataResolverFnAppSyncFunction83E6C036": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "DataSourceName": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QuoteResponseQuoteDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/resolvers/QuoteResponse.quote.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/resolvers/QuoteResponse.quote.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "QuoteResponsequoteResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "FieldName": "quote", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuoteResponseQuoteDataResolverFnQuoteResponseQuoteDataResolverFnAppSyncFunction83E6C036", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"QuoteResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"quote\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "QuoteResponse" - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "QuoteResponseAuthorDataResolverFnQuoteResponseAuthorDataResolverFnAppSyncFunction8D32A5C7": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "DataSourceName": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QuoteResponseAuthorDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/resolvers/QuoteResponse.author.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/resolvers/QuoteResponse.author.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "QuoteResponseauthorResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "FieldName": "author", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuoteResponseAuthorDataResolverFnQuoteResponseAuthorDataResolverFnAppSyncFunction8D32A5C7", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"QuoteResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"author\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "QuoteResponse" - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "QuoteResponseTimestampDataResolverFnQuoteResponseTimestampDataResolverFnAppSyncFunction65DFB1C3": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "DataSourceName": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QuoteResponseTimestampDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/resolvers/QuoteResponse.timestamp.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/resolvers/QuoteResponse.timestamp.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "QuoteResponsetimestampResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "FieldName": "timestamp", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuoteResponseTimestampDataResolverFnQuoteResponseTimestampDataResolverFnAppSyncFunction65DFB1C3", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"QuoteResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"timestamp\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "QuoteResponse" - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "QuoteResponseTotalQuotesDataResolverFnQuoteResponseTotalQuotesDataResolverFnAppSyncFunctionD1B9B9A8": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "DataSourceName": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QuoteResponseTotalQuotesDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/resolvers/QuoteResponse.totalQuotes.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/resolvers/QuoteResponse.totalQuotes.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "QuoteResponsetotalQuotesResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "FieldName": "totalQuotes", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuoteResponseTotalQuotesDataResolverFnQuoteResponseTotalQuotesDataResolverFnAppSyncFunctionD1B9B9A8", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"QuoteResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"totalQuotes\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "QuoteResponse" - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "CustomResourcesjson": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "AppSyncApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "AppSyncApiName": { - "Ref": "AppSyncApiName" - }, - "env": { - "Ref": "env" - }, - "S3DeploymentBucket": { - "Ref": "S3DeploymentBucket" - }, - "S3DeploymentRootKey": { - "Ref": "S3DeploymentRootKey" - } - }, - "TemplateURL": { - "Fn::Join": [ - "/", - [ - "https://s3.amazonaws.com", - { - "Ref": "S3DeploymentBucket" - }, - { - "Ref": "S3DeploymentRootKey" - }, - "stacks", - "CustomResources.json" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPI", - "GraphQLAPITransformerSchema3CB2AE18", - "Project", - "Todo", - "FunctionDirectiveStack", - "ConnectionStack" - ] - } - }, - "Outputs": { - "GraphQLAPIKeyOutput": { - "Description": "Your GraphQL API ID.", - "Value": { - "Fn::GetAtt": [ - "GraphQLAPIDefaultApiKey215A6DD7", - "ApiKey" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "AWS::StackName" - }, - "GraphQLApiKey" - ] - ] - } - } - }, - "GraphQLAPIIdOutput": { - "Description": "Your GraphQL API ID.", - "Value": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "AWS::StackName" - }, - "GraphQLApiId" - ] - ] - } - } - }, - "GraphQLAPIEndpointOutput": { - "Description": "Your GraphQL API endpoint.", - "Value": { - "Fn::GetAtt": [ - "GraphQLAPI", - "GraphQLUrl" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "AWS::StackName" - }, - "GraphQLApiEndpoint" - ] - ] - } - } - } - }, - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.description.txt b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.description.txt deleted file mode 100644 index 28ba956271c..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"auth-Cognito","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.outputs.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.outputs.json deleted file mode 100644 index b25162b344a..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.outputs.json +++ /dev/null @@ -1,35 +0,0 @@ -[ - { - "OutputKey": "UserPoolId", - "OutputValue": "us-east-1_1rvCNKN5B", - "Description": "Id for the user pool" - }, - { - "OutputKey": "AppClientIDWeb", - "OutputValue": "2udsup370on7n0b1gdf8hpijc6", - "Description": "The user pool app client id for web" - }, - { - "OutputKey": "AppClientID", - "OutputValue": "773c808k3864f2k0sqk4j71gsj", - "Description": "The user pool app client id" - }, - { - "OutputKey": "IdentityPoolId", - "OutputValue": "us-east-1:3d2fd52c-2247-42b8-8773-3102fce814b8", - "Description": "Id for the identity pool" - }, - { - "OutputKey": "UserPoolArn", - "OutputValue": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1rvCNKN5B", - "Description": "Arn for the user pool" - }, - { - "OutputKey": "IdentityPoolName", - "OutputValue": "backendonlyf8c4c57b_identitypool_f8c4c57b__main" - }, - { - "OutputKey": "UserPoolName", - "OutputValue": "backendonlyf8c4c57b_userpool_f8c4c57b" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.parameters.json deleted file mode 100644 index 8838fdc3782..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.parameters.json +++ /dev/null @@ -1,146 +0,0 @@ -[ - { - "ParameterKey": "usernameAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "authRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-backendonly-main-5e0fa-authRole" - }, - { - "ParameterKey": "autoVerifiedAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "allowUnauthenticatedIdentities", - "ParameterValue": "true" - }, - { - "ParameterKey": "smsVerificationMessage", - "ParameterValue": "Your verification code is {####}" - }, - { - "ParameterKey": "userpoolClientReadAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "breakCircularDependency", - "ParameterValue": "true" - }, - { - "ParameterKey": "mfaTypes", - "ParameterValue": "SMS Text Message" - }, - { - "ParameterKey": "emailVerificationSubject", - "ParameterValue": "Your verification code" - }, - { - "ParameterKey": "sharedId", - "ParameterValue": "f8c4c57b" - }, - { - "ParameterKey": "useDefault", - "ParameterValue": "default" - }, - { - "ParameterKey": "userpoolClientGenerateSecret", - "ParameterValue": "false" - }, - { - "ParameterKey": "mfaConfiguration", - "ParameterValue": "OFF" - }, - { - "ParameterKey": "identityPoolName", - "ParameterValue": "backendonlyf8c4c57b_identitypool_f8c4c57b" - }, - { - "ParameterKey": "userPoolGroupList", - "ParameterValue": "" - }, - { - "ParameterKey": "authSelections", - "ParameterValue": "identityPoolAndUserPool" - }, - { - "ParameterKey": "resourceNameTruncated", - "ParameterValue": "backenf8c4c57b" - }, - { - "ParameterKey": "smsAuthenticationMessage", - "ParameterValue": "Your authentication code is {####}" - }, - { - "ParameterKey": "passwordPolicyMinLength", - "ParameterValue": "8" - }, - { - "ParameterKey": "userPoolName", - "ParameterValue": "backendonlyf8c4c57b_userpool_f8c4c57b" - }, - { - "ParameterKey": "userpoolClientWriteAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "dependsOn", - "ParameterValue": "" - }, - { - "ParameterKey": "useEnabledMfas", - "ParameterValue": "true" - }, - { - "ParameterKey": "usernameCaseSensitive", - "ParameterValue": "false" - }, - { - "ParameterKey": "resourceName", - "ParameterValue": "backendonlyf8c4c57b" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "serviceName", - "ParameterValue": "Cognito" - }, - { - "ParameterKey": "emailVerificationMessage", - "ParameterValue": "Your verification code is {####}" - }, - { - "ParameterKey": "userpoolClientRefreshTokenValidity", - "ParameterValue": "30" - }, - { - "ParameterKey": "userpoolClientSetAttributes", - "ParameterValue": "false" - }, - { - "ParameterKey": "unauthRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-backendonly-main-5e0fa-unauthRole" - }, - { - "ParameterKey": "requiredAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "passwordPolicyCharacters", - "ParameterValue": "" - }, - { - "ParameterKey": "aliasAttributes", - "ParameterValue": "" - }, - { - "ParameterKey": "userpoolClientLambdaRole", - "ParameterValue": "backenf8c4c57b_userpoolclient_lambda_role" - }, - { - "ParameterKey": "defaultPasswordPolicy", - "ParameterValue": "false" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.template.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.template.json deleted file mode 100644 index e4e894afdcc..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-authbackendonlyf8c4c57b-SC9H4E2DZU7A.template.json +++ /dev/null @@ -1,413 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "env": { - "Type": "String" - }, - "identityPoolName": { - "Type": "String" - }, - "allowUnauthenticatedIdentities": { - "Type": "String" - }, - "resourceNameTruncated": { - "Type": "String" - }, - "userPoolName": { - "Type": "String" - }, - "autoVerifiedAttributes": { - "Type": "CommaDelimitedList" - }, - "mfaConfiguration": { - "Type": "String" - }, - "mfaTypes": { - "Type": "CommaDelimitedList" - }, - "smsAuthenticationMessage": { - "Type": "String" - }, - "smsVerificationMessage": { - "Type": "String" - }, - "emailVerificationSubject": { - "Type": "String" - }, - "emailVerificationMessage": { - "Type": "String" - }, - "defaultPasswordPolicy": { - "Type": "String" - }, - "passwordPolicyMinLength": { - "Type": "String" - }, - "passwordPolicyCharacters": { - "Type": "CommaDelimitedList" - }, - "requiredAttributes": { - "Type": "CommaDelimitedList" - }, - "aliasAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientGenerateSecret": { - "Type": "String" - }, - "userpoolClientRefreshTokenValidity": { - "Type": "String" - }, - "userpoolClientWriteAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientReadAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientLambdaRole": { - "Type": "String" - }, - "userpoolClientSetAttributes": { - "Type": "String" - }, - "sharedId": { - "Type": "String" - }, - "resourceName": { - "Type": "String" - }, - "authSelections": { - "Type": "String" - }, - "useDefault": { - "Type": "String" - }, - "usernameAttributes": { - "Type": "CommaDelimitedList" - }, - "userPoolGroupList": { - "Type": "CommaDelimitedList" - }, - "serviceName": { - "Type": "String" - }, - "usernameCaseSensitive": { - "Type": "String" - }, - "useEnabledMfas": { - "Type": "String" - }, - "authRoleArn": { - "Type": "String" - }, - "unauthRoleArn": { - "Type": "String" - }, - "breakCircularDependency": { - "Type": "String" - }, - "dependsOn": { - "Type": "CommaDelimitedList" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - }, - "Resources": { - "UserPool": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": { - "Ref": "emailVerificationMessage" - }, - "EmailVerificationSubject": { - "Ref": "emailVerificationSubject" - }, - "MfaConfiguration": { - "Ref": "mfaConfiguration" - }, - "Policies": { - "PasswordPolicy": { - "MinimumLength": { - "Ref": "passwordPolicyMinLength" - }, - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "userPoolName" - }, - { - "Fn::Join": [ - "", - [ - { - "Ref": "userPoolName" - }, - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "UsernameAttributes": { - "Ref": "usernameAttributes" - }, - "UsernameConfiguration": { - "CaseSensitive": false - } - } - }, - "UserPoolClientWeb": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "backenf8c4c57b_app_clientWeb", - "RefreshTokenValidity": { - "Ref": "userpoolClientRefreshTokenValidity" - }, - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": { - "Ref": "UserPool" - } - }, - "DependsOn": [ - "UserPool" - ] - }, - "UserPoolClient": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "backenf8c4c57b_app_client", - "GenerateSecret": { - "Ref": "userpoolClientGenerateSecret" - }, - "RefreshTokenValidity": { - "Ref": "userpoolClientRefreshTokenValidity" - }, - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": { - "Ref": "UserPool" - } - }, - "DependsOn": [ - "UserPool" - ] - }, - "UserPoolClientRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - }, - "Action": "sts:AssumeRole" - } - ] - }, - "RoleName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "userpoolClientLambdaRole" - }, - { - "Fn::Join": [ - "", - [ - "upClientLambdaRolef8c4c57b", - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - { - "Ref": "AWS::StackName" - } - ] - } - ] - }, - "-", - { - "Ref": "env" - } - ] - ] - } - ] - } - } - }, - "IdentityPool": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": { - "Ref": "allowUnauthenticatedIdentities" - }, - "CognitoIdentityProviders": [ - { - "ClientId": { - "Ref": "UserPoolClient" - }, - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": { - "Ref": "UserPool" - } - } - ] - } - }, - { - "ClientId": { - "Ref": "UserPoolClientWeb" - }, - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": { - "Ref": "UserPool" - } - } - ] - } - } - ], - "IdentityPoolName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "backendonlyf8c4c57b_identitypool_f8c4c57b", - { - "Fn::Join": [ - "", - [ - "backendonlyf8c4c57b_identitypool_f8c4c57b__", - { - "Ref": "env" - } - ] - ] - } - ] - } - } - }, - "IdentityPoolRoleMap": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": { - "Ref": "IdentityPool" - }, - "Roles": { - "unauthenticated": { - "Ref": "unauthRoleArn" - }, - "authenticated": { - "Ref": "authRoleArn" - } - } - }, - "DependsOn": [ - "IdentityPool" - ] - } - }, - "Outputs": { - "IdentityPoolId": { - "Description": "Id for the identity pool", - "Value": { - "Ref": "IdentityPool" - } - }, - "IdentityPoolName": { - "Value": { - "Fn::GetAtt": [ - "IdentityPool", - "Name" - ] - } - }, - "UserPoolId": { - "Description": "Id for the user pool", - "Value": { - "Ref": "UserPool" - } - }, - "UserPoolArn": { - "Description": "Arn for the user pool", - "Value": { - "Fn::GetAtt": [ - "UserPool", - "Arn" - ] - } - }, - "UserPoolName": { - "Value": { - "Ref": "userPoolName" - } - }, - "AppClientIDWeb": { - "Description": "The user pool app client id for web", - "Value": { - "Ref": "UserPoolClientWeb" - } - }, - "AppClientID": { - "Description": "The user pool app client id", - "Value": { - "Ref": "UserPoolClient" - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-functionquotegeneratorbe-F006XUST1RWW.description.txt b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-functionquotegeneratorbe-F006XUST1RWW.description.txt deleted file mode 100644 index 445081e4df1..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-functionquotegeneratorbe-F006XUST1RWW.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"function-Lambda","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-functionquotegeneratorbe-F006XUST1RWW.outputs.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-functionquotegeneratorbe-F006XUST1RWW.outputs.json deleted file mode 100644 index 3404be806df..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-functionquotegeneratorbe-F006XUST1RWW.outputs.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "OutputKey": "LambdaExecutionRoleArn", - "OutputValue": "arn:aws:iam::123456789012:role/backendonlyLambdaRole8a0d8e62-main" - }, - { - "OutputKey": "Region", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "Arn", - "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:quotegeneratorbe-main" - }, - { - "OutputKey": "Name", - "OutputValue": "quotegeneratorbe-main" - }, - { - "OutputKey": "LambdaExecutionRole", - "OutputValue": "backendonlyLambdaRole8a0d8e62-main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-functionquotegeneratorbe-F006XUST1RWW.parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-functionquotegeneratorbe-F006XUST1RWW.parameters.json deleted file mode 100644 index 13c14ea0a0a..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-functionquotegeneratorbe-F006XUST1RWW.parameters.json +++ /dev/null @@ -1,18 +0,0 @@ -[ - { - "ParameterKey": "CloudWatchRule", - "ParameterValue": "NONE" - }, - { - "ParameterKey": "s3Key", - "ParameterValue": "amplify-builds/quotegeneratorbe-513654756a51615a5779-build.zip" - }, - { - "ParameterKey": "deploymentBucketName", - "ParameterValue": "amplify-backendonly-main-5e0fa-deployment" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-functionquotegeneratorbe-F006XUST1RWW.template.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-functionquotegeneratorbe-F006XUST1RWW.template.json deleted file mode 100644 index 60d607e5e8b..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-functionquotegeneratorbe-F006XUST1RWW.template.json +++ /dev/null @@ -1,202 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "Parameters": { - "CloudWatchRule": { - "Type": "String", - "Default": "NONE", - "Description": " Schedule Expression" - }, - "deploymentBucketName": { - "Type": "String" - }, - "env": { - "Type": "String" - }, - "s3Key": { - "Type": "String" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - }, - "Resources": { - "LambdaFunction": { - "Type": "AWS::Lambda::Function", - "Metadata": { - "aws:asset:path": "./src", - "aws:asset:property": "Code" - }, - "Properties": { - "Code": { - "S3Bucket": { - "Ref": "deploymentBucketName" - }, - "S3Key": { - "Ref": "s3Key" - } - }, - "Handler": "index.handler", - "FunctionName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "quotegeneratorbe", - { - "Fn::Join": [ - "", - [ - "quotegeneratorbe", - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "Environment": { - "Variables": { - "ENV": { - "Ref": "env" - }, - "REGION": { - "Ref": "AWS::Region" - } - } - }, - "Role": { - "Fn::GetAtt": [ - "LambdaExecutionRole", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Layers": [], - "Timeout": 25 - } - }, - "LambdaExecutionRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "RoleName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "backendonlyLambdaRole8a0d8e62", - { - "Fn::Join": [ - "", - [ - "backendonlyLambdaRole8a0d8e62", - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": [ - "lambda.amazonaws.com" - ] - }, - "Action": [ - "sts:AssumeRole" - ] - } - ] - } - } - }, - "lambdaexecutionpolicy": { - "DependsOn": [ - "LambdaExecutionRole" - ], - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyName": "lambda-execution-policy", - "Roles": [ - { - "Ref": "LambdaExecutionRole" - } - ], - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "logs:CreateLogGroup", - "logs:CreateLogStream", - "logs:PutLogEvents" - ], - "Resource": { - "Fn::Sub": [ - "arn:aws:logs:${region}:${account}:log-group:/aws/lambda/${lambda}:log-stream:*", - { - "region": { - "Ref": "AWS::Region" - }, - "account": { - "Ref": "AWS::AccountId" - }, - "lambda": { - "Ref": "LambdaFunction" - } - } - ] - } - } - ] - } - } - } - }, - "Outputs": { - "Name": { - "Value": { - "Ref": "LambdaFunction" - } - }, - "Arn": { - "Value": { - "Fn::GetAtt": [ - "LambdaFunction", - "Arn" - ] - } - }, - "Region": { - "Value": { - "Ref": "AWS::Region" - } - }, - "LambdaExecutionRole": { - "Value": { - "Ref": "LambdaExecutionRole" - } - }, - "LambdaExecutionRoleArn": { - "Value": { - "Fn::GetAtt": [ - "LambdaExecutionRole", - "Arn" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.description.txt b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.description.txt deleted file mode 100644 index f0c7a6514ea..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"storage-S3","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.outputs.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.outputs.json deleted file mode 100644 index ce5bb995f5e..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.outputs.json +++ /dev/null @@ -1,11 +0,0 @@ -[ - { - "OutputKey": "BucketName", - "OutputValue": "backendonlycb1a13ab81664ecaa7d015068ab2d0165e0fa-main", - "Description": "Bucket name for the S3 bucket" - }, - { - "OutputKey": "Region", - "OutputValue": "us-east-1" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.parameters.json deleted file mode 100644 index 9575dd3277d..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.parameters.json +++ /dev/null @@ -1,86 +0,0 @@ -[ - { - "ParameterKey": "s3PermissionsGuestPublic", - "ParameterValue": "s3:GetObject" - }, - { - "ParameterKey": "bucketName", - "ParameterValue": "backendonlycb1a13ab81664ecaa7d015068ab2d016" - }, - { - "ParameterKey": "s3PublicPolicy", - "ParameterValue": "Public_policy_c31471c3" - }, - { - "ParameterKey": "AuthenticatedAllowList", - "ParameterValue": "ALLOW" - }, - { - "ParameterKey": "unauthRoleName", - "ParameterValue": "amplify-backendonly-main-5e0fa-unauthRole" - }, - { - "ParameterKey": "s3PrivatePolicy", - "ParameterValue": "Private_policy_c31471c3" - }, - { - "ParameterKey": "selectedGuestPermissions", - "ParameterValue": "s3:GetObject,s3:ListBucket" - }, - { - "ParameterKey": "s3PermissionsAuthenticatedPublic", - "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" - }, - { - "ParameterKey": "s3PermissionsAuthenticatedPrivate", - "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" - }, - { - "ParameterKey": "s3PermissionsAuthenticatedUploads", - "ParameterValue": "s3:PutObject" - }, - { - "ParameterKey": "s3UploadsPolicy", - "ParameterValue": "Uploads_policy_c31471c3" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "unauthPolicyName", - "ParameterValue": "s3_amplify_c31471c3" - }, - { - "ParameterKey": "authRoleName", - "ParameterValue": "amplify-backendonly-main-5e0fa-authRole" - }, - { - "ParameterKey": "GuestAllowList", - "ParameterValue": "ALLOW" - }, - { - "ParameterKey": "authPolicyName", - "ParameterValue": "s3_amplify_c31471c3" - }, - { - "ParameterKey": "s3ProtectedPolicy", - "ParameterValue": "Protected_policy_c31471c3" - }, - { - "ParameterKey": "s3PermissionsAuthenticatedProtected", - "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" - }, - { - "ParameterKey": "s3PermissionsGuestUploads", - "ParameterValue": "DISALLOW" - }, - { - "ParameterKey": "s3ReadPolicy", - "ParameterValue": "read_policy_c31471c3" - }, - { - "ParameterKey": "selectedAuthenticatedPermissions", - "ParameterValue": "s3:PutObject,s3:GetObject,s3:ListBucket,s3:DeleteObject" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.template.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.template.json deleted file mode 100644 index 8bac1dbfa69..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa-storages3c31471c3-MQFWTKK6ETYR.template.json +++ /dev/null @@ -1,646 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-S3\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "env": { - "Type": "String" - }, - "bucketName": { - "Type": "String" - }, - "authRoleName": { - "Type": "String" - }, - "unauthRoleName": { - "Type": "String" - }, - "authPolicyName": { - "Type": "String" - }, - "unauthPolicyName": { - "Type": "String" - }, - "s3PublicPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3PrivatePolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3ProtectedPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3UploadsPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3ReadPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3PermissionsAuthenticatedPublic": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedProtected": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedPrivate": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedUploads": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsGuestPublic": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsGuestUploads": { - "Type": "String", - "Default": "DISALLOW" - }, - "AuthenticatedAllowList": { - "Type": "String", - "Default": "DISALLOW" - }, - "GuestAllowList": { - "Type": "String", - "Default": "DISALLOW" - }, - "selectedGuestPermissions": { - "Type": "CommaDelimitedList", - "Default": "NONE" - }, - "selectedAuthenticatedPermissions": { - "Type": "CommaDelimitedList", - "Default": "NONE" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - }, - "CreateAuthPublic": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "s3PermissionsAuthenticatedPublic" - }, - "DISALLOW" - ] - } - ] - }, - "CreateAuthProtected": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "s3PermissionsAuthenticatedProtected" - }, - "DISALLOW" - ] - } - ] - }, - "CreateAuthPrivate": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "s3PermissionsAuthenticatedPrivate" - }, - "DISALLOW" - ] - } - ] - }, - "CreateAuthUploads": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "s3PermissionsAuthenticatedUploads" - }, - "DISALLOW" - ] - } - ] - }, - "CreateGuestPublic": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "s3PermissionsGuestPublic" - }, - "DISALLOW" - ] - } - ] - }, - "CreateGuestUploads": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "s3PermissionsGuestUploads" - }, - "DISALLOW" - ] - } - ] - }, - "AuthReadAndList": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "AuthenticatedAllowList" - }, - "DISALLOW" - ] - } - ] - }, - "GuestReadAndList": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "GuestAllowList" - }, - "DISALLOW" - ] - } - ] - } - }, - "Outputs": { - "BucketName": { - "Description": "Bucket name for the S3 bucket", - "Value": { - "Ref": "S3Bucket" - } - }, - "Region": { - "Value": { - "Ref": "AWS::Region" - } - } - }, - "Resources": { - "S3Bucket": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "bucketName" - }, - { - "Fn::Join": [ - "", - [ - { - "Ref": "bucketName" - }, - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - { - "Ref": "AWS::StackName" - } - ] - } - ] - }, - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "Id": "S3CORSRuleId1", - "MaxAge": 3000 - } - ] - }, - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - } - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain" - }, - "S3AuthPublicPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - { - "Ref": "s3PermissionsAuthenticatedPublic" - } - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, - "/public/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": { - "Ref": "s3PublicPolicy" - }, - "Roles": [ - { - "Ref": "authRoleName" - } - ] - }, - "DependsOn": [ - "S3Bucket" - ], - "Condition": "CreateAuthPublic" - }, - "S3AuthProtectedPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - { - "Ref": "s3PermissionsAuthenticatedProtected" - } - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, - "/protected/${cognito-identity.amazonaws.com:sub}/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": { - "Ref": "s3ProtectedPolicy" - }, - "Roles": [ - { - "Ref": "authRoleName" - } - ] - }, - "DependsOn": [ - "S3Bucket" - ], - "Condition": "CreateAuthProtected" - }, - "S3AuthPrivatePolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - { - "Ref": "s3PermissionsAuthenticatedPrivate" - } - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, - "/private/${cognito-identity.amazonaws.com:sub}/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": { - "Ref": "s3PrivatePolicy" - }, - "Roles": [ - { - "Ref": "authRoleName" - } - ] - }, - "DependsOn": [ - "S3Bucket" - ], - "Condition": "CreateAuthPrivate" - }, - "S3AuthUploadPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - { - "Ref": "s3PermissionsAuthenticatedUploads" - } - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, - "/uploads/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": { - "Ref": "s3UploadsPolicy" - }, - "Roles": [ - { - "Ref": "authRoleName" - } - ] - }, - "DependsOn": [ - "S3Bucket" - ], - "Condition": "CreateAuthUploads" - }, - "S3GuestPublicPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - { - "Ref": "s3PermissionsGuestPublic" - } - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, - "/public/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": { - "Ref": "s3PublicPolicy" - }, - "Roles": [ - { - "Ref": "unauthRoleName" - } - ] - }, - "DependsOn": [ - "S3Bucket" - ], - "Condition": "CreateGuestPublic" - }, - "S3AuthReadPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, - "/protected/*" - ] - ] - } - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/", - "public/*", - "protected/", - "protected/*", - "private/${cognito-identity.amazonaws.com:sub}/", - "private/${cognito-identity.amazonaws.com:sub}/*" - ] - } - }, - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - } - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": { - "Ref": "s3ReadPolicy" - }, - "Roles": [ - { - "Ref": "authRoleName" - } - ] - }, - "DependsOn": [ - "S3Bucket" - ], - "Condition": "AuthReadAndList" - }, - "S3GuestReadPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, - "/protected/*" - ] - ] - } - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/", - "public/*", - "protected/", - "protected/*" - ] - } - }, - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - } - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": { - "Ref": "s3ReadPolicy" - }, - "Roles": [ - { - "Ref": "unauthRoleName" - } - ] - }, - "DependsOn": [ - "S3Bucket" - ], - "Condition": "GuestReadAndList" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa.description.txt b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa.description.txt deleted file mode 100644 index daf66c0bc85..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa.description.txt +++ /dev/null @@ -1 +0,0 @@ -Root Stack for AWS Amplify CLI \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa.outputs.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa.outputs.json deleted file mode 100644 index 7fd8f8b6fed..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa.outputs.json +++ /dev/null @@ -1,42 +0,0 @@ -[ - { - "OutputKey": "AuthRoleName", - "OutputValue": "amplify-backendonly-main-5e0fa-authRole" - }, - { - "OutputKey": "UnauthRoleArn", - "OutputValue": "arn:aws:iam::123456789012:role/amplify-backendonly-main-5e0fa-unauthRole" - }, - { - "OutputKey": "AuthRoleArn", - "OutputValue": "arn:aws:iam::123456789012:role/amplify-backendonly-main-5e0fa-authRole" - }, - { - "OutputKey": "Region", - "OutputValue": "us-east-1", - "Description": "CloudFormation provider root stack Region", - "ExportName": "amplify-backendonly-main-5e0fa-Region" - }, - { - "OutputKey": "DeploymentBucketName", - "OutputValue": "amplify-backendonly-main-5e0fa-deployment", - "Description": "CloudFormation provider root stack deployment bucket name", - "ExportName": "amplify-backendonly-main-5e0fa-DeploymentBucketName" - }, - { - "OutputKey": "UnauthRoleName", - "OutputValue": "amplify-backendonly-main-5e0fa-unauthRole" - }, - { - "OutputKey": "StackName", - "OutputValue": "amplify-backendonly-main-5e0fa", - "Description": "CloudFormation provider root stack ID", - "ExportName": "amplify-backendonly-main-5e0fa-StackName" - }, - { - "OutputKey": "StackId", - "OutputValue": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-backendonly-main-5e0fa/6563d5d0-1b19-11f1-9ce2-0e0bf294f4d9", - "Description": "CloudFormation provider root stack name", - "ExportName": "amplify-backendonly-main-5e0fa-StackId" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa.parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa.parameters.json deleted file mode 100644 index 077dd91824e..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa.parameters.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "ParameterKey": "AuthRoleName", - "ParameterValue": "amplify-backendonly-main-5e0fa-authRole" - }, - { - "ParameterKey": "DeploymentBucketName", - "ParameterValue": "amplify-backendonly-main-5e0fa-deployment" - }, - { - "ParameterKey": "UnauthRoleName", - "ParameterValue": "amplify-backendonly-main-5e0fa-unauthRole" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa.template.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa.template.json deleted file mode 100644 index f1c0adb61bb..00000000000 --- a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-main-5e0fa.template.json +++ /dev/null @@ -1,524 +0,0 @@ -{ - "Description": "Root Stack for AWS Amplify CLI", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "DeploymentBucketName": { - "Type": "String", - "Default": "DeploymentBucket", - "Description": "Name of the common deployment bucket provided by the parent stack" - }, - "AuthRoleName": { - "Type": "String", - "Default": "AuthRoleName", - "Description": "Name of the common deployment bucket provided by the parent stack" - }, - "UnauthRoleName": { - "Type": "String", - "Default": "UnAuthRoleName", - "Description": "Name of the common deployment bucket provided by the parent stack" - } - }, - "Outputs": { - "Region": { - "Description": "CloudFormation provider root stack Region", - "Value": { - "Ref": "AWS::Region" - }, - "Export": { - "Name": { - "Fn::Sub": "${AWS::StackName}-Region" - } - } - }, - "StackName": { - "Description": "CloudFormation provider root stack ID", - "Value": { - "Ref": "AWS::StackName" - }, - "Export": { - "Name": { - "Fn::Sub": "${AWS::StackName}-StackName" - } - } - }, - "StackId": { - "Description": "CloudFormation provider root stack name", - "Value": { - "Ref": "AWS::StackId" - }, - "Export": { - "Name": { - "Fn::Sub": "${AWS::StackName}-StackId" - } - } - }, - "AuthRoleArn": { - "Value": { - "Fn::GetAtt": [ - "AuthRole", - "Arn" - ] - } - }, - "UnauthRoleArn": { - "Value": { - "Fn::GetAtt": [ - "UnauthRole", - "Arn" - ] - } - }, - "DeploymentBucketName": { - "Description": "CloudFormation provider root stack deployment bucket name", - "Value": { - "Ref": "DeploymentBucketName" - }, - "Export": { - "Name": { - "Fn::Sub": "${AWS::StackName}-DeploymentBucketName" - } - } - }, - "AuthRoleName": { - "Value": { - "Ref": "AuthRole" - } - }, - "UnauthRoleName": { - "Value": { - "Ref": "UnauthRole" - } - } - }, - "Resources": { - "DeploymentBucket": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketName": { - "Ref": "DeploymentBucketName" - }, - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - } - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain" - }, - "DeploymentBucketBlockHTTP": { - "Type": "AWS::S3::BucketPolicy", - "Properties": { - "Bucket": { - "Ref": "DeploymentBucketName" - }, - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:*", - "Effect": "Deny", - "Principal": "*", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "DeploymentBucketName" - }, - "/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "DeploymentBucketName" - } - ] - ] - } - ], - "Condition": { - "Bool": { - "aws:SecureTransport": false - } - } - } - ] - } - } - }, - "AuthRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Sid": "", - "Effect": "Deny", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - }, - "Action": "sts:AssumeRoleWithWebIdentity" - } - ] - }, - "RoleName": { - "Ref": "AuthRoleName" - } - } - }, - "UnauthRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Sid": "", - "Effect": "Deny", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - }, - "Action": "sts:AssumeRoleWithWebIdentity" - } - ] - }, - "RoleName": { - "Ref": "UnauthRoleName" - } - } - }, - "authbackendonlyf8c4c57b": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-main-5e0fa-deployment/amplify-cfn-templates/auth/backendonlyf8c4c57b-cloudformation-template.json", - "Parameters": { - "identityPoolName": "backendonlyf8c4c57b_identitypool_f8c4c57b", - "allowUnauthenticatedIdentities": true, - "resourceNameTruncated": "backenf8c4c57b", - "userPoolName": "backendonlyf8c4c57b_userpool_f8c4c57b", - "autoVerifiedAttributes": "email", - "mfaConfiguration": "OFF", - "mfaTypes": "SMS Text Message", - "smsAuthenticationMessage": "Your authentication code is {####}", - "smsVerificationMessage": "Your verification code is {####}", - "emailVerificationSubject": "Your verification code", - "emailVerificationMessage": "Your verification code is {####}", - "defaultPasswordPolicy": false, - "passwordPolicyMinLength": 8, - "passwordPolicyCharacters": "", - "requiredAttributes": "email", - "aliasAttributes": "", - "userpoolClientGenerateSecret": false, - "userpoolClientRefreshTokenValidity": 30, - "userpoolClientWriteAttributes": "email", - "userpoolClientReadAttributes": "email", - "userpoolClientLambdaRole": "backenf8c4c57b_userpoolclient_lambda_role", - "userpoolClientSetAttributes": false, - "sharedId": "f8c4c57b", - "resourceName": "backendonlyf8c4c57b", - "authSelections": "identityPoolAndUserPool", - "useDefault": "default", - "usernameAttributes": "email", - "userPoolGroupList": "", - "serviceName": "Cognito", - "usernameCaseSensitive": false, - "useEnabledMfas": true, - "authRoleArn": { - "Fn::GetAtt": [ - "AuthRole", - "Arn" - ] - }, - "unauthRoleArn": { - "Fn::GetAtt": [ - "UnauthRole", - "Arn" - ] - }, - "breakCircularDependency": true, - "dependsOn": "", - "env": "main" - } - } - }, - "apibackendonly": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-main-5e0fa-deployment/amplify-cfn-templates/api/cloudformation-template.json", - "Parameters": { - "AppSyncApiName": "backendonly", - "DynamoDBBillingMode": "PAY_PER_REQUEST", - "DynamoDBEnableServerSideEncryption": false, - "AuthCognitoUserPoolId": { - "Fn::GetAtt": [ - "authbackendonlyf8c4c57b", - "Outputs.UserPoolId" - ] - }, - "S3DeploymentBucket": "amplify-backendonly-main-5e0fa-deployment", - "S3DeploymentRootKey": "amplify-appsync-files/47418d5f9df78fb8fa9acaa5bd04a81ebc30971b", - "env": "main" - } - } - }, - "storages3c31471c3": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-main-5e0fa-deployment/amplify-cfn-templates/storage/cloudformation-template.json", - "Parameters": { - "bucketName": "backendonlycb1a13ab81664ecaa7d015068ab2d016", - "selectedGuestPermissions": "s3:GetObject,s3:ListBucket", - "selectedAuthenticatedPermissions": "s3:PutObject,s3:GetObject,s3:ListBucket,s3:DeleteObject", - "unauthRoleName": { - "Ref": "UnauthRoleName" - }, - "authRoleName": { - "Ref": "AuthRoleName" - }, - "s3PrivatePolicy": "Private_policy_c31471c3", - "s3ProtectedPolicy": "Protected_policy_c31471c3", - "s3PublicPolicy": "Public_policy_c31471c3", - "s3ReadPolicy": "read_policy_c31471c3", - "s3UploadsPolicy": "Uploads_policy_c31471c3", - "authPolicyName": "s3_amplify_c31471c3", - "unauthPolicyName": "s3_amplify_c31471c3", - "AuthenticatedAllowList": "ALLOW", - "GuestAllowList": "ALLOW", - "s3PermissionsAuthenticatedPrivate": "s3:PutObject,s3:GetObject,s3:DeleteObject", - "s3PermissionsAuthenticatedProtected": "s3:PutObject,s3:GetObject,s3:DeleteObject", - "s3PermissionsAuthenticatedPublic": "s3:PutObject,s3:GetObject,s3:DeleteObject", - "s3PermissionsAuthenticatedUploads": "s3:PutObject", - "s3PermissionsGuestPublic": "s3:GetObject", - "s3PermissionsGuestUploads": "DISALLOW", - "env": "main" - } - } - }, - "functionquotegeneratorbe": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-main-5e0fa-deployment/amplify-cfn-templates/function/quotegeneratorbe-cloudformation-template.json", - "Parameters": { - "deploymentBucketName": "amplify-backendonly-main-5e0fa-deployment", - "s3Key": "amplify-builds/quotegeneratorbe-513654756a51615a5779-build.zip", - "env": "main" - } - } - }, - "UpdateRolesWithIDPFunction": { - "DependsOn": [ - "AuthRole", - "UnauthRole", - "authbackendonlyf8c4c57b" - ], - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "ZipFile": { - "Fn::Join": [ - "\n", - [ - "const response = require('cfn-response');", - "const { IAMClient, GetRoleCommand, UpdateAssumeRolePolicyCommand } = require('@aws-sdk/client-iam');", - "exports.handler = function(event, context) {", - " // Don't return promise, response.send() marks context as done internally", - " const ignoredPromise = handleEvent(event, context)", - "};", - "async function handleEvent(event, context) {", - " try {", - " let authRoleName = event.ResourceProperties.authRoleName;", - " let unauthRoleName = event.ResourceProperties.unauthRoleName;", - " let idpId = event.ResourceProperties.idpId;", - " let authParamsJson = {", - " 'Version': '2012-10-17',", - " 'Statement': [{", - " 'Effect': 'Allow',", - " 'Principal': {'Federated': 'cognito-identity.amazonaws.com'},", - " 'Action': 'sts:AssumeRoleWithWebIdentity',", - " 'Condition': {", - " 'StringEquals': {'cognito-identity.amazonaws.com:aud': idpId},", - " 'ForAnyValue:StringLike': {'cognito-identity.amazonaws.com:amr': 'authenticated'}", - " }", - " }]", - " };", - " let unauthParamsJson = {", - " 'Version': '2012-10-17',", - " 'Statement': [{", - " 'Effect': 'Allow',", - " 'Principal': {'Federated': 'cognito-identity.amazonaws.com'},", - " 'Action': 'sts:AssumeRoleWithWebIdentity',", - " 'Condition': {", - " 'StringEquals': {'cognito-identity.amazonaws.com:aud': idpId},", - " 'ForAnyValue:StringLike': {'cognito-identity.amazonaws.com:amr': 'unauthenticated'}", - " }", - " }]", - " };", - " if (event.RequestType === 'Delete') {", - " try {", - " delete authParamsJson.Statement[0].Condition;", - " delete unauthParamsJson.Statement[0].Condition;", - " authParamsJson.Statement[0].Effect = 'Deny'", - " unauthParamsJson.Statement[0].Effect = 'Deny'", - " let authParams = {PolicyDocument: JSON.stringify(authParamsJson), RoleName: authRoleName};", - " let unauthParams = {PolicyDocument: JSON.stringify(unauthParamsJson), RoleName: unauthRoleName};", - " const iam = new IAMClient({region: event.ResourceProperties.region});", - " let res = await Promise.all([", - " iam.send(new GetRoleCommand({RoleName: authParams.RoleName})),", - " iam.send(new GetRoleCommand({RoleName: unauthParams.RoleName}))", - " ]);", - " res = await Promise.all([", - " iam.send(new UpdateAssumeRolePolicyCommand(authParams)),", - " iam.send(new UpdateAssumeRolePolicyCommand(unauthParams))", - " ]);", - " response.send(event, context, response.SUCCESS, {});", - " } catch (err) {", - " console.log(err.stack);", - " response.send(event, context, response.SUCCESS, {Error: err});", - " }", - " } else if (event.RequestType === 'Update' || event.RequestType === 'Create') {", - " const iam = new IAMClient({region: event.ResourceProperties.region});", - " let authParams = {PolicyDocument: JSON.stringify(authParamsJson), RoleName: authRoleName};", - " let unauthParams = {PolicyDocument: JSON.stringify(unauthParamsJson), RoleName: unauthRoleName};", - " const res = await Promise.all([", - " iam.send(new UpdateAssumeRolePolicyCommand(authParams)),", - " iam.send(new UpdateAssumeRolePolicyCommand(unauthParams))", - " ]);", - " response.send(event, context, response.SUCCESS, {});", - " }", - " } catch (err) {", - " console.log(err.stack);", - " response.send(event, context, response.FAILED, {Error: err});", - " }", - "};" - ] - ] - } - }, - "Handler": "index.handler", - "Runtime": "nodejs22.x", - "Timeout": 300, - "Role": { - "Fn::GetAtt": [ - "UpdateRolesWithIDPFunctionRole", - "Arn" - ] - } - } - }, - "UpdateRolesWithIDPFunctionOutputs": { - "Type": "Custom::LambdaCallout", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "UpdateRolesWithIDPFunction", - "Arn" - ] - }, - "region": { - "Ref": "AWS::Region" - }, - "idpId": { - "Fn::GetAtt": [ - "authbackendonlyf8c4c57b", - "Outputs.IdentityPoolId" - ] - }, - "authRoleName": { - "Ref": "AuthRole" - }, - "unauthRoleName": { - "Ref": "UnauthRole" - } - } - }, - "UpdateRolesWithIDPFunctionRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "RoleName": { - "Fn::Join": [ - "", - [ - { - "Ref": "AuthRole" - }, - "-idp" - ] - ] - }, - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": [ - "lambda.amazonaws.com" - ] - }, - "Action": [ - "sts:AssumeRole" - ] - } - ] - }, - "Policies": [ - { - "PolicyName": "UpdateRolesWithIDPFunctionPolicy", - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "logs:CreateLogGroup", - "logs:CreateLogStream", - "logs:PutLogEvents" - ], - "Resource": "arn:aws:logs:*:*:*" - }, - { - "Effect": "Allow", - "Action": [ - "iam:UpdateAssumeRolePolicy", - "iam:GetRole" - ], - "Resource": { - "Fn::GetAtt": [ - "AuthRole", - "Arn" - ] - } - }, - { - "Effect": "Allow", - "Action": [ - "iam:UpdateAssumeRolePolicy", - "iam:GetRole" - ], - "Resource": { - "Fn::GetAtt": [ - "UnauthRole", - "Arn" - ] - } - } - ] - } - } - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-ConnectionStack-x.description.txt b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-ConnectionStack-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-ConnectionStack-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-ConnectionStack-x.outputs.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-ConnectionStack-x.outputs.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-ConnectionStack-x.outputs.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-ConnectionStack-x.parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-ConnectionStack-x.parameters.json new file mode 100644 index 00000000000..9544e61df85 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-ConnectionStack-x.parameters.json @@ -0,0 +1,26 @@ +[ + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", + "ParameterValue": "amplify-appsync-files/47418d5f9df78fb8fa9acaa5bd04a81ebc30971b" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", + "ParameterValue": "q2d7oghxlbgxxj3fr2t6f2bpm4" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", + "ParameterValue": "amplify-backendonly-x-x-deployment" + }, + { + "ParameterKey": "referencetotransformerrootstackTodoNestedStackTodoNestedStackResource9AC126A3OutputstransformerrootstackTodoTodoTableC67E79C2Ref", + "ParameterValue": "Todo-q2d7oghxlbgxxj3fr2t6f2bpm4-x" + }, + { + "ParameterKey": "referencetotransformerrootstackTodoNestedStackTodoNestedStackResource9AC126A3OutputstransformerrootstackTodoTodoDataSourceBD713D7DName", + "ParameterValue": "TodoTable" + } +] diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-ConnectionStack-x.template.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-ConnectionStack-x.template.json new file mode 100644 index 00000000000..2e29888397e --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-ConnectionStack-x.template.json @@ -0,0 +1,143 @@ +{ + "Resources": { + "Projecttodosauth0FunctionProjecttodosauth0FunctionAppSyncFunctionB9D5F5D1": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "Projecttodosauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Project.todos.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "ProjectTodosDataResolverFnProjectTodosDataResolverFnAppSyncFunction6418E519": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackTodoNestedStackTodoNestedStackResource9AC126A3OutputstransformerrootstackTodoTodoDataSourceBD713D7DName" + }, + "FunctionVersion": "2018-05-29", + "Name": "ProjectTodosDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Project.todos.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Project.todos.res.vtl" + ] + ] + } + } + }, + "ProjecttodosResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "todos", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "Projecttodosauth0FunctionProjecttodosauth0FunctionAppSyncFunctionB9D5F5D1", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "ProjectTodosDataResolverFnProjectTodosDataResolverFnAppSyncFunction6418E519", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Project\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"todos\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackTodoNestedStackTodoNestedStackResource9AC126A3OutputstransformerrootstackTodoTodoTableC67E79C2Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Project" + } + } + }, + "Parameters": { + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackTodoNestedStackTodoNestedStackResource9AC126A3OutputstransformerrootstackTodoTodoDataSourceBD713D7DName": { + "Type": "String" + }, + "referencetotransformerrootstackTodoNestedStackTodoNestedStackResource9AC126A3OutputstransformerrootstackTodoTodoTableC67E79C2Ref": { + "Type": "String" + } + } +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-CustomResourcesjson-x.description.txt b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-CustomResourcesjson-x.description.txt new file mode 100644 index 00000000000..21e1447423e --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-CustomResourcesjson-x.description.txt @@ -0,0 +1 @@ +An auto-generated nested stack. diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-CustomResourcesjson-x.outputs.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-CustomResourcesjson-x.outputs.json new file mode 100644 index 00000000000..291e7aad7f7 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-CustomResourcesjson-x.outputs.json @@ -0,0 +1,7 @@ +[ + { + "OutputKey": "EmptyOutput", + "OutputValue": "", + "Description": "An empty output. You may delete this if you have at least one resource above." + } +] diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-CustomResourcesjson-x.parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-CustomResourcesjson-x.parameters.json new file mode 100644 index 00000000000..ee586466239 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-CustomResourcesjson-x.parameters.json @@ -0,0 +1,22 @@ +[ + { + "ParameterKey": "S3DeploymentBucket", + "ParameterValue": "amplify-backendonly-x-x-deployment" + }, + { + "ParameterKey": "AppSyncApiId", + "ParameterValue": "q2d7oghxlbgxxj3fr2t6f2bpm4" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "S3DeploymentRootKey", + "ParameterValue": "amplify-appsync-files/47418d5f9df78fb8fa9acaa5bd04a81ebc30971b" + }, + { + "ParameterKey": "AppSyncApiName", + "ParameterValue": "backendonly" + } +] diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-CustomResourcesjson-x.template.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-CustomResourcesjson-x.template.json new file mode 100644 index 00000000000..5fe357d6096 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-CustomResourcesjson-x.template.json @@ -0,0 +1,61 @@ +{ + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "An auto-generated nested stack.", + "Metadata": {}, + "Parameters": { + "AppSyncApiId": { + "Type": "String", + "Description": "The id of the AppSync API associated with this project." + }, + "AppSyncApiName": { + "Type": "String", + "Description": "The name of the AppSync API", + "Default": "AppSyncSimpleTransform" + }, + "env": { + "Type": "String", + "Description": "The environment name. e.g. Dev, Test, or Production", + "Default": "NONE" + }, + "S3DeploymentBucket": { + "Type": "String", + "Description": "The S3 bucket containing all deployment assets for the project." + }, + "S3DeploymentRootKey": { + "Type": "String", + "Description": "An S3 key relative to the S3DeploymentBucket that points to the root\nof the deployment directory." + } + }, + "Resources": { + "EmptyResource": { + "Type": "Custom::EmptyResource", + "Condition": "AlwaysFalse" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + } + ] + }, + "AlwaysFalse": { + "Fn::Equals": [ + "true", + "false" + ] + } + }, + "Outputs": { + "EmptyOutput": { + "Description": "An empty output. You may delete this if you have at least one resource above.", + "Value": "" + } + } +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-FunctionDirectiveStack-x.description.txt b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-FunctionDirectiveStack-x.description.txt new file mode 100644 index 00000000000..6b3d983ba60 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-FunctionDirectiveStack-x.description.txt @@ -0,0 +1 @@ +An auto-generated nested stack for the @function directive. diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-FunctionDirectiveStack-x.outputs.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-FunctionDirectiveStack-x.outputs.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-FunctionDirectiveStack-x.outputs.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-FunctionDirectiveStack-x.parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-FunctionDirectiveStack-x.parameters.json new file mode 100644 index 00000000000..dd672a45bb9 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-FunctionDirectiveStack-x.parameters.json @@ -0,0 +1,22 @@ +[ + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", + "ParameterValue": "amplify-appsync-files/47418d5f9df78fb8fa9acaa5bd04a81ebc30971b" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", + "ParameterValue": "q2d7oghxlbgxxj3fr2t6f2bpm4" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", + "ParameterValue": "amplify-backendonly-x-x-deployment" + }, + { + "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", + "ParameterValue": "x" + } +] diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-FunctionDirectiveStack-x.template.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-FunctionDirectiveStack-x.template.json new file mode 100644 index 00000000000..ebb69f88cb4 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-FunctionDirectiveStack-x.template.json @@ -0,0 +1,281 @@ +{ + "Description": "An auto-generated nested stack for the @function directive.", + "AWSTemplateFormatVersion": "2010-09-09", + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + } + }, + "Resources": { + "QuotegeneratorLambdaDataSourceServiceRole2D26810D": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + } + } + }, + "QuotegeneratorLambdaDataSourceServiceRoleDefaultPolicy1B36E7EE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator" + } + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator" + } + ] + }, + ":*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "QuotegeneratorLambdaDataSourceServiceRoleDefaultPolicy1B36E7EE", + "Roles": [ + { + "Ref": "QuotegeneratorLambdaDataSourceServiceRole2D26810D" + } + ] + } + }, + "QuotegeneratorLambdaDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "LambdaConfig": { + "LambdaFunctionArn": { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator" + } + ] + } + }, + "Name": "QuotegeneratorLambdaDataSource", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "QuotegeneratorLambdaDataSourceServiceRole2D26810D", + "Arn" + ] + }, + "Type": "AWS_LAMBDA" + } + }, + "InvokeQuotegeneratorLambdaDataSourceInvokeQuotegeneratorLambdaDataSourceAppSyncFunctionE6745EF3": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "QuotegeneratorLambdaDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "InvokeQuotegeneratorLambdaDataSource", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeQuotegeneratorLambdaDataSource.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeQuotegeneratorLambdaDataSource.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "QuotegeneratorLambdaDataSource" + ] + }, + "QuerygetRandomQuoteResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getRandomQuote", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QueryGetRandomQuoteAuthFNQueryGetRandomQuoteAuthFNAppSyncFunction15864A6C", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "InvokeQuotegeneratorLambdaDataSourceInvokeQuotegeneratorLambdaDataSourceAppSyncFunctionE6745EF3", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getRandomQuote\"))\n{}\n## [End] Stash resolver specific context.. **", + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getRandomQuote.res.vtl" + ] + ] + }, + "TypeName": "Query" + } + }, + "QueryGetRandomQuoteAuthFNQueryGetRandomQuoteAuthFNAppSyncFunction15864A6C": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryGetRandomQuoteAuthFN", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getRandomQuote.auth.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + } + }, + "Parameters": { + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Type": "String" + } + } +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-Project-x.description.txt b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-Project-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-Project-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-Project-x.outputs.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-Project-x.outputs.json new file mode 100644 index 00000000000..babd8258ad0 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-Project-x.outputs.json @@ -0,0 +1,48 @@ +[ + { + "OutputKey": "transformerrootstackProjectQuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionA68979B1FunctionId", + "OutputValue": "a6u3it7cszhhdeqbbpkuzhwoaq" + }, + { + "OutputKey": "transformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId", + "OutputValue": "kurfovbhuvgtbp4yv54u6fgkra" + }, + { + "OutputKey": "transformerrootstackProjectSubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction5D3DF8A6FunctionId", + "OutputValue": "jnluzjwd4ncqnf3sfc2oidbymq" + }, + { + "OutputKey": "transformerrootstackProjectSubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDFF26C0AFunctionId", + "OutputValue": "ckqnmwhbkba3rfktp37aw5ggva" + }, + { + "OutputKey": "GetAttProjectDataSourceName", + "OutputValue": "ProjectTable", + "Description": "Your model DataSource name.", + "ExportName": "q2d7oghxlbgxxj3fr2t6f2bpm4:GetAtt:ProjectDataSource:Name" + }, + { + "OutputKey": "transformerrootstackProjectMutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunctionF33DB6D0FunctionId", + "OutputValue": "xqcvnnskeba2xpei7cidkns5n4" + }, + { + "OutputKey": "transformerrootstackProjectMutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction63376DADFunctionId", + "OutputValue": "wnpd2js74baobgg5rnt3nmok6y" + }, + { + "OutputKey": "transformerrootstackProjectProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunctionC730BF38FunctionId", + "OutputValue": "wzfkkgnxmnfpnnxnagw4hvqfbu" + }, + { + "OutputKey": "GetAttProjectTableStreamArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Project-q2d7oghxlbgxxj3fr2t6f2bpm4-x/stream/2026-04-15T03:52:55.194", + "Description": "Your DynamoDB table StreamArn.", + "ExportName": "q2d7oghxlbgxxj3fr2t6f2bpm4:GetAtt:ProjectTable:StreamArn" + }, + { + "OutputKey": "GetAttProjectTableName", + "OutputValue": "Project-q2d7oghxlbgxxj3fr2t6f2bpm4-x", + "Description": "Your DynamoDB table name.", + "ExportName": "q2d7oghxlbgxxj3fr2t6f2bpm4:GetAtt:ProjectTable:Name" + } +] diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-Project-x.parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-Project-x.parameters.json new file mode 100644 index 00000000000..b5b0c23cec4 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-Project-x.parameters.json @@ -0,0 +1,42 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", + "ParameterValue": "amplify-appsync-files/47418d5f9df78fb8fa9acaa5bd04a81ebc30971b" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", + "ParameterValue": "q2d7oghxlbgxxj3fr2t6f2bpm4" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", + "ParameterValue": "amplify-backendonly-x-x-deployment" + }, + { + "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", + "ParameterValue": "x" + } +] diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-Project-x.template.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-Project-x.template.json new file mode 100644 index 00000000000..0651a3995d4 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-Project-x.template.json @@ -0,0 +1,1536 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "ProjectTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "Project-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Retain" + }, + "ProjectIAMRole928454B5": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem", + "dynamodb:ConditionCheckItem", + "dynamodb:DescribeTable", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "Project-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "Project-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess" + } + ], + "RoleName": { + "Fn::Join": [ + "", + [ + "ProjectIAMRole032cf0-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "ProjectIAMRoleDefaultPolicy08A73B99": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "ProjectTable", + "Arn" + ] + }, + { + "Ref": "AWS::NoValue" + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "ProjectIAMRoleDefaultPolicy08A73B99", + "Roles": [ + { + "Ref": "ProjectIAMRole928454B5" + } + ] + } + }, + "ProjectDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "ProjectTable" + } + }, + "Name": "ProjectTable", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "ProjectIAMRole928454B5", + "Arn" + ] + }, + "Type": "AMAZON_DYNAMODB" + }, + "DependsOn": [ + "ProjectIAMRole928454B5" + ] + }, + "QuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionED686A7E": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetProjectauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getProject.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetProjectpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getProject.postAuth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "QueryGetProjectDataResolverFnQueryGetProjectDataResolverFnAppSyncFunctionD6A0F260": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProjectDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryGetProjectDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getProject.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getProject.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ProjectDataSource" + ] + }, + "GetProjectResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getProject", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionED686A7E", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryGetProjectDataResolverFnQueryGetProjectDataResolverFnAppSyncFunctionD6A0F260", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ProjectTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + } + }, + "QueryListProjectsDataResolverFnQueryListProjectsDataResolverFnAppSyncFunction0812E3B9": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProjectDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryListProjectsDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listProjects.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listProjects.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ProjectDataSource" + ] + }, + "ListProjectResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listProjects", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionED686A7E", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryListProjectsDataResolverFnQueryListProjectsDataResolverFnAppSyncFunction0812E3B9", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listProjects\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ProjectTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + } + }, + "MutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction412D09B9": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateProjectinit0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createProject.init.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "MutationcreateProjectauth0FunctionMutationcreateProjectauth0FunctionAppSyncFunction4FB957D8": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateProjectauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createProject.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "MutationCreateProjectDataResolverFnMutationCreateProjectDataResolverFnAppSyncFunction729D2B08": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProjectDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationCreateProjectDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createProject.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createProject.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ProjectDataSource" + ] + }, + "CreateProjectResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createProject", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction412D09B9", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationcreateProjectauth0FunctionMutationcreateProjectauth0FunctionAppSyncFunction4FB957D8", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationCreateProjectDataResolverFnMutationCreateProjectDataResolverFnAppSyncFunction729D2B08", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ProjectTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "MutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunction20F7A53C": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateProjectinit0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateProject.init.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "MutationupdateProjectauth0FunctionMutationupdateProjectauth0FunctionAppSyncFunctionF9C2F303": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProjectDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateProjectauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateProject.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateProject.auth.1.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ProjectDataSource" + ] + }, + "MutationUpdateProjectDataResolverFnMutationUpdateProjectDataResolverFnAppSyncFunction9E902778": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProjectDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationUpdateProjectDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateProject.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateProject.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ProjectDataSource" + ] + }, + "UpdateProjectResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateProject", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunction20F7A53C", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationupdateProjectauth0FunctionMutationupdateProjectauth0FunctionAppSyncFunctionF9C2F303", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationUpdateProjectDataResolverFnMutationUpdateProjectDataResolverFnAppSyncFunction9E902778", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ProjectTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "MutationdeleteProjectauth0FunctionMutationdeleteProjectauth0FunctionAppSyncFunction67C3BC9D": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProjectDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeleteProjectauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteProject.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteProject.auth.1.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ProjectDataSource" + ] + }, + "MutationDeleteProjectDataResolverFnMutationDeleteProjectDataResolverFnAppSyncFunctionC40E2160": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProjectDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationDeleteProjectDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteProject.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteProject.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ProjectDataSource" + ] + }, + "DeleteProjectResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteProject", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationdeleteProjectauth0FunctionMutationdeleteProjectauth0FunctionAppSyncFunction67C3BC9D", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationDeleteProjectDataResolverFnMutationDeleteProjectDataResolverFnAppSyncFunctionC40E2160", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ProjectTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "SubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction658E1FC9": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononCreateProjectauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Subscription.onCreateProject.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "SubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDABDBE4E": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnCreateProjectDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Subscription.onCreateProject.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Subscription.onCreateProject.res.vtl" + ] + ] + } + } + }, + "SubscriptiononCreateProjectResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateProject", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction658E1FC9", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDABDBE4E", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + }, + "SubscriptiononUpdateProjectResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateProject", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction658E1FC9", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDABDBE4E", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + }, + "SubscriptiononDeleteProjectResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteProject", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction658E1FC9", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDABDBE4E", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + }, + "ProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunction7F1893B2": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "ProjectOwnerDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Project.owner.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Project.owner.res.vtl" + ] + ] + } + } + }, + "ProjectownerResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "owner", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunction7F1893B2", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Project\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"owner\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Project" + } + } + }, + "Outputs": { + "GetAttProjectTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "ProjectTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ProjectTable:StreamArn" + ] + ] + } + } + }, + "GetAttProjectTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "ProjectTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ProjectTable:Name" + ] + ] + } + } + }, + "GetAttProjectDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "ProjectDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ProjectDataSource:Name" + ] + ] + } + } + }, + "transformerrootstackProjectQuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionA68979B1FunctionId": { + "Value": { + "Fn::GetAtt": [ + "QuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionED686A7E", + "FunctionId" + ] + } + }, + "transformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId": { + "Value": { + "Fn::GetAtt": [ + "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4", + "FunctionId" + ] + } + }, + "transformerrootstackProjectMutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction63376DADFunctionId": { + "Value": { + "Fn::GetAtt": [ + "MutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction412D09B9", + "FunctionId" + ] + } + }, + "transformerrootstackProjectMutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunctionF33DB6D0FunctionId": { + "Value": { + "Fn::GetAtt": [ + "MutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunction20F7A53C", + "FunctionId" + ] + } + }, + "transformerrootstackProjectSubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction5D3DF8A6FunctionId": { + "Value": { + "Fn::GetAtt": [ + "SubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction658E1FC9", + "FunctionId" + ] + } + }, + "transformerrootstackProjectSubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDFF26C0AFunctionId": { + "Value": { + "Fn::GetAtt": [ + "SubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDABDBE4E", + "FunctionId" + ] + } + }, + "transformerrootstackProjectProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunctionC730BF38FunctionId": { + "Value": { + "Fn::GetAtt": [ + "ProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunction7F1893B2", + "FunctionId" + ] + } + } + } +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-Todo-x.description.txt b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-Todo-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-Todo-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-Todo-x.outputs.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-Todo-x.outputs.json new file mode 100644 index 00000000000..d81e970715e --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-Todo-x.outputs.json @@ -0,0 +1,28 @@ +[ + { + "OutputKey": "GetAttTodoTableName", + "OutputValue": "Todo-q2d7oghxlbgxxj3fr2t6f2bpm4-x", + "Description": "Your DynamoDB table name.", + "ExportName": "q2d7oghxlbgxxj3fr2t6f2bpm4:GetAtt:TodoTable:Name" + }, + { + "OutputKey": "GetAttTodoDataSourceName", + "OutputValue": "TodoTable", + "Description": "Your model DataSource name.", + "ExportName": "q2d7oghxlbgxxj3fr2t6f2bpm4:GetAtt:TodoDataSource:Name" + }, + { + "OutputKey": "transformerrootstackTodoTodoTableC67E79C2Ref", + "OutputValue": "Todo-q2d7oghxlbgxxj3fr2t6f2bpm4-x" + }, + { + "OutputKey": "GetAttTodoTableStreamArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Todo-q2d7oghxlbgxxj3fr2t6f2bpm4-x/stream/2026-04-15T03:53:43.178", + "Description": "Your DynamoDB table StreamArn.", + "ExportName": "q2d7oghxlbgxxj3fr2t6f2bpm4:GetAtt:TodoTable:StreamArn" + }, + { + "OutputKey": "transformerrootstackTodoTodoDataSourceBD713D7DName", + "OutputValue": "TodoTable" + } +] diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-Todo-x.parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-Todo-x.parameters.json new file mode 100644 index 00000000000..e438b2ec563 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-Todo-x.parameters.json @@ -0,0 +1,70 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", + "ParameterValue": "amplify-appsync-files/47418d5f9df78fb8fa9acaa5bd04a81ebc30971b" + }, + { + "ParameterKey": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectMutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunctionF33DB6D0FunctionId", + "ParameterValue": "xqcvnnskeba2xpei7cidkns5n4" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", + "ParameterValue": "q2d7oghxlbgxxj3fr2t6f2bpm4" + }, + { + "ParameterKey": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionA68979B1FunctionId", + "ParameterValue": "a6u3it7cszhhdeqbbpkuzhwoaq" + }, + { + "ParameterKey": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDFF26C0AFunctionId", + "ParameterValue": "ckqnmwhbkba3rfktp37aw5ggva" + }, + { + "ParameterKey": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectMutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction63376DADFunctionId", + "ParameterValue": "wnpd2js74baobgg5rnt3nmok6y" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunctionC730BF38FunctionId", + "ParameterValue": "wzfkkgnxmnfpnnxnagw4hvqfbu" + }, + { + "ParameterKey": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId", + "ParameterValue": "kurfovbhuvgtbp4yv54u6fgkra" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", + "ParameterValue": "amplify-backendonly-x-x-deployment" + }, + { + "ParameterKey": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction5D3DF8A6FunctionId", + "ParameterValue": "jnluzjwd4ncqnf3sfc2oidbymq" + }, + { + "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", + "ParameterValue": "x" + } +] diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-Todo-x.template.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-Todo-x.template.json new file mode 100644 index 00000000000..c39c280d162 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x-Todo-x.template.json @@ -0,0 +1,1262 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionA68979B1FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Type": "String" + }, + "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectMutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction63376DADFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectMutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunctionF33DB6D0FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction5D3DF8A6FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDFF26C0AFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunctionC730BF38FunctionId": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "TodoTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + }, + { + "AttributeName": "projectTodosId", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "GlobalSecondaryIndexes": [ + { + "IndexName": "gsi-Project.todos", + "KeySchema": [ + { + "AttributeName": "projectTodosId", + "KeyType": "HASH" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + } + ], + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "Todo-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Retain" + }, + "TodoIAMRole2DA8E66E": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem", + "dynamodb:ConditionCheckItem", + "dynamodb:DescribeTable", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "Todo-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "Todo-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess" + } + ], + "RoleName": { + "Fn::Join": [ + "", + [ + "TodoIAMRolecfd440-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "TodoIAMRoleDefaultPolicy7BBBF45B": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "TodoTable", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "TodoTable", + "Arn" + ] + }, + "/index/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "TodoIAMRoleDefaultPolicy7BBBF45B", + "Roles": [ + { + "Ref": "TodoIAMRole2DA8E66E" + } + ] + } + }, + "TodoDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "TodoTable" + } + }, + "Name": "TodoTable", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "TodoIAMRole2DA8E66E", + "Arn" + ] + }, + "Type": "AMAZON_DYNAMODB" + }, + "DependsOn": [ + "TodoIAMRole2DA8E66E" + ] + }, + "QueryGetTodoDataResolverFnQueryGetTodoDataResolverFnAppSyncFunctionE2B57DAD": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TodoDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryGetTodoDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getTodo.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getTodo.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "TodoDataSource" + ] + }, + "GetTodoResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getTodo", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionA68979B1FunctionId" + }, + { + "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetTodoDataResolverFnQueryGetTodoDataResolverFnAppSyncFunctionE2B57DAD", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "TodoTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + } + }, + "QueryListTodosDataResolverFnQueryListTodosDataResolverFnAppSyncFunctionF825FE47": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TodoDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryListTodosDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listTodos.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listTodos.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "TodoDataSource" + ] + }, + "ListTodoResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listTodos", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionA68979B1FunctionId" + }, + { + "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListTodosDataResolverFnQueryListTodosDataResolverFnAppSyncFunctionF825FE47", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listTodos\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "TodoTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + } + }, + "MutationcreateTodoauth0FunctionMutationcreateTodoauth0FunctionAppSyncFunction21817E36": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateTodoauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createTodo.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "MutationCreateTodoDataResolverFnMutationCreateTodoDataResolverFnAppSyncFunction900EC5CF": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TodoDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationCreateTodoDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createTodo.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createTodo.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "TodoDataSource" + ] + }, + "CreateTodoResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createTodo", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectMutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction63376DADFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationcreateTodoauth0FunctionMutationcreateTodoauth0FunctionAppSyncFunction21817E36", + "FunctionId" + ] + }, + { + "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreateTodoDataResolverFnMutationCreateTodoDataResolverFnAppSyncFunction900EC5CF", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "TodoTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "MutationupdateTodoauth0FunctionMutationupdateTodoauth0FunctionAppSyncFunction1E4A3112": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TodoDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateTodoauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateTodo.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateTodo.auth.1.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "TodoDataSource" + ] + }, + "MutationUpdateTodoDataResolverFnMutationUpdateTodoDataResolverFnAppSyncFunctionBC238C49": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TodoDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationUpdateTodoDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateTodo.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateTodo.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "TodoDataSource" + ] + }, + "UpdateTodoResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateTodo", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectMutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunctionF33DB6D0FunctionId" + }, + { + "Fn::GetAtt": [ + "MutationupdateTodoauth0FunctionMutationupdateTodoauth0FunctionAppSyncFunction1E4A3112", + "FunctionId" + ] + }, + { + "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdateTodoDataResolverFnMutationUpdateTodoDataResolverFnAppSyncFunctionBC238C49", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "TodoTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "MutationdeleteTodoauth0FunctionMutationdeleteTodoauth0FunctionAppSyncFunctionC82C218C": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TodoDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeleteTodoauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteTodo.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteTodo.auth.1.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "TodoDataSource" + ] + }, + "MutationDeleteTodoDataResolverFnMutationDeleteTodoDataResolverFnAppSyncFunction3879153F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TodoDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationDeleteTodoDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteTodo.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteTodo.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "TodoDataSource" + ] + }, + "DeleteTodoResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteTodo", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationdeleteTodoauth0FunctionMutationdeleteTodoauth0FunctionAppSyncFunctionC82C218C", + "FunctionId" + ] + }, + { + "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeleteTodoDataResolverFnMutationDeleteTodoDataResolverFnAppSyncFunction3879153F", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "TodoTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "SubscriptiononCreateTodoResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateTodo", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction5D3DF8A6FunctionId" + }, + { + "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDFF26C0AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + }, + "SubscriptiononUpdateTodoResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateTodo", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction5D3DF8A6FunctionId" + }, + { + "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDFF26C0AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + }, + "SubscriptiononDeleteTodoResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteTodo", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction5D3DF8A6FunctionId" + }, + { + "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDFF26C0AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + }, + "TodoownerResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "owner", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunctionC730BF38FunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Todo\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"owner\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Todo" + } + } + }, + "Outputs": { + "GetAttTodoTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "TodoTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:TodoTable:StreamArn" + ] + ] + } + } + }, + "GetAttTodoTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "TodoTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:TodoTable:Name" + ] + ] + } + } + }, + "GetAttTodoDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "TodoDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:TodoDataSource:Name" + ] + ] + } + } + }, + "transformerrootstackTodoTodoDataSourceBD713D7DName": { + "Value": { + "Fn::GetAtt": [ + "TodoDataSource", + "Name" + ] + } + }, + "transformerrootstackTodoTodoTableC67E79C2Ref": { + "Value": { + "Ref": "TodoTable" + } + } + } +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x.description.txt b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x.description.txt new file mode 100644 index 00000000000..f9e13281dee --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"api-AppSync","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x.outputs.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x.outputs.json new file mode 100644 index 00000000000..641beb490b1 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x.outputs.json @@ -0,0 +1,20 @@ +[ + { + "OutputKey": "GraphQLAPIIdOutput", + "OutputValue": "q2d7oghxlbgxxj3fr2t6f2bpm4", + "Description": "Your GraphQL API ID.", + "ExportName": "amplify-backendonly-x-x-apibackendonly-x:GraphQLApiId" + }, + { + "OutputKey": "GraphQLAPIEndpointOutput", + "OutputValue": "https://b4xajwtybbb4hpq77w4ji2ntua.appsync-api.us-east-1.amazonaws.com/graphql", + "Description": "Your GraphQL API endpoint.", + "ExportName": "amplify-backendonly-x-x-apibackendonly-x:GraphQLApiEndpoint" + }, + { + "OutputKey": "GraphQLAPIKeyOutput", + "OutputValue": "da2-fakeapikey00000000000000", + "Description": "Your GraphQL API ID.", + "ExportName": "amplify-backendonly-x-x-apibackendonly-x:GraphQLApiKey" + } +] diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x.parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x.parameters.json new file mode 100644 index 00000000000..65f7353eba0 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x.parameters.json @@ -0,0 +1,42 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "S3DeploymentBucket", + "ParameterValue": "amplify-backendonly-x-x-deployment" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "S3DeploymentRootKey", + "ParameterValue": "amplify-appsync-files/47418d5f9df78fb8fa9acaa5bd04a81ebc30971b" + }, + { + "ParameterKey": "AppSyncApiName", + "ParameterValue": "backendonly" + }, + { + "ParameterKey": "AuthCognitoUserPoolId", + "ParameterValue": "us-east-1_cI3qDOXA2" + } +] diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x.template.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x.template.json new file mode 100644 index 00000000000..f46214f1502 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-apibackendonly-x.template.json @@ -0,0 +1,1052 @@ +{ + "Parameters": { + "env": { + "Type": "String", + "Default": "NONE" + }, + "AppSyncApiName": { + "Type": "String", + "Default": "AppSyncSimpleTransform" + }, + "AuthCognitoUserPoolId": { + "Type": "String" + }, + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "S3DeploymentBucket": { + "Type": "String", + "Description": "An S3 Bucket name where assets are deployed" + }, + "S3DeploymentRootKey": { + "Type": "String", + "Description": "An S3 key relative to the S3DeploymentBucket that points to the root of the deployment directory." + } + }, + "Resources": { + "GraphQLAPI": { + "Type": "AWS::AppSync::GraphQLApi", + "Properties": { + "AdditionalAuthenticationProviders": [ + { + "AuthenticationType": "AMAZON_COGNITO_USER_POOLS", + "UserPoolConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "UserPoolId": { + "Ref": "AuthCognitoUserPoolId" + } + } + } + ], + "AuthenticationType": "API_KEY", + "Name": { + "Fn::Join": [ + "", + [ + { + "Ref": "AppSyncApiName" + }, + "-", + { + "Ref": "env" + } + ] + ] + } + } + }, + "GraphQLAPITransformerSchema3CB2AE18": { + "Type": "AWS::AppSync::GraphQLSchema", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "DefinitionS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/schema.graphql" + ] + ] + } + } + }, + "GraphQLAPIDefaultApiKey215A6DD7": { + "Type": "AWS::AppSync::ApiKey", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "Expires": 1776829909 + } + }, + "GraphQLAPINONEDS95A13CF0": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "Name": "NONE_DS", + "Type": "NONE" + } + }, + "Project": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + } + }, + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/Project.json" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "Todo": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionA68979B1FunctionId": { + "Fn::GetAtt": [ + "Project", + "Outputs.transformerrootstackProjectQuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionA68979B1FunctionId" + ] + }, + "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId": { + "Fn::GetAtt": [ + "Project", + "Outputs.transformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId" + ] + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectMutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction63376DADFunctionId": { + "Fn::GetAtt": [ + "Project", + "Outputs.transformerrootstackProjectMutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction63376DADFunctionId" + ] + }, + "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectMutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunctionF33DB6D0FunctionId": { + "Fn::GetAtt": [ + "Project", + "Outputs.transformerrootstackProjectMutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunctionF33DB6D0FunctionId" + ] + }, + "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction5D3DF8A6FunctionId": { + "Fn::GetAtt": [ + "Project", + "Outputs.transformerrootstackProjectSubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction5D3DF8A6FunctionId" + ] + }, + "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDFF26C0AFunctionId": { + "Fn::GetAtt": [ + "Project", + "Outputs.transformerrootstackProjectSubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDFF26C0AFunctionId" + ] + }, + "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunctionC730BF38FunctionId": { + "Fn::GetAtt": [ + "Project", + "Outputs.transformerrootstackProjectProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunctionC730BF38FunctionId" + ] + } + }, + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/Todo.json" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "FunctionDirectiveStack": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + } + }, + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/FunctionDirectiveStack.json" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "ConnectionStack": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackTodoNestedStackTodoNestedStackResource9AC126A3OutputstransformerrootstackTodoTodoDataSourceBD713D7DName": { + "Fn::GetAtt": [ + "Todo", + "Outputs.transformerrootstackTodoTodoDataSourceBD713D7DName" + ] + }, + "referencetotransformerrootstackTodoNestedStackTodoNestedStackResource9AC126A3OutputstransformerrootstackTodoTodoTableC67E79C2Ref": { + "Fn::GetAtt": [ + "Todo", + "Outputs.transformerrootstackTodoTodoTableC67E79C2Ref" + ] + } + }, + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/ConnectionStack.json" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18", + "Todo" + ] + }, + "QuoteResponseMessageDataResolverFnQuoteResponseMessageDataResolverFnAppSyncFunctionC82EE8AA": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "DataSourceName": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QuoteResponseMessageDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/resolvers/QuoteResponse.message.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/resolvers/QuoteResponse.message.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "QuoteResponsemessageResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "FieldName": "message", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuoteResponseMessageDataResolverFnQuoteResponseMessageDataResolverFnAppSyncFunctionC82EE8AA", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"QuoteResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"message\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "QuoteResponse" + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "QuoteResponseQuoteDataResolverFnQuoteResponseQuoteDataResolverFnAppSyncFunction83E6C036": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "DataSourceName": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QuoteResponseQuoteDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/resolvers/QuoteResponse.quote.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/resolvers/QuoteResponse.quote.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "QuoteResponsequoteResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "FieldName": "quote", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuoteResponseQuoteDataResolverFnQuoteResponseQuoteDataResolverFnAppSyncFunction83E6C036", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"QuoteResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"quote\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "QuoteResponse" + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "QuoteResponseAuthorDataResolverFnQuoteResponseAuthorDataResolverFnAppSyncFunction8D32A5C7": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "DataSourceName": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QuoteResponseAuthorDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/resolvers/QuoteResponse.author.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/resolvers/QuoteResponse.author.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "QuoteResponseauthorResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "FieldName": "author", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuoteResponseAuthorDataResolverFnQuoteResponseAuthorDataResolverFnAppSyncFunction8D32A5C7", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"QuoteResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"author\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "QuoteResponse" + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "QuoteResponseTimestampDataResolverFnQuoteResponseTimestampDataResolverFnAppSyncFunction65DFB1C3": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "DataSourceName": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QuoteResponseTimestampDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/resolvers/QuoteResponse.timestamp.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/resolvers/QuoteResponse.timestamp.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "QuoteResponsetimestampResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "FieldName": "timestamp", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuoteResponseTimestampDataResolverFnQuoteResponseTimestampDataResolverFnAppSyncFunction65DFB1C3", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"QuoteResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"timestamp\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "QuoteResponse" + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "QuoteResponseTotalQuotesDataResolverFnQuoteResponseTotalQuotesDataResolverFnAppSyncFunctionD1B9B9A8": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "DataSourceName": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QuoteResponseTotalQuotesDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/resolvers/QuoteResponse.totalQuotes.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/resolvers/QuoteResponse.totalQuotes.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "QuoteResponsetotalQuotesResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "FieldName": "totalQuotes", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuoteResponseTotalQuotesDataResolverFnQuoteResponseTotalQuotesDataResolverFnAppSyncFunctionD1B9B9A8", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"QuoteResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"totalQuotes\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88772ee9-0104-4b54-a55f-ff3a395af515\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "QuoteResponse" + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "CustomResourcesjson": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "AppSyncApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "AppSyncApiName": { + "Ref": "AppSyncApiName" + }, + "env": { + "Ref": "env" + }, + "S3DeploymentBucket": { + "Ref": "S3DeploymentBucket" + }, + "S3DeploymentRootKey": { + "Ref": "S3DeploymentRootKey" + } + }, + "TemplateURL": { + "Fn::Join": [ + "/", + [ + "https://s3.amazonaws.com", + { + "Ref": "S3DeploymentBucket" + }, + { + "Ref": "S3DeploymentRootKey" + }, + "stacks", + "CustomResources.json" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPI", + "GraphQLAPITransformerSchema3CB2AE18", + "Project", + "Todo", + "FunctionDirectiveStack", + "ConnectionStack" + ] + } + }, + "Outputs": { + "GraphQLAPIKeyOutput": { + "Description": "Your GraphQL API ID.", + "Value": { + "Fn::GetAtt": [ + "GraphQLAPIDefaultApiKey215A6DD7", + "ApiKey" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "AWS::StackName" + }, + "GraphQLApiKey" + ] + ] + } + } + }, + "GraphQLAPIIdOutput": { + "Description": "Your GraphQL API ID.", + "Value": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "AWS::StackName" + }, + "GraphQLApiId" + ] + ] + } + } + }, + "GraphQLAPIEndpointOutput": { + "Description": "Your GraphQL API endpoint.", + "Value": { + "Fn::GetAtt": [ + "GraphQLAPI", + "GraphQLUrl" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "AWS::StackName" + }, + "GraphQLApiEndpoint" + ] + ] + } + } + } + }, + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-authbackendonlyf8c4c57b-x.description.txt b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-authbackendonlyf8c4c57b-x.description.txt new file mode 100644 index 00000000000..348d1236678 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-authbackendonlyf8c4c57b-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"auth-Cognito","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-authbackendonlyf8c4c57b-x.outputs.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-authbackendonlyf8c4c57b-x.outputs.json new file mode 100644 index 00000000000..212b0db5955 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-authbackendonlyf8c4c57b-x.outputs.json @@ -0,0 +1,35 @@ +[ + { + "OutputKey": "UserPoolId", + "OutputValue": "us-east-1_cI3qDOXA2", + "Description": "Id for the user pool" + }, + { + "OutputKey": "AppClientIDWeb", + "OutputValue": "6h7936arcjp36o7dhshkqb6d2a", + "Description": "The user pool app client id for web" + }, + { + "OutputKey": "AppClientID", + "OutputValue": "3ggneb92n0rfe5qet1h7p48evc", + "Description": "The user pool app client id" + }, + { + "OutputKey": "IdentityPoolId", + "OutputValue": "us-east-1:ad436de3-7529-46d9-be87-050ea1dd015c", + "Description": "Id for the identity pool" + }, + { + "OutputKey": "UserPoolArn", + "OutputValue": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_cI3qDOXA2", + "Description": "Arn for the user pool" + }, + { + "OutputKey": "IdentityPoolName", + "OutputValue": "backendonlyf8c4c57b_identitypool_f8c4c57b__x" + }, + { + "OutputKey": "UserPoolName", + "OutputValue": "backendonlyf8c4c57b_userpool_f8c4c57b" + } +] diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-authbackendonlyf8c4c57b-x.parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-authbackendonlyf8c4c57b-x.parameters.json new file mode 100644 index 00000000000..0f2a056d0f1 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-authbackendonlyf8c4c57b-x.parameters.json @@ -0,0 +1,146 @@ +[ + { + "ParameterKey": "usernameAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "authRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-backendonly-x-x-authRole" + }, + { + "ParameterKey": "autoVerifiedAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "allowUnauthenticatedIdentities", + "ParameterValue": "true" + }, + { + "ParameterKey": "smsVerificationMessage", + "ParameterValue": "Your verification code is {####}" + }, + { + "ParameterKey": "userpoolClientReadAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "breakCircularDependency", + "ParameterValue": "true" + }, + { + "ParameterKey": "mfaTypes", + "ParameterValue": "SMS Text Message" + }, + { + "ParameterKey": "emailVerificationSubject", + "ParameterValue": "Your verification code" + }, + { + "ParameterKey": "sharedId", + "ParameterValue": "f8c4c57b" + }, + { + "ParameterKey": "useDefault", + "ParameterValue": "default" + }, + { + "ParameterKey": "userpoolClientGenerateSecret", + "ParameterValue": "false" + }, + { + "ParameterKey": "mfaConfiguration", + "ParameterValue": "OFF" + }, + { + "ParameterKey": "identityPoolName", + "ParameterValue": "backendonlyf8c4c57b_identitypool_f8c4c57b" + }, + { + "ParameterKey": "userPoolGroupList", + "ParameterValue": "" + }, + { + "ParameterKey": "authSelections", + "ParameterValue": "identityPoolAndUserPool" + }, + { + "ParameterKey": "resourceNameTruncated", + "ParameterValue": "backenf8c4c57b" + }, + { + "ParameterKey": "smsAuthenticationMessage", + "ParameterValue": "Your authentication code is {####}" + }, + { + "ParameterKey": "passwordPolicyMinLength", + "ParameterValue": "8" + }, + { + "ParameterKey": "userPoolName", + "ParameterValue": "backendonlyf8c4c57b_userpool_f8c4c57b" + }, + { + "ParameterKey": "userpoolClientWriteAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "dependsOn", + "ParameterValue": "" + }, + { + "ParameterKey": "useEnabledMfas", + "ParameterValue": "true" + }, + { + "ParameterKey": "usernameCaseSensitive", + "ParameterValue": "false" + }, + { + "ParameterKey": "resourceName", + "ParameterValue": "backendonlyf8c4c57b" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "serviceName", + "ParameterValue": "Cognito" + }, + { + "ParameterKey": "emailVerificationMessage", + "ParameterValue": "Your verification code is {####}" + }, + { + "ParameterKey": "userpoolClientRefreshTokenValidity", + "ParameterValue": "30" + }, + { + "ParameterKey": "userpoolClientSetAttributes", + "ParameterValue": "false" + }, + { + "ParameterKey": "unauthRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-backendonly-x-x-unauthRole" + }, + { + "ParameterKey": "requiredAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "passwordPolicyCharacters", + "ParameterValue": "" + }, + { + "ParameterKey": "aliasAttributes", + "ParameterValue": "" + }, + { + "ParameterKey": "userpoolClientLambdaRole", + "ParameterValue": "backenf8c4c57b_userpoolclient_lambda_role" + }, + { + "ParameterKey": "defaultPasswordPolicy", + "ParameterValue": "false" + } +] diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-authbackendonlyf8c4c57b-x.template.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-authbackendonlyf8c4c57b-x.template.json new file mode 100644 index 00000000000..678f4481b94 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-authbackendonlyf8c4c57b-x.template.json @@ -0,0 +1,413 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "identityPoolName": { + "Type": "String" + }, + "allowUnauthenticatedIdentities": { + "Type": "String" + }, + "resourceNameTruncated": { + "Type": "String" + }, + "userPoolName": { + "Type": "String" + }, + "autoVerifiedAttributes": { + "Type": "CommaDelimitedList" + }, + "mfaConfiguration": { + "Type": "String" + }, + "mfaTypes": { + "Type": "CommaDelimitedList" + }, + "smsAuthenticationMessage": { + "Type": "String" + }, + "smsVerificationMessage": { + "Type": "String" + }, + "emailVerificationSubject": { + "Type": "String" + }, + "emailVerificationMessage": { + "Type": "String" + }, + "defaultPasswordPolicy": { + "Type": "String" + }, + "passwordPolicyMinLength": { + "Type": "String" + }, + "passwordPolicyCharacters": { + "Type": "CommaDelimitedList" + }, + "requiredAttributes": { + "Type": "CommaDelimitedList" + }, + "aliasAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientGenerateSecret": { + "Type": "String" + }, + "userpoolClientRefreshTokenValidity": { + "Type": "String" + }, + "userpoolClientWriteAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientReadAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientLambdaRole": { + "Type": "String" + }, + "userpoolClientSetAttributes": { + "Type": "String" + }, + "sharedId": { + "Type": "String" + }, + "resourceName": { + "Type": "String" + }, + "authSelections": { + "Type": "String" + }, + "useDefault": { + "Type": "String" + }, + "usernameAttributes": { + "Type": "CommaDelimitedList" + }, + "userPoolGroupList": { + "Type": "CommaDelimitedList" + }, + "serviceName": { + "Type": "String" + }, + "usernameCaseSensitive": { + "Type": "String" + }, + "useEnabledMfas": { + "Type": "String" + }, + "authRoleArn": { + "Type": "String" + }, + "unauthRoleArn": { + "Type": "String" + }, + "breakCircularDependency": { + "Type": "String" + }, + "dependsOn": { + "Type": "CommaDelimitedList" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + } + }, + "Resources": { + "UserPool": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": { + "Ref": "emailVerificationMessage" + }, + "EmailVerificationSubject": { + "Ref": "emailVerificationSubject" + }, + "MfaConfiguration": { + "Ref": "mfaConfiguration" + }, + "Policies": { + "PasswordPolicy": { + "MinimumLength": { + "Ref": "passwordPolicyMinLength" + }, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + { + "Ref": "userPoolName" + }, + { + "Fn::Join": [ + "", + [ + { + "Ref": "userPoolName" + }, + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "UsernameAttributes": { + "Ref": "usernameAttributes" + }, + "UsernameConfiguration": { + "CaseSensitive": false + } + } + }, + "UserPoolClientWeb": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "backenf8c4c57b_app_clientWeb", + "RefreshTokenValidity": { + "Ref": "userpoolClientRefreshTokenValidity" + }, + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": { + "Ref": "UserPool" + } + }, + "DependsOn": [ + "UserPool" + ] + }, + "UserPoolClient": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "backenf8c4c57b_app_client", + "GenerateSecret": { + "Ref": "userpoolClientGenerateSecret" + }, + "RefreshTokenValidity": { + "Ref": "userpoolClientRefreshTokenValidity" + }, + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": { + "Ref": "UserPool" + } + }, + "DependsOn": [ + "UserPool" + ] + }, + "UserPoolClientRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + }, + "Action": "sts:AssumeRole" + } + ] + }, + "RoleName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + { + "Ref": "userpoolClientLambdaRole" + }, + { + "Fn::Join": [ + "", + [ + "upClientLambdaRolef8c4c57b", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + { + "Ref": "AWS::StackName" + } + ] + } + ] + }, + "-", + { + "Ref": "env" + } + ] + ] + } + ] + } + } + }, + "IdentityPool": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": { + "Ref": "allowUnauthenticatedIdentities" + }, + "CognitoIdentityProviders": [ + { + "ClientId": { + "Ref": "UserPoolClient" + }, + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": { + "Ref": "UserPool" + } + } + ] + } + }, + { + "ClientId": { + "Ref": "UserPoolClientWeb" + }, + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": { + "Ref": "UserPool" + } + } + ] + } + } + ], + "IdentityPoolName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "backendonlyf8c4c57b_identitypool_f8c4c57b", + { + "Fn::Join": [ + "", + [ + "backendonlyf8c4c57b_identitypool_f8c4c57b__", + { + "Ref": "env" + } + ] + ] + } + ] + } + } + }, + "IdentityPoolRoleMap": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": { + "Ref": "IdentityPool" + }, + "Roles": { + "unauthenticated": { + "Ref": "unauthRoleArn" + }, + "authenticated": { + "Ref": "authRoleArn" + } + } + }, + "DependsOn": [ + "IdentityPool" + ] + } + }, + "Outputs": { + "IdentityPoolId": { + "Description": "Id for the identity pool", + "Value": { + "Ref": "IdentityPool" + } + }, + "IdentityPoolName": { + "Value": { + "Fn::GetAtt": [ + "IdentityPool", + "Name" + ] + } + }, + "UserPoolId": { + "Description": "Id for the user pool", + "Value": { + "Ref": "UserPool" + } + }, + "UserPoolArn": { + "Description": "Arn for the user pool", + "Value": { + "Fn::GetAtt": [ + "UserPool", + "Arn" + ] + } + }, + "UserPoolName": { + "Value": { + "Ref": "userPoolName" + } + }, + "AppClientIDWeb": { + "Description": "The user pool app client id for web", + "Value": { + "Ref": "UserPoolClientWeb" + } + }, + "AppClientID": { + "Description": "The user pool app client id", + "Value": { + "Ref": "UserPoolClient" + } + } + } +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-functionquotegeneratorbe-x.description.txt b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-functionquotegeneratorbe-x.description.txt new file mode 100644 index 00000000000..6cc2b5048c0 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-functionquotegeneratorbe-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"function-Lambda","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-functionquotegeneratorbe-x.outputs.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-functionquotegeneratorbe-x.outputs.json new file mode 100644 index 00000000000..aae299ab446 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-functionquotegeneratorbe-x.outputs.json @@ -0,0 +1,22 @@ +[ + { + "OutputKey": "LambdaExecutionRoleArn", + "OutputValue": "arn:aws:iam::123456789012:role/backendonlyLambdaRole8a0d8e62-x" + }, + { + "OutputKey": "Region", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "Arn", + "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:quotegeneratorbe-x" + }, + { + "OutputKey": "Name", + "OutputValue": "quotegeneratorbe-x" + }, + { + "OutputKey": "LambdaExecutionRole", + "OutputValue": "backendonlyLambdaRole8a0d8e62-x" + } +] diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-functionquotegeneratorbe-x.parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-functionquotegeneratorbe-x.parameters.json new file mode 100644 index 00000000000..6edc1d8b4b0 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-functionquotegeneratorbe-x.parameters.json @@ -0,0 +1,18 @@ +[ + { + "ParameterKey": "CloudWatchRule", + "ParameterValue": "NONE" + }, + { + "ParameterKey": "s3Key", + "ParameterValue": "amplify-builds/quotegeneratorbe-513654756a51615a5779-build.zip" + }, + { + "ParameterKey": "deploymentBucketName", + "ParameterValue": "amplify-backendonly-x-x-deployment" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + } +] diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-functionquotegeneratorbe-x.template.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-functionquotegeneratorbe-x.template.json new file mode 100644 index 00000000000..880ce3bd4a4 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-functionquotegeneratorbe-x.template.json @@ -0,0 +1,202 @@ +{ + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Parameters": { + "CloudWatchRule": { + "Type": "String", + "Default": "NONE", + "Description": " Schedule Expression" + }, + "deploymentBucketName": { + "Type": "String" + }, + "env": { + "Type": "String" + }, + "s3Key": { + "Type": "String" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + } + }, + "Resources": { + "LambdaFunction": { + "Type": "AWS::Lambda::Function", + "Metadata": { + "aws:asset:path": "./src", + "aws:asset:property": "Code" + }, + "Properties": { + "Code": { + "S3Bucket": { + "Ref": "deploymentBucketName" + }, + "S3Key": { + "Ref": "s3Key" + } + }, + "Handler": "index.handler", + "FunctionName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "quotegeneratorbe", + { + "Fn::Join": [ + "", + [ + "quotegeneratorbe", + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "Environment": { + "Variables": { + "ENV": { + "Ref": "env" + }, + "REGION": { + "Ref": "AWS::Region" + } + } + }, + "Role": { + "Fn::GetAtt": [ + "LambdaExecutionRole", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Layers": [], + "Timeout": 25 + } + }, + "LambdaExecutionRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "RoleName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "backendonlyLambdaRole8a0d8e62", + { + "Fn::Join": [ + "", + [ + "backendonlyLambdaRole8a0d8e62", + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": [ + "lambda.amazonaws.com" + ] + }, + "Action": [ + "sts:AssumeRole" + ] + } + ] + } + } + }, + "lambdaexecutionpolicy": { + "DependsOn": [ + "LambdaExecutionRole" + ], + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyName": "lambda-execution-policy", + "Roles": [ + { + "Ref": "LambdaExecutionRole" + } + ], + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "logs:CreateLogGroup", + "logs:CreateLogStream", + "logs:PutLogEvents" + ], + "Resource": { + "Fn::Sub": [ + "arn:aws:logs:${region}:${account}:log-group:/aws/lambda/${lambda}:log-stream:*", + { + "region": { + "Ref": "AWS::Region" + }, + "account": { + "Ref": "AWS::AccountId" + }, + "lambda": { + "Ref": "LambdaFunction" + } + } + ] + } + } + ] + } + } + } + }, + "Outputs": { + "Name": { + "Value": { + "Ref": "LambdaFunction" + } + }, + "Arn": { + "Value": { + "Fn::GetAtt": [ + "LambdaFunction", + "Arn" + ] + } + }, + "Region": { + "Value": { + "Ref": "AWS::Region" + } + }, + "LambdaExecutionRole": { + "Value": { + "Ref": "LambdaExecutionRole" + } + }, + "LambdaExecutionRoleArn": { + "Value": { + "Fn::GetAtt": [ + "LambdaExecutionRole", + "Arn" + ] + } + } + } +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-storages3c31471c3-x.description.txt b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-storages3c31471c3-x.description.txt new file mode 100644 index 00000000000..e01eac85f24 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-storages3c31471c3-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"storage-S3","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-storages3c31471c3-x.outputs.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-storages3c31471c3-x.outputs.json new file mode 100644 index 00000000000..2225caf55f3 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-storages3c31471c3-x.outputs.json @@ -0,0 +1,11 @@ +[ + { + "OutputKey": "BucketName", + "OutputValue": "backendonlycb1a13ab81664ecaa7d015068ab2d016x-x", + "Description": "Bucket name for the S3 bucket" + }, + { + "OutputKey": "Region", + "OutputValue": "us-east-1" + } +] diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-storages3c31471c3-x.parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-storages3c31471c3-x.parameters.json new file mode 100644 index 00000000000..a66ebe73634 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-storages3c31471c3-x.parameters.json @@ -0,0 +1,86 @@ +[ + { + "ParameterKey": "s3PermissionsGuestPublic", + "ParameterValue": "s3:GetObject" + }, + { + "ParameterKey": "bucketName", + "ParameterValue": "backendonlycb1a13ab81664ecaa7d015068ab2d016" + }, + { + "ParameterKey": "s3PublicPolicy", + "ParameterValue": "Public_policy_c31471c3" + }, + { + "ParameterKey": "AuthenticatedAllowList", + "ParameterValue": "ALLOW" + }, + { + "ParameterKey": "unauthRoleName", + "ParameterValue": "amplify-backendonly-x-x-unauthRole" + }, + { + "ParameterKey": "s3PrivatePolicy", + "ParameterValue": "Private_policy_c31471c3" + }, + { + "ParameterKey": "selectedGuestPermissions", + "ParameterValue": "s3:GetObject,s3:ListBucket" + }, + { + "ParameterKey": "s3PermissionsAuthenticatedPublic", + "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" + }, + { + "ParameterKey": "s3PermissionsAuthenticatedPrivate", + "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" + }, + { + "ParameterKey": "s3PermissionsAuthenticatedUploads", + "ParameterValue": "s3:PutObject" + }, + { + "ParameterKey": "s3UploadsPolicy", + "ParameterValue": "Uploads_policy_c31471c3" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "unauthPolicyName", + "ParameterValue": "s3_amplify_c31471c3" + }, + { + "ParameterKey": "authRoleName", + "ParameterValue": "amplify-backendonly-x-x-authRole" + }, + { + "ParameterKey": "GuestAllowList", + "ParameterValue": "ALLOW" + }, + { + "ParameterKey": "authPolicyName", + "ParameterValue": "s3_amplify_c31471c3" + }, + { + "ParameterKey": "s3ProtectedPolicy", + "ParameterValue": "Protected_policy_c31471c3" + }, + { + "ParameterKey": "s3PermissionsAuthenticatedProtected", + "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" + }, + { + "ParameterKey": "s3PermissionsGuestUploads", + "ParameterValue": "DISALLOW" + }, + { + "ParameterKey": "s3ReadPolicy", + "ParameterValue": "read_policy_c31471c3" + }, + { + "ParameterKey": "selectedAuthenticatedPermissions", + "ParameterValue": "s3:PutObject,s3:GetObject,s3:ListBucket,s3:DeleteObject" + } +] diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-storages3c31471c3-x.template.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-storages3c31471c3-x.template.json new file mode 100644 index 00000000000..204a64677c8 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x-storages3c31471c3-x.template.json @@ -0,0 +1,646 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-S3\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "bucketName": { + "Type": "String" + }, + "authRoleName": { + "Type": "String" + }, + "unauthRoleName": { + "Type": "String" + }, + "authPolicyName": { + "Type": "String" + }, + "unauthPolicyName": { + "Type": "String" + }, + "s3PublicPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3PrivatePolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3ProtectedPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3UploadsPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3ReadPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3PermissionsAuthenticatedPublic": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedProtected": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedPrivate": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedUploads": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsGuestPublic": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsGuestUploads": { + "Type": "String", + "Default": "DISALLOW" + }, + "AuthenticatedAllowList": { + "Type": "String", + "Default": "DISALLOW" + }, + "GuestAllowList": { + "Type": "String", + "Default": "DISALLOW" + }, + "selectedGuestPermissions": { + "Type": "CommaDelimitedList", + "Default": "NONE" + }, + "selectedAuthenticatedPermissions": { + "Type": "CommaDelimitedList", + "Default": "NONE" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + }, + "CreateAuthPublic": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "s3PermissionsAuthenticatedPublic" + }, + "DISALLOW" + ] + } + ] + }, + "CreateAuthProtected": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "s3PermissionsAuthenticatedProtected" + }, + "DISALLOW" + ] + } + ] + }, + "CreateAuthPrivate": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "s3PermissionsAuthenticatedPrivate" + }, + "DISALLOW" + ] + } + ] + }, + "CreateAuthUploads": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "s3PermissionsAuthenticatedUploads" + }, + "DISALLOW" + ] + } + ] + }, + "CreateGuestPublic": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "s3PermissionsGuestPublic" + }, + "DISALLOW" + ] + } + ] + }, + "CreateGuestUploads": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "s3PermissionsGuestUploads" + }, + "DISALLOW" + ] + } + ] + }, + "AuthReadAndList": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "AuthenticatedAllowList" + }, + "DISALLOW" + ] + } + ] + }, + "GuestReadAndList": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "GuestAllowList" + }, + "DISALLOW" + ] + } + ] + } + }, + "Outputs": { + "BucketName": { + "Description": "Bucket name for the S3 bucket", + "Value": { + "Ref": "S3Bucket" + } + }, + "Region": { + "Value": { + "Ref": "AWS::Region" + } + } + }, + "Resources": { + "S3Bucket": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + { + "Ref": "bucketName" + }, + { + "Fn::Join": [ + "", + [ + { + "Ref": "bucketName" + }, + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + { + "Ref": "AWS::StackName" + } + ] + } + ] + }, + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "Id": "S3CORSRuleId1", + "MaxAge": 3000 + } + ] + }, + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + } + }, + "UpdateReplacePolicy": "Retain", + "DeletionPolicy": "Retain" + }, + "S3AuthPublicPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + { + "Ref": "s3PermissionsAuthenticatedPublic" + } + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + }, + "/public/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": { + "Ref": "s3PublicPolicy" + }, + "Roles": [ + { + "Ref": "authRoleName" + } + ] + }, + "DependsOn": [ + "S3Bucket" + ], + "Condition": "CreateAuthPublic" + }, + "S3AuthProtectedPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + { + "Ref": "s3PermissionsAuthenticatedProtected" + } + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + }, + "/protected/${cognito-identity.amazonaws.com:sub}/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": { + "Ref": "s3ProtectedPolicy" + }, + "Roles": [ + { + "Ref": "authRoleName" + } + ] + }, + "DependsOn": [ + "S3Bucket" + ], + "Condition": "CreateAuthProtected" + }, + "S3AuthPrivatePolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + { + "Ref": "s3PermissionsAuthenticatedPrivate" + } + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + }, + "/private/${cognito-identity.amazonaws.com:sub}/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": { + "Ref": "s3PrivatePolicy" + }, + "Roles": [ + { + "Ref": "authRoleName" + } + ] + }, + "DependsOn": [ + "S3Bucket" + ], + "Condition": "CreateAuthPrivate" + }, + "S3AuthUploadPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + { + "Ref": "s3PermissionsAuthenticatedUploads" + } + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + }, + "/uploads/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": { + "Ref": "s3UploadsPolicy" + }, + "Roles": [ + { + "Ref": "authRoleName" + } + ] + }, + "DependsOn": [ + "S3Bucket" + ], + "Condition": "CreateAuthUploads" + }, + "S3GuestPublicPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + { + "Ref": "s3PermissionsGuestPublic" + } + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + }, + "/public/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": { + "Ref": "s3PublicPolicy" + }, + "Roles": [ + { + "Ref": "unauthRoleName" + } + ] + }, + "DependsOn": [ + "S3Bucket" + ], + "Condition": "CreateGuestPublic" + }, + "S3AuthReadPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + }, + "/protected/*" + ] + ] + } + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/", + "public/*", + "protected/", + "protected/*", + "private/${cognito-identity.amazonaws.com:sub}/", + "private/${cognito-identity.amazonaws.com:sub}/*" + ] + } + }, + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + } + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": { + "Ref": "s3ReadPolicy" + }, + "Roles": [ + { + "Ref": "authRoleName" + } + ] + }, + "DependsOn": [ + "S3Bucket" + ], + "Condition": "AuthReadAndList" + }, + "S3GuestReadPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + }, + "/protected/*" + ] + ] + } + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/", + "public/*", + "protected/", + "protected/*" + ] + } + }, + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + } + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": { + "Ref": "s3ReadPolicy" + }, + "Roles": [ + { + "Ref": "unauthRoleName" + } + ] + }, + "DependsOn": [ + "S3Bucket" + ], + "Condition": "GuestReadAndList" + } + } +} diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x.description.txt b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x.description.txt new file mode 100644 index 00000000000..6e1d8ff2351 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x.description.txt @@ -0,0 +1 @@ +Root Stack for AWS Amplify CLI diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x.outputs.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x.outputs.json new file mode 100644 index 00000000000..332488f1d63 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x.outputs.json @@ -0,0 +1,42 @@ +[ + { + "OutputKey": "AuthRoleName", + "OutputValue": "amplify-backendonly-x-x-authRole" + }, + { + "OutputKey": "UnauthRoleArn", + "OutputValue": "arn:aws:iam::123456789012:role/amplify-backendonly-x-x-unauthRole" + }, + { + "OutputKey": "AuthRoleArn", + "OutputValue": "arn:aws:iam::123456789012:role/amplify-backendonly-x-x-authRole" + }, + { + "OutputKey": "Region", + "OutputValue": "us-east-1", + "Description": "CloudFormation provider root stack Region", + "ExportName": "amplify-backendonly-x-x-Region" + }, + { + "OutputKey": "DeploymentBucketName", + "OutputValue": "amplify-backendonly-x-x-deployment", + "Description": "CloudFormation provider root stack deployment bucket name", + "ExportName": "amplify-backendonly-x-x-DeploymentBucketName" + }, + { + "OutputKey": "UnauthRoleName", + "OutputValue": "amplify-backendonly-x-x-unauthRole" + }, + { + "OutputKey": "StackName", + "OutputValue": "amplify-backendonly-x-x", + "Description": "CloudFormation provider root stack ID", + "ExportName": "amplify-backendonly-x-x-StackName" + }, + { + "OutputKey": "StackId", + "OutputValue": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-backendonly-x-x/53088ca0-387e-11f1-b94b-12f2170fbccd", + "Description": "CloudFormation provider root stack name", + "ExportName": "amplify-backendonly-x-x-StackId" + } +] diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x.parameters.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x.parameters.json new file mode 100644 index 00000000000..61f0d1f2bec --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x.parameters.json @@ -0,0 +1,14 @@ +[ + { + "ParameterKey": "AuthRoleName", + "ParameterValue": "amplify-backendonly-x-x-authRole" + }, + { + "ParameterKey": "DeploymentBucketName", + "ParameterValue": "amplify-backendonly-x-x-deployment" + }, + { + "ParameterKey": "UnauthRoleName", + "ParameterValue": "amplify-backendonly-x-x-unauthRole" + } +] diff --git a/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x.template.json b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x.template.json new file mode 100644 index 00000000000..3ddfd6ce1b9 --- /dev/null +++ b/amplify-migration-apps/backend-only/_snapshot.pre.refactor/amplify-backendonly-x-x.template.json @@ -0,0 +1,524 @@ +{ + "Description": "Root Stack for AWS Amplify CLI", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "DeploymentBucketName": { + "Type": "String", + "Default": "DeploymentBucket", + "Description": "Name of the common deployment bucket provided by the parent stack" + }, + "AuthRoleName": { + "Type": "String", + "Default": "AuthRoleName", + "Description": "Name of the common deployment bucket provided by the parent stack" + }, + "UnauthRoleName": { + "Type": "String", + "Default": "UnAuthRoleName", + "Description": "Name of the common deployment bucket provided by the parent stack" + } + }, + "Outputs": { + "Region": { + "Description": "CloudFormation provider root stack Region", + "Value": { + "Ref": "AWS::Region" + }, + "Export": { + "Name": { + "Fn::Sub": "${AWS::StackName}-Region" + } + } + }, + "StackName": { + "Description": "CloudFormation provider root stack ID", + "Value": { + "Ref": "AWS::StackName" + }, + "Export": { + "Name": { + "Fn::Sub": "${AWS::StackName}-StackName" + } + } + }, + "StackId": { + "Description": "CloudFormation provider root stack name", + "Value": { + "Ref": "AWS::StackId" + }, + "Export": { + "Name": { + "Fn::Sub": "${AWS::StackName}-StackId" + } + } + }, + "AuthRoleArn": { + "Value": { + "Fn::GetAtt": [ + "AuthRole", + "Arn" + ] + } + }, + "UnauthRoleArn": { + "Value": { + "Fn::GetAtt": [ + "UnauthRole", + "Arn" + ] + } + }, + "DeploymentBucketName": { + "Description": "CloudFormation provider root stack deployment bucket name", + "Value": { + "Ref": "DeploymentBucketName" + }, + "Export": { + "Name": { + "Fn::Sub": "${AWS::StackName}-DeploymentBucketName" + } + } + }, + "AuthRoleName": { + "Value": { + "Ref": "AuthRole" + } + }, + "UnauthRoleName": { + "Value": { + "Ref": "UnauthRole" + } + } + }, + "Resources": { + "DeploymentBucket": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketName": { + "Ref": "DeploymentBucketName" + }, + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + } + }, + "UpdateReplacePolicy": "Retain", + "DeletionPolicy": "Retain" + }, + "DeploymentBucketBlockHTTP": { + "Type": "AWS::S3::BucketPolicy", + "Properties": { + "Bucket": { + "Ref": "DeploymentBucketName" + }, + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:*", + "Effect": "Deny", + "Principal": "*", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "DeploymentBucketName" + }, + "/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "DeploymentBucketName" + } + ] + ] + } + ], + "Condition": { + "Bool": { + "aws:SecureTransport": false + } + } + } + ] + } + } + }, + "AuthRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Sid": "", + "Effect": "Deny", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + }, + "Action": "sts:AssumeRoleWithWebIdentity" + } + ] + }, + "RoleName": { + "Ref": "AuthRoleName" + } + } + }, + "UnauthRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Sid": "", + "Effect": "Deny", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + }, + "Action": "sts:AssumeRoleWithWebIdentity" + } + ] + }, + "RoleName": { + "Ref": "UnauthRoleName" + } + } + }, + "authbackendonlyf8c4c57b": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-x-x-deployment/amplify-cfn-templates/auth/backendonlyf8c4c57b-cloudformation-template.json", + "Parameters": { + "identityPoolName": "backendonlyf8c4c57b_identitypool_f8c4c57b", + "allowUnauthenticatedIdentities": true, + "resourceNameTruncated": "backenf8c4c57b", + "userPoolName": "backendonlyf8c4c57b_userpool_f8c4c57b", + "autoVerifiedAttributes": "email", + "mfaConfiguration": "OFF", + "mfaTypes": "SMS Text Message", + "smsAuthenticationMessage": "Your authentication code is {####}", + "smsVerificationMessage": "Your verification code is {####}", + "emailVerificationSubject": "Your verification code", + "emailVerificationMessage": "Your verification code is {####}", + "defaultPasswordPolicy": false, + "passwordPolicyMinLength": 8, + "passwordPolicyCharacters": "", + "requiredAttributes": "email", + "aliasAttributes": "", + "userpoolClientGenerateSecret": false, + "userpoolClientRefreshTokenValidity": 30, + "userpoolClientWriteAttributes": "email", + "userpoolClientReadAttributes": "email", + "userpoolClientLambdaRole": "backenf8c4c57b_userpoolclient_lambda_role", + "userpoolClientSetAttributes": false, + "sharedId": "f8c4c57b", + "resourceName": "backendonlyf8c4c57b", + "authSelections": "identityPoolAndUserPool", + "useDefault": "default", + "usernameAttributes": "email", + "userPoolGroupList": "", + "serviceName": "Cognito", + "usernameCaseSensitive": false, + "useEnabledMfas": true, + "authRoleArn": { + "Fn::GetAtt": [ + "AuthRole", + "Arn" + ] + }, + "unauthRoleArn": { + "Fn::GetAtt": [ + "UnauthRole", + "Arn" + ] + }, + "breakCircularDependency": true, + "dependsOn": "", + "env": "x" + } + } + }, + "apibackendonly": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "Parameters": { + "AppSyncApiName": "backendonly", + "DynamoDBBillingMode": "PAY_PER_REQUEST", + "DynamoDBEnableServerSideEncryption": false, + "AuthCognitoUserPoolId": { + "Fn::GetAtt": [ + "authbackendonlyf8c4c57b", + "Outputs.UserPoolId" + ] + }, + "S3DeploymentBucket": "amplify-backendonly-x-x-deployment", + "S3DeploymentRootKey": "amplify-appsync-files/47418d5f9df78fb8fa9acaa5bd04a81ebc30971b", + "env": "x" + } + } + }, + "storages3c31471c3": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-x-x-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "Parameters": { + "bucketName": "backendonlycb1a13ab81664ecaa7d015068ab2d016", + "selectedGuestPermissions": "s3:GetObject,s3:ListBucket", + "selectedAuthenticatedPermissions": "s3:PutObject,s3:GetObject,s3:ListBucket,s3:DeleteObject", + "unauthRoleName": { + "Ref": "UnauthRoleName" + }, + "authRoleName": { + "Ref": "AuthRoleName" + }, + "s3PrivatePolicy": "Private_policy_c31471c3", + "s3ProtectedPolicy": "Protected_policy_c31471c3", + "s3PublicPolicy": "Public_policy_c31471c3", + "s3ReadPolicy": "read_policy_c31471c3", + "s3UploadsPolicy": "Uploads_policy_c31471c3", + "authPolicyName": "s3_amplify_c31471c3", + "unauthPolicyName": "s3_amplify_c31471c3", + "AuthenticatedAllowList": "ALLOW", + "GuestAllowList": "ALLOW", + "s3PermissionsAuthenticatedPrivate": "s3:PutObject,s3:GetObject,s3:DeleteObject", + "s3PermissionsAuthenticatedProtected": "s3:PutObject,s3:GetObject,s3:DeleteObject", + "s3PermissionsAuthenticatedPublic": "s3:PutObject,s3:GetObject,s3:DeleteObject", + "s3PermissionsAuthenticatedUploads": "s3:PutObject", + "s3PermissionsGuestPublic": "s3:GetObject", + "s3PermissionsGuestUploads": "DISALLOW", + "env": "x" + } + } + }, + "functionquotegeneratorbe": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-backendonly-x-x-deployment/amplify-cfn-templates/function/quotegeneratorbe-cloudformation-template.json", + "Parameters": { + "deploymentBucketName": "amplify-backendonly-x-x-deployment", + "s3Key": "amplify-builds/quotegeneratorbe-513654756a51615a5779-build.zip", + "env": "x" + } + } + }, + "UpdateRolesWithIDPFunction": { + "DependsOn": [ + "AuthRole", + "UnauthRole", + "authbackendonlyf8c4c57b" + ], + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "ZipFile": { + "Fn::Join": [ + "\n", + [ + "const response = require('cfn-response');", + "const { IAMClient, GetRoleCommand, UpdateAssumeRolePolicyCommand } = require('@aws-sdk/client-iam');", + "exports.handler = function(event, context) {", + " // Don't return promise, response.send() marks context as done internally", + " const ignoredPromise = handleEvent(event, context)", + "};", + "async function handleEvent(event, context) {", + " try {", + " let authRoleName = event.ResourceProperties.authRoleName;", + " let unauthRoleName = event.ResourceProperties.unauthRoleName;", + " let idpId = event.ResourceProperties.idpId;", + " let authParamsJson = {", + " 'Version': '2012-10-17',", + " 'Statement': [{", + " 'Effect': 'Allow',", + " 'Principal': {'Federated': 'cognito-identity.amazonaws.com'},", + " 'Action': 'sts:AssumeRoleWithWebIdentity',", + " 'Condition': {", + " 'StringEquals': {'cognito-identity.amazonaws.com:aud': idpId},", + " 'ForAnyValue:StringLike': {'cognito-identity.amazonaws.com:amr': 'authenticated'}", + " }", + " }]", + " };", + " let unauthParamsJson = {", + " 'Version': '2012-10-17',", + " 'Statement': [{", + " 'Effect': 'Allow',", + " 'Principal': {'Federated': 'cognito-identity.amazonaws.com'},", + " 'Action': 'sts:AssumeRoleWithWebIdentity',", + " 'Condition': {", + " 'StringEquals': {'cognito-identity.amazonaws.com:aud': idpId},", + " 'ForAnyValue:StringLike': {'cognito-identity.amazonaws.com:amr': 'unauthenticated'}", + " }", + " }]", + " };", + " if (event.RequestType === 'Delete') {", + " try {", + " delete authParamsJson.Statement[0].Condition;", + " delete unauthParamsJson.Statement[0].Condition;", + " authParamsJson.Statement[0].Effect = 'Deny'", + " unauthParamsJson.Statement[0].Effect = 'Deny'", + " let authParams = {PolicyDocument: JSON.stringify(authParamsJson), RoleName: authRoleName};", + " let unauthParams = {PolicyDocument: JSON.stringify(unauthParamsJson), RoleName: unauthRoleName};", + " const iam = new IAMClient({region: event.ResourceProperties.region});", + " let res = await Promise.all([", + " iam.send(new GetRoleCommand({RoleName: authParams.RoleName})),", + " iam.send(new GetRoleCommand({RoleName: unauthParams.RoleName}))", + " ]);", + " res = await Promise.all([", + " iam.send(new UpdateAssumeRolePolicyCommand(authParams)),", + " iam.send(new UpdateAssumeRolePolicyCommand(unauthParams))", + " ]);", + " response.send(event, context, response.SUCCESS, {});", + " } catch (err) {", + " console.log(err.stack);", + " response.send(event, context, response.SUCCESS, {Error: err});", + " }", + " } else if (event.RequestType === 'Update' || event.RequestType === 'Create') {", + " const iam = new IAMClient({region: event.ResourceProperties.region});", + " let authParams = {PolicyDocument: JSON.stringify(authParamsJson), RoleName: authRoleName};", + " let unauthParams = {PolicyDocument: JSON.stringify(unauthParamsJson), RoleName: unauthRoleName};", + " const res = await Promise.all([", + " iam.send(new UpdateAssumeRolePolicyCommand(authParams)),", + " iam.send(new UpdateAssumeRolePolicyCommand(unauthParams))", + " ]);", + " response.send(event, context, response.SUCCESS, {});", + " }", + " } catch (err) {", + " console.log(err.stack);", + " response.send(event, context, response.FAILED, {Error: err});", + " }", + "};" + ] + ] + } + }, + "Handler": "index.handler", + "Runtime": "nodejs22.x", + "Timeout": 300, + "Role": { + "Fn::GetAtt": [ + "UpdateRolesWithIDPFunctionRole", + "Arn" + ] + } + } + }, + "UpdateRolesWithIDPFunctionOutputs": { + "Type": "Custom::LambdaCallout", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "UpdateRolesWithIDPFunction", + "Arn" + ] + }, + "region": { + "Ref": "AWS::Region" + }, + "idpId": { + "Fn::GetAtt": [ + "authbackendonlyf8c4c57b", + "Outputs.IdentityPoolId" + ] + }, + "authRoleName": { + "Ref": "AuthRole" + }, + "unauthRoleName": { + "Ref": "UnauthRole" + } + } + }, + "UpdateRolesWithIDPFunctionRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "RoleName": { + "Fn::Join": [ + "", + [ + { + "Ref": "AuthRole" + }, + "-idp" + ] + ] + }, + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": [ + "lambda.amazonaws.com" + ] + }, + "Action": [ + "sts:AssumeRole" + ] + } + ] + }, + "Policies": [ + { + "PolicyName": "UpdateRolesWithIDPFunctionPolicy", + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "logs:CreateLogGroup", + "logs:CreateLogStream", + "logs:PutLogEvents" + ], + "Resource": "arn:aws:logs:*:*:*" + }, + { + "Effect": "Allow", + "Action": [ + "iam:UpdateAssumeRolePolicy", + "iam:GetRole" + ], + "Resource": { + "Fn::GetAtt": [ + "AuthRole", + "Arn" + ] + } + }, + { + "Effect": "Allow", + "Action": [ + "iam:UpdateAssumeRolePolicy", + "iam:GetRole" + ], + "Resource": { + "Fn::GetAtt": [ + "UnauthRole", + "Arn" + ] + } + } + ] + } + } + ] + } + } + } +} diff --git a/amplify-migration-apps/backend-only/package.json b/amplify-migration-apps/backend-only/package.json index 138c8d69c06..391fef124e0 100644 --- a/amplify-migration-apps/backend-only/package.json +++ b/amplify-migration-apps/backend-only/package.json @@ -9,6 +9,7 @@ "scripts": { "configure": "./backend/configure.sh", "sanitize": "tsx ../sanitize.ts", + "normalize": "tsx ../normalize.ts", "typecheck": "cd _snapshot.post.generate/amplify && npx tsc --noEmit", "test:gen1": "true", "test:gen2": "true", diff --git a/amplify-migration-apps/discussions/_snapshot.post.generate/amplify.yml b/amplify-migration-apps/discussions/_snapshot.post.generate/amplify.yml index 52c312768f5..19475262460 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.generate/amplify.yml +++ b/amplify-migration-apps/discussions/_snapshot.post.generate/amplify.yml @@ -8,16 +8,11 @@ backend: - npx ampx pipeline-deploy --branch $AWS_BRANCH --app-id $AWS_APP_ID frontend: phases: - preBuild: - commands: - - npm install build: commands: - - npm run build + - mkdir dist + - touch dist/index.html artifacts: baseDirectory: dist files: - "**/*" - cache: - paths: - - node_modules/**/* diff --git a/amplify-migration-apps/discussions/_snapshot.post.generate/amplify/backend.ts b/amplify-migration-apps/discussions/_snapshot.post.generate/amplify/backend.ts index b6573ff9559..2a6696c9fff 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.generate/amplify/backend.ts +++ b/amplify-migration-apps/discussions/_snapshot.post.generate/amplify/backend.ts @@ -30,7 +30,7 @@ const activity = new Table(storageActivityStack, 'activity', { stream: StreamViewType.NEW_IMAGE, sortKey: { name: 'userId', type: AttributeType.STRING }, }); -// Add this property to the Table above post refactor: tableName: 'activity-main' +// Add this property to the Table above post refactor: tableName: 'activity-x' activity.addGlobalSecondaryIndex({ indexName: 'byUserId', partitionKey: { name: 'userId', type: AttributeType.STRING }, @@ -47,7 +47,7 @@ const bookmarks = new Table(storageBookmarksStack, 'bookmarks', { stream: StreamViewType.NEW_IMAGE, sortKey: { name: 'postId', type: AttributeType.STRING }, }); -// Add this property to the Table above post refactor: tableName: 'bookmarks-main' +// Add this property to the Table above post refactor: tableName: 'bookmarks-x' bookmarks.addGlobalSecondaryIndex({ indexName: 'byPost', partitionKey: { name: 'postId', type: AttributeType.STRING }, @@ -145,7 +145,7 @@ for (const model of ['Topic', 'Post', 'Comment']) { } const s3Bucket = backend.storage.resources.cfnResources.cfnBucket; // Use this bucket name post refactor -// s3Bucket.bucketName = 'discus-avatarsc39a5-main'; +// s3Bucket.bucketName = 'discus-avatarsx-x'; s3Bucket.bucketEncryption = { serverSideEncryptionConfiguration: [ { diff --git a/amplify-migration-apps/discussions/_snapshot.post.generate/amplify/data/resource.ts b/amplify-migration-apps/discussions/_snapshot.post.generate/amplify/data/resource.ts index 2d3a097ac7d..1b94bbd9971 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.generate/amplify/data/resource.ts +++ b/amplify-migration-apps/discussions/_snapshot.post.generate/amplify/data/resource.ts @@ -39,11 +39,11 @@ export const data = defineData({ migratedAmplifyGen1DynamoDbTableMappings: [ { //The "branchname" variable needs to be the same as your deployment branch if you want to reuse your Gen1 app tables - branchName: 'main', + branchName: 'x', modelNameToTableNameMapping: { - Topic: 'Topic-u3jn2qbupzbyhc3h53673wdvim-main', - Post: 'Post-u3jn2qbupzbyhc3h53673wdvim-main', - Comment: 'Comment-u3jn2qbupzbyhc3h53673wdvim-main', + Topic: 'Topic-xw3yrfq7mngltcua43nucy7fg4-x', + Post: 'Post-xw3yrfq7mngltcua43nucy7fg4-x', + Comment: 'Comment-xw3yrfq7mngltcua43nucy7fg4-x', }, }, ], diff --git a/amplify-migration-apps/discussions/_snapshot.post.generate/amplify/storage/resource.ts b/amplify-migration-apps/discussions/_snapshot.post.generate/amplify/storage/resource.ts index 771ac52715d..ad460cf1543 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.generate/amplify/storage/resource.ts +++ b/amplify-migration-apps/discussions/_snapshot.post.generate/amplify/storage/resource.ts @@ -3,7 +3,7 @@ import { defineStorage } from '@aws-amplify/backend'; const branchName = process.env.AWS_BRANCH ?? 'sandbox'; export const storage = defineStorage({ - name: `discus-avatarsc39a5-${branchName}`, + name: `discus-avatarsx-${branchName}`, access: (allow) => ({ 'public/*': [allow.authenticated.to(['write', 'read', 'delete'])], 'protected/{entity_id}/*': [ diff --git a/amplify-migration-apps/discussions/_snapshot.post.generate/package.json b/amplify-migration-apps/discussions/_snapshot.post.generate/package.json index 361bc9f7ada..b9c4c215986 100644 --- a/amplify-migration-apps/discussions/_snapshot.post.generate/package.json +++ b/amplify-migration-apps/discussions/_snapshot.post.generate/package.json @@ -10,23 +10,38 @@ "dev": "vite", "build": "vite build", "preview": "vite preview", - "configure": "./configure.sh", - "configure-schema": "./configure-schema.sh", - "configure-functions": "./configure-functions.sh", + "configure": "./backend/configure.sh", + "configure-schema": "./backend/configure-schema.sh", "sanitize": "tsx ../sanitize.ts", - "typecheck": "cd _snapshot.post.generate/amplify && npx tsc --noEmit" + "normalize": "tsx ../normalize.ts", + "typecheck": "cd _snapshot.post.generate/amplify && npx tsc --noEmit", + "test:gen1": "APP_CONFIG_PATH=${APP_CONFIG_PATH:-src/amplifyconfiguration.json} NODE_OPTIONS='--experimental-vm-modules' jest --verbose --testPathIgnorePatterns='shared-data'", + "test:gen2": "APP_CONFIG_PATH=${APP_CONFIG_PATH:-amplify_outputs.json} NODE_OPTIONS='--experimental-vm-modules' jest --verbose --testPathIgnorePatterns='shared-data'", + "test:shared-data": "NODE_OPTIONS='--experimental-vm-modules' jest --verbose tests/shared-data.test.ts", + "test:e2e": "cd ../../packages/amplify-gen2-migration-e2e-system && npx tsx src/cli.ts --app discussions --profile ${AWS_PROFILE:-default}", + "deploy": "cd ../../packages/amplify-gen2-migration-e2e-system && npx tsx src/cli.ts --app discussions --step deploy --profile ${AWS_PROFILE:-default}", + "pre-push": "true", + "post-generate": "npx tsx migration/post-generate.ts", + "post-refactor": "npx tsx migration/post-refactor.ts", + "post-sandbox": "true", + "pre-sandbox": "true", + "post-push": "true" }, "devDependencies": { "@aws-amplify/backend": "^1.18.0", "@aws-amplify/backend-cli": "^1.8.0", "@aws-amplify/backend-data": "^1.6.2", + "@aws-sdk/client-cognito-identity-provider": "^3.936.0", "@types/aws-lambda": "^8.10.92", + "@types/jest": "^29.5.14", "@types/node": "*", "aws-cdk": "^2", "aws-cdk-lib": "^2", "ci-info": "^4.3.1", "constructs": "^10.0.0", "esbuild": "^0.27.0", + "jest": "^29.7.0", + "ts-jest": "^29.3.4", "tsx": "^4.20.6", "vite": "^7.2.2" }, diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-e2e-sandbox-x-auth179371D7-x.__to__.amplify-discussions-e2e-sandbox-x-auth179371D7-x-holding.mappings.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-e2e-sandbox-x-auth179371D7-x.__to__.amplify-discussions-e2e-sandbox-x-auth179371D7-x-holding.mappings.json new file mode 100644 index 00000000000..d3186e0e7b1 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-e2e-sandbox-x-auth179371D7-x.__to__.amplify-discussions-e2e-sandbox-x-auth179371D7-x-holding.mappings.json @@ -0,0 +1,52 @@ +[ + { + "Source": { + "StackName": "amplify-discussions-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + }, + "Destination": { + "StackName": "amplify-discussions-e2e-sandbox-x-auth179371D7-x-holding", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + } + }, + { + "Source": { + "StackName": "amplify-discussions-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + }, + "Destination": { + "StackName": "amplify-discussions-e2e-sandbox-x-auth179371D7-x-holding", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + } + }, + { + "Source": { + "StackName": "amplify-discussions-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + }, + "Destination": { + "StackName": "amplify-discussions-e2e-sandbox-x-auth179371D7-x-holding", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + } + }, + { + "Source": { + "StackName": "amplify-discussions-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + }, + "Destination": { + "StackName": "amplify-discussions-e2e-sandbox-x-auth179371D7-x-holding", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + } + }, + { + "Source": { + "StackName": "amplify-discussions-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + }, + "Destination": { + "StackName": "amplify-discussions-e2e-sandbox-x-auth179371D7-x-holding", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + } + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-e2e-sandbox-x-auth179371D7-x.__to__.amplify-discussions-e2e-sandbox-x-auth179371D7-x-holding.source.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-e2e-sandbox-x-auth179371D7-x.__to__.amplify-discussions-e2e-sandbox-x-auth179371D7-x-holding.source.template.json new file mode 100644 index 00000000000..c5b233dc6b9 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-e2e-sandbox-x-auth179371D7-x.__to__.amplify-discussions-e2e-sandbox-x-auth179371D7-x-holding.source.template.json @@ -0,0 +1,386 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", + "Resources": { + "amplifyAuthauthenticatedUserRoleD8DA3689": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:0ab20e5d-b843-4969-94b1-c17d26af9934" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/auth/amplifyAuth/authenticatedUserRole/Resource" + } + }, + "amplifyAuthunauthenticatedUserRole2B524D9E": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:0ab20e5d-b843-4969-94b1-c17d26af9934" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "unauthenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/auth/amplifyAuth/unauthenticatedUserRole/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/02LwQrCMBBEv6X3dK0BvUtPXkQqniUmq26bbqBZLRLy71Kk2tPMvJnRoDcVVIUZY2ldV3q6QjpgFHQnMbZTZoyXZMOdSQKkc8ThGIJX9Y1/fja1J2RZVn+yd8hC8p7Py9wEjzsRYx89smRFpoc0wWk4ac5ZcXAIbVy9tIb1FqqijUTl8GShHqH56gf10GUazgAAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/auth/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifydiscussionse2esandbox11f7701e3cauthamplifyAuthUserPool78F21D47Ref": { + "Value": "us-east-1_QiMcYOBJq" + }, + "amplifydiscussionse2esandbox11f7701e3cauthamplifyAuthUserPoolAppClientC0A8CDEFRef": { + "Value": "5fmpdjh49lauff16m1r548ug0t" + }, + "amplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef": { + "Value": "us-east-1:0ab20e5d-b843-4969-94b1-c17d26af9934" + }, + "amplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref": { + "Value": "amplify-discussion2604142-amplifyAuthauthenticatedU-OFERj1VQgbh0" + }, + "amplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef": { + "Value": "amplify-discussion2604142-amplifyAuthunauthenticate-RegjzqZNry1w" + } + } +} diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-e2e-sandbox-x-auth179371D7-x.__to__.amplify-discussions-e2e-sandbox-x-auth179371D7-x-holding.target.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-e2e-sandbox-x-auth179371D7-x.__to__.amplify-discussions-e2e-sandbox-x-auth179371D7-x-holding.target.template.json new file mode 100644 index 00000000000..e693ad29f0c --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-e2e-sandbox-x-auth179371D7-x.__to__.amplify-discussions-e2e-sandbox-x-auth179371D7-x-holding.target.template.json @@ -0,0 +1,216 @@ +{ + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "Temporary holding stack for Gen2 migration", + "Resources": { + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AccountRecoverySetting": { + "RecoveryMechanisms": [ + { + "Name": "verified_email", + "Priority": 1 + } + ] + }, + "AdminCreateUserConfig": { + "AllowAdminCreateUserOnly": false + }, + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Here is your verification code {####}", + "EmailVerificationSubject": "Verification", + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": 8, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false, + "TemporaryPasswordValidityDays": 7 + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + }, + { + "Mutable": true, + "Name": "phone_number", + "Required": true + } + ], + "SmsVerificationMessage": "The verification code to your new account is {####}", + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolTags": { + "amplify:deployment-type": "sandbox", + "amplify:friendly-name": "amplifyAuth", + "created-by": "amplify" + }, + "UsernameAttributes": [ + "phone_number" + ], + "UsernameConfiguration": { + "CaseSensitive": false + }, + "VerificationMessageTemplate": { + "DefaultEmailOption": "CONFIRM_WITH_CODE", + "EmailMessage": "Here is your verification code {####}", + "EmailSubject": "Verification", + "SmsMessage": "The verification code to your new account is {####}" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/auth/amplifyAuth/UserPool/Resource" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 172800, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": "us-east-1_QiMcYOBJq" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlows": [ + "code" + ], + "AllowedOAuthFlowsUserPoolClient": true, + "AllowedOAuthScopes": [ + "profile", + "phone", + "email", + "openid", + "aws.cognito.signin.user.admin" + ], + "CallbackURLs": [ + "https://example.com" + ], + "ExplicitAuthFlows": [ + "ALLOW_CUSTOM_AUTH", + "ALLOW_USER_SRP_AUTH", + "ALLOW_REFRESH_TOKEN_AUTH" + ], + "PreventUserExistenceErrors": "ENABLED", + "SupportedIdentityProviders": [ + "COGNITO" + ], + "UserPoolId": "us-east-1_QiMcYOBJq" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/auth/amplifyAuth/UserPoolAppClient/Resource" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": false, + "CognitoIdentityProviders": [ + { + "ClientId": "5fmpdjh49lauff16m1r548ug0t", + "ProviderName": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_QiMcYOBJq" + ] + ] + } + } + ], + "IdentityPoolTags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "SupportedLoginProviders": {} + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/auth/amplifyAuth/IdentityPool" + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:0ab20e5d-b843-4969-94b1-c17d26af9934", + "RoleMappings": { + "UserPoolWebClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_QiMcYOBJq", + ":", + "5fmpdjh49lauff16m1r548ug0t" + ] + ] + }, + "Type": "Token" + } + }, + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-discussion2604142-amplifyAuthunauthenticate-RegjzqZNry1w", + "authenticated": "arn:aws:iam::123456789012:role/amplify-discussion2604142-amplifyAuthauthenticatedU-OFERj1VQgbh0" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/auth/amplifyAuth/IdentityPoolRoleAttachment" + } + } + }, + "Outputs": {} +} diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x.__to__.amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x-holding.mappings.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x.__to__.amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x-holding.mappings.json new file mode 100644 index 00000000000..c3814d4311c --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x.__to__.amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x-holding.mappings.json @@ -0,0 +1,12 @@ +[ + { + "Source": { + "StackName": "amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x", + "LogicalResourceId": "discusavatarsxgen2xBucketDA2F9CC2" + }, + "Destination": { + "StackName": "amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x-holding", + "LogicalResourceId": "discusavatarsxgen2xBucketDA2F9CC2" + } + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x.__to__.amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x-holding.source.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x.__to__.amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x-holding.source.template.json new file mode 100644 index 00000000000..cd1bc1f53de --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x.__to__.amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x-holding.source.template.json @@ -0,0 +1,581 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", + "Resources": { + "discusavatarsxgen2xBucketPolicyD2E4B70C": { + "Type": "AWS::S3::BucketPolicy", + "Properties": { + "Bucket": "amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf", + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:*", + "Condition": { + "Bool": { + "aws:SecureTransport": "false" + } + }, + "Effect": "Deny", + "Principal": { + "AWS": "*" + }, + "Resource": [ + "arn:aws:s3:::amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf", + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf", + "/*" + ] + ] + } + ] + }, + { + "Action": [ + "s3:PutBucketPolicy", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*" + ], + "Effect": "Allow", + "Principal": { + "AWS": "arn:aws:iam::123456789012:role/amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + }, + "Resource": [ + "arn:aws:s3:::amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf", + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf", + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storage/discus-avatarsx-gen2-x/Bucket/Policy/Resource" + } + }, + "discusavatarsxgen2xBucketAutoDeleteObjectsCustomResource1D08A711": { + "Type": "Custom::S3AutoDeleteObjects", + "Properties": { + "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "BucketName": "amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storage/discus-avatarsx-gen2-x/Bucket/AutoDeleteObjectsCustomResource/Default" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ] + }, + "ManagedPolicyArns": [ + { + "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" + }, + "Timeout": 900, + "MemorySize": 128, + "Handler": "index.handler", + "Role": "arn:aws:iam::123456789012:role/amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Runtime": "nodejs22.x", + "Description": { + "Fn::Join": [ + "", + [ + "Lambda function for auto-deleting objects in ", + "amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf", + " S3 bucket." + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", + "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", + "aws:asset:property": "Code" + } + }, + "DISCUSAVATARSB4C74GEN2EGFGFHFICCBUCKETNAMEParameter6939AE5D": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/discussions/e2e-sandbox-x/DISCUS_AVATARSB_4_C_74_GEN_2_EGFGFHFICC_BUCKET_NAME", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": "amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storage/DISCUS_AVATARSB_4_C_74_GEN_2_EGFGFHFICC_BUCKET_NAMEParameter/Resource" + } + }, + "amplifydiscussionse2esandbox11f7701e3cstorageAccess3FA725BAE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:PutObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf", + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf", + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf", + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf", + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf", + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf", + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/*", + "public/", + "protected/*", + "protected/", + "private/*", + "private/" + ] + } + }, + "Effect": "Allow", + "Resource": "arn:aws:s3:::amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf" + }, + { + "Action": "s3:DeleteObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf", + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf", + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf", + "/private/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "amplifydiscussionse2esandbox11f7701e3cstorageAccess3FA725BAE", + "Roles": [ + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storage/amplify-discussions-e2e-sandbox-x--storageAccess3/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/5WNy07DMBBFv6VZO0NIBQt2fawhapYIIdcZokliW/JMWpDlf0epJQJLVnNH5z5qqB8qqDb6yqXpxnKiM8RnZMGuFW1Gpa/8HnkLcT+bEUUdPlxWr7Gw9EmueCp+hxc/b+GGGLJ1N4s/4oSCL+cBjXCR3lRGjZ/IfK2t+f9Hdw60ogUtult1UswWYiuBXN/ooC0KhmXj50mKtIW4rmeVkjrMLN6ekP0cDC5o1X9QE/yFOgx7zah2zCit6J5cn5TzHcLAd5e6hvtHqDYDE5VhdkIW4ZTvN8L1/x56AQAA" + }, + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storage/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref": { + "Type": "String" + } + }, + "Outputs": { + "amplifydiscussionse2esandbox11f7701e3cstoragediscusavatarsxgen2xBucketC837A45ARef": { + "Value": "amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf" + } + } +} diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x.__to__.amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x-holding.target.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x.__to__.amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x-holding.target.template.json new file mode 100644 index 00000000000..59ab0fb93eb --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x.__to__.amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x-holding.target.template.json @@ -0,0 +1,71 @@ +{ + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "Temporary holding stack for Gen2 migration", + "Resources": { + "discusavatarsxgen2xBucketDA2F9CC2": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "BucketKeyEnabled": false, + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "MaxAge": 3000 + } + ] + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "discus-avatarsx-gen2-x" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storage/discus-avatarsx-gen2-x/Bucket/Resource" + } + } + }, + "Outputs": {} +} diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x.__to__.amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x-holding.mappings.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x.__to__.amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x-holding.mappings.json new file mode 100644 index 00000000000..f7a11e13e79 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x.__to__.amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x-holding.mappings.json @@ -0,0 +1,12 @@ +[ + { + "Source": { + "StackName": "amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x", + "LogicalResourceId": "activity1E902D9C" + }, + "Destination": { + "StackName": "amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x-holding", + "LogicalResourceId": "activity1E902D9C" + } + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x.__to__.amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x-holding.source.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x.__to__.amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x-holding.source.template.json new file mode 100644 index 00000000000..bbf4ebd2530 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x.__to__.amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x-holding.source.template.json @@ -0,0 +1,292 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.22.0\",\"stackType\":\"custom\",\"metadata\":{}}", + "Resources": { + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXGOwqEMBAA0LPYJ2M2oBewt3C3l0lmhPhJwImKiHcX1uo9C7YyYAo8RHua9BwcXC1LZvpm9JPCQ3o6Iy6JHFw/dDOrZoj/3KpjSdvq+VYxEcMo5W4tfGowxSgh6HWLOSwM3esDKnhKBG4AAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storageactivity/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifydiscussionse2esandbox11f7701e3cstorageactivity2CAC8EACArn": { + "Value": "arn:aws:dynamodb:us-east-1:123456789012:table/amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x-activity1E902D9C-WW109ZPG3FYW" + }, + "amplifydiscussionse2esandbox11f7701e3cstorageactivity2CAC8EACStreamArn": { + "Value": "arn:aws:dynamodb:us-east-1:123456789012:table/amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x-activity1E902D9C-WW109ZPG3FYW/stream/2026-04-15T04:05:17.207" + }, + "amplifydiscussionse2esandbox11f7701e3cstorageactivity2CAC8EACRef": { + "Value": "amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x-activity1E902D9C-WW109ZPG3FYW" + } + } +} diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x.__to__.amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x-holding.target.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x.__to__.amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x-holding.target.template.json new file mode 100644 index 00000000000..7de53d4f367 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x.__to__.amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x-holding.target.template.json @@ -0,0 +1,80 @@ +{ + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "Temporary holding stack for Gen2 migration", + "Resources": { + "activity1E902D9C": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + }, + { + "AttributeName": "userId", + "AttributeType": "S" + }, + { + "AttributeName": "timestamp", + "AttributeType": "S" + } + ], + "GlobalSecondaryIndexes": [ + { + "IndexName": "byUserId", + "KeySchema": [ + { + "AttributeName": "userId", + "KeyType": "HASH" + }, + { + "AttributeName": "timestamp", + "KeyType": "RANGE" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "ReadCapacityUnits": 5, + "WriteCapacityUnits": 5 + } + } + ], + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + }, + { + "AttributeName": "userId", + "KeyType": "RANGE" + } + ], + "ProvisionedThroughput": { + "ReadCapacityUnits": 5, + "WriteCapacityUnits": 5 + }, + "StreamSpecification": { + "StreamViewType": "NEW_IMAGE" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storageactivity/activity/Resource" + } + } + }, + "Outputs": {} +} diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x.__to__.amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x-holding.mappings.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x.__to__.amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x-holding.mappings.json new file mode 100644 index 00000000000..ac5e6fdffb5 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x.__to__.amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x-holding.mappings.json @@ -0,0 +1,12 @@ +[ + { + "Source": { + "StackName": "amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x", + "LogicalResourceId": "bookmarksA4548304" + }, + "Destination": { + "StackName": "amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x-holding", + "LogicalResourceId": "bookmarksA4548304" + } + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x.__to__.amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x-holding.source.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x.__to__.amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x-holding.source.template.json new file mode 100644 index 00000000000..bfdc5d63501 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x.__to__.amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x-holding.source.template.json @@ -0,0 +1,281 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.22.0\",\"stackType\":\"custom\",\"metadata\":{}}", + "Resources": { + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXGOwqEMBAA0LPYJ2M2oBewt3C3l0lmhPhJwImKiHcX1uo9C7YyYAo8RHua9BwcXC1LZvpm9JPCQ3o6Iy6JHFw/dDOrZoj/3KpjSdvq+VYxEcMo5W4tfGowxSgh6HWLOSwM3esDKnhKBG4AAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storagebookmarks/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + } +} diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x.__to__.amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x-holding.target.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x.__to__.amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x-holding.target.template.json new file mode 100644 index 00000000000..ed0ea5eb3c7 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x.__to__.amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x-holding.target.template.json @@ -0,0 +1,72 @@ +{ + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "Temporary holding stack for Gen2 migration", + "Resources": { + "bookmarksA4548304": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "AttributeDefinitions": [ + { + "AttributeName": "userId", + "AttributeType": "S" + }, + { + "AttributeName": "postId", + "AttributeType": "S" + } + ], + "GlobalSecondaryIndexes": [ + { + "IndexName": "byPost", + "KeySchema": [ + { + "AttributeName": "postId", + "KeyType": "HASH" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "ReadCapacityUnits": 5, + "WriteCapacityUnits": 5 + } + } + ], + "KeySchema": [ + { + "AttributeName": "userId", + "KeyType": "HASH" + }, + { + "AttributeName": "postId", + "KeyType": "RANGE" + } + ], + "ProvisionedThroughput": { + "ReadCapacityUnits": 5, + "WriteCapacityUnits": 5 + }, + "StreamSpecification": { + "StreamViewType": "NEW_IMAGE" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storagebookmarks/bookmarks/Resource" + } + } + }, + "Outputs": {} +} diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX.__to__.amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX-holding.mappings.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX.__to__.amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX-holding.mappings.json deleted file mode 100644 index fffe159462e..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX.__to__.amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX-holding.mappings.json +++ /dev/null @@ -1,52 +0,0 @@ -[ - { - "Source": { - "StackName": "amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" - }, - "Destination": { - "StackName": "amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX-holding", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" - } - }, - { - "Source": { - "StackName": "amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" - }, - "Destination": { - "StackName": "amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX-holding", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" - } - }, - { - "Source": { - "StackName": "amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" - }, - "Destination": { - "StackName": "amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX-holding", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" - } - }, - { - "Source": { - "StackName": "amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" - }, - "Destination": { - "StackName": "amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX-holding", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" - } - }, - { - "Source": { - "StackName": "amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" - }, - "Destination": { - "StackName": "amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX-holding", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" - } - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX.__to__.amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX-holding.source.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX.__to__.amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX-holding.source.template.json deleted file mode 100644 index 23e722d6843..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX.__to__.amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX-holding.source.template.json +++ /dev/null @@ -1,398 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", - "Resources": { - "amplifyAuthauthenticatedUserRoleD8DA3689": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:d48cd035-0397-46c6-b39a-19514b421022" - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "authenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/auth/amplifyAuth/authenticatedUserRole/Resource" - } - }, - "amplifyAuthunauthenticatedUserRole2B524D9E": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:d48cd035-0397-46c6-b39a-19514b421022" - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "unauthenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/auth/amplifyAuth/unauthenticatedUserRole/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/02LwQrCMBBEv6X3dK2hB6/SkxeRimeJyarbphtoVouE/LsUqXqamTczGnRdQ1WYKZbW9aWnC6Q9RkF3FGN7ZaZ4TjbcmCRAOkUcDyF41Vz56xfTeEKW/+pHdg5ZSF7L+T+3weNWxNj7gCxZkRkgzXAezppzVhwcQhdXT61hvYGq6CJROT5YaEBoP/oGtzQ+/84AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/auth/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Outputs": { - "amplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthUserPool82221E95Ref": { - "Value": "us-east-1_I3YejOBUa" - }, - "amplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthUserPoolAppClientFFCC03B0Ref": { - "Value": "3mosah7bsr7412hqq9soj1j2pp" - }, - "amplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref": { - "Value": "us-east-1:d48cd035-0397-46c6-b39a-19514b421022" - }, - "amplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef": { - "Value": "amplify-discussions-ge-amplifyAuthauthenticatedU-fjzgnNdQ7Oe2" - }, - "amplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef": { - "Value": "amplify-discussions-ge-amplifyAuthunauthenticate-iYWdMAuszYuZ" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX.__to__.amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX-holding.target.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX.__to__.amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX-holding.target.template.json deleted file mode 100644 index 436c49291be..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX.__to__.amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX-holding.target.template.json +++ /dev/null @@ -1,218 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "Temporary holding stack for Gen2 migration", - "Resources": { - "amplifyAuthUserPool4BA7F805": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AccountRecoverySetting": { - "RecoveryMechanisms": [ - { - "Name": "verified_email", - "Priority": 1 - } - ] - }, - "AdminCreateUserConfig": { - "AllowAdminCreateUserOnly": false - }, - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": "Here is your verification code {####}", - "EmailVerificationSubject": "Verification", - "MfaConfiguration": "OFF", - "Policies": { - "PasswordPolicy": { - "MinimumLength": 8, - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false, - "TemporaryPasswordValidityDays": 7 - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - }, - { - "Mutable": true, - "Name": "phone_number", - "Required": true - } - ], - "SmsVerificationMessage": "The verification code to your new account is {####}", - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolTags": { - "amplify:app-id": "discussions", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "amplify:friendly-name": "amplifyAuth", - "created-by": "amplify" - }, - "UsernameAttributes": [ - "phone_number" - ], - "UsernameConfiguration": { - "CaseSensitive": false - }, - "VerificationMessageTemplate": { - "DefaultEmailOption": "CONFIRM_WITH_CODE", - "EmailMessage": "Here is your verification code {####}", - "EmailSubject": "Verification", - "SmsMessage": "The verification code to your new account is {####}" - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/auth/amplifyAuth/UserPool/Resource" - } - }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 172800, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": "us-east-1_I3YejOBUa" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, - "amplifyAuthUserPoolAppClient2626C6F8": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlows": [ - "code" - ], - "AllowedOAuthFlowsUserPoolClient": true, - "AllowedOAuthScopes": [ - "profile", - "phone", - "email", - "openid", - "aws.cognito.signin.user.admin" - ], - "CallbackURLs": [ - "https://example.com" - ], - "ExplicitAuthFlows": [ - "ALLOW_CUSTOM_AUTH", - "ALLOW_USER_SRP_AUTH", - "ALLOW_REFRESH_TOKEN_AUTH" - ], - "PreventUserExistenceErrors": "ENABLED", - "SupportedIdentityProviders": [ - "COGNITO" - ], - "UserPoolId": "us-east-1_I3YejOBUa" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/auth/amplifyAuth/UserPoolAppClient/Resource" - } - }, - "amplifyAuthIdentityPool3FDE84CC": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": false, - "CognitoIdentityProviders": [ - { - "ClientId": "3mosah7bsr7412hqq9soj1j2pp", - "ProviderName": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - "us-east-1_I3YejOBUa" - ] - ] - } - } - ], - "IdentityPoolTags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "SupportedLoginProviders": {} - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/auth/amplifyAuth/IdentityPool" - } - }, - "amplifyAuthIdentityPoolRoleAttachment045F17C8": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": "us-east-1:d48cd035-0397-46c6-b39a-19514b421022", - "RoleMappings": { - "UserPoolWebClientRoleMapping": { - "AmbiguousRoleResolution": "AuthenticatedRole", - "IdentityProvider": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - "us-east-1_I3YejOBUa", - ":", - "3mosah7bsr7412hqq9soj1j2pp" - ] - ] - }, - "Type": "Token" - } - }, - "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-discussions-ge-amplifyAuthunauthenticate-iYWdMAuszYuZ", - "authenticated": "arn:aws:iam::123456789012:role/amplify-discussions-ge-amplifyAuthauthenticatedU-fjzgnNdQ7Oe2" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/auth/amplifyAuth/IdentityPoolRoleAttachment" - } - } - }, - "Outputs": {} -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N-holding.mappings.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N-holding.mappings.json deleted file mode 100644 index cd3e3af58a3..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N-holding.mappings.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "Source": { - "StackName": "amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N", - "LogicalResourceId": "discusavatarsc39a5gen2mainBucketB24EA230" - }, - "Destination": { - "StackName": "amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N-holding", - "LogicalResourceId": "discusavatarsc39a5gen2mainBucketB24EA230" - } - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N-holding.source.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N-holding.source.template.json deleted file mode 100644 index 07e4c75c307..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N-holding.source.template.json +++ /dev/null @@ -1,573 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", - "Resources": { - "discusavatarsc39a5gen2mainBucketPolicy73EB7DB2": { - "Type": "AWS::S3::BucketPolicy", - "Properties": { - "Bucket": "amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4", - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:*", - "Condition": { - "Bool": { - "aws:SecureTransport": "false" - } - }, - "Effect": "Deny", - "Principal": { - "AWS": "*" - }, - "Resource": [ - "arn:aws:s3:::amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4", - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4", - "/*" - ] - ] - } - ] - }, - { - "Action": [ - "s3:PutBucketPolicy", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*" - ], - "Effect": "Allow", - "Principal": { - "AWS": "arn:aws:iam::123456789012:role/amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - }, - "Resource": [ - "arn:aws:s3:::amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4", - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4", - "/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storage/discus-avatarsc39a5-gen2-main/Bucket/Policy/Resource" - } - }, - "discusavatarsc39a5gen2mainBucketAutoDeleteObjectsCustomResource2CB8EFAF": { - "Type": "Custom::S3AutoDeleteObjects", - "Properties": { - "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "BucketName": "amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4" - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storage/discus-avatarsc39a5-gen2-main/Bucket/AutoDeleteObjectsCustomResource/Default" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ] - }, - "ManagedPolicyArns": [ - { - "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" - }, - "Timeout": 900, - "MemorySize": 128, - "Handler": "index.handler", - "Role": "arn:aws:iam::123456789012:role/amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Runtime": "nodejs22.x", - "Description": { - "Fn::Join": [ - "", - [ - "Lambda function for auto-deleting objects in ", - "amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4", - " S3 bucket." - ] - ] - } - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", - "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", - "aws:asset:property": "Code" - } - }, - "DISCUSAVATARSC39A5GEN2MAINBUCKETNAMEParameter7EBC4CDD": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/discussions/gen2main-branch-a27e51c30a/DISCUS_AVATARSC_39_A_5_GEN_2_MAIN_BUCKET_NAME", - "Tags": { - "amplify:app-id": "discussions", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": "amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storage/DISCUS_AVATARSC_39_A_5_GEN_2_MAIN_BUCKET_NAMEParameter/Resource" - } - }, - "amplifydiscussionsgen2mainbrancha27e51c30astorageAccess342E15B6C": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:PutObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4", - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4", - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4", - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4", - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4", - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4", - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/*", - "public/", - "protected/*", - "protected/", - "private/*", - "private/" - ] - } - }, - "Effect": "Allow", - "Resource": "arn:aws:s3:::amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4" - }, - { - "Action": "s3:DeleteObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4", - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4", - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4", - "/private/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "amplifydiscussionsgen2mainbrancha27e51c30astorageAccess342E15B6C", - "Roles": [ - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storage/amplify-discussions-gen2main-branch-a27e51c30a--storageAccess3/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/5WNy07DMBBFv6VZO0NJu0Ds2rKGqFkihFxniCaJbckz6UOW/x2llggsWc0dnfuooNpuYb3SFy5NO5QjnSC+Igu2jWgzKH3hz8gbiPvJDCjq8OWyeo+FpSu54rn4HZ79vIE7YsjW3ST+BUcUfDv1aISL9KEyqv1I5ra05v8f3TnQiBa06O7VSTFbiI0Ecl2tg7YoGOaNnycp0hbisp5VSuowsXh7RPZTMDijRf9BdfBnajHsNaPaMaM0ojtyXVLOtwg9P5yrCh6fYL3qmagMkxOyCMd8vwGr7NONegEAAA==" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storage/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef": { - "Type": "String" - } - }, - "Outputs": { - "amplifydiscussionsgen2mainbrancha27e51c30astoragediscusavatarsc39a5gen2mainBucket0721E25ERef": { - "Value": "amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N-holding.target.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N-holding.target.template.json deleted file mode 100644 index fc4d3669518..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N-holding.target.template.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "Temporary holding stack for Gen2 migration", - "Resources": { - "discusavatarsc39a5gen2mainBucketB24EA230": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "BucketKeyEnabled": false, - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "MaxAge": 3000 - } - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "discus-avatarsc39a5-gen2-main" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storage/discus-avatarsc39a5-gen2-main/Bucket/Resource" - } - } - }, - "Outputs": {} -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1-holding.mappings.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1-holding.mappings.json deleted file mode 100644 index 1694ef6b30a..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1-holding.mappings.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "Source": { - "StackName": "amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1", - "LogicalResourceId": "activity1E902D9C" - }, - "Destination": { - "StackName": "amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1-holding", - "LogicalResourceId": "activity1E902D9C" - } - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1-holding.source.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1-holding.source.template.json deleted file mode 100644 index 1cb91855653..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1-holding.source.template.json +++ /dev/null @@ -1,292 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.21.1\",\"stackType\":\"custom\",\"metadata\":{}}", - "Resources": { - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXGOwqEMBAA0LPYJ7MaLOztt1B7mWRGiJ8EnERZxLsvaPWeAVPXUBZ4ina06NVbuL4sialP6BaFp4z0C7hFsnANaFdW7RSe3KpjiXl3fKsQiWGWz2EMVA2UxSze6z2H5DeG7vUPAxTDOW4AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storageactivity/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Outputs": { - "amplifydiscussionsgen2mainbrancha27e51c30astorageactivity9EDFFE97Arn": { - "Value": "arn:aws:dynamodb:us-east-1:123456789012:table/amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1-activity1E902D9C-QYW2OKZ2EU7Z" - }, - "amplifydiscussionsgen2mainbrancha27e51c30astorageactivity9EDFFE97StreamArn": { - "Value": "arn:aws:dynamodb:us-east-1:123456789012:table/amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1-activity1E902D9C-QYW2OKZ2EU7Z/stream/2026-03-20T21:41:02.189" - }, - "amplifydiscussionsgen2mainbrancha27e51c30astorageactivity9EDFFE97Ref": { - "Value": "amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1-activity1E902D9C-QYW2OKZ2EU7Z" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1-holding.target.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1-holding.target.template.json deleted file mode 100644 index ce8c0b6d95f..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1-holding.target.template.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "Temporary holding stack for Gen2 migration", - "Resources": { - "activity1E902D9C": { - "Type": "AWS::DynamoDB::Table", - "Properties": { - "AttributeDefinitions": [ - { - "AttributeName": "id", - "AttributeType": "S" - }, - { - "AttributeName": "userId", - "AttributeType": "S" - }, - { - "AttributeName": "timestamp", - "AttributeType": "S" - } - ], - "GlobalSecondaryIndexes": [ - { - "IndexName": "byUserId", - "KeySchema": [ - { - "AttributeName": "userId", - "KeyType": "HASH" - }, - { - "AttributeName": "timestamp", - "KeyType": "RANGE" - } - ], - "Projection": { - "ProjectionType": "ALL" - }, - "ProvisionedThroughput": { - "ReadCapacityUnits": 5, - "WriteCapacityUnits": 5 - } - } - ], - "KeySchema": [ - { - "AttributeName": "id", - "KeyType": "HASH" - }, - { - "AttributeName": "userId", - "KeyType": "RANGE" - } - ], - "ProvisionedThroughput": { - "ReadCapacityUnits": 5, - "WriteCapacityUnits": 5 - }, - "StreamSpecification": { - "StreamViewType": "NEW_IMAGE" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain", - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storageactivity/activity/Resource" - } - } - }, - "Outputs": {} -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT-holding.mappings.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT-holding.mappings.json deleted file mode 100644 index 121533e2cfc..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT-holding.mappings.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "Source": { - "StackName": "amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT", - "LogicalResourceId": "bookmarksA4548304" - }, - "Destination": { - "StackName": "amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT-holding", - "LogicalResourceId": "bookmarksA4548304" - } - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT-holding.source.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT-holding.source.template.json deleted file mode 100644 index 8809916f3bb..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT-holding.source.template.json +++ /dev/null @@ -1,281 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.21.1\",\"stackType\":\"custom\",\"metadata\":{}}", - "Resources": { - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXGOwqEMBAA0LPYJ7MaLOztt1B7mWRGiJ8EnERZxLsvaPWeAVPXUBZ4ina06NVbuL4sialP6BaFp4z0C7hFsnANaFdW7RSe3KpjiXl3fKsQiWGWz2EMVA2UxSze6z2H5DeG7vUPAxTDOW4AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storagebookmarks/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT-holding.target.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT-holding.target.template.json deleted file mode 100644 index 17431e7ccb6..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT-holding.target.template.json +++ /dev/null @@ -1,80 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "Temporary holding stack for Gen2 migration", - "Resources": { - "bookmarksA4548304": { - "Type": "AWS::DynamoDB::Table", - "Properties": { - "AttributeDefinitions": [ - { - "AttributeName": "userId", - "AttributeType": "S" - }, - { - "AttributeName": "postId", - "AttributeType": "S" - } - ], - "GlobalSecondaryIndexes": [ - { - "IndexName": "byPost", - "KeySchema": [ - { - "AttributeName": "postId", - "KeyType": "HASH" - } - ], - "Projection": { - "ProjectionType": "ALL" - }, - "ProvisionedThroughput": { - "ReadCapacityUnits": 5, - "WriteCapacityUnits": 5 - } - } - ], - "KeySchema": [ - { - "AttributeName": "userId", - "KeyType": "HASH" - }, - { - "AttributeName": "postId", - "KeyType": "RANGE" - } - ], - "ProvisionedThroughput": { - "ReadCapacityUnits": 5, - "WriteCapacityUnits": 5 - }, - "StreamSpecification": { - "StreamViewType": "NEW_IMAGE" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain", - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storagebookmarks/bookmarks/Resource" - } - } - }, - "Outputs": {} -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-c39a5-authdiscussionsc578c16ec578c16e-1XF3OX52Z0KBB.__to__.amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX.mappings.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-c39a5-authdiscussionsc578c16ec578c16e-1XF3OX52Z0KBB.__to__.amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX.mappings.json deleted file mode 100644 index 26862da33c0..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-c39a5-authdiscussionsc578c16ec578c16e-1XF3OX52Z0KBB.__to__.amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX.mappings.json +++ /dev/null @@ -1,52 +0,0 @@ -[ - { - "Source": { - "StackName": "amplify-discussions-main-c39a5-authdiscussionsc578c16ec578c16e-1XF3OX52Z0KBB", - "LogicalResourceId": "UserPool" - }, - "Destination": { - "StackName": "amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" - } - }, - { - "Source": { - "StackName": "amplify-discussions-main-c39a5-authdiscussionsc578c16ec578c16e-1XF3OX52Z0KBB", - "LogicalResourceId": "UserPoolClientWeb" - }, - "Destination": { - "StackName": "amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" - } - }, - { - "Source": { - "StackName": "amplify-discussions-main-c39a5-authdiscussionsc578c16ec578c16e-1XF3OX52Z0KBB", - "LogicalResourceId": "UserPoolClient" - }, - "Destination": { - "StackName": "amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" - } - }, - { - "Source": { - "StackName": "amplify-discussions-main-c39a5-authdiscussionsc578c16ec578c16e-1XF3OX52Z0KBB", - "LogicalResourceId": "IdentityPool" - }, - "Destination": { - "StackName": "amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" - } - }, - { - "Source": { - "StackName": "amplify-discussions-main-c39a5-authdiscussionsc578c16ec578c16e-1XF3OX52Z0KBB", - "LogicalResourceId": "IdentityPoolRoleMap" - }, - "Destination": { - "StackName": "amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" - } - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-c39a5-authdiscussionsc578c16ec578c16e-1XF3OX52Z0KBB.__to__.amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX.source.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-c39a5-authdiscussionsc578c16ec578c16e-1XF3OX52Z0KBB.__to__.amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX.source.template.json deleted file mode 100644 index aa44825b9cc..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-c39a5-authdiscussionsc578c16ec578c16e-1XF3OX52Z0KBB.__to__.amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX.source.template.json +++ /dev/null @@ -1,272 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "env": { - "Type": "String" - }, - "identityPoolName": { - "Type": "String" - }, - "allowUnauthenticatedIdentities": { - "Type": "String" - }, - "resourceNameTruncated": { - "Type": "String" - }, - "userPoolName": { - "Type": "String" - }, - "autoVerifiedAttributes": { - "Type": "CommaDelimitedList" - }, - "mfaConfiguration": { - "Type": "String" - }, - "mfaTypes": { - "Type": "CommaDelimitedList" - }, - "smsAuthenticationMessage": { - "Type": "String" - }, - "smsVerificationMessage": { - "Type": "String" - }, - "emailVerificationSubject": { - "Type": "String" - }, - "emailVerificationMessage": { - "Type": "String" - }, - "defaultPasswordPolicy": { - "Type": "String" - }, - "passwordPolicyMinLength": { - "Type": "String" - }, - "passwordPolicyCharacters": { - "Type": "CommaDelimitedList" - }, - "requiredAttributes": { - "Type": "CommaDelimitedList" - }, - "aliasAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientGenerateSecret": { - "Type": "String" - }, - "userpoolClientRefreshTokenValidity": { - "Type": "String" - }, - "userpoolClientWriteAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientReadAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientLambdaRole": { - "Type": "String" - }, - "userpoolClientSetAttributes": { - "Type": "String" - }, - "sharedId": { - "Type": "String" - }, - "resourceName": { - "Type": "String" - }, - "authSelections": { - "Type": "String" - }, - "useDefault": { - "Type": "String" - }, - "thirdPartyAuth": { - "Type": "String" - }, - "usernameAttributes": { - "Type": "CommaDelimitedList" - }, - "userPoolGroups": { - "Type": "String" - }, - "adminQueries": { - "Type": "String" - }, - "triggers": { - "Type": "String" - }, - "hostedUI": { - "Type": "String" - }, - "userPoolGroupList": { - "Type": "CommaDelimitedList" - }, - "serviceName": { - "Type": "String" - }, - "usernameCaseSensitive": { - "Type": "String" - }, - "useEnabledMfas": { - "Type": "String" - }, - "authRoleArn": { - "Type": "String" - }, - "unauthRoleArn": { - "Type": "String" - }, - "breakCircularDependency": { - "Type": "String" - }, - "dependsOn": { - "Type": "CommaDelimitedList" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - "main", - "NONE" - ] - } - }, - "Resources": { - "SNSRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Sid": "", - "Effect": "Allow", - "Principal": { - "Service": "cognito-idp.amazonaws.com" - }, - "Action": [ - "sts:AssumeRole" - ], - "Condition": { - "StringEquals": { - "sts:ExternalId": "discusc578c16e_role_external_id" - } - } - } - ] - }, - "Policies": [ - { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "sns:Publish" - ], - "Resource": "*" - } - ] - }, - "PolicyName": "discusc578c16e-sns-policy" - } - ], - "RoleName": { - "Fn::Join": [ - "", - [ - "snsc578c16e", - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - "amplify-discussions-main-c39a5-authdiscussionsc578c16ec578c16e-1XF3OX52Z0KBB" - ] - } - ] - }, - "-", - "main" - ] - ] - } - } - }, - "UserPoolClientRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - }, - "Action": "sts:AssumeRole" - } - ] - }, - "RoleName": { - "Fn::Join": [ - "", - [ - "upClientLambdaRolec578c16e", - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - "amplify-discussions-main-c39a5-authdiscussionsc578c16ec578c16e-1XF3OX52Z0KBB" - ] - } - ] - }, - "-", - "main" - ] - ] - } - } - } - }, - "Outputs": { - "IdentityPoolId": { - "Description": "Id for the identity pool", - "Value": "us-east-1:d588cc58-4459-4b1b-ac91-307079a54464" - }, - "IdentityPoolName": { - "Value": "discussionsc578c16e_identitypool_c578c16e__main" - }, - "UserPoolId": { - "Description": "Id for the user pool", - "Value": "us-east-1_vv2HFjwRK" - }, - "UserPoolArn": { - "Description": "Arn for the user pool", - "Value": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_vv2HFjwRK" - }, - "UserPoolName": { - "Value": "discussionsc578c16e_userpool_c578c16e" - }, - "AppClientIDWeb": { - "Description": "The user pool app client id for web", - "Value": "7nhjrv5jepqc7kacqiknlj0siu" - }, - "AppClientID": { - "Description": "The user pool app client id", - "Value": "7tbnnc27p4edfrp7m6bqqkh0gq" - }, - "CreatedSNSRole": { - "Description": "role arn", - "Value": "arn:aws:iam::123456789012:role/snsc578c16ec39a5-main" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-c39a5-authdiscussionsc578c16ec578c16e-1XF3OX52Z0KBB.__to__.amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX.target.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-c39a5-authdiscussionsc578c16ec578c16e-1XF3OX52Z0KBB.__to__.amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX.target.template.json deleted file mode 100644 index 6641106028e..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-c39a5-authdiscussionsc578c16ec578c16e-1XF3OX52Z0KBB.__to__.amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX.target.template.json +++ /dev/null @@ -1,535 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", - "Resources": { - "amplifyAuthauthenticatedUserRoleD8DA3689": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:d48cd035-0397-46c6-b39a-19514b421022" - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "authenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/auth/amplifyAuth/authenticatedUserRole/Resource" - } - }, - "amplifyAuthunauthenticatedUserRole2B524D9E": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:d48cd035-0397-46c6-b39a-19514b421022" - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "unauthenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/auth/amplifyAuth/unauthenticatedUserRole/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/02LwQrCMBBEv6X3dK2hB6/SkxeRimeJyarbphtoVouE/LsUqXqamTczGnRdQ1WYKZbW9aWnC6Q9RkF3FGN7ZaZ4TjbcmCRAOkUcDyF41Vz56xfTeEKW/+pHdg5ZSF7L+T+3weNWxNj7gCxZkRkgzXAezppzVhwcQhdXT61hvYGq6CJROT5YaEBoP/oGtzQ+/84AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/auth/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - }, - "amplifyAuthUserPool4BA7F805": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": "Here is your verification code {####}", - "EmailVerificationSubject": "Verification", - "MfaConfiguration": "OFF", - "Policies": { - "PasswordPolicy": { - "MinimumLength": "8", - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - }, - { - "Mutable": true, - "Name": "phone_number", - "Required": true - } - ], - "SmsAuthenticationMessage": "Your authentication code is {####}", - "SmsConfiguration": { - "ExternalId": "discusc578c16e_role_external_id", - "SnsCallerArn": "arn:aws:iam::123456789012:role/snsc578c16ec39a5-main" - }, - "SmsVerificationMessage": "Your verification code is {####}", - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolName": { - "Fn::Join": [ - "", - [ - "discussionsc578c16e_userpool_c578c16e", - "-", - "main" - ] - ] - }, - "UsernameAttributes": [ - "phone_number" - ], - "UsernameConfiguration": { - "CaseSensitive": false - } - } - }, - "amplifyAuthUserPoolAppClient2626C6F8": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "discusc578c16e_app_clientWeb", - "RefreshTokenValidity": "120", - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": "us-east-1_vv2HFjwRK" - } - }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "discusc578c16e_app_client", - "GenerateSecret": "false", - "RefreshTokenValidity": "120", - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": "us-east-1_vv2HFjwRK" - } - }, - "amplifyAuthIdentityPool3FDE84CC": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": "false", - "CognitoIdentityProviders": [ - { - "ClientId": "7tbnnc27p4edfrp7m6bqqkh0gq", - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": "us-east-1_vv2HFjwRK" - } - ] - } - }, - { - "ClientId": "7nhjrv5jepqc7kacqiknlj0siu", - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": "us-east-1_vv2HFjwRK" - } - ] - } - } - ], - "IdentityPoolName": { - "Fn::Join": [ - "", - [ - "discussionsc578c16e_identitypool_c578c16e__", - "main" - ] - ] - } - } - }, - "amplifyAuthIdentityPoolRoleAttachment045F17C8": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": "us-east-1:d588cc58-4459-4b1b-ac91-307079a54464", - "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-discussions-main-c39a5-unauthRole", - "authenticated": "arn:aws:iam::123456789012:role/amplify-discussions-main-c39a5-authRole" - } - } - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Outputs": { - "amplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthUserPool82221E95Ref": { - "Value": "us-east-1_I3YejOBUa" - }, - "amplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthUserPoolAppClientFFCC03B0Ref": { - "Value": "3mosah7bsr7412hqq9soj1j2pp" - }, - "amplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref": { - "Value": "us-east-1:d48cd035-0397-46c6-b39a-19514b421022" - }, - "amplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef": { - "Value": "amplify-discussions-ge-amplifyAuthauthenticatedU-fjzgnNdQ7Oe2" - }, - "amplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef": { - "Value": "amplify-discussions-ge-amplifyAuthunauthenticate-iYWdMAuszYuZ" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-c39a5-storageactivity-138JAQS8Q4D3V.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1.mappings.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-c39a5-storageactivity-138JAQS8Q4D3V.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1.mappings.json deleted file mode 100644 index fd2a4652eec..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-c39a5-storageactivity-138JAQS8Q4D3V.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1.mappings.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "Source": { - "StackName": "amplify-discussions-main-c39a5-storageactivity-138JAQS8Q4D3V", - "LogicalResourceId": "DynamoDBTable" - }, - "Destination": { - "StackName": "amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1", - "LogicalResourceId": "activity1E902D9C" - } - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-c39a5-storageactivity-138JAQS8Q4D3V.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1.source.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-c39a5-storageactivity-138JAQS8Q4D3V.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1.source.template.json deleted file mode 100644 index e43f0f1c6b2..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-c39a5-storageactivity-138JAQS8Q4D3V.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1.source.template.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-DynamoDB\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "partitionKeyName": { - "Type": "String" - }, - "partitionKeyType": { - "Type": "String" - }, - "env": { - "Type": "String" - }, - "sortKeyName": { - "Type": "String" - }, - "sortKeyType": { - "Type": "String" - }, - "tableName": { - "Type": "String" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - "main", - "NONE" - ] - } - }, - "Resources": { - "MigrationPlaceholder": { - "Type": "AWS::CloudFormation::WaitConditionHandle", - "Properties": {} - } - }, - "Outputs": { - "Name": { - "Value": "activity-main" - }, - "Arn": { - "Value": "arn:aws:dynamodb:us-east-1:123456789012:table/activity-main" - }, - "StreamArn": { - "Value": "arn:aws:dynamodb:us-east-1:123456789012:table/activity-main/stream/2026-03-20T21:19:57.516" - }, - "PartitionKeyName": { - "Value": "id" - }, - "PartitionKeyType": { - "Value": "S" - }, - "SortKeyName": { - "Value": "userId" - }, - "SortKeyType": { - "Value": "S" - }, - "Region": { - "Value": "us-east-1" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-c39a5-storageactivity-138JAQS8Q4D3V.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1.target.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-c39a5-storageactivity-138JAQS8Q4D3V.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1.target.template.json deleted file mode 100644 index 3097de7c52b..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-c39a5-storageactivity-138JAQS8Q4D3V.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1.target.template.json +++ /dev/null @@ -1,360 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.21.1\",\"stackType\":\"custom\",\"metadata\":{}}", - "Resources": { - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXGOwqEMBAA0LPYJ7MaLOztt1B7mWRGiJ8EnERZxLsvaPWeAVPXUBZ4ina06NVbuL4sialP6BaFp4z0C7hFsnANaFdW7RSe3KpjiXl3fKsQiWGWz2EMVA2UxSze6z2H5DeG7vUPAxTDOW4AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storageactivity/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - }, - "activity1E902D9C": { - "Type": "AWS::DynamoDB::Table", - "Properties": { - "AttributeDefinitions": [ - { - "AttributeName": "id", - "AttributeType": "S" - }, - { - "AttributeName": "userId", - "AttributeType": "S" - }, - { - "AttributeName": "timestamp", - "AttributeType": "S" - } - ], - "GlobalSecondaryIndexes": [ - { - "IndexName": "byUserId", - "KeySchema": [ - { - "AttributeName": "userId", - "KeyType": "HASH" - }, - { - "AttributeName": "timestamp", - "KeyType": "RANGE" - } - ], - "Projection": { - "ProjectionType": "ALL" - }, - "ProvisionedThroughput": { - "ReadCapacityUnits": 5, - "WriteCapacityUnits": 5 - } - } - ], - "KeySchema": [ - { - "AttributeName": "id", - "KeyType": "HASH" - }, - { - "AttributeName": "userId", - "KeyType": "RANGE" - } - ], - "ProvisionedThroughput": { - "ReadCapacityUnits": 5, - "WriteCapacityUnits": 5 - }, - "StreamSpecification": { - "StreamViewType": "NEW_IMAGE" - }, - "TableName": { - "Fn::Join": [ - "", - [ - "activity", - "-", - "main" - ] - ] - } - } - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Outputs": { - "amplifydiscussionsgen2mainbrancha27e51c30astorageactivity9EDFFE97Arn": { - "Value": "arn:aws:dynamodb:us-east-1:123456789012:table/amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1-activity1E902D9C-QYW2OKZ2EU7Z" - }, - "amplifydiscussionsgen2mainbrancha27e51c30astorageactivity9EDFFE97StreamArn": { - "Value": "arn:aws:dynamodb:us-east-1:123456789012:table/amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1-activity1E902D9C-QYW2OKZ2EU7Z/stream/2026-03-20T21:41:02.189" - }, - "amplifydiscussionsgen2mainbrancha27e51c30astorageactivity9EDFFE97Ref": { - "Value": "amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1-activity1E902D9C-QYW2OKZ2EU7Z" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-c39a5-storageavatars-1BVCGXECPBEMB.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N.mappings.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-c39a5-storageavatars-1BVCGXECPBEMB.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N.mappings.json deleted file mode 100644 index ec102eb8ca2..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-c39a5-storageavatars-1BVCGXECPBEMB.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N.mappings.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "Source": { - "StackName": "amplify-discussions-main-c39a5-storageavatars-1BVCGXECPBEMB", - "LogicalResourceId": "S3Bucket" - }, - "Destination": { - "StackName": "amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N", - "LogicalResourceId": "discusavatarsc39a5gen2mainBucketB24EA230" - } - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-c39a5-storageavatars-1BVCGXECPBEMB.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N.source.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-c39a5-storageavatars-1BVCGXECPBEMB.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N.source.template.json deleted file mode 100644 index 655911bf950..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-c39a5-storageavatars-1BVCGXECPBEMB.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N.source.template.json +++ /dev/null @@ -1,381 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-S3\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "env": { - "Type": "String" - }, - "bucketName": { - "Type": "String" - }, - "authRoleName": { - "Type": "String" - }, - "unauthRoleName": { - "Type": "String" - }, - "authPolicyName": { - "Type": "String" - }, - "unauthPolicyName": { - "Type": "String" - }, - "s3PublicPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3PrivatePolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3ProtectedPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3UploadsPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3ReadPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3PermissionsAuthenticatedPublic": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedProtected": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedPrivate": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedUploads": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsGuestPublic": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsGuestUploads": { - "Type": "String", - "Default": "DISALLOW" - }, - "AuthenticatedAllowList": { - "Type": "String", - "Default": "DISALLOW" - }, - "GuestAllowList": { - "Type": "String", - "Default": "DISALLOW" - }, - "selectedGuestPermissions": { - "Type": "CommaDelimitedList", - "Default": "NONE" - }, - "selectedAuthenticatedPermissions": { - "Type": "CommaDelimitedList", - "Default": "NONE" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - "main", - "NONE" - ] - }, - "CreateAuthPublic": { - "Fn::Not": [ - { - "Fn::Equals": [ - "s3:PutObject,s3:GetObject,s3:DeleteObject", - "DISALLOW" - ] - } - ] - }, - "CreateAuthProtected": { - "Fn::Not": [ - { - "Fn::Equals": [ - "s3:PutObject,s3:GetObject,s3:DeleteObject", - "DISALLOW" - ] - } - ] - }, - "CreateAuthPrivate": { - "Fn::Not": [ - { - "Fn::Equals": [ - "s3:PutObject,s3:GetObject,s3:DeleteObject", - "DISALLOW" - ] - } - ] - }, - "CreateAuthUploads": { - "Fn::Not": [ - { - "Fn::Equals": [ - "s3:PutObject", - "DISALLOW" - ] - } - ] - }, - "CreateGuestPublic": { - "Fn::Not": [ - { - "Fn::Equals": [ - "DISALLOW", - "DISALLOW" - ] - } - ] - }, - "CreateGuestUploads": { - "Fn::Not": [ - { - "Fn::Equals": [ - "DISALLOW", - "DISALLOW" - ] - } - ] - }, - "AuthReadAndList": { - "Fn::Not": [ - { - "Fn::Equals": [ - "ALLOW", - "DISALLOW" - ] - } - ] - }, - "GuestReadAndList": { - "Fn::Not": [ - { - "Fn::Equals": [ - "DISALLOW", - "DISALLOW" - ] - } - ] - } - }, - "Outputs": { - "BucketName": { - "Description": "Bucket name for the S3 bucket", - "Value": "discus-avatarsc39a5-main" - }, - "Region": { - "Value": "us-east-1" - } - }, - "Resources": { - "S3AuthPublicPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - "s3:PutObject,s3:GetObject,s3:DeleteObject" - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "discus-avatarsc39a5-main", - "/public/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "Public_policy_bf41454d", - "Roles": [ - "amplify-discussions-main-c39a5-authRole" - ] - }, - "Condition": "CreateAuthPublic" - }, - "S3AuthProtectedPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - "s3:PutObject,s3:GetObject,s3:DeleteObject" - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "discus-avatarsc39a5-main", - "/protected/${cognito-identity.amazonaws.com:sub}/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "Protected_policy_bf41454d", - "Roles": [ - "amplify-discussions-main-c39a5-authRole" - ] - }, - "Condition": "CreateAuthProtected" - }, - "S3AuthPrivatePolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - "s3:PutObject,s3:GetObject,s3:DeleteObject" - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "discus-avatarsc39a5-main", - "/private/${cognito-identity.amazonaws.com:sub}/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "Private_policy_bf41454d", - "Roles": [ - "amplify-discussions-main-c39a5-authRole" - ] - }, - "Condition": "CreateAuthPrivate" - }, - "S3AuthUploadPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - "s3:PutObject" - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "discus-avatarsc39a5-main", - "/uploads/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "Uploads_policy_bf41454d", - "Roles": [ - "amplify-discussions-main-c39a5-authRole" - ] - }, - "Condition": "CreateAuthUploads" - }, - "S3AuthReadPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "discus-avatarsc39a5-main", - "/protected/*" - ] - ] - } - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/", - "public/*", - "protected/", - "protected/*", - "private/${cognito-identity.amazonaws.com:sub}/", - "private/${cognito-identity.amazonaws.com:sub}/*" - ] - } - }, - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "discus-avatarsc39a5-main" - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "read_policy_bf41454d", - "Roles": [ - "amplify-discussions-main-c39a5-authRole" - ] - }, - "Condition": "AuthReadAndList" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-c39a5-storageavatars-1BVCGXECPBEMB.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N.target.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-c39a5-storageavatars-1BVCGXECPBEMB.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N.target.template.json deleted file mode 100644 index ca70bc938f7..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-c39a5-storageavatars-1BVCGXECPBEMB.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N.target.template.json +++ /dev/null @@ -1,637 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", - "Resources": { - "discusavatarsc39a5gen2mainBucketPolicy73EB7DB2": { - "Type": "AWS::S3::BucketPolicy", - "Properties": { - "Bucket": "amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4", - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:*", - "Condition": { - "Bool": { - "aws:SecureTransport": "false" - } - }, - "Effect": "Deny", - "Principal": { - "AWS": "*" - }, - "Resource": [ - "arn:aws:s3:::amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4", - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4", - "/*" - ] - ] - } - ] - }, - { - "Action": [ - "s3:PutBucketPolicy", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*" - ], - "Effect": "Allow", - "Principal": { - "AWS": "arn:aws:iam::123456789012:role/amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - }, - "Resource": [ - "arn:aws:s3:::amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4", - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4", - "/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storage/discus-avatarsc39a5-gen2-main/Bucket/Policy/Resource" - } - }, - "discusavatarsc39a5gen2mainBucketAutoDeleteObjectsCustomResource2CB8EFAF": { - "Type": "Custom::S3AutoDeleteObjects", - "Properties": { - "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "BucketName": "amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4" - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storage/discus-avatarsc39a5-gen2-main/Bucket/AutoDeleteObjectsCustomResource/Default" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ] - }, - "ManagedPolicyArns": [ - { - "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" - }, - "Timeout": 900, - "MemorySize": 128, - "Handler": "index.handler", - "Role": "arn:aws:iam::123456789012:role/amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Runtime": "nodejs22.x", - "Description": { - "Fn::Join": [ - "", - [ - "Lambda function for auto-deleting objects in ", - "amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4", - " S3 bucket." - ] - ] - } - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", - "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", - "aws:asset:property": "Code" - } - }, - "DISCUSAVATARSC39A5GEN2MAINBUCKETNAMEParameter7EBC4CDD": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/discussions/gen2main-branch-a27e51c30a/DISCUS_AVATARSC_39_A_5_GEN_2_MAIN_BUCKET_NAME", - "Tags": { - "amplify:app-id": "discussions", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": "amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storage/DISCUS_AVATARSC_39_A_5_GEN_2_MAIN_BUCKET_NAMEParameter/Resource" - } - }, - "amplifydiscussionsgen2mainbrancha27e51c30astorageAccess342E15B6C": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:PutObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4", - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4", - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4", - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4", - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4", - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4", - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/*", - "public/", - "protected/*", - "protected/", - "private/*", - "private/" - ] - } - }, - "Effect": "Allow", - "Resource": "arn:aws:s3:::amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4" - }, - { - "Action": "s3:DeleteObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4", - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4", - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4", - "/private/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "amplifydiscussionsgen2mainbrancha27e51c30astorageAccess342E15B6C", - "Roles": [ - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storage/amplify-discussions-gen2main-branch-a27e51c30a--storageAccess3/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/5WNy07DMBBFv6VZO0NJu0Ds2rKGqFkihFxniCaJbckz6UOW/x2llggsWc0dnfuooNpuYb3SFy5NO5QjnSC+Igu2jWgzKH3hz8gbiPvJDCjq8OWyeo+FpSu54rn4HZ79vIE7YsjW3ST+BUcUfDv1aISL9KEyqv1I5ra05v8f3TnQiBa06O7VSTFbiI0Ecl2tg7YoGOaNnycp0hbisp5VSuowsXh7RPZTMDijRf9BdfBnajHsNaPaMaM0ojtyXVLOtwg9P5yrCh6fYL3qmagMkxOyCMd8vwGr7NONegEAAA==" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storage/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - }, - "discusavatarsc39a5gen2mainBucketB24EA230": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketName": { - "Fn::Join": [ - "", - [ - "discus-avatars", - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - "amplify-discussions-main-c39a5-storageavatars-1BVCGXECPBEMB" - ] - } - ] - }, - "-", - "main" - ] - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "Id": "S3CORSRuleId1", - "MaxAge": 3000 - } - ] - }, - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - } - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef": { - "Type": "String" - } - }, - "Outputs": { - "amplifydiscussionsgen2mainbrancha27e51c30astoragediscusavatarsc39a5gen2mainBucket0721E25ERef": { - "Value": "amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-c39a5-storagebookmarks-B7BEMLBCHV3W.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT.mappings.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-c39a5-storagebookmarks-B7BEMLBCHV3W.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT.mappings.json deleted file mode 100644 index 787dc52108b..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-c39a5-storagebookmarks-B7BEMLBCHV3W.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT.mappings.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "Source": { - "StackName": "amplify-discussions-main-c39a5-storagebookmarks-B7BEMLBCHV3W", - "LogicalResourceId": "DynamoDBTable" - }, - "Destination": { - "StackName": "amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT", - "LogicalResourceId": "bookmarksA4548304" - } - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-c39a5-storagebookmarks-B7BEMLBCHV3W.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT.source.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-c39a5-storagebookmarks-B7BEMLBCHV3W.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT.source.template.json deleted file mode 100644 index 4dcbc73d76c..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-c39a5-storagebookmarks-B7BEMLBCHV3W.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT.source.template.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-DynamoDB\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "partitionKeyName": { - "Type": "String" - }, - "partitionKeyType": { - "Type": "String" - }, - "env": { - "Type": "String" - }, - "sortKeyName": { - "Type": "String" - }, - "sortKeyType": { - "Type": "String" - }, - "tableName": { - "Type": "String" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - "main", - "NONE" - ] - } - }, - "Resources": { - "MigrationPlaceholder": { - "Type": "AWS::CloudFormation::WaitConditionHandle", - "Properties": {} - } - }, - "Outputs": { - "Name": { - "Value": "bookmarks-main" - }, - "Arn": { - "Value": "arn:aws:dynamodb:us-east-1:123456789012:table/bookmarks-main" - }, - "StreamArn": { - "Value": "arn:aws:dynamodb:us-east-1:123456789012:table/bookmarks-main/stream/2026-03-20T21:19:57.495" - }, - "PartitionKeyName": { - "Value": "userId" - }, - "PartitionKeyType": { - "Value": "S" - }, - "SortKeyName": { - "Value": "postId" - }, - "SortKeyType": { - "Value": "S" - }, - "Region": { - "Value": "us-east-1" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-c39a5-storagebookmarks-B7BEMLBCHV3W.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT.target.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-c39a5-storagebookmarks-B7BEMLBCHV3W.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT.target.template.json deleted file mode 100644 index 0711ae62f14..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-main-c39a5-storagebookmarks-B7BEMLBCHV3W.__to__.amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT.target.template.json +++ /dev/null @@ -1,341 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.21.1\",\"stackType\":\"custom\",\"metadata\":{}}", - "Resources": { - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXGOwqEMBAA0LPYJ7MaLOztt1B7mWRGiJ8EnERZxLsvaPWeAVPXUBZ4ina06NVbuL4sialP6BaFp4z0C7hFsnANaFdW7RSe3KpjiXl3fKsQiWGWz2EMVA2UxSze6z2H5DeG7vUPAxTDOW4AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storagebookmarks/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - }, - "bookmarksA4548304": { - "Type": "AWS::DynamoDB::Table", - "Properties": { - "AttributeDefinitions": [ - { - "AttributeName": "userId", - "AttributeType": "S" - }, - { - "AttributeName": "postId", - "AttributeType": "S" - } - ], - "GlobalSecondaryIndexes": [ - { - "IndexName": "byPost", - "KeySchema": [ - { - "AttributeName": "postId", - "KeyType": "HASH" - } - ], - "Projection": { - "ProjectionType": "ALL" - }, - "ProvisionedThroughput": { - "ReadCapacityUnits": 5, - "WriteCapacityUnits": 5 - } - } - ], - "KeySchema": [ - { - "AttributeName": "userId", - "KeyType": "HASH" - }, - { - "AttributeName": "postId", - "KeyType": "RANGE" - } - ], - "ProvisionedThroughput": { - "ReadCapacityUnits": 5, - "WriteCapacityUnits": 5 - }, - "StreamSpecification": { - "StreamViewType": "NEW_IMAGE" - }, - "TableName": { - "Fn::Join": [ - "", - [ - "bookmarks", - "-", - "main" - ] - ] - } - } - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-x-x-authdiscussionsc578c16ec578c16e-x.__to__.amplify-discussions-e2e-sandbox-x-auth179371D7-x.mappings.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-x-x-authdiscussionsc578c16ec578c16e-x.__to__.amplify-discussions-e2e-sandbox-x-auth179371D7-x.mappings.json new file mode 100644 index 00000000000..443ec678359 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-x-x-authdiscussionsc578c16ec578c16e-x.__to__.amplify-discussions-e2e-sandbox-x-auth179371D7-x.mappings.json @@ -0,0 +1,52 @@ +[ + { + "Source": { + "StackName": "amplify-discussions-x-x-authdiscussionsc578c16ec578c16e-x", + "LogicalResourceId": "UserPool" + }, + "Destination": { + "StackName": "amplify-discussions-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + } + }, + { + "Source": { + "StackName": "amplify-discussions-x-x-authdiscussionsc578c16ec578c16e-x", + "LogicalResourceId": "UserPoolClientWeb" + }, + "Destination": { + "StackName": "amplify-discussions-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + } + }, + { + "Source": { + "StackName": "amplify-discussions-x-x-authdiscussionsc578c16ec578c16e-x", + "LogicalResourceId": "UserPoolClient" + }, + "Destination": { + "StackName": "amplify-discussions-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + } + }, + { + "Source": { + "StackName": "amplify-discussions-x-x-authdiscussionsc578c16ec578c16e-x", + "LogicalResourceId": "IdentityPool" + }, + "Destination": { + "StackName": "amplify-discussions-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + } + }, + { + "Source": { + "StackName": "amplify-discussions-x-x-authdiscussionsc578c16ec578c16e-x", + "LogicalResourceId": "IdentityPoolRoleMap" + }, + "Destination": { + "StackName": "amplify-discussions-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + } + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-x-x-authdiscussionsc578c16ec578c16e-x.__to__.amplify-discussions-e2e-sandbox-x-auth179371D7-x.source.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-x-x-authdiscussionsc578c16ec578c16e-x.__to__.amplify-discussions-e2e-sandbox-x-auth179371D7-x.source.template.json new file mode 100644 index 00000000000..0626d05fc22 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-x-x-authdiscussionsc578c16ec578c16e-x.__to__.amplify-discussions-e2e-sandbox-x-auth179371D7-x.source.template.json @@ -0,0 +1,272 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "identityPoolName": { + "Type": "String" + }, + "allowUnauthenticatedIdentities": { + "Type": "String" + }, + "resourceNameTruncated": { + "Type": "String" + }, + "userPoolName": { + "Type": "String" + }, + "autoVerifiedAttributes": { + "Type": "CommaDelimitedList" + }, + "mfaConfiguration": { + "Type": "String" + }, + "mfaTypes": { + "Type": "CommaDelimitedList" + }, + "smsAuthenticationMessage": { + "Type": "String" + }, + "smsVerificationMessage": { + "Type": "String" + }, + "emailVerificationSubject": { + "Type": "String" + }, + "emailVerificationMessage": { + "Type": "String" + }, + "defaultPasswordPolicy": { + "Type": "String" + }, + "passwordPolicyMinLength": { + "Type": "String" + }, + "passwordPolicyCharacters": { + "Type": "CommaDelimitedList" + }, + "requiredAttributes": { + "Type": "CommaDelimitedList" + }, + "aliasAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientGenerateSecret": { + "Type": "String" + }, + "userpoolClientRefreshTokenValidity": { + "Type": "String" + }, + "userpoolClientWriteAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientReadAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientLambdaRole": { + "Type": "String" + }, + "userpoolClientSetAttributes": { + "Type": "String" + }, + "sharedId": { + "Type": "String" + }, + "resourceName": { + "Type": "String" + }, + "authSelections": { + "Type": "String" + }, + "useDefault": { + "Type": "String" + }, + "thirdPartyAuth": { + "Type": "String" + }, + "usernameAttributes": { + "Type": "CommaDelimitedList" + }, + "userPoolGroups": { + "Type": "String" + }, + "adminQueries": { + "Type": "String" + }, + "triggers": { + "Type": "String" + }, + "hostedUI": { + "Type": "String" + }, + "userPoolGroupList": { + "Type": "CommaDelimitedList" + }, + "serviceName": { + "Type": "String" + }, + "usernameCaseSensitive": { + "Type": "String" + }, + "useEnabledMfas": { + "Type": "String" + }, + "authRoleArn": { + "Type": "String" + }, + "unauthRoleArn": { + "Type": "String" + }, + "breakCircularDependency": { + "Type": "String" + }, + "dependsOn": { + "Type": "CommaDelimitedList" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + "x", + "NONE" + ] + } + }, + "Resources": { + "SNSRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Sid": "", + "Effect": "Allow", + "Principal": { + "Service": "cognito-idp.amazonaws.com" + }, + "Action": [ + "sts:AssumeRole" + ], + "Condition": { + "StringEquals": { + "sts:ExternalId": "discusc578c16e_role_external_id" + } + } + } + ] + }, + "Policies": [ + { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "sns:Publish" + ], + "Resource": "*" + } + ] + }, + "PolicyName": "discusc578c16e-sns-policy" + } + ], + "RoleName": { + "Fn::Join": [ + "", + [ + "snsc578c16e", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + "amplify-discussions-x-x-authdiscussionsc578c16ec578c16e-x" + ] + } + ] + }, + "-", + "x" + ] + ] + } + } + }, + "UserPoolClientRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + }, + "Action": "sts:AssumeRole" + } + ] + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "upClientLambdaRolec578c16e", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + "amplify-discussions-x-x-authdiscussionsc578c16ec578c16e-x" + ] + } + ] + }, + "-", + "x" + ] + ] + } + } + } + }, + "Outputs": { + "IdentityPoolId": { + "Description": "Id for the identity pool", + "Value": "us-east-1:c19a7d32-3b9f-4b48-829c-46082712131c" + }, + "IdentityPoolName": { + "Value": "discussionsc578c16e_identitypool_c578c16e__x" + }, + "UserPoolId": { + "Description": "Id for the user pool", + "Value": "us-east-1_lG0pUBlcH" + }, + "UserPoolArn": { + "Description": "Arn for the user pool", + "Value": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_lG0pUBlcH" + }, + "UserPoolName": { + "Value": "discussionsc578c16e_userpool_c578c16e" + }, + "AppClientIDWeb": { + "Description": "The user pool app client id for web", + "Value": "2u018c10958rc16k88nfl6er4m" + }, + "AppClientID": { + "Description": "The user pool app client id", + "Value": "145r5chjngcvdjv7uk1s3826ol" + }, + "CreatedSNSRole": { + "Description": "role arn", + "Value": "arn:aws:iam::123456789012:role/snsc578c16ex-x" + } + } +} diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-x-x-authdiscussionsc578c16ec578c16e-x.__to__.amplify-discussions-e2e-sandbox-x-auth179371D7-x.target.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-x-x-authdiscussionsc578c16ec578c16e-x.__to__.amplify-discussions-e2e-sandbox-x-auth179371D7-x.target.template.json new file mode 100644 index 00000000000..8d787737385 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-x-x-authdiscussionsc578c16ec578c16e-x.__to__.amplify-discussions-e2e-sandbox-x-auth179371D7-x.target.template.json @@ -0,0 +1,523 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", + "Resources": { + "amplifyAuthauthenticatedUserRoleD8DA3689": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:0ab20e5d-b843-4969-94b1-c17d26af9934" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/auth/amplifyAuth/authenticatedUserRole/Resource" + } + }, + "amplifyAuthunauthenticatedUserRole2B524D9E": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:0ab20e5d-b843-4969-94b1-c17d26af9934" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "unauthenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/auth/amplifyAuth/unauthenticatedUserRole/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/02LwQrCMBBEv6X3dK0BvUtPXkQqniUmq26bbqBZLRLy71Kk2tPMvJnRoDcVVIUZY2ldV3q6QjpgFHQnMbZTZoyXZMOdSQKkc8ThGIJX9Y1/fja1J2RZVn+yd8hC8p7Py9wEjzsRYx89smRFpoc0wWk4ac5ZcXAIbVy9tIb1FqqijUTl8GShHqH56gf10GUazgAAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/auth/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + }, + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Here is your verification code {####}", + "EmailVerificationSubject": "Verification", + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": "8", + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + }, + { + "Mutable": true, + "Name": "phone_number", + "Required": true + } + ], + "SmsAuthenticationMessage": "Your authentication code is {####}", + "SmsConfiguration": { + "ExternalId": "discusc578c16e_role_external_id", + "SnsCallerArn": "arn:aws:iam::123456789012:role/snsc578c16ex-x" + }, + "SmsVerificationMessage": "Your verification code is {####}", + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolName": { + "Fn::Join": [ + "", + [ + "discussionsc578c16e_userpool_c578c16e", + "-", + "x" + ] + ] + }, + "UsernameAttributes": [ + "phone_number" + ], + "UsernameConfiguration": { + "CaseSensitive": false + } + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "discusc578c16e_app_clientWeb", + "RefreshTokenValidity": "120", + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": "us-east-1_lG0pUBlcH" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "discusc578c16e_app_client", + "GenerateSecret": "false", + "RefreshTokenValidity": "120", + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": "us-east-1_lG0pUBlcH" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": "false", + "CognitoIdentityProviders": [ + { + "ClientId": "145r5chjngcvdjv7uk1s3826ol", + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": "us-east-1_lG0pUBlcH" + } + ] + } + }, + { + "ClientId": "2u018c10958rc16k88nfl6er4m", + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": "us-east-1_lG0pUBlcH" + } + ] + } + } + ], + "IdentityPoolName": { + "Fn::Join": [ + "", + [ + "discussionsc578c16e_identitypool_c578c16e__", + "x" + ] + ] + } + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:c19a7d32-3b9f-4b48-829c-46082712131c", + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-discussions-x-x-unauthRole", + "authenticated": "arn:aws:iam::123456789012:role/amplify-discussions-x-x-authRole" + } + } + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifydiscussionse2esandbox11f7701e3cauthamplifyAuthUserPool78F21D47Ref": { + "Value": "us-east-1_QiMcYOBJq" + }, + "amplifydiscussionse2esandbox11f7701e3cauthamplifyAuthUserPoolAppClientC0A8CDEFRef": { + "Value": "5fmpdjh49lauff16m1r548ug0t" + }, + "amplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef": { + "Value": "us-east-1:0ab20e5d-b843-4969-94b1-c17d26af9934" + }, + "amplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref": { + "Value": "amplify-discussion2604142-amplifyAuthauthenticatedU-OFERj1VQgbh0" + }, + "amplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef": { + "Value": "amplify-discussion2604142-amplifyAuthunauthenticate-RegjzqZNry1w" + } + } +} diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-x-x-storageactivity-x.__to__.amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x.mappings.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-x-x-storageactivity-x.__to__.amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x.mappings.json new file mode 100644 index 00000000000..55a4426df66 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-x-x-storageactivity-x.__to__.amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x.mappings.json @@ -0,0 +1,12 @@ +[ + { + "Source": { + "StackName": "amplify-discussions-x-x-storageactivity-x", + "LogicalResourceId": "DynamoDBTable" + }, + "Destination": { + "StackName": "amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x", + "LogicalResourceId": "activity1E902D9C" + } + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-x-x-storageactivity-x.__to__.amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x.source.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-x-x-storageactivity-x.__to__.amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x.source.template.json new file mode 100644 index 00000000000..22584281b7b --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-x-x-storageactivity-x.__to__.amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x.source.template.json @@ -0,0 +1,64 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-DynamoDB\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "partitionKeyName": { + "Type": "String" + }, + "partitionKeyType": { + "Type": "String" + }, + "env": { + "Type": "String" + }, + "sortKeyName": { + "Type": "String" + }, + "sortKeyType": { + "Type": "String" + }, + "tableName": { + "Type": "String" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + "x", + "NONE" + ] + } + }, + "Resources": { + "MigrationPlaceholder": { + "Type": "AWS::CloudFormation::WaitConditionHandle", + "Properties": {} + } + }, + "Outputs": { + "Name": { + "Value": "activity-x" + }, + "Arn": { + "Value": "arn:aws:dynamodb:us-east-1:123456789012:table/activity-x" + }, + "StreamArn": { + "Value": "arn:aws:dynamodb:us-east-1:123456789012:table/activity-x/stream/2026-04-15T03:52:10.997" + }, + "PartitionKeyName": { + "Value": "id" + }, + "PartitionKeyType": { + "Value": "S" + }, + "SortKeyName": { + "Value": "userId" + }, + "SortKeyType": { + "Value": "S" + }, + "Region": { + "Value": "us-east-1" + } + } +} diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-x-x-storageactivity-x.__to__.amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x.target.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-x-x-storageactivity-x.__to__.amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x.target.template.json new file mode 100644 index 00000000000..72c72826bba --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-x-x-storageactivity-x.__to__.amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x.target.template.json @@ -0,0 +1,360 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.22.0\",\"stackType\":\"custom\",\"metadata\":{}}", + "Resources": { + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXGOwqEMBAA0LPYJ2M2oBewt3C3l0lmhPhJwImKiHcX1uo9C7YyYAo8RHua9BwcXC1LZvpm9JPCQ3o6Iy6JHFw/dDOrZoj/3KpjSdvq+VYxEcMo5W4tfGowxSgh6HWLOSwM3esDKnhKBG4AAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storageactivity/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + }, + "activity1E902D9C": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + }, + { + "AttributeName": "userId", + "AttributeType": "S" + }, + { + "AttributeName": "timestamp", + "AttributeType": "S" + } + ], + "GlobalSecondaryIndexes": [ + { + "IndexName": "byUserId", + "KeySchema": [ + { + "AttributeName": "userId", + "KeyType": "HASH" + }, + { + "AttributeName": "timestamp", + "KeyType": "RANGE" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "ReadCapacityUnits": 5, + "WriteCapacityUnits": 5 + } + } + ], + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + }, + { + "AttributeName": "userId", + "KeyType": "RANGE" + } + ], + "ProvisionedThroughput": { + "ReadCapacityUnits": 5, + "WriteCapacityUnits": 5 + }, + "StreamSpecification": { + "StreamViewType": "NEW_IMAGE" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "activity", + "-", + "x" + ] + ] + } + } + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifydiscussionse2esandbox11f7701e3cstorageactivity2CAC8EACArn": { + "Value": "arn:aws:dynamodb:us-east-1:123456789012:table/amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x-activity1E902D9C-WW109ZPG3FYW" + }, + "amplifydiscussionse2esandbox11f7701e3cstorageactivity2CAC8EACStreamArn": { + "Value": "arn:aws:dynamodb:us-east-1:123456789012:table/amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x-activity1E902D9C-WW109ZPG3FYW/stream/2026-04-15T04:05:17.207" + }, + "amplifydiscussionse2esandbox11f7701e3cstorageactivity2CAC8EACRef": { + "Value": "amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x-activity1E902D9C-WW109ZPG3FYW" + } + } +} diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-x-x-storageavatars-x.__to__.amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x.mappings.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-x-x-storageavatars-x.__to__.amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x.mappings.json new file mode 100644 index 00000000000..1d53db87643 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-x-x-storageavatars-x.__to__.amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x.mappings.json @@ -0,0 +1,12 @@ +[ + { + "Source": { + "StackName": "amplify-discussions-x-x-storageavatars-x", + "LogicalResourceId": "S3Bucket" + }, + "Destination": { + "StackName": "amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x", + "LogicalResourceId": "discusavatarsxgen2xBucketDA2F9CC2" + } + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-x-x-storageavatars-x.__to__.amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x.source.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-x-x-storageavatars-x.__to__.amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x.source.template.json new file mode 100644 index 00000000000..75d83966f1d --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-x-x-storageavatars-x.__to__.amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x.source.template.json @@ -0,0 +1,381 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-S3\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "bucketName": { + "Type": "String" + }, + "authRoleName": { + "Type": "String" + }, + "unauthRoleName": { + "Type": "String" + }, + "authPolicyName": { + "Type": "String" + }, + "unauthPolicyName": { + "Type": "String" + }, + "s3PublicPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3PrivatePolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3ProtectedPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3UploadsPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3ReadPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3PermissionsAuthenticatedPublic": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedProtected": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedPrivate": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedUploads": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsGuestPublic": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsGuestUploads": { + "Type": "String", + "Default": "DISALLOW" + }, + "AuthenticatedAllowList": { + "Type": "String", + "Default": "DISALLOW" + }, + "GuestAllowList": { + "Type": "String", + "Default": "DISALLOW" + }, + "selectedGuestPermissions": { + "Type": "CommaDelimitedList", + "Default": "NONE" + }, + "selectedAuthenticatedPermissions": { + "Type": "CommaDelimitedList", + "Default": "NONE" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + "x", + "NONE" + ] + }, + "CreateAuthPublic": { + "Fn::Not": [ + { + "Fn::Equals": [ + "s3:PutObject,s3:GetObject,s3:DeleteObject", + "DISALLOW" + ] + } + ] + }, + "CreateAuthProtected": { + "Fn::Not": [ + { + "Fn::Equals": [ + "s3:PutObject,s3:GetObject,s3:DeleteObject", + "DISALLOW" + ] + } + ] + }, + "CreateAuthPrivate": { + "Fn::Not": [ + { + "Fn::Equals": [ + "s3:PutObject,s3:GetObject,s3:DeleteObject", + "DISALLOW" + ] + } + ] + }, + "CreateAuthUploads": { + "Fn::Not": [ + { + "Fn::Equals": [ + "s3:PutObject", + "DISALLOW" + ] + } + ] + }, + "CreateGuestPublic": { + "Fn::Not": [ + { + "Fn::Equals": [ + "DISALLOW", + "DISALLOW" + ] + } + ] + }, + "CreateGuestUploads": { + "Fn::Not": [ + { + "Fn::Equals": [ + "DISALLOW", + "DISALLOW" + ] + } + ] + }, + "AuthReadAndList": { + "Fn::Not": [ + { + "Fn::Equals": [ + "ALLOW", + "DISALLOW" + ] + } + ] + }, + "GuestReadAndList": { + "Fn::Not": [ + { + "Fn::Equals": [ + "DISALLOW", + "DISALLOW" + ] + } + ] + } + }, + "Outputs": { + "BucketName": { + "Description": "Bucket name for the S3 bucket", + "Value": "discus-avatarsx-x" + }, + "Region": { + "Value": "us-east-1" + } + }, + "Resources": { + "S3AuthPublicPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + "s3:PutObject,s3:GetObject,s3:DeleteObject" + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "discus-avatarsx-x", + "/public/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "Public_policy_bf41454d", + "Roles": [ + "amplify-discussions-x-x-authRole" + ] + }, + "Condition": "CreateAuthPublic" + }, + "S3AuthProtectedPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + "s3:PutObject,s3:GetObject,s3:DeleteObject" + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "discus-avatarsx-x", + "/protected/${cognito-identity.amazonaws.com:sub}/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "Protected_policy_bf41454d", + "Roles": [ + "amplify-discussions-x-x-authRole" + ] + }, + "Condition": "CreateAuthProtected" + }, + "S3AuthPrivatePolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + "s3:PutObject,s3:GetObject,s3:DeleteObject" + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "discus-avatarsx-x", + "/private/${cognito-identity.amazonaws.com:sub}/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "Private_policy_bf41454d", + "Roles": [ + "amplify-discussions-x-x-authRole" + ] + }, + "Condition": "CreateAuthPrivate" + }, + "S3AuthUploadPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + "s3:PutObject" + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "discus-avatarsx-x", + "/uploads/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "Uploads_policy_bf41454d", + "Roles": [ + "amplify-discussions-x-x-authRole" + ] + }, + "Condition": "CreateAuthUploads" + }, + "S3AuthReadPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "discus-avatarsx-x", + "/protected/*" + ] + ] + } + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/", + "public/*", + "protected/", + "protected/*", + "private/${cognito-identity.amazonaws.com:sub}/", + "private/${cognito-identity.amazonaws.com:sub}/*" + ] + } + }, + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "discus-avatarsx-x" + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "read_policy_bf41454d", + "Roles": [ + "amplify-discussions-x-x-authRole" + ] + }, + "Condition": "AuthReadAndList" + } + } +} diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-x-x-storageavatars-x.__to__.amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x.target.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-x-x-storageavatars-x.__to__.amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x.target.template.json new file mode 100644 index 00000000000..4d736aab626 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-x-x-storageavatars-x.__to__.amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x.target.template.json @@ -0,0 +1,645 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", + "Resources": { + "discusavatarsxgen2xBucketPolicyD2E4B70C": { + "Type": "AWS::S3::BucketPolicy", + "Properties": { + "Bucket": "amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf", + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:*", + "Condition": { + "Bool": { + "aws:SecureTransport": "false" + } + }, + "Effect": "Deny", + "Principal": { + "AWS": "*" + }, + "Resource": [ + "arn:aws:s3:::amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf", + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf", + "/*" + ] + ] + } + ] + }, + { + "Action": [ + "s3:PutBucketPolicy", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*" + ], + "Effect": "Allow", + "Principal": { + "AWS": "arn:aws:iam::123456789012:role/amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + }, + "Resource": [ + "arn:aws:s3:::amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf", + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf", + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storage/discus-avatarsx-gen2-x/Bucket/Policy/Resource" + } + }, + "discusavatarsxgen2xBucketAutoDeleteObjectsCustomResource1D08A711": { + "Type": "Custom::S3AutoDeleteObjects", + "Properties": { + "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "BucketName": "amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storage/discus-avatarsx-gen2-x/Bucket/AutoDeleteObjectsCustomResource/Default" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ] + }, + "ManagedPolicyArns": [ + { + "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" + }, + "Timeout": 900, + "MemorySize": 128, + "Handler": "index.handler", + "Role": "arn:aws:iam::123456789012:role/amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Runtime": "nodejs22.x", + "Description": { + "Fn::Join": [ + "", + [ + "Lambda function for auto-deleting objects in ", + "amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf", + " S3 bucket." + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", + "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", + "aws:asset:property": "Code" + } + }, + "DISCUSAVATARSB4C74GEN2EGFGFHFICCBUCKETNAMEParameter6939AE5D": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/discussions/e2e-sandbox-x/DISCUS_AVATARSB_4_C_74_GEN_2_EGFGFHFICC_BUCKET_NAME", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": "amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storage/DISCUS_AVATARSB_4_C_74_GEN_2_EGFGFHFICC_BUCKET_NAMEParameter/Resource" + } + }, + "amplifydiscussionse2esandbox11f7701e3cstorageAccess3FA725BAE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:PutObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf", + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf", + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf", + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf", + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf", + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf", + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/*", + "public/", + "protected/*", + "protected/", + "private/*", + "private/" + ] + } + }, + "Effect": "Allow", + "Resource": "arn:aws:s3:::amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf" + }, + { + "Action": "s3:DeleteObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf", + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf", + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf", + "/private/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "amplifydiscussionse2esandbox11f7701e3cstorageAccess3FA725BAE", + "Roles": [ + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storage/amplify-discussions-e2e-sandbox-x--storageAccess3/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/5WNy07DMBBFv6VZO0NIBQt2fawhapYIIdcZokliW/JMWpDlf0epJQJLVnNH5z5qqB8qqDb6yqXpxnKiM8RnZMGuFW1Gpa/8HnkLcT+bEUUdPlxWr7Gw9EmueCp+hxc/b+GGGLJ1N4s/4oSCL+cBjXCR3lRGjZ/IfK2t+f9Hdw60ogUtult1UswWYiuBXN/ooC0KhmXj50mKtIW4rmeVkjrMLN6ekP0cDC5o1X9QE/yFOgx7zah2zCit6J5cn5TzHcLAd5e6hvtHqDYDE5VhdkIW4ZTvN8L1/x56AQAA" + }, + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storage/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + }, + "discusavatarsxgen2xBucketDA2F9CC2": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketName": { + "Fn::Join": [ + "", + [ + "discus-avatars", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + "amplify-discussions-x-x-storageavatars-x" + ] + } + ] + }, + "-", + "x" + ] + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "Id": "S3CORSRuleId1", + "MaxAge": 3000 + } + ] + }, + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + } + }, + "UpdateReplacePolicy": "Retain", + "DeletionPolicy": "Retain" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref": { + "Type": "String" + } + }, + "Outputs": { + "amplifydiscussionse2esandbox11f7701e3cstoragediscusavatarsxgen2xBucketC837A45ARef": { + "Value": "amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf" + } + } +} diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-x-x-storagebookmarks-x.__to__.amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x.mappings.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-x-x-storagebookmarks-x.__to__.amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x.mappings.json new file mode 100644 index 00000000000..6d533092e04 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-x-x-storagebookmarks-x.__to__.amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x.mappings.json @@ -0,0 +1,12 @@ +[ + { + "Source": { + "StackName": "amplify-discussions-x-x-storagebookmarks-x", + "LogicalResourceId": "DynamoDBTable" + }, + "Destination": { + "StackName": "amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x", + "LogicalResourceId": "bookmarksA4548304" + } + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-x-x-storagebookmarks-x.__to__.amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x.source.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-x-x-storagebookmarks-x.__to__.amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x.source.template.json new file mode 100644 index 00000000000..7c1108a3a2e --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-x-x-storagebookmarks-x.__to__.amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x.source.template.json @@ -0,0 +1,64 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-DynamoDB\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "partitionKeyName": { + "Type": "String" + }, + "partitionKeyType": { + "Type": "String" + }, + "env": { + "Type": "String" + }, + "sortKeyName": { + "Type": "String" + }, + "sortKeyType": { + "Type": "String" + }, + "tableName": { + "Type": "String" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + "x", + "NONE" + ] + } + }, + "Resources": { + "MigrationPlaceholder": { + "Type": "AWS::CloudFormation::WaitConditionHandle", + "Properties": {} + } + }, + "Outputs": { + "Name": { + "Value": "bookmarks-x" + }, + "Arn": { + "Value": "arn:aws:dynamodb:us-east-1:123456789012:table/bookmarks-x" + }, + "StreamArn": { + "Value": "arn:aws:dynamodb:us-east-1:123456789012:table/bookmarks-x/stream/2026-04-15T03:52:11.077" + }, + "PartitionKeyName": { + "Value": "userId" + }, + "PartitionKeyType": { + "Value": "S" + }, + "SortKeyName": { + "Value": "postId" + }, + "SortKeyType": { + "Value": "S" + }, + "Region": { + "Value": "us-east-1" + } + } +} diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-x-x-storagebookmarks-x.__to__.amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x.target.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-x-x-storagebookmarks-x.__to__.amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x.target.template.json new file mode 100644 index 00000000000..47808f262f6 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/refactor.__from__.amplify-discussions-x-x-storagebookmarks-x.__to__.amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x.target.template.json @@ -0,0 +1,341 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.22.0\",\"stackType\":\"custom\",\"metadata\":{}}", + "Resources": { + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXGOwqEMBAA0LPYJ2M2oBewt3C3l0lmhPhJwImKiHcX1uo9C7YyYAo8RHua9BwcXC1LZvpm9JPCQ3o6Iy6JHFw/dDOrZoj/3KpjSdvq+VYxEcMo5W4tfGowxSgh6HWLOSwM3esDKnhKBG4AAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storagebookmarks/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + }, + "bookmarksA4548304": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "AttributeDefinitions": [ + { + "AttributeName": "userId", + "AttributeType": "S" + }, + { + "AttributeName": "postId", + "AttributeType": "S" + } + ], + "GlobalSecondaryIndexes": [ + { + "IndexName": "byPost", + "KeySchema": [ + { + "AttributeName": "postId", + "KeyType": "HASH" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "ReadCapacityUnits": 5, + "WriteCapacityUnits": 5 + } + } + ], + "KeySchema": [ + { + "AttributeName": "userId", + "KeyType": "HASH" + }, + { + "AttributeName": "postId", + "KeyType": "RANGE" + } + ], + "ProvisionedThroughput": { + "ReadCapacityUnits": 5, + "WriteCapacityUnits": 5 + }, + "StreamSpecification": { + "StreamViewType": "NEW_IMAGE" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "bookmarks", + "-", + "x" + ] + ] + } + } + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + } +} diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-e2e-sandbox-x-auth179371D7-x.parameters.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-e2e-sandbox-x-auth179371D7-x.parameters.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-e2e-sandbox-x-auth179371D7-x.parameters.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-e2e-sandbox-x-auth179371D7-x.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-e2e-sandbox-x-auth179371D7-x.template.json new file mode 100644 index 00000000000..d1d221fce25 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-e2e-sandbox-x-auth179371D7-x.template.json @@ -0,0 +1,595 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", + "Resources": { + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AccountRecoverySetting": { + "RecoveryMechanisms": [ + { + "Name": "verified_email", + "Priority": 1 + } + ] + }, + "AdminCreateUserConfig": { + "AllowAdminCreateUserOnly": false + }, + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Here is your verification code {####}", + "EmailVerificationSubject": "Verification", + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": 8, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false, + "TemporaryPasswordValidityDays": 7 + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + }, + { + "Mutable": true, + "Name": "phone_number", + "Required": true + } + ], + "SmsVerificationMessage": "The verification code to your new account is {####}", + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolTags": { + "amplify:deployment-type": "sandbox", + "amplify:friendly-name": "amplifyAuth", + "created-by": "amplify" + }, + "UsernameAttributes": [ + "phone_number" + ], + "UsernameConfiguration": { + "CaseSensitive": false + }, + "VerificationMessageTemplate": { + "DefaultEmailOption": "CONFIRM_WITH_CODE", + "EmailMessage": "Here is your verification code {####}", + "EmailSubject": "Verification", + "SmsMessage": "The verification code to your new account is {####}" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/auth/amplifyAuth/UserPool/Resource" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 172800, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": "us-east-1_QiMcYOBJq" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlows": [ + "code" + ], + "AllowedOAuthFlowsUserPoolClient": true, + "AllowedOAuthScopes": [ + "profile", + "phone", + "email", + "openid", + "aws.cognito.signin.user.admin" + ], + "CallbackURLs": [ + "https://example.com" + ], + "ExplicitAuthFlows": [ + "ALLOW_CUSTOM_AUTH", + "ALLOW_USER_SRP_AUTH", + "ALLOW_REFRESH_TOKEN_AUTH" + ], + "PreventUserExistenceErrors": "ENABLED", + "SupportedIdentityProviders": [ + "COGNITO" + ], + "UserPoolId": "us-east-1_QiMcYOBJq" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/auth/amplifyAuth/UserPoolAppClient/Resource" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": false, + "CognitoIdentityProviders": [ + { + "ClientId": "5fmpdjh49lauff16m1r548ug0t", + "ProviderName": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_QiMcYOBJq" + ] + ] + } + } + ], + "IdentityPoolTags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "SupportedLoginProviders": {} + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/auth/amplifyAuth/IdentityPool" + } + }, + "amplifyAuthauthenticatedUserRoleD8DA3689": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:0ab20e5d-b843-4969-94b1-c17d26af9934" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/auth/amplifyAuth/authenticatedUserRole/Resource" + } + }, + "amplifyAuthunauthenticatedUserRole2B524D9E": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:0ab20e5d-b843-4969-94b1-c17d26af9934" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "unauthenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/auth/amplifyAuth/unauthenticatedUserRole/Resource" + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:0ab20e5d-b843-4969-94b1-c17d26af9934", + "RoleMappings": { + "UserPoolWebClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_QiMcYOBJq", + ":", + "5fmpdjh49lauff16m1r548ug0t" + ] + ] + }, + "Type": "Token" + } + }, + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-discussion2604142-amplifyAuthunauthenticate-RegjzqZNry1w", + "authenticated": "arn:aws:iam::123456789012:role/amplify-discussion2604142-amplifyAuthauthenticatedU-OFERj1VQgbh0" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/auth/amplifyAuth/IdentityPoolRoleAttachment" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/02LwQrCMBBEv6X3dK0BvUtPXkQqniUmq26bbqBZLRLy71Kk2tPMvJnRoDcVVIUZY2ldV3q6QjpgFHQnMbZTZoyXZMOdSQKkc8ThGIJX9Y1/fja1J2RZVn+yd8hC8p7Py9wEjzsRYx89smRFpoc0wWk4ac5ZcXAIbVy9tIb1FqqijUTl8GShHqH56gf10GUazgAAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/auth/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifydiscussionse2esandbox11f7701e3cauthamplifyAuthUserPool78F21D47Ref": { + "Value": "us-east-1_QiMcYOBJq" + }, + "amplifydiscussionse2esandbox11f7701e3cauthamplifyAuthUserPoolAppClientC0A8CDEFRef": { + "Value": "5fmpdjh49lauff16m1r548ug0t" + }, + "amplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef": { + "Value": "us-east-1:0ab20e5d-b843-4969-94b1-c17d26af9934" + }, + "amplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref": { + "Value": "amplify-discussion2604142-amplifyAuthauthenticatedU-OFERj1VQgbh0" + }, + "amplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef": { + "Value": "amplify-discussion2604142-amplifyAuthunauthenticate-RegjzqZNry1w" + } + } +} diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x.parameters.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x.parameters.json new file mode 100644 index 00000000000..0b6ec8b3565 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x.parameters.json @@ -0,0 +1,6 @@ +[ + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref", + "ParameterValue": "amplify-discussion2604142-amplifyAuthauthenticatedU-OFERj1VQgbh0" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x.template.json new file mode 100644 index 00000000000..3425c456889 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x.template.json @@ -0,0 +1,645 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", + "Resources": { + "discusavatarsxgen2xBucketDA2F9CC2": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "BucketKeyEnabled": false, + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "MaxAge": 3000 + } + ] + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "discus-avatarsx-gen2-x" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storage/discus-avatarsx-gen2-x/Bucket/Resource" + } + }, + "discusavatarsxgen2xBucketPolicyD2E4B70C": { + "Type": "AWS::S3::BucketPolicy", + "Properties": { + "Bucket": "amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf", + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:*", + "Condition": { + "Bool": { + "aws:SecureTransport": "false" + } + }, + "Effect": "Deny", + "Principal": { + "AWS": "*" + }, + "Resource": [ + "arn:aws:s3:::amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf", + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf", + "/*" + ] + ] + } + ] + }, + { + "Action": [ + "s3:PutBucketPolicy", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*" + ], + "Effect": "Allow", + "Principal": { + "AWS": "arn:aws:iam::123456789012:role/amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + }, + "Resource": [ + "arn:aws:s3:::amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf", + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf", + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storage/discus-avatarsx-gen2-x/Bucket/Policy/Resource" + } + }, + "discusavatarsxgen2xBucketAutoDeleteObjectsCustomResource1D08A711": { + "Type": "Custom::S3AutoDeleteObjects", + "Properties": { + "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "BucketName": "amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storage/discus-avatarsx-gen2-x/Bucket/AutoDeleteObjectsCustomResource/Default" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ] + }, + "ManagedPolicyArns": [ + { + "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" + }, + "Timeout": 900, + "MemorySize": 128, + "Handler": "index.handler", + "Role": "arn:aws:iam::123456789012:role/amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Runtime": "nodejs22.x", + "Description": { + "Fn::Join": [ + "", + [ + "Lambda function for auto-deleting objects in ", + "amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf", + " S3 bucket." + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", + "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", + "aws:asset:property": "Code" + } + }, + "DISCUSAVATARSB4C74GEN2EGFGFHFICCBUCKETNAMEParameter6939AE5D": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/discussions/e2e-sandbox-x/DISCUS_AVATARSB_4_C_74_GEN_2_EGFGFHFICC_BUCKET_NAME", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": "amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storage/DISCUS_AVATARSB_4_C_74_GEN_2_EGFGFHFICC_BUCKET_NAMEParameter/Resource" + } + }, + "amplifydiscussionse2esandbox11f7701e3cstorageAccess3FA725BAE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:PutObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf", + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf", + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf", + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf", + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf", + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf", + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/*", + "public/", + "protected/*", + "protected/", + "private/*", + "private/" + ] + } + }, + "Effect": "Allow", + "Resource": "arn:aws:s3:::amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf" + }, + { + "Action": "s3:DeleteObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf", + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf", + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf", + "/private/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "amplifydiscussionse2esandbox11f7701e3cstorageAccess3FA725BAE", + "Roles": [ + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storage/amplify-discussions-e2e-sandbox-x--storageAccess3/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/5WNy07DMBBFv6VZO0NIBQt2fawhapYIIdcZokliW/JMWpDlf0epJQJLVnNH5z5qqB8qqDb6yqXpxnKiM8RnZMGuFW1Gpa/8HnkLcT+bEUUdPlxWr7Gw9EmueCp+hxc/b+GGGLJ1N4s/4oSCL+cBjXCR3lRGjZ/IfK2t+f9Hdw60ogUtult1UswWYiuBXN/ooC0KhmXj50mKtIW4rmeVkjrMLN6ekP0cDC5o1X9QE/yFOgx7zah2zCit6J5cn5TzHcLAd5e6hvtHqDYDE5VhdkIW4ZTvN8L1/x56AQAA" + }, + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storage/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref": { + "Type": "String" + } + }, + "Outputs": { + "amplifydiscussionse2esandbox11f7701e3cstoragediscusavatarsxgen2xBucketC837A45ARef": { + "Value": "amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf" + } + } +} diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x.parameters.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x.parameters.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x.parameters.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x.template.json new file mode 100644 index 00000000000..02b70327529 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x.template.json @@ -0,0 +1,365 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.22.0\",\"stackType\":\"custom\",\"metadata\":{}}", + "Resources": { + "activity1E902D9C": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + }, + { + "AttributeName": "userId", + "AttributeType": "S" + }, + { + "AttributeName": "timestamp", + "AttributeType": "S" + } + ], + "GlobalSecondaryIndexes": [ + { + "IndexName": "byUserId", + "KeySchema": [ + { + "AttributeName": "userId", + "KeyType": "HASH" + }, + { + "AttributeName": "timestamp", + "KeyType": "RANGE" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "ReadCapacityUnits": 5, + "WriteCapacityUnits": 5 + } + } + ], + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + }, + { + "AttributeName": "userId", + "KeyType": "RANGE" + } + ], + "ProvisionedThroughput": { + "ReadCapacityUnits": 5, + "WriteCapacityUnits": 5 + }, + "StreamSpecification": { + "StreamViewType": "NEW_IMAGE" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storageactivity/activity/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXGOwqEMBAA0LPYJ2M2oBewt3C3l0lmhPhJwImKiHcX1uo9C7YyYAo8RHua9BwcXC1LZvpm9JPCQ3o6Iy6JHFw/dDOrZoj/3KpjSdvq+VYxEcMo5W4tfGowxSgh6HWLOSwM3esDKnhKBG4AAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storageactivity/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifydiscussionse2esandbox11f7701e3cstorageactivity2CAC8EACArn": { + "Value": "arn:aws:dynamodb:us-east-1:123456789012:table/amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x-activity1E902D9C-WW109ZPG3FYW" + }, + "amplifydiscussionse2esandbox11f7701e3cstorageactivity2CAC8EACStreamArn": { + "Value": "arn:aws:dynamodb:us-east-1:123456789012:table/amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x-activity1E902D9C-WW109ZPG3FYW/stream/2026-04-15T04:05:17.207" + }, + "amplifydiscussionse2esandbox11f7701e3cstorageactivity2CAC8EACRef": { + "Value": "amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x-activity1E902D9C-WW109ZPG3FYW" + } + } +} diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x.parameters.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x.parameters.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x.parameters.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x.template.json new file mode 100644 index 00000000000..cabad4c826b --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x.template.json @@ -0,0 +1,346 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.22.0\",\"stackType\":\"custom\",\"metadata\":{}}", + "Resources": { + "bookmarksA4548304": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "AttributeDefinitions": [ + { + "AttributeName": "userId", + "AttributeType": "S" + }, + { + "AttributeName": "postId", + "AttributeType": "S" + } + ], + "GlobalSecondaryIndexes": [ + { + "IndexName": "byPost", + "KeySchema": [ + { + "AttributeName": "postId", + "KeyType": "HASH" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "ReadCapacityUnits": 5, + "WriteCapacityUnits": 5 + } + } + ], + "KeySchema": [ + { + "AttributeName": "userId", + "KeyType": "HASH" + }, + { + "AttributeName": "postId", + "KeyType": "RANGE" + } + ], + "ProvisionedThroughput": { + "ReadCapacityUnits": 5, + "WriteCapacityUnits": 5 + }, + "StreamSpecification": { + "StreamViewType": "NEW_IMAGE" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storagebookmarks/bookmarks/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXGOwqEMBAA0LPYJ2M2oBewt3C3l0lmhPhJwImKiHcX1uo9C7YyYAo8RHua9BwcXC1LZvpm9JPCQ3o6Iy6JHFw/dDOrZoj/3KpjSdvq+VYxEcMo5W4tfGowxSgh6HWLOSwM3esDKnhKBG4AAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storagebookmarks/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + } +} diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX.parameters.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX.parameters.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX.parameters.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX.template.json deleted file mode 100644 index 41640dfbadb..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX.template.json +++ /dev/null @@ -1,609 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", - "Resources": { - "amplifyAuthUserPool4BA7F805": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AccountRecoverySetting": { - "RecoveryMechanisms": [ - { - "Name": "verified_email", - "Priority": 1 - } - ] - }, - "AdminCreateUserConfig": { - "AllowAdminCreateUserOnly": false - }, - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": "Here is your verification code {####}", - "EmailVerificationSubject": "Verification", - "MfaConfiguration": "OFF", - "Policies": { - "PasswordPolicy": { - "MinimumLength": 8, - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false, - "TemporaryPasswordValidityDays": 7 - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - }, - { - "Mutable": true, - "Name": "phone_number", - "Required": true - } - ], - "SmsVerificationMessage": "The verification code to your new account is {####}", - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolTags": { - "amplify:app-id": "discussions", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "amplify:friendly-name": "amplifyAuth", - "created-by": "amplify" - }, - "UsernameAttributes": [ - "phone_number" - ], - "UsernameConfiguration": { - "CaseSensitive": false - }, - "VerificationMessageTemplate": { - "DefaultEmailOption": "CONFIRM_WITH_CODE", - "EmailMessage": "Here is your verification code {####}", - "EmailSubject": "Verification", - "SmsMessage": "The verification code to your new account is {####}" - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/auth/amplifyAuth/UserPool/Resource" - } - }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 172800, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": "us-east-1_I3YejOBUa" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, - "amplifyAuthUserPoolAppClient2626C6F8": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlows": [ - "code" - ], - "AllowedOAuthFlowsUserPoolClient": true, - "AllowedOAuthScopes": [ - "profile", - "phone", - "email", - "openid", - "aws.cognito.signin.user.admin" - ], - "CallbackURLs": [ - "https://example.com" - ], - "ExplicitAuthFlows": [ - "ALLOW_CUSTOM_AUTH", - "ALLOW_USER_SRP_AUTH", - "ALLOW_REFRESH_TOKEN_AUTH" - ], - "PreventUserExistenceErrors": "ENABLED", - "SupportedIdentityProviders": [ - "COGNITO" - ], - "UserPoolId": "us-east-1_I3YejOBUa" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/auth/amplifyAuth/UserPoolAppClient/Resource" - } - }, - "amplifyAuthIdentityPool3FDE84CC": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": false, - "CognitoIdentityProviders": [ - { - "ClientId": "3mosah7bsr7412hqq9soj1j2pp", - "ProviderName": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - "us-east-1_I3YejOBUa" - ] - ] - } - } - ], - "IdentityPoolTags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "SupportedLoginProviders": {} - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/auth/amplifyAuth/IdentityPool" - } - }, - "amplifyAuthauthenticatedUserRoleD8DA3689": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:d48cd035-0397-46c6-b39a-19514b421022" - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "authenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/auth/amplifyAuth/authenticatedUserRole/Resource" - } - }, - "amplifyAuthunauthenticatedUserRole2B524D9E": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:d48cd035-0397-46c6-b39a-19514b421022" - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "unauthenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/auth/amplifyAuth/unauthenticatedUserRole/Resource" - } - }, - "amplifyAuthIdentityPoolRoleAttachment045F17C8": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": "us-east-1:d48cd035-0397-46c6-b39a-19514b421022", - "RoleMappings": { - "UserPoolWebClientRoleMapping": { - "AmbiguousRoleResolution": "AuthenticatedRole", - "IdentityProvider": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - "us-east-1_I3YejOBUa", - ":", - "3mosah7bsr7412hqq9soj1j2pp" - ] - ] - }, - "Type": "Token" - } - }, - "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-discussions-ge-amplifyAuthunauthenticate-iYWdMAuszYuZ", - "authenticated": "arn:aws:iam::123456789012:role/amplify-discussions-ge-amplifyAuthauthenticatedU-fjzgnNdQ7Oe2" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/auth/amplifyAuth/IdentityPoolRoleAttachment" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/02LwQrCMBBEv6X3dK2hB6/SkxeRimeJyarbphtoVouE/LsUqXqamTczGnRdQ1WYKZbW9aWnC6Q9RkF3FGN7ZaZ4TjbcmCRAOkUcDyF41Vz56xfTeEKW/+pHdg5ZSF7L+T+3weNWxNj7gCxZkRkgzXAezppzVhwcQhdXT61hvYGq6CJROT5YaEBoP/oGtzQ+/84AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/auth/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Outputs": { - "amplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthUserPool82221E95Ref": { - "Value": "us-east-1_I3YejOBUa" - }, - "amplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthUserPoolAppClientFFCC03B0Ref": { - "Value": "3mosah7bsr7412hqq9soj1j2pp" - }, - "amplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref": { - "Value": "us-east-1:d48cd035-0397-46c6-b39a-19514b421022" - }, - "amplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef": { - "Value": "amplify-discussions-ge-amplifyAuthauthenticatedU-fjzgnNdQ7Oe2" - }, - "amplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef": { - "Value": "amplify-discussions-ge-amplifyAuthunauthenticate-iYWdMAuszYuZ" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N.parameters.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N.parameters.json deleted file mode 100644 index db99c1f6430..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N.parameters.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef", - "ParameterValue": "amplify-discussions-ge-amplifyAuthauthenticatedU-fjzgnNdQ7Oe2" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N.template.json deleted file mode 100644 index fff2b4be29f..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N.template.json +++ /dev/null @@ -1,645 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", - "Resources": { - "discusavatarsc39a5gen2mainBucketB24EA230": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "BucketKeyEnabled": false, - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "MaxAge": 3000 - } - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "discus-avatarsc39a5-gen2-main" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storage/discus-avatarsc39a5-gen2-main/Bucket/Resource" - } - }, - "discusavatarsc39a5gen2mainBucketPolicy73EB7DB2": { - "Type": "AWS::S3::BucketPolicy", - "Properties": { - "Bucket": "amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4", - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:*", - "Condition": { - "Bool": { - "aws:SecureTransport": "false" - } - }, - "Effect": "Deny", - "Principal": { - "AWS": "*" - }, - "Resource": [ - "arn:aws:s3:::amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4", - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4", - "/*" - ] - ] - } - ] - }, - { - "Action": [ - "s3:PutBucketPolicy", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*" - ], - "Effect": "Allow", - "Principal": { - "AWS": "arn:aws:iam::123456789012:role/amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - }, - "Resource": [ - "arn:aws:s3:::amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4", - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4", - "/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storage/discus-avatarsc39a5-gen2-main/Bucket/Policy/Resource" - } - }, - "discusavatarsc39a5gen2mainBucketAutoDeleteObjectsCustomResource2CB8EFAF": { - "Type": "Custom::S3AutoDeleteObjects", - "Properties": { - "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "BucketName": "amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4" - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storage/discus-avatarsc39a5-gen2-main/Bucket/AutoDeleteObjectsCustomResource/Default" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ] - }, - "ManagedPolicyArns": [ - { - "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" - }, - "Timeout": 900, - "MemorySize": 128, - "Handler": "index.handler", - "Role": "arn:aws:iam::123456789012:role/amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Runtime": "nodejs22.x", - "Description": { - "Fn::Join": [ - "", - [ - "Lambda function for auto-deleting objects in ", - "amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4", - " S3 bucket." - ] - ] - } - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", - "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", - "aws:asset:property": "Code" - } - }, - "DISCUSAVATARSC39A5GEN2MAINBUCKETNAMEParameter7EBC4CDD": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/discussions/gen2main-branch-a27e51c30a/DISCUS_AVATARSC_39_A_5_GEN_2_MAIN_BUCKET_NAME", - "Tags": { - "amplify:app-id": "discussions", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": "amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storage/DISCUS_AVATARSC_39_A_5_GEN_2_MAIN_BUCKET_NAMEParameter/Resource" - } - }, - "amplifydiscussionsgen2mainbrancha27e51c30astorageAccess342E15B6C": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:PutObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4", - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4", - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4", - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4", - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4", - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4", - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/*", - "public/", - "protected/*", - "protected/", - "private/*", - "private/" - ] - } - }, - "Effect": "Allow", - "Resource": "arn:aws:s3:::amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4" - }, - { - "Action": "s3:DeleteObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4", - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4", - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4", - "/private/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "amplifydiscussionsgen2mainbrancha27e51c30astorageAccess342E15B6C", - "Roles": [ - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storage/amplify-discussions-gen2main-branch-a27e51c30a--storageAccess3/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/5WNy07DMBBFv6VZO0NJu0Ds2rKGqFkihFxniCaJbckz6UOW/x2llggsWc0dnfuooNpuYb3SFy5NO5QjnSC+Igu2jWgzKH3hz8gbiPvJDCjq8OWyeo+FpSu54rn4HZ79vIE7YsjW3ST+BUcUfDv1aISL9KEyqv1I5ra05v8f3TnQiBa06O7VSTFbiI0Ecl2tg7YoGOaNnycp0hbisp5VSuowsXh7RPZTMDijRf9BdfBnajHsNaPaMaM0ojtyXVLOtwg9P5yrCh6fYL3qmagMkxOyCMd8vwGr7NONegEAAA==" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storage/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef": { - "Type": "String" - } - }, - "Outputs": { - "amplifydiscussionsgen2mainbrancha27e51c30astoragediscusavatarsc39a5gen2mainBucket0721E25ERef": { - "Value": "amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1.parameters.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1.parameters.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1.parameters.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1.template.json deleted file mode 100644 index 5df373994d4..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1.template.json +++ /dev/null @@ -1,373 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.21.1\",\"stackType\":\"custom\",\"metadata\":{}}", - "Resources": { - "activity1E902D9C": { - "Type": "AWS::DynamoDB::Table", - "Properties": { - "AttributeDefinitions": [ - { - "AttributeName": "id", - "AttributeType": "S" - }, - { - "AttributeName": "userId", - "AttributeType": "S" - }, - { - "AttributeName": "timestamp", - "AttributeType": "S" - } - ], - "GlobalSecondaryIndexes": [ - { - "IndexName": "byUserId", - "KeySchema": [ - { - "AttributeName": "userId", - "KeyType": "HASH" - }, - { - "AttributeName": "timestamp", - "KeyType": "RANGE" - } - ], - "Projection": { - "ProjectionType": "ALL" - }, - "ProvisionedThroughput": { - "ReadCapacityUnits": 5, - "WriteCapacityUnits": 5 - } - } - ], - "KeySchema": [ - { - "AttributeName": "id", - "KeyType": "HASH" - }, - { - "AttributeName": "userId", - "KeyType": "RANGE" - } - ], - "ProvisionedThroughput": { - "ReadCapacityUnits": 5, - "WriteCapacityUnits": 5 - }, - "StreamSpecification": { - "StreamViewType": "NEW_IMAGE" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain", - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storageactivity/activity/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXGOwqEMBAA0LPYJ7MaLOztt1B7mWRGiJ8EnERZxLsvaPWeAVPXUBZ4ina06NVbuL4sialP6BaFp4z0C7hFsnANaFdW7RSe3KpjiXl3fKsQiWGWz2EMVA2UxSze6z2H5DeG7vUPAxTDOW4AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storageactivity/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Outputs": { - "amplifydiscussionsgen2mainbrancha27e51c30astorageactivity9EDFFE97Arn": { - "Value": "arn:aws:dynamodb:us-east-1:123456789012:table/amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1-activity1E902D9C-QYW2OKZ2EU7Z" - }, - "amplifydiscussionsgen2mainbrancha27e51c30astorageactivity9EDFFE97StreamArn": { - "Value": "arn:aws:dynamodb:us-east-1:123456789012:table/amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1-activity1E902D9C-QYW2OKZ2EU7Z/stream/2026-03-20T21:41:02.189" - }, - "amplifydiscussionsgen2mainbrancha27e51c30astorageactivity9EDFFE97Ref": { - "Value": "amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1-activity1E902D9C-QYW2OKZ2EU7Z" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT.parameters.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT.parameters.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT.parameters.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT.template.json deleted file mode 100644 index f0838f73760..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT.template.json +++ /dev/null @@ -1,354 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.21.1\",\"stackType\":\"custom\",\"metadata\":{}}", - "Resources": { - "bookmarksA4548304": { - "Type": "AWS::DynamoDB::Table", - "Properties": { - "AttributeDefinitions": [ - { - "AttributeName": "userId", - "AttributeType": "S" - }, - { - "AttributeName": "postId", - "AttributeType": "S" - } - ], - "GlobalSecondaryIndexes": [ - { - "IndexName": "byPost", - "KeySchema": [ - { - "AttributeName": "postId", - "KeyType": "HASH" - } - ], - "Projection": { - "ProjectionType": "ALL" - }, - "ProvisionedThroughput": { - "ReadCapacityUnits": 5, - "WriteCapacityUnits": 5 - } - } - ], - "KeySchema": [ - { - "AttributeName": "userId", - "KeyType": "HASH" - }, - { - "AttributeName": "postId", - "KeyType": "RANGE" - } - ], - "ProvisionedThroughput": { - "ReadCapacityUnits": 5, - "WriteCapacityUnits": 5 - }, - "StreamSpecification": { - "StreamViewType": "NEW_IMAGE" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain", - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storagebookmarks/bookmarks/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXGOwqEMBAA0LPYJ7MaLOztt1B7mWRGiJ8EnERZxLsvaPWeAVPXUBZ4ina06NVbuL4sialP6BaFp4z0C7hFsnANaFdW7RSe3KpjiXl3fKsQiWGWz2EMVA2UxSze6z2H5DeG7vUPAxTDOW4AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storagebookmarks/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-main-c39a5-authdiscussionsc578c16ec578c16e-1XF3OX52Z0KBB.parameters.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-main-c39a5-authdiscussionsc578c16ec578c16e-1XF3OX52Z0KBB.parameters.json deleted file mode 100644 index f6d5bcb1506..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-main-c39a5-authdiscussionsc578c16ec578c16e-1XF3OX52Z0KBB.parameters.json +++ /dev/null @@ -1,166 +0,0 @@ -[ - { - "ParameterKey": "usernameAttributes", - "ParameterValue": "phone_number" - }, - { - "ParameterKey": "authRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-discussions-main-c39a5-authRole" - }, - { - "ParameterKey": "autoVerifiedAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "allowUnauthenticatedIdentities", - "ParameterValue": "false" - }, - { - "ParameterKey": "hostedUI", - "ParameterValue": "false" - }, - { - "ParameterKey": "smsVerificationMessage", - "ParameterValue": "Your verification code is {####}" - }, - { - "ParameterKey": "userpoolClientReadAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "breakCircularDependency", - "ParameterValue": "true" - }, - { - "ParameterKey": "mfaTypes", - "ParameterValue": "SMS Text Message" - }, - { - "ParameterKey": "emailVerificationSubject", - "ParameterValue": "Verification" - }, - { - "ParameterKey": "sharedId", - "ParameterValue": "c578c16e" - }, - { - "ParameterKey": "useDefault", - "ParameterValue": "manual" - }, - { - "ParameterKey": "userpoolClientGenerateSecret", - "ParameterValue": "false" - }, - { - "ParameterKey": "mfaConfiguration", - "ParameterValue": "OFF" - }, - { - "ParameterKey": "identityPoolName", - "ParameterValue": "discussionsc578c16e_identitypool_c578c16e" - }, - { - "ParameterKey": "thirdPartyAuth", - "ParameterValue": "false" - }, - { - "ParameterKey": "userPoolGroupList", - "ParameterValue": "" - }, - { - "ParameterKey": "authSelections", - "ParameterValue": "identityPoolAndUserPool" - }, - { - "ParameterKey": "adminQueries", - "ParameterValue": "false" - }, - { - "ParameterKey": "resourceNameTruncated", - "ParameterValue": "discusc578c16e" - }, - { - "ParameterKey": "userPoolGroups", - "ParameterValue": "false" - }, - { - "ParameterKey": "smsAuthenticationMessage", - "ParameterValue": "Your authentication code is {####}" - }, - { - "ParameterKey": "passwordPolicyMinLength", - "ParameterValue": "8" - }, - { - "ParameterKey": "userPoolName", - "ParameterValue": "discussionsc578c16e_userpool_c578c16e" - }, - { - "ParameterKey": "userpoolClientWriteAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "dependsOn", - "ParameterValue": "" - }, - { - "ParameterKey": "useEnabledMfas", - "ParameterValue": "true" - }, - { - "ParameterKey": "usernameCaseSensitive", - "ParameterValue": "false" - }, - { - "ParameterKey": "resourceName", - "ParameterValue": "discussionsc578c16ec578c16e" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "triggers", - "ParameterValue": "{}" - }, - { - "ParameterKey": "serviceName", - "ParameterValue": "Cognito" - }, - { - "ParameterKey": "emailVerificationMessage", - "ParameterValue": "Here is your verification code {####}" - }, - { - "ParameterKey": "userpoolClientRefreshTokenValidity", - "ParameterValue": "120" - }, - { - "ParameterKey": "userpoolClientSetAttributes", - "ParameterValue": "false" - }, - { - "ParameterKey": "unauthRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-discussions-main-c39a5-unauthRole" - }, - { - "ParameterKey": "requiredAttributes", - "ParameterValue": "email,phone_number" - }, - { - "ParameterKey": "passwordPolicyCharacters", - "ParameterValue": "" - }, - { - "ParameterKey": "aliasAttributes", - "ParameterValue": "" - }, - { - "ParameterKey": "userpoolClientLambdaRole", - "ParameterValue": "discusc578c16e_userpoolclient_lambda_role" - }, - { - "ParameterKey": "defaultPasswordPolicy", - "ParameterValue": "false" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-main-c39a5-authdiscussionsc578c16ec578c16e-1XF3OX52Z0KBB.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-main-c39a5-authdiscussionsc578c16ec578c16e-1XF3OX52Z0KBB.template.json deleted file mode 100644 index eb336444e97..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-main-c39a5-authdiscussionsc578c16ec578c16e-1XF3OX52Z0KBB.template.json +++ /dev/null @@ -1,409 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "env": { - "Type": "String" - }, - "identityPoolName": { - "Type": "String" - }, - "allowUnauthenticatedIdentities": { - "Type": "String" - }, - "resourceNameTruncated": { - "Type": "String" - }, - "userPoolName": { - "Type": "String" - }, - "autoVerifiedAttributes": { - "Type": "CommaDelimitedList" - }, - "mfaConfiguration": { - "Type": "String" - }, - "mfaTypes": { - "Type": "CommaDelimitedList" - }, - "smsAuthenticationMessage": { - "Type": "String" - }, - "smsVerificationMessage": { - "Type": "String" - }, - "emailVerificationSubject": { - "Type": "String" - }, - "emailVerificationMessage": { - "Type": "String" - }, - "defaultPasswordPolicy": { - "Type": "String" - }, - "passwordPolicyMinLength": { - "Type": "String" - }, - "passwordPolicyCharacters": { - "Type": "CommaDelimitedList" - }, - "requiredAttributes": { - "Type": "CommaDelimitedList" - }, - "aliasAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientGenerateSecret": { - "Type": "String" - }, - "userpoolClientRefreshTokenValidity": { - "Type": "String" - }, - "userpoolClientWriteAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientReadAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientLambdaRole": { - "Type": "String" - }, - "userpoolClientSetAttributes": { - "Type": "String" - }, - "sharedId": { - "Type": "String" - }, - "resourceName": { - "Type": "String" - }, - "authSelections": { - "Type": "String" - }, - "useDefault": { - "Type": "String" - }, - "thirdPartyAuth": { - "Type": "String" - }, - "usernameAttributes": { - "Type": "CommaDelimitedList" - }, - "userPoolGroups": { - "Type": "String" - }, - "adminQueries": { - "Type": "String" - }, - "triggers": { - "Type": "String" - }, - "hostedUI": { - "Type": "String" - }, - "userPoolGroupList": { - "Type": "CommaDelimitedList" - }, - "serviceName": { - "Type": "String" - }, - "usernameCaseSensitive": { - "Type": "String" - }, - "useEnabledMfas": { - "Type": "String" - }, - "authRoleArn": { - "Type": "String" - }, - "unauthRoleArn": { - "Type": "String" - }, - "breakCircularDependency": { - "Type": "String" - }, - "dependsOn": { - "Type": "CommaDelimitedList" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - "main", - "NONE" - ] - } - }, - "Resources": { - "SNSRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Sid": "", - "Effect": "Allow", - "Principal": { - "Service": "cognito-idp.amazonaws.com" - }, - "Action": [ - "sts:AssumeRole" - ], - "Condition": { - "StringEquals": { - "sts:ExternalId": "discusc578c16e_role_external_id" - } - } - } - ] - }, - "Policies": [ - { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "sns:Publish" - ], - "Resource": "*" - } - ] - }, - "PolicyName": "discusc578c16e-sns-policy" - } - ], - "RoleName": { - "Fn::Join": [ - "", - [ - "snsc578c16e", - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - "amplify-discussions-main-c39a5-authdiscussionsc578c16ec578c16e-1XF3OX52Z0KBB" - ] - } - ] - }, - "-", - "main" - ] - ] - } - } - }, - "UserPool": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": "Here is your verification code {####}", - "EmailVerificationSubject": "Verification", - "MfaConfiguration": "OFF", - "Policies": { - "PasswordPolicy": { - "MinimumLength": "8", - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - }, - { - "Mutable": true, - "Name": "phone_number", - "Required": true - } - ], - "SmsAuthenticationMessage": "Your authentication code is {####}", - "SmsConfiguration": { - "ExternalId": "discusc578c16e_role_external_id", - "SnsCallerArn": "arn:aws:iam::123456789012:role/snsc578c16ec39a5-main" - }, - "SmsVerificationMessage": "Your verification code is {####}", - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolName": { - "Fn::Join": [ - "", - [ - "discussionsc578c16e_userpool_c578c16e", - "-", - "main" - ] - ] - }, - "UsernameAttributes": [ - "phone_number" - ], - "UsernameConfiguration": { - "CaseSensitive": false - } - } - }, - "UserPoolClientWeb": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "discusc578c16e_app_clientWeb", - "RefreshTokenValidity": "120", - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": "us-east-1_vv2HFjwRK" - } - }, - "UserPoolClient": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "discusc578c16e_app_client", - "GenerateSecret": "false", - "RefreshTokenValidity": "120", - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": "us-east-1_vv2HFjwRK" - } - }, - "UserPoolClientRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - }, - "Action": "sts:AssumeRole" - } - ] - }, - "RoleName": { - "Fn::Join": [ - "", - [ - "upClientLambdaRolec578c16e", - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - "amplify-discussions-main-c39a5-authdiscussionsc578c16ec578c16e-1XF3OX52Z0KBB" - ] - } - ] - }, - "-", - "main" - ] - ] - } - } - }, - "IdentityPool": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": "false", - "CognitoIdentityProviders": [ - { - "ClientId": "7tbnnc27p4edfrp7m6bqqkh0gq", - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": "us-east-1_vv2HFjwRK" - } - ] - } - }, - { - "ClientId": "7nhjrv5jepqc7kacqiknlj0siu", - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": "us-east-1_vv2HFjwRK" - } - ] - } - } - ], - "IdentityPoolName": { - "Fn::Join": [ - "", - [ - "discussionsc578c16e_identitypool_c578c16e__", - "main" - ] - ] - } - } - }, - "IdentityPoolRoleMap": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": "us-east-1:d588cc58-4459-4b1b-ac91-307079a54464", - "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-discussions-main-c39a5-unauthRole", - "authenticated": "arn:aws:iam::123456789012:role/amplify-discussions-main-c39a5-authRole" - } - } - } - }, - "Outputs": { - "IdentityPoolId": { - "Description": "Id for the identity pool", - "Value": "us-east-1:d588cc58-4459-4b1b-ac91-307079a54464" - }, - "IdentityPoolName": { - "Value": "discussionsc578c16e_identitypool_c578c16e__main" - }, - "UserPoolId": { - "Description": "Id for the user pool", - "Value": "us-east-1_vv2HFjwRK" - }, - "UserPoolArn": { - "Description": "Arn for the user pool", - "Value": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_vv2HFjwRK" - }, - "UserPoolName": { - "Value": "discussionsc578c16e_userpool_c578c16e" - }, - "AppClientIDWeb": { - "Description": "The user pool app client id for web", - "Value": "7nhjrv5jepqc7kacqiknlj0siu" - }, - "AppClientID": { - "Description": "The user pool app client id", - "Value": "7tbnnc27p4edfrp7m6bqqkh0gq" - }, - "CreatedSNSRole": { - "Description": "role arn", - "Value": "arn:aws:iam::123456789012:role/snsc578c16ec39a5-main" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-main-c39a5-storageactivity-138JAQS8Q4D3V.parameters.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-main-c39a5-storageactivity-138JAQS8Q4D3V.parameters.json deleted file mode 100644 index d4a8a1d9363..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-main-c39a5-storageactivity-138JAQS8Q4D3V.parameters.json +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "ParameterKey": "partitionKeyType", - "ParameterValue": "S" - }, - { - "ParameterKey": "partitionKeyName", - "ParameterValue": "id" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "sortKeyName", - "ParameterValue": "userId" - }, - { - "ParameterKey": "sortKeyType", - "ParameterValue": "S" - }, - { - "ParameterKey": "tableName", - "ParameterValue": "activity" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-main-c39a5-storageactivity-138JAQS8Q4D3V.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-main-c39a5-storageactivity-138JAQS8Q4D3V.template.json deleted file mode 100644 index 8a1693f4fa7..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-main-c39a5-storageactivity-138JAQS8Q4D3V.template.json +++ /dev/null @@ -1,132 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-DynamoDB\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "partitionKeyName": { - "Type": "String" - }, - "partitionKeyType": { - "Type": "String" - }, - "env": { - "Type": "String" - }, - "sortKeyName": { - "Type": "String" - }, - "sortKeyType": { - "Type": "String" - }, - "tableName": { - "Type": "String" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - "main", - "NONE" - ] - } - }, - "Resources": { - "DynamoDBTable": { - "Type": "AWS::DynamoDB::Table", - "Properties": { - "AttributeDefinitions": [ - { - "AttributeName": "id", - "AttributeType": "S" - }, - { - "AttributeName": "userId", - "AttributeType": "S" - }, - { - "AttributeName": "timestamp", - "AttributeType": "S" - } - ], - "GlobalSecondaryIndexes": [ - { - "IndexName": "byUserId", - "KeySchema": [ - { - "AttributeName": "userId", - "KeyType": "HASH" - }, - { - "AttributeName": "timestamp", - "KeyType": "RANGE" - } - ], - "Projection": { - "ProjectionType": "ALL" - }, - "ProvisionedThroughput": { - "ReadCapacityUnits": 5, - "WriteCapacityUnits": 5 - } - } - ], - "KeySchema": [ - { - "AttributeName": "id", - "KeyType": "HASH" - }, - { - "AttributeName": "userId", - "KeyType": "RANGE" - } - ], - "ProvisionedThroughput": { - "ReadCapacityUnits": 5, - "WriteCapacityUnits": 5 - }, - "StreamSpecification": { - "StreamViewType": "NEW_IMAGE" - }, - "TableName": { - "Fn::Join": [ - "", - [ - "activity", - "-", - "main" - ] - ] - } - } - }, - "MigrationPlaceholder": { - "Type": "AWS::CloudFormation::WaitConditionHandle", - "Properties": {} - } - }, - "Outputs": { - "Name": { - "Value": "activity-main" - }, - "Arn": { - "Value": "arn:aws:dynamodb:us-east-1:123456789012:table/activity-main" - }, - "StreamArn": { - "Value": "arn:aws:dynamodb:us-east-1:123456789012:table/activity-main/stream/2026-03-20T21:19:57.516" - }, - "PartitionKeyName": { - "Value": "id" - }, - "PartitionKeyType": { - "Value": "S" - }, - "SortKeyName": { - "Value": "userId" - }, - "SortKeyType": { - "Value": "S" - }, - "Region": { - "Value": "us-east-1" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-main-c39a5-storageavatars-1BVCGXECPBEMB.parameters.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-main-c39a5-storageavatars-1BVCGXECPBEMB.parameters.json deleted file mode 100644 index 4e3d2a6b496..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-main-c39a5-storageavatars-1BVCGXECPBEMB.parameters.json +++ /dev/null @@ -1,86 +0,0 @@ -[ - { - "ParameterKey": "s3PermissionsGuestPublic", - "ParameterValue": "DISALLOW" - }, - { - "ParameterKey": "bucketName", - "ParameterValue": "discus-avatars" - }, - { - "ParameterKey": "s3PublicPolicy", - "ParameterValue": "Public_policy_bf41454d" - }, - { - "ParameterKey": "AuthenticatedAllowList", - "ParameterValue": "ALLOW" - }, - { - "ParameterKey": "unauthRoleName", - "ParameterValue": "amplify-discussions-main-c39a5-unauthRole" - }, - { - "ParameterKey": "s3PrivatePolicy", - "ParameterValue": "Private_policy_bf41454d" - }, - { - "ParameterKey": "selectedGuestPermissions", - "ParameterValue": "" - }, - { - "ParameterKey": "s3PermissionsAuthenticatedPublic", - "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" - }, - { - "ParameterKey": "s3PermissionsAuthenticatedPrivate", - "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" - }, - { - "ParameterKey": "s3PermissionsAuthenticatedUploads", - "ParameterValue": "s3:PutObject" - }, - { - "ParameterKey": "s3UploadsPolicy", - "ParameterValue": "Uploads_policy_bf41454d" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "unauthPolicyName", - "ParameterValue": "s3_amplify_bf41454d" - }, - { - "ParameterKey": "authRoleName", - "ParameterValue": "amplify-discussions-main-c39a5-authRole" - }, - { - "ParameterKey": "GuestAllowList", - "ParameterValue": "DISALLOW" - }, - { - "ParameterKey": "authPolicyName", - "ParameterValue": "s3_amplify_bf41454d" - }, - { - "ParameterKey": "s3ProtectedPolicy", - "ParameterValue": "Protected_policy_bf41454d" - }, - { - "ParameterKey": "s3PermissionsAuthenticatedProtected", - "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" - }, - { - "ParameterKey": "s3PermissionsGuestUploads", - "ParameterValue": "DISALLOW" - }, - { - "ParameterKey": "s3ReadPolicy", - "ParameterValue": "read_policy_bf41454d" - }, - { - "ParameterKey": "selectedAuthenticatedPermissions", - "ParameterValue": "s3:PutObject,s3:GetObject,s3:ListBucket,s3:DeleteObject" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-main-c39a5-storageavatars-1BVCGXECPBEMB.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-main-c39a5-storageavatars-1BVCGXECPBEMB.template.json deleted file mode 100644 index abb27344101..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-main-c39a5-storageavatars-1BVCGXECPBEMB.template.json +++ /dev/null @@ -1,445 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-S3\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "env": { - "Type": "String" - }, - "bucketName": { - "Type": "String" - }, - "authRoleName": { - "Type": "String" - }, - "unauthRoleName": { - "Type": "String" - }, - "authPolicyName": { - "Type": "String" - }, - "unauthPolicyName": { - "Type": "String" - }, - "s3PublicPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3PrivatePolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3ProtectedPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3UploadsPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3ReadPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3PermissionsAuthenticatedPublic": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedProtected": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedPrivate": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedUploads": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsGuestPublic": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsGuestUploads": { - "Type": "String", - "Default": "DISALLOW" - }, - "AuthenticatedAllowList": { - "Type": "String", - "Default": "DISALLOW" - }, - "GuestAllowList": { - "Type": "String", - "Default": "DISALLOW" - }, - "selectedGuestPermissions": { - "Type": "CommaDelimitedList", - "Default": "NONE" - }, - "selectedAuthenticatedPermissions": { - "Type": "CommaDelimitedList", - "Default": "NONE" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - "main", - "NONE" - ] - }, - "CreateAuthPublic": { - "Fn::Not": [ - { - "Fn::Equals": [ - "s3:PutObject,s3:GetObject,s3:DeleteObject", - "DISALLOW" - ] - } - ] - }, - "CreateAuthProtected": { - "Fn::Not": [ - { - "Fn::Equals": [ - "s3:PutObject,s3:GetObject,s3:DeleteObject", - "DISALLOW" - ] - } - ] - }, - "CreateAuthPrivate": { - "Fn::Not": [ - { - "Fn::Equals": [ - "s3:PutObject,s3:GetObject,s3:DeleteObject", - "DISALLOW" - ] - } - ] - }, - "CreateAuthUploads": { - "Fn::Not": [ - { - "Fn::Equals": [ - "s3:PutObject", - "DISALLOW" - ] - } - ] - }, - "CreateGuestPublic": { - "Fn::Not": [ - { - "Fn::Equals": [ - "DISALLOW", - "DISALLOW" - ] - } - ] - }, - "CreateGuestUploads": { - "Fn::Not": [ - { - "Fn::Equals": [ - "DISALLOW", - "DISALLOW" - ] - } - ] - }, - "AuthReadAndList": { - "Fn::Not": [ - { - "Fn::Equals": [ - "ALLOW", - "DISALLOW" - ] - } - ] - }, - "GuestReadAndList": { - "Fn::Not": [ - { - "Fn::Equals": [ - "DISALLOW", - "DISALLOW" - ] - } - ] - } - }, - "Outputs": { - "BucketName": { - "Description": "Bucket name for the S3 bucket", - "Value": "discus-avatarsc39a5-main" - }, - "Region": { - "Value": "us-east-1" - } - }, - "Resources": { - "S3Bucket": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketName": { - "Fn::Join": [ - "", - [ - "discus-avatars", - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - "amplify-discussions-main-c39a5-storageavatars-1BVCGXECPBEMB" - ] - } - ] - }, - "-", - "main" - ] - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "Id": "S3CORSRuleId1", - "MaxAge": 3000 - } - ] - }, - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - } - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain" - }, - "S3AuthPublicPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - "s3:PutObject,s3:GetObject,s3:DeleteObject" - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "discus-avatarsc39a5-main", - "/public/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "Public_policy_bf41454d", - "Roles": [ - "amplify-discussions-main-c39a5-authRole" - ] - }, - "Condition": "CreateAuthPublic" - }, - "S3AuthProtectedPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - "s3:PutObject,s3:GetObject,s3:DeleteObject" - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "discus-avatarsc39a5-main", - "/protected/${cognito-identity.amazonaws.com:sub}/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "Protected_policy_bf41454d", - "Roles": [ - "amplify-discussions-main-c39a5-authRole" - ] - }, - "Condition": "CreateAuthProtected" - }, - "S3AuthPrivatePolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - "s3:PutObject,s3:GetObject,s3:DeleteObject" - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "discus-avatarsc39a5-main", - "/private/${cognito-identity.amazonaws.com:sub}/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "Private_policy_bf41454d", - "Roles": [ - "amplify-discussions-main-c39a5-authRole" - ] - }, - "Condition": "CreateAuthPrivate" - }, - "S3AuthUploadPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - "s3:PutObject" - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "discus-avatarsc39a5-main", - "/uploads/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "Uploads_policy_bf41454d", - "Roles": [ - "amplify-discussions-main-c39a5-authRole" - ] - }, - "Condition": "CreateAuthUploads" - }, - "S3AuthReadPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "discus-avatarsc39a5-main", - "/protected/*" - ] - ] - } - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/", - "public/*", - "protected/", - "protected/*", - "private/${cognito-identity.amazonaws.com:sub}/", - "private/${cognito-identity.amazonaws.com:sub}/*" - ] - } - }, - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "discus-avatarsc39a5-main" - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "read_policy_bf41454d", - "Roles": [ - "amplify-discussions-main-c39a5-authRole" - ] - }, - "Condition": "AuthReadAndList" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-main-c39a5-storagebookmarks-B7BEMLBCHV3W.parameters.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-main-c39a5-storagebookmarks-B7BEMLBCHV3W.parameters.json deleted file mode 100644 index 5862fff0861..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-main-c39a5-storagebookmarks-B7BEMLBCHV3W.parameters.json +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "ParameterKey": "partitionKeyType", - "ParameterValue": "S" - }, - { - "ParameterKey": "partitionKeyName", - "ParameterValue": "userId" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "sortKeyName", - "ParameterValue": "postId" - }, - { - "ParameterKey": "sortKeyType", - "ParameterValue": "S" - }, - { - "ParameterKey": "tableName", - "ParameterValue": "bookmarks" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-main-c39a5-storagebookmarks-B7BEMLBCHV3W.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-main-c39a5-storagebookmarks-B7BEMLBCHV3W.template.json deleted file mode 100644 index eace9a5cc98..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-main-c39a5-storagebookmarks-B7BEMLBCHV3W.template.json +++ /dev/null @@ -1,124 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-DynamoDB\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "partitionKeyName": { - "Type": "String" - }, - "partitionKeyType": { - "Type": "String" - }, - "env": { - "Type": "String" - }, - "sortKeyName": { - "Type": "String" - }, - "sortKeyType": { - "Type": "String" - }, - "tableName": { - "Type": "String" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - "main", - "NONE" - ] - } - }, - "Resources": { - "DynamoDBTable": { - "Type": "AWS::DynamoDB::Table", - "Properties": { - "AttributeDefinitions": [ - { - "AttributeName": "userId", - "AttributeType": "S" - }, - { - "AttributeName": "postId", - "AttributeType": "S" - } - ], - "GlobalSecondaryIndexes": [ - { - "IndexName": "byPost", - "KeySchema": [ - { - "AttributeName": "postId", - "KeyType": "HASH" - } - ], - "Projection": { - "ProjectionType": "ALL" - }, - "ProvisionedThroughput": { - "ReadCapacityUnits": 5, - "WriteCapacityUnits": 5 - } - } - ], - "KeySchema": [ - { - "AttributeName": "userId", - "KeyType": "HASH" - }, - { - "AttributeName": "postId", - "KeyType": "RANGE" - } - ], - "ProvisionedThroughput": { - "ReadCapacityUnits": 5, - "WriteCapacityUnits": 5 - }, - "StreamSpecification": { - "StreamViewType": "NEW_IMAGE" - }, - "TableName": { - "Fn::Join": [ - "", - [ - "bookmarks", - "-", - "main" - ] - ] - } - } - }, - "MigrationPlaceholder": { - "Type": "AWS::CloudFormation::WaitConditionHandle", - "Properties": {} - } - }, - "Outputs": { - "Name": { - "Value": "bookmarks-main" - }, - "Arn": { - "Value": "arn:aws:dynamodb:us-east-1:123456789012:table/bookmarks-main" - }, - "StreamArn": { - "Value": "arn:aws:dynamodb:us-east-1:123456789012:table/bookmarks-main/stream/2026-03-20T21:19:57.495" - }, - "PartitionKeyName": { - "Value": "userId" - }, - "PartitionKeyType": { - "Value": "S" - }, - "SortKeyName": { - "Value": "postId" - }, - "SortKeyType": { - "Value": "S" - }, - "Region": { - "Value": "us-east-1" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-x-x-authdiscussionsc578c16ec578c16e-x.parameters.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-x-x-authdiscussionsc578c16ec578c16e-x.parameters.json new file mode 100644 index 00000000000..f9470875802 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-x-x-authdiscussionsc578c16ec578c16e-x.parameters.json @@ -0,0 +1,166 @@ +[ + { + "ParameterKey": "usernameAttributes", + "ParameterValue": "phone_number" + }, + { + "ParameterKey": "authRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-discussions-x-x-authRole" + }, + { + "ParameterKey": "autoVerifiedAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "allowUnauthenticatedIdentities", + "ParameterValue": "false" + }, + { + "ParameterKey": "hostedUI", + "ParameterValue": "false" + }, + { + "ParameterKey": "smsVerificationMessage", + "ParameterValue": "Your verification code is {####}" + }, + { + "ParameterKey": "userpoolClientReadAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "breakCircularDependency", + "ParameterValue": "true" + }, + { + "ParameterKey": "mfaTypes", + "ParameterValue": "SMS Text Message" + }, + { + "ParameterKey": "emailVerificationSubject", + "ParameterValue": "Verification" + }, + { + "ParameterKey": "sharedId", + "ParameterValue": "c578c16e" + }, + { + "ParameterKey": "useDefault", + "ParameterValue": "manual" + }, + { + "ParameterKey": "userpoolClientGenerateSecret", + "ParameterValue": "false" + }, + { + "ParameterKey": "mfaConfiguration", + "ParameterValue": "OFF" + }, + { + "ParameterKey": "identityPoolName", + "ParameterValue": "discussionsc578c16e_identitypool_c578c16e" + }, + { + "ParameterKey": "thirdPartyAuth", + "ParameterValue": "false" + }, + { + "ParameterKey": "userPoolGroupList", + "ParameterValue": "" + }, + { + "ParameterKey": "authSelections", + "ParameterValue": "identityPoolAndUserPool" + }, + { + "ParameterKey": "adminQueries", + "ParameterValue": "false" + }, + { + "ParameterKey": "resourceNameTruncated", + "ParameterValue": "discusc578c16e" + }, + { + "ParameterKey": "userPoolGroups", + "ParameterValue": "false" + }, + { + "ParameterKey": "smsAuthenticationMessage", + "ParameterValue": "Your authentication code is {####}" + }, + { + "ParameterKey": "passwordPolicyMinLength", + "ParameterValue": "8" + }, + { + "ParameterKey": "userPoolName", + "ParameterValue": "discussionsc578c16e_userpool_c578c16e" + }, + { + "ParameterKey": "userpoolClientWriteAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "dependsOn", + "ParameterValue": "" + }, + { + "ParameterKey": "useEnabledMfas", + "ParameterValue": "true" + }, + { + "ParameterKey": "usernameCaseSensitive", + "ParameterValue": "false" + }, + { + "ParameterKey": "resourceName", + "ParameterValue": "discussionsc578c16ec578c16e" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "triggers", + "ParameterValue": "{}" + }, + { + "ParameterKey": "serviceName", + "ParameterValue": "Cognito" + }, + { + "ParameterKey": "emailVerificationMessage", + "ParameterValue": "Here is your verification code {####}" + }, + { + "ParameterKey": "userpoolClientRefreshTokenValidity", + "ParameterValue": "120" + }, + { + "ParameterKey": "userpoolClientSetAttributes", + "ParameterValue": "false" + }, + { + "ParameterKey": "unauthRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-discussions-x-x-unauthRole" + }, + { + "ParameterKey": "requiredAttributes", + "ParameterValue": "email,phone_number" + }, + { + "ParameterKey": "passwordPolicyCharacters", + "ParameterValue": "" + }, + { + "ParameterKey": "aliasAttributes", + "ParameterValue": "" + }, + { + "ParameterKey": "userpoolClientLambdaRole", + "ParameterValue": "discusc578c16e_userpoolclient_lambda_role" + }, + { + "ParameterKey": "defaultPasswordPolicy", + "ParameterValue": "false" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-x-x-authdiscussionsc578c16ec578c16e-x.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-x-x-authdiscussionsc578c16ec578c16e-x.template.json new file mode 100644 index 00000000000..3af63234b37 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-x-x-authdiscussionsc578c16ec578c16e-x.template.json @@ -0,0 +1,409 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "identityPoolName": { + "Type": "String" + }, + "allowUnauthenticatedIdentities": { + "Type": "String" + }, + "resourceNameTruncated": { + "Type": "String" + }, + "userPoolName": { + "Type": "String" + }, + "autoVerifiedAttributes": { + "Type": "CommaDelimitedList" + }, + "mfaConfiguration": { + "Type": "String" + }, + "mfaTypes": { + "Type": "CommaDelimitedList" + }, + "smsAuthenticationMessage": { + "Type": "String" + }, + "smsVerificationMessage": { + "Type": "String" + }, + "emailVerificationSubject": { + "Type": "String" + }, + "emailVerificationMessage": { + "Type": "String" + }, + "defaultPasswordPolicy": { + "Type": "String" + }, + "passwordPolicyMinLength": { + "Type": "String" + }, + "passwordPolicyCharacters": { + "Type": "CommaDelimitedList" + }, + "requiredAttributes": { + "Type": "CommaDelimitedList" + }, + "aliasAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientGenerateSecret": { + "Type": "String" + }, + "userpoolClientRefreshTokenValidity": { + "Type": "String" + }, + "userpoolClientWriteAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientReadAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientLambdaRole": { + "Type": "String" + }, + "userpoolClientSetAttributes": { + "Type": "String" + }, + "sharedId": { + "Type": "String" + }, + "resourceName": { + "Type": "String" + }, + "authSelections": { + "Type": "String" + }, + "useDefault": { + "Type": "String" + }, + "thirdPartyAuth": { + "Type": "String" + }, + "usernameAttributes": { + "Type": "CommaDelimitedList" + }, + "userPoolGroups": { + "Type": "String" + }, + "adminQueries": { + "Type": "String" + }, + "triggers": { + "Type": "String" + }, + "hostedUI": { + "Type": "String" + }, + "userPoolGroupList": { + "Type": "CommaDelimitedList" + }, + "serviceName": { + "Type": "String" + }, + "usernameCaseSensitive": { + "Type": "String" + }, + "useEnabledMfas": { + "Type": "String" + }, + "authRoleArn": { + "Type": "String" + }, + "unauthRoleArn": { + "Type": "String" + }, + "breakCircularDependency": { + "Type": "String" + }, + "dependsOn": { + "Type": "CommaDelimitedList" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + "x", + "NONE" + ] + } + }, + "Resources": { + "SNSRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Sid": "", + "Effect": "Allow", + "Principal": { + "Service": "cognito-idp.amazonaws.com" + }, + "Action": [ + "sts:AssumeRole" + ], + "Condition": { + "StringEquals": { + "sts:ExternalId": "discusc578c16e_role_external_id" + } + } + } + ] + }, + "Policies": [ + { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "sns:Publish" + ], + "Resource": "*" + } + ] + }, + "PolicyName": "discusc578c16e-sns-policy" + } + ], + "RoleName": { + "Fn::Join": [ + "", + [ + "snsc578c16e", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + "amplify-discussions-x-x-authdiscussionsc578c16ec578c16e-x" + ] + } + ] + }, + "-", + "x" + ] + ] + } + } + }, + "UserPool": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Here is your verification code {####}", + "EmailVerificationSubject": "Verification", + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": "8", + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + }, + { + "Mutable": true, + "Name": "phone_number", + "Required": true + } + ], + "SmsAuthenticationMessage": "Your authentication code is {####}", + "SmsConfiguration": { + "ExternalId": "discusc578c16e_role_external_id", + "SnsCallerArn": "arn:aws:iam::123456789012:role/snsc578c16ex-x" + }, + "SmsVerificationMessage": "Your verification code is {####}", + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolName": { + "Fn::Join": [ + "", + [ + "discussionsc578c16e_userpool_c578c16e", + "-", + "x" + ] + ] + }, + "UsernameAttributes": [ + "phone_number" + ], + "UsernameConfiguration": { + "CaseSensitive": false + } + } + }, + "UserPoolClientWeb": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "discusc578c16e_app_clientWeb", + "RefreshTokenValidity": "120", + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": "us-east-1_lG0pUBlcH" + } + }, + "UserPoolClient": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "discusc578c16e_app_client", + "GenerateSecret": "false", + "RefreshTokenValidity": "120", + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": "us-east-1_lG0pUBlcH" + } + }, + "UserPoolClientRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + }, + "Action": "sts:AssumeRole" + } + ] + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "upClientLambdaRolec578c16e", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + "amplify-discussions-x-x-authdiscussionsc578c16ec578c16e-x" + ] + } + ] + }, + "-", + "x" + ] + ] + } + } + }, + "IdentityPool": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": "false", + "CognitoIdentityProviders": [ + { + "ClientId": "145r5chjngcvdjv7uk1s3826ol", + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": "us-east-1_lG0pUBlcH" + } + ] + } + }, + { + "ClientId": "2u018c10958rc16k88nfl6er4m", + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": "us-east-1_lG0pUBlcH" + } + ] + } + } + ], + "IdentityPoolName": { + "Fn::Join": [ + "", + [ + "discussionsc578c16e_identitypool_c578c16e__", + "x" + ] + ] + } + } + }, + "IdentityPoolRoleMap": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:c19a7d32-3b9f-4b48-829c-46082712131c", + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-discussions-x-x-unauthRole", + "authenticated": "arn:aws:iam::123456789012:role/amplify-discussions-x-x-authRole" + } + } + } + }, + "Outputs": { + "IdentityPoolId": { + "Description": "Id for the identity pool", + "Value": "us-east-1:c19a7d32-3b9f-4b48-829c-46082712131c" + }, + "IdentityPoolName": { + "Value": "discussionsc578c16e_identitypool_c578c16e__x" + }, + "UserPoolId": { + "Description": "Id for the user pool", + "Value": "us-east-1_lG0pUBlcH" + }, + "UserPoolArn": { + "Description": "Arn for the user pool", + "Value": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_lG0pUBlcH" + }, + "UserPoolName": { + "Value": "discussionsc578c16e_userpool_c578c16e" + }, + "AppClientIDWeb": { + "Description": "The user pool app client id for web", + "Value": "2u018c10958rc16k88nfl6er4m" + }, + "AppClientID": { + "Description": "The user pool app client id", + "Value": "145r5chjngcvdjv7uk1s3826ol" + }, + "CreatedSNSRole": { + "Description": "role arn", + "Value": "arn:aws:iam::123456789012:role/snsc578c16ex-x" + } + } +} diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-x-x-storageactivity-x.parameters.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-x-x-storageactivity-x.parameters.json new file mode 100644 index 00000000000..7a5166c216c --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-x-x-storageactivity-x.parameters.json @@ -0,0 +1,26 @@ +[ + { + "ParameterKey": "partitionKeyType", + "ParameterValue": "S" + }, + { + "ParameterKey": "partitionKeyName", + "ParameterValue": "id" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "sortKeyName", + "ParameterValue": "userId" + }, + { + "ParameterKey": "sortKeyType", + "ParameterValue": "S" + }, + { + "ParameterKey": "tableName", + "ParameterValue": "activity" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-x-x-storageactivity-x.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-x-x-storageactivity-x.template.json new file mode 100644 index 00000000000..777f1aa4e51 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-x-x-storageactivity-x.template.json @@ -0,0 +1,132 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-DynamoDB\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "partitionKeyName": { + "Type": "String" + }, + "partitionKeyType": { + "Type": "String" + }, + "env": { + "Type": "String" + }, + "sortKeyName": { + "Type": "String" + }, + "sortKeyType": { + "Type": "String" + }, + "tableName": { + "Type": "String" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + "x", + "NONE" + ] + } + }, + "Resources": { + "DynamoDBTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + }, + { + "AttributeName": "userId", + "AttributeType": "S" + }, + { + "AttributeName": "timestamp", + "AttributeType": "S" + } + ], + "GlobalSecondaryIndexes": [ + { + "IndexName": "byUserId", + "KeySchema": [ + { + "AttributeName": "userId", + "KeyType": "HASH" + }, + { + "AttributeName": "timestamp", + "KeyType": "RANGE" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "ReadCapacityUnits": 5, + "WriteCapacityUnits": 5 + } + } + ], + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + }, + { + "AttributeName": "userId", + "KeyType": "RANGE" + } + ], + "ProvisionedThroughput": { + "ReadCapacityUnits": 5, + "WriteCapacityUnits": 5 + }, + "StreamSpecification": { + "StreamViewType": "NEW_IMAGE" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "activity", + "-", + "x" + ] + ] + } + } + }, + "MigrationPlaceholder": { + "Type": "AWS::CloudFormation::WaitConditionHandle", + "Properties": {} + } + }, + "Outputs": { + "Name": { + "Value": "activity-x" + }, + "Arn": { + "Value": "arn:aws:dynamodb:us-east-1:123456789012:table/activity-x" + }, + "StreamArn": { + "Value": "arn:aws:dynamodb:us-east-1:123456789012:table/activity-x/stream/2026-04-15T03:52:10.997" + }, + "PartitionKeyName": { + "Value": "id" + }, + "PartitionKeyType": { + "Value": "S" + }, + "SortKeyName": { + "Value": "userId" + }, + "SortKeyType": { + "Value": "S" + }, + "Region": { + "Value": "us-east-1" + } + } +} diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-x-x-storageavatars-x.parameters.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-x-x-storageavatars-x.parameters.json new file mode 100644 index 00000000000..2d041f1da19 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-x-x-storageavatars-x.parameters.json @@ -0,0 +1,86 @@ +[ + { + "ParameterKey": "s3PermissionsGuestPublic", + "ParameterValue": "DISALLOW" + }, + { + "ParameterKey": "bucketName", + "ParameterValue": "discus-avatars" + }, + { + "ParameterKey": "s3PublicPolicy", + "ParameterValue": "Public_policy_bf41454d" + }, + { + "ParameterKey": "AuthenticatedAllowList", + "ParameterValue": "ALLOW" + }, + { + "ParameterKey": "unauthRoleName", + "ParameterValue": "amplify-discussions-x-x-unauthRole" + }, + { + "ParameterKey": "s3PrivatePolicy", + "ParameterValue": "Private_policy_bf41454d" + }, + { + "ParameterKey": "selectedGuestPermissions", + "ParameterValue": "" + }, + { + "ParameterKey": "s3PermissionsAuthenticatedPublic", + "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" + }, + { + "ParameterKey": "s3PermissionsAuthenticatedPrivate", + "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" + }, + { + "ParameterKey": "s3PermissionsAuthenticatedUploads", + "ParameterValue": "s3:PutObject" + }, + { + "ParameterKey": "s3UploadsPolicy", + "ParameterValue": "Uploads_policy_bf41454d" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "unauthPolicyName", + "ParameterValue": "s3_amplify_bf41454d" + }, + { + "ParameterKey": "authRoleName", + "ParameterValue": "amplify-discussions-x-x-authRole" + }, + { + "ParameterKey": "GuestAllowList", + "ParameterValue": "DISALLOW" + }, + { + "ParameterKey": "authPolicyName", + "ParameterValue": "s3_amplify_bf41454d" + }, + { + "ParameterKey": "s3ProtectedPolicy", + "ParameterValue": "Protected_policy_bf41454d" + }, + { + "ParameterKey": "s3PermissionsAuthenticatedProtected", + "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" + }, + { + "ParameterKey": "s3PermissionsGuestUploads", + "ParameterValue": "DISALLOW" + }, + { + "ParameterKey": "s3ReadPolicy", + "ParameterValue": "read_policy_bf41454d" + }, + { + "ParameterKey": "selectedAuthenticatedPermissions", + "ParameterValue": "s3:PutObject,s3:GetObject,s3:ListBucket,s3:DeleteObject" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-x-x-storageavatars-x.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-x-x-storageavatars-x.template.json new file mode 100644 index 00000000000..24fea5cabdf --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-x-x-storageavatars-x.template.json @@ -0,0 +1,445 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-S3\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "bucketName": { + "Type": "String" + }, + "authRoleName": { + "Type": "String" + }, + "unauthRoleName": { + "Type": "String" + }, + "authPolicyName": { + "Type": "String" + }, + "unauthPolicyName": { + "Type": "String" + }, + "s3PublicPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3PrivatePolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3ProtectedPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3UploadsPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3ReadPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3PermissionsAuthenticatedPublic": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedProtected": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedPrivate": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedUploads": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsGuestPublic": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsGuestUploads": { + "Type": "String", + "Default": "DISALLOW" + }, + "AuthenticatedAllowList": { + "Type": "String", + "Default": "DISALLOW" + }, + "GuestAllowList": { + "Type": "String", + "Default": "DISALLOW" + }, + "selectedGuestPermissions": { + "Type": "CommaDelimitedList", + "Default": "NONE" + }, + "selectedAuthenticatedPermissions": { + "Type": "CommaDelimitedList", + "Default": "NONE" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + "x", + "NONE" + ] + }, + "CreateAuthPublic": { + "Fn::Not": [ + { + "Fn::Equals": [ + "s3:PutObject,s3:GetObject,s3:DeleteObject", + "DISALLOW" + ] + } + ] + }, + "CreateAuthProtected": { + "Fn::Not": [ + { + "Fn::Equals": [ + "s3:PutObject,s3:GetObject,s3:DeleteObject", + "DISALLOW" + ] + } + ] + }, + "CreateAuthPrivate": { + "Fn::Not": [ + { + "Fn::Equals": [ + "s3:PutObject,s3:GetObject,s3:DeleteObject", + "DISALLOW" + ] + } + ] + }, + "CreateAuthUploads": { + "Fn::Not": [ + { + "Fn::Equals": [ + "s3:PutObject", + "DISALLOW" + ] + } + ] + }, + "CreateGuestPublic": { + "Fn::Not": [ + { + "Fn::Equals": [ + "DISALLOW", + "DISALLOW" + ] + } + ] + }, + "CreateGuestUploads": { + "Fn::Not": [ + { + "Fn::Equals": [ + "DISALLOW", + "DISALLOW" + ] + } + ] + }, + "AuthReadAndList": { + "Fn::Not": [ + { + "Fn::Equals": [ + "ALLOW", + "DISALLOW" + ] + } + ] + }, + "GuestReadAndList": { + "Fn::Not": [ + { + "Fn::Equals": [ + "DISALLOW", + "DISALLOW" + ] + } + ] + } + }, + "Outputs": { + "BucketName": { + "Description": "Bucket name for the S3 bucket", + "Value": "discus-avatarsx-x" + }, + "Region": { + "Value": "us-east-1" + } + }, + "Resources": { + "S3Bucket": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketName": { + "Fn::Join": [ + "", + [ + "discus-avatars", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + "amplify-discussions-x-x-storageavatars-x" + ] + } + ] + }, + "-", + "x" + ] + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "Id": "S3CORSRuleId1", + "MaxAge": 3000 + } + ] + }, + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + } + }, + "UpdateReplacePolicy": "Retain", + "DeletionPolicy": "Retain" + }, + "S3AuthPublicPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + "s3:PutObject,s3:GetObject,s3:DeleteObject" + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "discus-avatarsx-x", + "/public/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "Public_policy_bf41454d", + "Roles": [ + "amplify-discussions-x-x-authRole" + ] + }, + "Condition": "CreateAuthPublic" + }, + "S3AuthProtectedPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + "s3:PutObject,s3:GetObject,s3:DeleteObject" + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "discus-avatarsx-x", + "/protected/${cognito-identity.amazonaws.com:sub}/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "Protected_policy_bf41454d", + "Roles": [ + "amplify-discussions-x-x-authRole" + ] + }, + "Condition": "CreateAuthProtected" + }, + "S3AuthPrivatePolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + "s3:PutObject,s3:GetObject,s3:DeleteObject" + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "discus-avatarsx-x", + "/private/${cognito-identity.amazonaws.com:sub}/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "Private_policy_bf41454d", + "Roles": [ + "amplify-discussions-x-x-authRole" + ] + }, + "Condition": "CreateAuthPrivate" + }, + "S3AuthUploadPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + "s3:PutObject" + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "discus-avatarsx-x", + "/uploads/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "Uploads_policy_bf41454d", + "Roles": [ + "amplify-discussions-x-x-authRole" + ] + }, + "Condition": "CreateAuthUploads" + }, + "S3AuthReadPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "discus-avatarsx-x", + "/protected/*" + ] + ] + } + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/", + "public/*", + "protected/", + "protected/*", + "private/${cognito-identity.amazonaws.com:sub}/", + "private/${cognito-identity.amazonaws.com:sub}/*" + ] + } + }, + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "discus-avatarsx-x" + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "read_policy_bf41454d", + "Roles": [ + "amplify-discussions-x-x-authRole" + ] + }, + "Condition": "AuthReadAndList" + } + } +} diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-x-x-storagebookmarks-x.parameters.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-x-x-storagebookmarks-x.parameters.json new file mode 100644 index 00000000000..edbc064a301 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-x-x-storagebookmarks-x.parameters.json @@ -0,0 +1,26 @@ +[ + { + "ParameterKey": "partitionKeyType", + "ParameterValue": "S" + }, + { + "ParameterKey": "partitionKeyName", + "ParameterValue": "userId" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "sortKeyName", + "ParameterValue": "postId" + }, + { + "ParameterKey": "sortKeyType", + "ParameterValue": "S" + }, + { + "ParameterKey": "tableName", + "ParameterValue": "bookmarks" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-x-x-storagebookmarks-x.template.json b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-x-x-storagebookmarks-x.template.json new file mode 100644 index 00000000000..a043144d4f3 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.post.refactor/update.amplify-discussions-x-x-storagebookmarks-x.template.json @@ -0,0 +1,124 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-DynamoDB\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "partitionKeyName": { + "Type": "String" + }, + "partitionKeyType": { + "Type": "String" + }, + "env": { + "Type": "String" + }, + "sortKeyName": { + "Type": "String" + }, + "sortKeyType": { + "Type": "String" + }, + "tableName": { + "Type": "String" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + "x", + "NONE" + ] + } + }, + "Resources": { + "DynamoDBTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "AttributeDefinitions": [ + { + "AttributeName": "userId", + "AttributeType": "S" + }, + { + "AttributeName": "postId", + "AttributeType": "S" + } + ], + "GlobalSecondaryIndexes": [ + { + "IndexName": "byPost", + "KeySchema": [ + { + "AttributeName": "postId", + "KeyType": "HASH" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "ReadCapacityUnits": 5, + "WriteCapacityUnits": 5 + } + } + ], + "KeySchema": [ + { + "AttributeName": "userId", + "KeyType": "HASH" + }, + { + "AttributeName": "postId", + "KeyType": "RANGE" + } + ], + "ProvisionedThroughput": { + "ReadCapacityUnits": 5, + "WriteCapacityUnits": 5 + }, + "StreamSpecification": { + "StreamViewType": "NEW_IMAGE" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "bookmarks", + "-", + "x" + ] + ] + } + } + }, + "MigrationPlaceholder": { + "Type": "AWS::CloudFormation::WaitConditionHandle", + "Properties": {} + } + }, + "Outputs": { + "Name": { + "Value": "bookmarks-x" + }, + "Arn": { + "Value": "arn:aws:dynamodb:us-east-1:123456789012:table/bookmarks-x" + }, + "StreamArn": { + "Value": "arn:aws:dynamodb:us-east-1:123456789012:table/bookmarks-x/stream/2026-04-15T03:52:11.077" + }, + "PartitionKeyName": { + "Value": "userId" + }, + "PartitionKeyType": { + "Value": "S" + }, + "SortKeyName": { + "Value": "postId" + }, + "SortKeyType": { + "Value": "S" + }, + "Region": { + "Value": "us-east-1" + } + } +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/.gitignore b/amplify-migration-apps/discussions/_snapshot.pre.generate/.gitignore index 4a025af5313..8c9162f3547 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/.gitignore +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/.gitignore @@ -36,7 +36,6 @@ dist/ node_modules/ aws-exports.js awsconfiguration.json -amplifyconfiguration.json amplifyconfiguration.dart amplify-build-config.json amplify-gradle-config.json diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json index 34b789e4330..df073cbd6e4 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json @@ -1,14 +1,14 @@ { "providers": { "awscloudformation": { - "AuthRoleName": "amplify-discussions-main-c39a5-authRole", - "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-discussions-main-c39a5-unauthRole", - "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-discussions-main-c39a5-authRole", + "AuthRoleName": "amplify-discussions-x-x-authRole", + "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-discussions-x-x-unauthRole", + "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-discussions-x-x-authRole", "Region": "us-east-1", - "DeploymentBucketName": "amplify-discussions-main-c39a5-deployment", - "UnauthRoleName": "amplify-discussions-main-c39a5-unauthRole", - "StackName": "amplify-discussions-main-c39a5", - "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-discussions-main-c39a5/0e9a6f60-24a2-11f1-8462-0afffd2fb801", + "DeploymentBucketName": "amplify-discussions-x-x-deployment", + "UnauthRoleName": "amplify-discussions-x-x-unauthRole", + "StackName": "amplify-discussions-x-x", + "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-discussions-x-x/573e2000-387e-11f1-8fe1-0e59b95a9da1", "AmplifyAppId": "discussions" } }, @@ -25,17 +25,17 @@ "authenticationType": "API_KEY" } }, - "GraphQLAPIIdOutput": "u3jn2qbupzbyhc3h53673wdvim", - "GraphQLAPIEndpointOutput": "https://jsm5ex363jcy5fm2reylyox4te.appsync-api.us-east-1.amazonaws.com/graphql", + "GraphQLAPIIdOutput": "xw3yrfq7mngltcua43nucy7fg4", + "GraphQLAPIEndpointOutput": "https://ajag2p5xujbc3cfepbjri3sjam.appsync-api.us-east-1.amazonaws.com/graphql", "GraphQLAPIKeyOutput": "da2-fakeapikey00000000000000" }, "providerPlugin": "awscloudformation", "service": "AppSync", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", "logicalId": "apidiscussions" }, - "lastPushTimeStamp": "2026-03-20T21:24:14.059Z", + "lastPushTimeStamp": "2026-04-15T03:57:14.522Z", "lastPushDirHash": "f67ZKOJM4WJlPWXfx5EsRQOT4UA=" } }, @@ -67,21 +67,21 @@ "providerPlugin": "awscloudformation", "service": "Cognito", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/auth/discussionsc578c16ec578c16e-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/auth/discussionsc578c16ec578c16e-cloudformation-template.json", "logicalId": "authdiscussionsc578c16ec578c16e" }, - "lastPushTimeStamp": "2026-03-20T21:24:14.059Z", + "lastPushTimeStamp": "2026-04-15T03:57:14.522Z", "output": { - "CreatedSNSRole": "arn:aws:iam::123456789012:role/snsc578c16ec39a5-main", - "UserPoolId": "us-east-1_vv2HFjwRK", - "AppClientIDWeb": "7nhjrv5jepqc7kacqiknlj0siu", - "AppClientID": "7tbnnc27p4edfrp7m6bqqkh0gq", - "IdentityPoolId": "us-east-1:d588cc58-4459-4b1b-ac91-307079a54464", - "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_vv2HFjwRK", - "IdentityPoolName": "discussionsc578c16e_identitypool_c578c16e__main", + "CreatedSNSRole": "arn:aws:iam::123456789012:role/snsc578c16ex-x", + "UserPoolId": "us-east-1_lG0pUBlcH", + "AppClientIDWeb": "2u018c10958rc16k88nfl6er4m", + "AppClientID": "145r5chjngcvdjv7uk1s3826ol", + "IdentityPoolId": "us-east-1:c19a7d32-3b9f-4b48-829c-46082712131c", + "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_lG0pUBlcH", + "IdentityPoolName": "discussionsc578c16e_identitypool_c578c16e__x", "UserPoolName": "discussionsc578c16e_userpool_c578c16e" }, - "lastPushDirHash": "mPKsrH+CL3NCuCtTWB9nkOHB7ls=" + "lastPushDirHash": "ZOHX6clQle9gpfoH7kIyX3h+bX4=" } }, "function": { @@ -100,27 +100,27 @@ ], "providerPlugin": "awscloudformation", "service": "Lambda", - "lastBuildTimeStamp": "2026-03-20T21:19:47.115Z", + "lastBuildTimeStamp": "2026-04-15T03:52:00.129Z", "lastBuildType": "PROD", - "lastPackageTimeStamp": "2026-03-20T21:19:47.147Z", - "distZipFilename": "fetchuseractivity-6e523036545438726f37-build.zip", + "lastPackageTimeStamp": "2026-04-15T03:52:00.178Z", + "distZipFilename": "fetchuseractivity-574d43794579796f5042-build.zip", "s3Bucket": { - "deploymentBucketName": "amplify-discussions-main-c39a5-deployment", - "s3Key": "amplify-builds/fetchuseractivity-6e523036545438726f37-build.zip" + "deploymentBucketName": "amplify-discussions-x-x-deployment", + "s3Key": "amplify-builds/fetchuseractivity-574d43794579796f5042-build.zip" }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/function/fetchuseractivity-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/function/fetchuseractivity-cloudformation-template.json", "logicalId": "functionfetchuseractivity" }, - "lastPushTimeStamp": "2026-03-20T21:24:14.059Z", + "lastPushTimeStamp": "2026-04-15T03:57:14.522Z", "output": { - "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/discussionsLambdaRole44bd86bc-main", + "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/discussionsLambdaRole44bd86bc-x", "Region": "us-east-1", - "Arn": "arn:aws:lambda:us-east-1:123456789012:function:fetchuseractivity-main", - "Name": "fetchuseractivity-main", - "LambdaExecutionRole": "discussionsLambdaRole44bd86bc-main" + "Arn": "arn:aws:lambda:us-east-1:123456789012:function:fetchuseractivity-x", + "Name": "fetchuseractivity-x", + "LambdaExecutionRole": "discussionsLambdaRole44bd86bc-x" }, - "lastPushDirHash": "R64T5GvXPz84ttStgLRDEvqSeOg=" + "lastPushDirHash": "5+A65lZSaWqxIfZTFsLHthcXaos=" }, "recorduseractivity": { "build": true, @@ -145,27 +145,27 @@ ], "providerPlugin": "awscloudformation", "service": "Lambda", - "lastBuildTimeStamp": "2026-03-20T21:19:47.546Z", + "lastBuildTimeStamp": "2026-04-15T03:52:00.614Z", "lastBuildType": "PROD", - "lastPackageTimeStamp": "2026-03-20T21:19:47.560Z", - "distZipFilename": "recorduseractivity-433947686f7145754543-build.zip", + "lastPackageTimeStamp": "2026-04-15T03:52:00.624Z", + "distZipFilename": "recorduseractivity-54696a587a7168467354-build.zip", "s3Bucket": { - "deploymentBucketName": "amplify-discussions-main-c39a5-deployment", - "s3Key": "amplify-builds/recorduseractivity-433947686f7145754543-build.zip" + "deploymentBucketName": "amplify-discussions-x-x-deployment", + "s3Key": "amplify-builds/recorduseractivity-54696a587a7168467354-build.zip" }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/function/recorduseractivity-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/function/recorduseractivity-cloudformation-template.json", "logicalId": "functionrecorduseractivity" }, - "lastPushTimeStamp": "2026-03-20T21:24:14.059Z", + "lastPushTimeStamp": "2026-04-15T03:57:14.522Z", "output": { - "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/discussionsLambdaRole62a425ae-main", + "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/discussionsLambdaRole62a425ae-x", "Region": "us-east-1", - "Arn": "arn:aws:lambda:us-east-1:123456789012:function:recorduseractivity-main", - "Name": "recorduseractivity-main", - "LambdaExecutionRole": "discussionsLambdaRole62a425ae-main" + "Arn": "arn:aws:lambda:us-east-1:123456789012:function:recorduseractivity-x", + "Name": "recorduseractivity-x", + "LambdaExecutionRole": "discussionsLambdaRole62a425ae-x" }, - "lastPushDirHash": "wpepR6GRBy0XTCEXNmYdMZdmEvM=" + "lastPushDirHash": "fUpHTVROFUoS3EYhlmfZgBLR2mI=" } }, "storage": { @@ -173,19 +173,19 @@ "providerPlugin": "awscloudformation", "service": "DynamoDB", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/storage/activity-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/storage/activity-cloudformation-template.json", "logicalId": "storageactivity" }, - "lastPushTimeStamp": "2026-03-20T21:24:14.059Z", + "lastPushTimeStamp": "2026-04-15T03:57:14.522Z", "output": { "PartitionKeyName": "id", "SortKeyName": "userId", "SortKeyType": "S", "Region": "us-east-1", - "Arn": "arn:aws:dynamodb:us-east-1:123456789012:table/activity-main", - "StreamArn": "arn:aws:dynamodb:us-east-1:123456789012:table/activity-main/stream/2026-03-20T21:19:57.516", + "Arn": "arn:aws:dynamodb:us-east-1:123456789012:table/activity-x", + "StreamArn": "arn:aws:dynamodb:us-east-1:123456789012:table/activity-x/stream/2026-04-15T03:52:10.997", "PartitionKeyType": "S", - "Name": "activity-main" + "Name": "activity-x" }, "lastPushDirHash": "LKrx9n9rI5MFeuTLmyTA2Bho0zg=" }, @@ -193,13 +193,13 @@ "dependsOn": [], "providerPlugin": "awscloudformation", "service": "S3", - "lastPushTimeStamp": "2026-03-20T21:24:14.059Z", + "lastPushTimeStamp": "2026-04-15T03:57:14.522Z", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/storage/cloudformation-template.json", "logicalId": "storageavatars" }, "output": { - "BucketName": "discus-avatarsc39a5-main", + "BucketName": "discus-avatarsx-x", "Region": "us-east-1" }, "lastPushDirHash": "rNwwRZG31h4CJSNavssQfx7X9sQ=" @@ -208,21 +208,21 @@ "providerPlugin": "awscloudformation", "service": "DynamoDB", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/storage/bookmarks-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/storage/bookmarks-cloudformation-template.json", "logicalId": "storagebookmarks" }, - "lastPushTimeStamp": "2026-03-20T21:24:14.059Z", + "lastPushTimeStamp": "2026-04-15T03:57:14.522Z", "output": { "PartitionKeyName": "userId", "SortKeyName": "postId", "SortKeyType": "S", "Region": "us-east-1", - "Arn": "arn:aws:dynamodb:us-east-1:123456789012:table/bookmarks-main", - "StreamArn": "arn:aws:dynamodb:us-east-1:123456789012:table/bookmarks-main/stream/2026-03-20T21:19:57.495", + "Arn": "arn:aws:dynamodb:us-east-1:123456789012:table/bookmarks-x", + "StreamArn": "arn:aws:dynamodb:us-east-1:123456789012:table/bookmarks-x/stream/2026-04-15T03:52:11.077", "PartitionKeyType": "S", - "Name": "bookmarks-main" + "Name": "bookmarks-x" }, "lastPushDirHash": "UcosRNORY7WR8bi+QNNLl+eX+Eo=" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/cloudformation-template.json index 647ae86b7e0..e2b426197a4 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/cloudformation-template.json @@ -111,7 +111,7 @@ "ApiId" ] }, - "Expires": 1774646388 + "Expires": 1776829921 } }, "GraphQLAPINONEDS95A13CF0": { @@ -641,7 +641,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -738,7 +738,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -835,7 +835,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -932,7 +932,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -1062,5 +1062,5 @@ } } }, - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/parameters.json index 7219a2a69a5..04a33cdbf76 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/parameters.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/parameters.json @@ -2,6 +2,6 @@ "AppSyncApiName": "discussions", "DynamoDBBillingMode": "PAY_PER_REQUEST", "DynamoDBEnableServerSideEncryption": false, - "S3DeploymentBucket": "amplify-discussions-main-c39a5-deployment", + "S3DeploymentBucket": "amplify-discussions-x-x-deployment", "S3DeploymentRootKey": "amplify-appsync-files/db92bad357b2590353e82db2f2ec7d0fc9cfd30d" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Activity.activityType.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Activity.activityType.req.vtl index d2216c9c2d9..ef5b992a501 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Activity.activityType.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Activity.activityType.req.vtl @@ -7,4 +7,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Activity.activityType.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Activity.activityType.res.vtl index e93a40e1a94..658f745cb8f 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Activity.activityType.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Activity.activityType.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["activityType"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Activity.id.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Activity.id.req.vtl index d2216c9c2d9..ef5b992a501 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Activity.id.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Activity.id.req.vtl @@ -7,4 +7,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Activity.id.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Activity.id.res.vtl index 2626100ea17..b8b7313b917 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Activity.id.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Activity.id.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["id"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Activity.timestamp.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Activity.timestamp.req.vtl index d2216c9c2d9..ef5b992a501 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Activity.timestamp.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Activity.timestamp.req.vtl @@ -7,4 +7,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Activity.timestamp.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Activity.timestamp.res.vtl index 5123c52c5aa..76a126983d6 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Activity.timestamp.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Activity.timestamp.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["timestamp"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Activity.userId.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Activity.userId.req.vtl index d2216c9c2d9..ef5b992a501 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Activity.userId.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Activity.userId.req.vtl @@ -7,4 +7,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Activity.userId.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Activity.userId.res.vtl index 19d4f087e47..f8874e81f49 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Activity.userId.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Activity.userId.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["userId"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Comment.post.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Comment.post.auth.1.req.vtl index 8856d63c457..581af8fdd7c 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Comment.post.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Comment.post.auth.1.req.vtl @@ -8,4 +8,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Comment.post.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Comment.post.req.vtl index 4cf4ff6d2ab..41bcb61242c 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Comment.post.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Comment.post.req.vtl @@ -22,4 +22,4 @@ $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) #end $util.toJson($GetRequest) -#end \ No newline at end of file +#end diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Comment.post.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Comment.post.res.vtl index 92c535c73df..61b51759e34 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Comment.post.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Comment.post.res.vtl @@ -14,4 +14,4 @@ $util.unauthorized() #end $util.toJson(null) #end -#end \ No newline at end of file +#end diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/InvokeFetchuseractivityLambdaDataSource.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/InvokeFetchuseractivityLambdaDataSource.req.vtl index c6a8becd5c0..847e814135a 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/InvokeFetchuseractivityLambdaDataSource.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/InvokeFetchuseractivityLambdaDataSource.req.vtl @@ -12,4 +12,4 @@ "prev": $util.toJson($ctx.prev) } } -## [End] Invoke AWS Lambda data source: FetchuseractivityLambdaDataSource. ** \ No newline at end of file +## [End] Invoke AWS Lambda data source: FetchuseractivityLambdaDataSource. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/InvokeFetchuseractivityLambdaDataSource.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/InvokeFetchuseractivityLambdaDataSource.res.vtl index e6b83d8b6ab..1316903313e 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/InvokeFetchuseractivityLambdaDataSource.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/InvokeFetchuseractivityLambdaDataSource.res.vtl @@ -3,4 +3,4 @@ $util.error($ctx.error.message, $ctx.error.type) #end $util.toJson($ctx.result) -## [End] Handle error or return result. ** \ No newline at end of file +## [End] Handle error or return result. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createComment.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createComment.auth.1.req.vtl index f166a557348..011b9ec27eb 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createComment.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createComment.auth.1.req.vtl @@ -16,4 +16,4 @@ $util.unauthorized() #end #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createComment.init.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createComment.init.1.req.vtl index df6b4cbbc5c..407b5845fc2 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createComment.init.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createComment.init.1.req.vtl @@ -8,4 +8,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createComment.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createComment.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createComment.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createComment.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createComment.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createComment.req.vtl index 2549a552a00..63151b0f98d 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createComment.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createComment.req.vtl @@ -63,4 +63,4 @@ $util.qr($mergedValues.put("__typename", "Comment")) $util.qr($PutObject.put("key", $Key)) #end $util.toJson($PutObject) -## [End] Create Request template. ** \ No newline at end of file +## [End] Create Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createComment.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createComment.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createComment.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createComment.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createPost.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createPost.auth.1.req.vtl index f166a557348..011b9ec27eb 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createPost.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createPost.auth.1.req.vtl @@ -16,4 +16,4 @@ $util.unauthorized() #end #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createPost.init.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createPost.init.1.req.vtl index df6b4cbbc5c..407b5845fc2 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createPost.init.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createPost.init.1.req.vtl @@ -8,4 +8,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createPost.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createPost.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createPost.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createPost.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createPost.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createPost.req.vtl index 78d5b6debcc..5fe5f436d9b 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createPost.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createPost.req.vtl @@ -63,4 +63,4 @@ $util.qr($mergedValues.put("__typename", "Post")) $util.qr($PutObject.put("key", $Key)) #end $util.toJson($PutObject) -## [End] Create Request template. ** \ No newline at end of file +## [End] Create Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createPost.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createPost.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createPost.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createPost.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createTopic.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createTopic.auth.1.req.vtl index f166a557348..011b9ec27eb 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createTopic.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createTopic.auth.1.req.vtl @@ -16,4 +16,4 @@ $util.unauthorized() #end #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createTopic.init.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createTopic.init.1.req.vtl index df6b4cbbc5c..407b5845fc2 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createTopic.init.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createTopic.init.1.req.vtl @@ -8,4 +8,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createTopic.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createTopic.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createTopic.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createTopic.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createTopic.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createTopic.req.vtl index ee935319ece..4964cb27d6d 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createTopic.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createTopic.req.vtl @@ -63,4 +63,4 @@ $util.qr($mergedValues.put("__typename", "Topic")) $util.qr($PutObject.put("key", $Key)) #end $util.toJson($PutObject) -## [End] Create Request template. ** \ No newline at end of file +## [End] Create Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createTopic.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createTopic.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createTopic.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.createTopic.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deleteComment.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deleteComment.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deleteComment.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deleteComment.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deleteComment.auth.1.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deleteComment.auth.1.res.vtl index 5ebf1d5eb7f..74276964bfa 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deleteComment.auth.1.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deleteComment.auth.1.res.vtl @@ -8,4 +8,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deleteComment.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deleteComment.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deleteComment.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deleteComment.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deleteComment.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deleteComment.req.vtl index ace459bd501..d2cb40cd15d 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deleteComment.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deleteComment.req.vtl @@ -55,4 +55,4 @@ $util.qr($DeleteRequest.put("key", $Key)) $util.qr($DeleteRequest.put("condition", $Conditions)) #end $util.toJson($DeleteRequest) -## [End] Delete Request template. ** \ No newline at end of file +## [End] Delete Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deleteComment.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deleteComment.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deleteComment.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deleteComment.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deletePost.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deletePost.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deletePost.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deletePost.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deletePost.auth.1.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deletePost.auth.1.res.vtl index 5ebf1d5eb7f..74276964bfa 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deletePost.auth.1.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deletePost.auth.1.res.vtl @@ -8,4 +8,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deletePost.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deletePost.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deletePost.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deletePost.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deletePost.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deletePost.req.vtl index ace459bd501..d2cb40cd15d 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deletePost.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deletePost.req.vtl @@ -55,4 +55,4 @@ $util.qr($DeleteRequest.put("key", $Key)) $util.qr($DeleteRequest.put("condition", $Conditions)) #end $util.toJson($DeleteRequest) -## [End] Delete Request template. ** \ No newline at end of file +## [End] Delete Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deletePost.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deletePost.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deletePost.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deletePost.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deleteTopic.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deleteTopic.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deleteTopic.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deleteTopic.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deleteTopic.auth.1.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deleteTopic.auth.1.res.vtl index 5ebf1d5eb7f..74276964bfa 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deleteTopic.auth.1.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deleteTopic.auth.1.res.vtl @@ -8,4 +8,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deleteTopic.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deleteTopic.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deleteTopic.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deleteTopic.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deleteTopic.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deleteTopic.req.vtl index ace459bd501..d2cb40cd15d 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deleteTopic.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deleteTopic.req.vtl @@ -55,4 +55,4 @@ $util.qr($DeleteRequest.put("key", $Key)) $util.qr($DeleteRequest.put("condition", $Conditions)) #end $util.toJson($DeleteRequest) -## [End] Delete Request template. ** \ No newline at end of file +## [End] Delete Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deleteTopic.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deleteTopic.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deleteTopic.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.deleteTopic.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateComment.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateComment.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateComment.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateComment.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateComment.auth.1.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateComment.auth.1.res.vtl index 3e66c259bf2..11fecbb2040 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateComment.auth.1.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateComment.auth.1.res.vtl @@ -28,4 +28,4 @@ $util.unauthorized() $util.error("Unauthorized on ${deniedFields.keySet()}", "Unauthorized") #end $util.toJson({}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateComment.init.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateComment.init.1.req.vtl index ab5766fb051..dde2512aea8 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateComment.init.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateComment.init.1.req.vtl @@ -6,4 +6,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateComment.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateComment.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateComment.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateComment.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateComment.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateComment.req.vtl index a1bd67d21b6..648b67d7c57 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateComment.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateComment.req.vtl @@ -127,4 +127,4 @@ $util.qr($update.put("expression", "$expression")) $util.qr($UpdateItem.put("condition", $Conditions)) #end $util.toJson($UpdateItem) -## [End] Mutation Update resolver. ** \ No newline at end of file +## [End] Mutation Update resolver. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateComment.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateComment.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateComment.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateComment.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updatePost.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updatePost.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updatePost.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updatePost.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updatePost.auth.1.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updatePost.auth.1.res.vtl index 3e66c259bf2..11fecbb2040 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updatePost.auth.1.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updatePost.auth.1.res.vtl @@ -28,4 +28,4 @@ $util.unauthorized() $util.error("Unauthorized on ${deniedFields.keySet()}", "Unauthorized") #end $util.toJson({}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updatePost.init.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updatePost.init.1.req.vtl index ab5766fb051..dde2512aea8 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updatePost.init.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updatePost.init.1.req.vtl @@ -6,4 +6,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updatePost.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updatePost.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updatePost.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updatePost.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updatePost.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updatePost.req.vtl index a1bd67d21b6..648b67d7c57 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updatePost.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updatePost.req.vtl @@ -127,4 +127,4 @@ $util.qr($update.put("expression", "$expression")) $util.qr($UpdateItem.put("condition", $Conditions)) #end $util.toJson($UpdateItem) -## [End] Mutation Update resolver. ** \ No newline at end of file +## [End] Mutation Update resolver. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updatePost.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updatePost.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updatePost.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updatePost.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateTopic.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateTopic.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateTopic.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateTopic.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateTopic.auth.1.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateTopic.auth.1.res.vtl index 3e66c259bf2..11fecbb2040 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateTopic.auth.1.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateTopic.auth.1.res.vtl @@ -28,4 +28,4 @@ $util.unauthorized() $util.error("Unauthorized on ${deniedFields.keySet()}", "Unauthorized") #end $util.toJson({}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateTopic.init.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateTopic.init.1.req.vtl index ab5766fb051..dde2512aea8 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateTopic.init.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateTopic.init.1.req.vtl @@ -6,4 +6,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateTopic.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateTopic.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateTopic.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateTopic.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateTopic.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateTopic.req.vtl index a1bd67d21b6..648b67d7c57 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateTopic.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateTopic.req.vtl @@ -127,4 +127,4 @@ $util.qr($update.put("expression", "$expression")) $util.qr($UpdateItem.put("condition", $Conditions)) #end $util.toJson($UpdateItem) -## [End] Mutation Update resolver. ** \ No newline at end of file +## [End] Mutation Update resolver. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateTopic.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateTopic.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateTopic.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Mutation.updateTopic.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Post.comments.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Post.comments.auth.1.req.vtl index 8856d63c457..581af8fdd7c 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Post.comments.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Post.comments.auth.1.req.vtl @@ -8,4 +8,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Post.comments.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Post.comments.req.vtl index 0a178e1d583..75b99e607b2 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Post.comments.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Post.comments.req.vtl @@ -69,4 +69,4 @@ null #end, "index": "gsi-Post.comments" } -#end \ No newline at end of file +#end diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Post.comments.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Post.comments.res.vtl index 922c4ce53d0..ae420dbf03f 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Post.comments.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Post.comments.res.vtl @@ -10,4 +10,4 @@ $util.error($ctx.error.message, $ctx.error.type) #end #end $util.toJson($result) -#end \ No newline at end of file +#end diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Post.topic.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Post.topic.auth.1.req.vtl index 8856d63c457..581af8fdd7c 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Post.topic.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Post.topic.auth.1.req.vtl @@ -8,4 +8,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Post.topic.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Post.topic.req.vtl index db8d4c5f93e..efc65f40ba4 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Post.topic.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Post.topic.req.vtl @@ -22,4 +22,4 @@ $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) #end $util.toJson($GetRequest) -#end \ No newline at end of file +#end diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Post.topic.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Post.topic.res.vtl index 92c535c73df..61b51759e34 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Post.topic.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Post.topic.res.vtl @@ -14,4 +14,4 @@ $util.unauthorized() #end $util.toJson(null) #end -#end \ No newline at end of file +#end diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.fetchUserActivity.auth.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.fetchUserActivity.auth.req.vtl index d2216c9c2d9..ef5b992a501 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.fetchUserActivity.auth.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.fetchUserActivity.auth.req.vtl @@ -7,4 +7,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.fetchUserActivity.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.fetchUserActivity.res.vtl index 634741579ce..c37b82e4a30 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.fetchUserActivity.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.fetchUserActivity.res.vtl @@ -1 +1 @@ -$util.toJson($ctx.prev.result) \ No newline at end of file +$util.toJson($ctx.prev.result) diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getComment.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getComment.auth.1.req.vtl index 6662446148c..90babdf9e82 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getComment.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getComment.auth.1.req.vtl @@ -9,4 +9,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getComment.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getComment.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getComment.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getComment.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getComment.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getComment.req.vtl index a8d7811a021..fd7fbfc8013 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getComment.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getComment.req.vtl @@ -31,4 +31,4 @@ $util.qr($GetRequest.put("query", $query)) $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) #end $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getComment.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getComment.res.vtl index e9ef1436bdd..92e05f99816 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getComment.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getComment.res.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson(null) #end -## [End] Get Response template. ** \ No newline at end of file +## [End] Get Response template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getPost.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getPost.auth.1.req.vtl index 6662446148c..90babdf9e82 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getPost.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getPost.auth.1.req.vtl @@ -9,4 +9,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getPost.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getPost.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getPost.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getPost.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getPost.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getPost.req.vtl index a8d7811a021..fd7fbfc8013 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getPost.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getPost.req.vtl @@ -31,4 +31,4 @@ $util.qr($GetRequest.put("query", $query)) $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) #end $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getPost.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getPost.res.vtl index e9ef1436bdd..92e05f99816 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getPost.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getPost.res.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson(null) #end -## [End] Get Response template. ** \ No newline at end of file +## [End] Get Response template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getTopic.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getTopic.auth.1.req.vtl index 6662446148c..90babdf9e82 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getTopic.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getTopic.auth.1.req.vtl @@ -9,4 +9,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getTopic.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getTopic.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getTopic.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getTopic.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getTopic.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getTopic.req.vtl index a8d7811a021..fd7fbfc8013 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getTopic.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getTopic.req.vtl @@ -31,4 +31,4 @@ $util.qr($GetRequest.put("query", $query)) $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) #end $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getTopic.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getTopic.res.vtl index e9ef1436bdd..92e05f99816 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getTopic.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.getTopic.res.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson(null) #end -## [End] Get Response template. ** \ No newline at end of file +## [End] Get Response template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listComments.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listComments.auth.1.req.vtl index 6662446148c..90babdf9e82 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listComments.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listComments.auth.1.req.vtl @@ -9,4 +9,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listComments.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listComments.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listComments.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listComments.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listComments.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listComments.req.vtl index 014213710e8..ef976126825 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listComments.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listComments.req.vtl @@ -47,4 +47,4 @@ #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) #end $util.toJson($ListRequest) -## [End] List Request. ** \ No newline at end of file +## [End] List Request. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listComments.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listComments.res.vtl index ee8b6670cbc..aab9983954e 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listComments.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listComments.res.vtl @@ -4,4 +4,4 @@ #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listPosts.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listPosts.auth.1.req.vtl index 6662446148c..90babdf9e82 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listPosts.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listPosts.auth.1.req.vtl @@ -9,4 +9,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listPosts.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listPosts.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listPosts.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listPosts.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listPosts.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listPosts.req.vtl index 014213710e8..ef976126825 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listPosts.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listPosts.req.vtl @@ -47,4 +47,4 @@ #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) #end $util.toJson($ListRequest) -## [End] List Request. ** \ No newline at end of file +## [End] List Request. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listPosts.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listPosts.res.vtl index ee8b6670cbc..aab9983954e 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listPosts.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listPosts.res.vtl @@ -4,4 +4,4 @@ #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listTopics.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listTopics.auth.1.req.vtl index 6662446148c..90babdf9e82 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listTopics.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listTopics.auth.1.req.vtl @@ -9,4 +9,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listTopics.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listTopics.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listTopics.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listTopics.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listTopics.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listTopics.req.vtl index 014213710e8..ef976126825 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listTopics.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listTopics.req.vtl @@ -47,4 +47,4 @@ #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) #end $util.toJson($ListRequest) -## [End] List Request. ** \ No newline at end of file +## [End] List Request. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listTopics.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listTopics.res.vtl index ee8b6670cbc..aab9983954e 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listTopics.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Query.listTopics.res.vtl @@ -4,4 +4,4 @@ #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreateComment.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreateComment.auth.1.req.vtl index 5ebf1d5eb7f..74276964bfa 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreateComment.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreateComment.auth.1.req.vtl @@ -8,4 +8,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreateComment.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreateComment.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreateComment.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreateComment.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreateComment.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreateComment.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreateComment.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreateComment.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreateComment.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreateComment.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreateComment.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreateComment.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreatePost.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreatePost.auth.1.req.vtl index 5ebf1d5eb7f..74276964bfa 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreatePost.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreatePost.auth.1.req.vtl @@ -8,4 +8,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreatePost.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreatePost.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreatePost.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreatePost.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreatePost.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreatePost.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreatePost.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreatePost.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreatePost.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreatePost.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreatePost.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreatePost.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreateTopic.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreateTopic.auth.1.req.vtl index 5ebf1d5eb7f..74276964bfa 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreateTopic.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreateTopic.auth.1.req.vtl @@ -8,4 +8,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreateTopic.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreateTopic.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreateTopic.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreateTopic.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreateTopic.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreateTopic.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreateTopic.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreateTopic.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreateTopic.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreateTopic.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreateTopic.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onCreateTopic.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeleteComment.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeleteComment.auth.1.req.vtl index 5ebf1d5eb7f..74276964bfa 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeleteComment.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeleteComment.auth.1.req.vtl @@ -8,4 +8,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeleteComment.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeleteComment.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeleteComment.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeleteComment.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeleteComment.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeleteComment.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeleteComment.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeleteComment.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeleteComment.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeleteComment.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeleteComment.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeleteComment.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeletePost.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeletePost.auth.1.req.vtl index 5ebf1d5eb7f..74276964bfa 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeletePost.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeletePost.auth.1.req.vtl @@ -8,4 +8,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeletePost.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeletePost.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeletePost.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeletePost.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeletePost.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeletePost.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeletePost.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeletePost.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeletePost.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeletePost.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeletePost.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeletePost.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeleteTopic.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeleteTopic.auth.1.req.vtl index 5ebf1d5eb7f..74276964bfa 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeleteTopic.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeleteTopic.auth.1.req.vtl @@ -8,4 +8,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeleteTopic.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeleteTopic.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeleteTopic.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeleteTopic.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeleteTopic.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeleteTopic.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeleteTopic.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeleteTopic.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeleteTopic.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeleteTopic.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeleteTopic.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onDeleteTopic.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdateComment.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdateComment.auth.1.req.vtl index 5ebf1d5eb7f..74276964bfa 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdateComment.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdateComment.auth.1.req.vtl @@ -8,4 +8,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdateComment.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdateComment.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdateComment.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdateComment.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdateComment.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdateComment.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdateComment.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdateComment.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdateComment.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdateComment.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdateComment.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdateComment.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdatePost.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdatePost.auth.1.req.vtl index 5ebf1d5eb7f..74276964bfa 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdatePost.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdatePost.auth.1.req.vtl @@ -8,4 +8,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdatePost.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdatePost.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdatePost.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdatePost.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdatePost.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdatePost.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdatePost.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdatePost.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdatePost.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdatePost.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdatePost.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdatePost.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdateTopic.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdateTopic.auth.1.req.vtl index 5ebf1d5eb7f..74276964bfa 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdateTopic.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdateTopic.auth.1.req.vtl @@ -8,4 +8,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdateTopic.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdateTopic.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdateTopic.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdateTopic.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdateTopic.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdateTopic.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdateTopic.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdateTopic.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdateTopic.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdateTopic.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdateTopic.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Subscription.onUpdateTopic.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Topic.posts.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Topic.posts.auth.1.req.vtl index 8856d63c457..581af8fdd7c 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Topic.posts.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Topic.posts.auth.1.req.vtl @@ -8,4 +8,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Topic.posts.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Topic.posts.req.vtl index 8f4e8b6b91f..937820922f8 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Topic.posts.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Topic.posts.req.vtl @@ -69,4 +69,4 @@ null #end, "index": "gsi-Topic.posts" } -#end \ No newline at end of file +#end diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Topic.posts.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Topic.posts.res.vtl index 922c4ce53d0..ae420dbf03f 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Topic.posts.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/resolvers/Topic.posts.res.vtl @@ -10,4 +10,4 @@ $util.error($ctx.error.message, $ctx.error.type) #end #end $util.toJson($result) -#end \ No newline at end of file +#end diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/stacks/Comment.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/stacks/Comment.json index 555e8d77192..29c78d019ac 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/stacks/Comment.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/stacks/Comment.json @@ -500,7 +500,7 @@ { "Ref": "CommentTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -595,7 +595,7 @@ { "Ref": "CommentTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -693,7 +693,7 @@ { "Ref": "CommentTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -845,7 +845,7 @@ { "Ref": "CommentTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -994,7 +994,7 @@ { "Ref": "CommentTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -1031,7 +1031,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -1068,7 +1068,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -1105,7 +1105,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -1192,4 +1192,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/stacks/ConnectionStack.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/stacks/ConnectionStack.json index fc750c366eb..32cfbcb8638 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/stacks/ConnectionStack.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/stacks/ConnectionStack.json @@ -111,7 +111,7 @@ { "Ref": "referencetotransformerrootstackPostNestedStackPostNestedStackResource45FCAC5EOutputstransformerrootstackPostPostTable34CAE87BRef" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -200,7 +200,7 @@ { "Ref": "referencetotransformerrootstackCommentNestedStackCommentNestedStackResource199283FBOutputstransformerrootstackCommentCommentTable5427FDE2Ref" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -289,7 +289,7 @@ { "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicTopicTableFD91FB92Ref" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -378,7 +378,7 @@ { "Ref": "referencetotransformerrootstackPostNestedStackPostNestedStackResource45FCAC5EOutputstransformerrootstackPostPostTable34CAE87BRef" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -419,4 +419,4 @@ "Type": "String" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/stacks/CustomResources.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/stacks/CustomResources.json index 016991278d0..5fe357d6096 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/stacks/CustomResources.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/stacks/CustomResources.json @@ -58,4 +58,4 @@ "Value": "" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/stacks/FunctionDirectiveStack.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/stacks/FunctionDirectiveStack.json index 2893dd20e86..5779eb40eef 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/stacks/FunctionDirectiveStack.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/stacks/FunctionDirectiveStack.json @@ -278,4 +278,4 @@ "Type": "String" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/stacks/Post.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/stacks/Post.json index c9369d72715..384e11403f2 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/stacks/Post.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/stacks/Post.json @@ -500,7 +500,7 @@ { "Ref": "PostTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -595,7 +595,7 @@ { "Ref": "PostTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -693,7 +693,7 @@ { "Ref": "PostTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -845,7 +845,7 @@ { "Ref": "PostTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -994,7 +994,7 @@ { "Ref": "PostTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -1031,7 +1031,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -1068,7 +1068,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -1105,7 +1105,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -1192,4 +1192,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/stacks/Topic.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/stacks/Topic.json index 233b2a28467..f27ba5b0bb0 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/stacks/Topic.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/build/stacks/Topic.json @@ -503,7 +503,7 @@ { "Ref": "TopicTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -604,7 +604,7 @@ { "Ref": "TopicTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -771,7 +771,7 @@ { "Ref": "TopicTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -959,7 +959,7 @@ { "Ref": "TopicTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -1111,7 +1111,7 @@ { "Ref": "TopicTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -1232,7 +1232,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -1278,7 +1278,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -1324,7 +1324,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -1467,4 +1467,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/cli-inputs.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/cli-inputs.json index f2b02365cc1..c25415e5aef 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/cli-inputs.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/cli-inputs.json @@ -8,4 +8,4 @@ "expirationTime": 7 } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/parameters.json index 41935ee9dfb..8c6b7086ebe 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/parameters.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/parameters.json @@ -2,4 +2,4 @@ "AppSyncApiName": "discussions", "DynamoDBBillingMode": "PAY_PER_REQUEST", "DynamoDBEnableServerSideEncryption": false -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/resolvers/README.md b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/resolvers/README.md index 89e564c5b31..1634d295144 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/resolvers/README.md +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/resolvers/README.md @@ -1,2 +1,2 @@ Any resolvers that you add in this directory will override the ones automatically generated by Amplify CLI and will be directly copied to the cloud. -For more information, visit [https://docs.amplify.aws/cli/graphql-transformer/resolvers](https://docs.amplify.aws/cli/graphql-transformer/resolvers) \ No newline at end of file +For more information, visit [https://docs.amplify.aws/cli/graphql-transformer/resolvers](https://docs.amplify.aws/cli/graphql-transformer/resolvers) diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/transform.conf.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/transform.conf.json index 98e1e19f038..d0421b1df09 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/transform.conf.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/api/discussions/transform.conf.json @@ -1,4 +1,4 @@ { "Version": 5, "ElasticsearchWarning": true -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/discussions22367c6822367c68/build/discussions22367c6822367c68-cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/discussions22367c6822367c68/build/discussions22367c6822367c68-cloudformation-template.json deleted file mode 100644 index c305475136f..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/discussions22367c6822367c68/build/discussions22367c6822367c68-cloudformation-template.json +++ /dev/null @@ -1,533 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "env": { - "Type": "String" - }, - "identityPoolName": { - "Type": "String" - }, - "allowUnauthenticatedIdentities": { - "Type": "String" - }, - "resourceNameTruncated": { - "Type": "String" - }, - "userPoolName": { - "Type": "String" - }, - "autoVerifiedAttributes": { - "Type": "CommaDelimitedList" - }, - "mfaConfiguration": { - "Type": "String" - }, - "mfaTypes": { - "Type": "CommaDelimitedList" - }, - "smsAuthenticationMessage": { - "Type": "String" - }, - "smsVerificationMessage": { - "Type": "String" - }, - "emailVerificationSubject": { - "Type": "String" - }, - "emailVerificationMessage": { - "Type": "String" - }, - "defaultPasswordPolicy": { - "Type": "String" - }, - "passwordPolicyMinLength": { - "Type": "String" - }, - "passwordPolicyCharacters": { - "Type": "CommaDelimitedList" - }, - "requiredAttributes": { - "Type": "CommaDelimitedList" - }, - "aliasAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientGenerateSecret": { - "Type": "String" - }, - "userpoolClientRefreshTokenValidity": { - "Type": "String" - }, - "userpoolClientWriteAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientReadAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientLambdaRole": { - "Type": "String" - }, - "userpoolClientSetAttributes": { - "Type": "String" - }, - "sharedId": { - "Type": "String" - }, - "resourceName": { - "Type": "String" - }, - "authSelections": { - "Type": "String" - }, - "useDefault": { - "Type": "String" - }, - "thirdPartyAuth": { - "Type": "String" - }, - "usernameAttributes": { - "Type": "CommaDelimitedList" - }, - "userPoolGroups": { - "Type": "String" - }, - "adminQueries": { - "Type": "String" - }, - "triggers": { - "Type": "String" - }, - "hostedUI": { - "Type": "String" - }, - "userPoolGroupList": { - "Type": "CommaDelimitedList" - }, - "serviceName": { - "Type": "String" - }, - "usernameCaseSensitive": { - "Type": "String" - }, - "useEnabledMfas": { - "Type": "String" - }, - "authRoleArn": { - "Type": "String" - }, - "unauthRoleArn": { - "Type": "String" - }, - "breakCircularDependency": { - "Type": "String" - }, - "dependsOn": { - "Type": "CommaDelimitedList" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - }, - "Resources": { - "SNSRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Sid": "", - "Effect": "Allow", - "Principal": { - "Service": "cognito-idp.amazonaws.com" - }, - "Action": [ - "sts:AssumeRole" - ], - "Condition": { - "StringEquals": { - "sts:ExternalId": "discus22367c68_role_external_id" - } - } - } - ] - }, - "Policies": [ - { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "sns:Publish" - ], - "Resource": "*" - } - ] - }, - "PolicyName": "discus22367c68-sns-policy" - } - ], - "RoleName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "discus22367c68_sns-role", - { - "Fn::Join": [ - "", - [ - "sns22367c68", - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - { - "Ref": "AWS::StackName" - } - ] - } - ] - }, - "-", - { - "Ref": "env" - } - ] - ] - } - ] - } - } - }, - "UserPool": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": { - "Ref": "emailVerificationMessage" - }, - "EmailVerificationSubject": { - "Ref": "emailVerificationSubject" - }, - "MfaConfiguration": { - "Ref": "mfaConfiguration" - }, - "Policies": { - "PasswordPolicy": { - "MinimumLength": { - "Ref": "passwordPolicyMinLength" - }, - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - }, - { - "Mutable": true, - "Name": "phone_number", - "Required": true - } - ], - "SmsAuthenticationMessage": { - "Ref": "smsAuthenticationMessage" - }, - "SmsConfiguration": { - "ExternalId": "discus22367c68_role_external_id", - "SnsCallerArn": { - "Fn::GetAtt": [ - "SNSRole", - "Arn" - ] - } - }, - "SmsVerificationMessage": { - "Ref": "smsVerificationMessage" - }, - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "userPoolName" - }, - { - "Fn::Join": [ - "", - [ - { - "Ref": "userPoolName" - }, - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "UsernameAttributes": { - "Ref": "usernameAttributes" - }, - "UsernameConfiguration": { - "CaseSensitive": false - } - }, - "DependsOn": [ - "SNSRole" - ] - }, - "UserPoolClientWeb": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "discus22367c68_app_clientWeb", - "RefreshTokenValidity": { - "Ref": "userpoolClientRefreshTokenValidity" - }, - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": { - "Ref": "UserPool" - } - }, - "DependsOn": [ - "UserPool" - ] - }, - "UserPoolClient": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "discus22367c68_app_client", - "GenerateSecret": { - "Ref": "userpoolClientGenerateSecret" - }, - "RefreshTokenValidity": { - "Ref": "userpoolClientRefreshTokenValidity" - }, - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": { - "Ref": "UserPool" - } - }, - "DependsOn": [ - "UserPool" - ] - }, - "UserPoolClientRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - }, - "Action": "sts:AssumeRole" - } - ] - }, - "RoleName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "userpoolClientLambdaRole" - }, - { - "Fn::Join": [ - "", - [ - "upClientLambdaRole22367c68", - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - { - "Ref": "AWS::StackName" - } - ] - } - ] - }, - "-", - { - "Ref": "env" - } - ] - ] - } - ] - } - } - }, - "IdentityPool": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": { - "Ref": "allowUnauthenticatedIdentities" - }, - "CognitoIdentityProviders": [ - { - "ClientId": { - "Ref": "UserPoolClient" - }, - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": { - "Ref": "UserPool" - } - } - ] - } - }, - { - "ClientId": { - "Ref": "UserPoolClientWeb" - }, - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": { - "Ref": "UserPool" - } - } - ] - } - } - ], - "IdentityPoolName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "discussions22367c68_identitypool_22367c68", - { - "Fn::Join": [ - "", - [ - "discussions22367c68_identitypool_22367c68__", - { - "Ref": "env" - } - ] - ] - } - ] - } - } - }, - "IdentityPoolRoleMap": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": { - "Ref": "IdentityPool" - }, - "Roles": { - "unauthenticated": { - "Ref": "unauthRoleArn" - }, - "authenticated": { - "Ref": "authRoleArn" - } - } - }, - "DependsOn": [ - "IdentityPool" - ] - } - }, - "Outputs": { - "IdentityPoolId": { - "Description": "Id for the identity pool", - "Value": { - "Ref": "IdentityPool" - } - }, - "IdentityPoolName": { - "Value": { - "Fn::GetAtt": [ - "IdentityPool", - "Name" - ] - } - }, - "UserPoolId": { - "Description": "Id for the user pool", - "Value": { - "Ref": "UserPool" - } - }, - "UserPoolArn": { - "Description": "Arn for the user pool", - "Value": { - "Fn::GetAtt": [ - "UserPool", - "Arn" - ] - } - }, - "UserPoolName": { - "Value": { - "Ref": "userPoolName" - } - }, - "AppClientIDWeb": { - "Description": "The user pool app client id for web", - "Value": { - "Ref": "UserPoolClientWeb" - } - }, - "AppClientID": { - "Description": "The user pool app client id", - "Value": { - "Ref": "UserPoolClient" - } - }, - "CreatedSNSRole": { - "Description": "role arn", - "Value": { - "Fn::GetAtt": [ - "SNSRole", - "Arn" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/discussions22367c6822367c68/build/parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/discussions22367c6822367c68/build/parameters.json deleted file mode 100644 index bee8cd0d32d..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/discussions22367c6822367c68/build/parameters.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "identityPoolName": "discussions22367c68_identitypool_22367c68", - "allowUnauthenticatedIdentities": false, - "resourceNameTruncated": "discus22367c68", - "userPoolName": "discussions22367c68_userpool_22367c68", - "autoVerifiedAttributes": [ - "email" - ], - "mfaConfiguration": "OFF", - "mfaTypes": [ - "SMS Text Message" - ], - "smsAuthenticationMessage": "Your authentication code is {####}", - "smsVerificationMessage": "Your verification code is {####}", - "emailVerificationSubject": "Verification", - "emailVerificationMessage": "Here is your verification code {####}", - "defaultPasswordPolicy": false, - "passwordPolicyMinLength": 8, - "passwordPolicyCharacters": [], - "requiredAttributes": [ - "email", - "phone_number" - ], - "aliasAttributes": [], - "userpoolClientGenerateSecret": false, - "userpoolClientRefreshTokenValidity": "120", - "userpoolClientWriteAttributes": [ - "email" - ], - "userpoolClientReadAttributes": [ - "email" - ], - "userpoolClientLambdaRole": "discus22367c68_userpoolclient_lambda_role", - "userpoolClientSetAttributes": false, - "sharedId": "22367c68", - "resourceName": "discussions22367c6822367c68", - "authSelections": "identityPoolAndUserPool", - "useDefault": "manual", - "thirdPartyAuth": false, - "usernameAttributes": [ - "phone_number" - ], - "userPoolGroups": false, - "adminQueries": false, - "triggers": "{}", - "hostedUI": false, - "userPoolGroupList": [], - "serviceName": "Cognito", - "usernameCaseSensitive": false, - "useEnabledMfas": true, - "authRoleArn": { - "Fn::GetAtt": [ - "AuthRole", - "Arn" - ] - }, - "unauthRoleArn": { - "Fn::GetAtt": [ - "UnauthRole", - "Arn" - ] - }, - "breakCircularDependency": true, - "dependsOn": [] -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/discussions22367c6822367c68/cli-inputs.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/discussions22367c6822367c68/cli-inputs.json deleted file mode 100644 index 6cd53a84bd2..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/discussions22367c6822367c68/cli-inputs.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "version": "1", - "cognitoConfig": { - "identityPoolName": "discussions22367c68_identitypool_22367c68", - "allowUnauthenticatedIdentities": false, - "resourceNameTruncated": "discus22367c68", - "userPoolName": "discussions22367c68_userpool_22367c68", - "autoVerifiedAttributes": [ - "email" - ], - "mfaConfiguration": "OFF", - "mfaTypes": [ - "SMS Text Message" - ], - "smsAuthenticationMessage": "Your authentication code is {####}", - "smsVerificationMessage": "Your verification code is {####}", - "emailVerificationSubject": "Verification", - "emailVerificationMessage": "Here is your verification code {####}", - "defaultPasswordPolicy": false, - "passwordPolicyMinLength": 8, - "passwordPolicyCharacters": [], - "requiredAttributes": [ - "email", - "phone_number" - ], - "aliasAttributes": [], - "userpoolClientGenerateSecret": false, - "userpoolClientRefreshTokenValidity": "120", - "userpoolClientWriteAttributes": [ - "email" - ], - "userpoolClientReadAttributes": [ - "email" - ], - "userpoolClientLambdaRole": "discus22367c68_userpoolclient_lambda_role", - "userpoolClientSetAttributes": false, - "sharedId": "22367c68", - "resourceName": "discussions22367c6822367c68", - "authSelections": "identityPoolAndUserPool", - "useDefault": "manual", - "thirdPartyAuth": false, - "usernameAttributes": [ - "phone_number" - ], - "userPoolGroups": false, - "adminQueries": false, - "triggers": {}, - "hostedUI": false, - "userPoolGroupList": [], - "serviceName": "Cognito", - "usernameCaseSensitive": false, - "useEnabledMfas": true - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/discussionsc578c16ec578c16e/build/discussionsc578c16ec578c16e-cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/discussionsc578c16ec578c16e/build/discussionsc578c16ec578c16e-cloudformation-template.json index 3f10aeedb88..804eb7c3147 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/discussionsc578c16ec578c16e/build/discussionsc578c16ec578c16e-cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/discussionsc578c16ec578c16e/build/discussionsc578c16ec578c16e-cloudformation-template.json @@ -1,5 +1,5 @@ { - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { "env": { @@ -530,4 +530,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/discussionsc578c16ec578c16e/build/parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/discussionsc578c16ec578c16e/build/parameters.json index b5be0ad54f8..21eb21d8fe8 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/discussionsc578c16ec578c16e/build/parameters.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/discussionsc578c16ec578c16e/build/parameters.json @@ -62,4 +62,4 @@ }, "breakCircularDependency": true, "dependsOn": [] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/discussionsc578c16ec578c16e/cli-inputs.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/discussionsc578c16ec578c16e/cli-inputs.json index c8b670350c3..b3ffdaea87e 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/discussionsc578c16ec578c16e/cli-inputs.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/discussionsc578c16ec578c16e/cli-inputs.json @@ -51,4 +51,4 @@ "usernameCaseSensitive": false, "useEnabledMfas": true } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/discussions/build/cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/discussions/build/cloudformation-template.json index 647ae86b7e0..e2b426197a4 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/discussions/build/cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/discussions/build/cloudformation-template.json @@ -111,7 +111,7 @@ "ApiId" ] }, - "Expires": 1774646388 + "Expires": 1776829921 } }, "GraphQLAPINONEDS95A13CF0": { @@ -641,7 +641,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -738,7 +738,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -835,7 +835,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -932,7 +932,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -1062,5 +1062,5 @@ } } }, - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/discussions22367c6822367c68/build/discussions22367c6822367c68-cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/discussions22367c6822367c68/build/discussions22367c6822367c68-cloudformation-template.json index c305475136f..303e7972831 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/discussions22367c6822367c68/build/discussions22367c6822367c68-cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/discussions22367c6822367c68/build/discussions22367c6822367c68-cloudformation-template.json @@ -530,4 +530,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/discussionsc578c16ec578c16e/build/discussionsc578c16ec578c16e-cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/discussionsc578c16ec578c16e/build/discussionsc578c16ec578c16e-cloudformation-template.json index 3f10aeedb88..804eb7c3147 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/discussionsc578c16ec578c16e/build/discussionsc578c16ec578c16e-cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/discussionsc578c16ec578c16e/build/discussionsc578c16ec578c16e-cloudformation-template.json @@ -1,5 +1,5 @@ { - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { "env": { @@ -530,4 +530,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json index 7d427d24e55..e03c7e56754 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json @@ -202,21 +202,21 @@ "apidiscussions": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", "Parameters": { "AppSyncApiName": "discussions", "DynamoDBBillingMode": "PAY_PER_REQUEST", "DynamoDBEnableServerSideEncryption": false, - "S3DeploymentBucket": "amplify-discussions-main-c39a5-deployment", + "S3DeploymentBucket": "amplify-discussions-x-x-deployment", "S3DeploymentRootKey": "amplify-appsync-files/db92bad357b2590353e82db2f2ec7d0fc9cfd30d", - "env": "main" + "env": "x" } } }, "authdiscussionsc578c16ec578c16e": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/auth/discussionsc578c16ec578c16e-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/auth/discussionsc578c16ec578c16e-cloudformation-template.json", "Parameters": { "identityPoolName": "discussionsc578c16e_identitypool_c578c16e", "allowUnauthenticatedIdentities": false, @@ -268,17 +268,17 @@ }, "breakCircularDependency": true, "dependsOn": "", - "env": "main" + "env": "x" } } }, "functionfetchuseractivity": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/function/fetchuseractivity-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/function/fetchuseractivity-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-discussions-main-c39a5-deployment", - "s3Key": "amplify-builds/fetchuseractivity-6e523036545438726f37-build.zip", + "deploymentBucketName": "amplify-discussions-x-x-deployment", + "s3Key": "amplify-builds/fetchuseractivity-574d43794579796f5042-build.zip", "storageactivityName": { "Fn::GetAtt": [ "storageactivity", @@ -297,17 +297,17 @@ "Outputs.StreamArn" ] }, - "env": "main" + "env": "x" } } }, "functionrecorduseractivity": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/function/recorduseractivity-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/function/recorduseractivity-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-discussions-main-c39a5-deployment", - "s3Key": "amplify-builds/recorduseractivity-433947686f7145754543-build.zip", + "deploymentBucketName": "amplify-discussions-x-x-deployment", + "s3Key": "amplify-builds/recorduseractivity-54696a587a7168467354-build.zip", "apidiscussionsGraphQLAPIIdOutput": { "Fn::GetAtt": [ "apidiscussions", @@ -338,28 +338,28 @@ "Outputs.StreamArn" ] }, - "env": "main" + "env": "x" } } }, "storageactivity": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/storage/activity-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/storage/activity-cloudformation-template.json", "Parameters": { "tableName": "activity", "partitionKeyName": "id", "partitionKeyType": "S", "sortKeyName": "userId", "sortKeyType": "S", - "env": "main" + "env": "x" } } }, "storageavatars": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/storage/cloudformation-template.json", "Parameters": { "bucketName": "discus-avatars", "selectedGuestPermissions": "", @@ -385,21 +385,21 @@ "s3PermissionsAuthenticatedUploads": "s3:PutObject", "s3PermissionsGuestPublic": "DISALLOW", "s3PermissionsGuestUploads": "DISALLOW", - "env": "main" + "env": "x" } } }, "storagebookmarks": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/storage/bookmarks-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/storage/bookmarks-cloudformation-template.json", "Parameters": { "tableName": "bookmarks", "partitionKeyName": "userId", "partitionKeyType": "S", "sortKeyName": "postId", "sortKeyType": "S", - "env": "main" + "env": "x" } } }, @@ -607,4 +607,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/fetchuseractivity/fetchuseractivity-cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/fetchuseractivity/fetchuseractivity-cloudformation-template.json index e44e73d93aa..9eda75a0edf 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/fetchuseractivity/fetchuseractivity-cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/fetchuseractivity/fetchuseractivity-cloudformation-template.json @@ -1,6 +1,6 @@ { "AWSTemplateFormatVersion": "2010-09-09", - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "Parameters": { "CloudWatchRule": { "Type": "String", @@ -267,4 +267,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/recorduseractivity/recorduseractivity-cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/recorduseractivity/recorduseractivity-cloudformation-template.json index 34511d0c3c6..8f7ec565fb9 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/recorduseractivity/recorduseractivity-cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/recorduseractivity/recorduseractivity-cloudformation-template.json @@ -1,6 +1,6 @@ { "AWSTemplateFormatVersion": "2010-09-09", - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "Parameters": { "CloudWatchRule": { "Type": "String", @@ -452,4 +452,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json index 7d427d24e55..e03c7e56754 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json @@ -202,21 +202,21 @@ "apidiscussions": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", "Parameters": { "AppSyncApiName": "discussions", "DynamoDBBillingMode": "PAY_PER_REQUEST", "DynamoDBEnableServerSideEncryption": false, - "S3DeploymentBucket": "amplify-discussions-main-c39a5-deployment", + "S3DeploymentBucket": "amplify-discussions-x-x-deployment", "S3DeploymentRootKey": "amplify-appsync-files/db92bad357b2590353e82db2f2ec7d0fc9cfd30d", - "env": "main" + "env": "x" } } }, "authdiscussionsc578c16ec578c16e": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/auth/discussionsc578c16ec578c16e-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/auth/discussionsc578c16ec578c16e-cloudformation-template.json", "Parameters": { "identityPoolName": "discussionsc578c16e_identitypool_c578c16e", "allowUnauthenticatedIdentities": false, @@ -268,17 +268,17 @@ }, "breakCircularDependency": true, "dependsOn": "", - "env": "main" + "env": "x" } } }, "functionfetchuseractivity": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/function/fetchuseractivity-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/function/fetchuseractivity-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-discussions-main-c39a5-deployment", - "s3Key": "amplify-builds/fetchuseractivity-6e523036545438726f37-build.zip", + "deploymentBucketName": "amplify-discussions-x-x-deployment", + "s3Key": "amplify-builds/fetchuseractivity-574d43794579796f5042-build.zip", "storageactivityName": { "Fn::GetAtt": [ "storageactivity", @@ -297,17 +297,17 @@ "Outputs.StreamArn" ] }, - "env": "main" + "env": "x" } } }, "functionrecorduseractivity": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/function/recorduseractivity-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/function/recorduseractivity-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-discussions-main-c39a5-deployment", - "s3Key": "amplify-builds/recorduseractivity-433947686f7145754543-build.zip", + "deploymentBucketName": "amplify-discussions-x-x-deployment", + "s3Key": "amplify-builds/recorduseractivity-54696a587a7168467354-build.zip", "apidiscussionsGraphQLAPIIdOutput": { "Fn::GetAtt": [ "apidiscussions", @@ -338,28 +338,28 @@ "Outputs.StreamArn" ] }, - "env": "main" + "env": "x" } } }, "storageactivity": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/storage/activity-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/storage/activity-cloudformation-template.json", "Parameters": { "tableName": "activity", "partitionKeyName": "id", "partitionKeyType": "S", "sortKeyName": "userId", "sortKeyType": "S", - "env": "main" + "env": "x" } } }, "storageavatars": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/storage/cloudformation-template.json", "Parameters": { "bucketName": "discus-avatars", "selectedGuestPermissions": "", @@ -385,21 +385,21 @@ "s3PermissionsAuthenticatedUploads": "s3:PutObject", "s3PermissionsGuestPublic": "DISALLOW", "s3PermissionsGuestUploads": "DISALLOW", - "env": "main" + "env": "x" } } }, "storagebookmarks": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/storage/bookmarks-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/storage/bookmarks-cloudformation-template.json", "Parameters": { "tableName": "bookmarks", "partitionKeyName": "userId", "partitionKeyType": "S", "sortKeyName": "postId", "sortKeyType": "S", - "env": "main" + "env": "x" } } }, @@ -607,4 +607,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/storage/activity/build/activity-cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/storage/activity/build/activity-cloudformation-template.json index 17ea25a0a60..6f6fa444e90 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/storage/activity/build/activity-cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/storage/activity/build/activity-cloudformation-template.json @@ -1,5 +1,5 @@ { - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-DynamoDB\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-DynamoDB\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { "partitionKeyName": { @@ -161,4 +161,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/storage/avatars/build/cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/storage/avatars/build/cloudformation-template.json index 81494e78af7..78971e367f6 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/storage/avatars/build/cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/storage/avatars/build/cloudformation-template.json @@ -1,5 +1,5 @@ { - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-S3\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-S3\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { "env": { @@ -596,4 +596,4 @@ "Condition": "GuestReadAndList" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/storage/bookmarks/build/bookmarks-cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/storage/bookmarks/build/bookmarks-cloudformation-template.json index f19e532fe34..976119728ee 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/storage/bookmarks/build/bookmarks-cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/storage/bookmarks/build/bookmarks-cloudformation-template.json @@ -1,5 +1,5 @@ { - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-DynamoDB\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-DynamoDB\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { "partitionKeyName": { @@ -153,4 +153,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json index 49fe6deb7c4..5ff9b9b7457 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json @@ -137,4 +137,4 @@ "service": "DynamoDB" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fetchuseractivity/amplify.state b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fetchuseractivity/amplify.state index 045e649ff86..f4f664b5257 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fetchuseractivity/amplify.state +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fetchuseractivity/amplify.state @@ -6,4 +6,4 @@ "scripts": { "build": "npm install --no-bin-links --production" } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fetchuseractivity/custom-policies.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fetchuseractivity/custom-policies.json index 528c94f2f26..1f21c530082 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fetchuseractivity/custom-policies.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fetchuseractivity/custom-policies.json @@ -3,4 +3,4 @@ "Action": [], "Resource": [] } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fetchuseractivity/fetchuseractivity-cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fetchuseractivity/fetchuseractivity-cloudformation-template.json index e44e73d93aa..9eda75a0edf 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fetchuseractivity/fetchuseractivity-cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fetchuseractivity/fetchuseractivity-cloudformation-template.json @@ -1,6 +1,6 @@ { "AWSTemplateFormatVersion": "2010-09-09", - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "Parameters": { "CloudWatchRule": { "Type": "String", @@ -267,4 +267,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fetchuseractivity/function-parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fetchuseractivity/function-parameters.json index 851619fc363..df194f016d0 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fetchuseractivity/function-parameters.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fetchuseractivity/function-parameters.json @@ -7,4 +7,4 @@ } }, "lambdaLayers": [] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fetchuseractivity/parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fetchuseractivity/parameters.json index 9e26dfeeb6e..0967ef424bc 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fetchuseractivity/parameters.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fetchuseractivity/parameters.json @@ -1 +1 @@ -{} \ No newline at end of file +{} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/recorduseractivity/amplify.state b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/recorduseractivity/amplify.state index 045e649ff86..f4f664b5257 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/recorduseractivity/amplify.state +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/recorduseractivity/amplify.state @@ -6,4 +6,4 @@ "scripts": { "build": "npm install --no-bin-links --production" } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/recorduseractivity/custom-policies.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/recorduseractivity/custom-policies.json index 528c94f2f26..1f21c530082 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/recorduseractivity/custom-policies.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/recorduseractivity/custom-policies.json @@ -3,4 +3,4 @@ "Action": [], "Resource": [] } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/recorduseractivity/function-parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/recorduseractivity/function-parameters.json index 0b0aacc4b95..fe409267644 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/recorduseractivity/function-parameters.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/recorduseractivity/function-parameters.json @@ -10,4 +10,4 @@ } }, "lambdaLayers": [] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/recorduseractivity/parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/recorduseractivity/parameters.json index 9e26dfeeb6e..0967ef424bc 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/recorduseractivity/parameters.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/recorduseractivity/parameters.json @@ -1 +1 @@ -{} \ No newline at end of file +{} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/recorduseractivity/recorduseractivity-cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/recorduseractivity/recorduseractivity-cloudformation-template.json index 34511d0c3c6..8f7ec565fb9 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/recorduseractivity/recorduseractivity-cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/function/recorduseractivity/recorduseractivity-cloudformation-template.json @@ -1,6 +1,6 @@ { "AWSTemplateFormatVersion": "2010-09-09", - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "Parameters": { "CloudWatchRule": { "Type": "String", @@ -452,4 +452,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/activity/build/activity-cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/activity/build/activity-cloudformation-template.json index 17ea25a0a60..6f6fa444e90 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/activity/build/activity-cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/activity/build/activity-cloudformation-template.json @@ -1,5 +1,5 @@ { - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-DynamoDB\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-DynamoDB\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { "partitionKeyName": { @@ -161,4 +161,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/activity/build/parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/activity/build/parameters.json index 92d51a3aa71..24c87aa05ff 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/activity/build/parameters.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/activity/build/parameters.json @@ -4,4 +4,4 @@ "partitionKeyType": "S", "sortKeyName": "userId", "sortKeyType": "S" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/activity/cli-inputs.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/activity/cli-inputs.json index 13405570dc7..3a1221a131a 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/activity/cli-inputs.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/activity/cli-inputs.json @@ -23,4 +23,4 @@ } ], "triggerFunctions": [] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/avatars/build/cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/avatars/build/cloudformation-template.json index b7a3303032f..51a784d28a0 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/avatars/build/cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/avatars/build/cloudformation-template.json @@ -1,5 +1,5 @@ { - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-S3\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-S3\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { "env": { @@ -587,4 +587,4 @@ "Condition": "GuestReadAndList" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/avatars/build/parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/avatars/build/parameters.json index ebe758a7829..2bc7cbdcece 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/avatars/build/parameters.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/avatars/build/parameters.json @@ -28,4 +28,4 @@ "s3PermissionsAuthenticatedUploads": "s3:PutObject", "s3PermissionsGuestPublic": "DISALLOW", "s3PermissionsGuestUploads": "DISALLOW" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/avatars/cli-inputs.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/avatars/cli-inputs.json index 9126ffc1e88..7bb291694a2 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/avatars/cli-inputs.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/avatars/cli-inputs.json @@ -11,4 +11,4 @@ ], "triggerFunction": "NONE", "groupAccess": {} -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/bookmarks/build/bookmarks-cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/bookmarks/build/bookmarks-cloudformation-template.json index f19e532fe34..976119728ee 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/bookmarks/build/bookmarks-cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/bookmarks/build/bookmarks-cloudformation-template.json @@ -1,5 +1,5 @@ { - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-DynamoDB\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-DynamoDB\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { "partitionKeyName": { @@ -153,4 +153,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/bookmarks/build/parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/bookmarks/build/parameters.json index ec5a22f98a9..b15111598db 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/bookmarks/build/parameters.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/bookmarks/build/parameters.json @@ -4,4 +4,4 @@ "partitionKeyType": "S", "sortKeyName": "postId", "sortKeyType": "S" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/tags.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/tags.json index b9321d71b83..71f6abe11a6 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/tags.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/#current-cloud-backend/tags.json @@ -7,4 +7,4 @@ "Key": "user:Application", "Value": "{project-name}" } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/.config/project-config.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/.config/project-config.json index ef9abfc7017..cf98fdbe1b8 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/.config/project-config.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/.config/project-config.json @@ -8,11 +8,11 @@ "config": { "SourceDir": "src", "DistributionDir": "dist", - "BuildCommand": "npm run-script build", + "BuildCommand": "npm run build", "StartCommand": "npm run-script start" } }, "providers": [ "awscloudformation" ] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend-config.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend-config.json index 49fe6deb7c4..5ff9b9b7457 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend-config.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend-config.json @@ -137,4 +137,4 @@ "service": "DynamoDB" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/amplify-meta.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/amplify-meta.json index 34b789e4330..df073cbd6e4 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/amplify-meta.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/amplify-meta.json @@ -1,14 +1,14 @@ { "providers": { "awscloudformation": { - "AuthRoleName": "amplify-discussions-main-c39a5-authRole", - "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-discussions-main-c39a5-unauthRole", - "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-discussions-main-c39a5-authRole", + "AuthRoleName": "amplify-discussions-x-x-authRole", + "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-discussions-x-x-unauthRole", + "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-discussions-x-x-authRole", "Region": "us-east-1", - "DeploymentBucketName": "amplify-discussions-main-c39a5-deployment", - "UnauthRoleName": "amplify-discussions-main-c39a5-unauthRole", - "StackName": "amplify-discussions-main-c39a5", - "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-discussions-main-c39a5/0e9a6f60-24a2-11f1-8462-0afffd2fb801", + "DeploymentBucketName": "amplify-discussions-x-x-deployment", + "UnauthRoleName": "amplify-discussions-x-x-unauthRole", + "StackName": "amplify-discussions-x-x", + "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-discussions-x-x/573e2000-387e-11f1-8fe1-0e59b95a9da1", "AmplifyAppId": "discussions" } }, @@ -25,17 +25,17 @@ "authenticationType": "API_KEY" } }, - "GraphQLAPIIdOutput": "u3jn2qbupzbyhc3h53673wdvim", - "GraphQLAPIEndpointOutput": "https://jsm5ex363jcy5fm2reylyox4te.appsync-api.us-east-1.amazonaws.com/graphql", + "GraphQLAPIIdOutput": "xw3yrfq7mngltcua43nucy7fg4", + "GraphQLAPIEndpointOutput": "https://ajag2p5xujbc3cfepbjri3sjam.appsync-api.us-east-1.amazonaws.com/graphql", "GraphQLAPIKeyOutput": "da2-fakeapikey00000000000000" }, "providerPlugin": "awscloudformation", "service": "AppSync", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", "logicalId": "apidiscussions" }, - "lastPushTimeStamp": "2026-03-20T21:24:14.059Z", + "lastPushTimeStamp": "2026-04-15T03:57:14.522Z", "lastPushDirHash": "f67ZKOJM4WJlPWXfx5EsRQOT4UA=" } }, @@ -67,21 +67,21 @@ "providerPlugin": "awscloudformation", "service": "Cognito", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/auth/discussionsc578c16ec578c16e-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/auth/discussionsc578c16ec578c16e-cloudformation-template.json", "logicalId": "authdiscussionsc578c16ec578c16e" }, - "lastPushTimeStamp": "2026-03-20T21:24:14.059Z", + "lastPushTimeStamp": "2026-04-15T03:57:14.522Z", "output": { - "CreatedSNSRole": "arn:aws:iam::123456789012:role/snsc578c16ec39a5-main", - "UserPoolId": "us-east-1_vv2HFjwRK", - "AppClientIDWeb": "7nhjrv5jepqc7kacqiknlj0siu", - "AppClientID": "7tbnnc27p4edfrp7m6bqqkh0gq", - "IdentityPoolId": "us-east-1:d588cc58-4459-4b1b-ac91-307079a54464", - "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_vv2HFjwRK", - "IdentityPoolName": "discussionsc578c16e_identitypool_c578c16e__main", + "CreatedSNSRole": "arn:aws:iam::123456789012:role/snsc578c16ex-x", + "UserPoolId": "us-east-1_lG0pUBlcH", + "AppClientIDWeb": "2u018c10958rc16k88nfl6er4m", + "AppClientID": "145r5chjngcvdjv7uk1s3826ol", + "IdentityPoolId": "us-east-1:c19a7d32-3b9f-4b48-829c-46082712131c", + "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_lG0pUBlcH", + "IdentityPoolName": "discussionsc578c16e_identitypool_c578c16e__x", "UserPoolName": "discussionsc578c16e_userpool_c578c16e" }, - "lastPushDirHash": "mPKsrH+CL3NCuCtTWB9nkOHB7ls=" + "lastPushDirHash": "ZOHX6clQle9gpfoH7kIyX3h+bX4=" } }, "function": { @@ -100,27 +100,27 @@ ], "providerPlugin": "awscloudformation", "service": "Lambda", - "lastBuildTimeStamp": "2026-03-20T21:19:47.115Z", + "lastBuildTimeStamp": "2026-04-15T03:52:00.129Z", "lastBuildType": "PROD", - "lastPackageTimeStamp": "2026-03-20T21:19:47.147Z", - "distZipFilename": "fetchuseractivity-6e523036545438726f37-build.zip", + "lastPackageTimeStamp": "2026-04-15T03:52:00.178Z", + "distZipFilename": "fetchuseractivity-574d43794579796f5042-build.zip", "s3Bucket": { - "deploymentBucketName": "amplify-discussions-main-c39a5-deployment", - "s3Key": "amplify-builds/fetchuseractivity-6e523036545438726f37-build.zip" + "deploymentBucketName": "amplify-discussions-x-x-deployment", + "s3Key": "amplify-builds/fetchuseractivity-574d43794579796f5042-build.zip" }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/function/fetchuseractivity-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/function/fetchuseractivity-cloudformation-template.json", "logicalId": "functionfetchuseractivity" }, - "lastPushTimeStamp": "2026-03-20T21:24:14.059Z", + "lastPushTimeStamp": "2026-04-15T03:57:14.522Z", "output": { - "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/discussionsLambdaRole44bd86bc-main", + "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/discussionsLambdaRole44bd86bc-x", "Region": "us-east-1", - "Arn": "arn:aws:lambda:us-east-1:123456789012:function:fetchuseractivity-main", - "Name": "fetchuseractivity-main", - "LambdaExecutionRole": "discussionsLambdaRole44bd86bc-main" + "Arn": "arn:aws:lambda:us-east-1:123456789012:function:fetchuseractivity-x", + "Name": "fetchuseractivity-x", + "LambdaExecutionRole": "discussionsLambdaRole44bd86bc-x" }, - "lastPushDirHash": "R64T5GvXPz84ttStgLRDEvqSeOg=" + "lastPushDirHash": "5+A65lZSaWqxIfZTFsLHthcXaos=" }, "recorduseractivity": { "build": true, @@ -145,27 +145,27 @@ ], "providerPlugin": "awscloudformation", "service": "Lambda", - "lastBuildTimeStamp": "2026-03-20T21:19:47.546Z", + "lastBuildTimeStamp": "2026-04-15T03:52:00.614Z", "lastBuildType": "PROD", - "lastPackageTimeStamp": "2026-03-20T21:19:47.560Z", - "distZipFilename": "recorduseractivity-433947686f7145754543-build.zip", + "lastPackageTimeStamp": "2026-04-15T03:52:00.624Z", + "distZipFilename": "recorduseractivity-54696a587a7168467354-build.zip", "s3Bucket": { - "deploymentBucketName": "amplify-discussions-main-c39a5-deployment", - "s3Key": "amplify-builds/recorduseractivity-433947686f7145754543-build.zip" + "deploymentBucketName": "amplify-discussions-x-x-deployment", + "s3Key": "amplify-builds/recorduseractivity-54696a587a7168467354-build.zip" }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/function/recorduseractivity-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/function/recorduseractivity-cloudformation-template.json", "logicalId": "functionrecorduseractivity" }, - "lastPushTimeStamp": "2026-03-20T21:24:14.059Z", + "lastPushTimeStamp": "2026-04-15T03:57:14.522Z", "output": { - "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/discussionsLambdaRole62a425ae-main", + "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/discussionsLambdaRole62a425ae-x", "Region": "us-east-1", - "Arn": "arn:aws:lambda:us-east-1:123456789012:function:recorduseractivity-main", - "Name": "recorduseractivity-main", - "LambdaExecutionRole": "discussionsLambdaRole62a425ae-main" + "Arn": "arn:aws:lambda:us-east-1:123456789012:function:recorduseractivity-x", + "Name": "recorduseractivity-x", + "LambdaExecutionRole": "discussionsLambdaRole62a425ae-x" }, - "lastPushDirHash": "wpepR6GRBy0XTCEXNmYdMZdmEvM=" + "lastPushDirHash": "fUpHTVROFUoS3EYhlmfZgBLR2mI=" } }, "storage": { @@ -173,19 +173,19 @@ "providerPlugin": "awscloudformation", "service": "DynamoDB", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/storage/activity-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/storage/activity-cloudformation-template.json", "logicalId": "storageactivity" }, - "lastPushTimeStamp": "2026-03-20T21:24:14.059Z", + "lastPushTimeStamp": "2026-04-15T03:57:14.522Z", "output": { "PartitionKeyName": "id", "SortKeyName": "userId", "SortKeyType": "S", "Region": "us-east-1", - "Arn": "arn:aws:dynamodb:us-east-1:123456789012:table/activity-main", - "StreamArn": "arn:aws:dynamodb:us-east-1:123456789012:table/activity-main/stream/2026-03-20T21:19:57.516", + "Arn": "arn:aws:dynamodb:us-east-1:123456789012:table/activity-x", + "StreamArn": "arn:aws:dynamodb:us-east-1:123456789012:table/activity-x/stream/2026-04-15T03:52:10.997", "PartitionKeyType": "S", - "Name": "activity-main" + "Name": "activity-x" }, "lastPushDirHash": "LKrx9n9rI5MFeuTLmyTA2Bho0zg=" }, @@ -193,13 +193,13 @@ "dependsOn": [], "providerPlugin": "awscloudformation", "service": "S3", - "lastPushTimeStamp": "2026-03-20T21:24:14.059Z", + "lastPushTimeStamp": "2026-04-15T03:57:14.522Z", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/storage/cloudformation-template.json", "logicalId": "storageavatars" }, "output": { - "BucketName": "discus-avatarsc39a5-main", + "BucketName": "discus-avatarsx-x", "Region": "us-east-1" }, "lastPushDirHash": "rNwwRZG31h4CJSNavssQfx7X9sQ=" @@ -208,21 +208,21 @@ "providerPlugin": "awscloudformation", "service": "DynamoDB", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/storage/bookmarks-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/storage/bookmarks-cloudformation-template.json", "logicalId": "storagebookmarks" }, - "lastPushTimeStamp": "2026-03-20T21:24:14.059Z", + "lastPushTimeStamp": "2026-04-15T03:57:14.522Z", "output": { "PartitionKeyName": "userId", "SortKeyName": "postId", "SortKeyType": "S", "Region": "us-east-1", - "Arn": "arn:aws:dynamodb:us-east-1:123456789012:table/bookmarks-main", - "StreamArn": "arn:aws:dynamodb:us-east-1:123456789012:table/bookmarks-main/stream/2026-03-20T21:19:57.495", + "Arn": "arn:aws:dynamodb:us-east-1:123456789012:table/bookmarks-x", + "StreamArn": "arn:aws:dynamodb:us-east-1:123456789012:table/bookmarks-x/stream/2026-04-15T03:52:11.077", "PartitionKeyType": "S", - "Name": "bookmarks-main" + "Name": "bookmarks-x" }, "lastPushDirHash": "UcosRNORY7WR8bi+QNNLl+eX+Eo=" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/cloudformation-template.json index 647ae86b7e0..e2b426197a4 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/cloudformation-template.json @@ -111,7 +111,7 @@ "ApiId" ] }, - "Expires": 1774646388 + "Expires": 1776829921 } }, "GraphQLAPINONEDS95A13CF0": { @@ -641,7 +641,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -738,7 +738,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -835,7 +835,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -932,7 +932,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -1062,5 +1062,5 @@ } } }, - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/parameters.json index 7219a2a69a5..04a33cdbf76 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/parameters.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/parameters.json @@ -2,6 +2,6 @@ "AppSyncApiName": "discussions", "DynamoDBBillingMode": "PAY_PER_REQUEST", "DynamoDBEnableServerSideEncryption": false, - "S3DeploymentBucket": "amplify-discussions-main-c39a5-deployment", + "S3DeploymentBucket": "amplify-discussions-x-x-deployment", "S3DeploymentRootKey": "amplify-appsync-files/db92bad357b2590353e82db2f2ec7d0fc9cfd30d" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Activity.activityType.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Activity.activityType.req.vtl index d2216c9c2d9..ef5b992a501 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Activity.activityType.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Activity.activityType.req.vtl @@ -7,4 +7,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Activity.activityType.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Activity.activityType.res.vtl index e93a40e1a94..658f745cb8f 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Activity.activityType.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Activity.activityType.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["activityType"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Activity.id.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Activity.id.req.vtl index d2216c9c2d9..ef5b992a501 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Activity.id.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Activity.id.req.vtl @@ -7,4 +7,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Activity.id.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Activity.id.res.vtl index 2626100ea17..b8b7313b917 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Activity.id.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Activity.id.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["id"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Activity.timestamp.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Activity.timestamp.req.vtl index d2216c9c2d9..ef5b992a501 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Activity.timestamp.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Activity.timestamp.req.vtl @@ -7,4 +7,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Activity.timestamp.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Activity.timestamp.res.vtl index 5123c52c5aa..76a126983d6 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Activity.timestamp.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Activity.timestamp.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["timestamp"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Activity.userId.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Activity.userId.req.vtl index d2216c9c2d9..ef5b992a501 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Activity.userId.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Activity.userId.req.vtl @@ -7,4 +7,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Activity.userId.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Activity.userId.res.vtl index 19d4f087e47..f8874e81f49 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Activity.userId.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Activity.userId.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["userId"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Comment.post.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Comment.post.auth.1.req.vtl index 8856d63c457..581af8fdd7c 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Comment.post.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Comment.post.auth.1.req.vtl @@ -8,4 +8,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Comment.post.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Comment.post.req.vtl index 4cf4ff6d2ab..41bcb61242c 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Comment.post.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Comment.post.req.vtl @@ -22,4 +22,4 @@ $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) #end $util.toJson($GetRequest) -#end \ No newline at end of file +#end diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Comment.post.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Comment.post.res.vtl index 92c535c73df..61b51759e34 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Comment.post.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Comment.post.res.vtl @@ -14,4 +14,4 @@ $util.unauthorized() #end $util.toJson(null) #end -#end \ No newline at end of file +#end diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/InvokeFetchuseractivityLambdaDataSource.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/InvokeFetchuseractivityLambdaDataSource.req.vtl index c6a8becd5c0..847e814135a 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/InvokeFetchuseractivityLambdaDataSource.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/InvokeFetchuseractivityLambdaDataSource.req.vtl @@ -12,4 +12,4 @@ "prev": $util.toJson($ctx.prev) } } -## [End] Invoke AWS Lambda data source: FetchuseractivityLambdaDataSource. ** \ No newline at end of file +## [End] Invoke AWS Lambda data source: FetchuseractivityLambdaDataSource. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/InvokeFetchuseractivityLambdaDataSource.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/InvokeFetchuseractivityLambdaDataSource.res.vtl index e6b83d8b6ab..1316903313e 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/InvokeFetchuseractivityLambdaDataSource.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/InvokeFetchuseractivityLambdaDataSource.res.vtl @@ -3,4 +3,4 @@ $util.error($ctx.error.message, $ctx.error.type) #end $util.toJson($ctx.result) -## [End] Handle error or return result. ** \ No newline at end of file +## [End] Handle error or return result. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createComment.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createComment.auth.1.req.vtl index f166a557348..011b9ec27eb 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createComment.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createComment.auth.1.req.vtl @@ -16,4 +16,4 @@ $util.unauthorized() #end #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createComment.init.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createComment.init.1.req.vtl index df6b4cbbc5c..407b5845fc2 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createComment.init.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createComment.init.1.req.vtl @@ -8,4 +8,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createComment.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createComment.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createComment.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createComment.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createComment.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createComment.req.vtl index 2549a552a00..63151b0f98d 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createComment.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createComment.req.vtl @@ -63,4 +63,4 @@ $util.qr($mergedValues.put("__typename", "Comment")) $util.qr($PutObject.put("key", $Key)) #end $util.toJson($PutObject) -## [End] Create Request template. ** \ No newline at end of file +## [End] Create Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createComment.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createComment.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createComment.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createComment.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createPost.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createPost.auth.1.req.vtl index f166a557348..011b9ec27eb 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createPost.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createPost.auth.1.req.vtl @@ -16,4 +16,4 @@ $util.unauthorized() #end #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createPost.init.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createPost.init.1.req.vtl index df6b4cbbc5c..407b5845fc2 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createPost.init.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createPost.init.1.req.vtl @@ -8,4 +8,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createPost.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createPost.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createPost.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createPost.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createPost.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createPost.req.vtl index 78d5b6debcc..5fe5f436d9b 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createPost.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createPost.req.vtl @@ -63,4 +63,4 @@ $util.qr($mergedValues.put("__typename", "Post")) $util.qr($PutObject.put("key", $Key)) #end $util.toJson($PutObject) -## [End] Create Request template. ** \ No newline at end of file +## [End] Create Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createPost.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createPost.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createPost.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createPost.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createTopic.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createTopic.auth.1.req.vtl index f166a557348..011b9ec27eb 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createTopic.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createTopic.auth.1.req.vtl @@ -16,4 +16,4 @@ $util.unauthorized() #end #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createTopic.init.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createTopic.init.1.req.vtl index df6b4cbbc5c..407b5845fc2 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createTopic.init.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createTopic.init.1.req.vtl @@ -8,4 +8,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createTopic.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createTopic.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createTopic.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createTopic.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createTopic.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createTopic.req.vtl index ee935319ece..4964cb27d6d 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createTopic.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createTopic.req.vtl @@ -63,4 +63,4 @@ $util.qr($mergedValues.put("__typename", "Topic")) $util.qr($PutObject.put("key", $Key)) #end $util.toJson($PutObject) -## [End] Create Request template. ** \ No newline at end of file +## [End] Create Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createTopic.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createTopic.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createTopic.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.createTopic.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deleteComment.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deleteComment.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deleteComment.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deleteComment.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deleteComment.auth.1.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deleteComment.auth.1.res.vtl index 5ebf1d5eb7f..74276964bfa 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deleteComment.auth.1.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deleteComment.auth.1.res.vtl @@ -8,4 +8,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deleteComment.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deleteComment.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deleteComment.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deleteComment.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deleteComment.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deleteComment.req.vtl index ace459bd501..d2cb40cd15d 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deleteComment.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deleteComment.req.vtl @@ -55,4 +55,4 @@ $util.qr($DeleteRequest.put("key", $Key)) $util.qr($DeleteRequest.put("condition", $Conditions)) #end $util.toJson($DeleteRequest) -## [End] Delete Request template. ** \ No newline at end of file +## [End] Delete Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deleteComment.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deleteComment.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deleteComment.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deleteComment.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deletePost.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deletePost.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deletePost.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deletePost.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deletePost.auth.1.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deletePost.auth.1.res.vtl index 5ebf1d5eb7f..74276964bfa 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deletePost.auth.1.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deletePost.auth.1.res.vtl @@ -8,4 +8,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deletePost.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deletePost.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deletePost.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deletePost.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deletePost.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deletePost.req.vtl index ace459bd501..d2cb40cd15d 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deletePost.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deletePost.req.vtl @@ -55,4 +55,4 @@ $util.qr($DeleteRequest.put("key", $Key)) $util.qr($DeleteRequest.put("condition", $Conditions)) #end $util.toJson($DeleteRequest) -## [End] Delete Request template. ** \ No newline at end of file +## [End] Delete Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deletePost.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deletePost.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deletePost.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deletePost.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deleteTopic.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deleteTopic.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deleteTopic.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deleteTopic.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deleteTopic.auth.1.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deleteTopic.auth.1.res.vtl index 5ebf1d5eb7f..74276964bfa 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deleteTopic.auth.1.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deleteTopic.auth.1.res.vtl @@ -8,4 +8,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deleteTopic.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deleteTopic.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deleteTopic.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deleteTopic.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deleteTopic.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deleteTopic.req.vtl index ace459bd501..d2cb40cd15d 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deleteTopic.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deleteTopic.req.vtl @@ -55,4 +55,4 @@ $util.qr($DeleteRequest.put("key", $Key)) $util.qr($DeleteRequest.put("condition", $Conditions)) #end $util.toJson($DeleteRequest) -## [End] Delete Request template. ** \ No newline at end of file +## [End] Delete Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deleteTopic.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deleteTopic.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deleteTopic.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.deleteTopic.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateComment.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateComment.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateComment.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateComment.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateComment.auth.1.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateComment.auth.1.res.vtl index 3e66c259bf2..11fecbb2040 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateComment.auth.1.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateComment.auth.1.res.vtl @@ -28,4 +28,4 @@ $util.unauthorized() $util.error("Unauthorized on ${deniedFields.keySet()}", "Unauthorized") #end $util.toJson({}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateComment.init.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateComment.init.1.req.vtl index ab5766fb051..dde2512aea8 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateComment.init.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateComment.init.1.req.vtl @@ -6,4 +6,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateComment.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateComment.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateComment.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateComment.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateComment.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateComment.req.vtl index a1bd67d21b6..648b67d7c57 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateComment.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateComment.req.vtl @@ -127,4 +127,4 @@ $util.qr($update.put("expression", "$expression")) $util.qr($UpdateItem.put("condition", $Conditions)) #end $util.toJson($UpdateItem) -## [End] Mutation Update resolver. ** \ No newline at end of file +## [End] Mutation Update resolver. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateComment.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateComment.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateComment.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateComment.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updatePost.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updatePost.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updatePost.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updatePost.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updatePost.auth.1.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updatePost.auth.1.res.vtl index 3e66c259bf2..11fecbb2040 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updatePost.auth.1.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updatePost.auth.1.res.vtl @@ -28,4 +28,4 @@ $util.unauthorized() $util.error("Unauthorized on ${deniedFields.keySet()}", "Unauthorized") #end $util.toJson({}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updatePost.init.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updatePost.init.1.req.vtl index ab5766fb051..dde2512aea8 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updatePost.init.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updatePost.init.1.req.vtl @@ -6,4 +6,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updatePost.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updatePost.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updatePost.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updatePost.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updatePost.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updatePost.req.vtl index a1bd67d21b6..648b67d7c57 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updatePost.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updatePost.req.vtl @@ -127,4 +127,4 @@ $util.qr($update.put("expression", "$expression")) $util.qr($UpdateItem.put("condition", $Conditions)) #end $util.toJson($UpdateItem) -## [End] Mutation Update resolver. ** \ No newline at end of file +## [End] Mutation Update resolver. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updatePost.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updatePost.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updatePost.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updatePost.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateTopic.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateTopic.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateTopic.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateTopic.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateTopic.auth.1.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateTopic.auth.1.res.vtl index 3e66c259bf2..11fecbb2040 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateTopic.auth.1.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateTopic.auth.1.res.vtl @@ -28,4 +28,4 @@ $util.unauthorized() $util.error("Unauthorized on ${deniedFields.keySet()}", "Unauthorized") #end $util.toJson({}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateTopic.init.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateTopic.init.1.req.vtl index ab5766fb051..dde2512aea8 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateTopic.init.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateTopic.init.1.req.vtl @@ -6,4 +6,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateTopic.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateTopic.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateTopic.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateTopic.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateTopic.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateTopic.req.vtl index a1bd67d21b6..648b67d7c57 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateTopic.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateTopic.req.vtl @@ -127,4 +127,4 @@ $util.qr($update.put("expression", "$expression")) $util.qr($UpdateItem.put("condition", $Conditions)) #end $util.toJson($UpdateItem) -## [End] Mutation Update resolver. ** \ No newline at end of file +## [End] Mutation Update resolver. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateTopic.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateTopic.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateTopic.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Mutation.updateTopic.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Post.comments.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Post.comments.auth.1.req.vtl index 8856d63c457..581af8fdd7c 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Post.comments.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Post.comments.auth.1.req.vtl @@ -8,4 +8,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Post.comments.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Post.comments.req.vtl index 0a178e1d583..75b99e607b2 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Post.comments.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Post.comments.req.vtl @@ -69,4 +69,4 @@ null #end, "index": "gsi-Post.comments" } -#end \ No newline at end of file +#end diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Post.comments.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Post.comments.res.vtl index 922c4ce53d0..ae420dbf03f 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Post.comments.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Post.comments.res.vtl @@ -10,4 +10,4 @@ $util.error($ctx.error.message, $ctx.error.type) #end #end $util.toJson($result) -#end \ No newline at end of file +#end diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Post.topic.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Post.topic.auth.1.req.vtl index 8856d63c457..581af8fdd7c 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Post.topic.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Post.topic.auth.1.req.vtl @@ -8,4 +8,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Post.topic.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Post.topic.req.vtl index db8d4c5f93e..efc65f40ba4 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Post.topic.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Post.topic.req.vtl @@ -22,4 +22,4 @@ $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) #end $util.toJson($GetRequest) -#end \ No newline at end of file +#end diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Post.topic.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Post.topic.res.vtl index 92c535c73df..61b51759e34 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Post.topic.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Post.topic.res.vtl @@ -14,4 +14,4 @@ $util.unauthorized() #end $util.toJson(null) #end -#end \ No newline at end of file +#end diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.fetchUserActivity.auth.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.fetchUserActivity.auth.req.vtl index d2216c9c2d9..ef5b992a501 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.fetchUserActivity.auth.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.fetchUserActivity.auth.req.vtl @@ -7,4 +7,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.fetchUserActivity.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.fetchUserActivity.res.vtl index 634741579ce..c37b82e4a30 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.fetchUserActivity.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.fetchUserActivity.res.vtl @@ -1 +1 @@ -$util.toJson($ctx.prev.result) \ No newline at end of file +$util.toJson($ctx.prev.result) diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getComment.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getComment.auth.1.req.vtl index 6662446148c..90babdf9e82 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getComment.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getComment.auth.1.req.vtl @@ -9,4 +9,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getComment.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getComment.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getComment.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getComment.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getComment.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getComment.req.vtl index a8d7811a021..fd7fbfc8013 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getComment.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getComment.req.vtl @@ -31,4 +31,4 @@ $util.qr($GetRequest.put("query", $query)) $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) #end $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getComment.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getComment.res.vtl index e9ef1436bdd..92e05f99816 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getComment.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getComment.res.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson(null) #end -## [End] Get Response template. ** \ No newline at end of file +## [End] Get Response template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getPost.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getPost.auth.1.req.vtl index 6662446148c..90babdf9e82 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getPost.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getPost.auth.1.req.vtl @@ -9,4 +9,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getPost.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getPost.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getPost.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getPost.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getPost.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getPost.req.vtl index a8d7811a021..fd7fbfc8013 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getPost.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getPost.req.vtl @@ -31,4 +31,4 @@ $util.qr($GetRequest.put("query", $query)) $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) #end $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getPost.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getPost.res.vtl index e9ef1436bdd..92e05f99816 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getPost.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getPost.res.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson(null) #end -## [End] Get Response template. ** \ No newline at end of file +## [End] Get Response template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getTopic.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getTopic.auth.1.req.vtl index 6662446148c..90babdf9e82 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getTopic.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getTopic.auth.1.req.vtl @@ -9,4 +9,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getTopic.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getTopic.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getTopic.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getTopic.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getTopic.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getTopic.req.vtl index a8d7811a021..fd7fbfc8013 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getTopic.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getTopic.req.vtl @@ -31,4 +31,4 @@ $util.qr($GetRequest.put("query", $query)) $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) #end $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getTopic.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getTopic.res.vtl index e9ef1436bdd..92e05f99816 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getTopic.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.getTopic.res.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson(null) #end -## [End] Get Response template. ** \ No newline at end of file +## [End] Get Response template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listComments.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listComments.auth.1.req.vtl index 6662446148c..90babdf9e82 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listComments.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listComments.auth.1.req.vtl @@ -9,4 +9,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listComments.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listComments.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listComments.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listComments.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listComments.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listComments.req.vtl index 014213710e8..ef976126825 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listComments.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listComments.req.vtl @@ -47,4 +47,4 @@ #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) #end $util.toJson($ListRequest) -## [End] List Request. ** \ No newline at end of file +## [End] List Request. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listComments.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listComments.res.vtl index ee8b6670cbc..aab9983954e 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listComments.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listComments.res.vtl @@ -4,4 +4,4 @@ #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listPosts.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listPosts.auth.1.req.vtl index 6662446148c..90babdf9e82 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listPosts.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listPosts.auth.1.req.vtl @@ -9,4 +9,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listPosts.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listPosts.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listPosts.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listPosts.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listPosts.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listPosts.req.vtl index 014213710e8..ef976126825 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listPosts.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listPosts.req.vtl @@ -47,4 +47,4 @@ #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) #end $util.toJson($ListRequest) -## [End] List Request. ** \ No newline at end of file +## [End] List Request. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listPosts.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listPosts.res.vtl index ee8b6670cbc..aab9983954e 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listPosts.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listPosts.res.vtl @@ -4,4 +4,4 @@ #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listTopics.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listTopics.auth.1.req.vtl index 6662446148c..90babdf9e82 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listTopics.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listTopics.auth.1.req.vtl @@ -9,4 +9,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listTopics.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listTopics.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listTopics.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listTopics.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listTopics.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listTopics.req.vtl index 014213710e8..ef976126825 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listTopics.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listTopics.req.vtl @@ -47,4 +47,4 @@ #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) #end $util.toJson($ListRequest) -## [End] List Request. ** \ No newline at end of file +## [End] List Request. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listTopics.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listTopics.res.vtl index ee8b6670cbc..aab9983954e 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listTopics.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Query.listTopics.res.vtl @@ -4,4 +4,4 @@ #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreateComment.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreateComment.auth.1.req.vtl index 5ebf1d5eb7f..74276964bfa 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreateComment.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreateComment.auth.1.req.vtl @@ -8,4 +8,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreateComment.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreateComment.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreateComment.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreateComment.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreateComment.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreateComment.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreateComment.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreateComment.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreateComment.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreateComment.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreateComment.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreateComment.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreatePost.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreatePost.auth.1.req.vtl index 5ebf1d5eb7f..74276964bfa 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreatePost.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreatePost.auth.1.req.vtl @@ -8,4 +8,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreatePost.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreatePost.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreatePost.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreatePost.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreatePost.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreatePost.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreatePost.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreatePost.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreatePost.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreatePost.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreatePost.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreatePost.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreateTopic.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreateTopic.auth.1.req.vtl index 5ebf1d5eb7f..74276964bfa 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreateTopic.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreateTopic.auth.1.req.vtl @@ -8,4 +8,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreateTopic.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreateTopic.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreateTopic.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreateTopic.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreateTopic.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreateTopic.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreateTopic.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreateTopic.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreateTopic.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreateTopic.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreateTopic.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onCreateTopic.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeleteComment.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeleteComment.auth.1.req.vtl index 5ebf1d5eb7f..74276964bfa 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeleteComment.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeleteComment.auth.1.req.vtl @@ -8,4 +8,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeleteComment.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeleteComment.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeleteComment.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeleteComment.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeleteComment.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeleteComment.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeleteComment.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeleteComment.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeleteComment.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeleteComment.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeleteComment.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeleteComment.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeletePost.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeletePost.auth.1.req.vtl index 5ebf1d5eb7f..74276964bfa 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeletePost.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeletePost.auth.1.req.vtl @@ -8,4 +8,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeletePost.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeletePost.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeletePost.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeletePost.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeletePost.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeletePost.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeletePost.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeletePost.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeletePost.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeletePost.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeletePost.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeletePost.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeleteTopic.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeleteTopic.auth.1.req.vtl index 5ebf1d5eb7f..74276964bfa 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeleteTopic.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeleteTopic.auth.1.req.vtl @@ -8,4 +8,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeleteTopic.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeleteTopic.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeleteTopic.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeleteTopic.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeleteTopic.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeleteTopic.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeleteTopic.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeleteTopic.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeleteTopic.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeleteTopic.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeleteTopic.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onDeleteTopic.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdateComment.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdateComment.auth.1.req.vtl index 5ebf1d5eb7f..74276964bfa 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdateComment.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdateComment.auth.1.req.vtl @@ -8,4 +8,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdateComment.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdateComment.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdateComment.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdateComment.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdateComment.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdateComment.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdateComment.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdateComment.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdateComment.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdateComment.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdateComment.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdateComment.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdatePost.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdatePost.auth.1.req.vtl index 5ebf1d5eb7f..74276964bfa 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdatePost.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdatePost.auth.1.req.vtl @@ -8,4 +8,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdatePost.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdatePost.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdatePost.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdatePost.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdatePost.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdatePost.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdatePost.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdatePost.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdatePost.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdatePost.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdatePost.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdatePost.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdateTopic.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdateTopic.auth.1.req.vtl index 5ebf1d5eb7f..74276964bfa 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdateTopic.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdateTopic.auth.1.req.vtl @@ -8,4 +8,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdateTopic.postAuth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdateTopic.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdateTopic.postAuth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdateTopic.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdateTopic.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdateTopic.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdateTopic.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdateTopic.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdateTopic.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdateTopic.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdateTopic.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Subscription.onUpdateTopic.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Topic.posts.auth.1.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Topic.posts.auth.1.req.vtl index 8856d63c457..581af8fdd7c 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Topic.posts.auth.1.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Topic.posts.auth.1.req.vtl @@ -8,4 +8,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Topic.posts.req.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Topic.posts.req.vtl index 8f4e8b6b91f..937820922f8 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Topic.posts.req.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Topic.posts.req.vtl @@ -69,4 +69,4 @@ null #end, "index": "gsi-Topic.posts" } -#end \ No newline at end of file +#end diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Topic.posts.res.vtl b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Topic.posts.res.vtl index 922c4ce53d0..ae420dbf03f 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Topic.posts.res.vtl +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/resolvers/Topic.posts.res.vtl @@ -10,4 +10,4 @@ $util.error($ctx.error.message, $ctx.error.type) #end #end $util.toJson($result) -#end \ No newline at end of file +#end diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/stacks/Comment.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/stacks/Comment.json index 555e8d77192..29c78d019ac 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/stacks/Comment.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/stacks/Comment.json @@ -500,7 +500,7 @@ { "Ref": "CommentTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -595,7 +595,7 @@ { "Ref": "CommentTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -693,7 +693,7 @@ { "Ref": "CommentTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -845,7 +845,7 @@ { "Ref": "CommentTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -994,7 +994,7 @@ { "Ref": "CommentTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -1031,7 +1031,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -1068,7 +1068,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -1105,7 +1105,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -1192,4 +1192,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/stacks/ConnectionStack.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/stacks/ConnectionStack.json index fc750c366eb..32cfbcb8638 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/stacks/ConnectionStack.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/stacks/ConnectionStack.json @@ -111,7 +111,7 @@ { "Ref": "referencetotransformerrootstackPostNestedStackPostNestedStackResource45FCAC5EOutputstransformerrootstackPostPostTable34CAE87BRef" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -200,7 +200,7 @@ { "Ref": "referencetotransformerrootstackCommentNestedStackCommentNestedStackResource199283FBOutputstransformerrootstackCommentCommentTable5427FDE2Ref" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -289,7 +289,7 @@ { "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicTopicTableFD91FB92Ref" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -378,7 +378,7 @@ { "Ref": "referencetotransformerrootstackPostNestedStackPostNestedStackResource45FCAC5EOutputstransformerrootstackPostPostTable34CAE87BRef" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -419,4 +419,4 @@ "Type": "String" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/stacks/CustomResources.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/stacks/CustomResources.json index 016991278d0..5fe357d6096 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/stacks/CustomResources.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/stacks/CustomResources.json @@ -58,4 +58,4 @@ "Value": "" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/stacks/FunctionDirectiveStack.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/stacks/FunctionDirectiveStack.json index 2893dd20e86..5779eb40eef 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/stacks/FunctionDirectiveStack.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/stacks/FunctionDirectiveStack.json @@ -278,4 +278,4 @@ "Type": "String" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/stacks/Post.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/stacks/Post.json index c9369d72715..384e11403f2 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/stacks/Post.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/stacks/Post.json @@ -500,7 +500,7 @@ { "Ref": "PostTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -595,7 +595,7 @@ { "Ref": "PostTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -693,7 +693,7 @@ { "Ref": "PostTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -845,7 +845,7 @@ { "Ref": "PostTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -994,7 +994,7 @@ { "Ref": "PostTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -1031,7 +1031,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -1068,7 +1068,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -1105,7 +1105,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -1192,4 +1192,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/stacks/Topic.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/stacks/Topic.json index 233b2a28467..f27ba5b0bb0 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/stacks/Topic.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/build/stacks/Topic.json @@ -503,7 +503,7 @@ { "Ref": "TopicTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -604,7 +604,7 @@ { "Ref": "TopicTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -771,7 +771,7 @@ { "Ref": "TopicTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -959,7 +959,7 @@ { "Ref": "TopicTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -1111,7 +1111,7 @@ { "Ref": "TopicTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -1232,7 +1232,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -1278,7 +1278,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -1324,7 +1324,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -1467,4 +1467,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/cli-inputs.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/cli-inputs.json index f2b02365cc1..c25415e5aef 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/cli-inputs.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/cli-inputs.json @@ -8,4 +8,4 @@ "expirationTime": 7 } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/parameters.json index 41935ee9dfb..8c6b7086ebe 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/parameters.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/parameters.json @@ -2,4 +2,4 @@ "AppSyncApiName": "discussions", "DynamoDBBillingMode": "PAY_PER_REQUEST", "DynamoDBEnableServerSideEncryption": false -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/resolvers/README.md b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/resolvers/README.md index 89e564c5b31..1634d295144 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/resolvers/README.md +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/resolvers/README.md @@ -1,2 +1,2 @@ Any resolvers that you add in this directory will override the ones automatically generated by Amplify CLI and will be directly copied to the cloud. -For more information, visit [https://docs.amplify.aws/cli/graphql-transformer/resolvers](https://docs.amplify.aws/cli/graphql-transformer/resolvers) \ No newline at end of file +For more information, visit [https://docs.amplify.aws/cli/graphql-transformer/resolvers](https://docs.amplify.aws/cli/graphql-transformer/resolvers) diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/transform.conf.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/transform.conf.json index 98e1e19f038..d0421b1df09 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/transform.conf.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/api/discussions/transform.conf.json @@ -1,4 +1,4 @@ { "Version": 5, "ElasticsearchWarning": true -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/auth/discussions22367c6822367c68/build/discussions22367c6822367c68-cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/auth/discussions22367c6822367c68/build/discussions22367c6822367c68-cloudformation-template.json index c305475136f..303e7972831 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/auth/discussions22367c6822367c68/build/discussions22367c6822367c68-cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/auth/discussions22367c6822367c68/build/discussions22367c6822367c68-cloudformation-template.json @@ -530,4 +530,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/auth/discussions22367c6822367c68/build/parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/auth/discussions22367c6822367c68/build/parameters.json index bee8cd0d32d..2576b5f4173 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/auth/discussions22367c6822367c68/build/parameters.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/auth/discussions22367c6822367c68/build/parameters.json @@ -62,4 +62,4 @@ }, "breakCircularDependency": true, "dependsOn": [] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/auth/discussions22367c6822367c68/cli-inputs.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/auth/discussions22367c6822367c68/cli-inputs.json index 6cd53a84bd2..a181f837457 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/auth/discussions22367c6822367c68/cli-inputs.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/auth/discussions22367c6822367c68/cli-inputs.json @@ -51,4 +51,4 @@ "usernameCaseSensitive": false, "useEnabledMfas": true } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/auth/discussionsc578c16ec578c16e/build/discussionsc578c16ec578c16e-cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/auth/discussionsc578c16ec578c16e/build/discussionsc578c16ec578c16e-cloudformation-template.json index 3f10aeedb88..804eb7c3147 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/auth/discussionsc578c16ec578c16e/build/discussionsc578c16ec578c16e-cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/auth/discussionsc578c16ec578c16e/build/discussionsc578c16ec578c16e-cloudformation-template.json @@ -1,5 +1,5 @@ { - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { "env": { @@ -530,4 +530,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/auth/discussionsc578c16ec578c16e/build/parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/auth/discussionsc578c16ec578c16e/build/parameters.json index b5be0ad54f8..21eb21d8fe8 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/auth/discussionsc578c16ec578c16e/build/parameters.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/auth/discussionsc578c16ec578c16e/build/parameters.json @@ -62,4 +62,4 @@ }, "breakCircularDependency": true, "dependsOn": [] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/auth/discussionsc578c16ec578c16e/cli-inputs.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/auth/discussionsc578c16ec578c16e/cli-inputs.json index c8b670350c3..b3ffdaea87e 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/auth/discussionsc578c16ec578c16e/cli-inputs.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/auth/discussionsc578c16ec578c16e/cli-inputs.json @@ -51,4 +51,4 @@ "usernameCaseSensitive": false, "useEnabledMfas": true } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/discussions/build/cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/discussions/build/cloudformation-template.json index 647ae86b7e0..e2b426197a4 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/discussions/build/cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/discussions/build/cloudformation-template.json @@ -111,7 +111,7 @@ "ApiId" ] }, - "Expires": 1774646388 + "Expires": 1776829921 } }, "GraphQLAPINONEDS95A13CF0": { @@ -641,7 +641,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -738,7 +738,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -835,7 +835,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -932,7 +932,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" ] ] }, @@ -1062,5 +1062,5 @@ } } }, - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/discussions22367c6822367c68/build/discussions22367c6822367c68-cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/discussions22367c6822367c68/build/discussions22367c6822367c68-cloudformation-template.json index c305475136f..303e7972831 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/discussions22367c6822367c68/build/discussions22367c6822367c68-cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/discussions22367c6822367c68/build/discussions22367c6822367c68-cloudformation-template.json @@ -530,4 +530,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/discussionsc578c16ec578c16e/build/discussionsc578c16ec578c16e-cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/discussionsc578c16ec578c16e/build/discussionsc578c16ec578c16e-cloudformation-template.json index 3f10aeedb88..804eb7c3147 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/discussionsc578c16ec578c16e/build/discussionsc578c16ec578c16e-cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/discussionsc578c16ec578c16e/build/discussionsc578c16ec578c16e-cloudformation-template.json @@ -1,5 +1,5 @@ { - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { "env": { @@ -530,4 +530,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json index 7d427d24e55..e03c7e56754 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json @@ -202,21 +202,21 @@ "apidiscussions": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", "Parameters": { "AppSyncApiName": "discussions", "DynamoDBBillingMode": "PAY_PER_REQUEST", "DynamoDBEnableServerSideEncryption": false, - "S3DeploymentBucket": "amplify-discussions-main-c39a5-deployment", + "S3DeploymentBucket": "amplify-discussions-x-x-deployment", "S3DeploymentRootKey": "amplify-appsync-files/db92bad357b2590353e82db2f2ec7d0fc9cfd30d", - "env": "main" + "env": "x" } } }, "authdiscussionsc578c16ec578c16e": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/auth/discussionsc578c16ec578c16e-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/auth/discussionsc578c16ec578c16e-cloudformation-template.json", "Parameters": { "identityPoolName": "discussionsc578c16e_identitypool_c578c16e", "allowUnauthenticatedIdentities": false, @@ -268,17 +268,17 @@ }, "breakCircularDependency": true, "dependsOn": "", - "env": "main" + "env": "x" } } }, "functionfetchuseractivity": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/function/fetchuseractivity-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/function/fetchuseractivity-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-discussions-main-c39a5-deployment", - "s3Key": "amplify-builds/fetchuseractivity-6e523036545438726f37-build.zip", + "deploymentBucketName": "amplify-discussions-x-x-deployment", + "s3Key": "amplify-builds/fetchuseractivity-574d43794579796f5042-build.zip", "storageactivityName": { "Fn::GetAtt": [ "storageactivity", @@ -297,17 +297,17 @@ "Outputs.StreamArn" ] }, - "env": "main" + "env": "x" } } }, "functionrecorduseractivity": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/function/recorduseractivity-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/function/recorduseractivity-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-discussions-main-c39a5-deployment", - "s3Key": "amplify-builds/recorduseractivity-433947686f7145754543-build.zip", + "deploymentBucketName": "amplify-discussions-x-x-deployment", + "s3Key": "amplify-builds/recorduseractivity-54696a587a7168467354-build.zip", "apidiscussionsGraphQLAPIIdOutput": { "Fn::GetAtt": [ "apidiscussions", @@ -338,28 +338,28 @@ "Outputs.StreamArn" ] }, - "env": "main" + "env": "x" } } }, "storageactivity": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/storage/activity-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/storage/activity-cloudformation-template.json", "Parameters": { "tableName": "activity", "partitionKeyName": "id", "partitionKeyType": "S", "sortKeyName": "userId", "sortKeyType": "S", - "env": "main" + "env": "x" } } }, "storageavatars": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/storage/cloudformation-template.json", "Parameters": { "bucketName": "discus-avatars", "selectedGuestPermissions": "", @@ -385,21 +385,21 @@ "s3PermissionsAuthenticatedUploads": "s3:PutObject", "s3PermissionsGuestPublic": "DISALLOW", "s3PermissionsGuestUploads": "DISALLOW", - "env": "main" + "env": "x" } } }, "storagebookmarks": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/storage/bookmarks-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/storage/bookmarks-cloudformation-template.json", "Parameters": { "tableName": "bookmarks", "partitionKeyName": "userId", "partitionKeyType": "S", "sortKeyName": "postId", "sortKeyType": "S", - "env": "main" + "env": "x" } } }, @@ -607,4 +607,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/fetchuseractivity/fetchuseractivity-cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/fetchuseractivity/fetchuseractivity-cloudformation-template.json index e44e73d93aa..9eda75a0edf 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/fetchuseractivity/fetchuseractivity-cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/fetchuseractivity/fetchuseractivity-cloudformation-template.json @@ -1,6 +1,6 @@ { "AWSTemplateFormatVersion": "2010-09-09", - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "Parameters": { "CloudWatchRule": { "Type": "String", @@ -267,4 +267,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/recorduseractivity/recorduseractivity-cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/recorduseractivity/recorduseractivity-cloudformation-template.json index 34511d0c3c6..8f7ec565fb9 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/recorduseractivity/recorduseractivity-cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/recorduseractivity/recorduseractivity-cloudformation-template.json @@ -1,6 +1,6 @@ { "AWSTemplateFormatVersion": "2010-09-09", - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "Parameters": { "CloudWatchRule": { "Type": "String", @@ -452,4 +452,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json index 7d427d24e55..e03c7e56754 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json @@ -202,21 +202,21 @@ "apidiscussions": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", "Parameters": { "AppSyncApiName": "discussions", "DynamoDBBillingMode": "PAY_PER_REQUEST", "DynamoDBEnableServerSideEncryption": false, - "S3DeploymentBucket": "amplify-discussions-main-c39a5-deployment", + "S3DeploymentBucket": "amplify-discussions-x-x-deployment", "S3DeploymentRootKey": "amplify-appsync-files/db92bad357b2590353e82db2f2ec7d0fc9cfd30d", - "env": "main" + "env": "x" } } }, "authdiscussionsc578c16ec578c16e": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/auth/discussionsc578c16ec578c16e-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/auth/discussionsc578c16ec578c16e-cloudformation-template.json", "Parameters": { "identityPoolName": "discussionsc578c16e_identitypool_c578c16e", "allowUnauthenticatedIdentities": false, @@ -268,17 +268,17 @@ }, "breakCircularDependency": true, "dependsOn": "", - "env": "main" + "env": "x" } } }, "functionfetchuseractivity": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/function/fetchuseractivity-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/function/fetchuseractivity-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-discussions-main-c39a5-deployment", - "s3Key": "amplify-builds/fetchuseractivity-6e523036545438726f37-build.zip", + "deploymentBucketName": "amplify-discussions-x-x-deployment", + "s3Key": "amplify-builds/fetchuseractivity-574d43794579796f5042-build.zip", "storageactivityName": { "Fn::GetAtt": [ "storageactivity", @@ -297,17 +297,17 @@ "Outputs.StreamArn" ] }, - "env": "main" + "env": "x" } } }, "functionrecorduseractivity": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/function/recorduseractivity-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/function/recorduseractivity-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-discussions-main-c39a5-deployment", - "s3Key": "amplify-builds/recorduseractivity-433947686f7145754543-build.zip", + "deploymentBucketName": "amplify-discussions-x-x-deployment", + "s3Key": "amplify-builds/recorduseractivity-54696a587a7168467354-build.zip", "apidiscussionsGraphQLAPIIdOutput": { "Fn::GetAtt": [ "apidiscussions", @@ -338,28 +338,28 @@ "Outputs.StreamArn" ] }, - "env": "main" + "env": "x" } } }, "storageactivity": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/storage/activity-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/storage/activity-cloudformation-template.json", "Parameters": { "tableName": "activity", "partitionKeyName": "id", "partitionKeyType": "S", "sortKeyName": "userId", "sortKeyType": "S", - "env": "main" + "env": "x" } } }, "storageavatars": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/storage/cloudformation-template.json", "Parameters": { "bucketName": "discus-avatars", "selectedGuestPermissions": "", @@ -385,21 +385,21 @@ "s3PermissionsAuthenticatedUploads": "s3:PutObject", "s3PermissionsGuestPublic": "DISALLOW", "s3PermissionsGuestUploads": "DISALLOW", - "env": "main" + "env": "x" } } }, "storagebookmarks": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/storage/bookmarks-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/storage/bookmarks-cloudformation-template.json", "Parameters": { "tableName": "bookmarks", "partitionKeyName": "userId", "partitionKeyType": "S", "sortKeyName": "postId", "sortKeyType": "S", - "env": "main" + "env": "x" } } }, @@ -607,4 +607,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/storage/activity/build/activity-cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/storage/activity/build/activity-cloudformation-template.json index 17ea25a0a60..6f6fa444e90 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/storage/activity/build/activity-cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/storage/activity/build/activity-cloudformation-template.json @@ -1,5 +1,5 @@ { - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-DynamoDB\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-DynamoDB\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { "partitionKeyName": { @@ -161,4 +161,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/storage/avatars/build/cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/storage/avatars/build/cloudformation-template.json index 81494e78af7..78971e367f6 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/storage/avatars/build/cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/storage/avatars/build/cloudformation-template.json @@ -1,5 +1,5 @@ { - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-S3\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-S3\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { "env": { @@ -596,4 +596,4 @@ "Condition": "GuestReadAndList" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/storage/bookmarks/build/bookmarks-cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/storage/bookmarks/build/bookmarks-cloudformation-template.json index f19e532fe34..976119728ee 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/storage/bookmarks/build/bookmarks-cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/awscloudformation/build/storage/bookmarks/build/bookmarks-cloudformation-template.json @@ -1,5 +1,5 @@ { - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-DynamoDB\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-DynamoDB\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { "partitionKeyName": { @@ -153,4 +153,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/backend-config.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/backend-config.json index 49fe6deb7c4..5ff9b9b7457 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/backend-config.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/backend-config.json @@ -137,4 +137,4 @@ "service": "DynamoDB" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/fetchuseractivity/amplify.state b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/fetchuseractivity/amplify.state index 045e649ff86..f4f664b5257 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/fetchuseractivity/amplify.state +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/fetchuseractivity/amplify.state @@ -6,4 +6,4 @@ "scripts": { "build": "npm install --no-bin-links --production" } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/fetchuseractivity/custom-policies.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/fetchuseractivity/custom-policies.json index 528c94f2f26..1f21c530082 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/fetchuseractivity/custom-policies.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/fetchuseractivity/custom-policies.json @@ -3,4 +3,4 @@ "Action": [], "Resource": [] } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/fetchuseractivity/fetchuseractivity-cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/fetchuseractivity/fetchuseractivity-cloudformation-template.json index e44e73d93aa..9eda75a0edf 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/fetchuseractivity/fetchuseractivity-cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/fetchuseractivity/fetchuseractivity-cloudformation-template.json @@ -1,6 +1,6 @@ { "AWSTemplateFormatVersion": "2010-09-09", - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "Parameters": { "CloudWatchRule": { "Type": "String", @@ -267,4 +267,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/fetchuseractivity/function-parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/fetchuseractivity/function-parameters.json index 851619fc363..df194f016d0 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/fetchuseractivity/function-parameters.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/fetchuseractivity/function-parameters.json @@ -7,4 +7,4 @@ } }, "lambdaLayers": [] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/fetchuseractivity/parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/fetchuseractivity/parameters.json index 9e26dfeeb6e..0967ef424bc 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/fetchuseractivity/parameters.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/fetchuseractivity/parameters.json @@ -1 +1 @@ -{} \ No newline at end of file +{} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/recorduseractivity/amplify.state b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/recorduseractivity/amplify.state index 045e649ff86..f4f664b5257 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/recorduseractivity/amplify.state +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/recorduseractivity/amplify.state @@ -6,4 +6,4 @@ "scripts": { "build": "npm install --no-bin-links --production" } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/recorduseractivity/custom-policies.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/recorduseractivity/custom-policies.json index 528c94f2f26..1f21c530082 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/recorduseractivity/custom-policies.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/recorduseractivity/custom-policies.json @@ -3,4 +3,4 @@ "Action": [], "Resource": [] } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/recorduseractivity/function-parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/recorduseractivity/function-parameters.json index 0b0aacc4b95..fe409267644 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/recorduseractivity/function-parameters.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/recorduseractivity/function-parameters.json @@ -10,4 +10,4 @@ } }, "lambdaLayers": [] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/recorduseractivity/parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/recorduseractivity/parameters.json index 9e26dfeeb6e..0967ef424bc 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/recorduseractivity/parameters.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/recorduseractivity/parameters.json @@ -1 +1 @@ -{} \ No newline at end of file +{} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/recorduseractivity/recorduseractivity-cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/recorduseractivity/recorduseractivity-cloudformation-template.json index 34511d0c3c6..8f7ec565fb9 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/recorduseractivity/recorduseractivity-cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/function/recorduseractivity/recorduseractivity-cloudformation-template.json @@ -1,6 +1,6 @@ { "AWSTemplateFormatVersion": "2010-09-09", - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "Parameters": { "CloudWatchRule": { "Type": "String", @@ -452,4 +452,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/storage/activity/build/activity-cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/storage/activity/build/activity-cloudformation-template.json index 17ea25a0a60..6f6fa444e90 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/storage/activity/build/activity-cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/storage/activity/build/activity-cloudformation-template.json @@ -1,5 +1,5 @@ { - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-DynamoDB\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-DynamoDB\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { "partitionKeyName": { @@ -161,4 +161,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/storage/activity/build/parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/storage/activity/build/parameters.json index 92d51a3aa71..24c87aa05ff 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/storage/activity/build/parameters.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/storage/activity/build/parameters.json @@ -4,4 +4,4 @@ "partitionKeyType": "S", "sortKeyName": "userId", "sortKeyType": "S" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/storage/activity/cli-inputs.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/storage/activity/cli-inputs.json index 13405570dc7..3a1221a131a 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/storage/activity/cli-inputs.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/storage/activity/cli-inputs.json @@ -23,4 +23,4 @@ } ], "triggerFunctions": [] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/storage/avatars/build/cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/storage/avatars/build/cloudformation-template.json index b7a3303032f..51a784d28a0 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/storage/avatars/build/cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/storage/avatars/build/cloudformation-template.json @@ -1,5 +1,5 @@ { - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-S3\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-S3\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { "env": { @@ -587,4 +587,4 @@ "Condition": "GuestReadAndList" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/storage/avatars/build/parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/storage/avatars/build/parameters.json index ebe758a7829..2bc7cbdcece 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/storage/avatars/build/parameters.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/storage/avatars/build/parameters.json @@ -28,4 +28,4 @@ "s3PermissionsAuthenticatedUploads": "s3:PutObject", "s3PermissionsGuestPublic": "DISALLOW", "s3PermissionsGuestUploads": "DISALLOW" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/storage/avatars/cli-inputs.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/storage/avatars/cli-inputs.json index 9126ffc1e88..7bb291694a2 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/storage/avatars/cli-inputs.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/storage/avatars/cli-inputs.json @@ -11,4 +11,4 @@ ], "triggerFunction": "NONE", "groupAccess": {} -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/storage/bookmarks/build/bookmarks-cloudformation-template.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/storage/bookmarks/build/bookmarks-cloudformation-template.json index f19e532fe34..976119728ee 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/storage/bookmarks/build/bookmarks-cloudformation-template.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/storage/bookmarks/build/bookmarks-cloudformation-template.json @@ -1,5 +1,5 @@ { - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-DynamoDB\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-DynamoDB\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", "AWSTemplateFormatVersion": "2010-09-09", "Parameters": { "partitionKeyName": { @@ -153,4 +153,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/storage/bookmarks/build/parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/storage/bookmarks/build/parameters.json index ec5a22f98a9..b15111598db 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/storage/bookmarks/build/parameters.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/storage/bookmarks/build/parameters.json @@ -4,4 +4,4 @@ "partitionKeyType": "S", "sortKeyName": "postId", "sortKeyType": "S" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/tags.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/tags.json index b9321d71b83..71f6abe11a6 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/tags.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/tags.json @@ -7,4 +7,4 @@ "Key": "user:Application", "Value": "{project-name}" } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts index 51ec22deece..9401c8648b2 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts @@ -60,4 +60,4 @@ export type AmplifyDependentResourcesAttributes = { "StreamArn": "string" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/cli.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/cli.json index 11dc8ca0f7d..6991bfaca44 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/cli.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/cli.json @@ -62,4 +62,4 @@ "debug": { "shareProjectConfig": false } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/team-provider-info.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/team-provider-info.json index 9908807370a..f309ca5824b 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/team-provider-info.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/amplify/team-provider-info.json @@ -1,14 +1,14 @@ { - "main": { + "x": { "awscloudformation": { - "AuthRoleName": "amplify-discussions-main-c39a5-authRole", - "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-discussions-main-c39a5-unauthRole", - "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-discussions-main-c39a5-authRole", + "AuthRoleName": "amplify-discussions-x-x-authRole", + "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-discussions-x-x-unauthRole", + "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-discussions-x-x-authRole", "Region": "us-east-1", - "DeploymentBucketName": "amplify-discussions-main-c39a5-deployment", - "UnauthRoleName": "amplify-discussions-main-c39a5-unauthRole", - "StackName": "amplify-discussions-main-c39a5", - "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-discussions-main-c39a5/0e9a6f60-24a2-11f1-8462-0afffd2fb801", + "DeploymentBucketName": "amplify-discussions-x-x-deployment", + "UnauthRoleName": "amplify-discussions-x-x-unauthRole", + "StackName": "amplify-discussions-x-x", + "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-discussions-x-x/573e2000-387e-11f1-8fe1-0e59b95a9da1", "AmplifyAppId": "discussions" }, "categories": { @@ -17,15 +17,13 @@ }, "function": { "fetchuseractivity": { - "deploymentBucketName": "amplify-discussions-main-c39a5-deployment", - "s3Key": "amplify-builds/fetchuseractivity-6e523036545438726f37-build.zip" + "deploymentBucketName": "amplify-discussions-x-x-deployment", + "s3Key": "amplify-builds/fetchuseractivity-574d43794579796f5042-build.zip" }, "recorduseractivity": { - "deploymentBucketName": "amplify-discussions-main-c39a5-deployment", - "s3Key": "amplify-builds/recorduseractivity-433947686f7145754543-build.zip" - }, - "activity": {}, - "discussions": {} + "deploymentBucketName": "amplify-discussions-x-x-deployment", + "s3Key": "amplify-builds/recorduseractivity-54696a587a7168467354-build.zip" + } }, "api": { "discussions": {} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.generate/package.json b/amplify-migration-apps/discussions/_snapshot.pre.generate/package.json index 3c2f40da14b..d00848f37b7 100644 --- a/amplify-migration-apps/discussions/_snapshot.pre.generate/package.json +++ b/amplify-migration-apps/discussions/_snapshot.pre.generate/package.json @@ -10,13 +10,28 @@ "dev": "vite", "build": "vite build", "preview": "vite preview", - "configure": "./configure.sh", - "configure-schema": "./configure-schema.sh", - "configure-functions": "./configure-functions.sh", + "configure": "./backend/configure.sh", + "configure-schema": "./backend/configure-schema.sh", "sanitize": "tsx ../sanitize.ts", - "typecheck": "cd _snapshot.post.generate/amplify && npx tsc --noEmit" + "normalize": "tsx ../normalize.ts", + "typecheck": "cd _snapshot.post.generate/amplify && npx tsc --noEmit", + "test:gen1": "APP_CONFIG_PATH=${APP_CONFIG_PATH:-src/amplifyconfiguration.json} NODE_OPTIONS='--experimental-vm-modules' jest --verbose --testPathIgnorePatterns='shared-data'", + "test:gen2": "APP_CONFIG_PATH=${APP_CONFIG_PATH:-amplify_outputs.json} NODE_OPTIONS='--experimental-vm-modules' jest --verbose --testPathIgnorePatterns='shared-data'", + "test:shared-data": "NODE_OPTIONS='--experimental-vm-modules' jest --verbose tests/shared-data.test.ts", + "test:e2e": "cd ../../packages/amplify-gen2-migration-e2e-system && npx tsx src/cli.ts --app discussions --profile ${AWS_PROFILE:-default}", + "deploy": "cd ../../packages/amplify-gen2-migration-e2e-system && npx tsx src/cli.ts --app discussions --step deploy --profile ${AWS_PROFILE:-default}", + "pre-push": "true", + "post-generate": "npx tsx migration/post-generate.ts", + "post-refactor": "npx tsx migration/post-refactor.ts", + "post-sandbox": "true", + "pre-sandbox": "true", + "post-push": "true" }, "devDependencies": { + "@aws-sdk/client-cognito-identity-provider": "^3.936.0", + "@types/jest": "^29.5.14", + "jest": "^29.7.0", + "ts-jest": "^29.3.4", "vite": "^7.2.2" }, "dependencies": { diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.outputs.json new file mode 100644 index 00000000000..325972b5abc --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.outputs.json @@ -0,0 +1,6 @@ +[ + { + "OutputKey": "amplifydiscussionse2esandbox11f7701e3cdataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent7697030AArn", + "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-discussion2604142-TableManagerCustomProvid-WOkquDMyv4zc" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.parameters.json new file mode 100644 index 00000000000..0e63972fd71 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.parameters.json @@ -0,0 +1,6 @@ +[ + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId", + "ParameterValue": "wdfhzimbunbg5ahiuonmjslcb4" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.template.json new file mode 100644 index 00000000000..323462039e4 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.template.json @@ -0,0 +1,787 @@ +{ + "Resources": { + "AmplifyManagedTableIsCompleteRoleF825222C": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:CreateTable", + "dynamodb:UpdateTable", + "dynamodb:DeleteTable", + "dynamodb:DescribeTable", + "dynamodb:DescribeContinuousBackups", + "dynamodb:DescribeTimeToLive", + "dynamodb:UpdateContinuousBackups", + "dynamodb:UpdateTimeToLive", + "dynamodb:TagResource", + "dynamodb:UntagResource", + "dynamodb:ListTagsOfResource" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/*-${apiId}-${envName}", + { + "apiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "envName": "NONE" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", + { + "tableName": "Topic-xw3yrfq7mngltcua43nucy7fg4-x" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", + { + "tableName": "Post-xw3yrfq7mngltcua43nucy7fg4-x" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", + { + "tableName": "Comment-xw3yrfq7mngltcua43nucy7fg4-x" + } + ] + } + ] + }, + { + "Action": "lambda:ListTags", + "Effect": "Allow", + "Resource": { + "Fn::Sub": [ + "arn:${AWS::Partition}:lambda:${AWS::Region}:${AWS::AccountId}:function:*TableManager*", + {} + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "CreateUpdateDeleteTablesPolicy" + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/AmplifyManagedTableIsCompleteRole/Resource" + } + }, + "AmplifyManagedTableOnEventRoleB4E71DEA": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:CreateTable", + "dynamodb:UpdateTable", + "dynamodb:DeleteTable", + "dynamodb:DescribeTable", + "dynamodb:DescribeContinuousBackups", + "dynamodb:DescribeTimeToLive", + "dynamodb:UpdateContinuousBackups", + "dynamodb:UpdateTimeToLive", + "dynamodb:TagResource", + "dynamodb:UntagResource", + "dynamodb:ListTagsOfResource" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/*-${apiId}-${envName}", + { + "apiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "envName": "NONE" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", + { + "tableName": "Topic-xw3yrfq7mngltcua43nucy7fg4-x" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", + { + "tableName": "Post-xw3yrfq7mngltcua43nucy7fg4-x" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", + { + "tableName": "Comment-xw3yrfq7mngltcua43nucy7fg4-x" + } + ] + } + ] + }, + { + "Action": "lambda:ListTags", + "Effect": "Allow", + "Resource": { + "Fn::Sub": [ + "arn:${AWS::Partition}:lambda:${AWS::Region}:${AWS::AccountId}:function:*TableManager*", + {} + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "CreateUpdateDeleteTablesPolicy" + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/AmplifyManagedTableOnEventRole/Resource" + } + }, + "AmplifyManagedTableOnEventRoleDefaultPolicyF6DABCB6": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "states:StartExecution", + "Effect": "Allow", + "Resource": { + "Ref": "AmplifyTableWaiterStateMachine060600BC" + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "AmplifyManagedTableOnEventRoleDefaultPolicyF6DABCB6", + "Roles": [ + { + "Ref": "AmplifyManagedTableOnEventRoleB4E71DEA" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/AmplifyManagedTableOnEventRole/DefaultPolicy/Resource" + } + }, + "TableManagerCustomProviderframeworkonEvent1DFC2ECC": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6.zip" + }, + "Description": "AmplifyManagedTable - onEvent (amplify-discussions-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider)", + "Environment": { + "Variables": { + "WAITER_STATE_MACHINE_ARN": { + "Ref": "AmplifyTableWaiterStateMachine060600BC" + } + } + }, + "Handler": "amplify-table-manager-handler.onEvent", + "Role": { + "Fn::GetAtt": [ + "AmplifyManagedTableOnEventRoleB4E71DEA", + "Arn" + ] + }, + "Runtime": "nodejs24.x", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 840 + }, + "DependsOn": [ + "AmplifyManagedTableOnEventRoleDefaultPolicyF6DABCB6", + "AmplifyManagedTableOnEventRoleB4E71DEA" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider/framework-onEvent/Resource", + "aws:asset:path": "asset.f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6", + "aws:asset:is-bundled": false, + "aws:asset:property": "Code" + } + }, + "TableManagerCustomProviderframeworkisComplete2E51021B": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6.zip" + }, + "Description": "AmplifyManagedTable - isComplete (amplify-discussions-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider)", + "Handler": "amplify-table-manager-handler.isComplete", + "Role": { + "Fn::GetAtt": [ + "AmplifyManagedTableIsCompleteRoleF825222C", + "Arn" + ] + }, + "Runtime": "nodejs24.x", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 840 + }, + "DependsOn": [ + "AmplifyManagedTableIsCompleteRoleF825222C" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider/framework-isComplete/Resource", + "aws:asset:path": "asset.f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6", + "aws:asset:is-bundled": false, + "aws:asset:property": "Code" + } + }, + "AmplifyTableWaiterStateMachineRole470BE899": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "states.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Role/Resource" + } + }, + "AmplifyTableWaiterStateMachineRoleDefaultPolicy89F3836A": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "TableManagerCustomProviderframeworkisComplete2E51021B", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "TableManagerCustomProviderframeworkisComplete2E51021B", + "Arn" + ] + }, + ":*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "AmplifyTableWaiterStateMachineRoleDefaultPolicy89F3836A", + "Roles": [ + { + "Ref": "AmplifyTableWaiterStateMachineRole470BE899" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Role/DefaultPolicy/Resource" + } + }, + "AmplifyTableWaiterStateMachine060600BC": { + "Type": "AWS::StepFunctions::StateMachine", + "Properties": { + "DefinitionString": { + "Fn::Join": [ + "", + [ + "{\"StartAt\":\"framework-isComplete-task\",\"States\":{\"framework-isComplete-task\":{\"End\":true,\"Retry\":[{\"ErrorEquals\":[\"States.ALL\"],\"IntervalSeconds\":10,\"MaxAttempts\":360,\"BackoffRate\":1}],\"Type\":\"Task\",\"Resource\":\"", + { + "Fn::GetAtt": [ + "TableManagerCustomProviderframeworkisComplete2E51021B", + "Arn" + ] + }, + "\"}}}" + ] + ] + }, + "RoleArn": { + "Fn::GetAtt": [ + "AmplifyTableWaiterStateMachineRole470BE899", + "Arn" + ] + } + }, + "DependsOn": [ + "AmplifyTableWaiterStateMachineRoleDefaultPolicy89F3836A", + "AmplifyTableWaiterStateMachineRole470BE899" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/zWNyw6CMBBFv8V9GbFE92Li0hj4ADK0IymPNmFaiWn67wbQ1Tk3Z3ElyHMO+QEXzpQestG0EB/EnnTtUQ0CF26iwQli5UYSt5fd+HSjUZ917pbEiFOrEeI9WOWNs2v7exJcNMhMnuG6QnABZVAD+RKZkqiIXZgVia3WHjtju+3sF5KwThP0fHxLCacL5IeejcnmYL2ZCKqdX3lj/13PAAAA" + }, + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId": { + "Type": "String" + } + }, + "Outputs": { + "amplifydiscussionse2esandbox11f7701e3cdataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent7697030AArn": { + "Value": { + "Fn::GetAtt": [ + "TableManagerCustomProviderframeworkonEvent1DFC2ECC", + "Arn" + ] + } + } + } +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataCommentNestedStackCommentNested-x.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataCommentNestedStackCommentNested-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataCommentNestedStackCommentNested-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataCommentNestedStackCommentNested-x.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataCommentNestedStackCommentNested-x.outputs.json new file mode 100644 index 00000000000..76468479b79 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataCommentNestedStackCommentNested-x.outputs.json @@ -0,0 +1,26 @@ +[ + { + "OutputKey": "GetAttCommentTableStreamArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Comment-xw3yrfq7mngltcua43nucy7fg4-x/stream/2026-04-15T03:53:19.114", + "Description": "Your DynamoDB table StreamArn.", + "ExportName": "wdfhzimbunbg5ahiuonmjslcb4:GetAtt:CommentTable:StreamArn" + }, + { + "OutputKey": "amplifydiscussionse2esandbox11f7701e3cdataamplifyDataCommentCommentDataSourceCE9AE4FFName", + "OutputValue": "CommentTable" + }, + { + "OutputKey": "amplifydiscussionse2esandbox11f7701e3cdataamplifyDataCommentCommentTable761EEA24TableStreamArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Comment-xw3yrfq7mngltcua43nucy7fg4-x/stream/2026-04-15T03:53:19.114" + }, + { + "OutputKey": "amplifydiscussionse2esandbox11f7701e3cdataamplifyDataCommentCommentTable761EEA24TableArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Comment-xw3yrfq7mngltcua43nucy7fg4-x" + }, + { + "OutputKey": "GetAttCommentTableName", + "OutputValue": "Comment-xw3yrfq7mngltcua43nucy7fg4-x", + "Description": "Your DynamoDB table name.", + "ExportName": "wdfhzimbunbg5ahiuonmjslcb4:GetAtt:CommentTable:Name" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataCommentNestedStackCommentNested-x.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataCommentNestedStackCommentNested-x.parameters.json new file mode 100644 index 00000000000..1b269d8851c --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataCommentNestedStackCommentNested-x.parameters.json @@ -0,0 +1,46 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref", + "ParameterValue": "amplify-discussion2604142-amplifyAuthauthenticatedU-OFERj1VQgbh0" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "true" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef", + "ParameterValue": "amplify-discussion2604142-amplifyAuthunauthenticate-RegjzqZNry1w" + }, + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId", + "ParameterValue": "wdfhzimbunbg5ahiuonmjslcb4" + }, + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource0F117C2FOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataAmplifyTableManagerTab02D7CFF1", + "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-discussion2604142-TableManagerCustomProvid-WOkquDMyv4zc" + }, + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef", + "ParameterValue": "us-east-1:0ab20e5d-b843-4969-94b1-c17d26af9934" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataCommentNestedStackCommentNested-x.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataCommentNestedStackCommentNested-x.template.json new file mode 100644 index 00000000000..c842045357b --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataCommentNestedStackCommentNested-x.template.json @@ -0,0 +1,2087 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource0F117C2FOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataAmplifyTableManagerTab02D7CFF1": { + "Type": "String" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId": { + "Type": "String" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name": { + "Type": "String" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref": { + "Type": "String" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef": { + "Type": "String" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + "NONE", + "NONE" + ] + } + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + }, + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Resources": { + "CommentTable": { + "Type": "Custom::ImportedAmplifyDynamoDBTable", + "Properties": { + "ServiceToken": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource0F117C2FOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataAmplifyTableManagerTab02D7CFF1" + }, + "tableName": "Comment-xw3yrfq7mngltcua43nucy7fg4-x", + "attributeDefinitions": [ + { + "attributeName": "id", + "attributeType": "S" + }, + { + "attributeName": "postCommentsId", + "attributeType": "S" + } + ], + "keySchema": [ + { + "attributeName": "id", + "keyType": "HASH" + } + ], + "globalSecondaryIndexes": [ + { + "indexName": "gsi-Post.comments", + "keySchema": [ + { + "attributeName": "postCommentsId", + "keyType": "HASH" + } + ], + "projection": { + "projectionType": "ALL" + }, + "provisionedThroughput": { + "readCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "writeCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + } + ], + "provisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "sseSpecification": { + "sseEnabled": false + }, + "streamSpecification": { + "streamViewType": "NEW_AND_OLD_IMAGES" + }, + "deletionProtectionEnabled": true, + "allowDestructiveGraphqlSchemaUpdates": true, + "replaceTableUponGsiUpdate": false, + "isImported": true, + "pointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "billingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Comment/CommentTable/Default/Default" + } + }, + "CommentIAMRoleD5EC5F51": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem", + "dynamodb:ConditionCheckItem", + "dynamodb:DescribeTable", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": "Comment-xw3yrfq7mngltcua43nucy7fg4-x" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": "Comment-xw3yrfq7mngltcua43nucy7fg4-x" + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess" + } + ], + "RoleName": { + "Fn::Join": [ + "", + [ + "CommentIAMRole20388d-", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "-NONE" + ] + ] + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Comment/CommentIAMRole/Resource" + } + }, + "CommentDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "CommentTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + } + }, + "Name": "CommentTable", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "CommentIAMRoleD5EC5F51", + "Arn" + ] + }, + "Type": "AMAZON_DYNAMODB" + }, + "DependsOn": [ + "CommentIAMRoleD5EC5F51" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Comment/CommentDataSource/Resource" + } + }, + "QuerygetCommentauth0FunctionQuerygetCommentauth0FunctionAppSyncFunction4992FD06": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetCommentauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/0224a3e5097427da3f4460b5d6d2b86ad4195c9cb8da7bc13e7187eead1c3ae3.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Comment/QuerygetCommentauth0Function/QuerygetCommentauth0Function.AppSyncFunction" + } + }, + "QuerygetCommentpostAuth0FunctionQuerygetCommentpostAuth0FunctionAppSyncFunction27405A71": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetCommentpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Comment/QuerygetCommentpostAuth0Function/QuerygetCommentpostAuth0Function.AppSyncFunction" + } + }, + "QueryGetCommentDataResolverFnQueryGetCommentDataResolverFnAppSyncFunction8473E2B0": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "CommentDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryGetCommentDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/08f4d557693d96c1a4efba0f9dc91330e4b19772fd5477c156468843e3d9cb5e.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4c6a2d29f01c6091bd1d9afe16e5849d456c96f17c3b215938c8067399532719.vtl" + } + }, + "DependsOn": [ + "CommentDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Comment/QueryGetCommentDataResolverFn/QueryGetCommentDataResolverFn.AppSyncFunction" + } + }, + "GetCommentResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "FieldName": "getComment", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerygetCommentauth0FunctionQuerygetCommentauth0FunctionAppSyncFunction4992FD06", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetCommentpostAuth0FunctionQuerygetCommentpostAuth0FunctionAppSyncFunction27405A71", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryGetCommentDataResolverFnQueryGetCommentDataResolverFnAppSyncFunction8473E2B0", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "CommentTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Comment/queryGetCommentResolver" + } + }, + "QuerylistCommentsauth0FunctionQuerylistCommentsauth0FunctionAppSyncFunctionC7B0414F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerylistCommentsauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/0224a3e5097427da3f4460b5d6d2b86ad4195c9cb8da7bc13e7187eead1c3ae3.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Comment/QuerylistCommentsauth0Function/QuerylistCommentsauth0Function.AppSyncFunction" + } + }, + "QuerylistCommentspostAuth0FunctionQuerylistCommentspostAuth0FunctionAppSyncFunctionEDC68EF5": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerylistCommentspostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Comment/QuerylistCommentspostAuth0Function/QuerylistCommentspostAuth0Function.AppSyncFunction" + } + }, + "QueryListCommentsDataResolverFnQueryListCommentsDataResolverFnAppSyncFunction474D4A91": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "CommentDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryListCommentsDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9fcbe070ecd3023c5bf5b966fa9584757db9762eef123bad0820bd87591b2174.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/cc01911d0269d4080ea57505dc445dfc315ef7ad85d3d9d4ea1357858bff451d.vtl" + } + }, + "DependsOn": [ + "CommentDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Comment/QueryListCommentsDataResolverFn/QueryListCommentsDataResolverFn.AppSyncFunction" + } + }, + "ListCommentResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "FieldName": "listComments", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerylistCommentsauth0FunctionQuerylistCommentsauth0FunctionAppSyncFunctionC7B0414F", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerylistCommentspostAuth0FunctionQuerylistCommentspostAuth0FunctionAppSyncFunctionEDC68EF5", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryListCommentsDataResolverFnQueryListCommentsDataResolverFnAppSyncFunction474D4A91", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listComments\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "CommentTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Comment/queryListCommentsResolver" + } + }, + "MutationcreateCommentinit0FunctionMutationcreateCommentinit0FunctionAppSyncFunction77870FAC": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateCommentinit0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a183ddccbd956316c38ef97177b8f088ef0826f62023323f5ae6053d348ccffc.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Comment/MutationcreateCommentinit0Function/MutationcreateCommentinit0Function.AppSyncFunction" + } + }, + "MutationcreateCommentauth0FunctionMutationcreateCommentauth0FunctionAppSyncFunctionE6EA011A": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateCommentauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/d637c1fb7301003b8a5ada269338cf2e8df6cc0dc412ef13acc6158d680b6d3e.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Comment/MutationcreateCommentauth0Function/MutationcreateCommentauth0Function.AppSyncFunction" + } + }, + "MutationcreateCommentpostAuth0FunctionMutationcreateCommentpostAuth0FunctionAppSyncFunction4F8AA7FF": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateCommentpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Comment/MutationcreateCommentpostAuth0Function/MutationcreateCommentpostAuth0Function.AppSyncFunction" + } + }, + "MutationCreateCommentDataResolverFnMutationCreateCommentDataResolverFnAppSyncFunctionD019FFE0": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "CommentDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationCreateCommentDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c01fe250817e3727b22216dee7e6c75fbb7c9166595000655c6879d0b33b582d.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "CommentDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Comment/MutationCreateCommentDataResolverFn/MutationCreateCommentDataResolverFn.AppSyncFunction" + } + }, + "CreateCommentResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "FieldName": "createComment", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationcreateCommentinit0FunctionMutationcreateCommentinit0FunctionAppSyncFunction77870FAC", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationcreateCommentauth0FunctionMutationcreateCommentauth0FunctionAppSyncFunctionE6EA011A", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationcreateCommentpostAuth0FunctionMutationcreateCommentpostAuth0FunctionAppSyncFunction4F8AA7FF", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationCreateCommentDataResolverFnMutationCreateCommentDataResolverFnAppSyncFunctionD019FFE0", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "CommentTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Comment/mutationCreateCommentResolver" + } + }, + "MutationupdateCommentinit0FunctionMutationupdateCommentinit0FunctionAppSyncFunction9C9EFBAD": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateCommentinit0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/06db846fd14e6fc371f22b12b5545ba8e2dbfeda85d8c8d586c71c282166657b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Comment/MutationupdateCommentinit0Function/MutationupdateCommentinit0Function.AppSyncFunction" + } + }, + "MutationupdateCommentauth0FunctionMutationupdateCommentauth0FunctionAppSyncFunction4E4C7C30": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "CommentDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateCommentauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/89f92efd98b1034df0e2497fe31a97de6975de554b8a22e0677d05d6efcafa59.vtl" + } + }, + "DependsOn": [ + "CommentDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Comment/MutationupdateCommentauth0Function/MutationupdateCommentauth0Function.AppSyncFunction" + } + }, + "MutationupdateCommentpostAuth0FunctionMutationupdateCommentpostAuth0FunctionAppSyncFunctionCDD716F2": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateCommentpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Comment/MutationupdateCommentpostAuth0Function/MutationupdateCommentpostAuth0Function.AppSyncFunction" + } + }, + "MutationUpdateCommentDataResolverFnMutationUpdateCommentDataResolverFnAppSyncFunctionB47372B5": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "CommentDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationUpdateCommentDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/474bf0776ec2164a13191d1a0a9e057154931e4918fea5086f49850d02a5371b.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "CommentDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Comment/MutationUpdateCommentDataResolverFn/MutationUpdateCommentDataResolverFn.AppSyncFunction" + } + }, + "UpdateCommentResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "FieldName": "updateComment", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationupdateCommentinit0FunctionMutationupdateCommentinit0FunctionAppSyncFunction9C9EFBAD", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationupdateCommentauth0FunctionMutationupdateCommentauth0FunctionAppSyncFunction4E4C7C30", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationupdateCommentpostAuth0FunctionMutationupdateCommentpostAuth0FunctionAppSyncFunctionCDD716F2", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationUpdateCommentDataResolverFnMutationUpdateCommentDataResolverFnAppSyncFunctionB47372B5", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "CommentTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Comment/mutationUpdateCommentResolver" + } + }, + "MutationdeleteCommentauth0FunctionMutationdeleteCommentauth0FunctionAppSyncFunction268B298A": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "CommentDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeleteCommentauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e3416b4d47414f29c21e59a70e83bddb959ef0625854ed7fb0ca376573e99069.vtl" + } + }, + "DependsOn": [ + "CommentDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Comment/MutationdeleteCommentauth0Function/MutationdeleteCommentauth0Function.AppSyncFunction" + } + }, + "MutationdeleteCommentpostAuth0FunctionMutationdeleteCommentpostAuth0FunctionAppSyncFunctionDFFD097E": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeleteCommentpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Comment/MutationdeleteCommentpostAuth0Function/MutationdeleteCommentpostAuth0Function.AppSyncFunction" + } + }, + "MutationDeleteCommentDataResolverFnMutationDeleteCommentDataResolverFnAppSyncFunctionD661C8CB": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "CommentDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationDeleteCommentDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4f7907d1209a2c9953a0c053df402c634e359546d70c7cc5c2e8e21ea734880f.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "CommentDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Comment/MutationDeleteCommentDataResolverFn/MutationDeleteCommentDataResolverFn.AppSyncFunction" + } + }, + "DeleteCommentResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "FieldName": "deleteComment", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationdeleteCommentauth0FunctionMutationdeleteCommentauth0FunctionAppSyncFunction268B298A", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationdeleteCommentpostAuth0FunctionMutationdeleteCommentpostAuth0FunctionAppSyncFunctionDFFD097E", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationDeleteCommentDataResolverFnMutationDeleteCommentDataResolverFnAppSyncFunctionD661C8CB", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "CommentTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Comment/mutationDeleteCommentResolver" + } + }, + "SubscriptiononCreateCommentauth0FunctionSubscriptiononCreateCommentauth0FunctionAppSyncFunction883537CC": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononCreateCommentauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e6da5a6e993df8b5fdc91086b71eb53e72a3a97c98836ef9c9257776f36c452b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Comment/SubscriptiononCreateCommentauth0Function/SubscriptiononCreateCommentauth0Function.AppSyncFunction" + } + }, + "SubscriptiononCreateCommentpostAuth0FunctionSubscriptiononCreateCommentpostAuth0FunctionAppSyncFunction34E6A73D": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononCreateCommentpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Comment/SubscriptiononCreateCommentpostAuth0Function/SubscriptiononCreateCommentpostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnCreateCommentDataResolverFnSubscriptionOnCreateCommentDataResolverFnAppSyncFunction72E30EF8": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnCreateCommentDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Comment/SubscriptionOnCreateCommentDataResolverFn/SubscriptionOnCreateCommentDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononCreateCommentResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "FieldName": "onCreateComment", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononCreateCommentauth0FunctionSubscriptiononCreateCommentauth0FunctionAppSyncFunction883537CC", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononCreateCommentpostAuth0FunctionSubscriptiononCreateCommentpostAuth0FunctionAppSyncFunction34E6A73D", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnCreateCommentDataResolverFnSubscriptionOnCreateCommentDataResolverFnAppSyncFunction72E30EF8", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Comment/subscriptionOnCreateCommentResolver" + } + }, + "SubscriptiononUpdateCommentauth0FunctionSubscriptiononUpdateCommentauth0FunctionAppSyncFunction6F76395C": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononUpdateCommentauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e6da5a6e993df8b5fdc91086b71eb53e72a3a97c98836ef9c9257776f36c452b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Comment/SubscriptiononUpdateCommentauth0Function/SubscriptiononUpdateCommentauth0Function.AppSyncFunction" + } + }, + "SubscriptiononUpdateCommentpostAuth0FunctionSubscriptiononUpdateCommentpostAuth0FunctionAppSyncFunction0EF93814": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononUpdateCommentpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Comment/SubscriptiononUpdateCommentpostAuth0Function/SubscriptiononUpdateCommentpostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnUpdateCommentDataResolverFnSubscriptionOnUpdateCommentDataResolverFnAppSyncFunction6B18681F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnUpdateCommentDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Comment/SubscriptionOnUpdateCommentDataResolverFn/SubscriptionOnUpdateCommentDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononUpdateCommentResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "FieldName": "onUpdateComment", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononUpdateCommentauth0FunctionSubscriptiononUpdateCommentauth0FunctionAppSyncFunction6F76395C", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononUpdateCommentpostAuth0FunctionSubscriptiononUpdateCommentpostAuth0FunctionAppSyncFunction0EF93814", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnUpdateCommentDataResolverFnSubscriptionOnUpdateCommentDataResolverFnAppSyncFunction6B18681F", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Comment/subscriptionOnUpdateCommentResolver" + } + }, + "SubscriptiononDeleteCommentauth0FunctionSubscriptiononDeleteCommentauth0FunctionAppSyncFunctionA85E4D19": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononDeleteCommentauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e6da5a6e993df8b5fdc91086b71eb53e72a3a97c98836ef9c9257776f36c452b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Comment/SubscriptiononDeleteCommentauth0Function/SubscriptiononDeleteCommentauth0Function.AppSyncFunction" + } + }, + "SubscriptiononDeleteCommentpostAuth0FunctionSubscriptiononDeleteCommentpostAuth0FunctionAppSyncFunction67A1094D": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononDeleteCommentpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Comment/SubscriptiononDeleteCommentpostAuth0Function/SubscriptiononDeleteCommentpostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnDeleteCommentDataResolverFnSubscriptionOnDeleteCommentDataResolverFnAppSyncFunctionB17CE9F9": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnDeleteCommentDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Comment/SubscriptionOnDeleteCommentDataResolverFn/SubscriptionOnDeleteCommentDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononDeleteCommentResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "FieldName": "onDeleteComment", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononDeleteCommentauth0FunctionSubscriptiononDeleteCommentauth0FunctionAppSyncFunctionA85E4D19", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononDeleteCommentpostAuth0FunctionSubscriptiononDeleteCommentpostAuth0FunctionAppSyncFunction67A1094D", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnDeleteCommentDataResolverFnSubscriptionOnDeleteCommentDataResolverFnAppSyncFunctionB17CE9F9", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Comment/subscriptionOnDeleteCommentResolver" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOwW6DMAyGn6X31GNU230F7bhNsHtlEoNSwEGx06pCvPsEnTrt9PuTP9l/DvlLBtkOr7K3rt8PvoH5g0TJ1Yq2N0XLXxhxJKW4QhHYefWBTUUSUrRkiiQaxj9s+THjVU6zuzGOwTXwjc1ARxQyHkeYqzDc7TDQYnCa5MYW5nLTy6ZExfpx8j+9J7ZriSJw67sUcWv0+3m4UFyMHE4oQirwtoaRAxyT7UnXAsvqfiadkpptXSt2nrvFcHAEZ3m65Dk8v0K2O4v3+5hY/UhQ3fMHIPwRXTYBAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Comment/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Outputs": { + "GetAttCommentTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "CommentTable", + "TableStreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "GetAtt:CommentTable:StreamArn" + ] + ] + } + } + }, + "GetAttCommentTableName": { + "Description": "Your DynamoDB table name.", + "Value": "Comment-xw3yrfq7mngltcua43nucy7fg4-x", + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "GetAtt:CommentTable:Name" + ] + ] + } + } + }, + "amplifydiscussionse2esandbox11f7701e3cdataamplifyDataCommentCommentDataSourceCE9AE4FFName": { + "Value": { + "Fn::GetAtt": [ + "CommentDataSource", + "Name" + ] + } + }, + "amplifydiscussionse2esandbox11f7701e3cdataamplifyDataCommentCommentTable761EEA24TableArn": { + "Value": { + "Fn::GetAtt": [ + "CommentTable", + "TableArn" + ] + } + }, + "amplifydiscussionse2esandbox11f7701e3cdataamplifyDataCommentCommentTable761EEA24TableStreamArn": { + "Value": { + "Fn::GetAtt": [ + "CommentTable", + "TableStreamArn" + ] + } + } + } +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.outputs.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.outputs.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.parameters.json new file mode 100644 index 00000000000..6c736b0a286 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.parameters.json @@ -0,0 +1,46 @@ +[ + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataCommentNestedStackCommentNestedStackResourceD1B2144FOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataCommentCommentDataSourceCE9AE4FFName", + "ParameterValue": "CommentTable" + }, + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataPostNestedStackPostNestedStackResource6361465DOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataPostPostTable9EB88B55TableArn", + "ParameterValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Post-xw3yrfq7mngltcua43nucy7fg4-x" + }, + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataCommentNestedStackCommentNestedStackResourceD1B2144FOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataCommentCommentTable761EEA24TableArn", + "ParameterValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Comment-xw3yrfq7mngltcua43nucy7fg4-x" + }, + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref", + "ParameterValue": "amplify-discussion2604142-amplifyAuthauthenticatedU-OFERj1VQgbh0" + }, + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef", + "ParameterValue": "amplify-discussion2604142-amplifyAuthunauthenticate-RegjzqZNry1w" + }, + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId", + "ParameterValue": "wdfhzimbunbg5ahiuonmjslcb4" + }, + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataTopicNestedStackTopicNestedStackResourceD7684B5EOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataTopicTopicDataSourceD9024362Name", + "ParameterValue": "TopicTable" + }, + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataTopicNestedStackTopicNestedStackResourceD7684B5EOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataTopicTopicTableEAA04215TableArn", + "ParameterValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Topic-xw3yrfq7mngltcua43nucy7fg4-x" + }, + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataPostNestedStackPostNestedStackResource6361465DOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataPostPostDataSource59A9823FName", + "ParameterValue": "PostTable" + }, + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef", + "ParameterValue": "us-east-1:0ab20e5d-b843-4969-94b1-c17d26af9934" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.template.json new file mode 100644 index 00000000000..e4eaf5641d6 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.template.json @@ -0,0 +1,887 @@ +{ + "Resources": { + "Topicpostsauth0FunctionTopicpostsauth0FunctionAppSyncFunctionF8CB58E2": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "Topicpostsauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/98d57dc1efb9e47547e4d43b376202499240f34e43676c88c84fab62008b2bf5.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/ConnectionStack/Topicpostsauth0Function/Topicpostsauth0Function.AppSyncFunction" + } + }, + "TopicPostsDataResolverFnTopicPostsDataResolverFnAppSyncFunctionBB79629F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataPostNestedStackPostNestedStackResource6361465DOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataPostPostDataSource59A9823FName" + }, + "FunctionVersion": "2018-05-29", + "Name": "TopicPostsDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/0452137320035df37094760b82b5149298b81accf971d76ad38ee60f3b29d5e7.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/49e7a1f2fb4c809b82bed6b0242a2a3bcfa2c5276ebd2539ff330fee36f8fe18.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/ConnectionStack/TopicPostsDataResolverFn/TopicPostsDataResolverFn.AppSyncFunction" + } + }, + "TopicpostsResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "FieldName": "posts", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "Topicpostsauth0FunctionTopicpostsauth0FunctionAppSyncFunctionF8CB58E2", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "TopicPostsDataResolverFnTopicPostsDataResolverFnAppSyncFunctionBB79629F", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Topic\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"posts\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataPostNestedStackPostNestedStackResource6361465DOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataPostPostTable9EB88B55TableArn" + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Topic" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/ConnectionStack/topicPostsResolver" + } + }, + "Postcommentsauth0FunctionPostcommentsauth0FunctionAppSyncFunction0DA41083": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "Postcommentsauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/98d57dc1efb9e47547e4d43b376202499240f34e43676c88c84fab62008b2bf5.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/ConnectionStack/Postcommentsauth0Function/Postcommentsauth0Function.AppSyncFunction" + } + }, + "PostCommentsDataResolverFnPostCommentsDataResolverFnAppSyncFunction87EBA9A8": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataCommentNestedStackCommentNestedStackResourceD1B2144FOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataCommentCommentDataSourceCE9AE4FFName" + }, + "FunctionVersion": "2018-05-29", + "Name": "PostCommentsDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/444a200bade4d50fad7f149c350401ee16cad72a4c043f9e9734f522754f11ef.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/49e7a1f2fb4c809b82bed6b0242a2a3bcfa2c5276ebd2539ff330fee36f8fe18.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/ConnectionStack/PostCommentsDataResolverFn/PostCommentsDataResolverFn.AppSyncFunction" + } + }, + "PostcommentsResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "FieldName": "comments", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "Postcommentsauth0FunctionPostcommentsauth0FunctionAppSyncFunction0DA41083", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "PostCommentsDataResolverFnPostCommentsDataResolverFnAppSyncFunction87EBA9A8", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Post\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"comments\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataCommentNestedStackCommentNestedStackResourceD1B2144FOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataCommentCommentTable761EEA24TableArn" + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Post" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/ConnectionStack/postCommentsResolver" + } + }, + "Posttopicauth0FunctionPosttopicauth0FunctionAppSyncFunctionFCD7294D": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "Posttopicauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/98d57dc1efb9e47547e4d43b376202499240f34e43676c88c84fab62008b2bf5.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/ConnectionStack/Posttopicauth0Function/Posttopicauth0Function.AppSyncFunction" + } + }, + "PostTopicDataResolverFnPostTopicDataResolverFnAppSyncFunctionEF6EA503": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataTopicNestedStackTopicNestedStackResourceD7684B5EOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataTopicTopicDataSourceD9024362Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "PostTopicDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/da20b1b19b27f9de5414e30169ea8b7e9b7d0576828fa460b512ecff6b3130ec.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/dcb70e4856bc9a423e02b8b9e9c2ab3f71479784572d4c04a02d1f5b61a9f9ac.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/ConnectionStack/PostTopicDataResolverFn/PostTopicDataResolverFn.AppSyncFunction" + } + }, + "PosttopicResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "FieldName": "topic", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "Posttopicauth0FunctionPosttopicauth0FunctionAppSyncFunctionFCD7294D", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "PostTopicDataResolverFnPostTopicDataResolverFnAppSyncFunctionEF6EA503", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Post\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"topic\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataTopicNestedStackTopicNestedStackResourceD7684B5EOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataTopicTopicTableEAA04215TableArn" + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Post" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/ConnectionStack/postTopicResolver" + } + }, + "Commentpostauth0FunctionCommentpostauth0FunctionAppSyncFunction99E13BF9": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "Commentpostauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/98d57dc1efb9e47547e4d43b376202499240f34e43676c88c84fab62008b2bf5.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/ConnectionStack/Commentpostauth0Function/Commentpostauth0Function.AppSyncFunction" + } + }, + "CommentPostDataResolverFnCommentPostDataResolverFnAppSyncFunction20ABACCE": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataPostNestedStackPostNestedStackResource6361465DOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataPostPostDataSource59A9823FName" + }, + "FunctionVersion": "2018-05-29", + "Name": "CommentPostDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/d9b82f67424a0a70dc059a69c4a0bbc6fd4c387ca5ad9f1b396a96a8c7c10b62.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/dcb70e4856bc9a423e02b8b9e9c2ab3f71479784572d4c04a02d1f5b61a9f9ac.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/ConnectionStack/CommentPostDataResolverFn/CommentPostDataResolverFn.AppSyncFunction" + } + }, + "CommentpostResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "FieldName": "post", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "Commentpostauth0FunctionCommentpostauth0FunctionAppSyncFunction99E13BF9", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "CommentPostDataResolverFnCommentPostDataResolverFnAppSyncFunction20ABACCE", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Comment\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"post\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataPostNestedStackPostNestedStackResource6361465DOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataPostPostTable9EB88B55TableArn" + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Comment" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/ConnectionStack/commentPostResolver" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXMQQ6CQAxA0bO4HyoO0b2QuHQBByB1KKSAHUJnIIZwd4OuXv7mW7DXFNITrpq4ZkhGfsH2JA3UVAHdYHDVetOsRlUKCvcDoxnk0Q0UclQyOE36EQdb0cojigvspfDSchdnPMIUrZSkflxo3nfze1QBO5ZuN+Ibgl7Pi7VwuUF66pU5maMEfhOUf7+QP0CWpwAAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/ConnectionStack/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId": { + "Type": "String" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name": { + "Type": "String" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataPostNestedStackPostNestedStackResource6361465DOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataPostPostDataSource59A9823FName": { + "Type": "String" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataPostNestedStackPostNestedStackResource6361465DOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataPostPostTable9EB88B55TableArn": { + "Type": "String" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref": { + "Type": "String" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef": { + "Type": "String" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef": { + "Type": "String" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataCommentNestedStackCommentNestedStackResourceD1B2144FOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataCommentCommentDataSourceCE9AE4FFName": { + "Type": "String" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataCommentNestedStackCommentNestedStackResourceD1B2144FOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataCommentCommentTable761EEA24TableArn": { + "Type": "String" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataTopicNestedStackTopicNestedStackResourceD7684B5EOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataTopicTopicDataSourceD9024362Name": { + "Type": "String" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataTopicNestedStackTopicNestedStackResourceD7684B5EOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataTopicTopicTableEAA04215TableArn": { + "Type": "String" + } + } +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.description.txt new file mode 100644 index 00000000000..6b3d983ba60 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.description.txt @@ -0,0 +1 @@ +An auto-generated nested stack for the @function directive. diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.outputs.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.outputs.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.parameters.json new file mode 100644 index 00000000000..b15ed2b0b56 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.parameters.json @@ -0,0 +1,22 @@ +[ + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref", + "ParameterValue": "amplify-discussion2604142-amplifyAuthauthenticatedU-OFERj1VQgbh0" + }, + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef", + "ParameterValue": "amplify-discussion2604142-amplifyAuthunauthenticate-RegjzqZNry1w" + }, + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId", + "ParameterValue": "wdfhzimbunbg5ahiuonmjslcb4" + }, + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef", + "ParameterValue": "us-east-1:0ab20e5d-b843-4969-94b1-c17d26af9934" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.template.json new file mode 100644 index 00000000000..b26b96719ba --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.template.json @@ -0,0 +1,560 @@ +{ + "Description": "An auto-generated nested stack for the @function directive.", + "AWSTemplateFormatVersion": "2010-09-09", + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + "NONE", + "NONE" + ] + } + ] + }, + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Resources": { + "FetchuseractivityGen2EgfgfhficcLambdaDataSourceServiceRole8E9A234F": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/FetchuseractivityGen2EgfgfhficcLambdaDataSource/ServiceRole/Resource" + } + }, + "FetchuseractivityGen2EgfgfhficcLambdaDataSourceServiceRoleDefaultPolicy4C56F38D": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchuseractivity-gen2-x", + {} + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchuseractivity-gen2-x" + } + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchuseractivity-gen2-x", + {} + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchuseractivity-gen2-x" + } + ] + }, + ":*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "FetchuseractivityGen2EgfgfhficcLambdaDataSourceServiceRoleDefaultPolicy4C56F38D", + "Roles": [ + { + "Ref": "FetchuseractivityGen2EgfgfhficcLambdaDataSourceServiceRole8E9A234F" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/FetchuseractivityGen2EgfgfhficcLambdaDataSource/ServiceRole/DefaultPolicy/Resource" + } + }, + "FetchuseractivityGen2EgfgfhficcLambdaDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "LambdaConfig": { + "LambdaFunctionArn": { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchuseractivity-gen2-x", + {} + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchuseractivity-gen2-x" + } + ] + } + }, + "Name": "FetchuseractivityGen2EgfgfhficcLambdaDataSource", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "FetchuseractivityGen2EgfgfhficcLambdaDataSourceServiceRole8E9A234F", + "Arn" + ] + }, + "Type": "AWS_LAMBDA" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/FetchuseractivityGen2EgfgfhficcLambdaDataSource/Resource" + } + }, + "InvokeFetchuseractivityGen2EgfgfhficcLambdaDataSourceInvokeFetchuseractivityGen2EgfgfhficcLambdaDataSourceAppSyncFunction7F6BA712": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "FetchuseractivityGen2EgfgfhficcLambdaDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "InvokeFetchuseractivityGen2EgfgfhficcLambdaDataSource", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/aa9dfcd7a149591f672f38ef0fcbb8ad0a28188dc8d9ac97e7c927146756e236.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a20e304512b1fde77dc16ed9d5e0ed03817afcab629ce87ef11c99877b7b1e30.vtl" + } + }, + "DependsOn": [ + "FetchuseractivityGen2EgfgfhficcLambdaDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/InvokeFetchuseractivityGen2EgfgfhficcLambdaDataSource/InvokeFetchuseractivityGen2EgfgfhficcLambdaDataSource.AppSyncFunction" + } + }, + "QueryfetchUserActivityResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "FieldName": "fetchUserActivity", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QueryFetchUserActivityAuthFNQueryFetchUserActivityAuthFNAppSyncFunctionC061F612", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "InvokeFetchuseractivityGen2EgfgfhficcLambdaDataSourceInvokeFetchuseractivityGen2EgfgfhficcLambdaDataSourceAppSyncFunction7F6BA712", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"fetchUserActivity\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n{}\n## [End] Stash resolver specific context.. **" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/387d5992f5fc03d05de27289457dcc374a84c42a889acb504aff1031047dde00.vtl" + }, + "TypeName": "Query" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/queryFetchUserActivityResolver" + } + }, + "QueryFetchUserActivityAuthFNQueryFetchUserActivityAuthFNAppSyncFunctionC061F612": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryFetchUserActivityAuthFN", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/QueryFetchUserActivityAuthFN/QueryFetchUserActivityAuthFN.AppSyncFunction" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOQWvDMAyFf0vvjpalbPc1o6cxRvIDimorQY0jl8huKSH/fdhlh50+vSe9hxpo3mqod3jXyrqp8nyG9Zs0kusj2sm0g7RBHEcOYvCup9XjfHYIxyQ2mwdUMni96kMsrF9l+YkR+5AWSzn/X/3l2iADj2nB0twO0pEGf6NlM4wzrF3w5b7wJ3i2jyyf02Z0f0JVigofGUb3cEh2opj/2Uwx+4gjy7gZCY7goi+3poHXd6h3F2WuliSRZ4LuyV9Irx7YCwEAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Parameters": { + "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId": { + "Type": "String" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref": { + "Type": "String" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef": { + "Type": "String" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef": { + "Type": "String" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name": { + "Type": "String" + } + } +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataPostNestedStackPostNestedStackR-x.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataPostNestedStackPostNestedStackR-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataPostNestedStackPostNestedStackR-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataPostNestedStackPostNestedStackR-x.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataPostNestedStackPostNestedStackR-x.outputs.json new file mode 100644 index 00000000000..db9c414a408 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataPostNestedStackPostNestedStackR-x.outputs.json @@ -0,0 +1,26 @@ +[ + { + "OutputKey": "amplifydiscussionse2esandbox11f7701e3cdataamplifyDataPostPostTable9EB88B55TableArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Post-xw3yrfq7mngltcua43nucy7fg4-x" + }, + { + "OutputKey": "GetAttPostTableStreamArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Post-xw3yrfq7mngltcua43nucy7fg4-x/stream/2026-04-15T03:53:19.531", + "Description": "Your DynamoDB table StreamArn.", + "ExportName": "wdfhzimbunbg5ahiuonmjslcb4:GetAtt:PostTable:StreamArn" + }, + { + "OutputKey": "amplifydiscussionse2esandbox11f7701e3cdataamplifyDataPostPostDataSource59A9823FName", + "OutputValue": "PostTable" + }, + { + "OutputKey": "GetAttPostTableName", + "OutputValue": "Post-xw3yrfq7mngltcua43nucy7fg4-x", + "Description": "Your DynamoDB table name.", + "ExportName": "wdfhzimbunbg5ahiuonmjslcb4:GetAtt:PostTable:Name" + }, + { + "OutputKey": "amplifydiscussionse2esandbox11f7701e3cdataamplifyDataPostPostTable9EB88B55TableStreamArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Post-xw3yrfq7mngltcua43nucy7fg4-x/stream/2026-04-15T03:53:19.531" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataPostNestedStackPostNestedStackR-x.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataPostNestedStackPostNestedStackR-x.parameters.json new file mode 100644 index 00000000000..1b269d8851c --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataPostNestedStackPostNestedStackR-x.parameters.json @@ -0,0 +1,46 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref", + "ParameterValue": "amplify-discussion2604142-amplifyAuthauthenticatedU-OFERj1VQgbh0" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "true" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef", + "ParameterValue": "amplify-discussion2604142-amplifyAuthunauthenticate-RegjzqZNry1w" + }, + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId", + "ParameterValue": "wdfhzimbunbg5ahiuonmjslcb4" + }, + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource0F117C2FOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataAmplifyTableManagerTab02D7CFF1", + "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-discussion2604142-TableManagerCustomProvid-WOkquDMyv4zc" + }, + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef", + "ParameterValue": "us-east-1:0ab20e5d-b843-4969-94b1-c17d26af9934" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataPostNestedStackPostNestedStackR-x.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataPostNestedStackPostNestedStackR-x.template.json new file mode 100644 index 00000000000..ce254bba691 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataPostNestedStackPostNestedStackR-x.template.json @@ -0,0 +1,2087 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource0F117C2FOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataAmplifyTableManagerTab02D7CFF1": { + "Type": "String" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId": { + "Type": "String" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name": { + "Type": "String" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref": { + "Type": "String" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef": { + "Type": "String" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + "NONE", + "NONE" + ] + } + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + }, + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Resources": { + "PostTable": { + "Type": "Custom::ImportedAmplifyDynamoDBTable", + "Properties": { + "ServiceToken": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource0F117C2FOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataAmplifyTableManagerTab02D7CFF1" + }, + "tableName": "Post-xw3yrfq7mngltcua43nucy7fg4-x", + "attributeDefinitions": [ + { + "attributeName": "id", + "attributeType": "S" + }, + { + "attributeName": "topicPostsId", + "attributeType": "S" + } + ], + "keySchema": [ + { + "attributeName": "id", + "keyType": "HASH" + } + ], + "globalSecondaryIndexes": [ + { + "indexName": "gsi-Topic.posts", + "keySchema": [ + { + "attributeName": "topicPostsId", + "keyType": "HASH" + } + ], + "projection": { + "projectionType": "ALL" + }, + "provisionedThroughput": { + "readCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "writeCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + } + ], + "provisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "sseSpecification": { + "sseEnabled": false + }, + "streamSpecification": { + "streamViewType": "NEW_AND_OLD_IMAGES" + }, + "deletionProtectionEnabled": true, + "allowDestructiveGraphqlSchemaUpdates": true, + "replaceTableUponGsiUpdate": false, + "isImported": true, + "pointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "billingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Post/PostTable/Default/Default" + } + }, + "PostIAMRole83BF708F": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem", + "dynamodb:ConditionCheckItem", + "dynamodb:DescribeTable", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": "Post-xw3yrfq7mngltcua43nucy7fg4-x" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": "Post-xw3yrfq7mngltcua43nucy7fg4-x" + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess" + } + ], + "RoleName": { + "Fn::Join": [ + "", + [ + "PostIAMRolebbce9b-", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "-NONE" + ] + ] + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Post/PostIAMRole/Resource" + } + }, + "PostDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "PostTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + } + }, + "Name": "PostTable", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "PostIAMRole83BF708F", + "Arn" + ] + }, + "Type": "AMAZON_DYNAMODB" + }, + "DependsOn": [ + "PostIAMRole83BF708F" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Post/PostDataSource/Resource" + } + }, + "QuerygetPostauth0FunctionQuerygetPostauth0FunctionAppSyncFunctionB1D588DF": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetPostauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/0224a3e5097427da3f4460b5d6d2b86ad4195c9cb8da7bc13e7187eead1c3ae3.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Post/QuerygetPostauth0Function/QuerygetPostauth0Function.AppSyncFunction" + } + }, + "QuerygetPostpostAuth0FunctionQuerygetPostpostAuth0FunctionAppSyncFunctionC72E5C0F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetPostpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Post/QuerygetPostpostAuth0Function/QuerygetPostpostAuth0Function.AppSyncFunction" + } + }, + "QueryGetPostDataResolverFnQueryGetPostDataResolverFnAppSyncFunction06724190": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "PostDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryGetPostDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/08f4d557693d96c1a4efba0f9dc91330e4b19772fd5477c156468843e3d9cb5e.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4c6a2d29f01c6091bd1d9afe16e5849d456c96f17c3b215938c8067399532719.vtl" + } + }, + "DependsOn": [ + "PostDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Post/QueryGetPostDataResolverFn/QueryGetPostDataResolverFn.AppSyncFunction" + } + }, + "GetPostResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "FieldName": "getPost", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerygetPostauth0FunctionQuerygetPostauth0FunctionAppSyncFunctionB1D588DF", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetPostpostAuth0FunctionQuerygetPostpostAuth0FunctionAppSyncFunctionC72E5C0F", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryGetPostDataResolverFnQueryGetPostDataResolverFnAppSyncFunction06724190", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getPost\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "PostTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Post/queryGetPostResolver" + } + }, + "QuerylistPostsauth0FunctionQuerylistPostsauth0FunctionAppSyncFunctionCDCF8956": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerylistPostsauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/0224a3e5097427da3f4460b5d6d2b86ad4195c9cb8da7bc13e7187eead1c3ae3.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Post/QuerylistPostsauth0Function/QuerylistPostsauth0Function.AppSyncFunction" + } + }, + "QuerylistPostspostAuth0FunctionQuerylistPostspostAuth0FunctionAppSyncFunction3585C8F4": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerylistPostspostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Post/QuerylistPostspostAuth0Function/QuerylistPostspostAuth0Function.AppSyncFunction" + } + }, + "QueryListPostsDataResolverFnQueryListPostsDataResolverFnAppSyncFunction3D526AB7": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "PostDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryListPostsDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9fcbe070ecd3023c5bf5b966fa9584757db9762eef123bad0820bd87591b2174.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/cc01911d0269d4080ea57505dc445dfc315ef7ad85d3d9d4ea1357858bff451d.vtl" + } + }, + "DependsOn": [ + "PostDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Post/QueryListPostsDataResolverFn/QueryListPostsDataResolverFn.AppSyncFunction" + } + }, + "ListPostResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "FieldName": "listPosts", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerylistPostsauth0FunctionQuerylistPostsauth0FunctionAppSyncFunctionCDCF8956", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerylistPostspostAuth0FunctionQuerylistPostspostAuth0FunctionAppSyncFunction3585C8F4", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryListPostsDataResolverFnQueryListPostsDataResolverFnAppSyncFunction3D526AB7", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listPosts\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "PostTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Post/queryListPostsResolver" + } + }, + "MutationcreatePostinit0FunctionMutationcreatePostinit0FunctionAppSyncFunction9E444A7F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreatePostinit0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a183ddccbd956316c38ef97177b8f088ef0826f62023323f5ae6053d348ccffc.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Post/MutationcreatePostinit0Function/MutationcreatePostinit0Function.AppSyncFunction" + } + }, + "MutationcreatePostauth0FunctionMutationcreatePostauth0FunctionAppSyncFunctionF347AB28": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreatePostauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/d637c1fb7301003b8a5ada269338cf2e8df6cc0dc412ef13acc6158d680b6d3e.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Post/MutationcreatePostauth0Function/MutationcreatePostauth0Function.AppSyncFunction" + } + }, + "MutationcreatePostpostAuth0FunctionMutationcreatePostpostAuth0FunctionAppSyncFunction2C708069": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreatePostpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Post/MutationcreatePostpostAuth0Function/MutationcreatePostpostAuth0Function.AppSyncFunction" + } + }, + "MutationCreatePostDataResolverFnMutationCreatePostDataResolverFnAppSyncFunctionE45E2000": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "PostDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationCreatePostDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/d9c0ce2470c3063dc011dd1d638ec0a40507568b27b44b56eaf9b85a94b5f506.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "PostDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Post/MutationCreatePostDataResolverFn/MutationCreatePostDataResolverFn.AppSyncFunction" + } + }, + "CreatePostResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "FieldName": "createPost", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationcreatePostinit0FunctionMutationcreatePostinit0FunctionAppSyncFunction9E444A7F", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationcreatePostauth0FunctionMutationcreatePostauth0FunctionAppSyncFunctionF347AB28", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationcreatePostpostAuth0FunctionMutationcreatePostpostAuth0FunctionAppSyncFunction2C708069", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationCreatePostDataResolverFnMutationCreatePostDataResolverFnAppSyncFunctionE45E2000", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createPost\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "PostTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Post/mutationCreatePostResolver" + } + }, + "MutationupdatePostinit0FunctionMutationupdatePostinit0FunctionAppSyncFunctionBAC7D532": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdatePostinit0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/06db846fd14e6fc371f22b12b5545ba8e2dbfeda85d8c8d586c71c282166657b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Post/MutationupdatePostinit0Function/MutationupdatePostinit0Function.AppSyncFunction" + } + }, + "MutationupdatePostauth0FunctionMutationupdatePostauth0FunctionAppSyncFunction3E057835": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "PostDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdatePostauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/89f92efd98b1034df0e2497fe31a97de6975de554b8a22e0677d05d6efcafa59.vtl" + } + }, + "DependsOn": [ + "PostDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Post/MutationupdatePostauth0Function/MutationupdatePostauth0Function.AppSyncFunction" + } + }, + "MutationupdatePostpostAuth0FunctionMutationupdatePostpostAuth0FunctionAppSyncFunctionB977D8DD": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdatePostpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Post/MutationupdatePostpostAuth0Function/MutationupdatePostpostAuth0Function.AppSyncFunction" + } + }, + "MutationUpdatePostDataResolverFnMutationUpdatePostDataResolverFnAppSyncFunctionBF7D410D": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "PostDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationUpdatePostDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/474bf0776ec2164a13191d1a0a9e057154931e4918fea5086f49850d02a5371b.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "PostDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Post/MutationUpdatePostDataResolverFn/MutationUpdatePostDataResolverFn.AppSyncFunction" + } + }, + "UpdatePostResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "FieldName": "updatePost", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationupdatePostinit0FunctionMutationupdatePostinit0FunctionAppSyncFunctionBAC7D532", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationupdatePostauth0FunctionMutationupdatePostauth0FunctionAppSyncFunction3E057835", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationupdatePostpostAuth0FunctionMutationupdatePostpostAuth0FunctionAppSyncFunctionB977D8DD", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationUpdatePostDataResolverFnMutationUpdatePostDataResolverFnAppSyncFunctionBF7D410D", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updatePost\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "PostTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Post/mutationUpdatePostResolver" + } + }, + "MutationdeletePostauth0FunctionMutationdeletePostauth0FunctionAppSyncFunctionFBE21CB7": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "PostDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeletePostauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e3416b4d47414f29c21e59a70e83bddb959ef0625854ed7fb0ca376573e99069.vtl" + } + }, + "DependsOn": [ + "PostDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Post/MutationdeletePostauth0Function/MutationdeletePostauth0Function.AppSyncFunction" + } + }, + "MutationdeletePostpostAuth0FunctionMutationdeletePostpostAuth0FunctionAppSyncFunctionFF4E884F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeletePostpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Post/MutationdeletePostpostAuth0Function/MutationdeletePostpostAuth0Function.AppSyncFunction" + } + }, + "MutationDeletePostDataResolverFnMutationDeletePostDataResolverFnAppSyncFunction45B37C12": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "PostDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationDeletePostDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4f7907d1209a2c9953a0c053df402c634e359546d70c7cc5c2e8e21ea734880f.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "PostDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Post/MutationDeletePostDataResolverFn/MutationDeletePostDataResolverFn.AppSyncFunction" + } + }, + "DeletePostResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "FieldName": "deletePost", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationdeletePostauth0FunctionMutationdeletePostauth0FunctionAppSyncFunctionFBE21CB7", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationdeletePostpostAuth0FunctionMutationdeletePostpostAuth0FunctionAppSyncFunctionFF4E884F", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationDeletePostDataResolverFnMutationDeletePostDataResolverFnAppSyncFunction45B37C12", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deletePost\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "PostTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Post/mutationDeletePostResolver" + } + }, + "SubscriptiononCreatePostauth0FunctionSubscriptiononCreatePostauth0FunctionAppSyncFunction24934FF1": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononCreatePostauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e6da5a6e993df8b5fdc91086b71eb53e72a3a97c98836ef9c9257776f36c452b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Post/SubscriptiononCreatePostauth0Function/SubscriptiononCreatePostauth0Function.AppSyncFunction" + } + }, + "SubscriptiononCreatePostpostAuth0FunctionSubscriptiononCreatePostpostAuth0FunctionAppSyncFunction3197D95D": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononCreatePostpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Post/SubscriptiononCreatePostpostAuth0Function/SubscriptiononCreatePostpostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnCreatePostDataResolverFnSubscriptionOnCreatePostDataResolverFnAppSyncFunctionB4572868": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnCreatePostDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Post/SubscriptionOnCreatePostDataResolverFn/SubscriptionOnCreatePostDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononCreatePostResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "FieldName": "onCreatePost", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononCreatePostauth0FunctionSubscriptiononCreatePostauth0FunctionAppSyncFunction24934FF1", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononCreatePostpostAuth0FunctionSubscriptiononCreatePostpostAuth0FunctionAppSyncFunction3197D95D", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnCreatePostDataResolverFnSubscriptionOnCreatePostDataResolverFnAppSyncFunctionB4572868", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreatePost\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Post/subscriptionOnCreatePostResolver" + } + }, + "SubscriptiononUpdatePostauth0FunctionSubscriptiononUpdatePostauth0FunctionAppSyncFunction503CE6B6": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononUpdatePostauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e6da5a6e993df8b5fdc91086b71eb53e72a3a97c98836ef9c9257776f36c452b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Post/SubscriptiononUpdatePostauth0Function/SubscriptiononUpdatePostauth0Function.AppSyncFunction" + } + }, + "SubscriptiononUpdatePostpostAuth0FunctionSubscriptiononUpdatePostpostAuth0FunctionAppSyncFunction3D79B6CB": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononUpdatePostpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Post/SubscriptiononUpdatePostpostAuth0Function/SubscriptiononUpdatePostpostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnUpdatePostDataResolverFnSubscriptionOnUpdatePostDataResolverFnAppSyncFunction325AAFC9": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnUpdatePostDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Post/SubscriptionOnUpdatePostDataResolverFn/SubscriptionOnUpdatePostDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononUpdatePostResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "FieldName": "onUpdatePost", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononUpdatePostauth0FunctionSubscriptiononUpdatePostauth0FunctionAppSyncFunction503CE6B6", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononUpdatePostpostAuth0FunctionSubscriptiononUpdatePostpostAuth0FunctionAppSyncFunction3D79B6CB", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnUpdatePostDataResolverFnSubscriptionOnUpdatePostDataResolverFnAppSyncFunction325AAFC9", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdatePost\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Post/subscriptionOnUpdatePostResolver" + } + }, + "SubscriptiononDeletePostauth0FunctionSubscriptiononDeletePostauth0FunctionAppSyncFunction79C0574D": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononDeletePostauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e6da5a6e993df8b5fdc91086b71eb53e72a3a97c98836ef9c9257776f36c452b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Post/SubscriptiononDeletePostauth0Function/SubscriptiononDeletePostauth0Function.AppSyncFunction" + } + }, + "SubscriptiononDeletePostpostAuth0FunctionSubscriptiononDeletePostpostAuth0FunctionAppSyncFunction80B1275A": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononDeletePostpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Post/SubscriptiononDeletePostpostAuth0Function/SubscriptiononDeletePostpostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnDeletePostDataResolverFnSubscriptionOnDeletePostDataResolverFnAppSyncFunction9D84E829": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnDeletePostDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Post/SubscriptionOnDeletePostDataResolverFn/SubscriptionOnDeletePostDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononDeletePostResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "FieldName": "onDeletePost", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononDeletePostauth0FunctionSubscriptiononDeletePostauth0FunctionAppSyncFunction79C0574D", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononDeletePostpostAuth0FunctionSubscriptiononDeletePostpostAuth0FunctionAppSyncFunction80B1275A", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnDeletePostDataResolverFnSubscriptionOnDeletePostDataResolverFnAppSyncFunction9D84E829", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeletePost\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Post/subscriptionOnDeletePostResolver" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOwW6DMAyGn6X31GNU230F7bhNsHtlEoNSwEGx06pCvPsEnTrt9PuTP9l/DvlLBtkOr7K3rt8PvoH5g0TJ1Yq2N0XLXxhxJKW4QhHYefWBTUUSUrRkiiQaxj9s+THjVU6zuzGOwTXwjc1ARxQyHkeYqzDc7TDQYnCa5MYW5nLTy6ZExfpx8j+9J7ZriSJw67sUcWv0+3m4UFyMHE4oQirwtoaRAxyT7UnXAsvqfiadkpptXSt2nrvFcHAEZ3m65Dk8v0K2O4v3+5hY/UhQ3fMHIPwRXTYBAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Post/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Outputs": { + "GetAttPostTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "PostTable", + "TableStreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "GetAtt:PostTable:StreamArn" + ] + ] + } + } + }, + "GetAttPostTableName": { + "Description": "Your DynamoDB table name.", + "Value": "Post-xw3yrfq7mngltcua43nucy7fg4-x", + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "GetAtt:PostTable:Name" + ] + ] + } + } + }, + "amplifydiscussionse2esandbox11f7701e3cdataamplifyDataPostPostDataSource59A9823FName": { + "Value": { + "Fn::GetAtt": [ + "PostDataSource", + "Name" + ] + } + }, + "amplifydiscussionse2esandbox11f7701e3cdataamplifyDataPostPostTable9EB88B55TableArn": { + "Value": { + "Fn::GetAtt": [ + "PostTable", + "TableArn" + ] + } + }, + "amplifydiscussionse2esandbox11f7701e3cdataamplifyDataPostPostTable9EB88B55TableStreamArn": { + "Value": { + "Fn::GetAtt": [ + "PostTable", + "TableStreamArn" + ] + } + } + } +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataTopicNestedStackTopicNestedStac-x.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataTopicNestedStackTopicNestedStac-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataTopicNestedStackTopicNestedStac-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataTopicNestedStackTopicNestedStac-x.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataTopicNestedStackTopicNestedStac-x.outputs.json new file mode 100644 index 00000000000..df6f1e101a2 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataTopicNestedStackTopicNestedStac-x.outputs.json @@ -0,0 +1,26 @@ +[ + { + "OutputKey": "GetAttTopicTableStreamArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Topic-xw3yrfq7mngltcua43nucy7fg4-x/stream/2026-04-15T03:52:31.420", + "Description": "Your DynamoDB table StreamArn.", + "ExportName": "wdfhzimbunbg5ahiuonmjslcb4:GetAtt:TopicTable:StreamArn" + }, + { + "OutputKey": "GetAttTopicTableName", + "OutputValue": "Topic-xw3yrfq7mngltcua43nucy7fg4-x", + "Description": "Your DynamoDB table name.", + "ExportName": "wdfhzimbunbg5ahiuonmjslcb4:GetAtt:TopicTable:Name" + }, + { + "OutputKey": "amplifydiscussionse2esandbox11f7701e3cdataamplifyDataTopicTopicTableEAA04215TableArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Topic-xw3yrfq7mngltcua43nucy7fg4-x" + }, + { + "OutputKey": "amplifydiscussionse2esandbox11f7701e3cdataamplifyDataTopicTopicTableEAA04215TableStreamArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Topic-xw3yrfq7mngltcua43nucy7fg4-x/stream/2026-04-15T03:52:31.420" + }, + { + "OutputKey": "amplifydiscussionse2esandbox11f7701e3cdataamplifyDataTopicTopicDataSourceD9024362Name", + "OutputValue": "TopicTable" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataTopicNestedStackTopicNestedStac-x.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataTopicNestedStackTopicNestedStac-x.parameters.json new file mode 100644 index 00000000000..1b269d8851c --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataTopicNestedStackTopicNestedStac-x.parameters.json @@ -0,0 +1,46 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref", + "ParameterValue": "amplify-discussion2604142-amplifyAuthauthenticatedU-OFERj1VQgbh0" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "true" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef", + "ParameterValue": "amplify-discussion2604142-amplifyAuthunauthenticate-RegjzqZNry1w" + }, + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId", + "ParameterValue": "wdfhzimbunbg5ahiuonmjslcb4" + }, + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource0F117C2FOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataAmplifyTableManagerTab02D7CFF1", + "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-discussion2604142-TableManagerCustomProvid-WOkquDMyv4zc" + }, + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef", + "ParameterValue": "us-east-1:0ab20e5d-b843-4969-94b1-c17d26af9934" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataTopicNestedStackTopicNestedStac-x.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataTopicNestedStackTopicNestedStac-x.template.json new file mode 100644 index 00000000000..f7a5ddad6d6 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-amplifyDataTopicNestedStackTopicNestedStac-x.template.json @@ -0,0 +1,2061 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource0F117C2FOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataAmplifyTableManagerTab02D7CFF1": { + "Type": "String" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId": { + "Type": "String" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name": { + "Type": "String" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref": { + "Type": "String" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef": { + "Type": "String" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + "NONE", + "NONE" + ] + } + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + }, + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Resources": { + "TopicTable": { + "Type": "Custom::ImportedAmplifyDynamoDBTable", + "Properties": { + "ServiceToken": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource0F117C2FOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataAmplifyTableManagerTab02D7CFF1" + }, + "tableName": "Topic-xw3yrfq7mngltcua43nucy7fg4-x", + "attributeDefinitions": [ + { + "attributeName": "id", + "attributeType": "S" + } + ], + "keySchema": [ + { + "attributeName": "id", + "keyType": "HASH" + } + ], + "provisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "sseSpecification": { + "sseEnabled": false + }, + "streamSpecification": { + "streamViewType": "NEW_AND_OLD_IMAGES" + }, + "deletionProtectionEnabled": true, + "allowDestructiveGraphqlSchemaUpdates": true, + "replaceTableUponGsiUpdate": false, + "isImported": true, + "pointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "billingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Topic/TopicTable/Default/Default" + } + }, + "TopicIAMRoleD9B4C845": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem", + "dynamodb:ConditionCheckItem", + "dynamodb:DescribeTable", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": "Topic-xw3yrfq7mngltcua43nucy7fg4-x" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": "Topic-xw3yrfq7mngltcua43nucy7fg4-x" + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess" + } + ], + "RoleName": { + "Fn::Join": [ + "", + [ + "TopicIAMRole014e70-", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "-NONE" + ] + ] + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Topic/TopicIAMRole/Resource" + } + }, + "TopicDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "TopicTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + } + }, + "Name": "TopicTable", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "TopicIAMRoleD9B4C845", + "Arn" + ] + }, + "Type": "AMAZON_DYNAMODB" + }, + "DependsOn": [ + "TopicIAMRoleD9B4C845" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Topic/TopicDataSource/Resource" + } + }, + "QuerygetTopicauth0FunctionQuerygetTopicauth0FunctionAppSyncFunction2B9304CA": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetTopicauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/0224a3e5097427da3f4460b5d6d2b86ad4195c9cb8da7bc13e7187eead1c3ae3.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Topic/QuerygetTopicauth0Function/QuerygetTopicauth0Function.AppSyncFunction" + } + }, + "QuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction6FE846B8": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetTopicpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Topic/QuerygetTopicpostAuth0Function/QuerygetTopicpostAuth0Function.AppSyncFunction" + } + }, + "QueryGetTopicDataResolverFnQueryGetTopicDataResolverFnAppSyncFunction82CCA00A": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TopicDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryGetTopicDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/08f4d557693d96c1a4efba0f9dc91330e4b19772fd5477c156468843e3d9cb5e.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4c6a2d29f01c6091bd1d9afe16e5849d456c96f17c3b215938c8067399532719.vtl" + } + }, + "DependsOn": [ + "TopicDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Topic/QueryGetTopicDataResolverFn/QueryGetTopicDataResolverFn.AppSyncFunction" + } + }, + "GetTopicResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "FieldName": "getTopic", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerygetTopicauth0FunctionQuerygetTopicauth0FunctionAppSyncFunction2B9304CA", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction6FE846B8", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryGetTopicDataResolverFnQueryGetTopicDataResolverFnAppSyncFunction82CCA00A", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getTopic\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "TopicTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Topic/queryGetTopicResolver" + } + }, + "QuerylistTopicsauth0FunctionQuerylistTopicsauth0FunctionAppSyncFunction1187D7E0": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerylistTopicsauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/0224a3e5097427da3f4460b5d6d2b86ad4195c9cb8da7bc13e7187eead1c3ae3.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Topic/QuerylistTopicsauth0Function/QuerylistTopicsauth0Function.AppSyncFunction" + } + }, + "QuerylistTopicspostAuth0FunctionQuerylistTopicspostAuth0FunctionAppSyncFunction8BDF1FB2": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerylistTopicspostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Topic/QuerylistTopicspostAuth0Function/QuerylistTopicspostAuth0Function.AppSyncFunction" + } + }, + "QueryListTopicsDataResolverFnQueryListTopicsDataResolverFnAppSyncFunction26E7FF8F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TopicDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryListTopicsDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9fcbe070ecd3023c5bf5b966fa9584757db9762eef123bad0820bd87591b2174.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/cc01911d0269d4080ea57505dc445dfc315ef7ad85d3d9d4ea1357858bff451d.vtl" + } + }, + "DependsOn": [ + "TopicDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Topic/QueryListTopicsDataResolverFn/QueryListTopicsDataResolverFn.AppSyncFunction" + } + }, + "ListTopicResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "FieldName": "listTopics", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerylistTopicsauth0FunctionQuerylistTopicsauth0FunctionAppSyncFunction1187D7E0", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerylistTopicspostAuth0FunctionQuerylistTopicspostAuth0FunctionAppSyncFunction8BDF1FB2", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryListTopicsDataResolverFnQueryListTopicsDataResolverFnAppSyncFunction26E7FF8F", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listTopics\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "TopicTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Topic/queryListTopicsResolver" + } + }, + "MutationcreateTopicinit0FunctionMutationcreateTopicinit0FunctionAppSyncFunction4DB06436": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateTopicinit0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a183ddccbd956316c38ef97177b8f088ef0826f62023323f5ae6053d348ccffc.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Topic/MutationcreateTopicinit0Function/MutationcreateTopicinit0Function.AppSyncFunction" + } + }, + "MutationcreateTopicauth0FunctionMutationcreateTopicauth0FunctionAppSyncFunction47662DC9": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateTopicauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/d637c1fb7301003b8a5ada269338cf2e8df6cc0dc412ef13acc6158d680b6d3e.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Topic/MutationcreateTopicauth0Function/MutationcreateTopicauth0Function.AppSyncFunction" + } + }, + "MutationcreateTopicpostAuth0FunctionMutationcreateTopicpostAuth0FunctionAppSyncFunction43D15A5A": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateTopicpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Topic/MutationcreateTopicpostAuth0Function/MutationcreateTopicpostAuth0Function.AppSyncFunction" + } + }, + "MutationCreateTopicDataResolverFnMutationCreateTopicDataResolverFnAppSyncFunction3A6C31C4": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TopicDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationCreateTopicDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/ca0a2092670d57f0d8f4bf761892a704a1e6511c2f50757265b4b4ff9b33cdf2.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "TopicDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Topic/MutationCreateTopicDataResolverFn/MutationCreateTopicDataResolverFn.AppSyncFunction" + } + }, + "CreateTopicResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "FieldName": "createTopic", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationcreateTopicinit0FunctionMutationcreateTopicinit0FunctionAppSyncFunction4DB06436", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationcreateTopicauth0FunctionMutationcreateTopicauth0FunctionAppSyncFunction47662DC9", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationcreateTopicpostAuth0FunctionMutationcreateTopicpostAuth0FunctionAppSyncFunction43D15A5A", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationCreateTopicDataResolverFnMutationCreateTopicDataResolverFnAppSyncFunction3A6C31C4", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createTopic\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "TopicTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Topic/mutationCreateTopicResolver" + } + }, + "MutationupdateTopicinit0FunctionMutationupdateTopicinit0FunctionAppSyncFunction64D17734": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateTopicinit0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/06db846fd14e6fc371f22b12b5545ba8e2dbfeda85d8c8d586c71c282166657b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Topic/MutationupdateTopicinit0Function/MutationupdateTopicinit0Function.AppSyncFunction" + } + }, + "MutationupdateTopicauth0FunctionMutationupdateTopicauth0FunctionAppSyncFunction56C81857": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TopicDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateTopicauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/89f92efd98b1034df0e2497fe31a97de6975de554b8a22e0677d05d6efcafa59.vtl" + } + }, + "DependsOn": [ + "TopicDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Topic/MutationupdateTopicauth0Function/MutationupdateTopicauth0Function.AppSyncFunction" + } + }, + "MutationupdateTopicpostAuth0FunctionMutationupdateTopicpostAuth0FunctionAppSyncFunctionE2BE291F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateTopicpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Topic/MutationupdateTopicpostAuth0Function/MutationupdateTopicpostAuth0Function.AppSyncFunction" + } + }, + "MutationUpdateTopicDataResolverFnMutationUpdateTopicDataResolverFnAppSyncFunctionDA5D9F2F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TopicDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationUpdateTopicDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/474bf0776ec2164a13191d1a0a9e057154931e4918fea5086f49850d02a5371b.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "TopicDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Topic/MutationUpdateTopicDataResolverFn/MutationUpdateTopicDataResolverFn.AppSyncFunction" + } + }, + "UpdateTopicResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "FieldName": "updateTopic", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationupdateTopicinit0FunctionMutationupdateTopicinit0FunctionAppSyncFunction64D17734", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationupdateTopicauth0FunctionMutationupdateTopicauth0FunctionAppSyncFunction56C81857", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationupdateTopicpostAuth0FunctionMutationupdateTopicpostAuth0FunctionAppSyncFunctionE2BE291F", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationUpdateTopicDataResolverFnMutationUpdateTopicDataResolverFnAppSyncFunctionDA5D9F2F", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateTopic\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "TopicTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Topic/mutationUpdateTopicResolver" + } + }, + "MutationdeleteTopicauth0FunctionMutationdeleteTopicauth0FunctionAppSyncFunctionDA9FFFB5": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TopicDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeleteTopicauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e3416b4d47414f29c21e59a70e83bddb959ef0625854ed7fb0ca376573e99069.vtl" + } + }, + "DependsOn": [ + "TopicDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Topic/MutationdeleteTopicauth0Function/MutationdeleteTopicauth0Function.AppSyncFunction" + } + }, + "MutationdeleteTopicpostAuth0FunctionMutationdeleteTopicpostAuth0FunctionAppSyncFunction88A19A50": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeleteTopicpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Topic/MutationdeleteTopicpostAuth0Function/MutationdeleteTopicpostAuth0Function.AppSyncFunction" + } + }, + "MutationDeleteTopicDataResolverFnMutationDeleteTopicDataResolverFnAppSyncFunction13577BCB": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TopicDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationDeleteTopicDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4f7907d1209a2c9953a0c053df402c634e359546d70c7cc5c2e8e21ea734880f.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "TopicDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Topic/MutationDeleteTopicDataResolverFn/MutationDeleteTopicDataResolverFn.AppSyncFunction" + } + }, + "DeleteTopicResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "FieldName": "deleteTopic", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationdeleteTopicauth0FunctionMutationdeleteTopicauth0FunctionAppSyncFunctionDA9FFFB5", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationdeleteTopicpostAuth0FunctionMutationdeleteTopicpostAuth0FunctionAppSyncFunction88A19A50", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationDeleteTopicDataResolverFnMutationDeleteTopicDataResolverFnAppSyncFunction13577BCB", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteTopic\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "TopicTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Topic/mutationDeleteTopicResolver" + } + }, + "SubscriptiononCreateTopicauth0FunctionSubscriptiononCreateTopicauth0FunctionAppSyncFunction1736E1E4": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononCreateTopicauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e6da5a6e993df8b5fdc91086b71eb53e72a3a97c98836ef9c9257776f36c452b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Topic/SubscriptiononCreateTopicauth0Function/SubscriptiononCreateTopicauth0Function.AppSyncFunction" + } + }, + "SubscriptiononCreateTopicpostAuth0FunctionSubscriptiononCreateTopicpostAuth0FunctionAppSyncFunction373CF368": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononCreateTopicpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Topic/SubscriptiononCreateTopicpostAuth0Function/SubscriptiononCreateTopicpostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnCreateTopicDataResolverFnSubscriptionOnCreateTopicDataResolverFnAppSyncFunctionE8F09879": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnCreateTopicDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Topic/SubscriptionOnCreateTopicDataResolverFn/SubscriptionOnCreateTopicDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononCreateTopicResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "FieldName": "onCreateTopic", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononCreateTopicauth0FunctionSubscriptiononCreateTopicauth0FunctionAppSyncFunction1736E1E4", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononCreateTopicpostAuth0FunctionSubscriptiononCreateTopicpostAuth0FunctionAppSyncFunction373CF368", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnCreateTopicDataResolverFnSubscriptionOnCreateTopicDataResolverFnAppSyncFunctionE8F09879", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateTopic\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Topic/subscriptionOnCreateTopicResolver" + } + }, + "SubscriptiononUpdateTopicauth0FunctionSubscriptiononUpdateTopicauth0FunctionAppSyncFunction001BB6BF": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononUpdateTopicauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e6da5a6e993df8b5fdc91086b71eb53e72a3a97c98836ef9c9257776f36c452b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Topic/SubscriptiononUpdateTopicauth0Function/SubscriptiononUpdateTopicauth0Function.AppSyncFunction" + } + }, + "SubscriptiononUpdateTopicpostAuth0FunctionSubscriptiononUpdateTopicpostAuth0FunctionAppSyncFunctionADC7CEF5": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononUpdateTopicpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Topic/SubscriptiononUpdateTopicpostAuth0Function/SubscriptiononUpdateTopicpostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnUpdateTopicDataResolverFnSubscriptionOnUpdateTopicDataResolverFnAppSyncFunction00E3A612": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnUpdateTopicDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Topic/SubscriptionOnUpdateTopicDataResolverFn/SubscriptionOnUpdateTopicDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononUpdateTopicResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "FieldName": "onUpdateTopic", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononUpdateTopicauth0FunctionSubscriptiononUpdateTopicauth0FunctionAppSyncFunction001BB6BF", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononUpdateTopicpostAuth0FunctionSubscriptiononUpdateTopicpostAuth0FunctionAppSyncFunctionADC7CEF5", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnUpdateTopicDataResolverFnSubscriptionOnUpdateTopicDataResolverFnAppSyncFunction00E3A612", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateTopic\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Topic/subscriptionOnUpdateTopicResolver" + } + }, + "SubscriptiononDeleteTopicauth0FunctionSubscriptiononDeleteTopicauth0FunctionAppSyncFunction42E663CA": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononDeleteTopicauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e6da5a6e993df8b5fdc91086b71eb53e72a3a97c98836ef9c9257776f36c452b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Topic/SubscriptiononDeleteTopicauth0Function/SubscriptiononDeleteTopicauth0Function.AppSyncFunction" + } + }, + "SubscriptiononDeleteTopicpostAuth0FunctionSubscriptiononDeleteTopicpostAuth0FunctionAppSyncFunction3A524E2D": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononDeleteTopicpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Topic/SubscriptiononDeleteTopicpostAuth0Function/SubscriptiononDeleteTopicpostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnDeleteTopicDataResolverFnSubscriptionOnDeleteTopicDataResolverFnAppSyncFunctionCF6472E5": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnDeleteTopicDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Topic/SubscriptionOnDeleteTopicDataResolverFn/SubscriptionOnDeleteTopicDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononDeleteTopicResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "FieldName": "onDeleteTopic", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononDeleteTopicauth0FunctionSubscriptiononDeleteTopicauth0FunctionAppSyncFunction42E663CA", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononDeleteTopicpostAuth0FunctionSubscriptiononDeleteTopicpostAuth0FunctionAppSyncFunction3A524E2D", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnDeleteTopicDataResolverFnSubscriptionOnDeleteTopicDataResolverFnAppSyncFunctionCF6472E5", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteTopic\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Topic/subscriptionOnDeleteTopicResolver" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOwW6DMAyGn6X31GNU230F7bhNsHtlEoNSwEGx06pCvPsEnTrt9PuTP9l/DvlLBtkOr7K3rt8PvoH5g0TJ1Yq2N0XLXxhxJKW4QhHYefWBTUUSUrRkiiQaxj9s+THjVU6zuzGOwTXwjc1ARxQyHkeYqzDc7TDQYnCa5MYW5nLTy6ZExfpx8j+9J7ZriSJw67sUcWv0+3m4UFyMHE4oQirwtoaRAxyT7UnXAsvqfiadkpptXSt2nrvFcHAEZ3m65Dk8v0K2O4v3+5hY/UhQ3fMHIPwRXTYBAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Topic/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Outputs": { + "GetAttTopicTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "TopicTable", + "TableStreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "GetAtt:TopicTable:StreamArn" + ] + ] + } + } + }, + "GetAttTopicTableName": { + "Description": "Your DynamoDB table name.", + "Value": "Topic-xw3yrfq7mngltcua43nucy7fg4-x", + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + }, + "GetAtt:TopicTable:Name" + ] + ] + } + } + }, + "amplifydiscussionse2esandbox11f7701e3cdataamplifyDataTopicTopicDataSourceD9024362Name": { + "Value": { + "Fn::GetAtt": [ + "TopicDataSource", + "Name" + ] + } + }, + "amplifydiscussionse2esandbox11f7701e3cdataamplifyDataTopicTopicTableEAA04215TableArn": { + "Value": { + "Fn::GetAtt": [ + "TopicTable", + "TableArn" + ] + } + }, + "amplifydiscussionse2esandbox11f7701e3cdataamplifyDataTopicTopicTableEAA04215TableStreamArn": { + "Value": { + "Fn::GetAtt": [ + "TopicTable", + "TableStreamArn" + ] + } + } + } +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-auth179371D7-x.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-auth179371D7-x.description.txt new file mode 100644 index 00000000000..b66e3e0b9e2 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-auth179371D7-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"AmplifySandbox","createdWith":"1.11.2","stackType":"auth-Cognito","metadata":{}} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-auth179371D7-x.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-auth179371D7-x.outputs.json new file mode 100644 index 00000000000..034ca62bd14 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-auth179371D7-x.outputs.json @@ -0,0 +1,22 @@ +[ + { + "OutputKey": "amplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef", + "OutputValue": "us-east-1:0ab20e5d-b843-4969-94b1-c17d26af9934" + }, + { + "OutputKey": "amplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef", + "OutputValue": "amplify-discussion2604142-amplifyAuthunauthenticate-RegjzqZNry1w" + }, + { + "OutputKey": "amplifydiscussionse2esandbox11f7701e3cauthamplifyAuthUserPool78F21D47Ref", + "OutputValue": "us-east-1_QiMcYOBJq" + }, + { + "OutputKey": "amplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref", + "OutputValue": "amplify-discussion2604142-amplifyAuthauthenticatedU-OFERj1VQgbh0" + }, + { + "OutputKey": "amplifydiscussionse2esandbox11f7701e3cauthamplifyAuthUserPoolAppClientC0A8CDEFRef", + "OutputValue": "5fmpdjh49lauff16m1r548ug0t" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-auth179371D7-x.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-auth179371D7-x.parameters.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-auth179371D7-x.parameters.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-auth179371D7-x.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-auth179371D7-x.template.json new file mode 100644 index 00000000000..2871c31a823 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-auth179371D7-x.template.json @@ -0,0 +1,637 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", + "Resources": { + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AccountRecoverySetting": { + "RecoveryMechanisms": [ + { + "Name": "verified_email", + "Priority": 1 + } + ] + }, + "AdminCreateUserConfig": { + "AllowAdminCreateUserOnly": false + }, + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Here is your verification code {####}", + "EmailVerificationSubject": "Verification", + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": 8, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false, + "TemporaryPasswordValidityDays": 7 + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + }, + { + "Mutable": true, + "Name": "phone_number", + "Required": true + } + ], + "SmsVerificationMessage": "The verification code to your new account is {####}", + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolTags": { + "amplify:deployment-type": "sandbox", + "amplify:friendly-name": "amplifyAuth", + "created-by": "amplify" + }, + "UsernameAttributes": [ + "phone_number" + ], + "UsernameConfiguration": { + "CaseSensitive": false + }, + "VerificationMessageTemplate": { + "DefaultEmailOption": "CONFIRM_WITH_CODE", + "EmailMessage": "Here is your verification code {####}", + "EmailSubject": "Verification", + "SmsMessage": "The verification code to your new account is {####}" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/auth/amplifyAuth/UserPool/Resource" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 172800, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": { + "Ref": "amplifyAuthUserPool4BA7F805" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlows": [ + "code" + ], + "AllowedOAuthFlowsUserPoolClient": true, + "AllowedOAuthScopes": [ + "profile", + "phone", + "email", + "openid", + "aws.cognito.signin.user.admin" + ], + "CallbackURLs": [ + "https://example.com" + ], + "ExplicitAuthFlows": [ + "ALLOW_CUSTOM_AUTH", + "ALLOW_USER_SRP_AUTH", + "ALLOW_REFRESH_TOKEN_AUTH" + ], + "PreventUserExistenceErrors": "ENABLED", + "SupportedIdentityProviders": [ + "COGNITO" + ], + "UserPoolId": { + "Ref": "amplifyAuthUserPool4BA7F805" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/auth/amplifyAuth/UserPoolAppClient/Resource" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": false, + "CognitoIdentityProviders": [ + { + "ClientId": { + "Ref": "amplifyAuthUserPoolAppClient2626C6F8" + }, + "ProviderName": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + { + "Ref": "amplifyAuthUserPool4BA7F805" + } + ] + ] + } + } + ], + "IdentityPoolTags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "SupportedLoginProviders": {} + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/auth/amplifyAuth/IdentityPool" + } + }, + "amplifyAuthauthenticatedUserRoleD8DA3689": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/auth/amplifyAuth/authenticatedUserRole/Resource" + } + }, + "amplifyAuthunauthenticatedUserRole2B524D9E": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "unauthenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/auth/amplifyAuth/unauthenticatedUserRole/Resource" + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + }, + "RoleMappings": { + "UserPoolWebClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + { + "Ref": "amplifyAuthUserPool4BA7F805" + }, + ":", + { + "Ref": "amplifyAuthUserPoolAppClient2626C6F8" + } + ] + ] + }, + "Type": "Token" + } + }, + "Roles": { + "unauthenticated": { + "Fn::GetAtt": [ + "amplifyAuthunauthenticatedUserRole2B524D9E", + "Arn" + ] + }, + "authenticated": { + "Fn::GetAtt": [ + "amplifyAuthauthenticatedUserRoleD8DA3689", + "Arn" + ] + } + } + }, + "DependsOn": [ + "amplifyAuthIdentityPool3FDE84CC", + "amplifyAuthUserPoolAppClient2626C6F8" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/auth/amplifyAuth/IdentityPoolRoleAttachment" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/02LwQrCMBBEv6X3dK0BvUtPXkQqniUmq26bbqBZLRLy71Kk2tPMvJnRoDcVVIUZY2ldV3q6QjpgFHQnMbZTZoyXZMOdSQKkc8ThGIJX9Y1/fja1J2RZVn+yd8hC8p7Py9wEjzsRYx89smRFpoc0wWk4ac5ZcXAIbVy9tIb1FqqijUTl8GShHqH56gf10GUazgAAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/auth/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifydiscussionse2esandbox11f7701e3cauthamplifyAuthUserPool78F21D47Ref": { + "Value": { + "Ref": "amplifyAuthUserPool4BA7F805" + } + }, + "amplifydiscussionse2esandbox11f7701e3cauthamplifyAuthUserPoolAppClientC0A8CDEFRef": { + "Value": { + "Ref": "amplifyAuthUserPoolAppClient2626C6F8" + } + }, + "amplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef": { + "Value": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } + }, + "amplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref": { + "Value": { + "Ref": "amplifyAuthauthenticatedUserRoleD8DA3689" + } + }, + "amplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef": { + "Value": { + "Ref": "amplifyAuthunauthenticatedUserRole2B524D9E" + } + } + } +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-data7552DF31-x.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-data7552DF31-x.description.txt new file mode 100644 index 00000000000..e1c50802cb1 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-data7552DF31-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"AmplifySandbox","createdWith":"1.21.2","stackType":"api-AppSync","metadata":{"dataSources":"dynamodb","authorizationModes":"amazon_cognito_identity_pools,amazon_cognito_user_pools,api_key,aws_iam","customOperations":"queries"}} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-data7552DF31-x.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-data7552DF31-x.outputs.json new file mode 100644 index 00000000000..3bacc4c2853 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-data7552DF31-x.outputs.json @@ -0,0 +1,30 @@ +[ + { + "OutputKey": "amplifydiscussionse2esandbox11f7701e3cdataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB011B1B49DestinationBucketArn", + "OutputValue": "arn:aws:s3:::amplify-discussion2604142-amplifydataamplifycodege-gpp6ytfvylbo" + }, + { + "OutputKey": "amplifydiscussionse2esandbox11f7701e3cdataamplifyDataPostNestedStackPostNestedStackResource6361465DOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataPostPostTable9EB88B55TableStreamArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Post-xw3yrfq7mngltcua43nucy7fg4-x/stream/2026-04-15T03:53:19.531" + }, + { + "OutputKey": "amplifydiscussionse2esandbox11f7701e3cdataamplifyDataCommentNestedStackCommentNestedStackResourceD1B2144FOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataCommentCommentTable761EEA24TableStreamArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Comment-xw3yrfq7mngltcua43nucy7fg4-x/stream/2026-04-15T03:53:19.114" + }, + { + "OutputKey": "amplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId", + "OutputValue": "wdfhzimbunbg5ahiuonmjslcb4" + }, + { + "OutputKey": "amplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AGraphQLUrl", + "OutputValue": "https://wlcb7lqbhjdkdhfmcc5xqlkpgi.appsync-api.us-east-1.amazonaws.com/graphql" + }, + { + "OutputKey": "amplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPIDefaultApiKeyD6D1106AApiKey", + "OutputValue": "da2-fakeapikey00000000000000" + }, + { + "OutputKey": "amplifydiscussionse2esandbox11f7701e3cdataamplifyDataTopicNestedStackTopicNestedStackResourceD7684B5EOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataTopicTopicTableEAA04215TableStreamArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Topic-xw3yrfq7mngltcua43nucy7fg4-x/stream/2026-04-15T03:52:31.420" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-data7552DF31-x.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-data7552DF31-x.parameters.json new file mode 100644 index 00000000000..6a41fdce00d --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-data7552DF31-x.parameters.json @@ -0,0 +1,38 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref", + "ParameterValue": "amplify-discussion2604142-amplifyAuthauthenticatedU-OFERj1VQgbh0" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "true" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthUserPool78F21D47Ref", + "ParameterValue": "us-east-1_QiMcYOBJq" + }, + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef", + "ParameterValue": "amplify-discussion2604142-amplifyAuthunauthenticate-RegjzqZNry1w" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef", + "ParameterValue": "us-east-1:0ab20e5d-b843-4969-94b1-c17d26af9934" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-data7552DF31-x.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-data7552DF31-x.template.json new file mode 100644 index 00000000000..212b4bc18db --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-data7552DF31-x.template.json @@ -0,0 +1,2209 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.21.2\",\"stackType\":\"api-AppSync\",\"metadata\":{\"dataSources\":\"dynamodb\",\"authorizationModes\":\"amazon_cognito_identity_pools,amazon_cognito_user_pools,api_key,aws_iam\",\"customOperations\":\"queries\"}}", + "Resources": { + "amplifyDataGraphQLAPI42A6FA33": { + "Type": "AWS::AppSync::GraphQLApi", + "Properties": { + "AdditionalAuthenticationProviders": [ + { + "AuthenticationType": "AMAZON_COGNITO_USER_POOLS", + "UserPoolConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "UserPoolId": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthUserPool78F21D47Ref" + } + } + }, + { + "AuthenticationType": "AWS_IAM" + } + ], + "AuthenticationType": "API_KEY", + "Name": "amplifyData", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/GraphQLAPI/Resource" + } + }, + "amplifyDataGraphQLAPITransformerSchemaFF50A789": { + "Type": "AWS::AppSync::GraphQLSchema", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "DefinitionS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/300f7c12e6b33cf8ae3c81bc9ac9123f7369b5e4b69f14aa10c6e3d2679d5934.graphql" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/GraphQLAPI/TransformerSchema" + } + }, + "amplifyDataGraphQLAPIDefaultApiKey1C8ED374": { + "Type": "AWS::AppSync::ApiKey", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "Expires": 1776830695 + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/GraphQLAPI/DefaultApiKey" + } + }, + "amplifyDataGraphQLAPINONEDS684BF699": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "Name": "NONE_DS", + "Type": "NONE" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/GraphQLAPI/NONE_DS/Resource" + } + }, + "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/1165f33fcce91779cd161bd72b79ee499401484b0d4599a5f86d84745307db35.json" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/AmplifyTableManager.NestedStack/AmplifyTableManager.NestedStackResource", + "aws:asset:path": "amplifydiscussionse2esandbox11f7701e3cdataamplifyDataAmplifyTableManager6CE66746.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "amplifyDataTopicNestedStackTopicNestedStackResource252EB182": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource0F117C2FOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataAmplifyTableManagerTab02D7CFF1": { + "Fn::GetAtt": [ + "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833", + "Outputs.amplifydiscussionse2esandbox11f7701e3cdataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent7697030AArn" + ] + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef" + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/150eb87ec67cd649e24c15fffdccc4791dec86a724c5204a33e68e3a2455e50f.json" + ] + ] + } + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Topic.NestedStack/Topic.NestedStackResource", + "aws:asset:path": "amplifydiscussionse2esandbox11f7701e3cdataamplifyDataTopic29A5DA22.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "amplifyDataPostNestedStackPostNestedStackResourceB65AFCD3": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource0F117C2FOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataAmplifyTableManagerTab02D7CFF1": { + "Fn::GetAtt": [ + "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833", + "Outputs.amplifydiscussionse2esandbox11f7701e3cdataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent7697030AArn" + ] + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef" + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/5314d921a6e6ece29c064f041c369de4f78df38923328588cd8e2e82e1c38062.json" + ] + ] + } + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Post.NestedStack/Post.NestedStackResource", + "aws:asset:path": "amplifydiscussionse2esandbox11f7701e3cdataamplifyDataPostF90F8B2B.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "amplifyDataCommentNestedStackCommentNestedStackResource87C7BB35": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource0F117C2FOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataAmplifyTableManagerTab02D7CFF1": { + "Fn::GetAtt": [ + "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833", + "Outputs.amplifydiscussionse2esandbox11f7701e3cdataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent7697030AArn" + ] + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef" + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/775e1f024b964a0dffd4e3eebe1779339050b55bb5374e23e3ce133f3fecd9da.json" + ] + ] + } + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/Comment.NestedStack/Comment.NestedStackResource", + "aws:asset:path": "amplifydiscussionse2esandbox11f7701e3cdataamplifyDataComment1E4A0AD3.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "amplifyDataFunctionDirectiveStackNestedStackFunctionDirectiveStackNestedStackResource1246A302": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/dbdde55b996e71d5705ad34b5d75cc4e061ffbb7fd5fae6392e60ea6ae49de13.json" + ] + ] + } + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack.NestedStack/FunctionDirectiveStack.NestedStackResource", + "aws:asset:path": "amplifydiscussionse2esandbox11f7701e3cdataamplifyDataFunctionDirectiveStack0A0C2E65.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "amplifyDataConnectionStackNestedStackConnectionStackNestedStackResourceAB0F312B": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPINONEDS28CABBB9Name": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataPostNestedStackPostNestedStackResource6361465DOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataPostPostDataSource59A9823FName": { + "Fn::GetAtt": [ + "amplifyDataPostNestedStackPostNestedStackResourceB65AFCD3", + "Outputs.amplifydiscussionse2esandbox11f7701e3cdataamplifyDataPostPostDataSource59A9823FName" + ] + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataPostNestedStackPostNestedStackResource6361465DOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataPostPostTable9EB88B55TableArn": { + "Fn::GetAtt": [ + "amplifyDataPostNestedStackPostNestedStackResourceB65AFCD3", + "Outputs.amplifydiscussionse2esandbox11f7701e3cdataamplifyDataPostPostTable9EB88B55TableArn" + ] + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataCommentNestedStackCommentNestedStackResourceD1B2144FOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataCommentCommentDataSourceCE9AE4FFName": { + "Fn::GetAtt": [ + "amplifyDataCommentNestedStackCommentNestedStackResource87C7BB35", + "Outputs.amplifydiscussionse2esandbox11f7701e3cdataamplifyDataCommentCommentDataSourceCE9AE4FFName" + ] + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataCommentNestedStackCommentNestedStackResourceD1B2144FOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataCommentCommentTable761EEA24TableArn": { + "Fn::GetAtt": [ + "amplifyDataCommentNestedStackCommentNestedStackResource87C7BB35", + "Outputs.amplifydiscussionse2esandbox11f7701e3cdataamplifyDataCommentCommentTable761EEA24TableArn" + ] + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataTopicNestedStackTopicNestedStackResourceD7684B5EOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataTopicTopicDataSourceD9024362Name": { + "Fn::GetAtt": [ + "amplifyDataTopicNestedStackTopicNestedStackResource252EB182", + "Outputs.amplifydiscussionse2esandbox11f7701e3cdataamplifyDataTopicTopicDataSourceD9024362Name" + ] + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cdataamplifyDataTopicNestedStackTopicNestedStackResourceD7684B5EOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataTopicTopicTableEAA04215TableArn": { + "Fn::GetAtt": [ + "amplifyDataTopicNestedStackTopicNestedStackResource252EB182", + "Outputs.amplifydiscussionse2esandbox11f7701e3cdataamplifyDataTopicTopicTableEAA04215TableArn" + ] + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/feb3381fa525157476135dd63428171c2e38d69977b7c2e1ee1eb32eb8b48e19.json" + ] + ] + } + }, + "DependsOn": [ + "amplifyDataCommentNestedStackCommentNestedStackResource87C7BB35", + "amplifyDataGraphQLAPITransformerSchemaFF50A789", + "amplifyDataPostNestedStackPostNestedStackResourceB65AFCD3", + "amplifyDataTopicNestedStackTopicNestedStackResource252EB182" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/ConnectionStack.NestedStack/ConnectionStack.NestedStackResource", + "aws:asset:path": "amplifydiscussionse2esandbox11f7701e3cdataamplifyDataConnectionStackE138B944.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "amplifyDataActivityIdDataResolverFnActivityIdDataResolverFnAppSyncFunctionA4906098": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "DataSourceName": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "ActivityIdDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/b99568f372e3dffae86aabe466815f3e987cdb1b01a7b4bba0c044556f46fca1.vtl" + } + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/ActivityIdDataResolverFn/ActivityIdDataResolverFn.AppSyncFunction" + } + }, + "ActivityidResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "FieldName": "id", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "amplifyDataActivityIdDataResolverFnActivityIdDataResolverFnAppSyncFunctionA4906098", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Activity\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"id\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Activity" + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/activityIdResolver" + } + }, + "amplifyDataActivityUserIdDataResolverFnActivityUserIdDataResolverFnAppSyncFunction66B67EF4": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "DataSourceName": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "ActivityUserIdDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/b53de7a6facbe87f6af1986109f92af3b546c8741e3201a920e1bbb4402997a4.vtl" + } + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/ActivityUserIdDataResolverFn/ActivityUserIdDataResolverFn.AppSyncFunction" + } + }, + "ActivityuserIdResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "FieldName": "userId", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "amplifyDataActivityUserIdDataResolverFnActivityUserIdDataResolverFnAppSyncFunction66B67EF4", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Activity\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"userId\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Activity" + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/activityUserIdResolver" + } + }, + "amplifyDataActivityActivityTypeDataResolverFnActivityActivityTypeDataResolverFnAppSyncFunctionF6BB5E26": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "DataSourceName": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "ActivityActivityTypeDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/8564d5899569ca37f23c0c2ab60b42e9624b0374ea9ed0dd34b3836f24a7d6ef.vtl" + } + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/ActivityActivityTypeDataResolverFn/ActivityActivityTypeDataResolverFn.AppSyncFunction" + } + }, + "ActivityactivityTypeResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "FieldName": "activityType", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "amplifyDataActivityActivityTypeDataResolverFnActivityActivityTypeDataResolverFnAppSyncFunctionF6BB5E26", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Activity\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"activityType\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Activity" + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/activityActivityTypeResolver" + } + }, + "amplifyDataActivityTimestampDataResolverFnActivityTimestampDataResolverFnAppSyncFunctionBFF6218D": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "DataSourceName": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "ActivityTimestampDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9ef1ff70f2fb1662ee5d5fef0e6ca25043179817bdfc6515940c3bb3124e50fa.vtl" + } + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/ActivityTimestampDataResolverFn/ActivityTimestampDataResolverFn.AppSyncFunction" + } + }, + "ActivitytimestampResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "FieldName": "timestamp", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "amplifyDataActivityTimestampDataResolverFnActivityTimestampDataResolverFnAppSyncFunctionBFF6218D", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Activity\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"timestamp\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Activity" + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/activityTimestampResolver" + } + }, + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA": { + "Type": "AWS::S3::Bucket", + "Properties": { + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD" + ], + "AllowedOrigins": [ + { + "Fn::Join": [ + "", + [ + "https://", + { + "Ref": "AWS::Region" + }, + ".console.aws.amazon.com/amplify" + ] + ] + } + ] + } + ] + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "aws-cdk:cr-owned:f1fc8221", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/Resource" + } + }, + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucketPolicyF1C1C548": { + "Type": "AWS::S3::BucketPolicy", + "Properties": { + "Bucket": { + "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" + }, + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "s3:PutBucketPolicy", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*" + ], + "Effect": "Allow", + "Principal": { + "AWS": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + } + }, + "Resource": [ + { + "Fn::GetAtt": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/Policy/Resource" + } + }, + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucketAutoDeleteObjectsCustomResource437F26F5": { + "Type": "Custom::S3AutoDeleteObjects", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "Arn" + ] + }, + "BucketName": { + "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" + } + }, + "DependsOn": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucketPolicyF1C1C548" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/AutoDeleteObjectsCustomResource/Default" + } + }, + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentAwsCliLayerE322F905": { + "Type": "AWS::Lambda::LayerVersion", + "Properties": { + "Content": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "e2659170a0721541efa761a8d5d04d5e36cbbf691c4b15a9053002b7c825055d.zip" + }, + "Description": "/opt/awscli/aws" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsDeployment/AwsCliLayer/Resource", + "aws:asset:path": "asset.e2659170a0721541efa761a8d5d04d5e36cbbf691c4b15a9053002b7c825055d.zip", + "aws:asset:is-bundled": false, + "aws:asset:property": "Content" + } + }, + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB21775929": { + "Type": "Custom::CDKBucketDeployment", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBC5D8AB21", + "Arn" + ] + }, + "SourceBucketNames": [ + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + } + ], + "SourceObjectKeys": [ + "e2abae8db0af4f0900338280439c2647e6099c1db6abd3687d267c4a63589c08.zip" + ], + "SourceMarkers": [ + {} + ], + "DestinationBucketName": { + "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" + }, + "WaitForDistributionInvalidation": true, + "Prune": true, + "OutputObjectKeys": true, + "DestinationBucketArn": { + "Fn::GetAtt": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", + "Arn" + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsDeployment/CustomResource-1536MiB/Default" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ] + }, + "ManagedPolicyArns": [ + { + "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" + }, + "Timeout": 900, + "MemorySize": 128, + "Handler": "index.handler", + "Role": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Description": { + "Fn::Join": [ + "", + [ + "Lambda function for auto-deleting objects in ", + { + "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" + }, + " S3 bucket." + ] + ] + } + }, + "DependsOn": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", + "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", + "aws:asset:property": "Code" + } + }, + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/ServiceRole/Resource" + } + }, + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleDefaultPolicyFF1C635B": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "s3:GetObject*", + "s3:GetBucket*", + "s3:List*" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":s3:::", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + } + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":s3:::", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/*" + ] + ] + } + ] + }, + { + "Action": [ + "s3:GetObject*", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*", + "s3:PutObject", + "s3:PutObjectLegalHold", + "s3:PutObjectRetention", + "s3:PutObjectTagging", + "s3:PutObjectVersionTagging", + "s3:Abort*" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + }, + { + "Action": [ + "s3:GetObject*", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*", + "s3:PutObject", + "s3:PutObjectLegalHold", + "s3:PutObjectRetention", + "s3:PutObjectTagging", + "s3:PutObjectVersionTagging", + "s3:Abort*" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "modelIntrospectionSchemaBucketF566B665", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "modelIntrospectionSchemaBucketF566B665", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleDefaultPolicyFF1C635B", + "Roles": [ + { + "Ref": "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/ServiceRole/DefaultPolicy/Resource" + } + }, + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBC5D8AB21": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "3423a042b818e31c1e34a19d6689ab2e5f9b70fcbe9e71df66f241b20a200bd9.zip" + }, + "Environment": { + "Variables": { + "AWS_CA_BUNDLE": "/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem" + } + }, + "Handler": "index.handler", + "Layers": [ + { + "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentAwsCliLayerE322F905" + } + ], + "MemorySize": 1536, + "Role": { + "Fn::GetAtt": [ + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2", + "Arn" + ] + }, + "Runtime": "python3.13", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 900 + }, + "DependsOn": [ + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleDefaultPolicyFF1C635B", + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/Resource", + "aws:asset:path": "asset.3423a042b818e31c1e34a19d6689ab2e5f9b70fcbe9e71df66f241b20a200bd9", + "aws:asset:is-bundled": false, + "aws:asset:property": "Code" + } + }, + "modelIntrospectionSchemaBucketF566B665": { + "Type": "AWS::S3::Bucket", + "Properties": { + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "aws-cdk:cr-owned:11cc6535", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/modelIntrospectionSchemaBucket/Resource" + } + }, + "modelIntrospectionSchemaBucketPolicy4DAB0D15": { + "Type": "AWS::S3::BucketPolicy", + "Properties": { + "Bucket": { + "Ref": "modelIntrospectionSchemaBucketF566B665" + }, + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:*", + "Condition": { + "Bool": { + "aws:SecureTransport": "false" + } + }, + "Effect": "Deny", + "Principal": { + "AWS": "*" + }, + "Resource": [ + { + "Fn::GetAtt": [ + "modelIntrospectionSchemaBucketF566B665", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "modelIntrospectionSchemaBucketF566B665", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + }, + { + "Action": [ + "s3:PutBucketPolicy", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*" + ], + "Effect": "Allow", + "Principal": { + "AWS": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + } + }, + "Resource": [ + { + "Fn::GetAtt": [ + "modelIntrospectionSchemaBucketF566B665", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "modelIntrospectionSchemaBucketF566B665", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/modelIntrospectionSchemaBucket/Policy/Resource" + } + }, + "modelIntrospectionSchemaBucketAutoDeleteObjectsCustomResourceFE57309F": { + "Type": "Custom::S3AutoDeleteObjects", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "Arn" + ] + }, + "BucketName": { + "Ref": "modelIntrospectionSchemaBucketF566B665" + } + }, + "DependsOn": [ + "modelIntrospectionSchemaBucketPolicy4DAB0D15" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/modelIntrospectionSchemaBucket/AutoDeleteObjectsCustomResource/Default" + } + }, + "modelIntrospectionSchemaBucketDeploymentAwsCliLayer13C432F7": { + "Type": "AWS::Lambda::LayerVersion", + "Properties": { + "Content": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "e2659170a0721541efa761a8d5d04d5e36cbbf691c4b15a9053002b7c825055d.zip" + }, + "Description": "/opt/awscli/aws" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/modelIntrospectionSchemaBucketDeployment/AwsCliLayer/Resource", + "aws:asset:path": "asset.e2659170a0721541efa761a8d5d04d5e36cbbf691c4b15a9053002b7c825055d.zip", + "aws:asset:is-bundled": false, + "aws:asset:property": "Content" + } + }, + "modelIntrospectionSchemaBucketDeploymentCustomResource1536MiB104B97EC": { + "Type": "Custom::CDKBucketDeployment", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBC5D8AB21", + "Arn" + ] + }, + "SourceBucketNames": [ + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + } + ], + "SourceObjectKeys": [ + "df198b893678487bb17a3e38f72236bb108e7549e60e05070d2dc0c226d763c2.zip" + ], + "SourceMarkers": [ + {} + ], + "DestinationBucketName": { + "Ref": "modelIntrospectionSchemaBucketF566B665" + }, + "WaitForDistributionInvalidation": true, + "Prune": true, + "OutputObjectKeys": true + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/modelIntrospectionSchemaBucketDeployment/CustomResource-1536MiB/Default" + } + }, + "AMPLIFYDATAGRAPHQLENDPOINTParameter1C2CBB16": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/discussions/e2e-sandbox-x/AMPLIFY_DATA_GRAPHQL_ENDPOINT", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "GraphQLUrl" + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/AMPLIFY_DATA_GRAPHQL_ENDPOINTParameter/Resource" + } + }, + "AMPLIFYDATAMODELINTROSPECTIONSCHEMABUCKETNAMEParameter47BF4F44": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/discussions/e2e-sandbox-x/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_BUCKET_NAME", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": { + "Ref": "modelIntrospectionSchemaBucketF566B665" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_BUCKET_NAMEParameter/Resource" + } + }, + "AMPLIFYDATAMODELINTROSPECTIONSCHEMAKEYParameterB6AEAE8A": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/discussions/e2e-sandbox-x/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_KEY", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": "modelIntrospectionSchema.json" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_KEYParameter/Resource" + } + }, + "AMPLIFYDATADEFAULTNAMEParameterE7C23CC4": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/discussions/e2e-sandbox-x/AMPLIFY_DATA_DEFAULT_NAME", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": "amplifyData" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/AMPLIFY_DATA_DEFAULT_NAMEParameter/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/6VSTW/bMAz9Lc1ZUbMU3WE318F2WNFlMdDLUASMzLhM9OGKcjLD8H8fJKVpup2KnchHig+PepzL+e1Mzq7gyFNV76eaNnJ4QA5YVwHUXqyQXecVCjjyeoC25d4qOXzz0D6/6KKlO2AU5damys/7oqULVKlnNBALRUvfsRcPzuICAlSZtNza9+hrZ1UgZ0tnt9R0HiKIjahDH9CPgm/WAzBjYFnEIGpstesN2iDvOrXHsDgX4ms55GoSmtNImLNfw8TQb7KTL5PLL4jL8o1MLT6xFl1wC9QY8MdmhyrwZBT/Nf10UrN0mlT/pinjDyjLA1WAgHHpjwn7d/hpFBrMpgY5lFt7Dz36R/QcjajINhqDO/skzsmFeaMgMHJYOZ08TfFtyZyNgtnIoQqebLMEDwYD+tR/BeMoksFVgIZsE3v5JsuOgzPnyzxdR8qz8LWOotdwZKVJFkcuNaU93vH/xbP07kA1+ngno7CuRrnj68N8Lj99lrOrHRNNfWcDGZSrHP8Akcz7fT4DAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthUserPool78F21D47Ref": { + "Type": "String" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref": { + "Type": "String" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef": { + "Type": "String" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef": { + "Type": "String" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId": { + "Value": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + } + }, + "amplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AGraphQLUrl": { + "Value": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "GraphQLUrl" + ] + } + }, + "amplifydiscussionse2esandbox11f7701e3cdataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB011B1B49DestinationBucketArn": { + "Value": { + "Fn::GetAtt": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB21775929", + "DestinationBucketArn" + ] + } + }, + "amplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPIDefaultApiKeyD6D1106AApiKey": { + "Value": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPIDefaultApiKey1C8ED374", + "ApiKey" + ] + } + }, + "amplifydiscussionse2esandbox11f7701e3cdataamplifyDataTopicNestedStackTopicNestedStackResourceD7684B5EOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataTopicTopicTableEAA04215TableStreamArn": { + "Value": { + "Fn::GetAtt": [ + "amplifyDataTopicNestedStackTopicNestedStackResource252EB182", + "Outputs.amplifydiscussionse2esandbox11f7701e3cdataamplifyDataTopicTopicTableEAA04215TableStreamArn" + ] + } + }, + "amplifydiscussionse2esandbox11f7701e3cdataamplifyDataPostNestedStackPostNestedStackResource6361465DOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataPostPostTable9EB88B55TableStreamArn": { + "Value": { + "Fn::GetAtt": [ + "amplifyDataPostNestedStackPostNestedStackResourceB65AFCD3", + "Outputs.amplifydiscussionse2esandbox11f7701e3cdataamplifyDataPostPostTable9EB88B55TableStreamArn" + ] + } + }, + "amplifydiscussionse2esandbox11f7701e3cdataamplifyDataCommentNestedStackCommentNestedStackResourceD1B2144FOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataCommentCommentTable761EEA24TableStreamArn": { + "Value": { + "Fn::GetAtt": [ + "amplifyDataCommentNestedStackCommentNestedStackResource87C7BB35", + "Outputs.amplifydiscussionse2esandbox11f7701e3cdataamplifyDataCommentCommentTable761EEA24TableStreamArn" + ] + } + } + } +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-function1351588B-x.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-function1351588B-x.description.txt new file mode 100644 index 00000000000..907003893a9 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-function1351588B-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"AmplifySandbox","createdWith":"1.18.0","stackType":"function-Lambda","metadata":{}} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-function1351588B-x.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-function1351588B-x.outputs.json new file mode 100644 index 00000000000..991b3c6ef02 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-function1351588B-x.outputs.json @@ -0,0 +1,10 @@ +[ + { + "OutputKey": "amplifydiscussionse2esandbox11f7701e3cfunctionfetchuseractivitygen2xlambda7D470E0ARef", + "OutputValue": "fetchuseractivity-gen2-x" + }, + { + "OutputKey": "amplifydiscussionse2esandbox11f7701e3cfunctionrecorduseractivitygen2xlambda78ECD6A1Ref", + "OutputValue": "recorduseractivity-gen2-x" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-function1351588B-x.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-function1351588B-x.parameters.json new file mode 100644 index 00000000000..23bb8c090d2 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-function1351588B-x.parameters.json @@ -0,0 +1,26 @@ +[ + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cstorageactivityNestedStackstorageactivityNestedStackResource537BD226Outputsamplifydiscussionse2esandbox11f7701e3cstorageactivity2CAC8EACRef", + "ParameterValue": "amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x-activity1E902D9C-WW109ZPG3FYW" + }, + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cdataNestedStackdataNestedStackResourceBAB7F510Outputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataCommentNestedStackCommentNestedStackResourceD1B2144FOutputsamplifyd6FB9505C", + "ParameterValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Comment-xw3yrfq7mngltcua43nucy7fg4-x/stream/2026-04-15T03:53:19.114" + }, + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cdataNestedStackdataNestedStackResourceBAB7F510Outputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataTopicNestedStackTopicNestedStackResourceD7684B5EOutputsamplifydiscuAC9DA0CC", + "ParameterValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Topic-xw3yrfq7mngltcua43nucy7fg4-x/stream/2026-04-15T03:52:31.420" + }, + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cstorageactivityNestedStackstorageactivityNestedStackResource537BD226Outputsamplifydiscussionse2esandbox11f7701e3cstorageactivity2CAC8EACStreamArn", + "ParameterValue": "arn:aws:dynamodb:us-east-1:123456789012:table/amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x-activity1E902D9C-WW109ZPG3FYW/stream/2026-04-15T04:05:17.207" + }, + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cdataNestedStackdataNestedStackResourceBAB7F510Outputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataPostNestedStackPostNestedStackResource6361465DOutputsamplifydiscuss85F08407", + "ParameterValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Post-xw3yrfq7mngltcua43nucy7fg4-x/stream/2026-04-15T03:53:19.531" + }, + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cstorageactivityNestedStackstorageactivityNestedStackResource537BD226Outputsamplifydiscussionse2esandbox11f7701e3cstorageactivity2CAC8EACArn", + "ParameterValue": "arn:aws:dynamodb:us-east-1:123456789012:table/amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x-activity1E902D9C-WW109ZPG3FYW" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-function1351588B-x.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-function1351588B-x.template.json new file mode 100644 index 00000000000..0ee3bedcce0 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-function1351588B-x.template.json @@ -0,0 +1,794 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.18.0\",\"stackType\":\"function-Lambda\",\"metadata\":{}}", + "Resources": { + "fetchuseractivitygen2xlambdaServiceRoleBDABDE7D": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "fetchuseractivity-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/function/fetchuseractivity-gen2-x-lambda/ServiceRole/Resource" + } + }, + "fetchuseractivitygen2xlambdaServiceRoleDefaultPolicy3D1AC52B": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:Get*", + "dynamodb:BatchGetItem", + "dynamodb:List*", + "dynamodb:Describe*", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:PartiQLSelect" + ], + "Effect": "Allow", + "Resource": [ + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cstorageactivityNestedStackstorageactivityNestedStackResource537BD226Outputsamplifydiscussionse2esandbox11f7701e3cstorageactivity2CAC8EACArn" + }, + { + "Fn::Join": [ + "", + [ + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cstorageactivityNestedStackstorageactivityNestedStackResource537BD226Outputsamplifydiscussionse2esandbox11f7701e3cstorageactivity2CAC8EACArn" + }, + "/index/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "fetchuseractivitygen2xlambdaServiceRoleDefaultPolicy3D1AC52B", + "Roles": [ + { + "Ref": "fetchuseractivitygen2xlambdaServiceRoleBDABDE7D" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/function/fetchuseractivity-gen2-x-lambda/ServiceRole/DefaultPolicy/Resource" + } + }, + "fetchuseractivitygen2xlambdaF3B2CA91": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Architectures": [ + "x86_64" + ], + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "9e6f19e3049af30faa8361b7fcc44a1c0a87ac9797929ea5d52b2524cb28ae13.zip" + }, + "Environment": { + "Variables": { + "ENV": "gen2-x", + "REGION": "us-east-1", + "AMPLIFY_SSM_ENV_CONFIG": "{}", + "STORAGE_ACTIVITY_STREAMARN": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cstorageactivityNestedStackstorageactivityNestedStackResource537BD226Outputsamplifydiscussionse2esandbox11f7701e3cstorageactivity2CAC8EACStreamArn" + }, + "STORAGE_ACTIVITY_ARN": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cstorageactivityNestedStackstorageactivityNestedStackResource537BD226Outputsamplifydiscussionse2esandbox11f7701e3cstorageactivity2CAC8EACArn" + }, + "STORAGE_ACTIVITY_NAME": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cstorageactivityNestedStackstorageactivityNestedStackResource537BD226Outputsamplifydiscussionse2esandbox11f7701e3cstorageactivity2CAC8EACRef" + } + } + }, + "EphemeralStorage": { + "Size": 512 + }, + "FunctionName": "fetchuseractivity-gen2-x", + "Handler": "index.handler", + "MemorySize": 128, + "Role": { + "Fn::GetAtt": [ + "fetchuseractivitygen2xlambdaServiceRoleBDABDE7D", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "fetchuseractivity-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 25 + }, + "DependsOn": [ + "fetchuseractivitygen2xlambdaServiceRoleDefaultPolicy3D1AC52B", + "fetchuseractivitygen2xlambdaServiceRoleBDABDE7D" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/function/fetchuseractivity-gen2-x-lambda/Resource", + "aws:asset:path": "asset.9e6f19e3049af30faa8361b7fcc44a1c0a87ac9797929ea5d52b2524cb28ae13", + "aws:asset:is-bundled": true, + "aws:asset:property": "Code" + } + }, + "recorduseractivitygen2xlambdaServiceRole6C2AC464": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "recorduseractivity-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/function/recorduseractivity-gen2-x-lambda/ServiceRole/Resource" + } + }, + "recorduseractivitygen2xlambdaServiceRoleDefaultPolicy592F16AD": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:Put*", + "dynamodb:Create*", + "dynamodb:BatchWriteItem", + "dynamodb:PartiQLInsert", + "dynamodb:Get*", + "dynamodb:BatchGetItem", + "dynamodb:List*", + "dynamodb:Describe*", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:PartiQLSelect", + "dynamodb:Update*", + "dynamodb:RestoreTable*", + "dynamodb:PartiQLUpdate", + "dynamodb:Delete*", + "dynamodb:PartiQLDelete" + ], + "Effect": "Allow", + "Resource": [ + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cstorageactivityNestedStackstorageactivityNestedStackResource537BD226Outputsamplifydiscussionse2esandbox11f7701e3cstorageactivity2CAC8EACArn" + }, + { + "Fn::Join": [ + "", + [ + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cstorageactivityNestedStackstorageactivityNestedStackResource537BD226Outputsamplifydiscussionse2esandbox11f7701e3cstorageactivity2CAC8EACArn" + }, + "/index/*" + ] + ] + } + ] + }, + { + "Action": "dynamodb:ListStreams", + "Effect": "Allow", + "Resource": "*" + }, + { + "Action": [ + "dynamodb:DescribeStream", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator" + ], + "Effect": "Allow", + "Resource": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataNestedStackdataNestedStackResourceBAB7F510Outputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataTopicNestedStackTopicNestedStackResourceD7684B5EOutputsamplifydiscuAC9DA0CC" + } + }, + { + "Action": [ + "dynamodb:DescribeStream", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator" + ], + "Effect": "Allow", + "Resource": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataNestedStackdataNestedStackResourceBAB7F510Outputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataPostNestedStackPostNestedStackResource6361465DOutputsamplifydiscuss85F08407" + } + }, + { + "Action": [ + "dynamodb:DescribeStream", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator" + ], + "Effect": "Allow", + "Resource": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataNestedStackdataNestedStackResourceBAB7F510Outputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataCommentNestedStackCommentNestedStackResourceD1B2144FOutputsamplifyd6FB9505C" + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "recorduseractivitygen2xlambdaServiceRoleDefaultPolicy592F16AD", + "Roles": [ + { + "Ref": "recorduseractivitygen2xlambdaServiceRole6C2AC464" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/function/recorduseractivity-gen2-x-lambda/ServiceRole/DefaultPolicy/Resource" + } + }, + "recorduseractivitygen2xlambda8B532DE2": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Architectures": [ + "x86_64" + ], + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "63a0d94d155d1f5699fd4e988dbde5879c3d2505b4be67197a9354974282ee41.zip" + }, + "Environment": { + "Variables": { + "ENV": "gen2-x", + "REGION": "us-east-1", + "AMPLIFY_SSM_ENV_CONFIG": "{}", + "STORAGE_ACTIVITY_STREAMARN": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cstorageactivityNestedStackstorageactivityNestedStackResource537BD226Outputsamplifydiscussionse2esandbox11f7701e3cstorageactivity2CAC8EACStreamArn" + }, + "STORAGE_ACTIVITY_ARN": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cstorageactivityNestedStackstorageactivityNestedStackResource537BD226Outputsamplifydiscussionse2esandbox11f7701e3cstorageactivity2CAC8EACArn" + }, + "STORAGE_ACTIVITY_NAME": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cstorageactivityNestedStackstorageactivityNestedStackResource537BD226Outputsamplifydiscussionse2esandbox11f7701e3cstorageactivity2CAC8EACRef" + } + } + }, + "EphemeralStorage": { + "Size": 512 + }, + "FunctionName": "recorduseractivity-gen2-x", + "Handler": "index.handler", + "MemorySize": 128, + "Role": { + "Fn::GetAtt": [ + "recorduseractivitygen2xlambdaServiceRole6C2AC464", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "recorduseractivity-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 25 + }, + "DependsOn": [ + "recorduseractivitygen2xlambdaServiceRoleDefaultPolicy592F16AD", + "recorduseractivitygen2xlambdaServiceRole6C2AC464" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/function/recorduseractivity-gen2-x-lambda/Resource", + "aws:asset:path": "asset.63a0d94d155d1f5699fd4e988dbde5879c3d2505b4be67197a9354974282ee41", + "aws:asset:is-bundled": true, + "aws:asset:property": "Code" + } + }, + "recorduseractivitygen2xlambdaDynamoDBEventSourceamplifydiscussionse2esandbox11f7701e3cdataamplifyDataTopicCustomTableTopicTable205F6B1F558002A8": { + "Type": "AWS::Lambda::EventSourceMapping", + "Properties": { + "BatchSize": 100, + "EventSourceArn": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataNestedStackdataNestedStackResourceBAB7F510Outputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataTopicNestedStackTopicNestedStackResourceD7684B5EOutputsamplifydiscuAC9DA0CC" + }, + "FunctionName": { + "Ref": "recorduseractivitygen2xlambda8B532DE2" + }, + "StartingPosition": "LATEST", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "recorduseractivity-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/function/recorduseractivity-gen2-x-lambda/DynamoDBEventSource:amplifydiscussionse2esandbox11f7701e3cdataamplifyDataTopicCustomTableTopicTable205F6B1F/Resource" + } + }, + "recorduseractivitygen2xlambdaDynamoDBEventSourceamplifydiscussionse2esandbox11f7701e3cdataamplifyDataPostCustomTablePostTable23EE0312B1242035": { + "Type": "AWS::Lambda::EventSourceMapping", + "Properties": { + "BatchSize": 100, + "EventSourceArn": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataNestedStackdataNestedStackResourceBAB7F510Outputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataPostNestedStackPostNestedStackResource6361465DOutputsamplifydiscuss85F08407" + }, + "FunctionName": { + "Ref": "recorduseractivitygen2xlambda8B532DE2" + }, + "StartingPosition": "LATEST", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "recorduseractivity-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/function/recorduseractivity-gen2-x-lambda/DynamoDBEventSource:amplifydiscussionse2esandbox11f7701e3cdataamplifyDataPostCustomTablePostTable23EE0312/Resource" + } + }, + "recorduseractivitygen2xlambdaDynamoDBEventSourceamplifydiscussionse2esandbox11f7701e3cdataamplifyDataCommentCustomTableCommentTableA97F3F55323E21B7": { + "Type": "AWS::Lambda::EventSourceMapping", + "Properties": { + "BatchSize": 100, + "EventSourceArn": { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cdataNestedStackdataNestedStackResourceBAB7F510Outputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataCommentNestedStackCommentNestedStackResourceD1B2144FOutputsamplifyd6FB9505C" + }, + "FunctionName": { + "Ref": "recorduseractivitygen2xlambda8B532DE2" + }, + "StartingPosition": "LATEST", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "recorduseractivity-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/function/recorduseractivity-gen2-x-lambda/DynamoDBEventSource:amplifydiscussionse2esandbox11f7701e3cdataamplifyDataCommentCustomTableCommentTableA97F3F55/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/2WOzQqDMBCEn6X3uLVKe6/S3ipFH0DWuEr8ScSNShHfvUShl56+mTl8TADB1Qf/hAt7smy9ThWwJsSWysyibAUunK8d9kWJuTYlNQzJjuekpVVGC4U9rKnpSMSV3vk2nZIfV4+0CQ5zZCbLcHcQHEI0yZZshEzi0MMaV/pnfcykbWamUdILh0Hp2vn+120TuzKzWLsq3Elo+DwHAVxu4J8aVsobJ21VT5Ae/ALysZcv9wAAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/function/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "referencetoamplifydiscussionse2esandbox11f7701e3cstorageactivityNestedStackstorageactivityNestedStackResource537BD226Outputsamplifydiscussionse2esandbox11f7701e3cstorageactivity2CAC8EACArn": { + "Type": "String" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cstorageactivityNestedStackstorageactivityNestedStackResource537BD226Outputsamplifydiscussionse2esandbox11f7701e3cstorageactivity2CAC8EACStreamArn": { + "Type": "String" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cstorageactivityNestedStackstorageactivityNestedStackResource537BD226Outputsamplifydiscussionse2esandbox11f7701e3cstorageactivity2CAC8EACRef": { + "Type": "String" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cdataNestedStackdataNestedStackResourceBAB7F510Outputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataTopicNestedStackTopicNestedStackResourceD7684B5EOutputsamplifydiscuAC9DA0CC": { + "Type": "String" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cdataNestedStackdataNestedStackResourceBAB7F510Outputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataPostNestedStackPostNestedStackResource6361465DOutputsamplifydiscuss85F08407": { + "Type": "String" + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cdataNestedStackdataNestedStackResourceBAB7F510Outputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataCommentNestedStackCommentNestedStackResourceD1B2144FOutputsamplifyd6FB9505C": { + "Type": "String" + } + }, + "Outputs": { + "amplifydiscussionse2esandbox11f7701e3cfunctionfetchuseractivitygen2xlambda7D470E0ARef": { + "Value": { + "Ref": "fetchuseractivitygen2xlambdaF3B2CA91" + } + }, + "amplifydiscussionse2esandbox11f7701e3cfunctionrecorduseractivitygen2xlambda78ECD6A1Ref": { + "Value": { + "Ref": "recorduseractivitygen2xlambda8B532DE2" + } + } + } +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x.description.txt new file mode 100644 index 00000000000..950d1c3cb96 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"AmplifySandbox","createdWith":"1.4.3","stackType":"storage-S3","metadata":{}} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x.outputs.json new file mode 100644 index 00000000000..845443e1854 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x.outputs.json @@ -0,0 +1,6 @@ +[ + { + "OutputKey": "amplifydiscussionse2esandbox11f7701e3cstoragediscusavatarsxgen2xBucketC837A45ARef", + "OutputValue": "amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x.parameters.json new file mode 100644 index 00000000000..0b6ec8b3565 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x.parameters.json @@ -0,0 +1,6 @@ +[ + { + "ParameterKey": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref", + "ParameterValue": "amplify-discussion2604142-amplifyAuthauthenticatedU-OFERj1VQgbh0" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x.template.json new file mode 100644 index 00000000000..a27da26f397 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-storage0EC3F24A-x.template.json @@ -0,0 +1,746 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", + "Resources": { + "discusavatarsxgen2xBucketDA2F9CC2": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "BucketKeyEnabled": false, + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "MaxAge": 3000 + } + ] + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "discus-avatarsx-gen2-x" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storage/discus-avatarsx-gen2-x/Bucket/Resource" + } + }, + "discusavatarsxgen2xBucketPolicyD2E4B70C": { + "Type": "AWS::S3::BucketPolicy", + "Properties": { + "Bucket": { + "Ref": "discusavatarsxgen2xBucketDA2F9CC2" + }, + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:*", + "Condition": { + "Bool": { + "aws:SecureTransport": "false" + } + }, + "Effect": "Deny", + "Principal": { + "AWS": "*" + }, + "Resource": [ + { + "Fn::GetAtt": [ + "discusavatarsxgen2xBucketDA2F9CC2", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "discusavatarsxgen2xBucketDA2F9CC2", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + }, + { + "Action": [ + "s3:PutBucketPolicy", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*" + ], + "Effect": "Allow", + "Principal": { + "AWS": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + } + }, + "Resource": [ + { + "Fn::GetAtt": [ + "discusavatarsxgen2xBucketDA2F9CC2", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "discusavatarsxgen2xBucketDA2F9CC2", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storage/discus-avatarsx-gen2-x/Bucket/Policy/Resource" + } + }, + "discusavatarsxgen2xBucketAutoDeleteObjectsCustomResource1D08A711": { + "Type": "Custom::S3AutoDeleteObjects", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "Arn" + ] + }, + "BucketName": { + "Ref": "discusavatarsxgen2xBucketDA2F9CC2" + } + }, + "DependsOn": [ + "discusavatarsxgen2xBucketPolicyD2E4B70C" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storage/discus-avatarsx-gen2-x/Bucket/AutoDeleteObjectsCustomResource/Default" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ] + }, + "ManagedPolicyArns": [ + { + "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" + }, + "Timeout": 900, + "MemorySize": 128, + "Handler": "index.handler", + "Role": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Description": { + "Fn::Join": [ + "", + [ + "Lambda function for auto-deleting objects in ", + { + "Ref": "discusavatarsxgen2xBucketDA2F9CC2" + }, + " S3 bucket." + ] + ] + } + }, + "DependsOn": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", + "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", + "aws:asset:property": "Code" + } + }, + "DISCUSAVATARSB4C74GEN2EGFGFHFICCBUCKETNAMEParameter6939AE5D": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/discussions/e2e-sandbox-x/DISCUS_AVATARSB_4_C_74_GEN_2_EGFGFHFICC_BUCKET_NAME", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": { + "Ref": "discusavatarsxgen2xBucketDA2F9CC2" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storage/DISCUS_AVATARSB_4_C_74_GEN_2_EGFGFHFICC_BUCKET_NAMEParameter/Resource" + } + }, + "amplifydiscussionse2esandbox11f7701e3cstorageAccess3FA725BAE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:PutObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "discusavatarsxgen2xBucketDA2F9CC2", + "Arn" + ] + }, + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "discusavatarsxgen2xBucketDA2F9CC2", + "Arn" + ] + }, + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "discusavatarsxgen2xBucketDA2F9CC2", + "Arn" + ] + }, + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "discusavatarsxgen2xBucketDA2F9CC2", + "Arn" + ] + }, + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "discusavatarsxgen2xBucketDA2F9CC2", + "Arn" + ] + }, + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "discusavatarsxgen2xBucketDA2F9CC2", + "Arn" + ] + }, + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/*", + "public/", + "protected/*", + "protected/", + "private/*", + "private/" + ] + } + }, + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "discusavatarsxgen2xBucketDA2F9CC2", + "Arn" + ] + } + }, + { + "Action": "s3:DeleteObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "discusavatarsxgen2xBucketDA2F9CC2", + "Arn" + ] + }, + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "discusavatarsxgen2xBucketDA2F9CC2", + "Arn" + ] + }, + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "discusavatarsxgen2xBucketDA2F9CC2", + "Arn" + ] + }, + "/private/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "amplifydiscussionse2esandbox11f7701e3cstorageAccess3FA725BAE", + "Roles": [ + { + "Ref": "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storage/amplify-discussions-e2e-sandbox-x--storageAccess3/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/5WNy07DMBBFv6VZO0NIBQt2fawhapYIIdcZokliW/JMWpDlf0epJQJLVnNH5z5qqB8qqDb6yqXpxnKiM8RnZMGuFW1Gpa/8HnkLcT+bEUUdPlxWr7Gw9EmueCp+hxc/b+GGGLJ1N4s/4oSCL+cBjXCR3lRGjZ/IfK2t+f9Hdw60ogUtult1UswWYiuBXN/ooC0KhmXj50mKtIW4rmeVkjrMLN6ekP0cDC5o1X9QE/yFOgx7zah2zCit6J5cn5TzHcLAd5e6hvtHqDYDE5VhdkIW4ZTvN8L1/x56AQAA" + }, + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storage/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref": { + "Type": "String" + } + }, + "Outputs": { + "amplifydiscussionse2esandbox11f7701e3cstoragediscusavatarsxgen2xBucketC837A45ARef": { + "Value": { + "Ref": "discusavatarsxgen2xBucketDA2F9CC2" + } + } + } +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x.description.txt new file mode 100644 index 00000000000..46446793250 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"AmplifySandbox","createdWith":"1.22.0","stackType":"custom","metadata":{}} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x.outputs.json new file mode 100644 index 00000000000..bc914e15574 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x.outputs.json @@ -0,0 +1,14 @@ +[ + { + "OutputKey": "amplifydiscussionse2esandbox11f7701e3cstorageactivity2CAC8EACArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x-activity1E902D9C-WW109ZPG3FYW" + }, + { + "OutputKey": "amplifydiscussionse2esandbox11f7701e3cstorageactivity2CAC8EACRef", + "OutputValue": "amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x-activity1E902D9C-WW109ZPG3FYW" + }, + { + "OutputKey": "amplifydiscussionse2esandbox11f7701e3cstorageactivity2CAC8EACStreamArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x-activity1E902D9C-WW109ZPG3FYW/stream/2026-04-15T04:05:17.207" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x.parameters.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x.parameters.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x.template.json new file mode 100644 index 00000000000..5b6a04e004f --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-storageactivityA346F297-x.template.json @@ -0,0 +1,377 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.22.0\",\"stackType\":\"custom\",\"metadata\":{}}", + "Resources": { + "activity1E902D9C": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + }, + { + "AttributeName": "userId", + "AttributeType": "S" + }, + { + "AttributeName": "timestamp", + "AttributeType": "S" + } + ], + "GlobalSecondaryIndexes": [ + { + "IndexName": "byUserId", + "KeySchema": [ + { + "AttributeName": "userId", + "KeyType": "HASH" + }, + { + "AttributeName": "timestamp", + "KeyType": "RANGE" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "ReadCapacityUnits": 5, + "WriteCapacityUnits": 5 + } + } + ], + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + }, + { + "AttributeName": "userId", + "KeyType": "RANGE" + } + ], + "ProvisionedThroughput": { + "ReadCapacityUnits": 5, + "WriteCapacityUnits": 5 + }, + "StreamSpecification": { + "StreamViewType": "NEW_IMAGE" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storageactivity/activity/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXGOwqEMBAA0LPYJ2M2oBewt3C3l0lmhPhJwImKiHcX1uo9C7YyYAo8RHua9BwcXC1LZvpm9JPCQ3o6Iy6JHFw/dDOrZoj/3KpjSdvq+VYxEcMo5W4tfGowxSgh6HWLOSwM3esDKnhKBG4AAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storageactivity/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifydiscussionse2esandbox11f7701e3cstorageactivity2CAC8EACArn": { + "Value": { + "Fn::GetAtt": [ + "activity1E902D9C", + "Arn" + ] + } + }, + "amplifydiscussionse2esandbox11f7701e3cstorageactivity2CAC8EACStreamArn": { + "Value": { + "Fn::GetAtt": [ + "activity1E902D9C", + "StreamArn" + ] + } + }, + "amplifydiscussionse2esandbox11f7701e3cstorageactivity2CAC8EACRef": { + "Value": { + "Ref": "activity1E902D9C" + } + } + } +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x.description.txt new file mode 100644 index 00000000000..46446793250 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"AmplifySandbox","createdWith":"1.22.0","stackType":"custom","metadata":{}} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x.outputs.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x.outputs.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x.parameters.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x.parameters.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x.template.json new file mode 100644 index 00000000000..cabad4c826b --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x-storagebookmarks210DAF62-x.template.json @@ -0,0 +1,346 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.22.0\",\"stackType\":\"custom\",\"metadata\":{}}", + "Resources": { + "bookmarksA4548304": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "AttributeDefinitions": [ + { + "AttributeName": "userId", + "AttributeType": "S" + }, + { + "AttributeName": "postId", + "AttributeType": "S" + } + ], + "GlobalSecondaryIndexes": [ + { + "IndexName": "byPost", + "KeySchema": [ + { + "AttributeName": "postId", + "KeyType": "HASH" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "ReadCapacityUnits": 5, + "WriteCapacityUnits": 5 + } + } + ], + "KeySchema": [ + { + "AttributeName": "userId", + "KeyType": "HASH" + }, + { + "AttributeName": "postId", + "KeyType": "RANGE" + } + ], + "ProvisionedThroughput": { + "ReadCapacityUnits": 5, + "WriteCapacityUnits": 5 + }, + "StreamSpecification": { + "StreamViewType": "NEW_IMAGE" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storagebookmarks/bookmarks/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXGOwqEMBAA0LPYJ2M2oBewt3C3l0lmhPhJwImKiHcX1uo9C7YyYAo8RHua9BwcXC1LZvpm9JPCQ3o6Iy6JHFw/dDOrZoj/3KpjSdvq+VYxEcMo5W4tfGowxSgh6HWLOSwM3esDKnhKBG4AAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storagebookmarks/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + } +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x.description.txt new file mode 100644 index 00000000000..d1c87f28683 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"AmplifySandbox","createdWith":"1.22.0","stackType":"root","metadata":{}} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x.outputs.json new file mode 100644 index 00000000000..aa6177b1ac5 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x.outputs.json @@ -0,0 +1,138 @@ +[ + { + "OutputKey": "webClientId", + "OutputValue": "5fmpdjh49lauff16m1r548ug0t" + }, + { + "OutputKey": "socialProviders", + "OutputValue": "" + }, + { + "OutputKey": "usernameAttributes", + "OutputValue": "[\"phone_number\"]" + }, + { + "OutputKey": "bucketName", + "OutputValue": "amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf" + }, + { + "OutputKey": "signupAttributes", + "OutputValue": "[\"email\",\"phone_number\"]" + }, + { + "OutputKey": "oauthClientId", + "OutputValue": "5fmpdjh49lauff16m1r548ug0t" + }, + { + "OutputKey": "allowUnauthenticatedIdentities", + "OutputValue": "false" + }, + { + "OutputKey": "oauthCognitoDomain", + "OutputValue": "" + }, + { + "OutputKey": "oauthScope", + "OutputValue": "[\"profile\",\"phone\",\"email\",\"openid\",\"aws.cognito.signin.user.admin\"]" + }, + { + "OutputKey": "oauthRedirectSignOut", + "OutputValue": "" + }, + { + "OutputKey": "awsAppsyncAdditionalAuthenticationTypes", + "OutputValue": "AMAZON_COGNITO_USER_POOLS,AWS_IAM" + }, + { + "OutputKey": "mfaTypes", + "OutputValue": "[]" + }, + { + "OutputKey": "mfaConfiguration", + "OutputValue": "OFF" + }, + { + "OutputKey": "storageRegion", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "oauthResponseType", + "OutputValue": "code" + }, + { + "OutputKey": "awsAppsyncApiKey", + "OutputValue": "da2-fakeapikey00000000000000" + }, + { + "OutputKey": "awsAppsyncAuthenticationType", + "OutputValue": "API_KEY" + }, + { + "OutputKey": "oauthRedirectSignIn", + "OutputValue": "https://example.com" + }, + { + "OutputKey": "passwordPolicyMinLength", + "OutputValue": "8" + }, + { + "OutputKey": "awsAppsyncApiEndpoint", + "OutputValue": "https://wlcb7lqbhjdkdhfmcc5xqlkpgi.appsync-api.us-east-1.amazonaws.com/graphql" + }, + { + "OutputKey": "awsAppsyncApiId", + "OutputValue": "wdfhzimbunbg5ahiuonmjslcb4" + }, + { + "OutputKey": "authRegion", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "buckets", + "OutputValue": "[\"{\\\"name\\\":\\\"discus-avatarsx-gen2-x\\\",\\\"bucketName\\\":\\\"amplify-discussion2604142-discusavatarsxgen2eg-tgx9ceq8osxf\\\",\\\"storageRegion\\\":\\\"us-east-1\\\",\\\"paths\\\":{\\\"public/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]},\\\"protected/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]},\\\"private/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]}}}\"]" + }, + { + "OutputKey": "amplifyApiModelSchemaS3Uri", + "OutputValue": "s3://amplify-discussion2604142-amplifydataamplifycodege-gpp6ytfvylbo/model-schema.graphql" + }, + { + "OutputKey": "groups", + "OutputValue": "[]" + }, + { + "OutputKey": "definedFunctions", + "OutputValue": "[\"fetchuseractivity-gen2-x\",\"recorduseractivity-gen2-x\"]" + }, + { + "OutputKey": "passwordlessOptions", + "OutputValue": "" + }, + { + "OutputKey": "awsAppsyncRegion", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "deploymentType", + "OutputValue": "sandbox" + }, + { + "OutputKey": "passwordPolicyRequirements", + "OutputValue": "[]" + }, + { + "OutputKey": "region", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "userPoolId", + "OutputValue": "us-east-1_QiMcYOBJq" + }, + { + "OutputKey": "identityPoolId", + "OutputValue": "us-east-1:0ab20e5d-b843-4969-94b1-c17d26af9934" + }, + { + "OutputKey": "verificationMechanisms", + "OutputValue": "[\"email\"]" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x.parameters.json new file mode 100644 index 00000000000..9b7e2669975 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x.parameters.json @@ -0,0 +1,7 @@ +[ + { + "ParameterKey": "BootstrapVersion", + "ParameterValue": "/cdk-bootstrap/hnb659fds/version", + "ResolvedValue": "30" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x.template.json new file mode 100644 index 00000000000..a6609680efa --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-e2e-sandbox-x.template.json @@ -0,0 +1,925 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.22.0\",\"stackType\":\"root\",\"metadata\":{}}", + "Metadata": { + "AWS::Amplify::Platform": { + "version": "1", + "stackOutputs": [ + "deploymentType", + "region" + ] + }, + "AWS::Amplify::Auth": { + "version": "1", + "stackOutputs": [ + "userPoolId", + "webClientId", + "identityPoolId", + "authRegion", + "allowUnauthenticatedIdentities", + "signupAttributes", + "usernameAttributes", + "verificationMechanisms", + "passwordPolicyMinLength", + "passwordPolicyRequirements", + "mfaConfiguration", + "mfaTypes", + "passwordlessOptions", + "socialProviders", + "oauthCognitoDomain", + "oauthScope", + "oauthRedirectSignIn", + "oauthRedirectSignOut", + "oauthResponseType", + "oauthClientId", + "groups" + ] + }, + "AWS::Amplify::GraphQL": { + "version": "1", + "stackOutputs": [ + "awsAppsyncApiId", + "awsAppsyncApiEndpoint", + "awsAppsyncAuthenticationType", + "awsAppsyncRegion", + "amplifyApiModelSchemaS3Uri", + "awsAppsyncApiKey", + "awsAppsyncAdditionalAuthenticationTypes" + ] + }, + "AWS::Amplify::Function": { + "version": "1", + "stackOutputs": [ + "definedFunctions" + ] + }, + "AWS::Amplify::Storage": { + "version": "1", + "stackOutputs": [ + "buckets", + "storageRegion", + "bucketName" + ] + } + }, + "Outputs": { + "deploymentType": { + "Value": "sandbox" + }, + "region": { + "Value": { + "Ref": "AWS::Region" + } + }, + "userPoolId": { + "Value": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifydiscussionse2esandbox11f7701e3cauthamplifyAuthUserPool78F21D47Ref" + ] + } + }, + "webClientId": { + "Value": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifydiscussionse2esandbox11f7701e3cauthamplifyAuthUserPoolAppClientC0A8CDEFRef" + ] + } + }, + "identityPoolId": { + "Value": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef" + ] + } + }, + "authRegion": { + "Value": { + "Ref": "AWS::Region" + } + }, + "allowUnauthenticatedIdentities": { + "Value": "false" + }, + "signupAttributes": { + "Value": "[\"email\",\"phone_number\"]" + }, + "usernameAttributes": { + "Value": "[\"phone_number\"]" + }, + "verificationMechanisms": { + "Value": "[\"email\"]" + }, + "passwordPolicyMinLength": { + "Value": "8" + }, + "passwordPolicyRequirements": { + "Value": "[]" + }, + "mfaConfiguration": { + "Value": "OFF" + }, + "mfaTypes": { + "Value": "[]" + }, + "passwordlessOptions": { + "Value": "" + }, + "socialProviders": { + "Value": "" + }, + "oauthCognitoDomain": { + "Value": "" + }, + "oauthScope": { + "Value": "[\"profile\",\"phone\",\"email\",\"openid\",\"aws.cognito.signin.user.admin\"]" + }, + "oauthRedirectSignIn": { + "Value": "https://example.com" + }, + "oauthRedirectSignOut": { + "Value": "" + }, + "oauthResponseType": { + "Value": "code" + }, + "oauthClientId": { + "Value": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifydiscussionse2esandbox11f7701e3cauthamplifyAuthUserPoolAppClientC0A8CDEFRef" + ] + } + }, + "groups": { + "Value": "[]" + }, + "awsAppsyncApiId": { + "Value": { + "Fn::GetAtt": [ + "data7552DF31", + "Outputs.amplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AApiId" + ] + } + }, + "awsAppsyncApiEndpoint": { + "Value": { + "Fn::GetAtt": [ + "data7552DF31", + "Outputs.amplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPI642D4E5AGraphQLUrl" + ] + } + }, + "awsAppsyncAuthenticationType": { + "Value": "API_KEY" + }, + "awsAppsyncRegion": { + "Value": { + "Ref": "AWS::Region" + } + }, + "amplifyApiModelSchemaS3Uri": { + "Value": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Fn::Select": [ + 0, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "data7552DF31", + "Outputs.amplifydiscussionse2esandbox11f7701e3cdataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB011B1B49DestinationBucketArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "/model-schema.graphql" + ] + ] + } + }, + "awsAppsyncApiKey": { + "Value": { + "Fn::GetAtt": [ + "data7552DF31", + "Outputs.amplifydiscussionse2esandbox11f7701e3cdataamplifyDataGraphQLAPIDefaultApiKeyD6D1106AApiKey" + ] + } + }, + "awsAppsyncAdditionalAuthenticationTypes": { + "Value": "AMAZON_COGNITO_USER_POOLS,AWS_IAM" + }, + "definedFunctions": { + "Value": { + "Fn::Join": [ + "", + [ + "[\"", + { + "Fn::GetAtt": [ + "function1351588B", + "Outputs.amplifydiscussionse2esandbox11f7701e3cfunctionfetchuseractivitygen2xlambda7D470E0ARef" + ] + }, + "\",\"", + { + "Fn::GetAtt": [ + "function1351588B", + "Outputs.amplifydiscussionse2esandbox11f7701e3cfunctionrecorduseractivitygen2xlambda78ECD6A1Ref" + ] + }, + "\"]" + ] + ] + } + }, + "storageRegion": { + "Value": { + "Ref": "AWS::Region" + } + }, + "bucketName": { + "Value": { + "Fn::GetAtt": [ + "storage0EC3F24A", + "Outputs.amplifydiscussionse2esandbox11f7701e3cstoragediscusavatarsxgen2xBucketC837A45ARef" + ] + } + }, + "buckets": { + "Value": { + "Fn::Join": [ + "", + [ + "[\"{\\\"name\\\":\\\"discus-avatarsx-gen2-x\\\",\\\"bucketName\\\":\\\"", + { + "Fn::GetAtt": [ + "storage0EC3F24A", + "Outputs.amplifydiscussionse2esandbox11f7701e3cstoragediscusavatarsxgen2xBucketC837A45ARef" + ] + }, + "\\\",\\\"storageRegion\\\":\\\"", + { + "Ref": "AWS::Region" + }, + "\\\",\\\"paths\\\":{\\\"public/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]},\\\"protected/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]},\\\"private/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]}}}\"]" + ] + ] + } + } + }, + "Resources": { + "auth179371D7": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/cd82a7dd7e89258d579d1c6f223254c8d41e4bf692c7ad9e8b142ed9511b9e6b.json" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/auth.NestedStack/auth.NestedStackResource", + "aws:asset:path": "amplifydiscussionse2esandbox11f7701e3cauthD9392853.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "data7552DF31": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthUserPool78F21D47Ref": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifydiscussionse2esandbox11f7701e3cauthamplifyAuthUserPool78F21D47Ref" + ] + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref" + ] + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifydiscussionse2esandbox11f7701e3cauthamplifyAuthunauthenticatedUserRole937C879FRef" + ] + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifydiscussionse2esandbox11f7701e3cauthamplifyAuthIdentityPool950F0C9ERef" + ] + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/5d83cc22f499757e19b7dce455dd280f762c162cb541c9a043a8172ce20b0022.json" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/data.NestedStack/data.NestedStackResource", + "aws:asset:path": "amplifydiscussionse2esandbox11f7701e3cdata88FEBEA6.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "storage0EC3F24A": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetoamplifydiscussionse2esandbox11f7701e3cauthNestedStackauthNestedStackResource9C34EC9EOutputsamplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifydiscussionse2esandbox11f7701e3cauthamplifyAuthauthenticatedUserRole30DF3406Ref" + ] + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/48bd8fc1abb1069a68563d10765355d2aed28e558f7451403aed788eb2da5d0e.json" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storage.NestedStack/storage.NestedStackResource", + "aws:asset:path": "amplifydiscussionse2esandbox11f7701e3cstorageEC2B2588.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "function1351588B": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetoamplifydiscussionse2esandbox11f7701e3cstorageactivityNestedStackstorageactivityNestedStackResource537BD226Outputsamplifydiscussionse2esandbox11f7701e3cstorageactivity2CAC8EACArn": { + "Fn::GetAtt": [ + "storageactivityA346F297", + "Outputs.amplifydiscussionse2esandbox11f7701e3cstorageactivity2CAC8EACArn" + ] + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cstorageactivityNestedStackstorageactivityNestedStackResource537BD226Outputsamplifydiscussionse2esandbox11f7701e3cstorageactivity2CAC8EACStreamArn": { + "Fn::GetAtt": [ + "storageactivityA346F297", + "Outputs.amplifydiscussionse2esandbox11f7701e3cstorageactivity2CAC8EACStreamArn" + ] + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cstorageactivityNestedStackstorageactivityNestedStackResource537BD226Outputsamplifydiscussionse2esandbox11f7701e3cstorageactivity2CAC8EACRef": { + "Fn::GetAtt": [ + "storageactivityA346F297", + "Outputs.amplifydiscussionse2esandbox11f7701e3cstorageactivity2CAC8EACRef" + ] + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cdataNestedStackdataNestedStackResourceBAB7F510Outputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataTopicNestedStackTopicNestedStackResourceD7684B5EOutputsamplifydiscuAC9DA0CC": { + "Fn::GetAtt": [ + "data7552DF31", + "Outputs.amplifydiscussionse2esandbox11f7701e3cdataamplifyDataTopicNestedStackTopicNestedStackResourceD7684B5EOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataTopicTopicTableEAA04215TableStreamArn" + ] + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cdataNestedStackdataNestedStackResourceBAB7F510Outputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataPostNestedStackPostNestedStackResource6361465DOutputsamplifydiscuss85F08407": { + "Fn::GetAtt": [ + "data7552DF31", + "Outputs.amplifydiscussionse2esandbox11f7701e3cdataamplifyDataPostNestedStackPostNestedStackResource6361465DOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataPostPostTable9EB88B55TableStreamArn" + ] + }, + "referencetoamplifydiscussionse2esandbox11f7701e3cdataNestedStackdataNestedStackResourceBAB7F510Outputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataCommentNestedStackCommentNestedStackResourceD1B2144FOutputsamplifyd6FB9505C": { + "Fn::GetAtt": [ + "data7552DF31", + "Outputs.amplifydiscussionse2esandbox11f7701e3cdataamplifyDataCommentNestedStackCommentNestedStackResourceD1B2144FOutputsamplifydiscussionse2esandbox11f7701e3cdataamplifyDataCommentCommentTable761EEA24TableStreamArn" + ] + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/7b599db2e5cca825c701b6a4ea776a6b371c81a8e50a750a6ddcee5f2edc598e.json" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/function.NestedStack/function.NestedStackResource", + "aws:asset:path": "amplifydiscussionse2esandbox11f7701e3cfunctionC4803123.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "storageactivityA346F297": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/1183e297da242c15366528e3234c97d802c4ffbc66dd55ef47844f8179945c5f.json" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storageactivity.NestedStack/storageactivity.NestedStackResource", + "aws:asset:path": "amplifydiscussionse2esandbox11f7701e3cstorageactivity658AE115.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "storagebookmarks210DAF62": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/5108a378cace07980480df92cb313bbf891440f1f68125012281aea2e9109b80.json" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/storagebookmarks.NestedStack/storagebookmarks.NestedStackResource", + "aws:asset:path": "amplifydiscussionse2esandbox11f7701e3cstoragebookmarks9FE8BF35.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/zPSMzI10DNQTCwv1k1OydbNyUzSqw4uSUzO1nFOy/MvLSkoLQGxwEK1Onn5Kal6WcX6ZUZGeoZmegaKWcWZmbpFpXklmbmpekEQGgAGekjOVAAAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-discussions-e2e-sandbox-x/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "BootstrapVersion": { + "Type": "AWS::SSM::Parameter::Value", + "Default": "/cdk-bootstrap/hnb659fds/version", + "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]" + } + }, + "Rules": { + "CheckBootstrapVersion": { + "Assertions": [ + { + "Assert": { + "Fn::Not": [ + { + "Fn::Contains": [ + [ + "1", + "2", + "3", + "4", + "5" + ], + { + "Ref": "BootstrapVersion" + } + ] + } + ] + }, + "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI." + } + ] + } + } +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataAmplifyTableManagerNestedStackA-1G8UPOF56UCBP.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataAmplifyTableManagerNestedStackA-1G8UPOF56UCBP.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataAmplifyTableManagerNestedStackA-1G8UPOF56UCBP.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataAmplifyTableManagerNestedStackA-1G8UPOF56UCBP.outputs.json deleted file mode 100644 index 7601f2d4846..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataAmplifyTableManagerNestedStackA-1G8UPOF56UCBP.outputs.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - { - "OutputKey": "amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent7EFC42D0Arn", - "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-discussions-ge-TableManagerCustomProvid-7KlxeduafKru" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataAmplifyTableManagerNestedStackA-1G8UPOF56UCBP.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataAmplifyTableManagerNestedStackA-1G8UPOF56UCBP.parameters.json deleted file mode 100644 index 0e9d9ecff8c..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataAmplifyTableManagerNestedStackA-1G8UPOF56UCBP.parameters.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId", - "ParameterValue": "33zwnmmin5anviw7lh6x2wxanq" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataAmplifyTableManagerNestedStackA-1G8UPOF56UCBP.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataAmplifyTableManagerNestedStackA-1G8UPOF56UCBP.template.json deleted file mode 100644 index 2969c16bed4..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataAmplifyTableManagerNestedStackA-1G8UPOF56UCBP.template.json +++ /dev/null @@ -1,811 +0,0 @@ -{ - "Resources": { - "AmplifyManagedTableIsCompleteRoleF825222C": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:CreateTable", - "dynamodb:UpdateTable", - "dynamodb:DeleteTable", - "dynamodb:DescribeTable", - "dynamodb:DescribeContinuousBackups", - "dynamodb:DescribeTimeToLive", - "dynamodb:UpdateContinuousBackups", - "dynamodb:UpdateTimeToLive", - "dynamodb:TagResource", - "dynamodb:UntagResource", - "dynamodb:ListTagsOfResource" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/*-${apiId}-${envName}", - { - "apiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "envName": "NONE" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", - { - "tableName": "Topic-u3jn2qbupzbyhc3h53673wdvim-main" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", - { - "tableName": "Post-u3jn2qbupzbyhc3h53673wdvim-main" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", - { - "tableName": "Comment-u3jn2qbupzbyhc3h53673wdvim-main" - } - ] - } - ] - }, - { - "Action": "lambda:ListTags", - "Effect": "Allow", - "Resource": { - "Fn::Sub": [ - "arn:${AWS::Partition}:lambda:${AWS::Region}:${AWS::AccountId}:function:*TableManager*", - {} - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "CreateUpdateDeleteTablesPolicy" - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/AmplifyTableManager/AmplifyManagedTableIsCompleteRole/Resource" - } - }, - "AmplifyManagedTableOnEventRoleB4E71DEA": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:CreateTable", - "dynamodb:UpdateTable", - "dynamodb:DeleteTable", - "dynamodb:DescribeTable", - "dynamodb:DescribeContinuousBackups", - "dynamodb:DescribeTimeToLive", - "dynamodb:UpdateContinuousBackups", - "dynamodb:UpdateTimeToLive", - "dynamodb:TagResource", - "dynamodb:UntagResource", - "dynamodb:ListTagsOfResource" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/*-${apiId}-${envName}", - { - "apiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "envName": "NONE" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", - { - "tableName": "Topic-u3jn2qbupzbyhc3h53673wdvim-main" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", - { - "tableName": "Post-u3jn2qbupzbyhc3h53673wdvim-main" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", - { - "tableName": "Comment-u3jn2qbupzbyhc3h53673wdvim-main" - } - ] - } - ] - }, - { - "Action": "lambda:ListTags", - "Effect": "Allow", - "Resource": { - "Fn::Sub": [ - "arn:${AWS::Partition}:lambda:${AWS::Region}:${AWS::AccountId}:function:*TableManager*", - {} - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "CreateUpdateDeleteTablesPolicy" - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/AmplifyTableManager/AmplifyManagedTableOnEventRole/Resource" - } - }, - "AmplifyManagedTableOnEventRoleDefaultPolicyF6DABCB6": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "states:StartExecution", - "Effect": "Allow", - "Resource": { - "Ref": "AmplifyTableWaiterStateMachine060600BC" - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "AmplifyManagedTableOnEventRoleDefaultPolicyF6DABCB6", - "Roles": [ - { - "Ref": "AmplifyManagedTableOnEventRoleB4E71DEA" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/AmplifyTableManager/AmplifyManagedTableOnEventRole/DefaultPolicy/Resource" - } - }, - "TableManagerCustomProviderframeworkonEvent1DFC2ECC": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6.zip" - }, - "Description": "AmplifyManagedTable - onEvent (amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider)", - "Environment": { - "Variables": { - "WAITER_STATE_MACHINE_ARN": { - "Ref": "AmplifyTableWaiterStateMachine060600BC" - } - } - }, - "Handler": "amplify-table-manager-handler.onEvent", - "Role": { - "Fn::GetAtt": [ - "AmplifyManagedTableOnEventRoleB4E71DEA", - "Arn" - ] - }, - "Runtime": "nodejs24.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 840 - }, - "DependsOn": [ - "AmplifyManagedTableOnEventRoleDefaultPolicyF6DABCB6", - "AmplifyManagedTableOnEventRoleB4E71DEA" - ], - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider/framework-onEvent/Resource", - "aws:asset:path": "asset.f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6", - "aws:asset:is-bundled": false, - "aws:asset:property": "Code" - } - }, - "TableManagerCustomProviderframeworkisComplete2E51021B": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6.zip" - }, - "Description": "AmplifyManagedTable - isComplete (amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider)", - "Handler": "amplify-table-manager-handler.isComplete", - "Role": { - "Fn::GetAtt": [ - "AmplifyManagedTableIsCompleteRoleF825222C", - "Arn" - ] - }, - "Runtime": "nodejs24.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 840 - }, - "DependsOn": [ - "AmplifyManagedTableIsCompleteRoleF825222C" - ], - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider/framework-isComplete/Resource", - "aws:asset:path": "asset.f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6", - "aws:asset:is-bundled": false, - "aws:asset:property": "Code" - } - }, - "AmplifyTableWaiterStateMachineRole470BE899": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "states.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Role/Resource" - } - }, - "AmplifyTableWaiterStateMachineRoleDefaultPolicy89F3836A": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "lambda:InvokeFunction", - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "TableManagerCustomProviderframeworkisComplete2E51021B", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "TableManagerCustomProviderframeworkisComplete2E51021B", - "Arn" - ] - }, - ":*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "AmplifyTableWaiterStateMachineRoleDefaultPolicy89F3836A", - "Roles": [ - { - "Ref": "AmplifyTableWaiterStateMachineRole470BE899" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Role/DefaultPolicy/Resource" - } - }, - "AmplifyTableWaiterStateMachine060600BC": { - "Type": "AWS::StepFunctions::StateMachine", - "Properties": { - "DefinitionString": { - "Fn::Join": [ - "", - [ - "{\"StartAt\":\"framework-isComplete-task\",\"States\":{\"framework-isComplete-task\":{\"End\":true,\"Retry\":[{\"ErrorEquals\":[\"States.ALL\"],\"IntervalSeconds\":10,\"MaxAttempts\":360,\"BackoffRate\":1}],\"Type\":\"Task\",\"Resource\":\"", - { - "Fn::GetAtt": [ - "TableManagerCustomProviderframeworkisComplete2E51021B", - "Arn" - ] - }, - "\"}}}" - ] - ] - }, - "RoleArn": { - "Fn::GetAtt": [ - "AmplifyTableWaiterStateMachineRole470BE899", - "Arn" - ] - } - }, - "DependsOn": [ - "AmplifyTableWaiterStateMachineRoleDefaultPolicy89F3836A", - "AmplifyTableWaiterStateMachineRole470BE899" - ], - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/zWNQQ6CMBBFz8K+jAgs3IqJS2PgAGRoR1IobcIUiWl6dwPo6r2ft/g55GUJWYIrp1KNqdEdhAexJ9V4lKPAldugcYJQO0Pi9rI7n85o+dnmYVEYnDqFEO6LlV47u7W/R8FFi8zkGa4bBBdQLXIkXyFTFDWxW2ZJYq+Nx17bfj/7hSisUwQDn955DucLZMnAWqfzYr2eCOqDX96JKODPAAAA" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/AmplifyTableManager/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId": { - "Type": "String" - } - }, - "Outputs": { - "amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent7EFC42D0Arn": { - "Value": { - "Fn::GetAtt": [ - "TableManagerCustomProviderframeworkonEvent1DFC2ECC", - "Arn" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataCommentNestedStackCommentNested-222WVXGP4U1I.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataCommentNestedStackCommentNested-222WVXGP4U1I.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataCommentNestedStackCommentNested-222WVXGP4U1I.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataCommentNestedStackCommentNested-222WVXGP4U1I.outputs.json deleted file mode 100644 index f42ce2f2133..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataCommentNestedStackCommentNested-222WVXGP4U1I.outputs.json +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "OutputKey": "GetAttCommentTableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Comment-u3jn2qbupzbyhc3h53673wdvim-main/stream/2026-03-20T21:21:05.630", - "Description": "Your DynamoDB table StreamArn.", - "ExportName": "33zwnmmin5anviw7lh6x2wxanq:GetAtt:CommentTable:StreamArn" - }, - { - "OutputKey": "amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataCommentCommentTable4FC8AE39TableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Comment-u3jn2qbupzbyhc3h53673wdvim-main/stream/2026-03-20T21:21:05.630" - }, - { - "OutputKey": "amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataCommentCommentTable4FC8AE39TableArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Comment-u3jn2qbupzbyhc3h53673wdvim-main" - }, - { - "OutputKey": "GetAttCommentTableName", - "OutputValue": "Comment-u3jn2qbupzbyhc3h53673wdvim-main", - "Description": "Your DynamoDB table name.", - "ExportName": "33zwnmmin5anviw7lh6x2wxanq:GetAtt:CommentTable:Name" - }, - { - "OutputKey": "amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataCommentCommentDataSource55E61D91Name", - "OutputValue": "CommentTable" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataCommentNestedStackCommentNested-222WVXGP4U1I.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataCommentNestedStackCommentNested-222WVXGP4U1I.parameters.json deleted file mode 100644 index edd12e2f741..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataCommentNestedStackCommentNested-222WVXGP4U1I.parameters.json +++ /dev/null @@ -1,46 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref", - "ParameterValue": "us-east-1:d48cd035-0397-46c6-b39a-19514b421022" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "true" - }, - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId", - "ParameterValue": "33zwnmmin5anviw7lh6x2wxanq" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource72A5C49BOutputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataAmplifyTableManagerTableMaAF5EF112", - "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-discussions-ge-TableManagerCustomProvid-7KlxeduafKru" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef", - "ParameterValue": "amplify-discussions-ge-amplifyAuthunauthenticate-iYWdMAuszYuZ" - }, - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef", - "ParameterValue": "amplify-discussions-ge-amplifyAuthauthenticatedU-fjzgnNdQ7Oe2" - }, - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName", - "ParameterValue": "NONE_DS" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataCommentNestedStackCommentNested-222WVXGP4U1I.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataCommentNestedStackCommentNested-222WVXGP4U1I.template.json deleted file mode 100644 index bb7448171e8..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataCommentNestedStackCommentNested-222WVXGP4U1I.template.json +++ /dev/null @@ -1,2023 +0,0 @@ -{ - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource72A5C49BOutputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataAmplifyTableManagerTableMaAF5EF112": { - "Type": "String" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId": { - "Type": "String" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName": { - "Type": "String" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef": { - "Type": "String" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef": { - "Type": "String" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref": { - "Type": "String" - } - }, - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - "NONE", - "NONE" - ] - } - ] - }, - "ShouldUsePayPerRequestBilling": { - "Fn::Equals": [ - { - "Ref": "DynamoDBBillingMode" - }, - "PAY_PER_REQUEST" - ] - }, - "ShouldUsePointInTimeRecovery": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "true" - ] - }, - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Resources": { - "CommentTable": { - "Type": "Custom::ImportedAmplifyDynamoDBTable", - "Properties": { - "ServiceToken": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource72A5C49BOutputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataAmplifyTableManagerTableMaAF5EF112" - }, - "tableName": "Comment-u3jn2qbupzbyhc3h53673wdvim-main", - "attributeDefinitions": [ - { - "attributeName": "id", - "attributeType": "S" - }, - { - "attributeName": "postCommentsId", - "attributeType": "S" - } - ], - "keySchema": [ - { - "attributeName": "id", - "keyType": "HASH" - } - ], - "globalSecondaryIndexes": [ - { - "indexName": "gsi-Post.comments", - "keySchema": [ - { - "attributeName": "postCommentsId", - "keyType": "HASH" - } - ], - "projection": { - "projectionType": "ALL" - }, - "provisionedThroughput": { - "readCapacityUnits": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "writeCapacityUnits": { - "Ref": "DynamoDBModelTableWriteIOPS" - } - } - } - ], - "provisionedThroughput": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - { - "Ref": "AWS::NoValue" - }, - { - "ReadCapacityUnits": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "WriteCapacityUnits": { - "Ref": "DynamoDBModelTableWriteIOPS" - } - } - ] - }, - "sseSpecification": { - "sseEnabled": false - }, - "streamSpecification": { - "streamViewType": "NEW_AND_OLD_IMAGES" - }, - "deletionProtectionEnabled": true, - "allowDestructiveGraphqlSchemaUpdates": true, - "replaceTableUponGsiUpdate": false, - "isImported": true, - "pointInTimeRecoverySpecification": { - "Fn::If": [ - "ShouldUsePointInTimeRecovery", - { - "PointInTimeRecoveryEnabled": true - }, - { - "Ref": "AWS::NoValue" - } - ] - }, - "billingMode": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - "PAY_PER_REQUEST", - { - "Ref": "AWS::NoValue" - } - ] - } - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain", - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Comment/CommentTable/Default/Default" - } - }, - "CommentIAMRoleD5EC5F51": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:DeleteItem", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:Query", - "dynamodb:UpdateItem", - "dynamodb:ConditionCheckItem", - "dynamodb:DescribeTable", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", - { - "tablename": "Comment-u3jn2qbupzbyhc3h53673wdvim-main" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", - { - "tablename": "Comment-u3jn2qbupzbyhc3h53673wdvim-main" - } - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "DynamoDBAccess" - } - ], - "RoleName": { - "Fn::Join": [ - "", - [ - "CommentIAMRole20388d-", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "-NONE" - ] - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Comment/CommentIAMRole/Resource" - } - }, - "CommentDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DynamoDBConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "TableName": { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "CommentTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - } - }, - "Name": "CommentTable", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "CommentIAMRoleD5EC5F51", - "Arn" - ] - }, - "Type": "AMAZON_DYNAMODB" - }, - "DependsOn": [ - "CommentIAMRoleD5EC5F51" - ], - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Comment/CommentDataSource/Resource" - } - }, - "QuerygetCommentauth0FunctionQuerygetCommentauth0FunctionAppSyncFunction4992FD06": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetCommentauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/0224a3e5097427da3f4460b5d6d2b86ad4195c9cb8da7bc13e7187eead1c3ae3.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Comment/QuerygetCommentauth0Function/QuerygetCommentauth0Function.AppSyncFunction" - } - }, - "QuerygetCommentpostAuth0FunctionQuerygetCommentpostAuth0FunctionAppSyncFunction27405A71": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetCommentpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Comment/QuerygetCommentpostAuth0Function/QuerygetCommentpostAuth0Function.AppSyncFunction" - } - }, - "QueryGetCommentDataResolverFnQueryGetCommentDataResolverFnAppSyncFunction8473E2B0": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "CommentDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryGetCommentDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/08f4d557693d96c1a4efba0f9dc91330e4b19772fd5477c156468843e3d9cb5e.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4c6a2d29f01c6091bd1d9afe16e5849d456c96f17c3b215938c8067399532719.vtl" - } - }, - "DependsOn": [ - "CommentDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Comment/QueryGetCommentDataResolverFn/QueryGetCommentDataResolverFn.AppSyncFunction" - } - }, - "GetCommentResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "FieldName": "getComment", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerygetCommentauth0FunctionQuerygetCommentauth0FunctionAppSyncFunction4992FD06", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetCommentpostAuth0FunctionQuerygetCommentpostAuth0FunctionAppSyncFunction27405A71", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryGetCommentDataResolverFnQueryGetCommentDataResolverFnAppSyncFunction8473E2B0", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "CommentTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Comment/queryGetCommentResolver" - } - }, - "QuerylistCommentsauth0FunctionQuerylistCommentsauth0FunctionAppSyncFunctionC7B0414F": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerylistCommentsauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/0224a3e5097427da3f4460b5d6d2b86ad4195c9cb8da7bc13e7187eead1c3ae3.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Comment/QuerylistCommentsauth0Function/QuerylistCommentsauth0Function.AppSyncFunction" - } - }, - "QuerylistCommentspostAuth0FunctionQuerylistCommentspostAuth0FunctionAppSyncFunctionEDC68EF5": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerylistCommentspostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Comment/QuerylistCommentspostAuth0Function/QuerylistCommentspostAuth0Function.AppSyncFunction" - } - }, - "QueryListCommentsDataResolverFnQueryListCommentsDataResolverFnAppSyncFunction474D4A91": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "CommentDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryListCommentsDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9fcbe070ecd3023c5bf5b966fa9584757db9762eef123bad0820bd87591b2174.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/cc01911d0269d4080ea57505dc445dfc315ef7ad85d3d9d4ea1357858bff451d.vtl" - } - }, - "DependsOn": [ - "CommentDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Comment/QueryListCommentsDataResolverFn/QueryListCommentsDataResolverFn.AppSyncFunction" - } - }, - "ListCommentResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "FieldName": "listComments", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerylistCommentsauth0FunctionQuerylistCommentsauth0FunctionAppSyncFunctionC7B0414F", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerylistCommentspostAuth0FunctionQuerylistCommentspostAuth0FunctionAppSyncFunctionEDC68EF5", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryListCommentsDataResolverFnQueryListCommentsDataResolverFnAppSyncFunction474D4A91", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listComments\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "CommentTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Comment/queryListCommentsResolver" - } - }, - "MutationcreateCommentinit0FunctionMutationcreateCommentinit0FunctionAppSyncFunction77870FAC": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateCommentinit0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a183ddccbd956316c38ef97177b8f088ef0826f62023323f5ae6053d348ccffc.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Comment/MutationcreateCommentinit0Function/MutationcreateCommentinit0Function.AppSyncFunction" - } - }, - "MutationcreateCommentauth0FunctionMutationcreateCommentauth0FunctionAppSyncFunctionE6EA011A": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateCommentauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/d637c1fb7301003b8a5ada269338cf2e8df6cc0dc412ef13acc6158d680b6d3e.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Comment/MutationcreateCommentauth0Function/MutationcreateCommentauth0Function.AppSyncFunction" - } - }, - "MutationcreateCommentpostAuth0FunctionMutationcreateCommentpostAuth0FunctionAppSyncFunction4F8AA7FF": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateCommentpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Comment/MutationcreateCommentpostAuth0Function/MutationcreateCommentpostAuth0Function.AppSyncFunction" - } - }, - "MutationCreateCommentDataResolverFnMutationCreateCommentDataResolverFnAppSyncFunctionD019FFE0": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "CommentDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationCreateCommentDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c01fe250817e3727b22216dee7e6c75fbb7c9166595000655c6879d0b33b582d.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "CommentDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Comment/MutationCreateCommentDataResolverFn/MutationCreateCommentDataResolverFn.AppSyncFunction" - } - }, - "CreateCommentResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "FieldName": "createComment", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationcreateCommentinit0FunctionMutationcreateCommentinit0FunctionAppSyncFunction77870FAC", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationcreateCommentauth0FunctionMutationcreateCommentauth0FunctionAppSyncFunctionE6EA011A", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationcreateCommentpostAuth0FunctionMutationcreateCommentpostAuth0FunctionAppSyncFunction4F8AA7FF", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationCreateCommentDataResolverFnMutationCreateCommentDataResolverFnAppSyncFunctionD019FFE0", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "CommentTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Comment/mutationCreateCommentResolver" - } - }, - "MutationupdateCommentinit0FunctionMutationupdateCommentinit0FunctionAppSyncFunction9C9EFBAD": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateCommentinit0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/06db846fd14e6fc371f22b12b5545ba8e2dbfeda85d8c8d586c71c282166657b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Comment/MutationupdateCommentinit0Function/MutationupdateCommentinit0Function.AppSyncFunction" - } - }, - "MutationupdateCommentauth0FunctionMutationupdateCommentauth0FunctionAppSyncFunction4E4C7C30": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "CommentDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateCommentauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/89f92efd98b1034df0e2497fe31a97de6975de554b8a22e0677d05d6efcafa59.vtl" - } - }, - "DependsOn": [ - "CommentDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Comment/MutationupdateCommentauth0Function/MutationupdateCommentauth0Function.AppSyncFunction" - } - }, - "MutationupdateCommentpostAuth0FunctionMutationupdateCommentpostAuth0FunctionAppSyncFunctionCDD716F2": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateCommentpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Comment/MutationupdateCommentpostAuth0Function/MutationupdateCommentpostAuth0Function.AppSyncFunction" - } - }, - "MutationUpdateCommentDataResolverFnMutationUpdateCommentDataResolverFnAppSyncFunctionB47372B5": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "CommentDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationUpdateCommentDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/474bf0776ec2164a13191d1a0a9e057154931e4918fea5086f49850d02a5371b.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "CommentDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Comment/MutationUpdateCommentDataResolverFn/MutationUpdateCommentDataResolverFn.AppSyncFunction" - } - }, - "UpdateCommentResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "FieldName": "updateComment", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationupdateCommentinit0FunctionMutationupdateCommentinit0FunctionAppSyncFunction9C9EFBAD", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationupdateCommentauth0FunctionMutationupdateCommentauth0FunctionAppSyncFunction4E4C7C30", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationupdateCommentpostAuth0FunctionMutationupdateCommentpostAuth0FunctionAppSyncFunctionCDD716F2", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationUpdateCommentDataResolverFnMutationUpdateCommentDataResolverFnAppSyncFunctionB47372B5", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "CommentTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Comment/mutationUpdateCommentResolver" - } - }, - "MutationdeleteCommentauth0FunctionMutationdeleteCommentauth0FunctionAppSyncFunction268B298A": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "CommentDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeleteCommentauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e3416b4d47414f29c21e59a70e83bddb959ef0625854ed7fb0ca376573e99069.vtl" - } - }, - "DependsOn": [ - "CommentDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Comment/MutationdeleteCommentauth0Function/MutationdeleteCommentauth0Function.AppSyncFunction" - } - }, - "MutationdeleteCommentpostAuth0FunctionMutationdeleteCommentpostAuth0FunctionAppSyncFunctionDFFD097E": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeleteCommentpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Comment/MutationdeleteCommentpostAuth0Function/MutationdeleteCommentpostAuth0Function.AppSyncFunction" - } - }, - "MutationDeleteCommentDataResolverFnMutationDeleteCommentDataResolverFnAppSyncFunctionD661C8CB": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "CommentDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationDeleteCommentDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4f7907d1209a2c9953a0c053df402c634e359546d70c7cc5c2e8e21ea734880f.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "CommentDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Comment/MutationDeleteCommentDataResolverFn/MutationDeleteCommentDataResolverFn.AppSyncFunction" - } - }, - "DeleteCommentResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "FieldName": "deleteComment", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationdeleteCommentauth0FunctionMutationdeleteCommentauth0FunctionAppSyncFunction268B298A", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationdeleteCommentpostAuth0FunctionMutationdeleteCommentpostAuth0FunctionAppSyncFunctionDFFD097E", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationDeleteCommentDataResolverFnMutationDeleteCommentDataResolverFnAppSyncFunctionD661C8CB", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "CommentTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Comment/mutationDeleteCommentResolver" - } - }, - "SubscriptiononCreateCommentauth0FunctionSubscriptiononCreateCommentauth0FunctionAppSyncFunction883537CC": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononCreateCommentauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e6da5a6e993df8b5fdc91086b71eb53e72a3a97c98836ef9c9257776f36c452b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Comment/SubscriptiononCreateCommentauth0Function/SubscriptiononCreateCommentauth0Function.AppSyncFunction" - } - }, - "SubscriptiononCreateCommentpostAuth0FunctionSubscriptiononCreateCommentpostAuth0FunctionAppSyncFunction34E6A73D": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononCreateCommentpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Comment/SubscriptiononCreateCommentpostAuth0Function/SubscriptiononCreateCommentpostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnCreateCommentDataResolverFnSubscriptionOnCreateCommentDataResolverFnAppSyncFunction72E30EF8": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnCreateCommentDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Comment/SubscriptionOnCreateCommentDataResolverFn/SubscriptionOnCreateCommentDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononCreateCommentResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "FieldName": "onCreateComment", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononCreateCommentauth0FunctionSubscriptiononCreateCommentauth0FunctionAppSyncFunction883537CC", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononCreateCommentpostAuth0FunctionSubscriptiononCreateCommentpostAuth0FunctionAppSyncFunction34E6A73D", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnCreateCommentDataResolverFnSubscriptionOnCreateCommentDataResolverFnAppSyncFunction72E30EF8", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Comment/subscriptionOnCreateCommentResolver" - } - }, - "SubscriptiononUpdateCommentauth0FunctionSubscriptiononUpdateCommentauth0FunctionAppSyncFunction6F76395C": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononUpdateCommentauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e6da5a6e993df8b5fdc91086b71eb53e72a3a97c98836ef9c9257776f36c452b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Comment/SubscriptiononUpdateCommentauth0Function/SubscriptiononUpdateCommentauth0Function.AppSyncFunction" - } - }, - "SubscriptiononUpdateCommentpostAuth0FunctionSubscriptiononUpdateCommentpostAuth0FunctionAppSyncFunction0EF93814": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononUpdateCommentpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Comment/SubscriptiononUpdateCommentpostAuth0Function/SubscriptiononUpdateCommentpostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnUpdateCommentDataResolverFnSubscriptionOnUpdateCommentDataResolverFnAppSyncFunction6B18681F": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnUpdateCommentDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Comment/SubscriptionOnUpdateCommentDataResolverFn/SubscriptionOnUpdateCommentDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononUpdateCommentResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "FieldName": "onUpdateComment", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononUpdateCommentauth0FunctionSubscriptiononUpdateCommentauth0FunctionAppSyncFunction6F76395C", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononUpdateCommentpostAuth0FunctionSubscriptiononUpdateCommentpostAuth0FunctionAppSyncFunction0EF93814", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnUpdateCommentDataResolverFnSubscriptionOnUpdateCommentDataResolverFnAppSyncFunction6B18681F", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Comment/subscriptionOnUpdateCommentResolver" - } - }, - "SubscriptiononDeleteCommentauth0FunctionSubscriptiononDeleteCommentauth0FunctionAppSyncFunctionA85E4D19": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononDeleteCommentauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e6da5a6e993df8b5fdc91086b71eb53e72a3a97c98836ef9c9257776f36c452b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Comment/SubscriptiononDeleteCommentauth0Function/SubscriptiononDeleteCommentauth0Function.AppSyncFunction" - } - }, - "SubscriptiononDeleteCommentpostAuth0FunctionSubscriptiononDeleteCommentpostAuth0FunctionAppSyncFunction67A1094D": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononDeleteCommentpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Comment/SubscriptiononDeleteCommentpostAuth0Function/SubscriptiononDeleteCommentpostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnDeleteCommentDataResolverFnSubscriptionOnDeleteCommentDataResolverFnAppSyncFunctionB17CE9F9": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnDeleteCommentDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Comment/SubscriptionOnDeleteCommentDataResolverFn/SubscriptionOnDeleteCommentDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononDeleteCommentResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "FieldName": "onDeleteComment", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononDeleteCommentauth0FunctionSubscriptiononDeleteCommentauth0FunctionAppSyncFunctionA85E4D19", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononDeleteCommentpostAuth0FunctionSubscriptiononDeleteCommentpostAuth0FunctionAppSyncFunction67A1094D", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnDeleteCommentDataResolverFnSubscriptionOnDeleteCommentDataResolverFnAppSyncFunctionB17CE9F9", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Comment/subscriptionOnDeleteCommentResolver" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOwW6DMAyGn6X31OtoD7uuoB63CXavTGJQCjgodlpViHefoFOnnX5/8if7zyA7HGC3wZtsreu2va9h+iBRcpWi7Uze8BdGHEgpLpAHdl59YFOShBQtmTyJhuEPG37OeJPz5O6MQ3A1fGPd0xGFjMcBpjL0Dzv0NBscR7mzhalY9aIuULF6nvxPp8R2KZEHbnybIq6Nfj/3V4qzkf0ZRUgF3pcwsodjsh3pUmBe3M+kY1KzrivF1nM7Gw6O4CIv1yyD1zfYbS7i/TYmVj8QlI/8AVayTVs2AQAA" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Comment/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Outputs": { - "GetAttCommentTableStreamArn": { - "Description": "Your DynamoDB table StreamArn.", - "Value": { - "Fn::GetAtt": [ - "CommentTable", - "TableStreamArn" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "GetAtt:CommentTable:StreamArn" - ] - ] - } - } - }, - "GetAttCommentTableName": { - "Description": "Your DynamoDB table name.", - "Value": "Comment-u3jn2qbupzbyhc3h53673wdvim-main", - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "GetAtt:CommentTable:Name" - ] - ] - } - } - }, - "amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataCommentCommentDataSource55E61D91Name": { - "Value": { - "Fn::GetAtt": [ - "CommentDataSource", - "Name" - ] - } - }, - "amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataCommentCommentTable4FC8AE39TableArn": { - "Value": { - "Fn::GetAtt": [ - "CommentTable", - "TableArn" - ] - } - }, - "amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataCommentCommentTable4FC8AE39TableStreamArn": { - "Value": { - "Fn::GetAtt": [ - "CommentTable", - "TableStreamArn" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataConnectionStackNestedStackConne-PQO5GNBUSDH0.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataConnectionStackNestedStackConne-PQO5GNBUSDH0.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataConnectionStackNestedStackConne-PQO5GNBUSDH0.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataConnectionStackNestedStackConne-PQO5GNBUSDH0.outputs.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataConnectionStackNestedStackConne-PQO5GNBUSDH0.outputs.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataConnectionStackNestedStackConne-PQO5GNBUSDH0.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataConnectionStackNestedStackConne-PQO5GNBUSDH0.parameters.json deleted file mode 100644 index bd69ee2226d..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataConnectionStackNestedStackConne-PQO5GNBUSDH0.parameters.json +++ /dev/null @@ -1,46 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref", - "ParameterValue": "us-east-1:d48cd035-0397-46c6-b39a-19514b421022" - }, - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataTopicNestedStackTopicNestedStackResourceBD3B6C61Outputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataTopicTopicDataSource5289BBFCName", - "ParameterValue": "TopicTable" - }, - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId", - "ParameterValue": "33zwnmmin5anviw7lh6x2wxanq" - }, - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataPostNestedStackPostNestedStackResource3E8F8B99Outputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataPostPostTable3FE3EB5DTableArn", - "ParameterValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Post-u3jn2qbupzbyhc3h53673wdvim-main" - }, - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataCommentNestedStackCommentNestedStackResource06709DCDOutputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataCommentCommentDataSource55E61D91Name", - "ParameterValue": "CommentTable" - }, - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataPostNestedStackPostNestedStackResource3E8F8B99Outputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataPostPostDataSource1181B975Name", - "ParameterValue": "PostTable" - }, - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef", - "ParameterValue": "amplify-discussions-ge-amplifyAuthunauthenticate-iYWdMAuszYuZ" - }, - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef", - "ParameterValue": "amplify-discussions-ge-amplifyAuthauthenticatedU-fjzgnNdQ7Oe2" - }, - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataCommentNestedStackCommentNestedStackResource06709DCDOutputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataCommentCommentTable4FC8AE39TableArn", - "ParameterValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Comment-u3jn2qbupzbyhc3h53673wdvim-main" - }, - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataTopicNestedStackTopicNestedStackResourceBD3B6C61Outputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataTopicTopicTable0F7B351ATableArn", - "ParameterValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Topic-u3jn2qbupzbyhc3h53673wdvim-main" - }, - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName", - "ParameterValue": "NONE_DS" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataConnectionStackNestedStackConne-PQO5GNBUSDH0.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataConnectionStackNestedStackConne-PQO5GNBUSDH0.template.json deleted file mode 100644 index 9b2db466b44..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataConnectionStackNestedStackConne-PQO5GNBUSDH0.template.json +++ /dev/null @@ -1,863 +0,0 @@ -{ - "Resources": { - "Topicpostsauth0FunctionTopicpostsauth0FunctionAppSyncFunctionF8CB58E2": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "Topicpostsauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/98d57dc1efb9e47547e4d43b376202499240f34e43676c88c84fab62008b2bf5.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/ConnectionStack/Topicpostsauth0Function/Topicpostsauth0Function.AppSyncFunction" - } - }, - "TopicPostsDataResolverFnTopicPostsDataResolverFnAppSyncFunctionBB79629F": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataPostNestedStackPostNestedStackResource3E8F8B99Outputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataPostPostDataSource1181B975Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "TopicPostsDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/0452137320035df37094760b82b5149298b81accf971d76ad38ee60f3b29d5e7.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/49e7a1f2fb4c809b82bed6b0242a2a3bcfa2c5276ebd2539ff330fee36f8fe18.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/ConnectionStack/TopicPostsDataResolverFn/TopicPostsDataResolverFn.AppSyncFunction" - } - }, - "TopicpostsResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "FieldName": "posts", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "Topicpostsauth0FunctionTopicpostsauth0FunctionAppSyncFunctionF8CB58E2", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "TopicPostsDataResolverFnTopicPostsDataResolverFnAppSyncFunctionBB79629F", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Topic\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"posts\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataPostNestedStackPostNestedStackResource3E8F8B99Outputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataPostPostTable3FE3EB5DTableArn" - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Topic" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/ConnectionStack/topicPostsResolver" - } - }, - "Postcommentsauth0FunctionPostcommentsauth0FunctionAppSyncFunction0DA41083": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "Postcommentsauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/98d57dc1efb9e47547e4d43b376202499240f34e43676c88c84fab62008b2bf5.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/ConnectionStack/Postcommentsauth0Function/Postcommentsauth0Function.AppSyncFunction" - } - }, - "PostCommentsDataResolverFnPostCommentsDataResolverFnAppSyncFunction87EBA9A8": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataCommentNestedStackCommentNestedStackResource06709DCDOutputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataCommentCommentDataSource55E61D91Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "PostCommentsDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/444a200bade4d50fad7f149c350401ee16cad72a4c043f9e9734f522754f11ef.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/49e7a1f2fb4c809b82bed6b0242a2a3bcfa2c5276ebd2539ff330fee36f8fe18.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/ConnectionStack/PostCommentsDataResolverFn/PostCommentsDataResolverFn.AppSyncFunction" - } - }, - "PostcommentsResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "FieldName": "comments", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "Postcommentsauth0FunctionPostcommentsauth0FunctionAppSyncFunction0DA41083", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "PostCommentsDataResolverFnPostCommentsDataResolverFnAppSyncFunction87EBA9A8", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Post\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"comments\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataCommentNestedStackCommentNestedStackResource06709DCDOutputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataCommentCommentTable4FC8AE39TableArn" - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Post" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/ConnectionStack/postCommentsResolver" - } - }, - "Posttopicauth0FunctionPosttopicauth0FunctionAppSyncFunctionFCD7294D": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "Posttopicauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/98d57dc1efb9e47547e4d43b376202499240f34e43676c88c84fab62008b2bf5.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/ConnectionStack/Posttopicauth0Function/Posttopicauth0Function.AppSyncFunction" - } - }, - "PostTopicDataResolverFnPostTopicDataResolverFnAppSyncFunctionEF6EA503": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataTopicNestedStackTopicNestedStackResourceBD3B6C61Outputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataTopicTopicDataSource5289BBFCName" - }, - "FunctionVersion": "2018-05-29", - "Name": "PostTopicDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/da20b1b19b27f9de5414e30169ea8b7e9b7d0576828fa460b512ecff6b3130ec.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/dcb70e4856bc9a423e02b8b9e9c2ab3f71479784572d4c04a02d1f5b61a9f9ac.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/ConnectionStack/PostTopicDataResolverFn/PostTopicDataResolverFn.AppSyncFunction" - } - }, - "PosttopicResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "FieldName": "topic", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "Posttopicauth0FunctionPosttopicauth0FunctionAppSyncFunctionFCD7294D", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "PostTopicDataResolverFnPostTopicDataResolverFnAppSyncFunctionEF6EA503", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Post\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"topic\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataTopicNestedStackTopicNestedStackResourceBD3B6C61Outputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataTopicTopicTable0F7B351ATableArn" - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Post" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/ConnectionStack/postTopicResolver" - } - }, - "Commentpostauth0FunctionCommentpostauth0FunctionAppSyncFunction99E13BF9": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "Commentpostauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/98d57dc1efb9e47547e4d43b376202499240f34e43676c88c84fab62008b2bf5.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/ConnectionStack/Commentpostauth0Function/Commentpostauth0Function.AppSyncFunction" - } - }, - "CommentPostDataResolverFnCommentPostDataResolverFnAppSyncFunction20ABACCE": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataPostNestedStackPostNestedStackResource3E8F8B99Outputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataPostPostDataSource1181B975Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "CommentPostDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/d9b82f67424a0a70dc059a69c4a0bbc6fd4c387ca5ad9f1b396a96a8c7c10b62.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/dcb70e4856bc9a423e02b8b9e9c2ab3f71479784572d4c04a02d1f5b61a9f9ac.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/ConnectionStack/CommentPostDataResolverFn/CommentPostDataResolverFn.AppSyncFunction" - } - }, - "CommentpostResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "FieldName": "post", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "Commentpostauth0FunctionCommentpostauth0FunctionAppSyncFunction99E13BF9", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "CommentPostDataResolverFnCommentPostDataResolverFnAppSyncFunction20ABACCE", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Comment\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"post\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataPostNestedStackPostNestedStackResource3E8F8B99Outputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataPostPostTable3FE3EB5DTableArn" - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Comment" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/ConnectionStack/commentPostResolver" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXMsQ6CMBCA4WdhLycWBlchcXSAByBnOUgBr6TXQgzh3Q06ffmXX4MuCsgS3CQ13ZTO9gX7kyRQ1wQ0k8JN2l3yFkUoCNxPlORQRjNRKFFI4bLIhw3sVc+PyCZYx5Xj3g7R4xmq6rkmcfNK/jjU79EEHCwPh2LXEYxyWbWG6w2yZBRrUx852DdB/fcLf5ddvqcAAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/ConnectionStack/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId": { - "Type": "String" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName": { - "Type": "String" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataPostNestedStackPostNestedStackResource3E8F8B99Outputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataPostPostDataSource1181B975Name": { - "Type": "String" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataPostNestedStackPostNestedStackResource3E8F8B99Outputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataPostPostTable3FE3EB5DTableArn": { - "Type": "String" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef": { - "Type": "String" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef": { - "Type": "String" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref": { - "Type": "String" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataCommentNestedStackCommentNestedStackResource06709DCDOutputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataCommentCommentDataSource55E61D91Name": { - "Type": "String" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataCommentNestedStackCommentNestedStackResource06709DCDOutputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataCommentCommentTable4FC8AE39TableArn": { - "Type": "String" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataTopicNestedStackTopicNestedStackResourceBD3B6C61Outputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataTopicTopicDataSource5289BBFCName": { - "Type": "String" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataTopicNestedStackTopicNestedStackResourceBD3B6C61Outputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataTopicTopicTable0F7B351ATableArn": { - "Type": "String" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataFunctionDirectiveStackNestedSta-BHA8YE0S9OYY.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataFunctionDirectiveStackNestedSta-BHA8YE0S9OYY.description.txt deleted file mode 100644 index 87d574fa42f..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataFunctionDirectiveStackNestedSta-BHA8YE0S9OYY.description.txt +++ /dev/null @@ -1 +0,0 @@ -An auto-generated nested stack for the @function directive. \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataFunctionDirectiveStackNestedSta-BHA8YE0S9OYY.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataFunctionDirectiveStackNestedSta-BHA8YE0S9OYY.outputs.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataFunctionDirectiveStackNestedSta-BHA8YE0S9OYY.outputs.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataFunctionDirectiveStackNestedSta-BHA8YE0S9OYY.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataFunctionDirectiveStackNestedSta-BHA8YE0S9OYY.parameters.json deleted file mode 100644 index 404c0f6de05..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataFunctionDirectiveStackNestedSta-BHA8YE0S9OYY.parameters.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref", - "ParameterValue": "us-east-1:d48cd035-0397-46c6-b39a-19514b421022" - }, - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId", - "ParameterValue": "33zwnmmin5anviw7lh6x2wxanq" - }, - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef", - "ParameterValue": "amplify-discussions-ge-amplifyAuthunauthenticate-iYWdMAuszYuZ" - }, - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef", - "ParameterValue": "amplify-discussions-ge-amplifyAuthauthenticatedU-fjzgnNdQ7Oe2" - }, - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName", - "ParameterValue": "NONE_DS" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataFunctionDirectiveStackNestedSta-BHA8YE0S9OYY.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataFunctionDirectiveStackNestedSta-BHA8YE0S9OYY.template.json deleted file mode 100644 index 5b1ef3df34b..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataFunctionDirectiveStackNestedSta-BHA8YE0S9OYY.template.json +++ /dev/null @@ -1,556 +0,0 @@ -{ - "Description": "An auto-generated nested stack for the @function directive.", - "AWSTemplateFormatVersion": "2010-09-09", - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - "NONE", - "NONE" - ] - } - ] - }, - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Resources": { - "FetchuseractivityGen2MainLambdaDataSourceServiceRole4C155E48": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/FunctionDirectiveStack/FetchuseractivityGen2MainLambdaDataSource/ServiceRole/Resource" - } - }, - "FetchuseractivityGen2MainLambdaDataSourceServiceRoleDefaultPolicyD13BD55D": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "lambda:InvokeFunction", - "Effect": "Allow", - "Resource": [ - { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchuseractivity-gen2-main", - {} - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchuseractivity-gen2-main" - } - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchuseractivity-gen2-main", - {} - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchuseractivity-gen2-main" - } - ] - }, - ":*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "FetchuseractivityGen2MainLambdaDataSourceServiceRoleDefaultPolicyD13BD55D", - "Roles": [ - { - "Ref": "FetchuseractivityGen2MainLambdaDataSourceServiceRole4C155E48" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/FunctionDirectiveStack/FetchuseractivityGen2MainLambdaDataSource/ServiceRole/DefaultPolicy/Resource" - } - }, - "FetchuseractivityGen2MainLambdaDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "LambdaConfig": { - "LambdaFunctionArn": { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchuseractivity-gen2-main", - {} - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchuseractivity-gen2-main" - } - ] - } - }, - "Name": "FetchuseractivityGen2MainLambdaDataSource", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "FetchuseractivityGen2MainLambdaDataSourceServiceRole4C155E48", - "Arn" - ] - }, - "Type": "AWS_LAMBDA" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/FunctionDirectiveStack/FetchuseractivityGen2MainLambdaDataSource/Resource" - } - }, - "InvokeFetchuseractivityGen2MainLambdaDataSourceInvokeFetchuseractivityGen2MainLambdaDataSourceAppSyncFunctionA6277669": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "FetchuseractivityGen2MainLambdaDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "InvokeFetchuseractivityGen2MainLambdaDataSource", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe1fde42ccef15458dbd92a2a8585717ca41949d9a24f6e018c70d3b404315ee.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a20e304512b1fde77dc16ed9d5e0ed03817afcab629ce87ef11c99877b7b1e30.vtl" - } - }, - "DependsOn": [ - "FetchuseractivityGen2MainLambdaDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/FunctionDirectiveStack/InvokeFetchuseractivityGen2MainLambdaDataSource/InvokeFetchuseractivityGen2MainLambdaDataSource.AppSyncFunction" - } - }, - "QueryfetchUserActivityResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "FieldName": "fetchUserActivity", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QueryFetchUserActivityAuthFNQueryFetchUserActivityAuthFNAppSyncFunctionC061F612", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "InvokeFetchuseractivityGen2MainLambdaDataSourceInvokeFetchuseractivityGen2MainLambdaDataSourceAppSyncFunctionA6277669", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"fetchUserActivity\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n{}\n## [End] Stash resolver specific context.. **" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/387d5992f5fc03d05de27289457dcc374a84c42a889acb504aff1031047dde00.vtl" - }, - "TypeName": "Query" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/FunctionDirectiveStack/queryFetchUserActivityResolver" - } - }, - "QueryFetchUserActivityAuthFNQueryFetchUserActivityAuthFNAppSyncFunctionC061F612": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryFetchUserActivityAuthFN", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/FunctionDirectiveStack/QueryFetchUserActivityAuthFN/QueryFetchUserActivityAuthFN.AppSyncFunction" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOQW/CMAyFfwv31GOFA9fRaadpmtofgEziVqapg+oEhKr+d5SgHXb6/J79nlxDvd/DdoN3rawbK89nWH5II7kuoh1N00sTxHHkIAbvelo8TmeH8JXEZvOISgavV32IheW7LD8xYhfSbCnn/6u/XBOk5yHNWJqbXlrS4G80r4ZxgqUNvtwX/gbP9pHla1qN7k6oSlHhI8PoDo7JjhTzP6spZhdxYBlWI8ERXPTtVtfwfoDt5qLM1Zwk8kTQvvgEeF2aIQsBAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/FunctionDirectiveStack/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Parameters": { - "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId": { - "Type": "String" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef": { - "Type": "String" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef": { - "Type": "String" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref": { - "Type": "String" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName": { - "Type": "String" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataPostNestedStackPostNestedStackR-19TBN9UY0LSCB.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataPostNestedStackPostNestedStackR-19TBN9UY0LSCB.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataPostNestedStackPostNestedStackR-19TBN9UY0LSCB.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataPostNestedStackPostNestedStackR-19TBN9UY0LSCB.outputs.json deleted file mode 100644 index c01f5a639d0..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataPostNestedStackPostNestedStackR-19TBN9UY0LSCB.outputs.json +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "OutputKey": "amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataPostPostTable3FE3EB5DTableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Post-u3jn2qbupzbyhc3h53673wdvim-main/stream/2026-03-20T21:21:05.591" - }, - { - "OutputKey": "GetAttPostTableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Post-u3jn2qbupzbyhc3h53673wdvim-main/stream/2026-03-20T21:21:05.591", - "Description": "Your DynamoDB table StreamArn.", - "ExportName": "33zwnmmin5anviw7lh6x2wxanq:GetAtt:PostTable:StreamArn" - }, - { - "OutputKey": "amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataPostPostDataSource1181B975Name", - "OutputValue": "PostTable" - }, - { - "OutputKey": "amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataPostPostTable3FE3EB5DTableArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Post-u3jn2qbupzbyhc3h53673wdvim-main" - }, - { - "OutputKey": "GetAttPostTableName", - "OutputValue": "Post-u3jn2qbupzbyhc3h53673wdvim-main", - "Description": "Your DynamoDB table name.", - "ExportName": "33zwnmmin5anviw7lh6x2wxanq:GetAtt:PostTable:Name" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataPostNestedStackPostNestedStackR-19TBN9UY0LSCB.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataPostNestedStackPostNestedStackR-19TBN9UY0LSCB.parameters.json deleted file mode 100644 index edd12e2f741..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataPostNestedStackPostNestedStackR-19TBN9UY0LSCB.parameters.json +++ /dev/null @@ -1,46 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref", - "ParameterValue": "us-east-1:d48cd035-0397-46c6-b39a-19514b421022" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "true" - }, - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId", - "ParameterValue": "33zwnmmin5anviw7lh6x2wxanq" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource72A5C49BOutputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataAmplifyTableManagerTableMaAF5EF112", - "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-discussions-ge-TableManagerCustomProvid-7KlxeduafKru" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef", - "ParameterValue": "amplify-discussions-ge-amplifyAuthunauthenticate-iYWdMAuszYuZ" - }, - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef", - "ParameterValue": "amplify-discussions-ge-amplifyAuthauthenticatedU-fjzgnNdQ7Oe2" - }, - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName", - "ParameterValue": "NONE_DS" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataPostNestedStackPostNestedStackR-19TBN9UY0LSCB.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataPostNestedStackPostNestedStackR-19TBN9UY0LSCB.template.json deleted file mode 100644 index c5cf9c8fd11..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataPostNestedStackPostNestedStackR-19TBN9UY0LSCB.template.json +++ /dev/null @@ -1,2023 +0,0 @@ -{ - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource72A5C49BOutputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataAmplifyTableManagerTableMaAF5EF112": { - "Type": "String" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId": { - "Type": "String" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName": { - "Type": "String" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef": { - "Type": "String" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef": { - "Type": "String" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref": { - "Type": "String" - } - }, - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - "NONE", - "NONE" - ] - } - ] - }, - "ShouldUsePayPerRequestBilling": { - "Fn::Equals": [ - { - "Ref": "DynamoDBBillingMode" - }, - "PAY_PER_REQUEST" - ] - }, - "ShouldUsePointInTimeRecovery": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "true" - ] - }, - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Resources": { - "PostTable": { - "Type": "Custom::ImportedAmplifyDynamoDBTable", - "Properties": { - "ServiceToken": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource72A5C49BOutputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataAmplifyTableManagerTableMaAF5EF112" - }, - "tableName": "Post-u3jn2qbupzbyhc3h53673wdvim-main", - "attributeDefinitions": [ - { - "attributeName": "id", - "attributeType": "S" - }, - { - "attributeName": "topicPostsId", - "attributeType": "S" - } - ], - "keySchema": [ - { - "attributeName": "id", - "keyType": "HASH" - } - ], - "globalSecondaryIndexes": [ - { - "indexName": "gsi-Topic.posts", - "keySchema": [ - { - "attributeName": "topicPostsId", - "keyType": "HASH" - } - ], - "projection": { - "projectionType": "ALL" - }, - "provisionedThroughput": { - "readCapacityUnits": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "writeCapacityUnits": { - "Ref": "DynamoDBModelTableWriteIOPS" - } - } - } - ], - "provisionedThroughput": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - { - "Ref": "AWS::NoValue" - }, - { - "ReadCapacityUnits": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "WriteCapacityUnits": { - "Ref": "DynamoDBModelTableWriteIOPS" - } - } - ] - }, - "sseSpecification": { - "sseEnabled": false - }, - "streamSpecification": { - "streamViewType": "NEW_AND_OLD_IMAGES" - }, - "deletionProtectionEnabled": true, - "allowDestructiveGraphqlSchemaUpdates": true, - "replaceTableUponGsiUpdate": false, - "isImported": true, - "pointInTimeRecoverySpecification": { - "Fn::If": [ - "ShouldUsePointInTimeRecovery", - { - "PointInTimeRecoveryEnabled": true - }, - { - "Ref": "AWS::NoValue" - } - ] - }, - "billingMode": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - "PAY_PER_REQUEST", - { - "Ref": "AWS::NoValue" - } - ] - } - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain", - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Post/PostTable/Default/Default" - } - }, - "PostIAMRole83BF708F": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:DeleteItem", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:Query", - "dynamodb:UpdateItem", - "dynamodb:ConditionCheckItem", - "dynamodb:DescribeTable", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", - { - "tablename": "Post-u3jn2qbupzbyhc3h53673wdvim-main" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", - { - "tablename": "Post-u3jn2qbupzbyhc3h53673wdvim-main" - } - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "DynamoDBAccess" - } - ], - "RoleName": { - "Fn::Join": [ - "", - [ - "PostIAMRolebbce9b-", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "-NONE" - ] - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Post/PostIAMRole/Resource" - } - }, - "PostDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DynamoDBConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "TableName": { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "PostTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - } - }, - "Name": "PostTable", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "PostIAMRole83BF708F", - "Arn" - ] - }, - "Type": "AMAZON_DYNAMODB" - }, - "DependsOn": [ - "PostIAMRole83BF708F" - ], - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Post/PostDataSource/Resource" - } - }, - "QuerygetPostauth0FunctionQuerygetPostauth0FunctionAppSyncFunctionB1D588DF": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetPostauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/0224a3e5097427da3f4460b5d6d2b86ad4195c9cb8da7bc13e7187eead1c3ae3.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Post/QuerygetPostauth0Function/QuerygetPostauth0Function.AppSyncFunction" - } - }, - "QuerygetPostpostAuth0FunctionQuerygetPostpostAuth0FunctionAppSyncFunctionC72E5C0F": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetPostpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Post/QuerygetPostpostAuth0Function/QuerygetPostpostAuth0Function.AppSyncFunction" - } - }, - "QueryGetPostDataResolverFnQueryGetPostDataResolverFnAppSyncFunction06724190": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "PostDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryGetPostDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/08f4d557693d96c1a4efba0f9dc91330e4b19772fd5477c156468843e3d9cb5e.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4c6a2d29f01c6091bd1d9afe16e5849d456c96f17c3b215938c8067399532719.vtl" - } - }, - "DependsOn": [ - "PostDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Post/QueryGetPostDataResolverFn/QueryGetPostDataResolverFn.AppSyncFunction" - } - }, - "GetPostResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "FieldName": "getPost", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerygetPostauth0FunctionQuerygetPostauth0FunctionAppSyncFunctionB1D588DF", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetPostpostAuth0FunctionQuerygetPostpostAuth0FunctionAppSyncFunctionC72E5C0F", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryGetPostDataResolverFnQueryGetPostDataResolverFnAppSyncFunction06724190", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getPost\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "PostTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Post/queryGetPostResolver" - } - }, - "QuerylistPostsauth0FunctionQuerylistPostsauth0FunctionAppSyncFunctionCDCF8956": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerylistPostsauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/0224a3e5097427da3f4460b5d6d2b86ad4195c9cb8da7bc13e7187eead1c3ae3.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Post/QuerylistPostsauth0Function/QuerylistPostsauth0Function.AppSyncFunction" - } - }, - "QuerylistPostspostAuth0FunctionQuerylistPostspostAuth0FunctionAppSyncFunction3585C8F4": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerylistPostspostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Post/QuerylistPostspostAuth0Function/QuerylistPostspostAuth0Function.AppSyncFunction" - } - }, - "QueryListPostsDataResolverFnQueryListPostsDataResolverFnAppSyncFunction3D526AB7": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "PostDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryListPostsDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9fcbe070ecd3023c5bf5b966fa9584757db9762eef123bad0820bd87591b2174.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/cc01911d0269d4080ea57505dc445dfc315ef7ad85d3d9d4ea1357858bff451d.vtl" - } - }, - "DependsOn": [ - "PostDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Post/QueryListPostsDataResolverFn/QueryListPostsDataResolverFn.AppSyncFunction" - } - }, - "ListPostResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "FieldName": "listPosts", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerylistPostsauth0FunctionQuerylistPostsauth0FunctionAppSyncFunctionCDCF8956", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerylistPostspostAuth0FunctionQuerylistPostspostAuth0FunctionAppSyncFunction3585C8F4", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryListPostsDataResolverFnQueryListPostsDataResolverFnAppSyncFunction3D526AB7", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listPosts\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "PostTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Post/queryListPostsResolver" - } - }, - "MutationcreatePostinit0FunctionMutationcreatePostinit0FunctionAppSyncFunction9E444A7F": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreatePostinit0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a183ddccbd956316c38ef97177b8f088ef0826f62023323f5ae6053d348ccffc.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Post/MutationcreatePostinit0Function/MutationcreatePostinit0Function.AppSyncFunction" - } - }, - "MutationcreatePostauth0FunctionMutationcreatePostauth0FunctionAppSyncFunctionF347AB28": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreatePostauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/d637c1fb7301003b8a5ada269338cf2e8df6cc0dc412ef13acc6158d680b6d3e.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Post/MutationcreatePostauth0Function/MutationcreatePostauth0Function.AppSyncFunction" - } - }, - "MutationcreatePostpostAuth0FunctionMutationcreatePostpostAuth0FunctionAppSyncFunction2C708069": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreatePostpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Post/MutationcreatePostpostAuth0Function/MutationcreatePostpostAuth0Function.AppSyncFunction" - } - }, - "MutationCreatePostDataResolverFnMutationCreatePostDataResolverFnAppSyncFunctionE45E2000": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "PostDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationCreatePostDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/d9c0ce2470c3063dc011dd1d638ec0a40507568b27b44b56eaf9b85a94b5f506.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "PostDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Post/MutationCreatePostDataResolverFn/MutationCreatePostDataResolverFn.AppSyncFunction" - } - }, - "CreatePostResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "FieldName": "createPost", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationcreatePostinit0FunctionMutationcreatePostinit0FunctionAppSyncFunction9E444A7F", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationcreatePostauth0FunctionMutationcreatePostauth0FunctionAppSyncFunctionF347AB28", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationcreatePostpostAuth0FunctionMutationcreatePostpostAuth0FunctionAppSyncFunction2C708069", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationCreatePostDataResolverFnMutationCreatePostDataResolverFnAppSyncFunctionE45E2000", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createPost\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "PostTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Post/mutationCreatePostResolver" - } - }, - "MutationupdatePostinit0FunctionMutationupdatePostinit0FunctionAppSyncFunctionBAC7D532": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdatePostinit0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/06db846fd14e6fc371f22b12b5545ba8e2dbfeda85d8c8d586c71c282166657b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Post/MutationupdatePostinit0Function/MutationupdatePostinit0Function.AppSyncFunction" - } - }, - "MutationupdatePostauth0FunctionMutationupdatePostauth0FunctionAppSyncFunction3E057835": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "PostDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdatePostauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/89f92efd98b1034df0e2497fe31a97de6975de554b8a22e0677d05d6efcafa59.vtl" - } - }, - "DependsOn": [ - "PostDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Post/MutationupdatePostauth0Function/MutationupdatePostauth0Function.AppSyncFunction" - } - }, - "MutationupdatePostpostAuth0FunctionMutationupdatePostpostAuth0FunctionAppSyncFunctionB977D8DD": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdatePostpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Post/MutationupdatePostpostAuth0Function/MutationupdatePostpostAuth0Function.AppSyncFunction" - } - }, - "MutationUpdatePostDataResolverFnMutationUpdatePostDataResolverFnAppSyncFunctionBF7D410D": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "PostDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationUpdatePostDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/474bf0776ec2164a13191d1a0a9e057154931e4918fea5086f49850d02a5371b.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "PostDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Post/MutationUpdatePostDataResolverFn/MutationUpdatePostDataResolverFn.AppSyncFunction" - } - }, - "UpdatePostResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "FieldName": "updatePost", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationupdatePostinit0FunctionMutationupdatePostinit0FunctionAppSyncFunctionBAC7D532", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationupdatePostauth0FunctionMutationupdatePostauth0FunctionAppSyncFunction3E057835", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationupdatePostpostAuth0FunctionMutationupdatePostpostAuth0FunctionAppSyncFunctionB977D8DD", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationUpdatePostDataResolverFnMutationUpdatePostDataResolverFnAppSyncFunctionBF7D410D", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updatePost\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "PostTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Post/mutationUpdatePostResolver" - } - }, - "MutationdeletePostauth0FunctionMutationdeletePostauth0FunctionAppSyncFunctionFBE21CB7": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "PostDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeletePostauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e3416b4d47414f29c21e59a70e83bddb959ef0625854ed7fb0ca376573e99069.vtl" - } - }, - "DependsOn": [ - "PostDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Post/MutationdeletePostauth0Function/MutationdeletePostauth0Function.AppSyncFunction" - } - }, - "MutationdeletePostpostAuth0FunctionMutationdeletePostpostAuth0FunctionAppSyncFunctionFF4E884F": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeletePostpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Post/MutationdeletePostpostAuth0Function/MutationdeletePostpostAuth0Function.AppSyncFunction" - } - }, - "MutationDeletePostDataResolverFnMutationDeletePostDataResolverFnAppSyncFunction45B37C12": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "PostDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationDeletePostDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4f7907d1209a2c9953a0c053df402c634e359546d70c7cc5c2e8e21ea734880f.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "PostDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Post/MutationDeletePostDataResolverFn/MutationDeletePostDataResolverFn.AppSyncFunction" - } - }, - "DeletePostResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "FieldName": "deletePost", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationdeletePostauth0FunctionMutationdeletePostauth0FunctionAppSyncFunctionFBE21CB7", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationdeletePostpostAuth0FunctionMutationdeletePostpostAuth0FunctionAppSyncFunctionFF4E884F", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationDeletePostDataResolverFnMutationDeletePostDataResolverFnAppSyncFunction45B37C12", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deletePost\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "PostTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Post/mutationDeletePostResolver" - } - }, - "SubscriptiononCreatePostauth0FunctionSubscriptiononCreatePostauth0FunctionAppSyncFunction24934FF1": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononCreatePostauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e6da5a6e993df8b5fdc91086b71eb53e72a3a97c98836ef9c9257776f36c452b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Post/SubscriptiononCreatePostauth0Function/SubscriptiononCreatePostauth0Function.AppSyncFunction" - } - }, - "SubscriptiononCreatePostpostAuth0FunctionSubscriptiononCreatePostpostAuth0FunctionAppSyncFunction3197D95D": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononCreatePostpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Post/SubscriptiononCreatePostpostAuth0Function/SubscriptiononCreatePostpostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnCreatePostDataResolverFnSubscriptionOnCreatePostDataResolverFnAppSyncFunctionB4572868": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnCreatePostDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Post/SubscriptionOnCreatePostDataResolverFn/SubscriptionOnCreatePostDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononCreatePostResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "FieldName": "onCreatePost", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononCreatePostauth0FunctionSubscriptiononCreatePostauth0FunctionAppSyncFunction24934FF1", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononCreatePostpostAuth0FunctionSubscriptiononCreatePostpostAuth0FunctionAppSyncFunction3197D95D", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnCreatePostDataResolverFnSubscriptionOnCreatePostDataResolverFnAppSyncFunctionB4572868", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreatePost\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Post/subscriptionOnCreatePostResolver" - } - }, - "SubscriptiononUpdatePostauth0FunctionSubscriptiononUpdatePostauth0FunctionAppSyncFunction503CE6B6": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononUpdatePostauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e6da5a6e993df8b5fdc91086b71eb53e72a3a97c98836ef9c9257776f36c452b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Post/SubscriptiononUpdatePostauth0Function/SubscriptiononUpdatePostauth0Function.AppSyncFunction" - } - }, - "SubscriptiononUpdatePostpostAuth0FunctionSubscriptiononUpdatePostpostAuth0FunctionAppSyncFunction3D79B6CB": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononUpdatePostpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Post/SubscriptiononUpdatePostpostAuth0Function/SubscriptiononUpdatePostpostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnUpdatePostDataResolverFnSubscriptionOnUpdatePostDataResolverFnAppSyncFunction325AAFC9": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnUpdatePostDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Post/SubscriptionOnUpdatePostDataResolverFn/SubscriptionOnUpdatePostDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononUpdatePostResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "FieldName": "onUpdatePost", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononUpdatePostauth0FunctionSubscriptiononUpdatePostauth0FunctionAppSyncFunction503CE6B6", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononUpdatePostpostAuth0FunctionSubscriptiononUpdatePostpostAuth0FunctionAppSyncFunction3D79B6CB", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnUpdatePostDataResolverFnSubscriptionOnUpdatePostDataResolverFnAppSyncFunction325AAFC9", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdatePost\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Post/subscriptionOnUpdatePostResolver" - } - }, - "SubscriptiononDeletePostauth0FunctionSubscriptiononDeletePostauth0FunctionAppSyncFunction79C0574D": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononDeletePostauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e6da5a6e993df8b5fdc91086b71eb53e72a3a97c98836ef9c9257776f36c452b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Post/SubscriptiononDeletePostauth0Function/SubscriptiononDeletePostauth0Function.AppSyncFunction" - } - }, - "SubscriptiononDeletePostpostAuth0FunctionSubscriptiononDeletePostpostAuth0FunctionAppSyncFunction80B1275A": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononDeletePostpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Post/SubscriptiononDeletePostpostAuth0Function/SubscriptiononDeletePostpostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnDeletePostDataResolverFnSubscriptionOnDeletePostDataResolverFnAppSyncFunction9D84E829": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnDeletePostDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Post/SubscriptionOnDeletePostDataResolverFn/SubscriptionOnDeletePostDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononDeletePostResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "FieldName": "onDeletePost", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononDeletePostauth0FunctionSubscriptiononDeletePostauth0FunctionAppSyncFunction79C0574D", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononDeletePostpostAuth0FunctionSubscriptiononDeletePostpostAuth0FunctionAppSyncFunction80B1275A", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnDeletePostDataResolverFnSubscriptionOnDeletePostDataResolverFnAppSyncFunction9D84E829", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeletePost\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Post/subscriptionOnDeletePostResolver" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOwW6DMAyGn6X31OtoD7uuoB63CXavTGJQCjgodlpViHefoFOnnX5/8if7zyA7HGC3wZtsreu2va9h+iBRcpWi7Uze8BdGHEgpLpAHdl59YFOShBQtmTyJhuEPG37OeJPz5O6MQ3A1fGPd0xGFjMcBpjL0Dzv0NBscR7mzhalY9aIuULF6nvxPp8R2KZEHbnybIq6Nfj/3V4qzkf0ZRUgF3pcwsodjsh3pUmBe3M+kY1KzrivF1nM7Gw6O4CIv1yyD1zfYbS7i/TYmVj8QlI/8AVayTVs2AQAA" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Post/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Outputs": { - "GetAttPostTableStreamArn": { - "Description": "Your DynamoDB table StreamArn.", - "Value": { - "Fn::GetAtt": [ - "PostTable", - "TableStreamArn" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "GetAtt:PostTable:StreamArn" - ] - ] - } - } - }, - "GetAttPostTableName": { - "Description": "Your DynamoDB table name.", - "Value": "Post-u3jn2qbupzbyhc3h53673wdvim-main", - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "GetAtt:PostTable:Name" - ] - ] - } - } - }, - "amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataPostPostDataSource1181B975Name": { - "Value": { - "Fn::GetAtt": [ - "PostDataSource", - "Name" - ] - } - }, - "amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataPostPostTable3FE3EB5DTableArn": { - "Value": { - "Fn::GetAtt": [ - "PostTable", - "TableArn" - ] - } - }, - "amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataPostPostTable3FE3EB5DTableStreamArn": { - "Value": { - "Fn::GetAtt": [ - "PostTable", - "TableStreamArn" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataTopicNestedStackTopicNestedStac-DPN73D3I6YDW.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataTopicNestedStackTopicNestedStac-DPN73D3I6YDW.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataTopicNestedStackTopicNestedStac-DPN73D3I6YDW.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataTopicNestedStackTopicNestedStac-DPN73D3I6YDW.outputs.json deleted file mode 100644 index 602fd6e1702..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataTopicNestedStackTopicNestedStac-DPN73D3I6YDW.outputs.json +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "OutputKey": "amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataTopicTopicDataSource5289BBFCName", - "OutputValue": "TopicTable" - }, - { - "OutputKey": "amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataTopicTopicTable0F7B351ATableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Topic-u3jn2qbupzbyhc3h53673wdvim-main/stream/2026-03-20T21:20:17.537" - }, - { - "OutputKey": "GetAttTopicTableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Topic-u3jn2qbupzbyhc3h53673wdvim-main/stream/2026-03-20T21:20:17.537", - "Description": "Your DynamoDB table StreamArn.", - "ExportName": "33zwnmmin5anviw7lh6x2wxanq:GetAtt:TopicTable:StreamArn" - }, - { - "OutputKey": "GetAttTopicTableName", - "OutputValue": "Topic-u3jn2qbupzbyhc3h53673wdvim-main", - "Description": "Your DynamoDB table name.", - "ExportName": "33zwnmmin5anviw7lh6x2wxanq:GetAtt:TopicTable:Name" - }, - { - "OutputKey": "amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataTopicTopicTable0F7B351ATableArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Topic-u3jn2qbupzbyhc3h53673wdvim-main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataTopicNestedStackTopicNestedStac-DPN73D3I6YDW.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataTopicNestedStackTopicNestedStac-DPN73D3I6YDW.parameters.json deleted file mode 100644 index edd12e2f741..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataTopicNestedStackTopicNestedStac-DPN73D3I6YDW.parameters.json +++ /dev/null @@ -1,46 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref", - "ParameterValue": "us-east-1:d48cd035-0397-46c6-b39a-19514b421022" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "true" - }, - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId", - "ParameterValue": "33zwnmmin5anviw7lh6x2wxanq" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource72A5C49BOutputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataAmplifyTableManagerTableMaAF5EF112", - "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-discussions-ge-TableManagerCustomProvid-7KlxeduafKru" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef", - "ParameterValue": "amplify-discussions-ge-amplifyAuthunauthenticate-iYWdMAuszYuZ" - }, - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef", - "ParameterValue": "amplify-discussions-ge-amplifyAuthauthenticatedU-fjzgnNdQ7Oe2" - }, - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName", - "ParameterValue": "NONE_DS" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataTopicNestedStackTopicNestedStac-DPN73D3I6YDW.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataTopicNestedStackTopicNestedStac-DPN73D3I6YDW.template.json deleted file mode 100644 index 238a9bdbe7d..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e-amplifyDataTopicNestedStackTopicNestedStac-DPN73D3I6YDW.template.json +++ /dev/null @@ -1,1997 +0,0 @@ -{ - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource72A5C49BOutputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataAmplifyTableManagerTableMaAF5EF112": { - "Type": "String" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId": { - "Type": "String" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName": { - "Type": "String" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef": { - "Type": "String" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef": { - "Type": "String" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref": { - "Type": "String" - } - }, - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - "NONE", - "NONE" - ] - } - ] - }, - "ShouldUsePayPerRequestBilling": { - "Fn::Equals": [ - { - "Ref": "DynamoDBBillingMode" - }, - "PAY_PER_REQUEST" - ] - }, - "ShouldUsePointInTimeRecovery": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "true" - ] - }, - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Resources": { - "TopicTable": { - "Type": "Custom::ImportedAmplifyDynamoDBTable", - "Properties": { - "ServiceToken": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource72A5C49BOutputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataAmplifyTableManagerTableMaAF5EF112" - }, - "tableName": "Topic-u3jn2qbupzbyhc3h53673wdvim-main", - "attributeDefinitions": [ - { - "attributeName": "id", - "attributeType": "S" - } - ], - "keySchema": [ - { - "attributeName": "id", - "keyType": "HASH" - } - ], - "provisionedThroughput": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - { - "Ref": "AWS::NoValue" - }, - { - "ReadCapacityUnits": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "WriteCapacityUnits": { - "Ref": "DynamoDBModelTableWriteIOPS" - } - } - ] - }, - "sseSpecification": { - "sseEnabled": false - }, - "streamSpecification": { - "streamViewType": "NEW_AND_OLD_IMAGES" - }, - "deletionProtectionEnabled": true, - "allowDestructiveGraphqlSchemaUpdates": true, - "replaceTableUponGsiUpdate": false, - "isImported": true, - "pointInTimeRecoverySpecification": { - "Fn::If": [ - "ShouldUsePointInTimeRecovery", - { - "PointInTimeRecoveryEnabled": true - }, - { - "Ref": "AWS::NoValue" - } - ] - }, - "billingMode": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - "PAY_PER_REQUEST", - { - "Ref": "AWS::NoValue" - } - ] - } - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain", - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Topic/TopicTable/Default/Default" - } - }, - "TopicIAMRoleD9B4C845": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:DeleteItem", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:Query", - "dynamodb:UpdateItem", - "dynamodb:ConditionCheckItem", - "dynamodb:DescribeTable", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", - { - "tablename": "Topic-u3jn2qbupzbyhc3h53673wdvim-main" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", - { - "tablename": "Topic-u3jn2qbupzbyhc3h53673wdvim-main" - } - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "DynamoDBAccess" - } - ], - "RoleName": { - "Fn::Join": [ - "", - [ - "TopicIAMRole014e70-", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "-NONE" - ] - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Topic/TopicIAMRole/Resource" - } - }, - "TopicDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DynamoDBConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "TableName": { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "TopicTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - } - }, - "Name": "TopicTable", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "TopicIAMRoleD9B4C845", - "Arn" - ] - }, - "Type": "AMAZON_DYNAMODB" - }, - "DependsOn": [ - "TopicIAMRoleD9B4C845" - ], - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Topic/TopicDataSource/Resource" - } - }, - "QuerygetTopicauth0FunctionQuerygetTopicauth0FunctionAppSyncFunction2B9304CA": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetTopicauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/0224a3e5097427da3f4460b5d6d2b86ad4195c9cb8da7bc13e7187eead1c3ae3.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Topic/QuerygetTopicauth0Function/QuerygetTopicauth0Function.AppSyncFunction" - } - }, - "QuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction6FE846B8": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetTopicpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Topic/QuerygetTopicpostAuth0Function/QuerygetTopicpostAuth0Function.AppSyncFunction" - } - }, - "QueryGetTopicDataResolverFnQueryGetTopicDataResolverFnAppSyncFunction82CCA00A": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "TopicDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryGetTopicDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/08f4d557693d96c1a4efba0f9dc91330e4b19772fd5477c156468843e3d9cb5e.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4c6a2d29f01c6091bd1d9afe16e5849d456c96f17c3b215938c8067399532719.vtl" - } - }, - "DependsOn": [ - "TopicDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Topic/QueryGetTopicDataResolverFn/QueryGetTopicDataResolverFn.AppSyncFunction" - } - }, - "GetTopicResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "FieldName": "getTopic", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerygetTopicauth0FunctionQuerygetTopicauth0FunctionAppSyncFunction2B9304CA", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction6FE846B8", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryGetTopicDataResolverFnQueryGetTopicDataResolverFnAppSyncFunction82CCA00A", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getTopic\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "TopicTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Topic/queryGetTopicResolver" - } - }, - "QuerylistTopicsauth0FunctionQuerylistTopicsauth0FunctionAppSyncFunction1187D7E0": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerylistTopicsauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/0224a3e5097427da3f4460b5d6d2b86ad4195c9cb8da7bc13e7187eead1c3ae3.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Topic/QuerylistTopicsauth0Function/QuerylistTopicsauth0Function.AppSyncFunction" - } - }, - "QuerylistTopicspostAuth0FunctionQuerylistTopicspostAuth0FunctionAppSyncFunction8BDF1FB2": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerylistTopicspostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Topic/QuerylistTopicspostAuth0Function/QuerylistTopicspostAuth0Function.AppSyncFunction" - } - }, - "QueryListTopicsDataResolverFnQueryListTopicsDataResolverFnAppSyncFunction26E7FF8F": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "TopicDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryListTopicsDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9fcbe070ecd3023c5bf5b966fa9584757db9762eef123bad0820bd87591b2174.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/cc01911d0269d4080ea57505dc445dfc315ef7ad85d3d9d4ea1357858bff451d.vtl" - } - }, - "DependsOn": [ - "TopicDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Topic/QueryListTopicsDataResolverFn/QueryListTopicsDataResolverFn.AppSyncFunction" - } - }, - "ListTopicResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "FieldName": "listTopics", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerylistTopicsauth0FunctionQuerylistTopicsauth0FunctionAppSyncFunction1187D7E0", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerylistTopicspostAuth0FunctionQuerylistTopicspostAuth0FunctionAppSyncFunction8BDF1FB2", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryListTopicsDataResolverFnQueryListTopicsDataResolverFnAppSyncFunction26E7FF8F", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listTopics\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "TopicTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Topic/queryListTopicsResolver" - } - }, - "MutationcreateTopicinit0FunctionMutationcreateTopicinit0FunctionAppSyncFunction4DB06436": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateTopicinit0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a183ddccbd956316c38ef97177b8f088ef0826f62023323f5ae6053d348ccffc.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Topic/MutationcreateTopicinit0Function/MutationcreateTopicinit0Function.AppSyncFunction" - } - }, - "MutationcreateTopicauth0FunctionMutationcreateTopicauth0FunctionAppSyncFunction47662DC9": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateTopicauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/d637c1fb7301003b8a5ada269338cf2e8df6cc0dc412ef13acc6158d680b6d3e.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Topic/MutationcreateTopicauth0Function/MutationcreateTopicauth0Function.AppSyncFunction" - } - }, - "MutationcreateTopicpostAuth0FunctionMutationcreateTopicpostAuth0FunctionAppSyncFunction43D15A5A": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateTopicpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Topic/MutationcreateTopicpostAuth0Function/MutationcreateTopicpostAuth0Function.AppSyncFunction" - } - }, - "MutationCreateTopicDataResolverFnMutationCreateTopicDataResolverFnAppSyncFunction3A6C31C4": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "TopicDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationCreateTopicDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/ca0a2092670d57f0d8f4bf761892a704a1e6511c2f50757265b4b4ff9b33cdf2.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "TopicDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Topic/MutationCreateTopicDataResolverFn/MutationCreateTopicDataResolverFn.AppSyncFunction" - } - }, - "CreateTopicResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "FieldName": "createTopic", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationcreateTopicinit0FunctionMutationcreateTopicinit0FunctionAppSyncFunction4DB06436", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationcreateTopicauth0FunctionMutationcreateTopicauth0FunctionAppSyncFunction47662DC9", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationcreateTopicpostAuth0FunctionMutationcreateTopicpostAuth0FunctionAppSyncFunction43D15A5A", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationCreateTopicDataResolverFnMutationCreateTopicDataResolverFnAppSyncFunction3A6C31C4", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createTopic\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "TopicTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Topic/mutationCreateTopicResolver" - } - }, - "MutationupdateTopicinit0FunctionMutationupdateTopicinit0FunctionAppSyncFunction64D17734": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateTopicinit0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/06db846fd14e6fc371f22b12b5545ba8e2dbfeda85d8c8d586c71c282166657b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Topic/MutationupdateTopicinit0Function/MutationupdateTopicinit0Function.AppSyncFunction" - } - }, - "MutationupdateTopicauth0FunctionMutationupdateTopicauth0FunctionAppSyncFunction56C81857": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "TopicDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateTopicauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/89f92efd98b1034df0e2497fe31a97de6975de554b8a22e0677d05d6efcafa59.vtl" - } - }, - "DependsOn": [ - "TopicDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Topic/MutationupdateTopicauth0Function/MutationupdateTopicauth0Function.AppSyncFunction" - } - }, - "MutationupdateTopicpostAuth0FunctionMutationupdateTopicpostAuth0FunctionAppSyncFunctionE2BE291F": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateTopicpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Topic/MutationupdateTopicpostAuth0Function/MutationupdateTopicpostAuth0Function.AppSyncFunction" - } - }, - "MutationUpdateTopicDataResolverFnMutationUpdateTopicDataResolverFnAppSyncFunctionDA5D9F2F": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "TopicDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationUpdateTopicDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/474bf0776ec2164a13191d1a0a9e057154931e4918fea5086f49850d02a5371b.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "TopicDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Topic/MutationUpdateTopicDataResolverFn/MutationUpdateTopicDataResolverFn.AppSyncFunction" - } - }, - "UpdateTopicResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "FieldName": "updateTopic", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationupdateTopicinit0FunctionMutationupdateTopicinit0FunctionAppSyncFunction64D17734", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationupdateTopicauth0FunctionMutationupdateTopicauth0FunctionAppSyncFunction56C81857", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationupdateTopicpostAuth0FunctionMutationupdateTopicpostAuth0FunctionAppSyncFunctionE2BE291F", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationUpdateTopicDataResolverFnMutationUpdateTopicDataResolverFnAppSyncFunctionDA5D9F2F", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateTopic\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "TopicTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Topic/mutationUpdateTopicResolver" - } - }, - "MutationdeleteTopicauth0FunctionMutationdeleteTopicauth0FunctionAppSyncFunctionDA9FFFB5": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "TopicDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeleteTopicauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e3416b4d47414f29c21e59a70e83bddb959ef0625854ed7fb0ca376573e99069.vtl" - } - }, - "DependsOn": [ - "TopicDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Topic/MutationdeleteTopicauth0Function/MutationdeleteTopicauth0Function.AppSyncFunction" - } - }, - "MutationdeleteTopicpostAuth0FunctionMutationdeleteTopicpostAuth0FunctionAppSyncFunction88A19A50": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeleteTopicpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Topic/MutationdeleteTopicpostAuth0Function/MutationdeleteTopicpostAuth0Function.AppSyncFunction" - } - }, - "MutationDeleteTopicDataResolverFnMutationDeleteTopicDataResolverFnAppSyncFunction13577BCB": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "TopicDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationDeleteTopicDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4f7907d1209a2c9953a0c053df402c634e359546d70c7cc5c2e8e21ea734880f.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "TopicDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Topic/MutationDeleteTopicDataResolverFn/MutationDeleteTopicDataResolverFn.AppSyncFunction" - } - }, - "DeleteTopicResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "FieldName": "deleteTopic", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationdeleteTopicauth0FunctionMutationdeleteTopicauth0FunctionAppSyncFunctionDA9FFFB5", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationdeleteTopicpostAuth0FunctionMutationdeleteTopicpostAuth0FunctionAppSyncFunction88A19A50", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationDeleteTopicDataResolverFnMutationDeleteTopicDataResolverFnAppSyncFunction13577BCB", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteTopic\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "TopicTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Topic/mutationDeleteTopicResolver" - } - }, - "SubscriptiononCreateTopicauth0FunctionSubscriptiononCreateTopicauth0FunctionAppSyncFunction1736E1E4": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononCreateTopicauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e6da5a6e993df8b5fdc91086b71eb53e72a3a97c98836ef9c9257776f36c452b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Topic/SubscriptiononCreateTopicauth0Function/SubscriptiononCreateTopicauth0Function.AppSyncFunction" - } - }, - "SubscriptiononCreateTopicpostAuth0FunctionSubscriptiononCreateTopicpostAuth0FunctionAppSyncFunction373CF368": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononCreateTopicpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Topic/SubscriptiononCreateTopicpostAuth0Function/SubscriptiononCreateTopicpostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnCreateTopicDataResolverFnSubscriptionOnCreateTopicDataResolverFnAppSyncFunctionE8F09879": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnCreateTopicDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Topic/SubscriptionOnCreateTopicDataResolverFn/SubscriptionOnCreateTopicDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononCreateTopicResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "FieldName": "onCreateTopic", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononCreateTopicauth0FunctionSubscriptiononCreateTopicauth0FunctionAppSyncFunction1736E1E4", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononCreateTopicpostAuth0FunctionSubscriptiononCreateTopicpostAuth0FunctionAppSyncFunction373CF368", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnCreateTopicDataResolverFnSubscriptionOnCreateTopicDataResolverFnAppSyncFunctionE8F09879", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateTopic\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Topic/subscriptionOnCreateTopicResolver" - } - }, - "SubscriptiononUpdateTopicauth0FunctionSubscriptiononUpdateTopicauth0FunctionAppSyncFunction001BB6BF": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononUpdateTopicauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e6da5a6e993df8b5fdc91086b71eb53e72a3a97c98836ef9c9257776f36c452b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Topic/SubscriptiononUpdateTopicauth0Function/SubscriptiononUpdateTopicauth0Function.AppSyncFunction" - } - }, - "SubscriptiononUpdateTopicpostAuth0FunctionSubscriptiononUpdateTopicpostAuth0FunctionAppSyncFunctionADC7CEF5": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononUpdateTopicpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Topic/SubscriptiononUpdateTopicpostAuth0Function/SubscriptiononUpdateTopicpostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnUpdateTopicDataResolverFnSubscriptionOnUpdateTopicDataResolverFnAppSyncFunction00E3A612": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnUpdateTopicDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Topic/SubscriptionOnUpdateTopicDataResolverFn/SubscriptionOnUpdateTopicDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononUpdateTopicResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "FieldName": "onUpdateTopic", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononUpdateTopicauth0FunctionSubscriptiononUpdateTopicauth0FunctionAppSyncFunction001BB6BF", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononUpdateTopicpostAuth0FunctionSubscriptiononUpdateTopicpostAuth0FunctionAppSyncFunctionADC7CEF5", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnUpdateTopicDataResolverFnSubscriptionOnUpdateTopicDataResolverFnAppSyncFunction00E3A612", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateTopic\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Topic/subscriptionOnUpdateTopicResolver" - } - }, - "SubscriptiononDeleteTopicauth0FunctionSubscriptiononDeleteTopicauth0FunctionAppSyncFunction42E663CA": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononDeleteTopicauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e6da5a6e993df8b5fdc91086b71eb53e72a3a97c98836ef9c9257776f36c452b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Topic/SubscriptiononDeleteTopicauth0Function/SubscriptiononDeleteTopicauth0Function.AppSyncFunction" - } - }, - "SubscriptiononDeleteTopicpostAuth0FunctionSubscriptiononDeleteTopicpostAuth0FunctionAppSyncFunction3A524E2D": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononDeleteTopicpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Topic/SubscriptiononDeleteTopicpostAuth0Function/SubscriptiononDeleteTopicpostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnDeleteTopicDataResolverFnSubscriptionOnDeleteTopicDataResolverFnAppSyncFunctionCF6472E5": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnDeleteTopicDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Topic/SubscriptionOnDeleteTopicDataResolverFn/SubscriptionOnDeleteTopicDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononDeleteTopicResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "FieldName": "onDeleteTopic", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononDeleteTopicauth0FunctionSubscriptiononDeleteTopicauth0FunctionAppSyncFunction42E663CA", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononDeleteTopicpostAuth0FunctionSubscriptiononDeleteTopicpostAuth0FunctionAppSyncFunction3A524E2D", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnDeleteTopicDataResolverFnSubscriptionOnDeleteTopicDataResolverFnAppSyncFunctionCF6472E5", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteTopic\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Topic/subscriptionOnDeleteTopicResolver" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOwW6DMAyGn6X31OtoD7uuoB63CXavTGJQCjgodlpViHefoFOnnX5/8if7zyA7HGC3wZtsreu2va9h+iBRcpWi7Uze8BdGHEgpLpAHdl59YFOShBQtmTyJhuEPG37OeJPz5O6MQ3A1fGPd0xGFjMcBpjL0Dzv0NBscR7mzhalY9aIuULF6nvxPp8R2KZEHbnybIq6Nfj/3V4qzkf0ZRUgF3pcwsodjsh3pUmBe3M+kY1KzrivF1nM7Gw6O4CIv1yyD1zfYbS7i/TYmVj8QlI/8AVayTVs2AQAA" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Topic/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Outputs": { - "GetAttTopicTableStreamArn": { - "Description": "Your DynamoDB table StreamArn.", - "Value": { - "Fn::GetAtt": [ - "TopicTable", - "TableStreamArn" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "GetAtt:TopicTable:StreamArn" - ] - ] - } - } - }, - "GetAttTopicTableName": { - "Description": "Your DynamoDB table name.", - "Value": "Topic-u3jn2qbupzbyhc3h53673wdvim-main", - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - }, - "GetAtt:TopicTable:Name" - ] - ] - } - } - }, - "amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataTopicTopicDataSource5289BBFCName": { - "Value": { - "Fn::GetAtt": [ - "TopicDataSource", - "Name" - ] - } - }, - "amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataTopicTopicTable0F7B351ATableArn": { - "Value": { - "Fn::GetAtt": [ - "TopicTable", - "TableArn" - ] - } - }, - "amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataTopicTopicTable0F7B351ATableStreamArn": { - "Value": { - "Fn::GetAtt": [ - "TopicTable", - "TableStreamArn" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX.description.txt deleted file mode 100644 index 72751282334..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.11.2","stackType":"auth-Cognito","metadata":{}} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX.outputs.json deleted file mode 100644 index 8751be66b92..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX.outputs.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "OutputKey": "amplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthUserPool82221E95Ref", - "OutputValue": "us-east-1_I3YejOBUa" - }, - { - "OutputKey": "amplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef", - "OutputValue": "amplify-discussions-ge-amplifyAuthauthenticatedU-fjzgnNdQ7Oe2" - }, - { - "OutputKey": "amplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthUserPoolAppClientFFCC03B0Ref", - "OutputValue": "3mosah7bsr7412hqq9soj1j2pp" - }, - { - "OutputKey": "amplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef", - "OutputValue": "amplify-discussions-ge-amplifyAuthunauthenticate-iYWdMAuszYuZ" - }, - { - "OutputKey": "amplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref", - "OutputValue": "us-east-1:d48cd035-0397-46c6-b39a-19514b421022" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX.parameters.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX.parameters.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX.template.json deleted file mode 100644 index 41c5875225b..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-auth179371D7-6NIMXK30VQKX.template.json +++ /dev/null @@ -1,651 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", - "Resources": { - "amplifyAuthUserPool4BA7F805": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AccountRecoverySetting": { - "RecoveryMechanisms": [ - { - "Name": "verified_email", - "Priority": 1 - } - ] - }, - "AdminCreateUserConfig": { - "AllowAdminCreateUserOnly": false - }, - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": "Here is your verification code {####}", - "EmailVerificationSubject": "Verification", - "MfaConfiguration": "OFF", - "Policies": { - "PasswordPolicy": { - "MinimumLength": 8, - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false, - "TemporaryPasswordValidityDays": 7 - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - }, - { - "Mutable": true, - "Name": "phone_number", - "Required": true - } - ], - "SmsVerificationMessage": "The verification code to your new account is {####}", - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolTags": { - "amplify:app-id": "discussions", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "amplify:friendly-name": "amplifyAuth", - "created-by": "amplify" - }, - "UsernameAttributes": [ - "phone_number" - ], - "UsernameConfiguration": { - "CaseSensitive": false - }, - "VerificationMessageTemplate": { - "DefaultEmailOption": "CONFIRM_WITH_CODE", - "EmailMessage": "Here is your verification code {####}", - "EmailSubject": "Verification", - "SmsMessage": "The verification code to your new account is {####}" - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/auth/amplifyAuth/UserPool/Resource" - } - }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 172800, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": { - "Ref": "amplifyAuthUserPool4BA7F805" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, - "amplifyAuthUserPoolAppClient2626C6F8": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlows": [ - "code" - ], - "AllowedOAuthFlowsUserPoolClient": true, - "AllowedOAuthScopes": [ - "profile", - "phone", - "email", - "openid", - "aws.cognito.signin.user.admin" - ], - "CallbackURLs": [ - "https://example.com" - ], - "ExplicitAuthFlows": [ - "ALLOW_CUSTOM_AUTH", - "ALLOW_USER_SRP_AUTH", - "ALLOW_REFRESH_TOKEN_AUTH" - ], - "PreventUserExistenceErrors": "ENABLED", - "SupportedIdentityProviders": [ - "COGNITO" - ], - "UserPoolId": { - "Ref": "amplifyAuthUserPool4BA7F805" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/auth/amplifyAuth/UserPoolAppClient/Resource" - } - }, - "amplifyAuthIdentityPool3FDE84CC": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": false, - "CognitoIdentityProviders": [ - { - "ClientId": { - "Ref": "amplifyAuthUserPoolAppClient2626C6F8" - }, - "ProviderName": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - { - "Ref": "amplifyAuthUserPool4BA7F805" - } - ] - ] - } - } - ], - "IdentityPoolTags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "SupportedLoginProviders": {} - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/auth/amplifyAuth/IdentityPool" - } - }, - "amplifyAuthauthenticatedUserRoleD8DA3689": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "authenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/auth/amplifyAuth/authenticatedUserRole/Resource" - } - }, - "amplifyAuthunauthenticatedUserRole2B524D9E": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "unauthenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/auth/amplifyAuth/unauthenticatedUserRole/Resource" - } - }, - "amplifyAuthIdentityPoolRoleAttachment045F17C8": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - }, - "RoleMappings": { - "UserPoolWebClientRoleMapping": { - "AmbiguousRoleResolution": "AuthenticatedRole", - "IdentityProvider": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - { - "Ref": "amplifyAuthUserPool4BA7F805" - }, - ":", - { - "Ref": "amplifyAuthUserPoolAppClient2626C6F8" - } - ] - ] - }, - "Type": "Token" - } - }, - "Roles": { - "unauthenticated": { - "Fn::GetAtt": [ - "amplifyAuthunauthenticatedUserRole2B524D9E", - "Arn" - ] - }, - "authenticated": { - "Fn::GetAtt": [ - "amplifyAuthauthenticatedUserRoleD8DA3689", - "Arn" - ] - } - } - }, - "DependsOn": [ - "amplifyAuthIdentityPool3FDE84CC", - "amplifyAuthUserPoolAppClient2626C6F8" - ], - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/auth/amplifyAuth/IdentityPoolRoleAttachment" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/02LwQrCMBBEv6X3dK2hB6/SkxeRimeJyarbphtoVouE/LsUqXqamTczGnRdQ1WYKZbW9aWnC6Q9RkF3FGN7ZaZ4TjbcmCRAOkUcDyF41Vz56xfTeEKW/+pHdg5ZSF7L+T+3weNWxNj7gCxZkRkgzXAezppzVhwcQhdXT61hvYGq6CJROT5YaEBoP/oGtzQ+/84AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/auth/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Outputs": { - "amplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthUserPool82221E95Ref": { - "Value": { - "Ref": "amplifyAuthUserPool4BA7F805" - } - }, - "amplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthUserPoolAppClientFFCC03B0Ref": { - "Value": { - "Ref": "amplifyAuthUserPoolAppClient2626C6F8" - } - }, - "amplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref": { - "Value": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } - }, - "amplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef": { - "Value": { - "Ref": "amplifyAuthauthenticatedUserRoleD8DA3689" - } - }, - "amplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef": { - "Value": { - "Ref": "amplifyAuthunauthenticatedUserRole2B524D9E" - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-data7552DF31-O97JQYUH4F0.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-data7552DF31-O97JQYUH4F0.description.txt deleted file mode 100644 index e0c9e600428..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-data7552DF31-O97JQYUH4F0.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.21.0","stackType":"api-AppSync","metadata":{"dataSources":"dynamodb","authorizationModes":"amazon_cognito_identity_pools,amazon_cognito_user_pools,api_key,aws_iam","customOperations":"queries"}} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-data7552DF31-O97JQYUH4F0.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-data7552DF31-O97JQYUH4F0.outputs.json deleted file mode 100644 index 04f8b561adf..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-data7552DF31-O97JQYUH4F0.outputs.json +++ /dev/null @@ -1,30 +0,0 @@ -[ - { - "OutputKey": "amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataTopicNestedStackTopicNestedStackResourceBD3B6C61Outputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataTopicTopicTable0F7B351ATableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Topic-u3jn2qbupzbyhc3h53673wdvim-main/stream/2026-03-20T21:20:17.537" - }, - { - "OutputKey": "amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21GraphQLUrl", - "OutputValue": "https://auprb5ishbhltcshr2palt65ka.appsync-api.us-east-1.amazonaws.com/graphql" - }, - { - "OutputKey": "amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataPostNestedStackPostNestedStackResource3E8F8B99Outputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataPostPostTable3FE3EB5DTableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Post-u3jn2qbupzbyhc3h53673wdvim-main/stream/2026-03-20T21:21:05.591" - }, - { - "OutputKey": "amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiBABCA4586DestinationBucketArn", - "OutputValue": "arn:aws:s3:::amplify-discussions-ge-amplifydataamplifycodege-jxzg53vmja75" - }, - { - "OutputKey": "amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPIDefaultApiKey467DD7FFApiKey", - "OutputValue": "da2-fakeapikey00000000000000" - }, - { - "OutputKey": "amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId", - "OutputValue": "33zwnmmin5anviw7lh6x2wxanq" - }, - { - "OutputKey": "amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataCommentNestedStackCommentNestedStackResource06709DCDOutputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataCommentCommentTable4FC8AE39TableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Comment-u3jn2qbupzbyhc3h53673wdvim-main/stream/2026-03-20T21:21:05.630" - } -] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-data7552DF31-O97JQYUH4F0.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-data7552DF31-O97JQYUH4F0.parameters.json deleted file mode 100644 index a34e734d7ad..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-data7552DF31-O97JQYUH4F0.parameters.json +++ /dev/null @@ -1,38 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref", - "ParameterValue": "us-east-1:d48cd035-0397-46c6-b39a-19514b421022" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "true" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthUserPool82221E95Ref", - "ParameterValue": "us-east-1_I3YejOBUa" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef", - "ParameterValue": "amplify-discussions-ge-amplifyAuthunauthenticate-iYWdMAuszYuZ" - }, - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef", - "ParameterValue": "amplify-discussions-ge-amplifyAuthauthenticatedU-fjzgnNdQ7Oe2" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-data7552DF31-O97JQYUH4F0.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-data7552DF31-O97JQYUH4F0.template.json deleted file mode 100644 index a66398bb3b9..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-data7552DF31-O97JQYUH4F0.template.json +++ /dev/null @@ -1,2255 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.21.0\",\"stackType\":\"api-AppSync\",\"metadata\":{\"dataSources\":\"dynamodb\",\"authorizationModes\":\"amazon_cognito_identity_pools,amazon_cognito_user_pools,api_key,aws_iam\",\"customOperations\":\"queries\"}}", - "Resources": { - "amplifyDataGraphQLAPI42A6FA33": { - "Type": "AWS::AppSync::GraphQLApi", - "Properties": { - "AdditionalAuthenticationProviders": [ - { - "AuthenticationType": "AMAZON_COGNITO_USER_POOLS", - "UserPoolConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "UserPoolId": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthUserPool82221E95Ref" - } - } - }, - { - "AuthenticationType": "AWS_IAM" - } - ], - "AuthenticationType": "API_KEY", - "Name": "amplifyData", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/GraphQLAPI/Resource" - } - }, - "amplifyDataGraphQLAPITransformerSchemaFF50A789": { - "Type": "AWS::AppSync::GraphQLSchema", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "DefinitionS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/300f7c12e6b33cf8ae3c81bc9ac9123f7369b5e4b69f14aa10c6e3d2679d5934.graphql" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/GraphQLAPI/TransformerSchema" - } - }, - "amplifyDataGraphQLAPIDefaultApiKey1C8ED374": { - "Type": "AWS::AppSync::ApiKey", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "Expires": 1774647640 - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/GraphQLAPI/DefaultApiKey" - } - }, - "amplifyDataGraphQLAPINONEDS684BF699": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "Name": "NONE_DS", - "Type": "NONE" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/GraphQLAPI/NONE_DS/Resource" - } - }, - "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/e3c69ba0bccff572c6027ecfc6f8b77be4c416f58a147b001eec9e73809df6e3.json" - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/AmplifyTableManager.NestedStack/AmplifyTableManager.NestedStackResource", - "aws:asset:path": "amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataAmplifyTableManager5B4040D6.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "amplifyDataTopicNestedStackTopicNestedStackResource252EB182": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "DynamoDBModelTableWriteIOPS": { - "Ref": "DynamoDBModelTableWriteIOPS" - }, - "DynamoDBBillingMode": { - "Ref": "DynamoDBBillingMode" - }, - "DynamoDBEnablePointInTimeRecovery": { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "DynamoDBEnableServerSideEncryption": { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource72A5C49BOutputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataAmplifyTableManagerTableMaAF5EF112": { - "Fn::GetAtt": [ - "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833", - "Outputs.amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent7EFC42D0Arn" - ] - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref" - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/9319ca98beef079d0ef4fcbe3cd35deef01d6bc89cd4d0a49229659730bd783e.json" - ] - ] - } - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Topic.NestedStack/Topic.NestedStackResource", - "aws:asset:path": "amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataTopic561410D7.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "amplifyDataPostNestedStackPostNestedStackResourceB65AFCD3": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "DynamoDBModelTableWriteIOPS": { - "Ref": "DynamoDBModelTableWriteIOPS" - }, - "DynamoDBBillingMode": { - "Ref": "DynamoDBBillingMode" - }, - "DynamoDBEnablePointInTimeRecovery": { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "DynamoDBEnableServerSideEncryption": { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource72A5C49BOutputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataAmplifyTableManagerTableMaAF5EF112": { - "Fn::GetAtt": [ - "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833", - "Outputs.amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent7EFC42D0Arn" - ] - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref" - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/1e2989051deb90bf5c55bf9e60b58427096724724c3f2d447064382acfaa989c.json" - ] - ] - } - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Post.NestedStack/Post.NestedStackResource", - "aws:asset:path": "amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataPostF11F1ED4.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "amplifyDataCommentNestedStackCommentNestedStackResource87C7BB35": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "DynamoDBModelTableWriteIOPS": { - "Ref": "DynamoDBModelTableWriteIOPS" - }, - "DynamoDBBillingMode": { - "Ref": "DynamoDBBillingMode" - }, - "DynamoDBEnablePointInTimeRecovery": { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "DynamoDBEnableServerSideEncryption": { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource72A5C49BOutputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataAmplifyTableManagerTableMaAF5EF112": { - "Fn::GetAtt": [ - "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833", - "Outputs.amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent7EFC42D0Arn" - ] - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref" - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/a06442b2e1fa2f4e8302398dae3ce0e616e16edfaa0217af2001bbe3e1daaf02.json" - ] - ] - } - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/Comment.NestedStack/Comment.NestedStackResource", - "aws:asset:path": "amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataCommentB2DD7E34.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "amplifyDataFunctionDirectiveStackNestedStackFunctionDirectiveStackNestedStackResource1246A302": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/68b66389d6f98cd6daf0e006132352b38eb0e5dee57e3412434086e4caad2c2e.json" - ] - ] - } - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/FunctionDirectiveStack.NestedStack/FunctionDirectiveStack.NestedStackResource", - "aws:asset:path": "amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataFunctionDirectiveStackB704CB4B.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "amplifyDataConnectionStackNestedStackConnectionStackNestedStackResourceAB0F312B": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPINONEDS8BC5D31EName": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataPostNestedStackPostNestedStackResource3E8F8B99Outputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataPostPostDataSource1181B975Name": { - "Fn::GetAtt": [ - "amplifyDataPostNestedStackPostNestedStackResourceB65AFCD3", - "Outputs.amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataPostPostDataSource1181B975Name" - ] - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataPostNestedStackPostNestedStackResource3E8F8B99Outputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataPostPostTable3FE3EB5DTableArn": { - "Fn::GetAtt": [ - "amplifyDataPostNestedStackPostNestedStackResourceB65AFCD3", - "Outputs.amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataPostPostTable3FE3EB5DTableArn" - ] - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataCommentNestedStackCommentNestedStackResource06709DCDOutputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataCommentCommentDataSource55E61D91Name": { - "Fn::GetAtt": [ - "amplifyDataCommentNestedStackCommentNestedStackResource87C7BB35", - "Outputs.amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataCommentCommentDataSource55E61D91Name" - ] - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataCommentNestedStackCommentNestedStackResource06709DCDOutputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataCommentCommentTable4FC8AE39TableArn": { - "Fn::GetAtt": [ - "amplifyDataCommentNestedStackCommentNestedStackResource87C7BB35", - "Outputs.amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataCommentCommentTable4FC8AE39TableArn" - ] - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataTopicNestedStackTopicNestedStackResourceBD3B6C61Outputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataTopicTopicDataSource5289BBFCName": { - "Fn::GetAtt": [ - "amplifyDataTopicNestedStackTopicNestedStackResource252EB182", - "Outputs.amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataTopicTopicDataSource5289BBFCName" - ] - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataTopicNestedStackTopicNestedStackResourceBD3B6C61Outputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataTopicTopicTable0F7B351ATableArn": { - "Fn::GetAtt": [ - "amplifyDataTopicNestedStackTopicNestedStackResource252EB182", - "Outputs.amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataTopicTopicTable0F7B351ATableArn" - ] - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/4590498d3bfba11b353430b2c49f8362be26610558c94ec8b6f9a8db1f0457ca.json" - ] - ] - } - }, - "DependsOn": [ - "amplifyDataCommentNestedStackCommentNestedStackResource87C7BB35", - "amplifyDataGraphQLAPITransformerSchemaFF50A789", - "amplifyDataPostNestedStackPostNestedStackResourceB65AFCD3", - "amplifyDataTopicNestedStackTopicNestedStackResource252EB182" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/ConnectionStack.NestedStack/ConnectionStack.NestedStackResource", - "aws:asset:path": "amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataConnectionStack83594073.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "amplifyDataActivityIdDataResolverFnActivityIdDataResolverFnAppSyncFunctionA4906098": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "DataSourceName": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "ActivityIdDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/b99568f372e3dffae86aabe466815f3e987cdb1b01a7b4bba0c044556f46fca1.vtl" - } - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/ActivityIdDataResolverFn/ActivityIdDataResolverFn.AppSyncFunction" - } - }, - "ActivityidResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "FieldName": "id", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "amplifyDataActivityIdDataResolverFnActivityIdDataResolverFnAppSyncFunctionA4906098", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Activity\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"id\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Activity" - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/activityIdResolver" - } - }, - "amplifyDataActivityUserIdDataResolverFnActivityUserIdDataResolverFnAppSyncFunction66B67EF4": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "DataSourceName": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "ActivityUserIdDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/b53de7a6facbe87f6af1986109f92af3b546c8741e3201a920e1bbb4402997a4.vtl" - } - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/ActivityUserIdDataResolverFn/ActivityUserIdDataResolverFn.AppSyncFunction" - } - }, - "ActivityuserIdResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "FieldName": "userId", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "amplifyDataActivityUserIdDataResolverFnActivityUserIdDataResolverFnAppSyncFunction66B67EF4", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Activity\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"userId\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Activity" - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/activityUserIdResolver" - } - }, - "amplifyDataActivityActivityTypeDataResolverFnActivityActivityTypeDataResolverFnAppSyncFunctionF6BB5E26": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "DataSourceName": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "ActivityActivityTypeDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/8564d5899569ca37f23c0c2ab60b42e9624b0374ea9ed0dd34b3836f24a7d6ef.vtl" - } - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/ActivityActivityTypeDataResolverFn/ActivityActivityTypeDataResolverFn.AppSyncFunction" - } - }, - "ActivityactivityTypeResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "FieldName": "activityType", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "amplifyDataActivityActivityTypeDataResolverFnActivityActivityTypeDataResolverFnAppSyncFunctionF6BB5E26", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Activity\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"activityType\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Activity" - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/activityActivityTypeResolver" - } - }, - "amplifyDataActivityTimestampDataResolverFnActivityTimestampDataResolverFnAppSyncFunctionBFF6218D": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "DataSourceName": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "ActivityTimestampDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9ef1ff70f2fb1662ee5d5fef0e6ca25043179817bdfc6515940c3bb3124e50fa.vtl" - } - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/ActivityTimestampDataResolverFn/ActivityTimestampDataResolverFn.AppSyncFunction" - } - }, - "ActivitytimestampResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "FieldName": "timestamp", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "amplifyDataActivityTimestampDataResolverFnActivityTimestampDataResolverFnAppSyncFunctionBFF6218D", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Activity\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"timestamp\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Activity" - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/activityTimestampResolver" - } - }, - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA": { - "Type": "AWS::S3::Bucket", - "Properties": { - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD" - ], - "AllowedOrigins": [ - { - "Fn::Join": [ - "", - [ - "https://", - { - "Ref": "AWS::Region" - }, - ".console.aws.amazon.com/amplify" - ] - ] - } - ] - } - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "aws-cdk:cr-owned:02482c28", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/Resource" - } - }, - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucketPolicyF1C1C548": { - "Type": "AWS::S3::BucketPolicy", - "Properties": { - "Bucket": { - "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" - }, - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "s3:PutBucketPolicy", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*" - ], - "Effect": "Allow", - "Principal": { - "AWS": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - } - }, - "Resource": [ - { - "Fn::GetAtt": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/Policy/Resource" - } - }, - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucketAutoDeleteObjectsCustomResource437F26F5": { - "Type": "Custom::S3AutoDeleteObjects", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "Arn" - ] - }, - "BucketName": { - "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" - } - }, - "DependsOn": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucketPolicyF1C1C548" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/AutoDeleteObjectsCustomResource/Default" - } - }, - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentAwsCliLayerE322F905": { - "Type": "AWS::Lambda::LayerVersion", - "Properties": { - "Content": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "0cfdecad2260a3a84ad0c2d08a77e03c9d25e26c7b52f26b1e1faf97aef92f18.zip" - }, - "Description": "/opt/awscli/aws" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsDeployment/AwsCliLayer/Resource", - "aws:asset:path": "asset.0cfdecad2260a3a84ad0c2d08a77e03c9d25e26c7b52f26b1e1faf97aef92f18.zip", - "aws:asset:is-bundled": false, - "aws:asset:property": "Content" - } - }, - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB21775929": { - "Type": "Custom::CDKBucketDeployment", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBC5D8AB21", - "Arn" - ] - }, - "SourceBucketNames": [ - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - } - ], - "SourceObjectKeys": [ - "dbf8037d854a25fa34a911a4cc5b6ee0521fe10deca928ac11a880166a3daaa0.zip" - ], - "SourceMarkers": [ - {} - ], - "DestinationBucketName": { - "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" - }, - "WaitForDistributionInvalidation": true, - "Prune": true, - "OutputObjectKeys": true, - "DestinationBucketArn": { - "Fn::GetAtt": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", - "Arn" - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsDeployment/CustomResource-1536MiB/Default" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ] - }, - "ManagedPolicyArns": [ - { - "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" - }, - "Timeout": 900, - "MemorySize": 128, - "Handler": "index.handler", - "Role": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Description": { - "Fn::Join": [ - "", - [ - "Lambda function for auto-deleting objects in ", - { - "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" - }, - " S3 bucket." - ] - ] - } - }, - "DependsOn": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - ], - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", - "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", - "aws:asset:property": "Code" - } - }, - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/ServiceRole/Resource" - } - }, - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleDefaultPolicyFF1C635B": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "s3:GetObject*", - "s3:GetBucket*", - "s3:List*" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":s3:::", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - } - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":s3:::", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/*" - ] - ] - } - ] - }, - { - "Action": [ - "s3:GetObject*", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*", - "s3:PutObject", - "s3:PutObjectLegalHold", - "s3:PutObjectRetention", - "s3:PutObjectTagging", - "s3:PutObjectVersionTagging", - "s3:Abort*" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - }, - { - "Action": [ - "s3:GetObject*", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*", - "s3:PutObject", - "s3:PutObjectLegalHold", - "s3:PutObjectRetention", - "s3:PutObjectTagging", - "s3:PutObjectVersionTagging", - "s3:Abort*" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "modelIntrospectionSchemaBucketF566B665", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "modelIntrospectionSchemaBucketF566B665", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleDefaultPolicyFF1C635B", - "Roles": [ - { - "Ref": "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/ServiceRole/DefaultPolicy/Resource" - } - }, - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBC5D8AB21": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "3423a042b818e31c1e34a19d6689ab2e5f9b70fcbe9e71df66f241b20a200bd9.zip" - }, - "Environment": { - "Variables": { - "AWS_CA_BUNDLE": "/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem" - } - }, - "Handler": "index.handler", - "Layers": [ - { - "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentAwsCliLayerE322F905" - } - ], - "MemorySize": 1536, - "Role": { - "Fn::GetAtt": [ - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2", - "Arn" - ] - }, - "Runtime": "python3.13", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 900 - }, - "DependsOn": [ - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleDefaultPolicyFF1C635B", - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2" - ], - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/Resource", - "aws:asset:path": "asset.3423a042b818e31c1e34a19d6689ab2e5f9b70fcbe9e71df66f241b20a200bd9", - "aws:asset:is-bundled": false, - "aws:asset:property": "Code" - } - }, - "modelIntrospectionSchemaBucketF566B665": { - "Type": "AWS::S3::Bucket", - "Properties": { - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "aws-cdk:cr-owned:82204748", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/modelIntrospectionSchemaBucket/Resource" - } - }, - "modelIntrospectionSchemaBucketPolicy4DAB0D15": { - "Type": "AWS::S3::BucketPolicy", - "Properties": { - "Bucket": { - "Ref": "modelIntrospectionSchemaBucketF566B665" - }, - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:*", - "Condition": { - "Bool": { - "aws:SecureTransport": "false" - } - }, - "Effect": "Deny", - "Principal": { - "AWS": "*" - }, - "Resource": [ - { - "Fn::GetAtt": [ - "modelIntrospectionSchemaBucketF566B665", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "modelIntrospectionSchemaBucketF566B665", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - }, - { - "Action": [ - "s3:PutBucketPolicy", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*" - ], - "Effect": "Allow", - "Principal": { - "AWS": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - } - }, - "Resource": [ - { - "Fn::GetAtt": [ - "modelIntrospectionSchemaBucketF566B665", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "modelIntrospectionSchemaBucketF566B665", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/modelIntrospectionSchemaBucket/Policy/Resource" - } - }, - "modelIntrospectionSchemaBucketAutoDeleteObjectsCustomResourceFE57309F": { - "Type": "Custom::S3AutoDeleteObjects", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "Arn" - ] - }, - "BucketName": { - "Ref": "modelIntrospectionSchemaBucketF566B665" - } - }, - "DependsOn": [ - "modelIntrospectionSchemaBucketPolicy4DAB0D15" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/modelIntrospectionSchemaBucket/AutoDeleteObjectsCustomResource/Default" - } - }, - "modelIntrospectionSchemaBucketDeploymentAwsCliLayer13C432F7": { - "Type": "AWS::Lambda::LayerVersion", - "Properties": { - "Content": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "0cfdecad2260a3a84ad0c2d08a77e03c9d25e26c7b52f26b1e1faf97aef92f18.zip" - }, - "Description": "/opt/awscli/aws" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/modelIntrospectionSchemaBucketDeployment/AwsCliLayer/Resource", - "aws:asset:path": "asset.0cfdecad2260a3a84ad0c2d08a77e03c9d25e26c7b52f26b1e1faf97aef92f18.zip", - "aws:asset:is-bundled": false, - "aws:asset:property": "Content" - } - }, - "modelIntrospectionSchemaBucketDeploymentCustomResource1536MiB104B97EC": { - "Type": "Custom::CDKBucketDeployment", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBC5D8AB21", - "Arn" - ] - }, - "SourceBucketNames": [ - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - } - ], - "SourceObjectKeys": [ - "df198b893678487bb17a3e38f72236bb108e7549e60e05070d2dc0c226d763c2.zip" - ], - "SourceMarkers": [ - {} - ], - "DestinationBucketName": { - "Ref": "modelIntrospectionSchemaBucketF566B665" - }, - "WaitForDistributionInvalidation": true, - "Prune": true, - "OutputObjectKeys": true - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/modelIntrospectionSchemaBucketDeployment/CustomResource-1536MiB/Default" - } - }, - "AMPLIFYDATAGRAPHQLENDPOINTParameter1C2CBB16": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/discussions/gen2main-branch-a27e51c30a/AMPLIFY_DATA_GRAPHQL_ENDPOINT", - "Tags": { - "amplify:app-id": "discussions", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "GraphQLUrl" - ] - } - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/AMPLIFY_DATA_GRAPHQL_ENDPOINTParameter/Resource" - } - }, - "AMPLIFYDATAMODELINTROSPECTIONSCHEMABUCKETNAMEParameter47BF4F44": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/discussions/gen2main-branch-a27e51c30a/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_BUCKET_NAME", - "Tags": { - "amplify:app-id": "discussions", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": { - "Ref": "modelIntrospectionSchemaBucketF566B665" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_BUCKET_NAMEParameter/Resource" - } - }, - "AMPLIFYDATAMODELINTROSPECTIONSCHEMAKEYParameterB6AEAE8A": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/discussions/gen2main-branch-a27e51c30a/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_KEY", - "Tags": { - "amplify:app-id": "discussions", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": "modelIntrospectionSchema.json" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_KEYParameter/Resource" - } - }, - "AMPLIFYDATADEFAULTNAMEParameterE7C23CC4": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/discussions/gen2main-branch-a27e51c30a/AMPLIFY_DATA_DEFAULT_NAME", - "Tags": { - "amplify:app-id": "discussions", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": "amplifyData" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/AMPLIFY_DATA_DEFAULT_NAMEParameter/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/6VSTW/bMAz9Lc1ZUdu0h2E310F3WNFlMdDLUASMzLhM9OGJcjJD8H8fZGVpup6KnshHig+PepzJ2e2tvLqAA09VvZtqWsv4iBywrgKonVgiu84rFHDgVYS25d4qGb95aF9+66KlO2AU5caOlZ8PRUtnqFIvaCAVipa+Yy8encU5BKgyabmxb9F9Z1UgZ0tnN9R0HhJIjaRD79EPgm9WEZgxsCxSEDW22vUGbZB3ndphmJ8K6bWMuToKzWkizNmvODH0h+zk6+T8C9KyfCPHFh9Ziy64OWoM+GO9RRV4MohPTT8f1SycJtW/asr4A8ryQBUgYFr6Y8LeDz8PQoNZ1yBjubEP0KN/Qs/JiIpsozG4k0/ilJyZNwgCI+PS6dHTMb4umbNBMBsZq+DJNgvwYDCgH/v/wDCI0eAqQEO2Sb18k2XHwZnTZR6vY8yz8JVOoldwYKVJFgcuNY17vOH/j2fh3Z5q9OlOBmFdjXLLl/vZTF5/kVcXWyaa+s4GMiiXOf4FCBed+D4DAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthUserPool82221E95Ref": { - "Type": "String" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef": { - "Type": "String" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef": { - "Type": "String" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref": { - "Type": "String" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Outputs": { - "amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId": { - "Value": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - } - }, - "amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21GraphQLUrl": { - "Value": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "GraphQLUrl" - ] - } - }, - "amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiBABCA4586DestinationBucketArn": { - "Value": { - "Fn::GetAtt": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB21775929", - "DestinationBucketArn" - ] - } - }, - "amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPIDefaultApiKey467DD7FFApiKey": { - "Value": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPIDefaultApiKey1C8ED374", - "ApiKey" - ] - } - }, - "amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataTopicNestedStackTopicNestedStackResourceBD3B6C61Outputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataTopicTopicTable0F7B351ATableStreamArn": { - "Value": { - "Fn::GetAtt": [ - "amplifyDataTopicNestedStackTopicNestedStackResource252EB182", - "Outputs.amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataTopicTopicTable0F7B351ATableStreamArn" - ] - } - }, - "amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataPostNestedStackPostNestedStackResource3E8F8B99Outputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataPostPostTable3FE3EB5DTableStreamArn": { - "Value": { - "Fn::GetAtt": [ - "amplifyDataPostNestedStackPostNestedStackResourceB65AFCD3", - "Outputs.amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataPostPostTable3FE3EB5DTableStreamArn" - ] - } - }, - "amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataCommentNestedStackCommentNestedStackResource06709DCDOutputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataCommentCommentTable4FC8AE39TableStreamArn": { - "Value": { - "Fn::GetAtt": [ - "amplifyDataCommentNestedStackCommentNestedStackResource87C7BB35", - "Outputs.amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataCommentCommentTable4FC8AE39TableStreamArn" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-function1351588B-3VEH789QLSJQ.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-function1351588B-3VEH789QLSJQ.description.txt deleted file mode 100644 index 6cad6da1b61..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-function1351588B-3VEH789QLSJQ.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.17.0","stackType":"function-Lambda","metadata":{}} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-function1351588B-3VEH789QLSJQ.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-function1351588B-3VEH789QLSJQ.outputs.json deleted file mode 100644 index 8059da73fa9..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-function1351588B-3VEH789QLSJQ.outputs.json +++ /dev/null @@ -1,10 +0,0 @@ -[ - { - "OutputKey": "amplifydiscussionsgen2mainbrancha27e51c30afunctionfetchuseractivitygen2mainlambda502480EDRef", - "OutputValue": "fetchuseractivity-gen2-main" - }, - { - "OutputKey": "amplifydiscussionsgen2mainbrancha27e51c30afunctionrecorduseractivitygen2mainlambdaE5320324Ref", - "OutputValue": "recorduseractivity-gen2-main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-function1351588B-3VEH789QLSJQ.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-function1351588B-3VEH789QLSJQ.parameters.json deleted file mode 100644 index 4fd87d5ced9..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-function1351588B-3VEH789QLSJQ.parameters.json +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30astorageactivityNestedStackstorageactivityNestedStackResource59CA300COutputsamplifydiscussionsgen2mainbrancha27e51c30astorageactivity9EDFFE97StreamArn", - "ParameterValue": "arn:aws:dynamodb:us-east-1:123456789012:table/amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1-activity1E902D9C-QYW2OKZ2EU7Z/stream/2026-03-20T21:41:02.189" - }, - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30astorageactivityNestedStackstorageactivityNestedStackResource59CA300COutputsamplifydiscussionsgen2mainbrancha27e51c30astorageactivity9EDFFE97Ref", - "ParameterValue": "amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1-activity1E902D9C-QYW2OKZ2EU7Z" - }, - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataNestedStackdataNestedStackResource907A4719Outputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataTopicNestedStackTopicNestedStackResourceBD3B6C61Outputsamplifyd2l28aset733CD677", - "ParameterValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Topic-u3jn2qbupzbyhc3h53673wdvim-main/stream/2026-03-20T21:20:17.537" - }, - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataNestedStackdataNestedStackResource907A4719Outputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataCommentNestedStackCommentNestedStackResource06709DCDOutputsamplifyd2l28483C8589", - "ParameterValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Comment-u3jn2qbupzbyhc3h53673wdvim-main/stream/2026-03-20T21:21:05.630" - }, - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30astorageactivityNestedStackstorageactivityNestedStackResource59CA300COutputsamplifydiscussionsgen2mainbrancha27e51c30astorageactivity9EDFFE97Arn", - "ParameterValue": "arn:aws:dynamodb:us-east-1:123456789012:table/amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1-activity1E902D9C-QYW2OKZ2EU7Z" - }, - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataNestedStackdataNestedStackResource907A4719Outputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataPostNestedStackPostNestedStackResource3E8F8B99Outputsamplifyd2l28asetq99E749BF8", - "ParameterValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Post-u3jn2qbupzbyhc3h53673wdvim-main/stream/2026-03-20T21:21:05.591" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-function1351588B-3VEH789QLSJQ.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-function1351588B-3VEH789QLSJQ.template.json deleted file mode 100644 index 023e58e9e8a..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-function1351588B-3VEH789QLSJQ.template.json +++ /dev/null @@ -1,832 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.17.0\",\"stackType\":\"function-Lambda\",\"metadata\":{}}", - "Resources": { - "fetchuseractivitygen2mainlambdaServiceRoleCC992996": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "fetchuseractivity-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/function/fetchuseractivity-gen2-main-lambda/ServiceRole/Resource" - } - }, - "fetchuseractivitygen2mainlambdaServiceRoleDefaultPolicy4BD1E93F": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:Get*", - "dynamodb:BatchGetItem", - "dynamodb:List*", - "dynamodb:Describe*", - "dynamodb:Scan", - "dynamodb:Query", - "dynamodb:PartiQLSelect" - ], - "Effect": "Allow", - "Resource": [ - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30astorageactivityNestedStackstorageactivityNestedStackResource59CA300COutputsamplifydiscussionsgen2mainbrancha27e51c30astorageactivity9EDFFE97Arn" - }, - { - "Fn::Join": [ - "", - [ - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30astorageactivityNestedStackstorageactivityNestedStackResource59CA300COutputsamplifydiscussionsgen2mainbrancha27e51c30astorageactivity9EDFFE97Arn" - }, - "/index/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "fetchuseractivitygen2mainlambdaServiceRoleDefaultPolicy4BD1E93F", - "Roles": [ - { - "Ref": "fetchuseractivitygen2mainlambdaServiceRoleCC992996" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/function/fetchuseractivity-gen2-main-lambda/ServiceRole/DefaultPolicy/Resource" - } - }, - "fetchuseractivitygen2mainlambda788E8B44": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Architectures": [ - "x86_64" - ], - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "99d30e131c7136e70f5801d646d20ff27f7fe93960cba5df7904b90132caa856.zip" - }, - "Environment": { - "Variables": { - "ENV": "gen2-main", - "REGION": "us-east-1", - "AMPLIFY_SSM_ENV_CONFIG": "{}", - "STORAGE_ACTIVITY_STREAMARN": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30astorageactivityNestedStackstorageactivityNestedStackResource59CA300COutputsamplifydiscussionsgen2mainbrancha27e51c30astorageactivity9EDFFE97StreamArn" - }, - "STORAGE_ACTIVITY_ARN": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30astorageactivityNestedStackstorageactivityNestedStackResource59CA300COutputsamplifydiscussionsgen2mainbrancha27e51c30astorageactivity9EDFFE97Arn" - }, - "STORAGE_ACTIVITY_NAME": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30astorageactivityNestedStackstorageactivityNestedStackResource59CA300COutputsamplifydiscussionsgen2mainbrancha27e51c30astorageactivity9EDFFE97Ref" - } - } - }, - "EphemeralStorage": { - "Size": 512 - }, - "FunctionName": "fetchuseractivity-gen2-main", - "Handler": "index.handler", - "MemorySize": 128, - "Role": { - "Fn::GetAtt": [ - "fetchuseractivitygen2mainlambdaServiceRoleCC992996", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "fetchuseractivity-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 25 - }, - "DependsOn": [ - "fetchuseractivitygen2mainlambdaServiceRoleDefaultPolicy4BD1E93F", - "fetchuseractivitygen2mainlambdaServiceRoleCC992996" - ], - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/function/fetchuseractivity-gen2-main-lambda/Resource", - "aws:asset:path": "asset.99d30e131c7136e70f5801d646d20ff27f7fe93960cba5df7904b90132caa856", - "aws:asset:is-bundled": true, - "aws:asset:property": "Code" - } - }, - "recorduseractivitygen2mainlambdaServiceRoleAB2F457C": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "recorduseractivity-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/function/recorduseractivity-gen2-main-lambda/ServiceRole/Resource" - } - }, - "recorduseractivitygen2mainlambdaServiceRoleDefaultPolicy9501E2A3": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:Put*", - "dynamodb:Create*", - "dynamodb:BatchWriteItem", - "dynamodb:PartiQLInsert", - "dynamodb:Get*", - "dynamodb:BatchGetItem", - "dynamodb:List*", - "dynamodb:Describe*", - "dynamodb:Scan", - "dynamodb:Query", - "dynamodb:PartiQLSelect", - "dynamodb:Update*", - "dynamodb:RestoreTable*", - "dynamodb:PartiQLUpdate", - "dynamodb:Delete*", - "dynamodb:PartiQLDelete" - ], - "Effect": "Allow", - "Resource": [ - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30astorageactivityNestedStackstorageactivityNestedStackResource59CA300COutputsamplifydiscussionsgen2mainbrancha27e51c30astorageactivity9EDFFE97Arn" - }, - { - "Fn::Join": [ - "", - [ - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30astorageactivityNestedStackstorageactivityNestedStackResource59CA300COutputsamplifydiscussionsgen2mainbrancha27e51c30astorageactivity9EDFFE97Arn" - }, - "/index/*" - ] - ] - } - ] - }, - { - "Action": "dynamodb:ListStreams", - "Effect": "Allow", - "Resource": "*" - }, - { - "Action": [ - "dynamodb:DescribeStream", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator" - ], - "Effect": "Allow", - "Resource": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataNestedStackdataNestedStackResource907A4719Outputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataTopicNestedStackTopicNestedStackResourceBD3B6C61Outputsamplifyd2l28aset733CD677" - } - }, - { - "Action": [ - "dynamodb:DescribeStream", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator" - ], - "Effect": "Allow", - "Resource": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataNestedStackdataNestedStackResource907A4719Outputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataPostNestedStackPostNestedStackResource3E8F8B99Outputsamplifyd2l28asetq99E749BF8" - } - }, - { - "Action": [ - "dynamodb:DescribeStream", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator" - ], - "Effect": "Allow", - "Resource": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataNestedStackdataNestedStackResource907A4719Outputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataCommentNestedStackCommentNestedStackResource06709DCDOutputsamplifyd2l28483C8589" - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "recorduseractivitygen2mainlambdaServiceRoleDefaultPolicy9501E2A3", - "Roles": [ - { - "Ref": "recorduseractivitygen2mainlambdaServiceRoleAB2F457C" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/function/recorduseractivity-gen2-main-lambda/ServiceRole/DefaultPolicy/Resource" - } - }, - "recorduseractivitygen2mainlambda641C8AFE": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Architectures": [ - "x86_64" - ], - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "40212442a88722cfc1748909e61838bde44b6400e94e6b309d1e6f208c06e1b5.zip" - }, - "Environment": { - "Variables": { - "ENV": "gen2-main", - "REGION": "us-east-1", - "AMPLIFY_SSM_ENV_CONFIG": "{}", - "STORAGE_ACTIVITY_STREAMARN": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30astorageactivityNestedStackstorageactivityNestedStackResource59CA300COutputsamplifydiscussionsgen2mainbrancha27e51c30astorageactivity9EDFFE97StreamArn" - }, - "STORAGE_ACTIVITY_ARN": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30astorageactivityNestedStackstorageactivityNestedStackResource59CA300COutputsamplifydiscussionsgen2mainbrancha27e51c30astorageactivity9EDFFE97Arn" - }, - "STORAGE_ACTIVITY_NAME": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30astorageactivityNestedStackstorageactivityNestedStackResource59CA300COutputsamplifydiscussionsgen2mainbrancha27e51c30astorageactivity9EDFFE97Ref" - } - } - }, - "EphemeralStorage": { - "Size": 512 - }, - "FunctionName": "recorduseractivity-gen2-main", - "Handler": "index.handler", - "MemorySize": 128, - "Role": { - "Fn::GetAtt": [ - "recorduseractivitygen2mainlambdaServiceRoleAB2F457C", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "recorduseractivity-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 25 - }, - "DependsOn": [ - "recorduseractivitygen2mainlambdaServiceRoleDefaultPolicy9501E2A3", - "recorduseractivitygen2mainlambdaServiceRoleAB2F457C" - ], - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/function/recorduseractivity-gen2-main-lambda/Resource", - "aws:asset:path": "asset.40212442a88722cfc1748909e61838bde44b6400e94e6b309d1e6f208c06e1b5", - "aws:asset:is-bundled": true, - "aws:asset:property": "Code" - } - }, - "recorduseractivitygen2mainlambdaDynamoDBEventSourceamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataTopicCustomTableTopicTableE55B550AF3E0087C": { - "Type": "AWS::Lambda::EventSourceMapping", - "Properties": { - "BatchSize": 100, - "EventSourceArn": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataNestedStackdataNestedStackResource907A4719Outputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataTopicNestedStackTopicNestedStackResourceBD3B6C61Outputsamplifyd2l28aset733CD677" - }, - "FunctionName": { - "Ref": "recorduseractivitygen2mainlambda641C8AFE" - }, - "StartingPosition": "LATEST", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "recorduseractivity-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/function/recorduseractivity-gen2-main-lambda/DynamoDBEventSource:amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataTopicCustomTableTopicTableE55B550A/Resource" - } - }, - "recorduseractivitygen2mainlambdaDynamoDBEventSourceamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataPostCustomTablePostTable0DC0D4A00E4DC807": { - "Type": "AWS::Lambda::EventSourceMapping", - "Properties": { - "BatchSize": 100, - "EventSourceArn": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataNestedStackdataNestedStackResource907A4719Outputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataPostNestedStackPostNestedStackResource3E8F8B99Outputsamplifyd2l28asetq99E749BF8" - }, - "FunctionName": { - "Ref": "recorduseractivitygen2mainlambda641C8AFE" - }, - "StartingPosition": "LATEST", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "recorduseractivity-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/function/recorduseractivity-gen2-main-lambda/DynamoDBEventSource:amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataPostCustomTablePostTable0DC0D4A0/Resource" - } - }, - "recorduseractivitygen2mainlambdaDynamoDBEventSourceamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataCommentCustomTableCommentTable963074804FFC242E": { - "Type": "AWS::Lambda::EventSourceMapping", - "Properties": { - "BatchSize": 100, - "EventSourceArn": { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataNestedStackdataNestedStackResource907A4719Outputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataCommentNestedStackCommentNestedStackResource06709DCDOutputsamplifyd2l28483C8589" - }, - "FunctionName": { - "Ref": "recorduseractivitygen2mainlambda641C8AFE" - }, - "StartingPosition": "LATEST", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "recorduseractivity-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/function/recorduseractivity-gen2-main-lambda/DynamoDBEventSource:amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataCommentCustomTableCommentTable96307480/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/2WOwQ6CMBBEv4V7WRE5eBWiN4mRDyBLWUihtIQtGkP4d1NIvHh6M3N4mRjiJIEowDeHsu5DrSpYcmJHdeFQ9gLfXC4ah6rG0tiaOoZ8w2020ilrhMIBlqfVJLLGbHxYreTH1z2tgk8lMpNjuHgIPkE6y55cikxi18OSNeZnvb7IuMLOk6Q7jqMyrff9r+sqNmXhsPVV+JPQ8eEVx3A8QxR0rFQ4zcapgeC58wtmzoOU9wAAAA==" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/function/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "referencetoamplifydiscussionsgen2mainbrancha27e51c30astorageactivityNestedStackstorageactivityNestedStackResource59CA300COutputsamplifydiscussionsgen2mainbrancha27e51c30astorageactivity9EDFFE97Arn": { - "Type": "String" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30astorageactivityNestedStackstorageactivityNestedStackResource59CA300COutputsamplifydiscussionsgen2mainbrancha27e51c30astorageactivity9EDFFE97StreamArn": { - "Type": "String" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30astorageactivityNestedStackstorageactivityNestedStackResource59CA300COutputsamplifydiscussionsgen2mainbrancha27e51c30astorageactivity9EDFFE97Ref": { - "Type": "String" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataNestedStackdataNestedStackResource907A4719Outputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataTopicNestedStackTopicNestedStackResourceBD3B6C61Outputsamplifyd2l28aset733CD677": { - "Type": "String" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataNestedStackdataNestedStackResource907A4719Outputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataPostNestedStackPostNestedStackResource3E8F8B99Outputsamplifyd2l28asetq99E749BF8": { - "Type": "String" - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataNestedStackdataNestedStackResource907A4719Outputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataCommentNestedStackCommentNestedStackResource06709DCDOutputsamplifyd2l28483C8589": { - "Type": "String" - } - }, - "Outputs": { - "amplifydiscussionsgen2mainbrancha27e51c30afunctionfetchuseractivitygen2mainlambda502480EDRef": { - "Value": { - "Ref": "fetchuseractivitygen2mainlambda788E8B44" - } - }, - "amplifydiscussionsgen2mainbrancha27e51c30afunctionrecorduseractivitygen2mainlambdaE5320324Ref": { - "Value": { - "Ref": "recorduseractivitygen2mainlambda641C8AFE" - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N.description.txt deleted file mode 100644 index 4600cb981f5..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.4.3","stackType":"storage-S3","metadata":{}} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N.outputs.json deleted file mode 100644 index 8d5fce960da..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N.outputs.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - { - "OutputKey": "amplifydiscussionsgen2mainbrancha27e51c30astoragediscusavatarsc39a5gen2mainBucket0721E25ERef", - "OutputValue": "amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N.parameters.json deleted file mode 100644 index db99c1f6430..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N.parameters.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef", - "ParameterValue": "amplify-discussions-ge-amplifyAuthauthenticatedU-fjzgnNdQ7Oe2" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N.template.json deleted file mode 100644 index 23679505a19..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-storage0EC3F24A-O1Q835F0QK5N.template.json +++ /dev/null @@ -1,746 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", - "Resources": { - "discusavatarsc39a5gen2mainBucketB24EA230": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "BucketKeyEnabled": false, - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "MaxAge": 3000 - } - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "discus-avatarsc39a5-gen2-main" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storage/discus-avatarsc39a5-gen2-main/Bucket/Resource" - } - }, - "discusavatarsc39a5gen2mainBucketPolicy73EB7DB2": { - "Type": "AWS::S3::BucketPolicy", - "Properties": { - "Bucket": { - "Ref": "discusavatarsc39a5gen2mainBucketB24EA230" - }, - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:*", - "Condition": { - "Bool": { - "aws:SecureTransport": "false" - } - }, - "Effect": "Deny", - "Principal": { - "AWS": "*" - }, - "Resource": [ - { - "Fn::GetAtt": [ - "discusavatarsc39a5gen2mainBucketB24EA230", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "discusavatarsc39a5gen2mainBucketB24EA230", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - }, - { - "Action": [ - "s3:PutBucketPolicy", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*" - ], - "Effect": "Allow", - "Principal": { - "AWS": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - } - }, - "Resource": [ - { - "Fn::GetAtt": [ - "discusavatarsc39a5gen2mainBucketB24EA230", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "discusavatarsc39a5gen2mainBucketB24EA230", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storage/discus-avatarsc39a5-gen2-main/Bucket/Policy/Resource" - } - }, - "discusavatarsc39a5gen2mainBucketAutoDeleteObjectsCustomResource2CB8EFAF": { - "Type": "Custom::S3AutoDeleteObjects", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "Arn" - ] - }, - "BucketName": { - "Ref": "discusavatarsc39a5gen2mainBucketB24EA230" - } - }, - "DependsOn": [ - "discusavatarsc39a5gen2mainBucketPolicy73EB7DB2" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storage/discus-avatarsc39a5-gen2-main/Bucket/AutoDeleteObjectsCustomResource/Default" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ] - }, - "ManagedPolicyArns": [ - { - "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" - }, - "Timeout": 900, - "MemorySize": 128, - "Handler": "index.handler", - "Role": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Description": { - "Fn::Join": [ - "", - [ - "Lambda function for auto-deleting objects in ", - { - "Ref": "discusavatarsc39a5gen2mainBucketB24EA230" - }, - " S3 bucket." - ] - ] - } - }, - "DependsOn": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - ], - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", - "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", - "aws:asset:property": "Code" - } - }, - "DISCUSAVATARSC39A5GEN2MAINBUCKETNAMEParameter7EBC4CDD": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/discussions/gen2main-branch-a27e51c30a/DISCUS_AVATARSC_39_A_5_GEN_2_MAIN_BUCKET_NAME", - "Tags": { - "amplify:app-id": "discussions", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": { - "Ref": "discusavatarsc39a5gen2mainBucketB24EA230" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storage/DISCUS_AVATARSC_39_A_5_GEN_2_MAIN_BUCKET_NAMEParameter/Resource" - } - }, - "amplifydiscussionsgen2mainbrancha27e51c30astorageAccess342E15B6C": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:PutObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "discusavatarsc39a5gen2mainBucketB24EA230", - "Arn" - ] - }, - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "discusavatarsc39a5gen2mainBucketB24EA230", - "Arn" - ] - }, - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "discusavatarsc39a5gen2mainBucketB24EA230", - "Arn" - ] - }, - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "discusavatarsc39a5gen2mainBucketB24EA230", - "Arn" - ] - }, - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "discusavatarsc39a5gen2mainBucketB24EA230", - "Arn" - ] - }, - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "discusavatarsc39a5gen2mainBucketB24EA230", - "Arn" - ] - }, - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/*", - "public/", - "protected/*", - "protected/", - "private/*", - "private/" - ] - } - }, - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "discusavatarsc39a5gen2mainBucketB24EA230", - "Arn" - ] - } - }, - { - "Action": "s3:DeleteObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "discusavatarsc39a5gen2mainBucketB24EA230", - "Arn" - ] - }, - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "discusavatarsc39a5gen2mainBucketB24EA230", - "Arn" - ] - }, - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "discusavatarsc39a5gen2mainBucketB24EA230", - "Arn" - ] - }, - "/private/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "amplifydiscussionsgen2mainbrancha27e51c30astorageAccess342E15B6C", - "Roles": [ - { - "Ref": "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storage/amplify-discussions-gen2main-branch-a27e51c30a--storageAccess3/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/5WNy07DMBBFv6VZO0NJu0Ds2rKGqFkihFxniCaJbckz6UOW/x2llggsWc0dnfuooNpuYb3SFy5NO5QjnSC+Igu2jWgzKH3hz8gbiPvJDCjq8OWyeo+FpSu54rn4HZ79vIE7YsjW3ST+BUcUfDv1aISL9KEyqv1I5ra05v8f3TnQiBa06O7VSTFbiI0Ecl2tg7YoGOaNnycp0hbisp5VSuowsXh7RPZTMDijRf9BdfBnajHsNaPaMaM0ojtyXVLOtwg9P5yrCh6fYL3qmagMkxOyCMd8vwGr7NONegEAAA==" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storage/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef": { - "Type": "String" - } - }, - "Outputs": { - "amplifydiscussionsgen2mainbrancha27e51c30astoragediscusavatarsc39a5gen2mainBucket0721E25ERef": { - "Value": { - "Ref": "discusavatarsc39a5gen2mainBucketB24EA230" - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1.description.txt deleted file mode 100644 index 1e3215c63d9..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.21.1","stackType":"custom","metadata":{}} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1.outputs.json deleted file mode 100644 index cc675d591de..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1.outputs.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "OutputKey": "amplifydiscussionsgen2mainbrancha27e51c30astorageactivity9EDFFE97Ref", - "OutputValue": "amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1-activity1E902D9C-QYW2OKZ2EU7Z" - }, - { - "OutputKey": "amplifydiscussionsgen2mainbrancha27e51c30astorageactivity9EDFFE97Arn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1-activity1E902D9C-QYW2OKZ2EU7Z" - }, - { - "OutputKey": "amplifydiscussionsgen2mainbrancha27e51c30astorageactivity9EDFFE97StreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1-activity1E902D9C-QYW2OKZ2EU7Z/stream/2026-03-20T21:41:02.189" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1.parameters.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1.parameters.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1.template.json deleted file mode 100644 index f9454d3aee7..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-storageactivityA346F297-6KCEOSFCBCK1.template.json +++ /dev/null @@ -1,385 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.21.1\",\"stackType\":\"custom\",\"metadata\":{}}", - "Resources": { - "activity1E902D9C": { - "Type": "AWS::DynamoDB::Table", - "Properties": { - "AttributeDefinitions": [ - { - "AttributeName": "id", - "AttributeType": "S" - }, - { - "AttributeName": "userId", - "AttributeType": "S" - }, - { - "AttributeName": "timestamp", - "AttributeType": "S" - } - ], - "GlobalSecondaryIndexes": [ - { - "IndexName": "byUserId", - "KeySchema": [ - { - "AttributeName": "userId", - "KeyType": "HASH" - }, - { - "AttributeName": "timestamp", - "KeyType": "RANGE" - } - ], - "Projection": { - "ProjectionType": "ALL" - }, - "ProvisionedThroughput": { - "ReadCapacityUnits": 5, - "WriteCapacityUnits": 5 - } - } - ], - "KeySchema": [ - { - "AttributeName": "id", - "KeyType": "HASH" - }, - { - "AttributeName": "userId", - "KeyType": "RANGE" - } - ], - "ProvisionedThroughput": { - "ReadCapacityUnits": 5, - "WriteCapacityUnits": 5 - }, - "StreamSpecification": { - "StreamViewType": "NEW_IMAGE" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain", - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storageactivity/activity/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXGOwqEMBAA0LPYJ7MaLOztt1B7mWRGiJ8EnERZxLsvaPWeAVPXUBZ4ina06NVbuL4sialP6BaFp4z0C7hFsnANaFdW7RSe3KpjiXl3fKsQiWGWz2EMVA2UxSze6z2H5DeG7vUPAxTDOW4AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storageactivity/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Outputs": { - "amplifydiscussionsgen2mainbrancha27e51c30astorageactivity9EDFFE97Arn": { - "Value": { - "Fn::GetAtt": [ - "activity1E902D9C", - "Arn" - ] - } - }, - "amplifydiscussionsgen2mainbrancha27e51c30astorageactivity9EDFFE97StreamArn": { - "Value": { - "Fn::GetAtt": [ - "activity1E902D9C", - "StreamArn" - ] - } - }, - "amplifydiscussionsgen2mainbrancha27e51c30astorageactivity9EDFFE97Ref": { - "Value": { - "Ref": "activity1E902D9C" - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT.description.txt deleted file mode 100644 index 1e3215c63d9..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.21.1","stackType":"custom","metadata":{}} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT.outputs.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT.outputs.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT.parameters.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT.parameters.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT.template.json deleted file mode 100644 index f0838f73760..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a-storagebookmarks210DAF62-135V889SZ0ORT.template.json +++ /dev/null @@ -1,354 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.21.1\",\"stackType\":\"custom\",\"metadata\":{}}", - "Resources": { - "bookmarksA4548304": { - "Type": "AWS::DynamoDB::Table", - "Properties": { - "AttributeDefinitions": [ - { - "AttributeName": "userId", - "AttributeType": "S" - }, - { - "AttributeName": "postId", - "AttributeType": "S" - } - ], - "GlobalSecondaryIndexes": [ - { - "IndexName": "byPost", - "KeySchema": [ - { - "AttributeName": "postId", - "KeyType": "HASH" - } - ], - "Projection": { - "ProjectionType": "ALL" - }, - "ProvisionedThroughput": { - "ReadCapacityUnits": 5, - "WriteCapacityUnits": 5 - } - } - ], - "KeySchema": [ - { - "AttributeName": "userId", - "KeyType": "HASH" - }, - { - "AttributeName": "postId", - "KeyType": "RANGE" - } - ], - "ProvisionedThroughput": { - "ReadCapacityUnits": 5, - "WriteCapacityUnits": 5 - }, - "StreamSpecification": { - "StreamViewType": "NEW_IMAGE" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain", - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storagebookmarks/bookmarks/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXGOwqEMBAA0LPYJ7MaLOztt1B7mWRGiJ8EnERZxLsvaPWeAVPXUBZ4ina06NVbuL4sialP6BaFp4z0C7hFsnANaFdW7RSe3KpjiXl3fKsQiWGWz2EMVA2UxSze6z2H5DeG7vUPAxTDOW4AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storagebookmarks/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a.description.txt deleted file mode 100644 index afc6ec23957..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.21.1","stackType":"root","metadata":{}} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a.outputs.json deleted file mode 100644 index 29a5ef39970..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a.outputs.json +++ /dev/null @@ -1,138 +0,0 @@ -[ - { - "OutputKey": "webClientId", - "OutputValue": "3mosah7bsr7412hqq9soj1j2pp" - }, - { - "OutputKey": "socialProviders", - "OutputValue": "" - }, - { - "OutputKey": "usernameAttributes", - "OutputValue": "[\"phone_number\"]" - }, - { - "OutputKey": "bucketName", - "OutputValue": "amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4" - }, - { - "OutputKey": "signupAttributes", - "OutputValue": "[\"email\",\"phone_number\"]" - }, - { - "OutputKey": "oauthClientId", - "OutputValue": "3mosah7bsr7412hqq9soj1j2pp" - }, - { - "OutputKey": "allowUnauthenticatedIdentities", - "OutputValue": "false" - }, - { - "OutputKey": "oauthCognitoDomain", - "OutputValue": "" - }, - { - "OutputKey": "oauthScope", - "OutputValue": "[\"profile\",\"phone\",\"email\",\"openid\",\"aws.cognito.signin.user.admin\"]" - }, - { - "OutputKey": "oauthRedirectSignOut", - "OutputValue": "" - }, - { - "OutputKey": "awsAppsyncAdditionalAuthenticationTypes", - "OutputValue": "AMAZON_COGNITO_USER_POOLS,AWS_IAM" - }, - { - "OutputKey": "mfaTypes", - "OutputValue": "[]" - }, - { - "OutputKey": "mfaConfiguration", - "OutputValue": "OFF" - }, - { - "OutputKey": "storageRegion", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "oauthResponseType", - "OutputValue": "code" - }, - { - "OutputKey": "awsAppsyncApiKey", - "OutputValue": "da2-fakeapikey00000000000000" - }, - { - "OutputKey": "awsAppsyncAuthenticationType", - "OutputValue": "API_KEY" - }, - { - "OutputKey": "oauthRedirectSignIn", - "OutputValue": "https://example.com" - }, - { - "OutputKey": "passwordPolicyMinLength", - "OutputValue": "8" - }, - { - "OutputKey": "awsAppsyncApiEndpoint", - "OutputValue": "https://auprb5ishbhltcshr2palt65ka.appsync-api.us-east-1.amazonaws.com/graphql" - }, - { - "OutputKey": "awsAppsyncApiId", - "OutputValue": "33zwnmmin5anviw7lh6x2wxanq" - }, - { - "OutputKey": "authRegion", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "buckets", - "OutputValue": "[\"{\\\"name\\\":\\\"discus-avatarsc39a5-gen2-main\\\",\\\"bucketName\\\":\\\"amplify-discussions-ge-discusavatarsc39a5gen2ma-tofeojsv2jx4\\\",\\\"storageRegion\\\":\\\"us-east-1\\\",\\\"paths\\\":{\\\"public/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]},\\\"protected/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]},\\\"private/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]}}}\"]" - }, - { - "OutputKey": "amplifyApiModelSchemaS3Uri", - "OutputValue": "s3://amplify-discussions-ge-amplifydataamplifycodege-jxzg53vmja75/model-schema.graphql" - }, - { - "OutputKey": "groups", - "OutputValue": "[]" - }, - { - "OutputKey": "definedFunctions", - "OutputValue": "[\"fetchuseractivity-gen2-main\",\"recorduseractivity-gen2-main\"]" - }, - { - "OutputKey": "passwordlessOptions", - "OutputValue": "" - }, - { - "OutputKey": "awsAppsyncRegion", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "deploymentType", - "OutputValue": "branch" - }, - { - "OutputKey": "passwordPolicyRequirements", - "OutputValue": "[]" - }, - { - "OutputKey": "region", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "userPoolId", - "OutputValue": "us-east-1_I3YejOBUa" - }, - { - "OutputKey": "identityPoolId", - "OutputValue": "us-east-1:d48cd035-0397-46c6-b39a-19514b421022" - }, - { - "OutputKey": "verificationMechanisms", - "OutputValue": "[\"email\"]" - } -] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a.parameters.json deleted file mode 100644 index 86b122cedb0..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a.parameters.json +++ /dev/null @@ -1,7 +0,0 @@ -[ - { - "ParameterKey": "BootstrapVersion", - "ParameterValue": "/cdk-bootstrap/hnb659fds/version", - "ResolvedValue": "29" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a.template.json deleted file mode 100644 index 23860e1f724..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-gen2main-branch-a27e51c30a.template.json +++ /dev/null @@ -1,1288 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.21.1\",\"stackType\":\"root\",\"metadata\":{}}", - "Metadata": { - "AWS::Amplify::Platform": { - "version": "1", - "stackOutputs": [ - "deploymentType", - "region" - ] - }, - "AWS::Amplify::Auth": { - "version": "1", - "stackOutputs": [ - "userPoolId", - "webClientId", - "identityPoolId", - "authRegion", - "allowUnauthenticatedIdentities", - "signupAttributes", - "usernameAttributes", - "verificationMechanisms", - "passwordPolicyMinLength", - "passwordPolicyRequirements", - "mfaConfiguration", - "mfaTypes", - "passwordlessOptions", - "socialProviders", - "oauthCognitoDomain", - "oauthScope", - "oauthRedirectSignIn", - "oauthRedirectSignOut", - "oauthResponseType", - "oauthClientId", - "groups" - ] - }, - "AWS::Amplify::GraphQL": { - "version": "1", - "stackOutputs": [ - "awsAppsyncApiId", - "awsAppsyncApiEndpoint", - "awsAppsyncAuthenticationType", - "awsAppsyncRegion", - "amplifyApiModelSchemaS3Uri", - "awsAppsyncApiKey", - "awsAppsyncAdditionalAuthenticationTypes" - ] - }, - "AWS::Amplify::Function": { - "version": "1", - "stackOutputs": [ - "definedFunctions" - ] - }, - "AWS::Amplify::Storage": { - "version": "1", - "stackOutputs": [ - "buckets", - "storageRegion", - "bucketName" - ] - } - }, - "Outputs": { - "deploymentType": { - "Value": "branch" - }, - "region": { - "Value": { - "Ref": "AWS::Region" - } - }, - "userPoolId": { - "Value": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthUserPool82221E95Ref" - ] - } - }, - "webClientId": { - "Value": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthUserPoolAppClientFFCC03B0Ref" - ] - } - }, - "identityPoolId": { - "Value": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref" - ] - } - }, - "authRegion": { - "Value": { - "Ref": "AWS::Region" - } - }, - "allowUnauthenticatedIdentities": { - "Value": "false" - }, - "signupAttributes": { - "Value": "[\"email\",\"phone_number\"]" - }, - "usernameAttributes": { - "Value": "[\"phone_number\"]" - }, - "verificationMechanisms": { - "Value": "[\"email\"]" - }, - "passwordPolicyMinLength": { - "Value": "8" - }, - "passwordPolicyRequirements": { - "Value": "[]" - }, - "mfaConfiguration": { - "Value": "OFF" - }, - "mfaTypes": { - "Value": "[]" - }, - "passwordlessOptions": { - "Value": "" - }, - "socialProviders": { - "Value": "" - }, - "oauthCognitoDomain": { - "Value": "" - }, - "oauthScope": { - "Value": "[\"profile\",\"phone\",\"email\",\"openid\",\"aws.cognito.signin.user.admin\"]" - }, - "oauthRedirectSignIn": { - "Value": "https://example.com" - }, - "oauthRedirectSignOut": { - "Value": "" - }, - "oauthResponseType": { - "Value": "code" - }, - "oauthClientId": { - "Value": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthUserPoolAppClientFFCC03B0Ref" - ] - } - }, - "groups": { - "Value": "[]" - }, - "awsAppsyncApiId": { - "Value": { - "Fn::GetAtt": [ - "data7552DF31", - "Outputs.amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21ApiId" - ] - } - }, - "awsAppsyncApiEndpoint": { - "Value": { - "Fn::GetAtt": [ - "data7552DF31", - "Outputs.amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPI5BB21C21GraphQLUrl" - ] - } - }, - "awsAppsyncAuthenticationType": { - "Value": "API_KEY" - }, - "awsAppsyncRegion": { - "Value": { - "Ref": "AWS::Region" - } - }, - "amplifyApiModelSchemaS3Uri": { - "Value": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Fn::Select": [ - 0, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "data7552DF31", - "Outputs.amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiBABCA4586DestinationBucketArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "/model-schema.graphql" - ] - ] - } - }, - "awsAppsyncApiKey": { - "Value": { - "Fn::GetAtt": [ - "data7552DF31", - "Outputs.amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataGraphQLAPIDefaultApiKey467DD7FFApiKey" - ] - } - }, - "awsAppsyncAdditionalAuthenticationTypes": { - "Value": "AMAZON_COGNITO_USER_POOLS,AWS_IAM" - }, - "definedFunctions": { - "Value": { - "Fn::Join": [ - "", - [ - "[\"", - { - "Fn::GetAtt": [ - "function1351588B", - "Outputs.amplifydiscussionsgen2mainbrancha27e51c30afunctionfetchuseractivitygen2mainlambda502480EDRef" - ] - }, - "\",\"", - { - "Fn::GetAtt": [ - "function1351588B", - "Outputs.amplifydiscussionsgen2mainbrancha27e51c30afunctionrecorduseractivitygen2mainlambdaE5320324Ref" - ] - }, - "\"]" - ] - ] - } - }, - "storageRegion": { - "Value": { - "Ref": "AWS::Region" - } - }, - "bucketName": { - "Value": { - "Fn::GetAtt": [ - "storage0EC3F24A", - "Outputs.amplifydiscussionsgen2mainbrancha27e51c30astoragediscusavatarsc39a5gen2mainBucket0721E25ERef" - ] - } - }, - "buckets": { - "Value": { - "Fn::Join": [ - "", - [ - "[\"{\\\"name\\\":\\\"discus-avatarsc39a5-gen2-main\\\",\\\"bucketName\\\":\\\"", - { - "Fn::GetAtt": [ - "storage0EC3F24A", - "Outputs.amplifydiscussionsgen2mainbrancha27e51c30astoragediscusavatarsc39a5gen2mainBucket0721E25ERef" - ] - }, - "\\\",\\\"storageRegion\\\":\\\"", - { - "Ref": "AWS::Region" - }, - "\\\",\\\"paths\\\":{\\\"public/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]},\\\"protected/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]},\\\"private/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]}}}\"]" - ] - ] - } - } - }, - "Resources": { - "AmplifyBranchLinkerCustomResourceLambdaServiceRole3DDCBC03": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/AmplifyBranchLinker/CustomResourceLambda/ServiceRole/Resource" - } - }, - "AmplifyBranchLinkerCustomResourceLambdaServiceRoleDefaultPolicy86099CA1": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "amplify:GetBranch", - "amplify:UpdateBranch" - ], - "Effect": "Allow", - "Resource": "arn:aws:amplify:*:*:apps/discussions/branches/gen2-main" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "AmplifyBranchLinkerCustomResourceLambdaServiceRoleDefaultPolicy86099CA1", - "Roles": [ - { - "Ref": "AmplifyBranchLinkerCustomResourceLambdaServiceRole3DDCBC03" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/AmplifyBranchLinker/CustomResourceLambda/ServiceRole/DefaultPolicy/Resource" - } - }, - "AmplifyBranchLinkerCustomResourceLambda582AC093": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "889af25ec144539aa0fa352adcac1ecdc237551e2d7fd49b6a87f2c064029c34.zip" - }, - "Handler": "index.handler", - "Role": { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceLambdaServiceRole3DDCBC03", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 10 - }, - "DependsOn": [ - "AmplifyBranchLinkerCustomResourceLambdaServiceRoleDefaultPolicy86099CA1", - "AmplifyBranchLinkerCustomResourceLambdaServiceRole3DDCBC03" - ], - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/AmplifyBranchLinker/CustomResourceLambda/Resource", - "aws:asset:path": "asset.889af25ec144539aa0fa352adcac1ecdc237551e2d7fd49b6a87f2c064029c34", - "aws:asset:is-bundled": true, - "aws:asset:property": "Code" - } - }, - "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRole92A035EB": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/AmplifyBranchLinker/CustomResourceProvider/framework-onEvent/ServiceRole/Resource" - } - }, - "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRoleDefaultPolicy38AAE412": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "lambda:InvokeFunction", - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceLambda582AC093", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceLambda582AC093", - "Arn" - ] - }, - ":*" - ] - ] - } - ] - }, - { - "Action": "lambda:GetFunction", - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceLambda582AC093", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRoleDefaultPolicy38AAE412", - "Roles": [ - { - "Ref": "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRole92A035EB" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/AmplifyBranchLinker/CustomResourceProvider/framework-onEvent/ServiceRole/DefaultPolicy/Resource" - } - }, - "AmplifyBranchLinkerCustomResourceProviderframeworkonEvent3B23F900": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "07a90cc3efdfc34da22208dcd9d211f06f5b0e01b21e778edc7c3966b1f61d57.zip" - }, - "Description": "AWS CDK resource provider framework - onEvent (amplify-discussions-gen2main-branch-a27e51c30a/AmplifyBranchLinker/CustomResourceProvider)", - "Environment": { - "Variables": { - "USER_ON_EVENT_FUNCTION_ARN": { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceLambda582AC093", - "Arn" - ] - } - } - }, - "Handler": "framework.onEvent", - "LoggingConfig": { - "ApplicationLogLevel": "FATAL", - "LogFormat": "JSON" - }, - "Role": { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRole92A035EB", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 900 - }, - "DependsOn": [ - "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRoleDefaultPolicy38AAE412", - "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRole92A035EB" - ], - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/AmplifyBranchLinker/CustomResourceProvider/framework-onEvent/Resource", - "aws:asset:path": "asset.07a90cc3efdfc34da22208dcd9d211f06f5b0e01b21e778edc7c3966b1f61d57", - "aws:asset:is-bundled": false, - "aws:asset:property": "Code" - } - }, - "AmplifyBranchLinkerCustomResource96E36FC1": { - "Type": "Custom::AmplifyBranchLinkerResource", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceProviderframeworkonEvent3B23F900", - "Arn" - ] - }, - "appId": "discussions", - "branchName": "gen2-main" - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/AmplifyBranchLinker/CustomResource/Default" - } - }, - "auth179371D7": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/daf4782e478bdbb27b14ab26abb3ca51fde0b4d74e9212d1043bc20ec3ac5304.json" - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/auth.NestedStack/auth.NestedStackResource", - "aws:asset:path": "amplifydiscussionsgen2mainbrancha27e51c30aauthD6CBADCF.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "data7552DF31": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthUserPool82221E95Ref": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthUserPool82221E95Ref" - ] - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef" - ] - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthunauthenticatedUserRole2C26C54ERef" - ] - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthIdentityPool08912074Ref" - ] - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/975bf6a4f97ff716b6749507d5a204e67ad45474b432cd75995292f4f65c9262.json" - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/data.NestedStack/data.NestedStackResource", - "aws:asset:path": "amplifydiscussionsgen2mainbrancha27e51c30adata4AF9D6B5.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "storage0EC3F24A": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetoamplifydiscussionsgen2mainbrancha27e51c30aauthNestedStackauthNestedStackResource71073350Outputsamplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifydiscussionsgen2mainbrancha27e51c30aauthamplifyAuthauthenticatedUserRoleF8A310BARef" - ] - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/6f22820c0563e73d1bfcf4720f745189c60ae2dac2d11e9bcfa01144267be7af.json" - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storage.NestedStack/storage.NestedStackResource", - "aws:asset:path": "amplifydiscussionsgen2mainbrancha27e51c30astorageB84219BD.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "function1351588B": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetoamplifydiscussionsgen2mainbrancha27e51c30astorageactivityNestedStackstorageactivityNestedStackResource59CA300COutputsamplifydiscussionsgen2mainbrancha27e51c30astorageactivity9EDFFE97Arn": { - "Fn::GetAtt": [ - "storageactivityA346F297", - "Outputs.amplifydiscussionsgen2mainbrancha27e51c30astorageactivity9EDFFE97Arn" - ] - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30astorageactivityNestedStackstorageactivityNestedStackResource59CA300COutputsamplifydiscussionsgen2mainbrancha27e51c30astorageactivity9EDFFE97StreamArn": { - "Fn::GetAtt": [ - "storageactivityA346F297", - "Outputs.amplifydiscussionsgen2mainbrancha27e51c30astorageactivity9EDFFE97StreamArn" - ] - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30astorageactivityNestedStackstorageactivityNestedStackResource59CA300COutputsamplifydiscussionsgen2mainbrancha27e51c30astorageactivity9EDFFE97Ref": { - "Fn::GetAtt": [ - "storageactivityA346F297", - "Outputs.amplifydiscussionsgen2mainbrancha27e51c30astorageactivity9EDFFE97Ref" - ] - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataNestedStackdataNestedStackResource907A4719Outputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataTopicNestedStackTopicNestedStackResourceBD3B6C61Outputsamplifyd2l28aset733CD677": { - "Fn::GetAtt": [ - "data7552DF31", - "Outputs.amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataTopicNestedStackTopicNestedStackResourceBD3B6C61Outputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataTopicTopicTable0F7B351ATableStreamArn" - ] - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataNestedStackdataNestedStackResource907A4719Outputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataPostNestedStackPostNestedStackResource3E8F8B99Outputsamplifyd2l28asetq99E749BF8": { - "Fn::GetAtt": [ - "data7552DF31", - "Outputs.amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataPostNestedStackPostNestedStackResource3E8F8B99Outputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataPostPostTable3FE3EB5DTableStreamArn" - ] - }, - "referencetoamplifydiscussionsgen2mainbrancha27e51c30adataNestedStackdataNestedStackResource907A4719Outputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataCommentNestedStackCommentNestedStackResource06709DCDOutputsamplifyd2l28483C8589": { - "Fn::GetAtt": [ - "data7552DF31", - "Outputs.amplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataCommentNestedStackCommentNestedStackResource06709DCDOutputsamplifydiscussionsgen2mainbrancha27e51c30adataamplifyDataCommentCommentTable4FC8AE39TableStreamArn" - ] - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/87e64a9e5b21a0af9a383e57c3ad1d013a6c707331cd88c36cd6ce17686b28c0.json" - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/function.NestedStack/function.NestedStackResource", - "aws:asset:path": "amplifydiscussionsgen2mainbrancha27e51c30afunction7E969D51.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "storageactivityA346F297": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/01043e56eedbce9a74251932d63eb813766d6a0ed9ed954db4b2f83a31d5eafe.json" - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storageactivity.NestedStack/storageactivity.NestedStackResource", - "aws:asset:path": "amplifydiscussionsgen2mainbrancha27e51c30astorageactivity2888AFDE.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "storagebookmarks210DAF62": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "discussions" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/9cbbbb078a8e121c1410532826d4a8e3fb61f187472031710c8ff6faf6470328.json" - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/storagebookmarks.NestedStack/storagebookmarks.NestedStackResource", - "aws:asset:path": "amplifydiscussionsgen2mainbrancha27e51c30astoragebookmarksB9393E78.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/02PzWrDQAyEnyV3WU2dHHJtDD22wXkAo6yVIP/slpU2oRi/e/C6LT19I4YZNCWW+z1uN/TQwrV9McgFp7OR66G6+s9kX8mAHtpMA42XlhofWu4UPzLek3cmwYPQiFMdBl5SmacwiPtezlXNoLuGVNkU3xaA7vCYXM92JGVY63Gqrv6v9VfMM+TI2egm/gYuqYWxiawhRceKpxju0nKEKjv1j5Gf+afzrhmWCdjpy70s8fWA202nIkVM3mRkrFc+AXlCmgwZAQAA" - }, - "Metadata": { - "aws:cdk:path": "amplify-discussions-gen2main-branch-a27e51c30a/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "BootstrapVersion": { - "Type": "AWS::SSM::Parameter::Value", - "Default": "/cdk-bootstrap/hnb659fds/version", - "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]" - } - }, - "Rules": { - "CheckBootstrapVersion": { - "Assertions": [ - { - "Assert": { - "Fn::Not": [ - { - "Fn::Contains": [ - [ - "1", - "2", - "3", - "4", - "5" - ], - { - "Ref": "BootstrapVersion" - } - ] - } - ] - }, - "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI." - } - ] - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-Comment-1R56B3L2EK68O.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-Comment-1R56B3L2EK68O.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-Comment-1R56B3L2EK68O.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-Comment-1R56B3L2EK68O.outputs.json deleted file mode 100644 index 6923c7856d4..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-Comment-1R56B3L2EK68O.outputs.json +++ /dev/null @@ -1,28 +0,0 @@ -[ - { - "OutputKey": "GetAttCommentDataSourceName", - "OutputValue": "CommentTable", - "Description": "Your model DataSource name.", - "ExportName": "u3jn2qbupzbyhc3h53673wdvim:GetAtt:CommentDataSource:Name" - }, - { - "OutputKey": "GetAttCommentTableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Comment-u3jn2qbupzbyhc3h53673wdvim-main/stream/2026-03-20T21:21:05.630", - "Description": "Your DynamoDB table StreamArn.", - "ExportName": "u3jn2qbupzbyhc3h53673wdvim:GetAtt:CommentTable:StreamArn" - }, - { - "OutputKey": "transformerrootstackCommentCommentDataSourceA0E54655Name", - "OutputValue": "CommentTable" - }, - { - "OutputKey": "transformerrootstackCommentCommentTable5427FDE2Ref", - "OutputValue": "Comment-u3jn2qbupzbyhc3h53673wdvim-main" - }, - { - "OutputKey": "GetAttCommentTableName", - "OutputValue": "Comment-u3jn2qbupzbyhc3h53673wdvim-main", - "Description": "Your DynamoDB table name.", - "ExportName": "u3jn2qbupzbyhc3h53673wdvim:GetAtt:CommentTable:Name" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-Comment-1R56B3L2EK68O.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-Comment-1R56B3L2EK68O.parameters.json deleted file mode 100644 index 562b4a2a1f9..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-Comment-1R56B3L2EK68O.parameters.json +++ /dev/null @@ -1,66 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptionOnCreateTopicDataResolverFnSubscriptionOnCreateTopicDataResolverFnAppSyncFunctionA25E598AFunctionId", - "ParameterValue": "stocrj6wmnfwdc4rdkdv7z5t2u" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", - "ParameterValue": "amplify-appsync-files/db92bad357b2590353e82db2f2ec7d0fc9cfd30d" - }, - { - "ParameterKey": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationupdateTopicinit0FunctionMutationupdateTopicinit0FunctionAppSyncFunction16C763FFFunctionId", - "ParameterValue": "e4yi7ioceze5riv7y2vaozdoqu" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", - "ParameterValue": "u3jn2qbupzbyhc3h53673wdvim" - }, - { - "ParameterKey": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationcreateTopicauth0FunctionMutationcreateTopicauth0FunctionAppSyncFunction2E1A1C86FunctionId", - "ParameterValue": "gsc7uhamufgixefq3v5ucyfwua" - }, - { - "ParameterKey": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId", - "ParameterValue": "gb77pqdsqvfxlf43gz2ay4ll7a" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "false" - }, - { - "ParameterKey": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationcreateTopicinit0FunctionMutationcreateTopicinit0FunctionAppSyncFunction3ECD028CFunctionId", - "ParameterValue": "27xllzlwpve67blxdyydbpfvzm" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicauth0FunctionQuerygetTopicauth0FunctionAppSyncFunctionEC4A6DABFunctionId", - "ParameterValue": "xpl3pgeq4fhwji3vgpzje5i7ky" - }, - { - "ParameterKey": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptiononCreateTopicauth0FunctionSubscriptiononCreateTopicauth0FunctionAppSyncFunctionA56CE4F0FunctionId", - "ParameterValue": "k6fcuyzzyja75po4s3jdi2odwe" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", - "ParameterValue": "amplify-discussions-main-c39a5-deployment" - }, - { - "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", - "ParameterValue": "main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-Comment-1R56B3L2EK68O.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-Comment-1R56B3L2EK68O.template.json deleted file mode 100644 index e8e12e1a51b..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-Comment-1R56B3L2EK68O.template.json +++ /dev/null @@ -1,1195 +0,0 @@ -{ - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "referencetotransformerrootstackenv10C5A902Ref": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Type": "String" - }, - "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicauth0FunctionQuerygetTopicauth0FunctionAppSyncFunctionEC4A6DABFunctionId": { - "Type": "String" - }, - "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId": { - "Type": "String" - }, - "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationcreateTopicinit0FunctionMutationcreateTopicinit0FunctionAppSyncFunction3ECD028CFunctionId": { - "Type": "String" - }, - "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationcreateTopicauth0FunctionMutationcreateTopicauth0FunctionAppSyncFunction2E1A1C86FunctionId": { - "Type": "String" - }, - "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationupdateTopicinit0FunctionMutationupdateTopicinit0FunctionAppSyncFunction16C763FFFunctionId": { - "Type": "String" - }, - "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptiononCreateTopicauth0FunctionSubscriptiononCreateTopicauth0FunctionAppSyncFunctionA56CE4F0FunctionId": { - "Type": "String" - }, - "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptionOnCreateTopicDataResolverFnSubscriptionOnCreateTopicDataResolverFnAppSyncFunctionA25E598AFunctionId": { - "Type": "String" - } - }, - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - }, - "NONE" - ] - } - ] - }, - "ShouldUseServerSideEncryption": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "true" - ] - }, - "ShouldUsePayPerRequestBilling": { - "Fn::Equals": [ - { - "Ref": "DynamoDBBillingMode" - }, - "PAY_PER_REQUEST" - ] - }, - "ShouldUsePointInTimeRecovery": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "true" - ] - } - }, - "Resources": { - "CommentTable": { - "Type": "AWS::DynamoDB::Table", - "Properties": { - "AttributeDefinitions": [ - { - "AttributeName": "id", - "AttributeType": "S" - }, - { - "AttributeName": "postCommentsId", - "AttributeType": "S" - } - ], - "BillingMode": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - "PAY_PER_REQUEST", - { - "Ref": "AWS::NoValue" - } - ] - }, - "GlobalSecondaryIndexes": [ - { - "IndexName": "gsi-Post.comments", - "KeySchema": [ - { - "AttributeName": "postCommentsId", - "KeyType": "HASH" - } - ], - "Projection": { - "ProjectionType": "ALL" - }, - "ProvisionedThroughput": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - { - "Ref": "AWS::NoValue" - }, - { - "ReadCapacityUnits": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "WriteCapacityUnits": { - "Ref": "DynamoDBModelTableWriteIOPS" - } - } - ] - } - } - ], - "KeySchema": [ - { - "AttributeName": "id", - "KeyType": "HASH" - } - ], - "PointInTimeRecoverySpecification": { - "Fn::If": [ - "ShouldUsePointInTimeRecovery", - { - "PointInTimeRecoveryEnabled": true - }, - { - "Ref": "AWS::NoValue" - } - ] - }, - "ProvisionedThroughput": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - { - "Ref": "AWS::NoValue" - }, - { - "ReadCapacityUnits": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "WriteCapacityUnits": { - "Ref": "DynamoDBModelTableWriteIOPS" - } - } - ] - }, - "SSESpecification": { - "SSEEnabled": { - "Fn::If": [ - "ShouldUseServerSideEncryption", - true, - false - ] - } - }, - "StreamSpecification": { - "StreamViewType": "NEW_AND_OLD_IMAGES" - }, - "TableName": { - "Fn::Join": [ - "", - [ - "Comment-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete" - }, - "CommentIAMRoleD5EC5F51": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:DeleteItem", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:Query", - "dynamodb:UpdateItem", - "dynamodb:ConditionCheckItem", - "dynamodb:DescribeTable", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", - { - "tablename": { - "Fn::Join": [ - "", - [ - "Comment-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - ] - }, - { - "Fn::Sub": [ - "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", - { - "tablename": { - "Fn::Join": [ - "", - [ - "Comment-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "DynamoDBAccess" - } - ], - "RoleName": { - "Fn::Join": [ - "", - [ - "CommentIAMRole20388d-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - }, - "CommentIAMRoleDefaultPolicyA8D6F6B5": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator", - "dynamodb:Query", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:ConditionCheckItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:UpdateItem", - "dynamodb:DeleteItem", - "dynamodb:DescribeTable" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "CommentTable", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "CommentTable", - "Arn" - ] - }, - "/index/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "CommentIAMRoleDefaultPolicyA8D6F6B5", - "Roles": [ - { - "Ref": "CommentIAMRoleD5EC5F51" - } - ] - } - }, - "CommentDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DynamoDBConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "TableName": { - "Ref": "CommentTable" - } - }, - "Name": "CommentTable", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "CommentIAMRoleD5EC5F51", - "Arn" - ] - }, - "Type": "AMAZON_DYNAMODB" - }, - "DependsOn": [ - "CommentIAMRoleD5EC5F51" - ] - }, - "QueryGetCommentDataResolverFnQueryGetCommentDataResolverFnAppSyncFunction8473E2B0": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "CommentDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryGetCommentDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getComment.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getComment.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "CommentDataSource" - ] - }, - "GetCommentResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "getComment", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicauth0FunctionQuerygetTopicauth0FunctionAppSyncFunctionEC4A6DABFunctionId" - }, - { - "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId" - }, - { - "Fn::GetAtt": [ - "QueryGetCommentDataResolverFnQueryGetCommentDataResolverFnAppSyncFunction8473E2B0", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "CommentTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:d588cc58-4459-4b1b-ac91-307079a54464\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - } - }, - "QueryListCommentsDataResolverFnQueryListCommentsDataResolverFnAppSyncFunction474D4A91": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "CommentDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryListCommentsDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.listComments.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.listComments.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "CommentDataSource" - ] - }, - "ListCommentResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "listComments", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicauth0FunctionQuerygetTopicauth0FunctionAppSyncFunctionEC4A6DABFunctionId" - }, - { - "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId" - }, - { - "Fn::GetAtt": [ - "QueryListCommentsDataResolverFnQueryListCommentsDataResolverFnAppSyncFunction474D4A91", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listComments\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "CommentTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:d588cc58-4459-4b1b-ac91-307079a54464\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - } - }, - "MutationCreateCommentDataResolverFnMutationCreateCommentDataResolverFnAppSyncFunctionD019FFE0": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "CommentDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationCreateCommentDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createComment.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createComment.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "CommentDataSource" - ] - }, - "CreateCommentResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "createComment", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationcreateTopicinit0FunctionMutationcreateTopicinit0FunctionAppSyncFunction3ECD028CFunctionId" - }, - { - "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationcreateTopicauth0FunctionMutationcreateTopicauth0FunctionAppSyncFunction2E1A1C86FunctionId" - }, - { - "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId" - }, - { - "Fn::GetAtt": [ - "MutationCreateCommentDataResolverFnMutationCreateCommentDataResolverFnAppSyncFunctionD019FFE0", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "CommentTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:d588cc58-4459-4b1b-ac91-307079a54464\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "MutationupdateCommentauth0FunctionMutationupdateCommentauth0FunctionAppSyncFunction4E4C7C30": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "CommentDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateCommentauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateComment.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateComment.auth.1.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "CommentDataSource" - ] - }, - "MutationUpdateCommentDataResolverFnMutationUpdateCommentDataResolverFnAppSyncFunctionB47372B5": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "CommentDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationUpdateCommentDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateComment.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateComment.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "CommentDataSource" - ] - }, - "UpdateCommentResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "updateComment", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationupdateTopicinit0FunctionMutationupdateTopicinit0FunctionAppSyncFunction16C763FFFunctionId" - }, - { - "Fn::GetAtt": [ - "MutationupdateCommentauth0FunctionMutationupdateCommentauth0FunctionAppSyncFunction4E4C7C30", - "FunctionId" - ] - }, - { - "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId" - }, - { - "Fn::GetAtt": [ - "MutationUpdateCommentDataResolverFnMutationUpdateCommentDataResolverFnAppSyncFunctionB47372B5", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "CommentTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:d588cc58-4459-4b1b-ac91-307079a54464\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "MutationdeleteCommentauth0FunctionMutationdeleteCommentauth0FunctionAppSyncFunction268B298A": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "CommentDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeleteCommentauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteComment.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteComment.auth.1.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "CommentDataSource" - ] - }, - "MutationDeleteCommentDataResolverFnMutationDeleteCommentDataResolverFnAppSyncFunctionD661C8CB": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "CommentDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationDeleteCommentDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteComment.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteComment.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "CommentDataSource" - ] - }, - "DeleteCommentResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "deleteComment", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationdeleteCommentauth0FunctionMutationdeleteCommentauth0FunctionAppSyncFunction268B298A", - "FunctionId" - ] - }, - { - "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId" - }, - { - "Fn::GetAtt": [ - "MutationDeleteCommentDataResolverFnMutationDeleteCommentDataResolverFnAppSyncFunctionD661C8CB", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "CommentTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:d588cc58-4459-4b1b-ac91-307079a54464\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "SubscriptiononCreateCommentResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onCreateComment", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptiononCreateTopicauth0FunctionSubscriptiononCreateTopicauth0FunctionAppSyncFunctionA56CE4F0FunctionId" - }, - { - "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId" - }, - { - "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptionOnCreateTopicDataResolverFnSubscriptionOnCreateTopicDataResolverFnAppSyncFunctionA25E598AFunctionId" - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:d588cc58-4459-4b1b-ac91-307079a54464\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - }, - "SubscriptiononUpdateCommentResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onUpdateComment", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptiononCreateTopicauth0FunctionSubscriptiononCreateTopicauth0FunctionAppSyncFunctionA56CE4F0FunctionId" - }, - { - "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId" - }, - { - "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptionOnCreateTopicDataResolverFnSubscriptionOnCreateTopicDataResolverFnAppSyncFunctionA25E598AFunctionId" - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:d588cc58-4459-4b1b-ac91-307079a54464\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - }, - "SubscriptiononDeleteCommentResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onDeleteComment", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptiononCreateTopicauth0FunctionSubscriptiononCreateTopicauth0FunctionAppSyncFunctionA56CE4F0FunctionId" - }, - { - "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId" - }, - { - "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptionOnCreateTopicDataResolverFnSubscriptionOnCreateTopicDataResolverFnAppSyncFunctionA25E598AFunctionId" - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:d588cc58-4459-4b1b-ac91-307079a54464\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - } - }, - "Outputs": { - "GetAttCommentTableStreamArn": { - "Description": "Your DynamoDB table StreamArn.", - "Value": { - "Fn::GetAtt": [ - "CommentTable", - "StreamArn" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:CommentTable:StreamArn" - ] - ] - } - } - }, - "GetAttCommentTableName": { - "Description": "Your DynamoDB table name.", - "Value": { - "Ref": "CommentTable" - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:CommentTable:Name" - ] - ] - } - } - }, - "GetAttCommentDataSourceName": { - "Description": "Your model DataSource name.", - "Value": { - "Fn::GetAtt": [ - "CommentDataSource", - "Name" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:CommentDataSource:Name" - ] - ] - } - } - }, - "transformerrootstackCommentCommentDataSourceA0E54655Name": { - "Value": { - "Fn::GetAtt": [ - "CommentDataSource", - "Name" - ] - } - }, - "transformerrootstackCommentCommentTable5427FDE2Ref": { - "Value": { - "Ref": "CommentTable" - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-ConnectionStack-1D7MI9B5PWZI9.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-ConnectionStack-1D7MI9B5PWZI9.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-ConnectionStack-1D7MI9B5PWZI9.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-ConnectionStack-1D7MI9B5PWZI9.outputs.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-ConnectionStack-1D7MI9B5PWZI9.outputs.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-ConnectionStack-1D7MI9B5PWZI9.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-ConnectionStack-1D7MI9B5PWZI9.parameters.json deleted file mode 100644 index f4d0c5e7dbd..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-ConnectionStack-1D7MI9B5PWZI9.parameters.json +++ /dev/null @@ -1,42 +0,0 @@ -[ - { - "ParameterKey": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicTopicTableFD91FB92Ref", - "ParameterValue": "Topic-u3jn2qbupzbyhc3h53673wdvim-main" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", - "ParameterValue": "amplify-appsync-files/db92bad357b2590353e82db2f2ec7d0fc9cfd30d" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "referencetotransformerrootstackPostNestedStackPostNestedStackResource45FCAC5EOutputstransformerrootstackPostPostTable34CAE87BRef", - "ParameterValue": "Post-u3jn2qbupzbyhc3h53673wdvim-main" - }, - { - "ParameterKey": "referencetotransformerrootstackCommentNestedStackCommentNestedStackResource199283FBOutputstransformerrootstackCommentCommentTable5427FDE2Ref", - "ParameterValue": "Comment-u3jn2qbupzbyhc3h53673wdvim-main" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", - "ParameterValue": "u3jn2qbupzbyhc3h53673wdvim" - }, - { - "ParameterKey": "referencetotransformerrootstackCommentNestedStackCommentNestedStackResource199283FBOutputstransformerrootstackCommentCommentDataSourceA0E54655Name", - "ParameterValue": "CommentTable" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", - "ParameterValue": "amplify-discussions-main-c39a5-deployment" - }, - { - "ParameterKey": "referencetotransformerrootstackPostNestedStackPostNestedStackResource45FCAC5EOutputstransformerrootstackPostPostDataSource6998E105Name", - "ParameterValue": "PostTable" - }, - { - "ParameterKey": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicTopicDataSource63D2F34BName", - "ParameterValue": "TopicTable" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-ConnectionStack-1D7MI9B5PWZI9.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-ConnectionStack-1D7MI9B5PWZI9.template.json deleted file mode 100644 index 6ee1390d259..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-ConnectionStack-1D7MI9B5PWZI9.template.json +++ /dev/null @@ -1,422 +0,0 @@ -{ - "Resources": { - "Topicpostsauth0FunctionTopicpostsauth0FunctionAppSyncFunctionF8CB58E2": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "Topicpostsauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Topic.posts.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "TopicPostsDataResolverFnTopicPostsDataResolverFnAppSyncFunctionBB79629F": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackPostNestedStackPostNestedStackResource45FCAC5EOutputstransformerrootstackPostPostDataSource6998E105Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "TopicPostsDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Topic.posts.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Topic.posts.res.vtl" - ] - ] - } - } - }, - "TopicpostsResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "posts", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "Topicpostsauth0FunctionTopicpostsauth0FunctionAppSyncFunctionF8CB58E2", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "TopicPostsDataResolverFnTopicPostsDataResolverFnAppSyncFunctionBB79629F", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Topic\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"posts\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "referencetotransformerrootstackPostNestedStackPostNestedStackResource45FCAC5EOutputstransformerrootstackPostPostTable34CAE87BRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:d588cc58-4459-4b1b-ac91-307079a54464\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Topic" - } - }, - "PostCommentsDataResolverFnPostCommentsDataResolverFnAppSyncFunction87EBA9A8": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackCommentNestedStackCommentNestedStackResource199283FBOutputstransformerrootstackCommentCommentDataSourceA0E54655Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "PostCommentsDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Post.comments.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Post.comments.res.vtl" - ] - ] - } - } - }, - "PostcommentsResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "comments", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "Topicpostsauth0FunctionTopicpostsauth0FunctionAppSyncFunctionF8CB58E2", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "PostCommentsDataResolverFnPostCommentsDataResolverFnAppSyncFunction87EBA9A8", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Post\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"comments\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "referencetotransformerrootstackCommentNestedStackCommentNestedStackResource199283FBOutputstransformerrootstackCommentCommentTable5427FDE2Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:d588cc58-4459-4b1b-ac91-307079a54464\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Post" - } - }, - "PostTopicDataResolverFnPostTopicDataResolverFnAppSyncFunctionEF6EA503": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicTopicDataSource63D2F34BName" - }, - "FunctionVersion": "2018-05-29", - "Name": "PostTopicDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Post.topic.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Post.topic.res.vtl" - ] - ] - } - } - }, - "PosttopicResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "topic", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "Topicpostsauth0FunctionTopicpostsauth0FunctionAppSyncFunctionF8CB58E2", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "PostTopicDataResolverFnPostTopicDataResolverFnAppSyncFunctionEF6EA503", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Post\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"topic\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicTopicTableFD91FB92Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:d588cc58-4459-4b1b-ac91-307079a54464\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Post" - } - }, - "CommentPostDataResolverFnCommentPostDataResolverFnAppSyncFunction20ABACCE": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackPostNestedStackPostNestedStackResource45FCAC5EOutputstransformerrootstackPostPostDataSource6998E105Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "CommentPostDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Comment.post.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Comment.post.res.vtl" - ] - ] - } - } - }, - "CommentpostResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "post", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "Topicpostsauth0FunctionTopicpostsauth0FunctionAppSyncFunctionF8CB58E2", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "CommentPostDataResolverFnCommentPostDataResolverFnAppSyncFunction20ABACCE", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Comment\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"post\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "referencetotransformerrootstackPostNestedStackPostNestedStackResource45FCAC5EOutputstransformerrootstackPostPostTable34CAE87BRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:d588cc58-4459-4b1b-ac91-307079a54464\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Comment" - } - } - }, - "Parameters": { - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Type": "String" - }, - "referencetotransformerrootstackPostNestedStackPostNestedStackResource45FCAC5EOutputstransformerrootstackPostPostDataSource6998E105Name": { - "Type": "String" - }, - "referencetotransformerrootstackPostNestedStackPostNestedStackResource45FCAC5EOutputstransformerrootstackPostPostTable34CAE87BRef": { - "Type": "String" - }, - "referencetotransformerrootstackCommentNestedStackCommentNestedStackResource199283FBOutputstransformerrootstackCommentCommentDataSourceA0E54655Name": { - "Type": "String" - }, - "referencetotransformerrootstackCommentNestedStackCommentNestedStackResource199283FBOutputstransformerrootstackCommentCommentTable5427FDE2Ref": { - "Type": "String" - }, - "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicTopicDataSource63D2F34BName": { - "Type": "String" - }, - "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicTopicTableFD91FB92Ref": { - "Type": "String" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-CustomResourcesjson-2UYKNHZR1DQ9.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-CustomResourcesjson-2UYKNHZR1DQ9.description.txt deleted file mode 100644 index 293dec5639e..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-CustomResourcesjson-2UYKNHZR1DQ9.description.txt +++ /dev/null @@ -1 +0,0 @@ -An auto-generated nested stack. \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-CustomResourcesjson-2UYKNHZR1DQ9.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-CustomResourcesjson-2UYKNHZR1DQ9.outputs.json deleted file mode 100644 index 5e9753d822a..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-CustomResourcesjson-2UYKNHZR1DQ9.outputs.json +++ /dev/null @@ -1,7 +0,0 @@ -[ - { - "OutputKey": "EmptyOutput", - "OutputValue": "", - "Description": "An empty output. You may delete this if you have at least one resource above." - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-CustomResourcesjson-2UYKNHZR1DQ9.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-CustomResourcesjson-2UYKNHZR1DQ9.parameters.json deleted file mode 100644 index 3e97829645f..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-CustomResourcesjson-2UYKNHZR1DQ9.parameters.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "ParameterKey": "S3DeploymentBucket", - "ParameterValue": "amplify-discussions-main-c39a5-deployment" - }, - { - "ParameterKey": "AppSyncApiId", - "ParameterValue": "u3jn2qbupzbyhc3h53673wdvim" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "S3DeploymentRootKey", - "ParameterValue": "amplify-appsync-files/db92bad357b2590353e82db2f2ec7d0fc9cfd30d" - }, - { - "ParameterKey": "AppSyncApiName", - "ParameterValue": "discussions" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-CustomResourcesjson-2UYKNHZR1DQ9.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-CustomResourcesjson-2UYKNHZR1DQ9.template.json deleted file mode 100644 index 016991278d0..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-CustomResourcesjson-2UYKNHZR1DQ9.template.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "An auto-generated nested stack.", - "Metadata": {}, - "Parameters": { - "AppSyncApiId": { - "Type": "String", - "Description": "The id of the AppSync API associated with this project." - }, - "AppSyncApiName": { - "Type": "String", - "Description": "The name of the AppSync API", - "Default": "AppSyncSimpleTransform" - }, - "env": { - "Type": "String", - "Description": "The environment name. e.g. Dev, Test, or Production", - "Default": "NONE" - }, - "S3DeploymentBucket": { - "Type": "String", - "Description": "The S3 bucket containing all deployment assets for the project." - }, - "S3DeploymentRootKey": { - "Type": "String", - "Description": "An S3 key relative to the S3DeploymentBucket that points to the root\nof the deployment directory." - } - }, - "Resources": { - "EmptyResource": { - "Type": "Custom::EmptyResource", - "Condition": "AlwaysFalse" - } - }, - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - ] - }, - "AlwaysFalse": { - "Fn::Equals": [ - "true", - "false" - ] - } - }, - "Outputs": { - "EmptyOutput": { - "Description": "An empty output. You may delete this if you have at least one resource above.", - "Value": "" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-FunctionDirectiveStack-XXYDFRMQMROV.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-FunctionDirectiveStack-XXYDFRMQMROV.description.txt deleted file mode 100644 index 87d574fa42f..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-FunctionDirectiveStack-XXYDFRMQMROV.description.txt +++ /dev/null @@ -1 +0,0 @@ -An auto-generated nested stack for the @function directive. \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-FunctionDirectiveStack-XXYDFRMQMROV.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-FunctionDirectiveStack-XXYDFRMQMROV.outputs.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-FunctionDirectiveStack-XXYDFRMQMROV.outputs.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-FunctionDirectiveStack-XXYDFRMQMROV.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-FunctionDirectiveStack-XXYDFRMQMROV.parameters.json deleted file mode 100644 index c43d6f9a38b..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-FunctionDirectiveStack-XXYDFRMQMROV.parameters.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", - "ParameterValue": "amplify-appsync-files/db92bad357b2590353e82db2f2ec7d0fc9cfd30d" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", - "ParameterValue": "u3jn2qbupzbyhc3h53673wdvim" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", - "ParameterValue": "amplify-discussions-main-c39a5-deployment" - }, - { - "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", - "ParameterValue": "main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-FunctionDirectiveStack-XXYDFRMQMROV.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-FunctionDirectiveStack-XXYDFRMQMROV.template.json deleted file mode 100644 index 2893dd20e86..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-FunctionDirectiveStack-XXYDFRMQMROV.template.json +++ /dev/null @@ -1,281 +0,0 @@ -{ - "Description": "An auto-generated nested stack for the @function directive.", - "AWSTemplateFormatVersion": "2010-09-09", - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - }, - "NONE" - ] - } - ] - } - }, - "Resources": { - "FetchuseractivityLambdaDataSourceServiceRole6102CA71": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - } - } - }, - "FetchuseractivityLambdaDataSourceServiceRoleDefaultPolicy91915AF7": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "lambda:InvokeFunction", - "Effect": "Allow", - "Resource": [ - { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchuseractivity-${env}", - { - "env": { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - } - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchuseractivity" - } - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchuseractivity-${env}", - { - "env": { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - } - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchuseractivity" - } - ] - }, - ":*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "FetchuseractivityLambdaDataSourceServiceRoleDefaultPolicy91915AF7", - "Roles": [ - { - "Ref": "FetchuseractivityLambdaDataSourceServiceRole6102CA71" - } - ] - } - }, - "FetchuseractivityLambdaDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "LambdaConfig": { - "LambdaFunctionArn": { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchuseractivity-${env}", - { - "env": { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - } - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchuseractivity" - } - ] - } - }, - "Name": "FetchuseractivityLambdaDataSource", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "FetchuseractivityLambdaDataSourceServiceRole6102CA71", - "Arn" - ] - }, - "Type": "AWS_LAMBDA" - } - }, - "InvokeFetchuseractivityLambdaDataSourceInvokeFetchuseractivityLambdaDataSourceAppSyncFunction05F09D4C": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "FetchuseractivityLambdaDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "InvokeFetchuseractivityLambdaDataSource", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/InvokeFetchuseractivityLambdaDataSource.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/InvokeFetchuseractivityLambdaDataSource.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "FetchuseractivityLambdaDataSource" - ] - }, - "QueryfetchUserActivityResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "fetchUserActivity", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QueryFetchUserActivityAuthFNQueryFetchUserActivityAuthFNAppSyncFunctionC061F612", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "InvokeFetchuseractivityLambdaDataSourceInvokeFetchuseractivityLambdaDataSourceAppSyncFunction05F09D4C", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"fetchUserActivity\"))\n{}\n## [End] Stash resolver specific context.. **", - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.fetchUserActivity.res.vtl" - ] - ] - }, - "TypeName": "Query" - } - }, - "QueryFetchUserActivityAuthFNQueryFetchUserActivityAuthFNAppSyncFunctionC061F612": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryFetchUserActivityAuthFN", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.fetchUserActivity.auth.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - } - }, - "Parameters": { - "referencetotransformerrootstackenv10C5A902Ref": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Type": "String" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-Post-1M7ZECDZE6HW1.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-Post-1M7ZECDZE6HW1.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-Post-1M7ZECDZE6HW1.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-Post-1M7ZECDZE6HW1.outputs.json deleted file mode 100644 index b0508190c7e..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-Post-1M7ZECDZE6HW1.outputs.json +++ /dev/null @@ -1,28 +0,0 @@ -[ - { - "OutputKey": "GetAttPostDataSourceName", - "OutputValue": "PostTable", - "Description": "Your model DataSource name.", - "ExportName": "u3jn2qbupzbyhc3h53673wdvim:GetAtt:PostDataSource:Name" - }, - { - "OutputKey": "GetAttPostTableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Post-u3jn2qbupzbyhc3h53673wdvim-main/stream/2026-03-20T21:21:05.591", - "Description": "Your DynamoDB table StreamArn.", - "ExportName": "u3jn2qbupzbyhc3h53673wdvim:GetAtt:PostTable:StreamArn" - }, - { - "OutputKey": "transformerrootstackPostPostDataSource6998E105Name", - "OutputValue": "PostTable" - }, - { - "OutputKey": "GetAttPostTableName", - "OutputValue": "Post-u3jn2qbupzbyhc3h53673wdvim-main", - "Description": "Your DynamoDB table name.", - "ExportName": "u3jn2qbupzbyhc3h53673wdvim:GetAtt:PostTable:Name" - }, - { - "OutputKey": "transformerrootstackPostPostTable34CAE87BRef", - "OutputValue": "Post-u3jn2qbupzbyhc3h53673wdvim-main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-Post-1M7ZECDZE6HW1.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-Post-1M7ZECDZE6HW1.parameters.json deleted file mode 100644 index 562b4a2a1f9..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-Post-1M7ZECDZE6HW1.parameters.json +++ /dev/null @@ -1,66 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptionOnCreateTopicDataResolverFnSubscriptionOnCreateTopicDataResolverFnAppSyncFunctionA25E598AFunctionId", - "ParameterValue": "stocrj6wmnfwdc4rdkdv7z5t2u" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", - "ParameterValue": "amplify-appsync-files/db92bad357b2590353e82db2f2ec7d0fc9cfd30d" - }, - { - "ParameterKey": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationupdateTopicinit0FunctionMutationupdateTopicinit0FunctionAppSyncFunction16C763FFFunctionId", - "ParameterValue": "e4yi7ioceze5riv7y2vaozdoqu" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", - "ParameterValue": "u3jn2qbupzbyhc3h53673wdvim" - }, - { - "ParameterKey": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationcreateTopicauth0FunctionMutationcreateTopicauth0FunctionAppSyncFunction2E1A1C86FunctionId", - "ParameterValue": "gsc7uhamufgixefq3v5ucyfwua" - }, - { - "ParameterKey": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId", - "ParameterValue": "gb77pqdsqvfxlf43gz2ay4ll7a" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "false" - }, - { - "ParameterKey": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationcreateTopicinit0FunctionMutationcreateTopicinit0FunctionAppSyncFunction3ECD028CFunctionId", - "ParameterValue": "27xllzlwpve67blxdyydbpfvzm" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicauth0FunctionQuerygetTopicauth0FunctionAppSyncFunctionEC4A6DABFunctionId", - "ParameterValue": "xpl3pgeq4fhwji3vgpzje5i7ky" - }, - { - "ParameterKey": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptiononCreateTopicauth0FunctionSubscriptiononCreateTopicauth0FunctionAppSyncFunctionA56CE4F0FunctionId", - "ParameterValue": "k6fcuyzzyja75po4s3jdi2odwe" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", - "ParameterValue": "amplify-discussions-main-c39a5-deployment" - }, - { - "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", - "ParameterValue": "main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-Post-1M7ZECDZE6HW1.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-Post-1M7ZECDZE6HW1.template.json deleted file mode 100644 index d2b9164124f..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-Post-1M7ZECDZE6HW1.template.json +++ /dev/null @@ -1,1195 +0,0 @@ -{ - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "referencetotransformerrootstackenv10C5A902Ref": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Type": "String" - }, - "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicauth0FunctionQuerygetTopicauth0FunctionAppSyncFunctionEC4A6DABFunctionId": { - "Type": "String" - }, - "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId": { - "Type": "String" - }, - "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationcreateTopicinit0FunctionMutationcreateTopicinit0FunctionAppSyncFunction3ECD028CFunctionId": { - "Type": "String" - }, - "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationcreateTopicauth0FunctionMutationcreateTopicauth0FunctionAppSyncFunction2E1A1C86FunctionId": { - "Type": "String" - }, - "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationupdateTopicinit0FunctionMutationupdateTopicinit0FunctionAppSyncFunction16C763FFFunctionId": { - "Type": "String" - }, - "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptiononCreateTopicauth0FunctionSubscriptiononCreateTopicauth0FunctionAppSyncFunctionA56CE4F0FunctionId": { - "Type": "String" - }, - "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptionOnCreateTopicDataResolverFnSubscriptionOnCreateTopicDataResolverFnAppSyncFunctionA25E598AFunctionId": { - "Type": "String" - } - }, - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - }, - "NONE" - ] - } - ] - }, - "ShouldUseServerSideEncryption": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "true" - ] - }, - "ShouldUsePayPerRequestBilling": { - "Fn::Equals": [ - { - "Ref": "DynamoDBBillingMode" - }, - "PAY_PER_REQUEST" - ] - }, - "ShouldUsePointInTimeRecovery": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "true" - ] - } - }, - "Resources": { - "PostTable": { - "Type": "AWS::DynamoDB::Table", - "Properties": { - "AttributeDefinitions": [ - { - "AttributeName": "id", - "AttributeType": "S" - }, - { - "AttributeName": "topicPostsId", - "AttributeType": "S" - } - ], - "BillingMode": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - "PAY_PER_REQUEST", - { - "Ref": "AWS::NoValue" - } - ] - }, - "GlobalSecondaryIndexes": [ - { - "IndexName": "gsi-Topic.posts", - "KeySchema": [ - { - "AttributeName": "topicPostsId", - "KeyType": "HASH" - } - ], - "Projection": { - "ProjectionType": "ALL" - }, - "ProvisionedThroughput": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - { - "Ref": "AWS::NoValue" - }, - { - "ReadCapacityUnits": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "WriteCapacityUnits": { - "Ref": "DynamoDBModelTableWriteIOPS" - } - } - ] - } - } - ], - "KeySchema": [ - { - "AttributeName": "id", - "KeyType": "HASH" - } - ], - "PointInTimeRecoverySpecification": { - "Fn::If": [ - "ShouldUsePointInTimeRecovery", - { - "PointInTimeRecoveryEnabled": true - }, - { - "Ref": "AWS::NoValue" - } - ] - }, - "ProvisionedThroughput": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - { - "Ref": "AWS::NoValue" - }, - { - "ReadCapacityUnits": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "WriteCapacityUnits": { - "Ref": "DynamoDBModelTableWriteIOPS" - } - } - ] - }, - "SSESpecification": { - "SSEEnabled": { - "Fn::If": [ - "ShouldUseServerSideEncryption", - true, - false - ] - } - }, - "StreamSpecification": { - "StreamViewType": "NEW_AND_OLD_IMAGES" - }, - "TableName": { - "Fn::Join": [ - "", - [ - "Post-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete" - }, - "PostIAMRole83BF708F": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:DeleteItem", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:Query", - "dynamodb:UpdateItem", - "dynamodb:ConditionCheckItem", - "dynamodb:DescribeTable", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", - { - "tablename": { - "Fn::Join": [ - "", - [ - "Post-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - ] - }, - { - "Fn::Sub": [ - "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", - { - "tablename": { - "Fn::Join": [ - "", - [ - "Post-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "DynamoDBAccess" - } - ], - "RoleName": { - "Fn::Join": [ - "", - [ - "PostIAMRolebbce9b-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - }, - "PostIAMRoleDefaultPolicy04190CA0": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator", - "dynamodb:Query", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:ConditionCheckItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:UpdateItem", - "dynamodb:DeleteItem", - "dynamodb:DescribeTable" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "PostTable", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "PostTable", - "Arn" - ] - }, - "/index/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "PostIAMRoleDefaultPolicy04190CA0", - "Roles": [ - { - "Ref": "PostIAMRole83BF708F" - } - ] - } - }, - "PostDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DynamoDBConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "TableName": { - "Ref": "PostTable" - } - }, - "Name": "PostTable", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "PostIAMRole83BF708F", - "Arn" - ] - }, - "Type": "AMAZON_DYNAMODB" - }, - "DependsOn": [ - "PostIAMRole83BF708F" - ] - }, - "QueryGetPostDataResolverFnQueryGetPostDataResolverFnAppSyncFunction06724190": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "PostDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryGetPostDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getPost.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getPost.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "PostDataSource" - ] - }, - "GetPostResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "getPost", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicauth0FunctionQuerygetTopicauth0FunctionAppSyncFunctionEC4A6DABFunctionId" - }, - { - "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId" - }, - { - "Fn::GetAtt": [ - "QueryGetPostDataResolverFnQueryGetPostDataResolverFnAppSyncFunction06724190", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getPost\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "PostTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:d588cc58-4459-4b1b-ac91-307079a54464\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - } - }, - "QueryListPostsDataResolverFnQueryListPostsDataResolverFnAppSyncFunction3D526AB7": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "PostDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryListPostsDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.listPosts.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.listPosts.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "PostDataSource" - ] - }, - "ListPostResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "listPosts", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicauth0FunctionQuerygetTopicauth0FunctionAppSyncFunctionEC4A6DABFunctionId" - }, - { - "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId" - }, - { - "Fn::GetAtt": [ - "QueryListPostsDataResolverFnQueryListPostsDataResolverFnAppSyncFunction3D526AB7", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listPosts\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "PostTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:d588cc58-4459-4b1b-ac91-307079a54464\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - } - }, - "MutationCreatePostDataResolverFnMutationCreatePostDataResolverFnAppSyncFunctionE45E2000": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "PostDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationCreatePostDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createPost.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createPost.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "PostDataSource" - ] - }, - "CreatePostResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "createPost", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationcreateTopicinit0FunctionMutationcreateTopicinit0FunctionAppSyncFunction3ECD028CFunctionId" - }, - { - "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationcreateTopicauth0FunctionMutationcreateTopicauth0FunctionAppSyncFunction2E1A1C86FunctionId" - }, - { - "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId" - }, - { - "Fn::GetAtt": [ - "MutationCreatePostDataResolverFnMutationCreatePostDataResolverFnAppSyncFunctionE45E2000", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createPost\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "PostTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:d588cc58-4459-4b1b-ac91-307079a54464\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "MutationupdatePostauth0FunctionMutationupdatePostauth0FunctionAppSyncFunction3E057835": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "PostDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdatePostauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updatePost.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updatePost.auth.1.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "PostDataSource" - ] - }, - "MutationUpdatePostDataResolverFnMutationUpdatePostDataResolverFnAppSyncFunctionBF7D410D": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "PostDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationUpdatePostDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updatePost.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updatePost.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "PostDataSource" - ] - }, - "UpdatePostResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "updatePost", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationupdateTopicinit0FunctionMutationupdateTopicinit0FunctionAppSyncFunction16C763FFFunctionId" - }, - { - "Fn::GetAtt": [ - "MutationupdatePostauth0FunctionMutationupdatePostauth0FunctionAppSyncFunction3E057835", - "FunctionId" - ] - }, - { - "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId" - }, - { - "Fn::GetAtt": [ - "MutationUpdatePostDataResolverFnMutationUpdatePostDataResolverFnAppSyncFunctionBF7D410D", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updatePost\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "PostTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:d588cc58-4459-4b1b-ac91-307079a54464\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "MutationdeletePostauth0FunctionMutationdeletePostauth0FunctionAppSyncFunctionFBE21CB7": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "PostDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeletePostauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deletePost.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deletePost.auth.1.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "PostDataSource" - ] - }, - "MutationDeletePostDataResolverFnMutationDeletePostDataResolverFnAppSyncFunction45B37C12": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "PostDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationDeletePostDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deletePost.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deletePost.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "PostDataSource" - ] - }, - "DeletePostResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "deletePost", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationdeletePostauth0FunctionMutationdeletePostauth0FunctionAppSyncFunctionFBE21CB7", - "FunctionId" - ] - }, - { - "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId" - }, - { - "Fn::GetAtt": [ - "MutationDeletePostDataResolverFnMutationDeletePostDataResolverFnAppSyncFunction45B37C12", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deletePost\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "PostTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:d588cc58-4459-4b1b-ac91-307079a54464\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "SubscriptiononCreatePostResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onCreatePost", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptiononCreateTopicauth0FunctionSubscriptiononCreateTopicauth0FunctionAppSyncFunctionA56CE4F0FunctionId" - }, - { - "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId" - }, - { - "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptionOnCreateTopicDataResolverFnSubscriptionOnCreateTopicDataResolverFnAppSyncFunctionA25E598AFunctionId" - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreatePost\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:d588cc58-4459-4b1b-ac91-307079a54464\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - }, - "SubscriptiononUpdatePostResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onUpdatePost", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptiononCreateTopicauth0FunctionSubscriptiononCreateTopicauth0FunctionAppSyncFunctionA56CE4F0FunctionId" - }, - { - "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId" - }, - { - "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptionOnCreateTopicDataResolverFnSubscriptionOnCreateTopicDataResolverFnAppSyncFunctionA25E598AFunctionId" - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdatePost\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:d588cc58-4459-4b1b-ac91-307079a54464\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - }, - "SubscriptiononDeletePostResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onDeletePost", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptiononCreateTopicauth0FunctionSubscriptiononCreateTopicauth0FunctionAppSyncFunctionA56CE4F0FunctionId" - }, - { - "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId" - }, - { - "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptionOnCreateTopicDataResolverFnSubscriptionOnCreateTopicDataResolverFnAppSyncFunctionA25E598AFunctionId" - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeletePost\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:d588cc58-4459-4b1b-ac91-307079a54464\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - } - }, - "Outputs": { - "GetAttPostTableStreamArn": { - "Description": "Your DynamoDB table StreamArn.", - "Value": { - "Fn::GetAtt": [ - "PostTable", - "StreamArn" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:PostTable:StreamArn" - ] - ] - } - } - }, - "GetAttPostTableName": { - "Description": "Your DynamoDB table name.", - "Value": { - "Ref": "PostTable" - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:PostTable:Name" - ] - ] - } - } - }, - "GetAttPostDataSourceName": { - "Description": "Your model DataSource name.", - "Value": { - "Fn::GetAtt": [ - "PostDataSource", - "Name" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:PostDataSource:Name" - ] - ] - } - } - }, - "transformerrootstackPostPostDataSource6998E105Name": { - "Value": { - "Fn::GetAtt": [ - "PostDataSource", - "Name" - ] - } - }, - "transformerrootstackPostPostTable34CAE87BRef": { - "Value": { - "Ref": "PostTable" - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-Topic-1Y1P33HAY8NE1.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-Topic-1Y1P33HAY8NE1.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-Topic-1Y1P33HAY8NE1.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-Topic-1Y1P33HAY8NE1.outputs.json deleted file mode 100644 index f59c6bce1d9..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-Topic-1Y1P33HAY8NE1.outputs.json +++ /dev/null @@ -1,56 +0,0 @@ -[ - { - "OutputKey": "GetAttTopicTableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Topic-u3jn2qbupzbyhc3h53673wdvim-main/stream/2026-03-20T21:20:17.537", - "Description": "Your DynamoDB table StreamArn.", - "ExportName": "u3jn2qbupzbyhc3h53673wdvim:GetAtt:TopicTable:StreamArn" - }, - { - "OutputKey": "GetAttTopicTableName", - "OutputValue": "Topic-u3jn2qbupzbyhc3h53673wdvim-main", - "Description": "Your DynamoDB table name.", - "ExportName": "u3jn2qbupzbyhc3h53673wdvim:GetAtt:TopicTable:Name" - }, - { - "OutputKey": "transformerrootstackTopicQuerygetTopicauth0FunctionQuerygetTopicauth0FunctionAppSyncFunctionEC4A6DABFunctionId", - "OutputValue": "xpl3pgeq4fhwji3vgpzje5i7ky" - }, - { - "OutputKey": "transformerrootstackTopicSubscriptiononCreateTopicauth0FunctionSubscriptiononCreateTopicauth0FunctionAppSyncFunctionA56CE4F0FunctionId", - "OutputValue": "k6fcuyzzyja75po4s3jdi2odwe" - }, - { - "OutputKey": "transformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId", - "OutputValue": "gb77pqdsqvfxlf43gz2ay4ll7a" - }, - { - "OutputKey": "GetAttTopicDataSourceName", - "OutputValue": "TopicTable", - "Description": "Your model DataSource name.", - "ExportName": "u3jn2qbupzbyhc3h53673wdvim:GetAtt:TopicDataSource:Name" - }, - { - "OutputKey": "transformerrootstackTopicTopicTableFD91FB92Ref", - "OutputValue": "Topic-u3jn2qbupzbyhc3h53673wdvim-main" - }, - { - "OutputKey": "transformerrootstackTopicTopicDataSource63D2F34BName", - "OutputValue": "TopicTable" - }, - { - "OutputKey": "transformerrootstackTopicMutationcreateTopicinit0FunctionMutationcreateTopicinit0FunctionAppSyncFunction3ECD028CFunctionId", - "OutputValue": "27xllzlwpve67blxdyydbpfvzm" - }, - { - "OutputKey": "transformerrootstackTopicSubscriptionOnCreateTopicDataResolverFnSubscriptionOnCreateTopicDataResolverFnAppSyncFunctionA25E598AFunctionId", - "OutputValue": "stocrj6wmnfwdc4rdkdv7z5t2u" - }, - { - "OutputKey": "transformerrootstackTopicMutationcreateTopicauth0FunctionMutationcreateTopicauth0FunctionAppSyncFunction2E1A1C86FunctionId", - "OutputValue": "gsc7uhamufgixefq3v5ucyfwua" - }, - { - "OutputKey": "transformerrootstackTopicMutationupdateTopicinit0FunctionMutationupdateTopicinit0FunctionAppSyncFunction16C763FFFunctionId", - "OutputValue": "e4yi7ioceze5riv7y2vaozdoqu" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-Topic-1Y1P33HAY8NE1.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-Topic-1Y1P33HAY8NE1.parameters.json deleted file mode 100644 index 50ae86858b8..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-Topic-1Y1P33HAY8NE1.parameters.json +++ /dev/null @@ -1,42 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", - "ParameterValue": "amplify-appsync-files/db92bad357b2590353e82db2f2ec7d0fc9cfd30d" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "false" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", - "ParameterValue": "u3jn2qbupzbyhc3h53673wdvim" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", - "ParameterValue": "amplify-discussions-main-c39a5-deployment" - }, - { - "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", - "ParameterValue": "main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-Topic-1Y1P33HAY8NE1.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-Topic-1Y1P33HAY8NE1.template.json deleted file mode 100644 index 3f62c10608d..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4-Topic-1Y1P33HAY8NE1.template.json +++ /dev/null @@ -1,1470 +0,0 @@ -{ - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "referencetotransformerrootstackenv10C5A902Ref": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Type": "String" - } - }, - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - }, - "NONE" - ] - } - ] - }, - "ShouldUseServerSideEncryption": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "true" - ] - }, - "ShouldUsePayPerRequestBilling": { - "Fn::Equals": [ - { - "Ref": "DynamoDBBillingMode" - }, - "PAY_PER_REQUEST" - ] - }, - "ShouldUsePointInTimeRecovery": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "true" - ] - } - }, - "Resources": { - "TopicTable": { - "Type": "AWS::DynamoDB::Table", - "Properties": { - "AttributeDefinitions": [ - { - "AttributeName": "id", - "AttributeType": "S" - } - ], - "BillingMode": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - "PAY_PER_REQUEST", - { - "Ref": "AWS::NoValue" - } - ] - }, - "KeySchema": [ - { - "AttributeName": "id", - "KeyType": "HASH" - } - ], - "PointInTimeRecoverySpecification": { - "Fn::If": [ - "ShouldUsePointInTimeRecovery", - { - "PointInTimeRecoveryEnabled": true - }, - { - "Ref": "AWS::NoValue" - } - ] - }, - "ProvisionedThroughput": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - { - "Ref": "AWS::NoValue" - }, - { - "ReadCapacityUnits": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "WriteCapacityUnits": { - "Ref": "DynamoDBModelTableWriteIOPS" - } - } - ] - }, - "SSESpecification": { - "SSEEnabled": { - "Fn::If": [ - "ShouldUseServerSideEncryption", - true, - false - ] - } - }, - "StreamSpecification": { - "StreamViewType": "NEW_AND_OLD_IMAGES" - }, - "TableName": { - "Fn::Join": [ - "", - [ - "Topic-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete" - }, - "TopicIAMRoleD9B4C845": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:DeleteItem", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:Query", - "dynamodb:UpdateItem", - "dynamodb:ConditionCheckItem", - "dynamodb:DescribeTable", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", - { - "tablename": { - "Fn::Join": [ - "", - [ - "Topic-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - ] - }, - { - "Fn::Sub": [ - "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", - { - "tablename": { - "Fn::Join": [ - "", - [ - "Topic-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "DynamoDBAccess" - } - ], - "RoleName": { - "Fn::Join": [ - "", - [ - "TopicIAMRole014e70-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - }, - "TopicIAMRoleDefaultPolicy205E7C23": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator", - "dynamodb:Query", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:ConditionCheckItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:UpdateItem", - "dynamodb:DeleteItem", - "dynamodb:DescribeTable" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "TopicTable", - "Arn" - ] - }, - { - "Ref": "AWS::NoValue" - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "TopicIAMRoleDefaultPolicy205E7C23", - "Roles": [ - { - "Ref": "TopicIAMRoleD9B4C845" - } - ] - } - }, - "TopicDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DynamoDBConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "TableName": { - "Ref": "TopicTable" - } - }, - "Name": "TopicTable", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "TopicIAMRoleD9B4C845", - "Arn" - ] - }, - "Type": "AMAZON_DYNAMODB" - }, - "DependsOn": [ - "TopicIAMRoleD9B4C845" - ] - }, - "QuerygetTopicauth0FunctionQuerygetTopicauth0FunctionAppSyncFunction2B9304CA": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetTopicauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getTopic.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "QuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction6FE846B8": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetTopicpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getTopic.postAuth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "QueryGetTopicDataResolverFnQueryGetTopicDataResolverFnAppSyncFunction82CCA00A": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "TopicDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryGetTopicDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getTopic.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getTopic.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "TopicDataSource" - ] - }, - "GetTopicResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "getTopic", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerygetTopicauth0FunctionQuerygetTopicauth0FunctionAppSyncFunction2B9304CA", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction6FE846B8", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryGetTopicDataResolverFnQueryGetTopicDataResolverFnAppSyncFunction82CCA00A", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getTopic\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "TopicTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:d588cc58-4459-4b1b-ac91-307079a54464\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - } - }, - "QueryListTopicsDataResolverFnQueryListTopicsDataResolverFnAppSyncFunction26E7FF8F": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "TopicDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryListTopicsDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.listTopics.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.listTopics.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "TopicDataSource" - ] - }, - "ListTopicResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "listTopics", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerygetTopicauth0FunctionQuerygetTopicauth0FunctionAppSyncFunction2B9304CA", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction6FE846B8", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryListTopicsDataResolverFnQueryListTopicsDataResolverFnAppSyncFunction26E7FF8F", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listTopics\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "TopicTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:d588cc58-4459-4b1b-ac91-307079a54464\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - } - }, - "MutationcreateTopicinit0FunctionMutationcreateTopicinit0FunctionAppSyncFunction4DB06436": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateTopicinit0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createTopic.init.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "MutationcreateTopicauth0FunctionMutationcreateTopicauth0FunctionAppSyncFunction47662DC9": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateTopicauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createTopic.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "MutationCreateTopicDataResolverFnMutationCreateTopicDataResolverFnAppSyncFunction3A6C31C4": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "TopicDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationCreateTopicDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createTopic.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createTopic.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "TopicDataSource" - ] - }, - "CreateTopicResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "createTopic", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationcreateTopicinit0FunctionMutationcreateTopicinit0FunctionAppSyncFunction4DB06436", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationcreateTopicauth0FunctionMutationcreateTopicauth0FunctionAppSyncFunction47662DC9", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction6FE846B8", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationCreateTopicDataResolverFnMutationCreateTopicDataResolverFnAppSyncFunction3A6C31C4", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createTopic\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "TopicTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:d588cc58-4459-4b1b-ac91-307079a54464\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "MutationupdateTopicinit0FunctionMutationupdateTopicinit0FunctionAppSyncFunction64D17734": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateTopicinit0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateTopic.init.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "MutationupdateTopicauth0FunctionMutationupdateTopicauth0FunctionAppSyncFunction56C81857": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "TopicDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateTopicauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateTopic.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateTopic.auth.1.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "TopicDataSource" - ] - }, - "MutationUpdateTopicDataResolverFnMutationUpdateTopicDataResolverFnAppSyncFunctionDA5D9F2F": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "TopicDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationUpdateTopicDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateTopic.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateTopic.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "TopicDataSource" - ] - }, - "UpdateTopicResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "updateTopic", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationupdateTopicinit0FunctionMutationupdateTopicinit0FunctionAppSyncFunction64D17734", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationupdateTopicauth0FunctionMutationupdateTopicauth0FunctionAppSyncFunction56C81857", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction6FE846B8", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationUpdateTopicDataResolverFnMutationUpdateTopicDataResolverFnAppSyncFunctionDA5D9F2F", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateTopic\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "TopicTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:d588cc58-4459-4b1b-ac91-307079a54464\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "MutationdeleteTopicauth0FunctionMutationdeleteTopicauth0FunctionAppSyncFunctionDA9FFFB5": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "TopicDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeleteTopicauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteTopic.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteTopic.auth.1.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "TopicDataSource" - ] - }, - "MutationDeleteTopicDataResolverFnMutationDeleteTopicDataResolverFnAppSyncFunction13577BCB": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "TopicDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationDeleteTopicDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteTopic.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteTopic.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "TopicDataSource" - ] - }, - "DeleteTopicResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "deleteTopic", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationdeleteTopicauth0FunctionMutationdeleteTopicauth0FunctionAppSyncFunctionDA9FFFB5", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction6FE846B8", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationDeleteTopicDataResolverFnMutationDeleteTopicDataResolverFnAppSyncFunction13577BCB", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteTopic\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "TopicTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:d588cc58-4459-4b1b-ac91-307079a54464\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "SubscriptiononCreateTopicauth0FunctionSubscriptiononCreateTopicauth0FunctionAppSyncFunction1736E1E4": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononCreateTopicauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Subscription.onCreateTopic.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "SubscriptionOnCreateTopicDataResolverFnSubscriptionOnCreateTopicDataResolverFnAppSyncFunctionE8F09879": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnCreateTopicDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Subscription.onCreateTopic.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Subscription.onCreateTopic.res.vtl" - ] - ] - } - } - }, - "SubscriptiononCreateTopicResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onCreateTopic", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononCreateTopicauth0FunctionSubscriptiononCreateTopicauth0FunctionAppSyncFunction1736E1E4", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction6FE846B8", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnCreateTopicDataResolverFnSubscriptionOnCreateTopicDataResolverFnAppSyncFunctionE8F09879", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateTopic\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:d588cc58-4459-4b1b-ac91-307079a54464\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - }, - "SubscriptiononUpdateTopicResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onUpdateTopic", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononCreateTopicauth0FunctionSubscriptiononCreateTopicauth0FunctionAppSyncFunction1736E1E4", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction6FE846B8", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnCreateTopicDataResolverFnSubscriptionOnCreateTopicDataResolverFnAppSyncFunctionE8F09879", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateTopic\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:d588cc58-4459-4b1b-ac91-307079a54464\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - }, - "SubscriptiononDeleteTopicResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onDeleteTopic", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononCreateTopicauth0FunctionSubscriptiononCreateTopicauth0FunctionAppSyncFunction1736E1E4", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction6FE846B8", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnCreateTopicDataResolverFnSubscriptionOnCreateTopicDataResolverFnAppSyncFunctionE8F09879", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteTopic\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:d588cc58-4459-4b1b-ac91-307079a54464\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - } - }, - "Outputs": { - "GetAttTopicTableStreamArn": { - "Description": "Your DynamoDB table StreamArn.", - "Value": { - "Fn::GetAtt": [ - "TopicTable", - "StreamArn" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:TopicTable:StreamArn" - ] - ] - } - } - }, - "GetAttTopicTableName": { - "Description": "Your DynamoDB table name.", - "Value": { - "Ref": "TopicTable" - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:TopicTable:Name" - ] - ] - } - } - }, - "GetAttTopicDataSourceName": { - "Description": "Your model DataSource name.", - "Value": { - "Fn::GetAtt": [ - "TopicDataSource", - "Name" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:TopicDataSource:Name" - ] - ] - } - } - }, - "transformerrootstackTopicQuerygetTopicauth0FunctionQuerygetTopicauth0FunctionAppSyncFunctionEC4A6DABFunctionId": { - "Value": { - "Fn::GetAtt": [ - "QuerygetTopicauth0FunctionQuerygetTopicauth0FunctionAppSyncFunction2B9304CA", - "FunctionId" - ] - } - }, - "transformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId": { - "Value": { - "Fn::GetAtt": [ - "QuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction6FE846B8", - "FunctionId" - ] - } - }, - "transformerrootstackTopicMutationcreateTopicinit0FunctionMutationcreateTopicinit0FunctionAppSyncFunction3ECD028CFunctionId": { - "Value": { - "Fn::GetAtt": [ - "MutationcreateTopicinit0FunctionMutationcreateTopicinit0FunctionAppSyncFunction4DB06436", - "FunctionId" - ] - } - }, - "transformerrootstackTopicMutationcreateTopicauth0FunctionMutationcreateTopicauth0FunctionAppSyncFunction2E1A1C86FunctionId": { - "Value": { - "Fn::GetAtt": [ - "MutationcreateTopicauth0FunctionMutationcreateTopicauth0FunctionAppSyncFunction47662DC9", - "FunctionId" - ] - } - }, - "transformerrootstackTopicMutationupdateTopicinit0FunctionMutationupdateTopicinit0FunctionAppSyncFunction16C763FFFunctionId": { - "Value": { - "Fn::GetAtt": [ - "MutationupdateTopicinit0FunctionMutationupdateTopicinit0FunctionAppSyncFunction64D17734", - "FunctionId" - ] - } - }, - "transformerrootstackTopicSubscriptiononCreateTopicauth0FunctionSubscriptiononCreateTopicauth0FunctionAppSyncFunctionA56CE4F0FunctionId": { - "Value": { - "Fn::GetAtt": [ - "SubscriptiononCreateTopicauth0FunctionSubscriptiononCreateTopicauth0FunctionAppSyncFunction1736E1E4", - "FunctionId" - ] - } - }, - "transformerrootstackTopicSubscriptionOnCreateTopicDataResolverFnSubscriptionOnCreateTopicDataResolverFnAppSyncFunctionA25E598AFunctionId": { - "Value": { - "Fn::GetAtt": [ - "SubscriptionOnCreateTopicDataResolverFnSubscriptionOnCreateTopicDataResolverFnAppSyncFunctionE8F09879", - "FunctionId" - ] - } - }, - "transformerrootstackTopicTopicDataSource63D2F34BName": { - "Value": { - "Fn::GetAtt": [ - "TopicDataSource", - "Name" - ] - } - }, - "transformerrootstackTopicTopicTableFD91FB92Ref": { - "Value": { - "Ref": "TopicTable" - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4.outputs.json deleted file mode 100644 index 0c96f5b4cd9..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4.outputs.json +++ /dev/null @@ -1,20 +0,0 @@ -[ - { - "OutputKey": "GraphQLAPIIdOutput", - "OutputValue": "u3jn2qbupzbyhc3h53673wdvim", - "Description": "Your GraphQL API ID.", - "ExportName": "amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4:GraphQLApiId" - }, - { - "OutputKey": "GraphQLAPIEndpointOutput", - "OutputValue": "https://jsm5ex363jcy5fm2reylyox4te.appsync-api.us-east-1.amazonaws.com/graphql", - "Description": "Your GraphQL API endpoint.", - "ExportName": "amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4:GraphQLApiEndpoint" - }, - { - "OutputKey": "GraphQLAPIKeyOutput", - "OutputValue": "da2-fakeapikey00000000000000", - "Description": "Your GraphQL API ID.", - "ExportName": "amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4:GraphQLApiKey" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4.parameters.json deleted file mode 100644 index 29f8b68a501..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4.parameters.json +++ /dev/null @@ -1,38 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "false" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "S3DeploymentBucket", - "ParameterValue": "amplify-discussions-main-c39a5-deployment" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "S3DeploymentRootKey", - "ParameterValue": "amplify-appsync-files/db92bad357b2590353e82db2f2ec7d0fc9cfd30d" - }, - { - "ParameterKey": "AppSyncApiName", - "ParameterValue": "discussions" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4.template.json deleted file mode 100644 index d6d8952134a..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-apidiscussions-ZIHO40IAIPU4.template.json +++ /dev/null @@ -1,1065 +0,0 @@ -{ - "Parameters": { - "env": { - "Type": "String", - "Default": "NONE" - }, - "AppSyncApiName": { - "Type": "String", - "Default": "AppSyncSimpleTransform" - }, - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "S3DeploymentBucket": { - "Type": "String", - "Description": "An S3 Bucket name where assets are deployed" - }, - "S3DeploymentRootKey": { - "Type": "String", - "Description": "An S3 key relative to the S3DeploymentBucket that points to the root of the deployment directory." - } - }, - "Resources": { - "GraphQLAPI": { - "Type": "AWS::AppSync::GraphQLApi", - "Properties": { - "AuthenticationType": "API_KEY", - "Name": { - "Fn::Join": [ - "", - [ - { - "Ref": "AppSyncApiName" - }, - "-", - { - "Ref": "env" - } - ] - ] - } - } - }, - "GraphQLAPITransformerSchema3CB2AE18": { - "Type": "AWS::AppSync::GraphQLSchema", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "DefinitionS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/schema.graphql" - ] - ] - } - } - }, - "GraphQLAPIDefaultApiKey215A6DD7": { - "Type": "AWS::AppSync::ApiKey", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "Expires": 1774646894 - } - }, - "GraphQLAPINONEDS95A13CF0": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "Name": "NONE_DS", - "Type": "NONE" - } - }, - "Topic": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "DynamoDBModelTableWriteIOPS": { - "Ref": "DynamoDBModelTableWriteIOPS" - }, - "DynamoDBBillingMode": { - "Ref": "DynamoDBBillingMode" - }, - "DynamoDBEnablePointInTimeRecovery": { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "DynamoDBEnableServerSideEncryption": { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "referencetotransformerrootstackenv10C5A902Ref": { - "Ref": "env" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Ref": "S3DeploymentBucket" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Ref": "S3DeploymentRootKey" - } - }, - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/stacks/Topic.json" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "Post": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "DynamoDBModelTableWriteIOPS": { - "Ref": "DynamoDBModelTableWriteIOPS" - }, - "DynamoDBBillingMode": { - "Ref": "DynamoDBBillingMode" - }, - "DynamoDBEnablePointInTimeRecovery": { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "DynamoDBEnableServerSideEncryption": { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "referencetotransformerrootstackenv10C5A902Ref": { - "Ref": "env" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Ref": "S3DeploymentBucket" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Ref": "S3DeploymentRootKey" - }, - "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicauth0FunctionQuerygetTopicauth0FunctionAppSyncFunctionEC4A6DABFunctionId": { - "Fn::GetAtt": [ - "Topic", - "Outputs.transformerrootstackTopicQuerygetTopicauth0FunctionQuerygetTopicauth0FunctionAppSyncFunctionEC4A6DABFunctionId" - ] - }, - "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId": { - "Fn::GetAtt": [ - "Topic", - "Outputs.transformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId" - ] - }, - "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationcreateTopicinit0FunctionMutationcreateTopicinit0FunctionAppSyncFunction3ECD028CFunctionId": { - "Fn::GetAtt": [ - "Topic", - "Outputs.transformerrootstackTopicMutationcreateTopicinit0FunctionMutationcreateTopicinit0FunctionAppSyncFunction3ECD028CFunctionId" - ] - }, - "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationcreateTopicauth0FunctionMutationcreateTopicauth0FunctionAppSyncFunction2E1A1C86FunctionId": { - "Fn::GetAtt": [ - "Topic", - "Outputs.transformerrootstackTopicMutationcreateTopicauth0FunctionMutationcreateTopicauth0FunctionAppSyncFunction2E1A1C86FunctionId" - ] - }, - "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationupdateTopicinit0FunctionMutationupdateTopicinit0FunctionAppSyncFunction16C763FFFunctionId": { - "Fn::GetAtt": [ - "Topic", - "Outputs.transformerrootstackTopicMutationupdateTopicinit0FunctionMutationupdateTopicinit0FunctionAppSyncFunction16C763FFFunctionId" - ] - }, - "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptiononCreateTopicauth0FunctionSubscriptiononCreateTopicauth0FunctionAppSyncFunctionA56CE4F0FunctionId": { - "Fn::GetAtt": [ - "Topic", - "Outputs.transformerrootstackTopicSubscriptiononCreateTopicauth0FunctionSubscriptiononCreateTopicauth0FunctionAppSyncFunctionA56CE4F0FunctionId" - ] - }, - "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptionOnCreateTopicDataResolverFnSubscriptionOnCreateTopicDataResolverFnAppSyncFunctionA25E598AFunctionId": { - "Fn::GetAtt": [ - "Topic", - "Outputs.transformerrootstackTopicSubscriptionOnCreateTopicDataResolverFnSubscriptionOnCreateTopicDataResolverFnAppSyncFunctionA25E598AFunctionId" - ] - } - }, - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/stacks/Post.json" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "Comment": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "DynamoDBModelTableWriteIOPS": { - "Ref": "DynamoDBModelTableWriteIOPS" - }, - "DynamoDBBillingMode": { - "Ref": "DynamoDBBillingMode" - }, - "DynamoDBEnablePointInTimeRecovery": { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "DynamoDBEnableServerSideEncryption": { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "referencetotransformerrootstackenv10C5A902Ref": { - "Ref": "env" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Ref": "S3DeploymentBucket" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Ref": "S3DeploymentRootKey" - }, - "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicauth0FunctionQuerygetTopicauth0FunctionAppSyncFunctionEC4A6DABFunctionId": { - "Fn::GetAtt": [ - "Topic", - "Outputs.transformerrootstackTopicQuerygetTopicauth0FunctionQuerygetTopicauth0FunctionAppSyncFunctionEC4A6DABFunctionId" - ] - }, - "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId": { - "Fn::GetAtt": [ - "Topic", - "Outputs.transformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId" - ] - }, - "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationcreateTopicinit0FunctionMutationcreateTopicinit0FunctionAppSyncFunction3ECD028CFunctionId": { - "Fn::GetAtt": [ - "Topic", - "Outputs.transformerrootstackTopicMutationcreateTopicinit0FunctionMutationcreateTopicinit0FunctionAppSyncFunction3ECD028CFunctionId" - ] - }, - "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationcreateTopicauth0FunctionMutationcreateTopicauth0FunctionAppSyncFunction2E1A1C86FunctionId": { - "Fn::GetAtt": [ - "Topic", - "Outputs.transformerrootstackTopicMutationcreateTopicauth0FunctionMutationcreateTopicauth0FunctionAppSyncFunction2E1A1C86FunctionId" - ] - }, - "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationupdateTopicinit0FunctionMutationupdateTopicinit0FunctionAppSyncFunction16C763FFFunctionId": { - "Fn::GetAtt": [ - "Topic", - "Outputs.transformerrootstackTopicMutationupdateTopicinit0FunctionMutationupdateTopicinit0FunctionAppSyncFunction16C763FFFunctionId" - ] - }, - "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptiononCreateTopicauth0FunctionSubscriptiononCreateTopicauth0FunctionAppSyncFunctionA56CE4F0FunctionId": { - "Fn::GetAtt": [ - "Topic", - "Outputs.transformerrootstackTopicSubscriptiononCreateTopicauth0FunctionSubscriptiononCreateTopicauth0FunctionAppSyncFunctionA56CE4F0FunctionId" - ] - }, - "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptionOnCreateTopicDataResolverFnSubscriptionOnCreateTopicDataResolverFnAppSyncFunctionA25E598AFunctionId": { - "Fn::GetAtt": [ - "Topic", - "Outputs.transformerrootstackTopicSubscriptionOnCreateTopicDataResolverFnSubscriptionOnCreateTopicDataResolverFnAppSyncFunctionA25E598AFunctionId" - ] - } - }, - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/stacks/Comment.json" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "FunctionDirectiveStack": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetotransformerrootstackenv10C5A902Ref": { - "Ref": "env" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Ref": "S3DeploymentBucket" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Ref": "S3DeploymentRootKey" - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - } - }, - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/stacks/FunctionDirectiveStack.json" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "ConnectionStack": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Ref": "S3DeploymentBucket" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Ref": "S3DeploymentRootKey" - }, - "referencetotransformerrootstackPostNestedStackPostNestedStackResource45FCAC5EOutputstransformerrootstackPostPostDataSource6998E105Name": { - "Fn::GetAtt": [ - "Post", - "Outputs.transformerrootstackPostPostDataSource6998E105Name" - ] - }, - "referencetotransformerrootstackPostNestedStackPostNestedStackResource45FCAC5EOutputstransformerrootstackPostPostTable34CAE87BRef": { - "Fn::GetAtt": [ - "Post", - "Outputs.transformerrootstackPostPostTable34CAE87BRef" - ] - }, - "referencetotransformerrootstackCommentNestedStackCommentNestedStackResource199283FBOutputstransformerrootstackCommentCommentDataSourceA0E54655Name": { - "Fn::GetAtt": [ - "Comment", - "Outputs.transformerrootstackCommentCommentDataSourceA0E54655Name" - ] - }, - "referencetotransformerrootstackCommentNestedStackCommentNestedStackResource199283FBOutputstransformerrootstackCommentCommentTable5427FDE2Ref": { - "Fn::GetAtt": [ - "Comment", - "Outputs.transformerrootstackCommentCommentTable5427FDE2Ref" - ] - }, - "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicTopicDataSource63D2F34BName": { - "Fn::GetAtt": [ - "Topic", - "Outputs.transformerrootstackTopicTopicDataSource63D2F34BName" - ] - }, - "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicTopicTableFD91FB92Ref": { - "Fn::GetAtt": [ - "Topic", - "Outputs.transformerrootstackTopicTopicTableFD91FB92Ref" - ] - } - }, - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/stacks/ConnectionStack.json" - ] - ] - } - }, - "DependsOn": [ - "Comment", - "GraphQLAPITransformerSchema3CB2AE18", - "Post", - "Topic" - ] - }, - "ActivityIdDataResolverFnActivityIdDataResolverFnAppSyncFunction8AF5D830": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "DataSourceName": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "ActivityIdDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/resolvers/Activity.id.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/resolvers/Activity.id.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "ActivityidResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "FieldName": "id", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "ActivityIdDataResolverFnActivityIdDataResolverFnAppSyncFunction8AF5D830", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Activity\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"id\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:d588cc58-4459-4b1b-ac91-307079a54464\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Activity" - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "ActivityUserIdDataResolverFnActivityUserIdDataResolverFnAppSyncFunctionB4E2E8CF": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "DataSourceName": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "ActivityUserIdDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/resolvers/Activity.userId.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/resolvers/Activity.userId.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "ActivityuserIdResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "FieldName": "userId", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "ActivityUserIdDataResolverFnActivityUserIdDataResolverFnAppSyncFunctionB4E2E8CF", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Activity\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"userId\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:d588cc58-4459-4b1b-ac91-307079a54464\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Activity" - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "ActivityActivityTypeDataResolverFnActivityActivityTypeDataResolverFnAppSyncFunctionF3DF665E": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "DataSourceName": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "ActivityActivityTypeDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/resolvers/Activity.activityType.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/resolvers/Activity.activityType.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "ActivityactivityTypeResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "FieldName": "activityType", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "ActivityActivityTypeDataResolverFnActivityActivityTypeDataResolverFnAppSyncFunctionF3DF665E", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Activity\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"activityType\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:d588cc58-4459-4b1b-ac91-307079a54464\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Activity" - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "ActivityTimestampDataResolverFnActivityTimestampDataResolverFnAppSyncFunctionEF347380": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "DataSourceName": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "ActivityTimestampDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/resolvers/Activity.timestamp.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/resolvers/Activity.timestamp.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "ActivitytimestampResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "FieldName": "timestamp", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "ActivityTimestampDataResolverFnActivityTimestampDataResolverFnAppSyncFunctionEF347380", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Activity\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"timestamp\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:d588cc58-4459-4b1b-ac91-307079a54464\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Activity" - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "CustomResourcesjson": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "AppSyncApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "AppSyncApiName": { - "Ref": "AppSyncApiName" - }, - "env": { - "Ref": "env" - }, - "S3DeploymentBucket": { - "Ref": "S3DeploymentBucket" - }, - "S3DeploymentRootKey": { - "Ref": "S3DeploymentRootKey" - } - }, - "TemplateURL": { - "Fn::Join": [ - "/", - [ - "https://s3.amazonaws.com", - { - "Ref": "S3DeploymentBucket" - }, - { - "Ref": "S3DeploymentRootKey" - }, - "stacks", - "CustomResources.json" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPI", - "GraphQLAPITransformerSchema3CB2AE18", - "Topic", - "Post", - "Comment", - "FunctionDirectiveStack", - "ConnectionStack" - ] - } - }, - "Outputs": { - "GraphQLAPIKeyOutput": { - "Description": "Your GraphQL API ID.", - "Value": { - "Fn::GetAtt": [ - "GraphQLAPIDefaultApiKey215A6DD7", - "ApiKey" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "AWS::StackName" - }, - "GraphQLApiKey" - ] - ] - } - } - }, - "GraphQLAPIIdOutput": { - "Description": "Your GraphQL API ID.", - "Value": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "AWS::StackName" - }, - "GraphQLApiId" - ] - ] - } - } - }, - "GraphQLAPIEndpointOutput": { - "Description": "Your GraphQL API endpoint.", - "Value": { - "Fn::GetAtt": [ - "GraphQLAPI", - "GraphQLUrl" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "AWS::StackName" - }, - "GraphQLApiEndpoint" - ] - ] - } - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-authdiscussionsc578c16ec578c16e-1XF3OX52Z0KBB.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-authdiscussionsc578c16ec578c16e-1XF3OX52Z0KBB.description.txt deleted file mode 100644 index 8b558f82186..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-authdiscussionsc578c16ec578c16e-1XF3OX52Z0KBB.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"Amplify","createdWith":"14.2.5","stackType":"auth-Cognito","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-authdiscussionsc578c16ec578c16e-1XF3OX52Z0KBB.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-authdiscussionsc578c16ec578c16e-1XF3OX52Z0KBB.outputs.json deleted file mode 100644 index a9d191bba1c..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-authdiscussionsc578c16ec578c16e-1XF3OX52Z0KBB.outputs.json +++ /dev/null @@ -1,40 +0,0 @@ -[ - { - "OutputKey": "CreatedSNSRole", - "OutputValue": "arn:aws:iam::123456789012:role/snsc578c16ec39a5-main", - "Description": "role arn" - }, - { - "OutputKey": "UserPoolId", - "OutputValue": "us-east-1_vv2HFjwRK", - "Description": "Id for the user pool" - }, - { - "OutputKey": "AppClientIDWeb", - "OutputValue": "7nhjrv5jepqc7kacqiknlj0siu", - "Description": "The user pool app client id for web" - }, - { - "OutputKey": "AppClientID", - "OutputValue": "7tbnnc27p4edfrp7m6bqqkh0gq", - "Description": "The user pool app client id" - }, - { - "OutputKey": "IdentityPoolId", - "OutputValue": "us-east-1:d588cc58-4459-4b1b-ac91-307079a54464", - "Description": "Id for the identity pool" - }, - { - "OutputKey": "UserPoolArn", - "OutputValue": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_vv2HFjwRK", - "Description": "Arn for the user pool" - }, - { - "OutputKey": "IdentityPoolName", - "OutputValue": "discussionsc578c16e_identitypool_c578c16e__main" - }, - { - "OutputKey": "UserPoolName", - "OutputValue": "discussionsc578c16e_userpool_c578c16e" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-authdiscussionsc578c16ec578c16e-1XF3OX52Z0KBB.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-authdiscussionsc578c16ec578c16e-1XF3OX52Z0KBB.parameters.json deleted file mode 100644 index f6d5bcb1506..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-authdiscussionsc578c16ec578c16e-1XF3OX52Z0KBB.parameters.json +++ /dev/null @@ -1,166 +0,0 @@ -[ - { - "ParameterKey": "usernameAttributes", - "ParameterValue": "phone_number" - }, - { - "ParameterKey": "authRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-discussions-main-c39a5-authRole" - }, - { - "ParameterKey": "autoVerifiedAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "allowUnauthenticatedIdentities", - "ParameterValue": "false" - }, - { - "ParameterKey": "hostedUI", - "ParameterValue": "false" - }, - { - "ParameterKey": "smsVerificationMessage", - "ParameterValue": "Your verification code is {####}" - }, - { - "ParameterKey": "userpoolClientReadAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "breakCircularDependency", - "ParameterValue": "true" - }, - { - "ParameterKey": "mfaTypes", - "ParameterValue": "SMS Text Message" - }, - { - "ParameterKey": "emailVerificationSubject", - "ParameterValue": "Verification" - }, - { - "ParameterKey": "sharedId", - "ParameterValue": "c578c16e" - }, - { - "ParameterKey": "useDefault", - "ParameterValue": "manual" - }, - { - "ParameterKey": "userpoolClientGenerateSecret", - "ParameterValue": "false" - }, - { - "ParameterKey": "mfaConfiguration", - "ParameterValue": "OFF" - }, - { - "ParameterKey": "identityPoolName", - "ParameterValue": "discussionsc578c16e_identitypool_c578c16e" - }, - { - "ParameterKey": "thirdPartyAuth", - "ParameterValue": "false" - }, - { - "ParameterKey": "userPoolGroupList", - "ParameterValue": "" - }, - { - "ParameterKey": "authSelections", - "ParameterValue": "identityPoolAndUserPool" - }, - { - "ParameterKey": "adminQueries", - "ParameterValue": "false" - }, - { - "ParameterKey": "resourceNameTruncated", - "ParameterValue": "discusc578c16e" - }, - { - "ParameterKey": "userPoolGroups", - "ParameterValue": "false" - }, - { - "ParameterKey": "smsAuthenticationMessage", - "ParameterValue": "Your authentication code is {####}" - }, - { - "ParameterKey": "passwordPolicyMinLength", - "ParameterValue": "8" - }, - { - "ParameterKey": "userPoolName", - "ParameterValue": "discussionsc578c16e_userpool_c578c16e" - }, - { - "ParameterKey": "userpoolClientWriteAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "dependsOn", - "ParameterValue": "" - }, - { - "ParameterKey": "useEnabledMfas", - "ParameterValue": "true" - }, - { - "ParameterKey": "usernameCaseSensitive", - "ParameterValue": "false" - }, - { - "ParameterKey": "resourceName", - "ParameterValue": "discussionsc578c16ec578c16e" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "triggers", - "ParameterValue": "{}" - }, - { - "ParameterKey": "serviceName", - "ParameterValue": "Cognito" - }, - { - "ParameterKey": "emailVerificationMessage", - "ParameterValue": "Here is your verification code {####}" - }, - { - "ParameterKey": "userpoolClientRefreshTokenValidity", - "ParameterValue": "120" - }, - { - "ParameterKey": "userpoolClientSetAttributes", - "ParameterValue": "false" - }, - { - "ParameterKey": "unauthRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-discussions-main-c39a5-unauthRole" - }, - { - "ParameterKey": "requiredAttributes", - "ParameterValue": "email,phone_number" - }, - { - "ParameterKey": "passwordPolicyCharacters", - "ParameterValue": "" - }, - { - "ParameterKey": "aliasAttributes", - "ParameterValue": "" - }, - { - "ParameterKey": "userpoolClientLambdaRole", - "ParameterValue": "discusc578c16e_userpoolclient_lambda_role" - }, - { - "ParameterKey": "defaultPasswordPolicy", - "ParameterValue": "false" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-authdiscussionsc578c16ec578c16e-1XF3OX52Z0KBB.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-authdiscussionsc578c16ec578c16e-1XF3OX52Z0KBB.template.json deleted file mode 100644 index 3f10aeedb88..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-authdiscussionsc578c16ec578c16e-1XF3OX52Z0KBB.template.json +++ /dev/null @@ -1,533 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "env": { - "Type": "String" - }, - "identityPoolName": { - "Type": "String" - }, - "allowUnauthenticatedIdentities": { - "Type": "String" - }, - "resourceNameTruncated": { - "Type": "String" - }, - "userPoolName": { - "Type": "String" - }, - "autoVerifiedAttributes": { - "Type": "CommaDelimitedList" - }, - "mfaConfiguration": { - "Type": "String" - }, - "mfaTypes": { - "Type": "CommaDelimitedList" - }, - "smsAuthenticationMessage": { - "Type": "String" - }, - "smsVerificationMessage": { - "Type": "String" - }, - "emailVerificationSubject": { - "Type": "String" - }, - "emailVerificationMessage": { - "Type": "String" - }, - "defaultPasswordPolicy": { - "Type": "String" - }, - "passwordPolicyMinLength": { - "Type": "String" - }, - "passwordPolicyCharacters": { - "Type": "CommaDelimitedList" - }, - "requiredAttributes": { - "Type": "CommaDelimitedList" - }, - "aliasAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientGenerateSecret": { - "Type": "String" - }, - "userpoolClientRefreshTokenValidity": { - "Type": "String" - }, - "userpoolClientWriteAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientReadAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientLambdaRole": { - "Type": "String" - }, - "userpoolClientSetAttributes": { - "Type": "String" - }, - "sharedId": { - "Type": "String" - }, - "resourceName": { - "Type": "String" - }, - "authSelections": { - "Type": "String" - }, - "useDefault": { - "Type": "String" - }, - "thirdPartyAuth": { - "Type": "String" - }, - "usernameAttributes": { - "Type": "CommaDelimitedList" - }, - "userPoolGroups": { - "Type": "String" - }, - "adminQueries": { - "Type": "String" - }, - "triggers": { - "Type": "String" - }, - "hostedUI": { - "Type": "String" - }, - "userPoolGroupList": { - "Type": "CommaDelimitedList" - }, - "serviceName": { - "Type": "String" - }, - "usernameCaseSensitive": { - "Type": "String" - }, - "useEnabledMfas": { - "Type": "String" - }, - "authRoleArn": { - "Type": "String" - }, - "unauthRoleArn": { - "Type": "String" - }, - "breakCircularDependency": { - "Type": "String" - }, - "dependsOn": { - "Type": "CommaDelimitedList" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - }, - "Resources": { - "SNSRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Sid": "", - "Effect": "Allow", - "Principal": { - "Service": "cognito-idp.amazonaws.com" - }, - "Action": [ - "sts:AssumeRole" - ], - "Condition": { - "StringEquals": { - "sts:ExternalId": "discusc578c16e_role_external_id" - } - } - } - ] - }, - "Policies": [ - { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "sns:Publish" - ], - "Resource": "*" - } - ] - }, - "PolicyName": "discusc578c16e-sns-policy" - } - ], - "RoleName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "discusc578c16e_sns-role", - { - "Fn::Join": [ - "", - [ - "snsc578c16e", - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - { - "Ref": "AWS::StackName" - } - ] - } - ] - }, - "-", - { - "Ref": "env" - } - ] - ] - } - ] - } - } - }, - "UserPool": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": { - "Ref": "emailVerificationMessage" - }, - "EmailVerificationSubject": { - "Ref": "emailVerificationSubject" - }, - "MfaConfiguration": { - "Ref": "mfaConfiguration" - }, - "Policies": { - "PasswordPolicy": { - "MinimumLength": { - "Ref": "passwordPolicyMinLength" - }, - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - }, - { - "Mutable": true, - "Name": "phone_number", - "Required": true - } - ], - "SmsAuthenticationMessage": { - "Ref": "smsAuthenticationMessage" - }, - "SmsConfiguration": { - "ExternalId": "discusc578c16e_role_external_id", - "SnsCallerArn": { - "Fn::GetAtt": [ - "SNSRole", - "Arn" - ] - } - }, - "SmsVerificationMessage": { - "Ref": "smsVerificationMessage" - }, - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "userPoolName" - }, - { - "Fn::Join": [ - "", - [ - { - "Ref": "userPoolName" - }, - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "UsernameAttributes": { - "Ref": "usernameAttributes" - }, - "UsernameConfiguration": { - "CaseSensitive": false - } - }, - "DependsOn": [ - "SNSRole" - ] - }, - "UserPoolClientWeb": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "discusc578c16e_app_clientWeb", - "RefreshTokenValidity": { - "Ref": "userpoolClientRefreshTokenValidity" - }, - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": { - "Ref": "UserPool" - } - }, - "DependsOn": [ - "UserPool" - ] - }, - "UserPoolClient": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "discusc578c16e_app_client", - "GenerateSecret": { - "Ref": "userpoolClientGenerateSecret" - }, - "RefreshTokenValidity": { - "Ref": "userpoolClientRefreshTokenValidity" - }, - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": { - "Ref": "UserPool" - } - }, - "DependsOn": [ - "UserPool" - ] - }, - "UserPoolClientRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - }, - "Action": "sts:AssumeRole" - } - ] - }, - "RoleName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "userpoolClientLambdaRole" - }, - { - "Fn::Join": [ - "", - [ - "upClientLambdaRolec578c16e", - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - { - "Ref": "AWS::StackName" - } - ] - } - ] - }, - "-", - { - "Ref": "env" - } - ] - ] - } - ] - } - } - }, - "IdentityPool": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": { - "Ref": "allowUnauthenticatedIdentities" - }, - "CognitoIdentityProviders": [ - { - "ClientId": { - "Ref": "UserPoolClient" - }, - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": { - "Ref": "UserPool" - } - } - ] - } - }, - { - "ClientId": { - "Ref": "UserPoolClientWeb" - }, - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": { - "Ref": "UserPool" - } - } - ] - } - } - ], - "IdentityPoolName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "discussionsc578c16e_identitypool_c578c16e", - { - "Fn::Join": [ - "", - [ - "discussionsc578c16e_identitypool_c578c16e__", - { - "Ref": "env" - } - ] - ] - } - ] - } - } - }, - "IdentityPoolRoleMap": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": { - "Ref": "IdentityPool" - }, - "Roles": { - "unauthenticated": { - "Ref": "unauthRoleArn" - }, - "authenticated": { - "Ref": "authRoleArn" - } - } - }, - "DependsOn": [ - "IdentityPool" - ] - } - }, - "Outputs": { - "IdentityPoolId": { - "Description": "Id for the identity pool", - "Value": { - "Ref": "IdentityPool" - } - }, - "IdentityPoolName": { - "Value": { - "Fn::GetAtt": [ - "IdentityPool", - "Name" - ] - } - }, - "UserPoolId": { - "Description": "Id for the user pool", - "Value": { - "Ref": "UserPool" - } - }, - "UserPoolArn": { - "Description": "Arn for the user pool", - "Value": { - "Fn::GetAtt": [ - "UserPool", - "Arn" - ] - } - }, - "UserPoolName": { - "Value": { - "Ref": "userPoolName" - } - }, - "AppClientIDWeb": { - "Description": "The user pool app client id for web", - "Value": { - "Ref": "UserPoolClientWeb" - } - }, - "AppClientID": { - "Description": "The user pool app client id", - "Value": { - "Ref": "UserPoolClient" - } - }, - "CreatedSNSRole": { - "Description": "role arn", - "Value": { - "Fn::GetAtt": [ - "SNSRole", - "Arn" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-functionfetchuseractivity-KCGDT7S68U6K.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-functionfetchuseractivity-KCGDT7S68U6K.description.txt deleted file mode 100644 index e0ba9d9ec0a..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-functionfetchuseractivity-KCGDT7S68U6K.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"Amplify","createdWith":"14.2.5","stackType":"function-Lambda","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-functionfetchuseractivity-KCGDT7S68U6K.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-functionfetchuseractivity-KCGDT7S68U6K.outputs.json deleted file mode 100644 index 4397bba2a99..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-functionfetchuseractivity-KCGDT7S68U6K.outputs.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "OutputKey": "LambdaExecutionRoleArn", - "OutputValue": "arn:aws:iam::123456789012:role/discussionsLambdaRole44bd86bc-main" - }, - { - "OutputKey": "Region", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "Arn", - "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:fetchuseractivity-main" - }, - { - "OutputKey": "Name", - "OutputValue": "fetchuseractivity-main" - }, - { - "OutputKey": "LambdaExecutionRole", - "OutputValue": "discussionsLambdaRole44bd86bc-main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-functionfetchuseractivity-KCGDT7S68U6K.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-functionfetchuseractivity-KCGDT7S68U6K.parameters.json deleted file mode 100644 index f32103ffad4..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-functionfetchuseractivity-KCGDT7S68U6K.parameters.json +++ /dev/null @@ -1,30 +0,0 @@ -[ - { - "ParameterKey": "CloudWatchRule", - "ParameterValue": "NONE" - }, - { - "ParameterKey": "storageactivityName", - "ParameterValue": "activity-main" - }, - { - "ParameterKey": "s3Key", - "ParameterValue": "amplify-builds/fetchuseractivity-6e523036545438726f37-build.zip" - }, - { - "ParameterKey": "deploymentBucketName", - "ParameterValue": "amplify-discussions-main-c39a5-deployment" - }, - { - "ParameterKey": "storageactivityStreamArn", - "ParameterValue": "arn:aws:dynamodb:us-east-1:123456789012:table/activity-main/stream/2026-03-20T21:19:57.516" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "storageactivityArn", - "ParameterValue": "arn:aws:dynamodb:us-east-1:123456789012:table/activity-main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-functionfetchuseractivity-KCGDT7S68U6K.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-functionfetchuseractivity-KCGDT7S68U6K.template.json deleted file mode 100644 index e44e73d93aa..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-functionfetchuseractivity-KCGDT7S68U6K.template.json +++ /dev/null @@ -1,270 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "Parameters": { - "CloudWatchRule": { - "Type": "String", - "Default": "NONE", - "Description": " Schedule Expression" - }, - "deploymentBucketName": { - "Type": "String" - }, - "env": { - "Type": "String" - }, - "s3Key": { - "Type": "String" - }, - "storageactivityName": { - "Type": "String", - "Default": "storageactivityName" - }, - "storageactivityArn": { - "Type": "String", - "Default": "storageactivityArn" - }, - "storageactivityStreamArn": { - "Type": "String", - "Default": "storageactivityStreamArn" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - }, - "Resources": { - "LambdaFunction": { - "Type": "AWS::Lambda::Function", - "Metadata": { - "aws:asset:path": "./src", - "aws:asset:property": "Code" - }, - "Properties": { - "Code": { - "S3Bucket": { - "Ref": "deploymentBucketName" - }, - "S3Key": { - "Ref": "s3Key" - } - }, - "Handler": "index.handler", - "FunctionName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "fetchuseractivity", - { - "Fn::Join": [ - "", - [ - "fetchuseractivity", - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "Environment": { - "Variables": { - "ENV": { - "Ref": "env" - }, - "REGION": { - "Ref": "AWS::Region" - }, - "STORAGE_ACTIVITY_NAME": { - "Ref": "storageactivityName" - }, - "STORAGE_ACTIVITY_ARN": { - "Ref": "storageactivityArn" - }, - "STORAGE_ACTIVITY_STREAMARN": { - "Ref": "storageactivityStreamArn" - } - } - }, - "Role": { - "Fn::GetAtt": [ - "LambdaExecutionRole", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Layers": [], - "Timeout": 25 - } - }, - "LambdaExecutionRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "RoleName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "discussionsLambdaRole44bd86bc", - { - "Fn::Join": [ - "", - [ - "discussionsLambdaRole44bd86bc", - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": [ - "lambda.amazonaws.com" - ] - }, - "Action": [ - "sts:AssumeRole" - ] - } - ] - } - } - }, - "lambdaexecutionpolicy": { - "DependsOn": [ - "LambdaExecutionRole" - ], - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyName": "lambda-execution-policy", - "Roles": [ - { - "Ref": "LambdaExecutionRole" - } - ], - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "logs:CreateLogGroup", - "logs:CreateLogStream", - "logs:PutLogEvents" - ], - "Resource": { - "Fn::Sub": [ - "arn:aws:logs:${region}:${account}:log-group:/aws/lambda/${lambda}:log-stream:*", - { - "region": { - "Ref": "AWS::Region" - }, - "account": { - "Ref": "AWS::AccountId" - }, - "lambda": { - "Ref": "LambdaFunction" - } - } - ] - } - } - ] - } - } - }, - "AmplifyResourcesPolicy": { - "DependsOn": [ - "LambdaExecutionRole" - ], - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyName": "amplify-lambda-execution-policy", - "Roles": [ - { - "Ref": "LambdaExecutionRole" - } - ], - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "dynamodb:Get*", - "dynamodb:BatchGetItem", - "dynamodb:List*", - "dynamodb:Describe*", - "dynamodb:Scan", - "dynamodb:Query", - "dynamodb:PartiQLSelect" - ], - "Resource": [ - { - "Ref": "storageactivityArn" - }, - { - "Fn::Join": [ - "/", - [ - { - "Ref": "storageactivityArn" - }, - "index/*" - ] - ] - } - ] - } - ] - } - } - } - }, - "Outputs": { - "Name": { - "Value": { - "Ref": "LambdaFunction" - } - }, - "Arn": { - "Value": { - "Fn::GetAtt": [ - "LambdaFunction", - "Arn" - ] - } - }, - "Region": { - "Value": { - "Ref": "AWS::Region" - } - }, - "LambdaExecutionRole": { - "Value": { - "Ref": "LambdaExecutionRole" - } - }, - "LambdaExecutionRoleArn": { - "Value": { - "Fn::GetAtt": [ - "LambdaExecutionRole", - "Arn" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-functionrecorduseractivity-1343ZMSQE34K3.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-functionrecorduseractivity-1343ZMSQE34K3.description.txt deleted file mode 100644 index e0ba9d9ec0a..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-functionrecorduseractivity-1343ZMSQE34K3.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"Amplify","createdWith":"14.2.5","stackType":"function-Lambda","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-functionrecorduseractivity-1343ZMSQE34K3.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-functionrecorduseractivity-1343ZMSQE34K3.outputs.json deleted file mode 100644 index 03a445ee775..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-functionrecorduseractivity-1343ZMSQE34K3.outputs.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "OutputKey": "LambdaExecutionRoleArn", - "OutputValue": "arn:aws:iam::123456789012:role/discussionsLambdaRole62a425ae-main" - }, - { - "OutputKey": "Region", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "Arn", - "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:recorduseractivity-main" - }, - { - "OutputKey": "Name", - "OutputValue": "recorduseractivity-main" - }, - { - "OutputKey": "LambdaExecutionRole", - "OutputValue": "discussionsLambdaRole62a425ae-main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-functionrecorduseractivity-1343ZMSQE34K3.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-functionrecorduseractivity-1343ZMSQE34K3.parameters.json deleted file mode 100644 index 18ae7b35efa..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-functionrecorduseractivity-1343ZMSQE34K3.parameters.json +++ /dev/null @@ -1,38 +0,0 @@ -[ - { - "ParameterKey": "CloudWatchRule", - "ParameterValue": "NONE" - }, - { - "ParameterKey": "storageactivityName", - "ParameterValue": "activity-main" - }, - { - "ParameterKey": "s3Key", - "ParameterValue": "amplify-builds/recorduseractivity-433947686f7145754543-build.zip" - }, - { - "ParameterKey": "deploymentBucketName", - "ParameterValue": "amplify-discussions-main-c39a5-deployment" - }, - { - "ParameterKey": "apidiscussionsGraphQLAPIEndpointOutput", - "ParameterValue": "https://jsm5ex363jcy5fm2reylyox4te.appsync-api.us-east-1.amazonaws.com/graphql" - }, - { - "ParameterKey": "apidiscussionsGraphQLAPIIdOutput", - "ParameterValue": "u3jn2qbupzbyhc3h53673wdvim" - }, - { - "ParameterKey": "storageactivityStreamArn", - "ParameterValue": "arn:aws:dynamodb:us-east-1:123456789012:table/activity-main/stream/2026-03-20T21:19:57.516" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "storageactivityArn", - "ParameterValue": "arn:aws:dynamodb:us-east-1:123456789012:table/activity-main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-functionrecorduseractivity-1343ZMSQE34K3.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-functionrecorduseractivity-1343ZMSQE34K3.template.json deleted file mode 100644 index 34511d0c3c6..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-functionrecorduseractivity-1343ZMSQE34K3.template.json +++ /dev/null @@ -1,455 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "Parameters": { - "CloudWatchRule": { - "Type": "String", - "Default": "NONE", - "Description": " Schedule Expression" - }, - "deploymentBucketName": { - "Type": "String" - }, - "env": { - "Type": "String" - }, - "s3Key": { - "Type": "String" - }, - "apidiscussionsGraphQLAPIIdOutput": { - "Type": "String", - "Default": "apidiscussionsGraphQLAPIIdOutput" - }, - "apidiscussionsGraphQLAPIEndpointOutput": { - "Type": "String", - "Default": "apidiscussionsGraphQLAPIEndpointOutput" - }, - "storageactivityName": { - "Type": "String", - "Default": "storageactivityName" - }, - "storageactivityArn": { - "Type": "String", - "Default": "storageactivityArn" - }, - "storageactivityStreamArn": { - "Type": "String", - "Default": "storageactivityStreamArn" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - }, - "Resources": { - "LambdaFunction": { - "Type": "AWS::Lambda::Function", - "Metadata": { - "aws:asset:path": "./src", - "aws:asset:property": "Code" - }, - "Properties": { - "Code": { - "S3Bucket": { - "Ref": "deploymentBucketName" - }, - "S3Key": { - "Ref": "s3Key" - } - }, - "Handler": "index.handler", - "FunctionName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "recorduseractivity", - { - "Fn::Join": [ - "", - [ - "recorduseractivity", - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "Environment": { - "Variables": { - "ENV": { - "Ref": "env" - }, - "REGION": { - "Ref": "AWS::Region" - }, - "STORAGE_ACTIVITY_NAME": { - "Ref": "storageactivityName" - }, - "STORAGE_ACTIVITY_ARN": { - "Ref": "storageactivityArn" - }, - "STORAGE_ACTIVITY_STREAMARN": { - "Ref": "storageactivityStreamArn" - } - } - }, - "Role": { - "Fn::GetAtt": [ - "LambdaExecutionRole", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Layers": [], - "Timeout": 25 - } - }, - "LambdaExecutionRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "RoleName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "discussionsLambdaRole62a425ae", - { - "Fn::Join": [ - "", - [ - "discussionsLambdaRole62a425ae", - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": [ - "lambda.amazonaws.com" - ] - }, - "Action": [ - "sts:AssumeRole" - ] - } - ] - } - } - }, - "lambdaexecutionpolicy": { - "DependsOn": [ - "LambdaExecutionRole" - ], - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyName": "lambda-execution-policy", - "Roles": [ - { - "Ref": "LambdaExecutionRole" - } - ], - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "logs:CreateLogGroup", - "logs:CreateLogStream", - "logs:PutLogEvents" - ], - "Resource": { - "Fn::Sub": [ - "arn:aws:logs:${region}:${account}:log-group:/aws/lambda/${lambda}:log-stream:*", - { - "region": { - "Ref": "AWS::Region" - }, - "account": { - "Ref": "AWS::AccountId" - }, - "lambda": { - "Ref": "LambdaFunction" - } - } - ] - } - } - ] - } - } - }, - "AmplifyResourcesPolicy": { - "DependsOn": [ - "LambdaExecutionRole" - ], - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyName": "amplify-lambda-execution-policy", - "Roles": [ - { - "Ref": "LambdaExecutionRole" - } - ], - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "dynamodb:Put*", - "dynamodb:Create*", - "dynamodb:BatchWriteItem", - "dynamodb:PartiQLInsert", - "dynamodb:Get*", - "dynamodb:BatchGetItem", - "dynamodb:List*", - "dynamodb:Describe*", - "dynamodb:Scan", - "dynamodb:Query", - "dynamodb:PartiQLSelect", - "dynamodb:Update*", - "dynamodb:RestoreTable*", - "dynamodb:PartiQLUpdate", - "dynamodb:Delete*", - "dynamodb:PartiQLDelete" - ], - "Resource": [ - { - "Ref": "storageactivityArn" - }, - { - "Fn::Join": [ - "/", - [ - { - "Ref": "storageactivityArn" - }, - "index/*" - ] - ] - } - ] - } - ] - } - } - }, - "LambdaTriggerPolicyTopic": { - "DependsOn": [ - "LambdaExecutionRole" - ], - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyName": "amplify-lambda-execution-policy-Topic", - "Roles": [ - { - "Ref": "LambdaExecutionRole" - } - ], - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "dynamodb:DescribeStream", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator", - "dynamodb:ListStreams" - ], - "Resource": { - "Fn::ImportValue": { - "Fn::Sub": "${apidiscussionsGraphQLAPIIdOutput}:GetAtt:TopicTable:StreamArn" - } - } - } - ] - } - } - }, - "LambdaEventSourceMappingTopic": { - "Type": "AWS::Lambda::EventSourceMapping", - "DependsOn": [ - "LambdaTriggerPolicyTopic", - "LambdaExecutionRole" - ], - "Properties": { - "BatchSize": 100, - "Enabled": true, - "EventSourceArn": { - "Fn::ImportValue": { - "Fn::Sub": "${apidiscussionsGraphQLAPIIdOutput}:GetAtt:TopicTable:StreamArn" - } - }, - "FunctionName": { - "Fn::GetAtt": [ - "LambdaFunction", - "Arn" - ] - }, - "StartingPosition": "LATEST" - } - }, - "LambdaTriggerPolicyPost": { - "DependsOn": [ - "LambdaExecutionRole" - ], - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyName": "amplify-lambda-execution-policy-Post", - "Roles": [ - { - "Ref": "LambdaExecutionRole" - } - ], - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "dynamodb:DescribeStream", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator", - "dynamodb:ListStreams" - ], - "Resource": { - "Fn::ImportValue": { - "Fn::Sub": "${apidiscussionsGraphQLAPIIdOutput}:GetAtt:PostTable:StreamArn" - } - } - } - ] - } - } - }, - "LambdaEventSourceMappingPost": { - "Type": "AWS::Lambda::EventSourceMapping", - "DependsOn": [ - "LambdaTriggerPolicyPost", - "LambdaExecutionRole" - ], - "Properties": { - "BatchSize": 100, - "Enabled": true, - "EventSourceArn": { - "Fn::ImportValue": { - "Fn::Sub": "${apidiscussionsGraphQLAPIIdOutput}:GetAtt:PostTable:StreamArn" - } - }, - "FunctionName": { - "Fn::GetAtt": [ - "LambdaFunction", - "Arn" - ] - }, - "StartingPosition": "LATEST" - } - }, - "LambdaTriggerPolicyComment": { - "DependsOn": [ - "LambdaExecutionRole" - ], - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyName": "amplify-lambda-execution-policy-Comment", - "Roles": [ - { - "Ref": "LambdaExecutionRole" - } - ], - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "dynamodb:DescribeStream", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator", - "dynamodb:ListStreams" - ], - "Resource": { - "Fn::ImportValue": { - "Fn::Sub": "${apidiscussionsGraphQLAPIIdOutput}:GetAtt:CommentTable:StreamArn" - } - } - } - ] - } - } - }, - "LambdaEventSourceMappingComment": { - "Type": "AWS::Lambda::EventSourceMapping", - "DependsOn": [ - "LambdaTriggerPolicyComment", - "LambdaExecutionRole" - ], - "Properties": { - "BatchSize": 100, - "Enabled": true, - "EventSourceArn": { - "Fn::ImportValue": { - "Fn::Sub": "${apidiscussionsGraphQLAPIIdOutput}:GetAtt:CommentTable:StreamArn" - } - }, - "FunctionName": { - "Fn::GetAtt": [ - "LambdaFunction", - "Arn" - ] - }, - "StartingPosition": "LATEST" - } - } - }, - "Outputs": { - "Name": { - "Value": { - "Ref": "LambdaFunction" - } - }, - "Arn": { - "Value": { - "Fn::GetAtt": [ - "LambdaFunction", - "Arn" - ] - } - }, - "Region": { - "Value": { - "Ref": "AWS::Region" - } - }, - "LambdaExecutionRole": { - "Value": { - "Ref": "LambdaExecutionRole" - } - }, - "LambdaExecutionRoleArn": { - "Value": { - "Fn::GetAtt": [ - "LambdaExecutionRole", - "Arn" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-storageactivity-138JAQS8Q4D3V.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-storageactivity-138JAQS8Q4D3V.description.txt deleted file mode 100644 index 85c7bf4fcc3..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-storageactivity-138JAQS8Q4D3V.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"Amplify","createdWith":"14.2.5","stackType":"storage-DynamoDB","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-storageactivity-138JAQS8Q4D3V.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-storageactivity-138JAQS8Q4D3V.outputs.json deleted file mode 100644 index c5a4e1de68c..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-storageactivity-138JAQS8Q4D3V.outputs.json +++ /dev/null @@ -1,34 +0,0 @@ -[ - { - "OutputKey": "PartitionKeyName", - "OutputValue": "id" - }, - { - "OutputKey": "SortKeyName", - "OutputValue": "userId" - }, - { - "OutputKey": "SortKeyType", - "OutputValue": "S" - }, - { - "OutputKey": "Region", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "Arn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/activity-main" - }, - { - "OutputKey": "StreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/activity-main/stream/2026-03-20T21:19:57.516" - }, - { - "OutputKey": "PartitionKeyType", - "OutputValue": "S" - }, - { - "OutputKey": "Name", - "OutputValue": "activity-main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-storageactivity-138JAQS8Q4D3V.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-storageactivity-138JAQS8Q4D3V.parameters.json deleted file mode 100644 index d4a8a1d9363..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-storageactivity-138JAQS8Q4D3V.parameters.json +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "ParameterKey": "partitionKeyType", - "ParameterValue": "S" - }, - { - "ParameterKey": "partitionKeyName", - "ParameterValue": "id" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "sortKeyName", - "ParameterValue": "userId" - }, - { - "ParameterKey": "sortKeyType", - "ParameterValue": "S" - }, - { - "ParameterKey": "tableName", - "ParameterValue": "activity" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-storageactivity-138JAQS8Q4D3V.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-storageactivity-138JAQS8Q4D3V.template.json deleted file mode 100644 index 17ea25a0a60..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-storageactivity-138JAQS8Q4D3V.template.json +++ /dev/null @@ -1,164 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-DynamoDB\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "partitionKeyName": { - "Type": "String" - }, - "partitionKeyType": { - "Type": "String" - }, - "env": { - "Type": "String" - }, - "sortKeyName": { - "Type": "String" - }, - "sortKeyType": { - "Type": "String" - }, - "tableName": { - "Type": "String" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - }, - "Resources": { - "DynamoDBTable": { - "Type": "AWS::DynamoDB::Table", - "Properties": { - "AttributeDefinitions": [ - { - "AttributeName": "id", - "AttributeType": "S" - }, - { - "AttributeName": "userId", - "AttributeType": "S" - }, - { - "AttributeName": "timestamp", - "AttributeType": "S" - } - ], - "GlobalSecondaryIndexes": [ - { - "IndexName": "byUserId", - "KeySchema": [ - { - "AttributeName": "userId", - "KeyType": "HASH" - }, - { - "AttributeName": "timestamp", - "KeyType": "RANGE" - } - ], - "Projection": { - "ProjectionType": "ALL" - }, - "ProvisionedThroughput": { - "ReadCapacityUnits": 5, - "WriteCapacityUnits": 5 - } - } - ], - "KeySchema": [ - { - "AttributeName": "id", - "KeyType": "HASH" - }, - { - "AttributeName": "userId", - "KeyType": "RANGE" - } - ], - "ProvisionedThroughput": { - "ReadCapacityUnits": 5, - "WriteCapacityUnits": 5 - }, - "StreamSpecification": { - "StreamViewType": "NEW_IMAGE" - }, - "TableName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "tableName" - }, - { - "Fn::Join": [ - "", - [ - { - "Ref": "tableName" - }, - "-", - { - "Ref": "env" - } - ] - ] - } - ] - } - } - } - }, - "Outputs": { - "Name": { - "Value": { - "Ref": "DynamoDBTable" - } - }, - "Arn": { - "Value": { - "Fn::GetAtt": [ - "DynamoDBTable", - "Arn" - ] - } - }, - "StreamArn": { - "Value": { - "Fn::GetAtt": [ - "DynamoDBTable", - "StreamArn" - ] - } - }, - "PartitionKeyName": { - "Value": { - "Ref": "partitionKeyName" - } - }, - "PartitionKeyType": { - "Value": { - "Ref": "partitionKeyType" - } - }, - "SortKeyName": { - "Value": { - "Ref": "sortKeyName" - } - }, - "SortKeyType": { - "Value": { - "Ref": "sortKeyType" - } - }, - "Region": { - "Value": { - "Ref": "AWS::Region" - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-storageavatars-1BVCGXECPBEMB.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-storageavatars-1BVCGXECPBEMB.description.txt deleted file mode 100644 index a01eec73151..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-storageavatars-1BVCGXECPBEMB.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"Amplify","createdWith":"14.2.5","stackType":"storage-S3","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-storageavatars-1BVCGXECPBEMB.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-storageavatars-1BVCGXECPBEMB.outputs.json deleted file mode 100644 index 825ded20ca6..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-storageavatars-1BVCGXECPBEMB.outputs.json +++ /dev/null @@ -1,11 +0,0 @@ -[ - { - "OutputKey": "BucketName", - "OutputValue": "discus-avatarsc39a5-main", - "Description": "Bucket name for the S3 bucket" - }, - { - "OutputKey": "Region", - "OutputValue": "us-east-1" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-storageavatars-1BVCGXECPBEMB.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-storageavatars-1BVCGXECPBEMB.parameters.json deleted file mode 100644 index 4e3d2a6b496..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-storageavatars-1BVCGXECPBEMB.parameters.json +++ /dev/null @@ -1,86 +0,0 @@ -[ - { - "ParameterKey": "s3PermissionsGuestPublic", - "ParameterValue": "DISALLOW" - }, - { - "ParameterKey": "bucketName", - "ParameterValue": "discus-avatars" - }, - { - "ParameterKey": "s3PublicPolicy", - "ParameterValue": "Public_policy_bf41454d" - }, - { - "ParameterKey": "AuthenticatedAllowList", - "ParameterValue": "ALLOW" - }, - { - "ParameterKey": "unauthRoleName", - "ParameterValue": "amplify-discussions-main-c39a5-unauthRole" - }, - { - "ParameterKey": "s3PrivatePolicy", - "ParameterValue": "Private_policy_bf41454d" - }, - { - "ParameterKey": "selectedGuestPermissions", - "ParameterValue": "" - }, - { - "ParameterKey": "s3PermissionsAuthenticatedPublic", - "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" - }, - { - "ParameterKey": "s3PermissionsAuthenticatedPrivate", - "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" - }, - { - "ParameterKey": "s3PermissionsAuthenticatedUploads", - "ParameterValue": "s3:PutObject" - }, - { - "ParameterKey": "s3UploadsPolicy", - "ParameterValue": "Uploads_policy_bf41454d" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "unauthPolicyName", - "ParameterValue": "s3_amplify_bf41454d" - }, - { - "ParameterKey": "authRoleName", - "ParameterValue": "amplify-discussions-main-c39a5-authRole" - }, - { - "ParameterKey": "GuestAllowList", - "ParameterValue": "DISALLOW" - }, - { - "ParameterKey": "authPolicyName", - "ParameterValue": "s3_amplify_bf41454d" - }, - { - "ParameterKey": "s3ProtectedPolicy", - "ParameterValue": "Protected_policy_bf41454d" - }, - { - "ParameterKey": "s3PermissionsAuthenticatedProtected", - "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" - }, - { - "ParameterKey": "s3PermissionsGuestUploads", - "ParameterValue": "DISALLOW" - }, - { - "ParameterKey": "s3ReadPolicy", - "ParameterValue": "read_policy_bf41454d" - }, - { - "ParameterKey": "selectedAuthenticatedPermissions", - "ParameterValue": "s3:PutObject,s3:GetObject,s3:ListBucket,s3:DeleteObject" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-storageavatars-1BVCGXECPBEMB.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-storageavatars-1BVCGXECPBEMB.template.json deleted file mode 100644 index 81494e78af7..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-storageavatars-1BVCGXECPBEMB.template.json +++ /dev/null @@ -1,599 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-S3\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "env": { - "Type": "String" - }, - "bucketName": { - "Type": "String" - }, - "authRoleName": { - "Type": "String" - }, - "unauthRoleName": { - "Type": "String" - }, - "authPolicyName": { - "Type": "String" - }, - "unauthPolicyName": { - "Type": "String" - }, - "s3PublicPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3PrivatePolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3ProtectedPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3UploadsPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3ReadPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3PermissionsAuthenticatedPublic": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedProtected": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedPrivate": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedUploads": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsGuestPublic": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsGuestUploads": { - "Type": "String", - "Default": "DISALLOW" - }, - "AuthenticatedAllowList": { - "Type": "String", - "Default": "DISALLOW" - }, - "GuestAllowList": { - "Type": "String", - "Default": "DISALLOW" - }, - "selectedGuestPermissions": { - "Type": "CommaDelimitedList", - "Default": "NONE" - }, - "selectedAuthenticatedPermissions": { - "Type": "CommaDelimitedList", - "Default": "NONE" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - }, - "CreateAuthPublic": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "s3PermissionsAuthenticatedPublic" - }, - "DISALLOW" - ] - } - ] - }, - "CreateAuthProtected": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "s3PermissionsAuthenticatedProtected" - }, - "DISALLOW" - ] - } - ] - }, - "CreateAuthPrivate": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "s3PermissionsAuthenticatedPrivate" - }, - "DISALLOW" - ] - } - ] - }, - "CreateAuthUploads": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "s3PermissionsAuthenticatedUploads" - }, - "DISALLOW" - ] - } - ] - }, - "CreateGuestPublic": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "s3PermissionsGuestPublic" - }, - "DISALLOW" - ] - } - ] - }, - "CreateGuestUploads": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "s3PermissionsGuestUploads" - }, - "DISALLOW" - ] - } - ] - }, - "AuthReadAndList": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "AuthenticatedAllowList" - }, - "DISALLOW" - ] - } - ] - }, - "GuestReadAndList": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "GuestAllowList" - }, - "DISALLOW" - ] - } - ] - } - }, - "Outputs": { - "BucketName": { - "Description": "Bucket name for the S3 bucket", - "Value": { - "Ref": "S3Bucket" - } - }, - "Region": { - "Value": { - "Ref": "AWS::Region" - } - } - }, - "Resources": { - "S3Bucket": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "bucketName" - }, - { - "Fn::Join": [ - "", - [ - { - "Ref": "bucketName" - }, - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - { - "Ref": "AWS::StackName" - } - ] - } - ] - }, - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "Id": "S3CORSRuleId1", - "MaxAge": 3000 - } - ] - }, - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - } - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain" - }, - "S3AuthPublicPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - { - "Ref": "s3PermissionsAuthenticatedPublic" - } - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, - "/public/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": { - "Ref": "s3PublicPolicy" - }, - "Roles": [ - { - "Ref": "authRoleName" - } - ] - }, - "DependsOn": [ - "S3Bucket" - ], - "Condition": "CreateAuthPublic" - }, - "S3AuthProtectedPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - { - "Ref": "s3PermissionsAuthenticatedProtected" - } - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, - "/protected/${cognito-identity.amazonaws.com:sub}/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": { - "Ref": "s3ProtectedPolicy" - }, - "Roles": [ - { - "Ref": "authRoleName" - } - ] - }, - "DependsOn": [ - "S3Bucket" - ], - "Condition": "CreateAuthProtected" - }, - "S3AuthPrivatePolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - { - "Ref": "s3PermissionsAuthenticatedPrivate" - } - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, - "/private/${cognito-identity.amazonaws.com:sub}/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": { - "Ref": "s3PrivatePolicy" - }, - "Roles": [ - { - "Ref": "authRoleName" - } - ] - }, - "DependsOn": [ - "S3Bucket" - ], - "Condition": "CreateAuthPrivate" - }, - "S3AuthUploadPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - { - "Ref": "s3PermissionsAuthenticatedUploads" - } - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, - "/uploads/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": { - "Ref": "s3UploadsPolicy" - }, - "Roles": [ - { - "Ref": "authRoleName" - } - ] - }, - "DependsOn": [ - "S3Bucket" - ], - "Condition": "CreateAuthUploads" - }, - "S3AuthReadPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, - "/protected/*" - ] - ] - } - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/", - "public/*", - "protected/", - "protected/*", - "private/${cognito-identity.amazonaws.com:sub}/", - "private/${cognito-identity.amazonaws.com:sub}/*" - ] - } - }, - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - } - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": { - "Ref": "s3ReadPolicy" - }, - "Roles": [ - { - "Ref": "authRoleName" - } - ] - }, - "DependsOn": [ - "S3Bucket" - ], - "Condition": "AuthReadAndList" - }, - "S3GuestReadPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, - "/protected/*" - ] - ] - } - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/", - "public/*", - "protected/", - "protected/*" - ] - } - }, - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - } - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": { - "Ref": "s3ReadPolicy" - }, - "Roles": [ - { - "Ref": "unauthRoleName" - } - ] - }, - "DependsOn": [ - "S3Bucket" - ], - "Condition": "GuestReadAndList" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-storagebookmarks-B7BEMLBCHV3W.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-storagebookmarks-B7BEMLBCHV3W.description.txt deleted file mode 100644 index 85c7bf4fcc3..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-storagebookmarks-B7BEMLBCHV3W.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"Amplify","createdWith":"14.2.5","stackType":"storage-DynamoDB","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-storagebookmarks-B7BEMLBCHV3W.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-storagebookmarks-B7BEMLBCHV3W.outputs.json deleted file mode 100644 index 07877991944..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-storagebookmarks-B7BEMLBCHV3W.outputs.json +++ /dev/null @@ -1,34 +0,0 @@ -[ - { - "OutputKey": "PartitionKeyName", - "OutputValue": "userId" - }, - { - "OutputKey": "SortKeyName", - "OutputValue": "postId" - }, - { - "OutputKey": "SortKeyType", - "OutputValue": "S" - }, - { - "OutputKey": "Region", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "Arn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/bookmarks-main" - }, - { - "OutputKey": "StreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/bookmarks-main/stream/2026-03-20T21:19:57.495" - }, - { - "OutputKey": "PartitionKeyType", - "OutputValue": "S" - }, - { - "OutputKey": "Name", - "OutputValue": "bookmarks-main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-storagebookmarks-B7BEMLBCHV3W.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-storagebookmarks-B7BEMLBCHV3W.parameters.json deleted file mode 100644 index 5862fff0861..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-storagebookmarks-B7BEMLBCHV3W.parameters.json +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "ParameterKey": "partitionKeyType", - "ParameterValue": "S" - }, - { - "ParameterKey": "partitionKeyName", - "ParameterValue": "userId" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "sortKeyName", - "ParameterValue": "postId" - }, - { - "ParameterKey": "sortKeyType", - "ParameterValue": "S" - }, - { - "ParameterKey": "tableName", - "ParameterValue": "bookmarks" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-storagebookmarks-B7BEMLBCHV3W.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-storagebookmarks-B7BEMLBCHV3W.template.json deleted file mode 100644 index f19e532fe34..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5-storagebookmarks-B7BEMLBCHV3W.template.json +++ /dev/null @@ -1,156 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-DynamoDB\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "partitionKeyName": { - "Type": "String" - }, - "partitionKeyType": { - "Type": "String" - }, - "env": { - "Type": "String" - }, - "sortKeyName": { - "Type": "String" - }, - "sortKeyType": { - "Type": "String" - }, - "tableName": { - "Type": "String" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - }, - "Resources": { - "DynamoDBTable": { - "Type": "AWS::DynamoDB::Table", - "Properties": { - "AttributeDefinitions": [ - { - "AttributeName": "userId", - "AttributeType": "S" - }, - { - "AttributeName": "postId", - "AttributeType": "S" - } - ], - "GlobalSecondaryIndexes": [ - { - "IndexName": "byPost", - "KeySchema": [ - { - "AttributeName": "postId", - "KeyType": "HASH" - } - ], - "Projection": { - "ProjectionType": "ALL" - }, - "ProvisionedThroughput": { - "ReadCapacityUnits": 5, - "WriteCapacityUnits": 5 - } - } - ], - "KeySchema": [ - { - "AttributeName": "userId", - "KeyType": "HASH" - }, - { - "AttributeName": "postId", - "KeyType": "RANGE" - } - ], - "ProvisionedThroughput": { - "ReadCapacityUnits": 5, - "WriteCapacityUnits": 5 - }, - "StreamSpecification": { - "StreamViewType": "NEW_IMAGE" - }, - "TableName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "tableName" - }, - { - "Fn::Join": [ - "", - [ - { - "Ref": "tableName" - }, - "-", - { - "Ref": "env" - } - ] - ] - } - ] - } - } - } - }, - "Outputs": { - "Name": { - "Value": { - "Ref": "DynamoDBTable" - } - }, - "Arn": { - "Value": { - "Fn::GetAtt": [ - "DynamoDBTable", - "Arn" - ] - } - }, - "StreamArn": { - "Value": { - "Fn::GetAtt": [ - "DynamoDBTable", - "StreamArn" - ] - } - }, - "PartitionKeyName": { - "Value": { - "Ref": "partitionKeyName" - } - }, - "PartitionKeyType": { - "Value": { - "Ref": "partitionKeyType" - } - }, - "SortKeyName": { - "Value": { - "Ref": "sortKeyName" - } - }, - "SortKeyType": { - "Value": { - "Ref": "sortKeyType" - } - }, - "Region": { - "Value": { - "Ref": "AWS::Region" - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5.description.txt deleted file mode 100644 index daf66c0bc85..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5.description.txt +++ /dev/null @@ -1 +0,0 @@ -Root Stack for AWS Amplify CLI \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5.outputs.json deleted file mode 100644 index 9d805d94994..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5.outputs.json +++ /dev/null @@ -1,42 +0,0 @@ -[ - { - "OutputKey": "AuthRoleName", - "OutputValue": "amplify-discussions-main-c39a5-authRole" - }, - { - "OutputKey": "UnauthRoleArn", - "OutputValue": "arn:aws:iam::123456789012:role/amplify-discussions-main-c39a5-unauthRole" - }, - { - "OutputKey": "AuthRoleArn", - "OutputValue": "arn:aws:iam::123456789012:role/amplify-discussions-main-c39a5-authRole" - }, - { - "OutputKey": "Region", - "OutputValue": "us-east-1", - "Description": "CloudFormation provider root stack Region", - "ExportName": "amplify-discussions-main-c39a5-Region" - }, - { - "OutputKey": "DeploymentBucketName", - "OutputValue": "amplify-discussions-main-c39a5-deployment", - "Description": "CloudFormation provider root stack deployment bucket name", - "ExportName": "amplify-discussions-main-c39a5-DeploymentBucketName" - }, - { - "OutputKey": "UnauthRoleName", - "OutputValue": "amplify-discussions-main-c39a5-unauthRole" - }, - { - "OutputKey": "StackName", - "OutputValue": "amplify-discussions-main-c39a5", - "Description": "CloudFormation provider root stack ID", - "ExportName": "amplify-discussions-main-c39a5-StackName" - }, - { - "OutputKey": "StackId", - "OutputValue": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-discussions-main-c39a5/0e9a6f60-24a2-11f1-8462-0afffd2fb801", - "Description": "CloudFormation provider root stack name", - "ExportName": "amplify-discussions-main-c39a5-StackId" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5.parameters.json deleted file mode 100644 index 5b0c8b7318d..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5.parameters.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "ParameterKey": "AuthRoleName", - "ParameterValue": "amplify-discussions-main-c39a5-authRole" - }, - { - "ParameterKey": "DeploymentBucketName", - "ParameterValue": "amplify-discussions-main-c39a5-deployment" - }, - { - "ParameterKey": "UnauthRoleName", - "ParameterValue": "amplify-discussions-main-c39a5-unauthRole" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5.template.json deleted file mode 100644 index 7d427d24e55..00000000000 --- a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-main-c39a5.template.json +++ /dev/null @@ -1,610 +0,0 @@ -{ - "Description": "Root Stack for AWS Amplify CLI", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "DeploymentBucketName": { - "Type": "String", - "Default": "DeploymentBucket", - "Description": "Name of the common deployment bucket provided by the parent stack" - }, - "AuthRoleName": { - "Type": "String", - "Default": "AuthRoleName", - "Description": "Name of the common deployment bucket provided by the parent stack" - }, - "UnauthRoleName": { - "Type": "String", - "Default": "UnAuthRoleName", - "Description": "Name of the common deployment bucket provided by the parent stack" - } - }, - "Outputs": { - "Region": { - "Description": "CloudFormation provider root stack Region", - "Value": { - "Ref": "AWS::Region" - }, - "Export": { - "Name": { - "Fn::Sub": "${AWS::StackName}-Region" - } - } - }, - "StackName": { - "Description": "CloudFormation provider root stack ID", - "Value": { - "Ref": "AWS::StackName" - }, - "Export": { - "Name": { - "Fn::Sub": "${AWS::StackName}-StackName" - } - } - }, - "StackId": { - "Description": "CloudFormation provider root stack name", - "Value": { - "Ref": "AWS::StackId" - }, - "Export": { - "Name": { - "Fn::Sub": "${AWS::StackName}-StackId" - } - } - }, - "AuthRoleArn": { - "Value": { - "Fn::GetAtt": [ - "AuthRole", - "Arn" - ] - } - }, - "UnauthRoleArn": { - "Value": { - "Fn::GetAtt": [ - "UnauthRole", - "Arn" - ] - } - }, - "DeploymentBucketName": { - "Description": "CloudFormation provider root stack deployment bucket name", - "Value": { - "Ref": "DeploymentBucketName" - }, - "Export": { - "Name": { - "Fn::Sub": "${AWS::StackName}-DeploymentBucketName" - } - } - }, - "AuthRoleName": { - "Value": { - "Ref": "AuthRole" - } - }, - "UnauthRoleName": { - "Value": { - "Ref": "UnauthRole" - } - } - }, - "Resources": { - "DeploymentBucket": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketName": { - "Ref": "DeploymentBucketName" - }, - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - } - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain" - }, - "DeploymentBucketBlockHTTP": { - "Type": "AWS::S3::BucketPolicy", - "Properties": { - "Bucket": { - "Ref": "DeploymentBucketName" - }, - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:*", - "Effect": "Deny", - "Principal": "*", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "DeploymentBucketName" - }, - "/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "DeploymentBucketName" - } - ] - ] - } - ], - "Condition": { - "Bool": { - "aws:SecureTransport": false - } - } - } - ] - } - } - }, - "AuthRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Sid": "", - "Effect": "Deny", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - }, - "Action": "sts:AssumeRoleWithWebIdentity" - } - ] - }, - "RoleName": { - "Ref": "AuthRoleName" - } - } - }, - "UnauthRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Sid": "", - "Effect": "Deny", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - }, - "Action": "sts:AssumeRoleWithWebIdentity" - } - ] - }, - "RoleName": { - "Ref": "UnauthRoleName" - } - } - }, - "apidiscussions": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/api/cloudformation-template.json", - "Parameters": { - "AppSyncApiName": "discussions", - "DynamoDBBillingMode": "PAY_PER_REQUEST", - "DynamoDBEnableServerSideEncryption": false, - "S3DeploymentBucket": "amplify-discussions-main-c39a5-deployment", - "S3DeploymentRootKey": "amplify-appsync-files/db92bad357b2590353e82db2f2ec7d0fc9cfd30d", - "env": "main" - } - } - }, - "authdiscussionsc578c16ec578c16e": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/auth/discussionsc578c16ec578c16e-cloudformation-template.json", - "Parameters": { - "identityPoolName": "discussionsc578c16e_identitypool_c578c16e", - "allowUnauthenticatedIdentities": false, - "resourceNameTruncated": "discusc578c16e", - "userPoolName": "discussionsc578c16e_userpool_c578c16e", - "autoVerifiedAttributes": "email", - "mfaConfiguration": "OFF", - "mfaTypes": "SMS Text Message", - "smsAuthenticationMessage": "Your authentication code is {####}", - "smsVerificationMessage": "Your verification code is {####}", - "emailVerificationSubject": "Verification", - "emailVerificationMessage": "Here is your verification code {####}", - "defaultPasswordPolicy": false, - "passwordPolicyMinLength": 8, - "passwordPolicyCharacters": "", - "requiredAttributes": "email,phone_number", - "aliasAttributes": "", - "userpoolClientGenerateSecret": false, - "userpoolClientRefreshTokenValidity": "120", - "userpoolClientWriteAttributes": "email", - "userpoolClientReadAttributes": "email", - "userpoolClientLambdaRole": "discusc578c16e_userpoolclient_lambda_role", - "userpoolClientSetAttributes": false, - "sharedId": "c578c16e", - "resourceName": "discussionsc578c16ec578c16e", - "authSelections": "identityPoolAndUserPool", - "useDefault": "manual", - "thirdPartyAuth": false, - "usernameAttributes": "phone_number", - "userPoolGroups": false, - "adminQueries": false, - "triggers": "{}", - "hostedUI": false, - "userPoolGroupList": "", - "serviceName": "Cognito", - "usernameCaseSensitive": false, - "useEnabledMfas": true, - "authRoleArn": { - "Fn::GetAtt": [ - "AuthRole", - "Arn" - ] - }, - "unauthRoleArn": { - "Fn::GetAtt": [ - "UnauthRole", - "Arn" - ] - }, - "breakCircularDependency": true, - "dependsOn": "", - "env": "main" - } - } - }, - "functionfetchuseractivity": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/function/fetchuseractivity-cloudformation-template.json", - "Parameters": { - "deploymentBucketName": "amplify-discussions-main-c39a5-deployment", - "s3Key": "amplify-builds/fetchuseractivity-6e523036545438726f37-build.zip", - "storageactivityName": { - "Fn::GetAtt": [ - "storageactivity", - "Outputs.Name" - ] - }, - "storageactivityArn": { - "Fn::GetAtt": [ - "storageactivity", - "Outputs.Arn" - ] - }, - "storageactivityStreamArn": { - "Fn::GetAtt": [ - "storageactivity", - "Outputs.StreamArn" - ] - }, - "env": "main" - } - } - }, - "functionrecorduseractivity": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/function/recorduseractivity-cloudformation-template.json", - "Parameters": { - "deploymentBucketName": "amplify-discussions-main-c39a5-deployment", - "s3Key": "amplify-builds/recorduseractivity-433947686f7145754543-build.zip", - "apidiscussionsGraphQLAPIIdOutput": { - "Fn::GetAtt": [ - "apidiscussions", - "Outputs.GraphQLAPIIdOutput" - ] - }, - "apidiscussionsGraphQLAPIEndpointOutput": { - "Fn::GetAtt": [ - "apidiscussions", - "Outputs.GraphQLAPIEndpointOutput" - ] - }, - "storageactivityName": { - "Fn::GetAtt": [ - "storageactivity", - "Outputs.Name" - ] - }, - "storageactivityArn": { - "Fn::GetAtt": [ - "storageactivity", - "Outputs.Arn" - ] - }, - "storageactivityStreamArn": { - "Fn::GetAtt": [ - "storageactivity", - "Outputs.StreamArn" - ] - }, - "env": "main" - } - } - }, - "storageactivity": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/storage/activity-cloudformation-template.json", - "Parameters": { - "tableName": "activity", - "partitionKeyName": "id", - "partitionKeyType": "S", - "sortKeyName": "userId", - "sortKeyType": "S", - "env": "main" - } - } - }, - "storageavatars": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/storage/cloudformation-template.json", - "Parameters": { - "bucketName": "discus-avatars", - "selectedGuestPermissions": "", - "selectedAuthenticatedPermissions": "s3:PutObject,s3:GetObject,s3:ListBucket,s3:DeleteObject", - "unauthRoleName": { - "Ref": "UnauthRoleName" - }, - "authRoleName": { - "Ref": "AuthRoleName" - }, - "s3PrivatePolicy": "Private_policy_bf41454d", - "s3ProtectedPolicy": "Protected_policy_bf41454d", - "s3PublicPolicy": "Public_policy_bf41454d", - "s3ReadPolicy": "read_policy_bf41454d", - "s3UploadsPolicy": "Uploads_policy_bf41454d", - "authPolicyName": "s3_amplify_bf41454d", - "unauthPolicyName": "s3_amplify_bf41454d", - "AuthenticatedAllowList": "ALLOW", - "GuestAllowList": "DISALLOW", - "s3PermissionsAuthenticatedPrivate": "s3:PutObject,s3:GetObject,s3:DeleteObject", - "s3PermissionsAuthenticatedProtected": "s3:PutObject,s3:GetObject,s3:DeleteObject", - "s3PermissionsAuthenticatedPublic": "s3:PutObject,s3:GetObject,s3:DeleteObject", - "s3PermissionsAuthenticatedUploads": "s3:PutObject", - "s3PermissionsGuestPublic": "DISALLOW", - "s3PermissionsGuestUploads": "DISALLOW", - "env": "main" - } - } - }, - "storagebookmarks": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-main-c39a5-deployment/amplify-cfn-templates/storage/bookmarks-cloudformation-template.json", - "Parameters": { - "tableName": "bookmarks", - "partitionKeyName": "userId", - "partitionKeyType": "S", - "sortKeyName": "postId", - "sortKeyType": "S", - "env": "main" - } - } - }, - "UpdateRolesWithIDPFunction": { - "DependsOn": [ - "AuthRole", - "UnauthRole", - "authdiscussionsc578c16ec578c16e" - ], - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "ZipFile": { - "Fn::Join": [ - "\n", - [ - "const response = require('cfn-response');", - "const { IAMClient, GetRoleCommand, UpdateAssumeRolePolicyCommand } = require('@aws-sdk/client-iam');", - "exports.handler = function(event, context) {", - " // Don't return promise, response.send() marks context as done internally", - " const ignoredPromise = handleEvent(event, context)", - "};", - "async function handleEvent(event, context) {", - " try {", - " let authRoleName = event.ResourceProperties.authRoleName;", - " let unauthRoleName = event.ResourceProperties.unauthRoleName;", - " let idpId = event.ResourceProperties.idpId;", - " let authParamsJson = {", - " 'Version': '2012-10-17',", - " 'Statement': [{", - " 'Effect': 'Allow',", - " 'Principal': {'Federated': 'cognito-identity.amazonaws.com'},", - " 'Action': 'sts:AssumeRoleWithWebIdentity',", - " 'Condition': {", - " 'StringEquals': {'cognito-identity.amazonaws.com:aud': idpId},", - " 'ForAnyValue:StringLike': {'cognito-identity.amazonaws.com:amr': 'authenticated'}", - " }", - " }]", - " };", - " let unauthParamsJson = {", - " 'Version': '2012-10-17',", - " 'Statement': [{", - " 'Effect': 'Allow',", - " 'Principal': {'Federated': 'cognito-identity.amazonaws.com'},", - " 'Action': 'sts:AssumeRoleWithWebIdentity',", - " 'Condition': {", - " 'StringEquals': {'cognito-identity.amazonaws.com:aud': idpId},", - " 'ForAnyValue:StringLike': {'cognito-identity.amazonaws.com:amr': 'unauthenticated'}", - " }", - " }]", - " };", - " if (event.RequestType === 'Delete') {", - " try {", - " delete authParamsJson.Statement[0].Condition;", - " delete unauthParamsJson.Statement[0].Condition;", - " authParamsJson.Statement[0].Effect = 'Deny'", - " unauthParamsJson.Statement[0].Effect = 'Deny'", - " let authParams = {PolicyDocument: JSON.stringify(authParamsJson), RoleName: authRoleName};", - " let unauthParams = {PolicyDocument: JSON.stringify(unauthParamsJson), RoleName: unauthRoleName};", - " const iam = new IAMClient({region: event.ResourceProperties.region});", - " let res = await Promise.all([", - " iam.send(new GetRoleCommand({RoleName: authParams.RoleName})),", - " iam.send(new GetRoleCommand({RoleName: unauthParams.RoleName}))", - " ]);", - " res = await Promise.all([", - " iam.send(new UpdateAssumeRolePolicyCommand(authParams)),", - " iam.send(new UpdateAssumeRolePolicyCommand(unauthParams))", - " ]);", - " response.send(event, context, response.SUCCESS, {});", - " } catch (err) {", - " console.log(err.stack);", - " response.send(event, context, response.SUCCESS, {Error: err});", - " }", - " } else if (event.RequestType === 'Update' || event.RequestType === 'Create') {", - " const iam = new IAMClient({region: event.ResourceProperties.region});", - " let authParams = {PolicyDocument: JSON.stringify(authParamsJson), RoleName: authRoleName};", - " let unauthParams = {PolicyDocument: JSON.stringify(unauthParamsJson), RoleName: unauthRoleName};", - " const res = await Promise.all([", - " iam.send(new UpdateAssumeRolePolicyCommand(authParams)),", - " iam.send(new UpdateAssumeRolePolicyCommand(unauthParams))", - " ]);", - " response.send(event, context, response.SUCCESS, {});", - " }", - " } catch (err) {", - " console.log(err.stack);", - " response.send(event, context, response.FAILED, {Error: err});", - " }", - "};" - ] - ] - } - }, - "Handler": "index.handler", - "Runtime": "nodejs22.x", - "Timeout": 300, - "Role": { - "Fn::GetAtt": [ - "UpdateRolesWithIDPFunctionRole", - "Arn" - ] - } - } - }, - "UpdateRolesWithIDPFunctionOutputs": { - "Type": "Custom::LambdaCallout", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "UpdateRolesWithIDPFunction", - "Arn" - ] - }, - "region": { - "Ref": "AWS::Region" - }, - "idpId": { - "Fn::GetAtt": [ - "authdiscussionsc578c16ec578c16e", - "Outputs.IdentityPoolId" - ] - }, - "authRoleName": { - "Ref": "AuthRole" - }, - "unauthRoleName": { - "Ref": "UnauthRole" - } - } - }, - "UpdateRolesWithIDPFunctionRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "RoleName": { - "Fn::Join": [ - "", - [ - { - "Ref": "AuthRole" - }, - "-idp" - ] - ] - }, - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": [ - "lambda.amazonaws.com" - ] - }, - "Action": [ - "sts:AssumeRole" - ] - } - ] - }, - "Policies": [ - { - "PolicyName": "UpdateRolesWithIDPFunctionPolicy", - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "logs:CreateLogGroup", - "logs:CreateLogStream", - "logs:PutLogEvents" - ], - "Resource": "arn:aws:logs:*:*:*" - }, - { - "Effect": "Allow", - "Action": [ - "iam:UpdateAssumeRolePolicy", - "iam:GetRole" - ], - "Resource": { - "Fn::GetAtt": [ - "AuthRole", - "Arn" - ] - } - }, - { - "Effect": "Allow", - "Action": [ - "iam:UpdateAssumeRolePolicy", - "iam:GetRole" - ], - "Resource": { - "Fn::GetAtt": [ - "UnauthRole", - "Arn" - ] - } - } - ] - } - } - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-Comment-x.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-Comment-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-Comment-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-Comment-x.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-Comment-x.outputs.json new file mode 100644 index 00000000000..c490f2a2879 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-Comment-x.outputs.json @@ -0,0 +1,28 @@ +[ + { + "OutputKey": "GetAttCommentDataSourceName", + "OutputValue": "CommentTable", + "Description": "Your model DataSource name.", + "ExportName": "xw3yrfq7mngltcua43nucy7fg4:GetAtt:CommentDataSource:Name" + }, + { + "OutputKey": "GetAttCommentTableStreamArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Comment-xw3yrfq7mngltcua43nucy7fg4-x/stream/2026-04-15T03:53:19.114", + "Description": "Your DynamoDB table StreamArn.", + "ExportName": "xw3yrfq7mngltcua43nucy7fg4:GetAtt:CommentTable:StreamArn" + }, + { + "OutputKey": "transformerrootstackCommentCommentDataSourceA0E54655Name", + "OutputValue": "CommentTable" + }, + { + "OutputKey": "transformerrootstackCommentCommentTable5427FDE2Ref", + "OutputValue": "Comment-xw3yrfq7mngltcua43nucy7fg4-x" + }, + { + "OutputKey": "GetAttCommentTableName", + "OutputValue": "Comment-xw3yrfq7mngltcua43nucy7fg4-x", + "Description": "Your DynamoDB table name.", + "ExportName": "xw3yrfq7mngltcua43nucy7fg4:GetAtt:CommentTable:Name" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-Comment-x.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-Comment-x.parameters.json new file mode 100644 index 00000000000..1ce1dece01d --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-Comment-x.parameters.json @@ -0,0 +1,66 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptionOnCreateTopicDataResolverFnSubscriptionOnCreateTopicDataResolverFnAppSyncFunctionA25E598AFunctionId", + "ParameterValue": "nzhw35eydnfyhftp7kmjfhyr3m" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", + "ParameterValue": "amplify-appsync-files/db92bad357b2590353e82db2f2ec7d0fc9cfd30d" + }, + { + "ParameterKey": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationupdateTopicinit0FunctionMutationupdateTopicinit0FunctionAppSyncFunction16C763FFFunctionId", + "ParameterValue": "r3fmyrlvybdn7gw5wjca7aob5i" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", + "ParameterValue": "xw3yrfq7mngltcua43nucy7fg4" + }, + { + "ParameterKey": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationcreateTopicauth0FunctionMutationcreateTopicauth0FunctionAppSyncFunction2E1A1C86FunctionId", + "ParameterValue": "rjy3dn7bgza2feymbanjplniym" + }, + { + "ParameterKey": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId", + "ParameterValue": "dur6tkgudfevrpl2my5gxyqyia" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "false" + }, + { + "ParameterKey": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationcreateTopicinit0FunctionMutationcreateTopicinit0FunctionAppSyncFunction3ECD028CFunctionId", + "ParameterValue": "npdf275cd5g4nkiykjxmagc32q" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicauth0FunctionQuerygetTopicauth0FunctionAppSyncFunctionEC4A6DABFunctionId", + "ParameterValue": "27vbgibrgvgbdjj3h5d4yil6kq" + }, + { + "ParameterKey": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptiononCreateTopicauth0FunctionSubscriptiononCreateTopicauth0FunctionAppSyncFunctionA56CE4F0FunctionId", + "ParameterValue": "zq2obabb55bd3gkmcz2bizu5iq" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", + "ParameterValue": "amplify-discussions-x-x-deployment" + }, + { + "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", + "ParameterValue": "x" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-Comment-x.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-Comment-x.template.json new file mode 100644 index 00000000000..fbcb4707c39 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-Comment-x.template.json @@ -0,0 +1,1195 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicauth0FunctionQuerygetTopicauth0FunctionAppSyncFunctionEC4A6DABFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationcreateTopicinit0FunctionMutationcreateTopicinit0FunctionAppSyncFunction3ECD028CFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationcreateTopicauth0FunctionMutationcreateTopicauth0FunctionAppSyncFunction2E1A1C86FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationupdateTopicinit0FunctionMutationupdateTopicinit0FunctionAppSyncFunction16C763FFFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptiononCreateTopicauth0FunctionSubscriptiononCreateTopicauth0FunctionAppSyncFunctionA56CE4F0FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptionOnCreateTopicDataResolverFnSubscriptionOnCreateTopicDataResolverFnAppSyncFunctionA25E598AFunctionId": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "CommentTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + }, + { + "AttributeName": "postCommentsId", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "GlobalSecondaryIndexes": [ + { + "IndexName": "gsi-Post.comments", + "KeySchema": [ + { + "AttributeName": "postCommentsId", + "KeyType": "HASH" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + } + ], + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "Comment-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Retain" + }, + "CommentIAMRoleD5EC5F51": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem", + "dynamodb:ConditionCheckItem", + "dynamodb:DescribeTable", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "Comment-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "Comment-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess" + } + ], + "RoleName": { + "Fn::Join": [ + "", + [ + "CommentIAMRole20388d-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "CommentIAMRoleDefaultPolicyA8D6F6B5": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "CommentTable", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "CommentTable", + "Arn" + ] + }, + "/index/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "CommentIAMRoleDefaultPolicyA8D6F6B5", + "Roles": [ + { + "Ref": "CommentIAMRoleD5EC5F51" + } + ] + } + }, + "CommentDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "CommentTable" + } + }, + "Name": "CommentTable", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "CommentIAMRoleD5EC5F51", + "Arn" + ] + }, + "Type": "AMAZON_DYNAMODB" + }, + "DependsOn": [ + "CommentIAMRoleD5EC5F51" + ] + }, + "QueryGetCommentDataResolverFnQueryGetCommentDataResolverFnAppSyncFunction8473E2B0": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "CommentDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryGetCommentDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getComment.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getComment.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "CommentDataSource" + ] + }, + "GetCommentResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getComment", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicauth0FunctionQuerygetTopicauth0FunctionAppSyncFunctionEC4A6DABFunctionId" + }, + { + "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetCommentDataResolverFnQueryGetCommentDataResolverFnAppSyncFunction8473E2B0", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "CommentTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + } + }, + "QueryListCommentsDataResolverFnQueryListCommentsDataResolverFnAppSyncFunction474D4A91": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "CommentDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryListCommentsDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listComments.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listComments.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "CommentDataSource" + ] + }, + "ListCommentResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listComments", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicauth0FunctionQuerygetTopicauth0FunctionAppSyncFunctionEC4A6DABFunctionId" + }, + { + "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListCommentsDataResolverFnQueryListCommentsDataResolverFnAppSyncFunction474D4A91", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listComments\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "CommentTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + } + }, + "MutationCreateCommentDataResolverFnMutationCreateCommentDataResolverFnAppSyncFunctionD019FFE0": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "CommentDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationCreateCommentDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createComment.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createComment.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "CommentDataSource" + ] + }, + "CreateCommentResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createComment", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationcreateTopicinit0FunctionMutationcreateTopicinit0FunctionAppSyncFunction3ECD028CFunctionId" + }, + { + "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationcreateTopicauth0FunctionMutationcreateTopicauth0FunctionAppSyncFunction2E1A1C86FunctionId" + }, + { + "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreateCommentDataResolverFnMutationCreateCommentDataResolverFnAppSyncFunctionD019FFE0", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "CommentTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "MutationupdateCommentauth0FunctionMutationupdateCommentauth0FunctionAppSyncFunction4E4C7C30": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "CommentDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateCommentauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateComment.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateComment.auth.1.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "CommentDataSource" + ] + }, + "MutationUpdateCommentDataResolverFnMutationUpdateCommentDataResolverFnAppSyncFunctionB47372B5": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "CommentDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationUpdateCommentDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateComment.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateComment.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "CommentDataSource" + ] + }, + "UpdateCommentResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateComment", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationupdateTopicinit0FunctionMutationupdateTopicinit0FunctionAppSyncFunction16C763FFFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationupdateCommentauth0FunctionMutationupdateCommentauth0FunctionAppSyncFunction4E4C7C30", + "FunctionId" + ] + }, + { + "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdateCommentDataResolverFnMutationUpdateCommentDataResolverFnAppSyncFunctionB47372B5", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "CommentTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "MutationdeleteCommentauth0FunctionMutationdeleteCommentauth0FunctionAppSyncFunction268B298A": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "CommentDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeleteCommentauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteComment.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteComment.auth.1.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "CommentDataSource" + ] + }, + "MutationDeleteCommentDataResolverFnMutationDeleteCommentDataResolverFnAppSyncFunctionD661C8CB": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "CommentDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationDeleteCommentDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteComment.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteComment.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "CommentDataSource" + ] + }, + "DeleteCommentResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteComment", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationdeleteCommentauth0FunctionMutationdeleteCommentauth0FunctionAppSyncFunction268B298A", + "FunctionId" + ] + }, + { + "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeleteCommentDataResolverFnMutationDeleteCommentDataResolverFnAppSyncFunctionD661C8CB", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "CommentTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "SubscriptiononCreateCommentResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateComment", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptiononCreateTopicauth0FunctionSubscriptiononCreateTopicauth0FunctionAppSyncFunctionA56CE4F0FunctionId" + }, + { + "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId" + }, + { + "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptionOnCreateTopicDataResolverFnSubscriptionOnCreateTopicDataResolverFnAppSyncFunctionA25E598AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + }, + "SubscriptiononUpdateCommentResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateComment", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptiononCreateTopicauth0FunctionSubscriptiononCreateTopicauth0FunctionAppSyncFunctionA56CE4F0FunctionId" + }, + { + "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId" + }, + { + "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptionOnCreateTopicDataResolverFnSubscriptionOnCreateTopicDataResolverFnAppSyncFunctionA25E598AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + }, + "SubscriptiononDeleteCommentResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteComment", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptiononCreateTopicauth0FunctionSubscriptiononCreateTopicauth0FunctionAppSyncFunctionA56CE4F0FunctionId" + }, + { + "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId" + }, + { + "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptionOnCreateTopicDataResolverFnSubscriptionOnCreateTopicDataResolverFnAppSyncFunctionA25E598AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + } + }, + "Outputs": { + "GetAttCommentTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "CommentTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:CommentTable:StreamArn" + ] + ] + } + } + }, + "GetAttCommentTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "CommentTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:CommentTable:Name" + ] + ] + } + } + }, + "GetAttCommentDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "CommentDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:CommentDataSource:Name" + ] + ] + } + } + }, + "transformerrootstackCommentCommentDataSourceA0E54655Name": { + "Value": { + "Fn::GetAtt": [ + "CommentDataSource", + "Name" + ] + } + }, + "transformerrootstackCommentCommentTable5427FDE2Ref": { + "Value": { + "Ref": "CommentTable" + } + } + } +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-ConnectionStack-x.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-ConnectionStack-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-ConnectionStack-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-ConnectionStack-x.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-ConnectionStack-x.outputs.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-ConnectionStack-x.outputs.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-ConnectionStack-x.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-ConnectionStack-x.parameters.json new file mode 100644 index 00000000000..f0d4d69695c --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-ConnectionStack-x.parameters.json @@ -0,0 +1,42 @@ +[ + { + "ParameterKey": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicTopicTableFD91FB92Ref", + "ParameterValue": "Topic-xw3yrfq7mngltcua43nucy7fg4-x" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", + "ParameterValue": "amplify-appsync-files/db92bad357b2590353e82db2f2ec7d0fc9cfd30d" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "referencetotransformerrootstackPostNestedStackPostNestedStackResource45FCAC5EOutputstransformerrootstackPostPostTable34CAE87BRef", + "ParameterValue": "Post-xw3yrfq7mngltcua43nucy7fg4-x" + }, + { + "ParameterKey": "referencetotransformerrootstackCommentNestedStackCommentNestedStackResource199283FBOutputstransformerrootstackCommentCommentTable5427FDE2Ref", + "ParameterValue": "Comment-xw3yrfq7mngltcua43nucy7fg4-x" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", + "ParameterValue": "xw3yrfq7mngltcua43nucy7fg4" + }, + { + "ParameterKey": "referencetotransformerrootstackCommentNestedStackCommentNestedStackResource199283FBOutputstransformerrootstackCommentCommentDataSourceA0E54655Name", + "ParameterValue": "CommentTable" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", + "ParameterValue": "amplify-discussions-x-x-deployment" + }, + { + "ParameterKey": "referencetotransformerrootstackPostNestedStackPostNestedStackResource45FCAC5EOutputstransformerrootstackPostPostDataSource6998E105Name", + "ParameterValue": "PostTable" + }, + { + "ParameterKey": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicTopicDataSource63D2F34BName", + "ParameterValue": "TopicTable" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-ConnectionStack-x.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-ConnectionStack-x.template.json new file mode 100644 index 00000000000..32cfbcb8638 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-ConnectionStack-x.template.json @@ -0,0 +1,422 @@ +{ + "Resources": { + "Topicpostsauth0FunctionTopicpostsauth0FunctionAppSyncFunctionF8CB58E2": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "Topicpostsauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Topic.posts.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "TopicPostsDataResolverFnTopicPostsDataResolverFnAppSyncFunctionBB79629F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackPostNestedStackPostNestedStackResource45FCAC5EOutputstransformerrootstackPostPostDataSource6998E105Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "TopicPostsDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Topic.posts.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Topic.posts.res.vtl" + ] + ] + } + } + }, + "TopicpostsResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "posts", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "Topicpostsauth0FunctionTopicpostsauth0FunctionAppSyncFunctionF8CB58E2", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "TopicPostsDataResolverFnTopicPostsDataResolverFnAppSyncFunctionBB79629F", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Topic\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"posts\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackPostNestedStackPostNestedStackResource45FCAC5EOutputstransformerrootstackPostPostTable34CAE87BRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Topic" + } + }, + "PostCommentsDataResolverFnPostCommentsDataResolverFnAppSyncFunction87EBA9A8": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackCommentNestedStackCommentNestedStackResource199283FBOutputstransformerrootstackCommentCommentDataSourceA0E54655Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "PostCommentsDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Post.comments.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Post.comments.res.vtl" + ] + ] + } + } + }, + "PostcommentsResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "comments", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "Topicpostsauth0FunctionTopicpostsauth0FunctionAppSyncFunctionF8CB58E2", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "PostCommentsDataResolverFnPostCommentsDataResolverFnAppSyncFunction87EBA9A8", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Post\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"comments\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackCommentNestedStackCommentNestedStackResource199283FBOutputstransformerrootstackCommentCommentTable5427FDE2Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Post" + } + }, + "PostTopicDataResolverFnPostTopicDataResolverFnAppSyncFunctionEF6EA503": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicTopicDataSource63D2F34BName" + }, + "FunctionVersion": "2018-05-29", + "Name": "PostTopicDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Post.topic.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Post.topic.res.vtl" + ] + ] + } + } + }, + "PosttopicResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "topic", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "Topicpostsauth0FunctionTopicpostsauth0FunctionAppSyncFunctionF8CB58E2", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "PostTopicDataResolverFnPostTopicDataResolverFnAppSyncFunctionEF6EA503", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Post\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"topic\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicTopicTableFD91FB92Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Post" + } + }, + "CommentPostDataResolverFnCommentPostDataResolverFnAppSyncFunction20ABACCE": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackPostNestedStackPostNestedStackResource45FCAC5EOutputstransformerrootstackPostPostDataSource6998E105Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "CommentPostDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Comment.post.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Comment.post.res.vtl" + ] + ] + } + } + }, + "CommentpostResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "post", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "Topicpostsauth0FunctionTopicpostsauth0FunctionAppSyncFunctionF8CB58E2", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "CommentPostDataResolverFnCommentPostDataResolverFnAppSyncFunction20ABACCE", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Comment\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"post\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackPostNestedStackPostNestedStackResource45FCAC5EOutputstransformerrootstackPostPostTable34CAE87BRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Comment" + } + } + }, + "Parameters": { + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackPostNestedStackPostNestedStackResource45FCAC5EOutputstransformerrootstackPostPostDataSource6998E105Name": { + "Type": "String" + }, + "referencetotransformerrootstackPostNestedStackPostNestedStackResource45FCAC5EOutputstransformerrootstackPostPostTable34CAE87BRef": { + "Type": "String" + }, + "referencetotransformerrootstackCommentNestedStackCommentNestedStackResource199283FBOutputstransformerrootstackCommentCommentDataSourceA0E54655Name": { + "Type": "String" + }, + "referencetotransformerrootstackCommentNestedStackCommentNestedStackResource199283FBOutputstransformerrootstackCommentCommentTable5427FDE2Ref": { + "Type": "String" + }, + "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicTopicDataSource63D2F34BName": { + "Type": "String" + }, + "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicTopicTableFD91FB92Ref": { + "Type": "String" + } + } +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-CustomResourcesjson-x.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-CustomResourcesjson-x.description.txt new file mode 100644 index 00000000000..21e1447423e --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-CustomResourcesjson-x.description.txt @@ -0,0 +1 @@ +An auto-generated nested stack. diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-CustomResourcesjson-x.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-CustomResourcesjson-x.outputs.json new file mode 100644 index 00000000000..291e7aad7f7 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-CustomResourcesjson-x.outputs.json @@ -0,0 +1,7 @@ +[ + { + "OutputKey": "EmptyOutput", + "OutputValue": "", + "Description": "An empty output. You may delete this if you have at least one resource above." + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-CustomResourcesjson-x.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-CustomResourcesjson-x.parameters.json new file mode 100644 index 00000000000..a62a850d22c --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-CustomResourcesjson-x.parameters.json @@ -0,0 +1,22 @@ +[ + { + "ParameterKey": "S3DeploymentBucket", + "ParameterValue": "amplify-discussions-x-x-deployment" + }, + { + "ParameterKey": "AppSyncApiId", + "ParameterValue": "xw3yrfq7mngltcua43nucy7fg4" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "S3DeploymentRootKey", + "ParameterValue": "amplify-appsync-files/db92bad357b2590353e82db2f2ec7d0fc9cfd30d" + }, + { + "ParameterKey": "AppSyncApiName", + "ParameterValue": "discussions" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-CustomResourcesjson-x.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-CustomResourcesjson-x.template.json new file mode 100644 index 00000000000..5fe357d6096 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-CustomResourcesjson-x.template.json @@ -0,0 +1,61 @@ +{ + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "An auto-generated nested stack.", + "Metadata": {}, + "Parameters": { + "AppSyncApiId": { + "Type": "String", + "Description": "The id of the AppSync API associated with this project." + }, + "AppSyncApiName": { + "Type": "String", + "Description": "The name of the AppSync API", + "Default": "AppSyncSimpleTransform" + }, + "env": { + "Type": "String", + "Description": "The environment name. e.g. Dev, Test, or Production", + "Default": "NONE" + }, + "S3DeploymentBucket": { + "Type": "String", + "Description": "The S3 bucket containing all deployment assets for the project." + }, + "S3DeploymentRootKey": { + "Type": "String", + "Description": "An S3 key relative to the S3DeploymentBucket that points to the root\nof the deployment directory." + } + }, + "Resources": { + "EmptyResource": { + "Type": "Custom::EmptyResource", + "Condition": "AlwaysFalse" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + } + ] + }, + "AlwaysFalse": { + "Fn::Equals": [ + "true", + "false" + ] + } + }, + "Outputs": { + "EmptyOutput": { + "Description": "An empty output. You may delete this if you have at least one resource above.", + "Value": "" + } + } +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-FunctionDirectiveStack-x.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-FunctionDirectiveStack-x.description.txt new file mode 100644 index 00000000000..6b3d983ba60 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-FunctionDirectiveStack-x.description.txt @@ -0,0 +1 @@ +An auto-generated nested stack for the @function directive. diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-FunctionDirectiveStack-x.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-FunctionDirectiveStack-x.outputs.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-FunctionDirectiveStack-x.outputs.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-FunctionDirectiveStack-x.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-FunctionDirectiveStack-x.parameters.json new file mode 100644 index 00000000000..c0809bff5cf --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-FunctionDirectiveStack-x.parameters.json @@ -0,0 +1,22 @@ +[ + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", + "ParameterValue": "amplify-appsync-files/db92bad357b2590353e82db2f2ec7d0fc9cfd30d" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", + "ParameterValue": "xw3yrfq7mngltcua43nucy7fg4" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", + "ParameterValue": "amplify-discussions-x-x-deployment" + }, + { + "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", + "ParameterValue": "x" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-FunctionDirectiveStack-x.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-FunctionDirectiveStack-x.template.json new file mode 100644 index 00000000000..5779eb40eef --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-FunctionDirectiveStack-x.template.json @@ -0,0 +1,281 @@ +{ + "Description": "An auto-generated nested stack for the @function directive.", + "AWSTemplateFormatVersion": "2010-09-09", + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + } + }, + "Resources": { + "FetchuseractivityLambdaDataSourceServiceRole6102CA71": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + } + } + }, + "FetchuseractivityLambdaDataSourceServiceRoleDefaultPolicy91915AF7": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchuseractivity-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchuseractivity" + } + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchuseractivity-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchuseractivity" + } + ] + }, + ":*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "FetchuseractivityLambdaDataSourceServiceRoleDefaultPolicy91915AF7", + "Roles": [ + { + "Ref": "FetchuseractivityLambdaDataSourceServiceRole6102CA71" + } + ] + } + }, + "FetchuseractivityLambdaDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "LambdaConfig": { + "LambdaFunctionArn": { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchuseractivity-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:fetchuseractivity" + } + ] + } + }, + "Name": "FetchuseractivityLambdaDataSource", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "FetchuseractivityLambdaDataSourceServiceRole6102CA71", + "Arn" + ] + }, + "Type": "AWS_LAMBDA" + } + }, + "InvokeFetchuseractivityLambdaDataSourceInvokeFetchuseractivityLambdaDataSourceAppSyncFunction05F09D4C": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "FetchuseractivityLambdaDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "InvokeFetchuseractivityLambdaDataSource", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeFetchuseractivityLambdaDataSource.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeFetchuseractivityLambdaDataSource.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "FetchuseractivityLambdaDataSource" + ] + }, + "QueryfetchUserActivityResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "fetchUserActivity", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QueryFetchUserActivityAuthFNQueryFetchUserActivityAuthFNAppSyncFunctionC061F612", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "InvokeFetchuseractivityLambdaDataSourceInvokeFetchuseractivityLambdaDataSourceAppSyncFunction05F09D4C", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"fetchUserActivity\"))\n{}\n## [End] Stash resolver specific context.. **", + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.fetchUserActivity.res.vtl" + ] + ] + }, + "TypeName": "Query" + } + }, + "QueryFetchUserActivityAuthFNQueryFetchUserActivityAuthFNAppSyncFunctionC061F612": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryFetchUserActivityAuthFN", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.fetchUserActivity.auth.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + } + }, + "Parameters": { + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Type": "String" + } + } +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-Post-x.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-Post-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-Post-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-Post-x.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-Post-x.outputs.json new file mode 100644 index 00000000000..66f684eb388 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-Post-x.outputs.json @@ -0,0 +1,28 @@ +[ + { + "OutputKey": "GetAttPostDataSourceName", + "OutputValue": "PostTable", + "Description": "Your model DataSource name.", + "ExportName": "xw3yrfq7mngltcua43nucy7fg4:GetAtt:PostDataSource:Name" + }, + { + "OutputKey": "GetAttPostTableStreamArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Post-xw3yrfq7mngltcua43nucy7fg4-x/stream/2026-04-15T03:53:19.531", + "Description": "Your DynamoDB table StreamArn.", + "ExportName": "xw3yrfq7mngltcua43nucy7fg4:GetAtt:PostTable:StreamArn" + }, + { + "OutputKey": "transformerrootstackPostPostDataSource6998E105Name", + "OutputValue": "PostTable" + }, + { + "OutputKey": "GetAttPostTableName", + "OutputValue": "Post-xw3yrfq7mngltcua43nucy7fg4-x", + "Description": "Your DynamoDB table name.", + "ExportName": "xw3yrfq7mngltcua43nucy7fg4:GetAtt:PostTable:Name" + }, + { + "OutputKey": "transformerrootstackPostPostTable34CAE87BRef", + "OutputValue": "Post-xw3yrfq7mngltcua43nucy7fg4-x" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-Post-x.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-Post-x.parameters.json new file mode 100644 index 00000000000..1ce1dece01d --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-Post-x.parameters.json @@ -0,0 +1,66 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptionOnCreateTopicDataResolverFnSubscriptionOnCreateTopicDataResolverFnAppSyncFunctionA25E598AFunctionId", + "ParameterValue": "nzhw35eydnfyhftp7kmjfhyr3m" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", + "ParameterValue": "amplify-appsync-files/db92bad357b2590353e82db2f2ec7d0fc9cfd30d" + }, + { + "ParameterKey": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationupdateTopicinit0FunctionMutationupdateTopicinit0FunctionAppSyncFunction16C763FFFunctionId", + "ParameterValue": "r3fmyrlvybdn7gw5wjca7aob5i" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", + "ParameterValue": "xw3yrfq7mngltcua43nucy7fg4" + }, + { + "ParameterKey": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationcreateTopicauth0FunctionMutationcreateTopicauth0FunctionAppSyncFunction2E1A1C86FunctionId", + "ParameterValue": "rjy3dn7bgza2feymbanjplniym" + }, + { + "ParameterKey": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId", + "ParameterValue": "dur6tkgudfevrpl2my5gxyqyia" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "false" + }, + { + "ParameterKey": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationcreateTopicinit0FunctionMutationcreateTopicinit0FunctionAppSyncFunction3ECD028CFunctionId", + "ParameterValue": "npdf275cd5g4nkiykjxmagc32q" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicauth0FunctionQuerygetTopicauth0FunctionAppSyncFunctionEC4A6DABFunctionId", + "ParameterValue": "27vbgibrgvgbdjj3h5d4yil6kq" + }, + { + "ParameterKey": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptiononCreateTopicauth0FunctionSubscriptiononCreateTopicauth0FunctionAppSyncFunctionA56CE4F0FunctionId", + "ParameterValue": "zq2obabb55bd3gkmcz2bizu5iq" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", + "ParameterValue": "amplify-discussions-x-x-deployment" + }, + { + "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", + "ParameterValue": "x" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-Post-x.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-Post-x.template.json new file mode 100644 index 00000000000..35989728c1e --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-Post-x.template.json @@ -0,0 +1,1195 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicauth0FunctionQuerygetTopicauth0FunctionAppSyncFunctionEC4A6DABFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationcreateTopicinit0FunctionMutationcreateTopicinit0FunctionAppSyncFunction3ECD028CFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationcreateTopicauth0FunctionMutationcreateTopicauth0FunctionAppSyncFunction2E1A1C86FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationupdateTopicinit0FunctionMutationupdateTopicinit0FunctionAppSyncFunction16C763FFFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptiononCreateTopicauth0FunctionSubscriptiononCreateTopicauth0FunctionAppSyncFunctionA56CE4F0FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptionOnCreateTopicDataResolverFnSubscriptionOnCreateTopicDataResolverFnAppSyncFunctionA25E598AFunctionId": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "PostTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + }, + { + "AttributeName": "topicPostsId", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "GlobalSecondaryIndexes": [ + { + "IndexName": "gsi-Topic.posts", + "KeySchema": [ + { + "AttributeName": "topicPostsId", + "KeyType": "HASH" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + } + ], + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "Post-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Retain" + }, + "PostIAMRole83BF708F": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem", + "dynamodb:ConditionCheckItem", + "dynamodb:DescribeTable", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "Post-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "Post-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess" + } + ], + "RoleName": { + "Fn::Join": [ + "", + [ + "PostIAMRolebbce9b-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "PostIAMRoleDefaultPolicy04190CA0": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "PostTable", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "PostTable", + "Arn" + ] + }, + "/index/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "PostIAMRoleDefaultPolicy04190CA0", + "Roles": [ + { + "Ref": "PostIAMRole83BF708F" + } + ] + } + }, + "PostDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "PostTable" + } + }, + "Name": "PostTable", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "PostIAMRole83BF708F", + "Arn" + ] + }, + "Type": "AMAZON_DYNAMODB" + }, + "DependsOn": [ + "PostIAMRole83BF708F" + ] + }, + "QueryGetPostDataResolverFnQueryGetPostDataResolverFnAppSyncFunction06724190": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "PostDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryGetPostDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getPost.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getPost.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "PostDataSource" + ] + }, + "GetPostResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getPost", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicauth0FunctionQuerygetTopicauth0FunctionAppSyncFunctionEC4A6DABFunctionId" + }, + { + "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetPostDataResolverFnQueryGetPostDataResolverFnAppSyncFunction06724190", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getPost\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "PostTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + } + }, + "QueryListPostsDataResolverFnQueryListPostsDataResolverFnAppSyncFunction3D526AB7": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "PostDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryListPostsDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listPosts.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listPosts.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "PostDataSource" + ] + }, + "ListPostResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listPosts", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicauth0FunctionQuerygetTopicauth0FunctionAppSyncFunctionEC4A6DABFunctionId" + }, + { + "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListPostsDataResolverFnQueryListPostsDataResolverFnAppSyncFunction3D526AB7", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listPosts\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "PostTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + } + }, + "MutationCreatePostDataResolverFnMutationCreatePostDataResolverFnAppSyncFunctionE45E2000": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "PostDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationCreatePostDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createPost.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createPost.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "PostDataSource" + ] + }, + "CreatePostResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createPost", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationcreateTopicinit0FunctionMutationcreateTopicinit0FunctionAppSyncFunction3ECD028CFunctionId" + }, + { + "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationcreateTopicauth0FunctionMutationcreateTopicauth0FunctionAppSyncFunction2E1A1C86FunctionId" + }, + { + "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreatePostDataResolverFnMutationCreatePostDataResolverFnAppSyncFunctionE45E2000", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createPost\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "PostTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "MutationupdatePostauth0FunctionMutationupdatePostauth0FunctionAppSyncFunction3E057835": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "PostDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdatePostauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updatePost.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updatePost.auth.1.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "PostDataSource" + ] + }, + "MutationUpdatePostDataResolverFnMutationUpdatePostDataResolverFnAppSyncFunctionBF7D410D": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "PostDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationUpdatePostDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updatePost.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updatePost.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "PostDataSource" + ] + }, + "UpdatePostResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updatePost", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationupdateTopicinit0FunctionMutationupdateTopicinit0FunctionAppSyncFunction16C763FFFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationupdatePostauth0FunctionMutationupdatePostauth0FunctionAppSyncFunction3E057835", + "FunctionId" + ] + }, + { + "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdatePostDataResolverFnMutationUpdatePostDataResolverFnAppSyncFunctionBF7D410D", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updatePost\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "PostTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "MutationdeletePostauth0FunctionMutationdeletePostauth0FunctionAppSyncFunctionFBE21CB7": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "PostDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeletePostauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deletePost.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deletePost.auth.1.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "PostDataSource" + ] + }, + "MutationDeletePostDataResolverFnMutationDeletePostDataResolverFnAppSyncFunction45B37C12": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "PostDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationDeletePostDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deletePost.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deletePost.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "PostDataSource" + ] + }, + "DeletePostResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deletePost", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationdeletePostauth0FunctionMutationdeletePostauth0FunctionAppSyncFunctionFBE21CB7", + "FunctionId" + ] + }, + { + "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeletePostDataResolverFnMutationDeletePostDataResolverFnAppSyncFunction45B37C12", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deletePost\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "PostTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "SubscriptiononCreatePostResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreatePost", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptiononCreateTopicauth0FunctionSubscriptiononCreateTopicauth0FunctionAppSyncFunctionA56CE4F0FunctionId" + }, + { + "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId" + }, + { + "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptionOnCreateTopicDataResolverFnSubscriptionOnCreateTopicDataResolverFnAppSyncFunctionA25E598AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreatePost\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + }, + "SubscriptiononUpdatePostResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdatePost", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptiononCreateTopicauth0FunctionSubscriptiononCreateTopicauth0FunctionAppSyncFunctionA56CE4F0FunctionId" + }, + { + "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId" + }, + { + "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptionOnCreateTopicDataResolverFnSubscriptionOnCreateTopicDataResolverFnAppSyncFunctionA25E598AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdatePost\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + }, + "SubscriptiononDeletePostResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeletePost", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptiononCreateTopicauth0FunctionSubscriptiononCreateTopicauth0FunctionAppSyncFunctionA56CE4F0FunctionId" + }, + { + "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId" + }, + { + "Ref": "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptionOnCreateTopicDataResolverFnSubscriptionOnCreateTopicDataResolverFnAppSyncFunctionA25E598AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeletePost\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + } + }, + "Outputs": { + "GetAttPostTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "PostTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:PostTable:StreamArn" + ] + ] + } + } + }, + "GetAttPostTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "PostTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:PostTable:Name" + ] + ] + } + } + }, + "GetAttPostDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "PostDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:PostDataSource:Name" + ] + ] + } + } + }, + "transformerrootstackPostPostDataSource6998E105Name": { + "Value": { + "Fn::GetAtt": [ + "PostDataSource", + "Name" + ] + } + }, + "transformerrootstackPostPostTable34CAE87BRef": { + "Value": { + "Ref": "PostTable" + } + } + } +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-Topic-x.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-Topic-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-Topic-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-Topic-x.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-Topic-x.outputs.json new file mode 100644 index 00000000000..78f9651955d --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-Topic-x.outputs.json @@ -0,0 +1,56 @@ +[ + { + "OutputKey": "GetAttTopicTableStreamArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Topic-xw3yrfq7mngltcua43nucy7fg4-x/stream/2026-04-15T03:52:31.420", + "Description": "Your DynamoDB table StreamArn.", + "ExportName": "xw3yrfq7mngltcua43nucy7fg4:GetAtt:TopicTable:StreamArn" + }, + { + "OutputKey": "GetAttTopicTableName", + "OutputValue": "Topic-xw3yrfq7mngltcua43nucy7fg4-x", + "Description": "Your DynamoDB table name.", + "ExportName": "xw3yrfq7mngltcua43nucy7fg4:GetAtt:TopicTable:Name" + }, + { + "OutputKey": "transformerrootstackTopicQuerygetTopicauth0FunctionQuerygetTopicauth0FunctionAppSyncFunctionEC4A6DABFunctionId", + "OutputValue": "27vbgibrgvgbdjj3h5d4yil6kq" + }, + { + "OutputKey": "transformerrootstackTopicSubscriptiononCreateTopicauth0FunctionSubscriptiononCreateTopicauth0FunctionAppSyncFunctionA56CE4F0FunctionId", + "OutputValue": "zq2obabb55bd3gkmcz2bizu5iq" + }, + { + "OutputKey": "transformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId", + "OutputValue": "dur6tkgudfevrpl2my5gxyqyia" + }, + { + "OutputKey": "GetAttTopicDataSourceName", + "OutputValue": "TopicTable", + "Description": "Your model DataSource name.", + "ExportName": "xw3yrfq7mngltcua43nucy7fg4:GetAtt:TopicDataSource:Name" + }, + { + "OutputKey": "transformerrootstackTopicTopicTableFD91FB92Ref", + "OutputValue": "Topic-xw3yrfq7mngltcua43nucy7fg4-x" + }, + { + "OutputKey": "transformerrootstackTopicTopicDataSource63D2F34BName", + "OutputValue": "TopicTable" + }, + { + "OutputKey": "transformerrootstackTopicMutationcreateTopicinit0FunctionMutationcreateTopicinit0FunctionAppSyncFunction3ECD028CFunctionId", + "OutputValue": "npdf275cd5g4nkiykjxmagc32q" + }, + { + "OutputKey": "transformerrootstackTopicSubscriptionOnCreateTopicDataResolverFnSubscriptionOnCreateTopicDataResolverFnAppSyncFunctionA25E598AFunctionId", + "OutputValue": "nzhw35eydnfyhftp7kmjfhyr3m" + }, + { + "OutputKey": "transformerrootstackTopicMutationcreateTopicauth0FunctionMutationcreateTopicauth0FunctionAppSyncFunction2E1A1C86FunctionId", + "OutputValue": "rjy3dn7bgza2feymbanjplniym" + }, + { + "OutputKey": "transformerrootstackTopicMutationupdateTopicinit0FunctionMutationupdateTopicinit0FunctionAppSyncFunction16C763FFFunctionId", + "OutputValue": "r3fmyrlvybdn7gw5wjca7aob5i" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-Topic-x.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-Topic-x.parameters.json new file mode 100644 index 00000000000..310634136de --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-Topic-x.parameters.json @@ -0,0 +1,42 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", + "ParameterValue": "amplify-appsync-files/db92bad357b2590353e82db2f2ec7d0fc9cfd30d" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", + "ParameterValue": "xw3yrfq7mngltcua43nucy7fg4" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", + "ParameterValue": "amplify-discussions-x-x-deployment" + }, + { + "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", + "ParameterValue": "x" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-Topic-x.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-Topic-x.template.json new file mode 100644 index 00000000000..a31660f7f2a --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x-Topic-x.template.json @@ -0,0 +1,1470 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "TopicTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "Topic-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Retain" + }, + "TopicIAMRoleD9B4C845": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem", + "dynamodb:ConditionCheckItem", + "dynamodb:DescribeTable", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "Topic-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "Topic-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess" + } + ], + "RoleName": { + "Fn::Join": [ + "", + [ + "TopicIAMRole014e70-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "TopicIAMRoleDefaultPolicy205E7C23": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "TopicTable", + "Arn" + ] + }, + { + "Ref": "AWS::NoValue" + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "TopicIAMRoleDefaultPolicy205E7C23", + "Roles": [ + { + "Ref": "TopicIAMRoleD9B4C845" + } + ] + } + }, + "TopicDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "TopicTable" + } + }, + "Name": "TopicTable", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "TopicIAMRoleD9B4C845", + "Arn" + ] + }, + "Type": "AMAZON_DYNAMODB" + }, + "DependsOn": [ + "TopicIAMRoleD9B4C845" + ] + }, + "QuerygetTopicauth0FunctionQuerygetTopicauth0FunctionAppSyncFunction2B9304CA": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetTopicauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getTopic.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "QuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction6FE846B8": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetTopicpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getTopic.postAuth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "QueryGetTopicDataResolverFnQueryGetTopicDataResolverFnAppSyncFunction82CCA00A": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TopicDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryGetTopicDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getTopic.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getTopic.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "TopicDataSource" + ] + }, + "GetTopicResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getTopic", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerygetTopicauth0FunctionQuerygetTopicauth0FunctionAppSyncFunction2B9304CA", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction6FE846B8", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryGetTopicDataResolverFnQueryGetTopicDataResolverFnAppSyncFunction82CCA00A", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getTopic\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "TopicTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + } + }, + "QueryListTopicsDataResolverFnQueryListTopicsDataResolverFnAppSyncFunction26E7FF8F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TopicDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryListTopicsDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listTopics.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listTopics.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "TopicDataSource" + ] + }, + "ListTopicResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listTopics", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerygetTopicauth0FunctionQuerygetTopicauth0FunctionAppSyncFunction2B9304CA", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction6FE846B8", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryListTopicsDataResolverFnQueryListTopicsDataResolverFnAppSyncFunction26E7FF8F", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listTopics\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "TopicTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + } + }, + "MutationcreateTopicinit0FunctionMutationcreateTopicinit0FunctionAppSyncFunction4DB06436": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateTopicinit0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createTopic.init.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "MutationcreateTopicauth0FunctionMutationcreateTopicauth0FunctionAppSyncFunction47662DC9": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateTopicauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createTopic.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "MutationCreateTopicDataResolverFnMutationCreateTopicDataResolverFnAppSyncFunction3A6C31C4": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TopicDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationCreateTopicDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createTopic.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createTopic.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "TopicDataSource" + ] + }, + "CreateTopicResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createTopic", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationcreateTopicinit0FunctionMutationcreateTopicinit0FunctionAppSyncFunction4DB06436", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationcreateTopicauth0FunctionMutationcreateTopicauth0FunctionAppSyncFunction47662DC9", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction6FE846B8", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationCreateTopicDataResolverFnMutationCreateTopicDataResolverFnAppSyncFunction3A6C31C4", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createTopic\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "TopicTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "MutationupdateTopicinit0FunctionMutationupdateTopicinit0FunctionAppSyncFunction64D17734": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateTopicinit0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateTopic.init.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "MutationupdateTopicauth0FunctionMutationupdateTopicauth0FunctionAppSyncFunction56C81857": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TopicDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateTopicauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateTopic.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateTopic.auth.1.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "TopicDataSource" + ] + }, + "MutationUpdateTopicDataResolverFnMutationUpdateTopicDataResolverFnAppSyncFunctionDA5D9F2F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TopicDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationUpdateTopicDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateTopic.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateTopic.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "TopicDataSource" + ] + }, + "UpdateTopicResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateTopic", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationupdateTopicinit0FunctionMutationupdateTopicinit0FunctionAppSyncFunction64D17734", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationupdateTopicauth0FunctionMutationupdateTopicauth0FunctionAppSyncFunction56C81857", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction6FE846B8", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationUpdateTopicDataResolverFnMutationUpdateTopicDataResolverFnAppSyncFunctionDA5D9F2F", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateTopic\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "TopicTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "MutationdeleteTopicauth0FunctionMutationdeleteTopicauth0FunctionAppSyncFunctionDA9FFFB5": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TopicDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeleteTopicauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteTopic.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteTopic.auth.1.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "TopicDataSource" + ] + }, + "MutationDeleteTopicDataResolverFnMutationDeleteTopicDataResolverFnAppSyncFunction13577BCB": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TopicDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationDeleteTopicDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteTopic.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteTopic.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "TopicDataSource" + ] + }, + "DeleteTopicResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteTopic", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationdeleteTopicauth0FunctionMutationdeleteTopicauth0FunctionAppSyncFunctionDA9FFFB5", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction6FE846B8", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationDeleteTopicDataResolverFnMutationDeleteTopicDataResolverFnAppSyncFunction13577BCB", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteTopic\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "TopicTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "SubscriptiononCreateTopicauth0FunctionSubscriptiononCreateTopicauth0FunctionAppSyncFunction1736E1E4": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononCreateTopicauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Subscription.onCreateTopic.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "SubscriptionOnCreateTopicDataResolverFnSubscriptionOnCreateTopicDataResolverFnAppSyncFunctionE8F09879": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnCreateTopicDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Subscription.onCreateTopic.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Subscription.onCreateTopic.res.vtl" + ] + ] + } + } + }, + "SubscriptiononCreateTopicResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateTopic", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononCreateTopicauth0FunctionSubscriptiononCreateTopicauth0FunctionAppSyncFunction1736E1E4", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction6FE846B8", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnCreateTopicDataResolverFnSubscriptionOnCreateTopicDataResolverFnAppSyncFunctionE8F09879", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateTopic\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + }, + "SubscriptiononUpdateTopicResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateTopic", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononCreateTopicauth0FunctionSubscriptiononCreateTopicauth0FunctionAppSyncFunction1736E1E4", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction6FE846B8", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnCreateTopicDataResolverFnSubscriptionOnCreateTopicDataResolverFnAppSyncFunctionE8F09879", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateTopic\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + }, + "SubscriptiononDeleteTopicResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteTopic", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononCreateTopicauth0FunctionSubscriptiononCreateTopicauth0FunctionAppSyncFunction1736E1E4", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction6FE846B8", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnCreateTopicDataResolverFnSubscriptionOnCreateTopicDataResolverFnAppSyncFunctionE8F09879", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteTopic\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + } + }, + "Outputs": { + "GetAttTopicTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "TopicTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:TopicTable:StreamArn" + ] + ] + } + } + }, + "GetAttTopicTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "TopicTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:TopicTable:Name" + ] + ] + } + } + }, + "GetAttTopicDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "TopicDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:TopicDataSource:Name" + ] + ] + } + } + }, + "transformerrootstackTopicQuerygetTopicauth0FunctionQuerygetTopicauth0FunctionAppSyncFunctionEC4A6DABFunctionId": { + "Value": { + "Fn::GetAtt": [ + "QuerygetTopicauth0FunctionQuerygetTopicauth0FunctionAppSyncFunction2B9304CA", + "FunctionId" + ] + } + }, + "transformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId": { + "Value": { + "Fn::GetAtt": [ + "QuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction6FE846B8", + "FunctionId" + ] + } + }, + "transformerrootstackTopicMutationcreateTopicinit0FunctionMutationcreateTopicinit0FunctionAppSyncFunction3ECD028CFunctionId": { + "Value": { + "Fn::GetAtt": [ + "MutationcreateTopicinit0FunctionMutationcreateTopicinit0FunctionAppSyncFunction4DB06436", + "FunctionId" + ] + } + }, + "transformerrootstackTopicMutationcreateTopicauth0FunctionMutationcreateTopicauth0FunctionAppSyncFunction2E1A1C86FunctionId": { + "Value": { + "Fn::GetAtt": [ + "MutationcreateTopicauth0FunctionMutationcreateTopicauth0FunctionAppSyncFunction47662DC9", + "FunctionId" + ] + } + }, + "transformerrootstackTopicMutationupdateTopicinit0FunctionMutationupdateTopicinit0FunctionAppSyncFunction16C763FFFunctionId": { + "Value": { + "Fn::GetAtt": [ + "MutationupdateTopicinit0FunctionMutationupdateTopicinit0FunctionAppSyncFunction64D17734", + "FunctionId" + ] + } + }, + "transformerrootstackTopicSubscriptiononCreateTopicauth0FunctionSubscriptiononCreateTopicauth0FunctionAppSyncFunctionA56CE4F0FunctionId": { + "Value": { + "Fn::GetAtt": [ + "SubscriptiononCreateTopicauth0FunctionSubscriptiononCreateTopicauth0FunctionAppSyncFunction1736E1E4", + "FunctionId" + ] + } + }, + "transformerrootstackTopicSubscriptionOnCreateTopicDataResolverFnSubscriptionOnCreateTopicDataResolverFnAppSyncFunctionA25E598AFunctionId": { + "Value": { + "Fn::GetAtt": [ + "SubscriptionOnCreateTopicDataResolverFnSubscriptionOnCreateTopicDataResolverFnAppSyncFunctionE8F09879", + "FunctionId" + ] + } + }, + "transformerrootstackTopicTopicDataSource63D2F34BName": { + "Value": { + "Fn::GetAtt": [ + "TopicDataSource", + "Name" + ] + } + }, + "transformerrootstackTopicTopicTableFD91FB92Ref": { + "Value": { + "Ref": "TopicTable" + } + } + } +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x.description.txt new file mode 100644 index 00000000000..f9e13281dee --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"api-AppSync","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x.outputs.json new file mode 100644 index 00000000000..1469fb4e9fe --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x.outputs.json @@ -0,0 +1,20 @@ +[ + { + "OutputKey": "GraphQLAPIIdOutput", + "OutputValue": "xw3yrfq7mngltcua43nucy7fg4", + "Description": "Your GraphQL API ID.", + "ExportName": "amplify-discussions-x-x-apidiscussions-x:GraphQLApiId" + }, + { + "OutputKey": "GraphQLAPIEndpointOutput", + "OutputValue": "https://ajag2p5xujbc3cfepbjri3sjam.appsync-api.us-east-1.amazonaws.com/graphql", + "Description": "Your GraphQL API endpoint.", + "ExportName": "amplify-discussions-x-x-apidiscussions-x:GraphQLApiEndpoint" + }, + { + "OutputKey": "GraphQLAPIKeyOutput", + "OutputValue": "da2-fakeapikey00000000000000", + "Description": "Your GraphQL API ID.", + "ExportName": "amplify-discussions-x-x-apidiscussions-x:GraphQLApiKey" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x.parameters.json new file mode 100644 index 00000000000..30ec5738764 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x.parameters.json @@ -0,0 +1,38 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "S3DeploymentBucket", + "ParameterValue": "amplify-discussions-x-x-deployment" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "S3DeploymentRootKey", + "ParameterValue": "amplify-appsync-files/db92bad357b2590353e82db2f2ec7d0fc9cfd30d" + }, + { + "ParameterKey": "AppSyncApiName", + "ParameterValue": "discussions" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x.template.json new file mode 100644 index 00000000000..e2b426197a4 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-apidiscussions-x.template.json @@ -0,0 +1,1066 @@ +{ + "Parameters": { + "env": { + "Type": "String", + "Default": "NONE" + }, + "AppSyncApiName": { + "Type": "String", + "Default": "AppSyncSimpleTransform" + }, + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "S3DeploymentBucket": { + "Type": "String", + "Description": "An S3 Bucket name where assets are deployed" + }, + "S3DeploymentRootKey": { + "Type": "String", + "Description": "An S3 key relative to the S3DeploymentBucket that points to the root of the deployment directory." + } + }, + "Resources": { + "GraphQLAPI": { + "Type": "AWS::AppSync::GraphQLApi", + "Properties": { + "AuthenticationType": "API_KEY", + "Name": { + "Fn::Join": [ + "", + [ + { + "Ref": "AppSyncApiName" + }, + "-", + { + "Ref": "env" + } + ] + ] + } + } + }, + "GraphQLAPITransformerSchema3CB2AE18": { + "Type": "AWS::AppSync::GraphQLSchema", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "DefinitionS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/schema.graphql" + ] + ] + } + } + }, + "GraphQLAPIDefaultApiKey215A6DD7": { + "Type": "AWS::AppSync::ApiKey", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "Expires": 1776829921 + } + }, + "GraphQLAPINONEDS95A13CF0": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "Name": "NONE_DS", + "Type": "NONE" + } + }, + "Topic": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + } + }, + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/Topic.json" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "Post": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicauth0FunctionQuerygetTopicauth0FunctionAppSyncFunctionEC4A6DABFunctionId": { + "Fn::GetAtt": [ + "Topic", + "Outputs.transformerrootstackTopicQuerygetTopicauth0FunctionQuerygetTopicauth0FunctionAppSyncFunctionEC4A6DABFunctionId" + ] + }, + "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId": { + "Fn::GetAtt": [ + "Topic", + "Outputs.transformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId" + ] + }, + "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationcreateTopicinit0FunctionMutationcreateTopicinit0FunctionAppSyncFunction3ECD028CFunctionId": { + "Fn::GetAtt": [ + "Topic", + "Outputs.transformerrootstackTopicMutationcreateTopicinit0FunctionMutationcreateTopicinit0FunctionAppSyncFunction3ECD028CFunctionId" + ] + }, + "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationcreateTopicauth0FunctionMutationcreateTopicauth0FunctionAppSyncFunction2E1A1C86FunctionId": { + "Fn::GetAtt": [ + "Topic", + "Outputs.transformerrootstackTopicMutationcreateTopicauth0FunctionMutationcreateTopicauth0FunctionAppSyncFunction2E1A1C86FunctionId" + ] + }, + "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationupdateTopicinit0FunctionMutationupdateTopicinit0FunctionAppSyncFunction16C763FFFunctionId": { + "Fn::GetAtt": [ + "Topic", + "Outputs.transformerrootstackTopicMutationupdateTopicinit0FunctionMutationupdateTopicinit0FunctionAppSyncFunction16C763FFFunctionId" + ] + }, + "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptiononCreateTopicauth0FunctionSubscriptiononCreateTopicauth0FunctionAppSyncFunctionA56CE4F0FunctionId": { + "Fn::GetAtt": [ + "Topic", + "Outputs.transformerrootstackTopicSubscriptiononCreateTopicauth0FunctionSubscriptiononCreateTopicauth0FunctionAppSyncFunctionA56CE4F0FunctionId" + ] + }, + "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptionOnCreateTopicDataResolverFnSubscriptionOnCreateTopicDataResolverFnAppSyncFunctionA25E598AFunctionId": { + "Fn::GetAtt": [ + "Topic", + "Outputs.transformerrootstackTopicSubscriptionOnCreateTopicDataResolverFnSubscriptionOnCreateTopicDataResolverFnAppSyncFunctionA25E598AFunctionId" + ] + } + }, + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/Post.json" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "Comment": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicauth0FunctionQuerygetTopicauth0FunctionAppSyncFunctionEC4A6DABFunctionId": { + "Fn::GetAtt": [ + "Topic", + "Outputs.transformerrootstackTopicQuerygetTopicauth0FunctionQuerygetTopicauth0FunctionAppSyncFunctionEC4A6DABFunctionId" + ] + }, + "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId": { + "Fn::GetAtt": [ + "Topic", + "Outputs.transformerrootstackTopicQuerygetTopicpostAuth0FunctionQuerygetTopicpostAuth0FunctionAppSyncFunction821534EDFunctionId" + ] + }, + "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationcreateTopicinit0FunctionMutationcreateTopicinit0FunctionAppSyncFunction3ECD028CFunctionId": { + "Fn::GetAtt": [ + "Topic", + "Outputs.transformerrootstackTopicMutationcreateTopicinit0FunctionMutationcreateTopicinit0FunctionAppSyncFunction3ECD028CFunctionId" + ] + }, + "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationcreateTopicauth0FunctionMutationcreateTopicauth0FunctionAppSyncFunction2E1A1C86FunctionId": { + "Fn::GetAtt": [ + "Topic", + "Outputs.transformerrootstackTopicMutationcreateTopicauth0FunctionMutationcreateTopicauth0FunctionAppSyncFunction2E1A1C86FunctionId" + ] + }, + "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicMutationupdateTopicinit0FunctionMutationupdateTopicinit0FunctionAppSyncFunction16C763FFFunctionId": { + "Fn::GetAtt": [ + "Topic", + "Outputs.transformerrootstackTopicMutationupdateTopicinit0FunctionMutationupdateTopicinit0FunctionAppSyncFunction16C763FFFunctionId" + ] + }, + "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptiononCreateTopicauth0FunctionSubscriptiononCreateTopicauth0FunctionAppSyncFunctionA56CE4F0FunctionId": { + "Fn::GetAtt": [ + "Topic", + "Outputs.transformerrootstackTopicSubscriptiononCreateTopicauth0FunctionSubscriptiononCreateTopicauth0FunctionAppSyncFunctionA56CE4F0FunctionId" + ] + }, + "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicSubscriptionOnCreateTopicDataResolverFnSubscriptionOnCreateTopicDataResolverFnAppSyncFunctionA25E598AFunctionId": { + "Fn::GetAtt": [ + "Topic", + "Outputs.transformerrootstackTopicSubscriptionOnCreateTopicDataResolverFnSubscriptionOnCreateTopicDataResolverFnAppSyncFunctionA25E598AFunctionId" + ] + } + }, + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/Comment.json" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "FunctionDirectiveStack": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + } + }, + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/FunctionDirectiveStack.json" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "ConnectionStack": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackPostNestedStackPostNestedStackResource45FCAC5EOutputstransformerrootstackPostPostDataSource6998E105Name": { + "Fn::GetAtt": [ + "Post", + "Outputs.transformerrootstackPostPostDataSource6998E105Name" + ] + }, + "referencetotransformerrootstackPostNestedStackPostNestedStackResource45FCAC5EOutputstransformerrootstackPostPostTable34CAE87BRef": { + "Fn::GetAtt": [ + "Post", + "Outputs.transformerrootstackPostPostTable34CAE87BRef" + ] + }, + "referencetotransformerrootstackCommentNestedStackCommentNestedStackResource199283FBOutputstransformerrootstackCommentCommentDataSourceA0E54655Name": { + "Fn::GetAtt": [ + "Comment", + "Outputs.transformerrootstackCommentCommentDataSourceA0E54655Name" + ] + }, + "referencetotransformerrootstackCommentNestedStackCommentNestedStackResource199283FBOutputstransformerrootstackCommentCommentTable5427FDE2Ref": { + "Fn::GetAtt": [ + "Comment", + "Outputs.transformerrootstackCommentCommentTable5427FDE2Ref" + ] + }, + "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicTopicDataSource63D2F34BName": { + "Fn::GetAtt": [ + "Topic", + "Outputs.transformerrootstackTopicTopicDataSource63D2F34BName" + ] + }, + "referencetotransformerrootstackTopicNestedStackTopicNestedStackResource792C4229OutputstransformerrootstackTopicTopicTableFD91FB92Ref": { + "Fn::GetAtt": [ + "Topic", + "Outputs.transformerrootstackTopicTopicTableFD91FB92Ref" + ] + } + }, + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/ConnectionStack.json" + ] + ] + } + }, + "DependsOn": [ + "Comment", + "GraphQLAPITransformerSchema3CB2AE18", + "Post", + "Topic" + ] + }, + "ActivityIdDataResolverFnActivityIdDataResolverFnAppSyncFunction8AF5D830": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "DataSourceName": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "ActivityIdDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/resolvers/Activity.id.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/resolvers/Activity.id.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "ActivityidResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "FieldName": "id", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ActivityIdDataResolverFnActivityIdDataResolverFnAppSyncFunction8AF5D830", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Activity\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"id\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Activity" + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "ActivityUserIdDataResolverFnActivityUserIdDataResolverFnAppSyncFunctionB4E2E8CF": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "DataSourceName": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "ActivityUserIdDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/resolvers/Activity.userId.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/resolvers/Activity.userId.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "ActivityuserIdResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "FieldName": "userId", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ActivityUserIdDataResolverFnActivityUserIdDataResolverFnAppSyncFunctionB4E2E8CF", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Activity\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"userId\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Activity" + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "ActivityActivityTypeDataResolverFnActivityActivityTypeDataResolverFnAppSyncFunctionF3DF665E": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "DataSourceName": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "ActivityActivityTypeDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/resolvers/Activity.activityType.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/resolvers/Activity.activityType.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "ActivityactivityTypeResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "FieldName": "activityType", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ActivityActivityTypeDataResolverFnActivityActivityTypeDataResolverFnAppSyncFunctionF3DF665E", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Activity\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"activityType\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Activity" + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "ActivityTimestampDataResolverFnActivityTimestampDataResolverFnAppSyncFunctionEF347380": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "DataSourceName": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "ActivityTimestampDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/resolvers/Activity.timestamp.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/resolvers/Activity.timestamp.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "ActivitytimestampResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "FieldName": "timestamp", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ActivityTimestampDataResolverFnActivityTimestampDataResolverFnAppSyncFunctionEF347380", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Activity\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"timestamp\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:fb3991a7-7d67-41b4-bc4e-63e2deeadf30\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"recorduseractivity-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Activity" + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "CustomResourcesjson": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "AppSyncApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "AppSyncApiName": { + "Ref": "AppSyncApiName" + }, + "env": { + "Ref": "env" + }, + "S3DeploymentBucket": { + "Ref": "S3DeploymentBucket" + }, + "S3DeploymentRootKey": { + "Ref": "S3DeploymentRootKey" + } + }, + "TemplateURL": { + "Fn::Join": [ + "/", + [ + "https://s3.amazonaws.com", + { + "Ref": "S3DeploymentBucket" + }, + { + "Ref": "S3DeploymentRootKey" + }, + "stacks", + "CustomResources.json" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPI", + "GraphQLAPITransformerSchema3CB2AE18", + "Topic", + "Post", + "Comment", + "FunctionDirectiveStack", + "ConnectionStack" + ] + } + }, + "Outputs": { + "GraphQLAPIKeyOutput": { + "Description": "Your GraphQL API ID.", + "Value": { + "Fn::GetAtt": [ + "GraphQLAPIDefaultApiKey215A6DD7", + "ApiKey" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "AWS::StackName" + }, + "GraphQLApiKey" + ] + ] + } + } + }, + "GraphQLAPIIdOutput": { + "Description": "Your GraphQL API ID.", + "Value": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "AWS::StackName" + }, + "GraphQLApiId" + ] + ] + } + } + }, + "GraphQLAPIEndpointOutput": { + "Description": "Your GraphQL API endpoint.", + "Value": { + "Fn::GetAtt": [ + "GraphQLAPI", + "GraphQLUrl" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "AWS::StackName" + }, + "GraphQLApiEndpoint" + ] + ] + } + } + } + }, + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-authdiscussionsc578c16ec578c16e-x.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-authdiscussionsc578c16ec578c16e-x.description.txt new file mode 100644 index 00000000000..348d1236678 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-authdiscussionsc578c16ec578c16e-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"auth-Cognito","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-authdiscussionsc578c16ec578c16e-x.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-authdiscussionsc578c16ec578c16e-x.outputs.json new file mode 100644 index 00000000000..41e53f36fc6 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-authdiscussionsc578c16ec578c16e-x.outputs.json @@ -0,0 +1,40 @@ +[ + { + "OutputKey": "CreatedSNSRole", + "OutputValue": "arn:aws:iam::123456789012:role/snsc578c16ex-x", + "Description": "role arn" + }, + { + "OutputKey": "UserPoolId", + "OutputValue": "us-east-1_lG0pUBlcH", + "Description": "Id for the user pool" + }, + { + "OutputKey": "AppClientIDWeb", + "OutputValue": "2u018c10958rc16k88nfl6er4m", + "Description": "The user pool app client id for web" + }, + { + "OutputKey": "AppClientID", + "OutputValue": "145r5chjngcvdjv7uk1s3826ol", + "Description": "The user pool app client id" + }, + { + "OutputKey": "IdentityPoolId", + "OutputValue": "us-east-1:c19a7d32-3b9f-4b48-829c-46082712131c", + "Description": "Id for the identity pool" + }, + { + "OutputKey": "UserPoolArn", + "OutputValue": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_lG0pUBlcH", + "Description": "Arn for the user pool" + }, + { + "OutputKey": "IdentityPoolName", + "OutputValue": "discussionsc578c16e_identitypool_c578c16e__x" + }, + { + "OutputKey": "UserPoolName", + "OutputValue": "discussionsc578c16e_userpool_c578c16e" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-authdiscussionsc578c16ec578c16e-x.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-authdiscussionsc578c16ec578c16e-x.parameters.json new file mode 100644 index 00000000000..f9470875802 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-authdiscussionsc578c16ec578c16e-x.parameters.json @@ -0,0 +1,166 @@ +[ + { + "ParameterKey": "usernameAttributes", + "ParameterValue": "phone_number" + }, + { + "ParameterKey": "authRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-discussions-x-x-authRole" + }, + { + "ParameterKey": "autoVerifiedAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "allowUnauthenticatedIdentities", + "ParameterValue": "false" + }, + { + "ParameterKey": "hostedUI", + "ParameterValue": "false" + }, + { + "ParameterKey": "smsVerificationMessage", + "ParameterValue": "Your verification code is {####}" + }, + { + "ParameterKey": "userpoolClientReadAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "breakCircularDependency", + "ParameterValue": "true" + }, + { + "ParameterKey": "mfaTypes", + "ParameterValue": "SMS Text Message" + }, + { + "ParameterKey": "emailVerificationSubject", + "ParameterValue": "Verification" + }, + { + "ParameterKey": "sharedId", + "ParameterValue": "c578c16e" + }, + { + "ParameterKey": "useDefault", + "ParameterValue": "manual" + }, + { + "ParameterKey": "userpoolClientGenerateSecret", + "ParameterValue": "false" + }, + { + "ParameterKey": "mfaConfiguration", + "ParameterValue": "OFF" + }, + { + "ParameterKey": "identityPoolName", + "ParameterValue": "discussionsc578c16e_identitypool_c578c16e" + }, + { + "ParameterKey": "thirdPartyAuth", + "ParameterValue": "false" + }, + { + "ParameterKey": "userPoolGroupList", + "ParameterValue": "" + }, + { + "ParameterKey": "authSelections", + "ParameterValue": "identityPoolAndUserPool" + }, + { + "ParameterKey": "adminQueries", + "ParameterValue": "false" + }, + { + "ParameterKey": "resourceNameTruncated", + "ParameterValue": "discusc578c16e" + }, + { + "ParameterKey": "userPoolGroups", + "ParameterValue": "false" + }, + { + "ParameterKey": "smsAuthenticationMessage", + "ParameterValue": "Your authentication code is {####}" + }, + { + "ParameterKey": "passwordPolicyMinLength", + "ParameterValue": "8" + }, + { + "ParameterKey": "userPoolName", + "ParameterValue": "discussionsc578c16e_userpool_c578c16e" + }, + { + "ParameterKey": "userpoolClientWriteAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "dependsOn", + "ParameterValue": "" + }, + { + "ParameterKey": "useEnabledMfas", + "ParameterValue": "true" + }, + { + "ParameterKey": "usernameCaseSensitive", + "ParameterValue": "false" + }, + { + "ParameterKey": "resourceName", + "ParameterValue": "discussionsc578c16ec578c16e" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "triggers", + "ParameterValue": "{}" + }, + { + "ParameterKey": "serviceName", + "ParameterValue": "Cognito" + }, + { + "ParameterKey": "emailVerificationMessage", + "ParameterValue": "Here is your verification code {####}" + }, + { + "ParameterKey": "userpoolClientRefreshTokenValidity", + "ParameterValue": "120" + }, + { + "ParameterKey": "userpoolClientSetAttributes", + "ParameterValue": "false" + }, + { + "ParameterKey": "unauthRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-discussions-x-x-unauthRole" + }, + { + "ParameterKey": "requiredAttributes", + "ParameterValue": "email,phone_number" + }, + { + "ParameterKey": "passwordPolicyCharacters", + "ParameterValue": "" + }, + { + "ParameterKey": "aliasAttributes", + "ParameterValue": "" + }, + { + "ParameterKey": "userpoolClientLambdaRole", + "ParameterValue": "discusc578c16e_userpoolclient_lambda_role" + }, + { + "ParameterKey": "defaultPasswordPolicy", + "ParameterValue": "false" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-authdiscussionsc578c16ec578c16e-x.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-authdiscussionsc578c16ec578c16e-x.template.json new file mode 100644 index 00000000000..804eb7c3147 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-authdiscussionsc578c16ec578c16e-x.template.json @@ -0,0 +1,533 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "identityPoolName": { + "Type": "String" + }, + "allowUnauthenticatedIdentities": { + "Type": "String" + }, + "resourceNameTruncated": { + "Type": "String" + }, + "userPoolName": { + "Type": "String" + }, + "autoVerifiedAttributes": { + "Type": "CommaDelimitedList" + }, + "mfaConfiguration": { + "Type": "String" + }, + "mfaTypes": { + "Type": "CommaDelimitedList" + }, + "smsAuthenticationMessage": { + "Type": "String" + }, + "smsVerificationMessage": { + "Type": "String" + }, + "emailVerificationSubject": { + "Type": "String" + }, + "emailVerificationMessage": { + "Type": "String" + }, + "defaultPasswordPolicy": { + "Type": "String" + }, + "passwordPolicyMinLength": { + "Type": "String" + }, + "passwordPolicyCharacters": { + "Type": "CommaDelimitedList" + }, + "requiredAttributes": { + "Type": "CommaDelimitedList" + }, + "aliasAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientGenerateSecret": { + "Type": "String" + }, + "userpoolClientRefreshTokenValidity": { + "Type": "String" + }, + "userpoolClientWriteAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientReadAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientLambdaRole": { + "Type": "String" + }, + "userpoolClientSetAttributes": { + "Type": "String" + }, + "sharedId": { + "Type": "String" + }, + "resourceName": { + "Type": "String" + }, + "authSelections": { + "Type": "String" + }, + "useDefault": { + "Type": "String" + }, + "thirdPartyAuth": { + "Type": "String" + }, + "usernameAttributes": { + "Type": "CommaDelimitedList" + }, + "userPoolGroups": { + "Type": "String" + }, + "adminQueries": { + "Type": "String" + }, + "triggers": { + "Type": "String" + }, + "hostedUI": { + "Type": "String" + }, + "userPoolGroupList": { + "Type": "CommaDelimitedList" + }, + "serviceName": { + "Type": "String" + }, + "usernameCaseSensitive": { + "Type": "String" + }, + "useEnabledMfas": { + "Type": "String" + }, + "authRoleArn": { + "Type": "String" + }, + "unauthRoleArn": { + "Type": "String" + }, + "breakCircularDependency": { + "Type": "String" + }, + "dependsOn": { + "Type": "CommaDelimitedList" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + } + }, + "Resources": { + "SNSRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Sid": "", + "Effect": "Allow", + "Principal": { + "Service": "cognito-idp.amazonaws.com" + }, + "Action": [ + "sts:AssumeRole" + ], + "Condition": { + "StringEquals": { + "sts:ExternalId": "discusc578c16e_role_external_id" + } + } + } + ] + }, + "Policies": [ + { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "sns:Publish" + ], + "Resource": "*" + } + ] + }, + "PolicyName": "discusc578c16e-sns-policy" + } + ], + "RoleName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "discusc578c16e_sns-role", + { + "Fn::Join": [ + "", + [ + "snsc578c16e", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + { + "Ref": "AWS::StackName" + } + ] + } + ] + }, + "-", + { + "Ref": "env" + } + ] + ] + } + ] + } + } + }, + "UserPool": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": { + "Ref": "emailVerificationMessage" + }, + "EmailVerificationSubject": { + "Ref": "emailVerificationSubject" + }, + "MfaConfiguration": { + "Ref": "mfaConfiguration" + }, + "Policies": { + "PasswordPolicy": { + "MinimumLength": { + "Ref": "passwordPolicyMinLength" + }, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + }, + { + "Mutable": true, + "Name": "phone_number", + "Required": true + } + ], + "SmsAuthenticationMessage": { + "Ref": "smsAuthenticationMessage" + }, + "SmsConfiguration": { + "ExternalId": "discusc578c16e_role_external_id", + "SnsCallerArn": { + "Fn::GetAtt": [ + "SNSRole", + "Arn" + ] + } + }, + "SmsVerificationMessage": { + "Ref": "smsVerificationMessage" + }, + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + { + "Ref": "userPoolName" + }, + { + "Fn::Join": [ + "", + [ + { + "Ref": "userPoolName" + }, + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "UsernameAttributes": { + "Ref": "usernameAttributes" + }, + "UsernameConfiguration": { + "CaseSensitive": false + } + }, + "DependsOn": [ + "SNSRole" + ] + }, + "UserPoolClientWeb": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "discusc578c16e_app_clientWeb", + "RefreshTokenValidity": { + "Ref": "userpoolClientRefreshTokenValidity" + }, + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": { + "Ref": "UserPool" + } + }, + "DependsOn": [ + "UserPool" + ] + }, + "UserPoolClient": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "discusc578c16e_app_client", + "GenerateSecret": { + "Ref": "userpoolClientGenerateSecret" + }, + "RefreshTokenValidity": { + "Ref": "userpoolClientRefreshTokenValidity" + }, + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": { + "Ref": "UserPool" + } + }, + "DependsOn": [ + "UserPool" + ] + }, + "UserPoolClientRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + }, + "Action": "sts:AssumeRole" + } + ] + }, + "RoleName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + { + "Ref": "userpoolClientLambdaRole" + }, + { + "Fn::Join": [ + "", + [ + "upClientLambdaRolec578c16e", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + { + "Ref": "AWS::StackName" + } + ] + } + ] + }, + "-", + { + "Ref": "env" + } + ] + ] + } + ] + } + } + }, + "IdentityPool": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": { + "Ref": "allowUnauthenticatedIdentities" + }, + "CognitoIdentityProviders": [ + { + "ClientId": { + "Ref": "UserPoolClient" + }, + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": { + "Ref": "UserPool" + } + } + ] + } + }, + { + "ClientId": { + "Ref": "UserPoolClientWeb" + }, + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": { + "Ref": "UserPool" + } + } + ] + } + } + ], + "IdentityPoolName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "discussionsc578c16e_identitypool_c578c16e", + { + "Fn::Join": [ + "", + [ + "discussionsc578c16e_identitypool_c578c16e__", + { + "Ref": "env" + } + ] + ] + } + ] + } + } + }, + "IdentityPoolRoleMap": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": { + "Ref": "IdentityPool" + }, + "Roles": { + "unauthenticated": { + "Ref": "unauthRoleArn" + }, + "authenticated": { + "Ref": "authRoleArn" + } + } + }, + "DependsOn": [ + "IdentityPool" + ] + } + }, + "Outputs": { + "IdentityPoolId": { + "Description": "Id for the identity pool", + "Value": { + "Ref": "IdentityPool" + } + }, + "IdentityPoolName": { + "Value": { + "Fn::GetAtt": [ + "IdentityPool", + "Name" + ] + } + }, + "UserPoolId": { + "Description": "Id for the user pool", + "Value": { + "Ref": "UserPool" + } + }, + "UserPoolArn": { + "Description": "Arn for the user pool", + "Value": { + "Fn::GetAtt": [ + "UserPool", + "Arn" + ] + } + }, + "UserPoolName": { + "Value": { + "Ref": "userPoolName" + } + }, + "AppClientIDWeb": { + "Description": "The user pool app client id for web", + "Value": { + "Ref": "UserPoolClientWeb" + } + }, + "AppClientID": { + "Description": "The user pool app client id", + "Value": { + "Ref": "UserPoolClient" + } + }, + "CreatedSNSRole": { + "Description": "role arn", + "Value": { + "Fn::GetAtt": [ + "SNSRole", + "Arn" + ] + } + } + } +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-functionfetchuseractivity-x.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-functionfetchuseractivity-x.description.txt new file mode 100644 index 00000000000..6cc2b5048c0 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-functionfetchuseractivity-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"function-Lambda","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-functionfetchuseractivity-x.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-functionfetchuseractivity-x.outputs.json new file mode 100644 index 00000000000..236c6cb4be2 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-functionfetchuseractivity-x.outputs.json @@ -0,0 +1,22 @@ +[ + { + "OutputKey": "LambdaExecutionRoleArn", + "OutputValue": "arn:aws:iam::123456789012:role/discussionsLambdaRole44bd86bc-x" + }, + { + "OutputKey": "Region", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "Arn", + "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:fetchuseractivity-x" + }, + { + "OutputKey": "Name", + "OutputValue": "fetchuseractivity-x" + }, + { + "OutputKey": "LambdaExecutionRole", + "OutputValue": "discussionsLambdaRole44bd86bc-x" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-functionfetchuseractivity-x.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-functionfetchuseractivity-x.parameters.json new file mode 100644 index 00000000000..337f799a2f2 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-functionfetchuseractivity-x.parameters.json @@ -0,0 +1,30 @@ +[ + { + "ParameterKey": "CloudWatchRule", + "ParameterValue": "NONE" + }, + { + "ParameterKey": "storageactivityName", + "ParameterValue": "activity-x" + }, + { + "ParameterKey": "s3Key", + "ParameterValue": "amplify-builds/fetchuseractivity-574d43794579796f5042-build.zip" + }, + { + "ParameterKey": "deploymentBucketName", + "ParameterValue": "amplify-discussions-x-x-deployment" + }, + { + "ParameterKey": "storageactivityStreamArn", + "ParameterValue": "arn:aws:dynamodb:us-east-1:123456789012:table/activity-x/stream/2026-04-15T03:52:10.997" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "storageactivityArn", + "ParameterValue": "arn:aws:dynamodb:us-east-1:123456789012:table/activity-x" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-functionfetchuseractivity-x.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-functionfetchuseractivity-x.template.json new file mode 100644 index 00000000000..9eda75a0edf --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-functionfetchuseractivity-x.template.json @@ -0,0 +1,270 @@ +{ + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Parameters": { + "CloudWatchRule": { + "Type": "String", + "Default": "NONE", + "Description": " Schedule Expression" + }, + "deploymentBucketName": { + "Type": "String" + }, + "env": { + "Type": "String" + }, + "s3Key": { + "Type": "String" + }, + "storageactivityName": { + "Type": "String", + "Default": "storageactivityName" + }, + "storageactivityArn": { + "Type": "String", + "Default": "storageactivityArn" + }, + "storageactivityStreamArn": { + "Type": "String", + "Default": "storageactivityStreamArn" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + } + }, + "Resources": { + "LambdaFunction": { + "Type": "AWS::Lambda::Function", + "Metadata": { + "aws:asset:path": "./src", + "aws:asset:property": "Code" + }, + "Properties": { + "Code": { + "S3Bucket": { + "Ref": "deploymentBucketName" + }, + "S3Key": { + "Ref": "s3Key" + } + }, + "Handler": "index.handler", + "FunctionName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "fetchuseractivity", + { + "Fn::Join": [ + "", + [ + "fetchuseractivity", + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "Environment": { + "Variables": { + "ENV": { + "Ref": "env" + }, + "REGION": { + "Ref": "AWS::Region" + }, + "STORAGE_ACTIVITY_NAME": { + "Ref": "storageactivityName" + }, + "STORAGE_ACTIVITY_ARN": { + "Ref": "storageactivityArn" + }, + "STORAGE_ACTIVITY_STREAMARN": { + "Ref": "storageactivityStreamArn" + } + } + }, + "Role": { + "Fn::GetAtt": [ + "LambdaExecutionRole", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Layers": [], + "Timeout": 25 + } + }, + "LambdaExecutionRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "RoleName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "discussionsLambdaRole44bd86bc", + { + "Fn::Join": [ + "", + [ + "discussionsLambdaRole44bd86bc", + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": [ + "lambda.amazonaws.com" + ] + }, + "Action": [ + "sts:AssumeRole" + ] + } + ] + } + } + }, + "lambdaexecutionpolicy": { + "DependsOn": [ + "LambdaExecutionRole" + ], + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyName": "lambda-execution-policy", + "Roles": [ + { + "Ref": "LambdaExecutionRole" + } + ], + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "logs:CreateLogGroup", + "logs:CreateLogStream", + "logs:PutLogEvents" + ], + "Resource": { + "Fn::Sub": [ + "arn:aws:logs:${region}:${account}:log-group:/aws/lambda/${lambda}:log-stream:*", + { + "region": { + "Ref": "AWS::Region" + }, + "account": { + "Ref": "AWS::AccountId" + }, + "lambda": { + "Ref": "LambdaFunction" + } + } + ] + } + } + ] + } + } + }, + "AmplifyResourcesPolicy": { + "DependsOn": [ + "LambdaExecutionRole" + ], + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyName": "amplify-lambda-execution-policy", + "Roles": [ + { + "Ref": "LambdaExecutionRole" + } + ], + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "dynamodb:Get*", + "dynamodb:BatchGetItem", + "dynamodb:List*", + "dynamodb:Describe*", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:PartiQLSelect" + ], + "Resource": [ + { + "Ref": "storageactivityArn" + }, + { + "Fn::Join": [ + "/", + [ + { + "Ref": "storageactivityArn" + }, + "index/*" + ] + ] + } + ] + } + ] + } + } + } + }, + "Outputs": { + "Name": { + "Value": { + "Ref": "LambdaFunction" + } + }, + "Arn": { + "Value": { + "Fn::GetAtt": [ + "LambdaFunction", + "Arn" + ] + } + }, + "Region": { + "Value": { + "Ref": "AWS::Region" + } + }, + "LambdaExecutionRole": { + "Value": { + "Ref": "LambdaExecutionRole" + } + }, + "LambdaExecutionRoleArn": { + "Value": { + "Fn::GetAtt": [ + "LambdaExecutionRole", + "Arn" + ] + } + } + } +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-functionrecorduseractivity-x.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-functionrecorduseractivity-x.description.txt new file mode 100644 index 00000000000..6cc2b5048c0 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-functionrecorduseractivity-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"function-Lambda","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-functionrecorduseractivity-x.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-functionrecorduseractivity-x.outputs.json new file mode 100644 index 00000000000..1f5fd503869 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-functionrecorduseractivity-x.outputs.json @@ -0,0 +1,22 @@ +[ + { + "OutputKey": "LambdaExecutionRoleArn", + "OutputValue": "arn:aws:iam::123456789012:role/discussionsLambdaRole62a425ae-x" + }, + { + "OutputKey": "Region", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "Arn", + "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:recorduseractivity-x" + }, + { + "OutputKey": "Name", + "OutputValue": "recorduseractivity-x" + }, + { + "OutputKey": "LambdaExecutionRole", + "OutputValue": "discussionsLambdaRole62a425ae-x" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-functionrecorduseractivity-x.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-functionrecorduseractivity-x.parameters.json new file mode 100644 index 00000000000..80e49e3852e --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-functionrecorduseractivity-x.parameters.json @@ -0,0 +1,38 @@ +[ + { + "ParameterKey": "CloudWatchRule", + "ParameterValue": "NONE" + }, + { + "ParameterKey": "storageactivityName", + "ParameterValue": "activity-x" + }, + { + "ParameterKey": "s3Key", + "ParameterValue": "amplify-builds/recorduseractivity-54696a587a7168467354-build.zip" + }, + { + "ParameterKey": "deploymentBucketName", + "ParameterValue": "amplify-discussions-x-x-deployment" + }, + { + "ParameterKey": "apidiscussionsGraphQLAPIEndpointOutput", + "ParameterValue": "https://ajag2p5xujbc3cfepbjri3sjam.appsync-api.us-east-1.amazonaws.com/graphql" + }, + { + "ParameterKey": "apidiscussionsGraphQLAPIIdOutput", + "ParameterValue": "xw3yrfq7mngltcua43nucy7fg4" + }, + { + "ParameterKey": "storageactivityStreamArn", + "ParameterValue": "arn:aws:dynamodb:us-east-1:123456789012:table/activity-x/stream/2026-04-15T03:52:10.997" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "storageactivityArn", + "ParameterValue": "arn:aws:dynamodb:us-east-1:123456789012:table/activity-x" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-functionrecorduseractivity-x.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-functionrecorduseractivity-x.template.json new file mode 100644 index 00000000000..8f7ec565fb9 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-functionrecorduseractivity-x.template.json @@ -0,0 +1,455 @@ +{ + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Parameters": { + "CloudWatchRule": { + "Type": "String", + "Default": "NONE", + "Description": " Schedule Expression" + }, + "deploymentBucketName": { + "Type": "String" + }, + "env": { + "Type": "String" + }, + "s3Key": { + "Type": "String" + }, + "apidiscussionsGraphQLAPIIdOutput": { + "Type": "String", + "Default": "apidiscussionsGraphQLAPIIdOutput" + }, + "apidiscussionsGraphQLAPIEndpointOutput": { + "Type": "String", + "Default": "apidiscussionsGraphQLAPIEndpointOutput" + }, + "storageactivityName": { + "Type": "String", + "Default": "storageactivityName" + }, + "storageactivityArn": { + "Type": "String", + "Default": "storageactivityArn" + }, + "storageactivityStreamArn": { + "Type": "String", + "Default": "storageactivityStreamArn" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + } + }, + "Resources": { + "LambdaFunction": { + "Type": "AWS::Lambda::Function", + "Metadata": { + "aws:asset:path": "./src", + "aws:asset:property": "Code" + }, + "Properties": { + "Code": { + "S3Bucket": { + "Ref": "deploymentBucketName" + }, + "S3Key": { + "Ref": "s3Key" + } + }, + "Handler": "index.handler", + "FunctionName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "recorduseractivity", + { + "Fn::Join": [ + "", + [ + "recorduseractivity", + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "Environment": { + "Variables": { + "ENV": { + "Ref": "env" + }, + "REGION": { + "Ref": "AWS::Region" + }, + "STORAGE_ACTIVITY_NAME": { + "Ref": "storageactivityName" + }, + "STORAGE_ACTIVITY_ARN": { + "Ref": "storageactivityArn" + }, + "STORAGE_ACTIVITY_STREAMARN": { + "Ref": "storageactivityStreamArn" + } + } + }, + "Role": { + "Fn::GetAtt": [ + "LambdaExecutionRole", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Layers": [], + "Timeout": 25 + } + }, + "LambdaExecutionRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "RoleName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "discussionsLambdaRole62a425ae", + { + "Fn::Join": [ + "", + [ + "discussionsLambdaRole62a425ae", + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": [ + "lambda.amazonaws.com" + ] + }, + "Action": [ + "sts:AssumeRole" + ] + } + ] + } + } + }, + "lambdaexecutionpolicy": { + "DependsOn": [ + "LambdaExecutionRole" + ], + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyName": "lambda-execution-policy", + "Roles": [ + { + "Ref": "LambdaExecutionRole" + } + ], + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "logs:CreateLogGroup", + "logs:CreateLogStream", + "logs:PutLogEvents" + ], + "Resource": { + "Fn::Sub": [ + "arn:aws:logs:${region}:${account}:log-group:/aws/lambda/${lambda}:log-stream:*", + { + "region": { + "Ref": "AWS::Region" + }, + "account": { + "Ref": "AWS::AccountId" + }, + "lambda": { + "Ref": "LambdaFunction" + } + } + ] + } + } + ] + } + } + }, + "AmplifyResourcesPolicy": { + "DependsOn": [ + "LambdaExecutionRole" + ], + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyName": "amplify-lambda-execution-policy", + "Roles": [ + { + "Ref": "LambdaExecutionRole" + } + ], + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "dynamodb:Put*", + "dynamodb:Create*", + "dynamodb:BatchWriteItem", + "dynamodb:PartiQLInsert", + "dynamodb:Get*", + "dynamodb:BatchGetItem", + "dynamodb:List*", + "dynamodb:Describe*", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:PartiQLSelect", + "dynamodb:Update*", + "dynamodb:RestoreTable*", + "dynamodb:PartiQLUpdate", + "dynamodb:Delete*", + "dynamodb:PartiQLDelete" + ], + "Resource": [ + { + "Ref": "storageactivityArn" + }, + { + "Fn::Join": [ + "/", + [ + { + "Ref": "storageactivityArn" + }, + "index/*" + ] + ] + } + ] + } + ] + } + } + }, + "LambdaTriggerPolicyTopic": { + "DependsOn": [ + "LambdaExecutionRole" + ], + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyName": "amplify-lambda-execution-policy-Topic", + "Roles": [ + { + "Ref": "LambdaExecutionRole" + } + ], + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "dynamodb:DescribeStream", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:ListStreams" + ], + "Resource": { + "Fn::ImportValue": { + "Fn::Sub": "${apidiscussionsGraphQLAPIIdOutput}:GetAtt:TopicTable:StreamArn" + } + } + } + ] + } + } + }, + "LambdaEventSourceMappingTopic": { + "Type": "AWS::Lambda::EventSourceMapping", + "DependsOn": [ + "LambdaTriggerPolicyTopic", + "LambdaExecutionRole" + ], + "Properties": { + "BatchSize": 100, + "Enabled": true, + "EventSourceArn": { + "Fn::ImportValue": { + "Fn::Sub": "${apidiscussionsGraphQLAPIIdOutput}:GetAtt:TopicTable:StreamArn" + } + }, + "FunctionName": { + "Fn::GetAtt": [ + "LambdaFunction", + "Arn" + ] + }, + "StartingPosition": "LATEST" + } + }, + "LambdaTriggerPolicyPost": { + "DependsOn": [ + "LambdaExecutionRole" + ], + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyName": "amplify-lambda-execution-policy-Post", + "Roles": [ + { + "Ref": "LambdaExecutionRole" + } + ], + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "dynamodb:DescribeStream", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:ListStreams" + ], + "Resource": { + "Fn::ImportValue": { + "Fn::Sub": "${apidiscussionsGraphQLAPIIdOutput}:GetAtt:PostTable:StreamArn" + } + } + } + ] + } + } + }, + "LambdaEventSourceMappingPost": { + "Type": "AWS::Lambda::EventSourceMapping", + "DependsOn": [ + "LambdaTriggerPolicyPost", + "LambdaExecutionRole" + ], + "Properties": { + "BatchSize": 100, + "Enabled": true, + "EventSourceArn": { + "Fn::ImportValue": { + "Fn::Sub": "${apidiscussionsGraphQLAPIIdOutput}:GetAtt:PostTable:StreamArn" + } + }, + "FunctionName": { + "Fn::GetAtt": [ + "LambdaFunction", + "Arn" + ] + }, + "StartingPosition": "LATEST" + } + }, + "LambdaTriggerPolicyComment": { + "DependsOn": [ + "LambdaExecutionRole" + ], + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyName": "amplify-lambda-execution-policy-Comment", + "Roles": [ + { + "Ref": "LambdaExecutionRole" + } + ], + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "dynamodb:DescribeStream", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:ListStreams" + ], + "Resource": { + "Fn::ImportValue": { + "Fn::Sub": "${apidiscussionsGraphQLAPIIdOutput}:GetAtt:CommentTable:StreamArn" + } + } + } + ] + } + } + }, + "LambdaEventSourceMappingComment": { + "Type": "AWS::Lambda::EventSourceMapping", + "DependsOn": [ + "LambdaTriggerPolicyComment", + "LambdaExecutionRole" + ], + "Properties": { + "BatchSize": 100, + "Enabled": true, + "EventSourceArn": { + "Fn::ImportValue": { + "Fn::Sub": "${apidiscussionsGraphQLAPIIdOutput}:GetAtt:CommentTable:StreamArn" + } + }, + "FunctionName": { + "Fn::GetAtt": [ + "LambdaFunction", + "Arn" + ] + }, + "StartingPosition": "LATEST" + } + } + }, + "Outputs": { + "Name": { + "Value": { + "Ref": "LambdaFunction" + } + }, + "Arn": { + "Value": { + "Fn::GetAtt": [ + "LambdaFunction", + "Arn" + ] + } + }, + "Region": { + "Value": { + "Ref": "AWS::Region" + } + }, + "LambdaExecutionRole": { + "Value": { + "Ref": "LambdaExecutionRole" + } + }, + "LambdaExecutionRoleArn": { + "Value": { + "Fn::GetAtt": [ + "LambdaExecutionRole", + "Arn" + ] + } + } + } +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-storageactivity-x.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-storageactivity-x.description.txt new file mode 100644 index 00000000000..4f6a85b2847 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-storageactivity-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"storage-DynamoDB","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-storageactivity-x.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-storageactivity-x.outputs.json new file mode 100644 index 00000000000..50a1c84cd1d --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-storageactivity-x.outputs.json @@ -0,0 +1,34 @@ +[ + { + "OutputKey": "PartitionKeyName", + "OutputValue": "id" + }, + { + "OutputKey": "SortKeyName", + "OutputValue": "userId" + }, + { + "OutputKey": "SortKeyType", + "OutputValue": "S" + }, + { + "OutputKey": "Region", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "Arn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/activity-x" + }, + { + "OutputKey": "StreamArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/activity-x/stream/2026-04-15T03:52:10.997" + }, + { + "OutputKey": "PartitionKeyType", + "OutputValue": "S" + }, + { + "OutputKey": "Name", + "OutputValue": "activity-x" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-storageactivity-x.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-storageactivity-x.parameters.json new file mode 100644 index 00000000000..7a5166c216c --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-storageactivity-x.parameters.json @@ -0,0 +1,26 @@ +[ + { + "ParameterKey": "partitionKeyType", + "ParameterValue": "S" + }, + { + "ParameterKey": "partitionKeyName", + "ParameterValue": "id" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "sortKeyName", + "ParameterValue": "userId" + }, + { + "ParameterKey": "sortKeyType", + "ParameterValue": "S" + }, + { + "ParameterKey": "tableName", + "ParameterValue": "activity" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-storageactivity-x.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-storageactivity-x.template.json new file mode 100644 index 00000000000..6f6fa444e90 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-storageactivity-x.template.json @@ -0,0 +1,164 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-DynamoDB\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "partitionKeyName": { + "Type": "String" + }, + "partitionKeyType": { + "Type": "String" + }, + "env": { + "Type": "String" + }, + "sortKeyName": { + "Type": "String" + }, + "sortKeyType": { + "Type": "String" + }, + "tableName": { + "Type": "String" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + } + }, + "Resources": { + "DynamoDBTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + }, + { + "AttributeName": "userId", + "AttributeType": "S" + }, + { + "AttributeName": "timestamp", + "AttributeType": "S" + } + ], + "GlobalSecondaryIndexes": [ + { + "IndexName": "byUserId", + "KeySchema": [ + { + "AttributeName": "userId", + "KeyType": "HASH" + }, + { + "AttributeName": "timestamp", + "KeyType": "RANGE" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "ReadCapacityUnits": 5, + "WriteCapacityUnits": 5 + } + } + ], + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + }, + { + "AttributeName": "userId", + "KeyType": "RANGE" + } + ], + "ProvisionedThroughput": { + "ReadCapacityUnits": 5, + "WriteCapacityUnits": 5 + }, + "StreamSpecification": { + "StreamViewType": "NEW_IMAGE" + }, + "TableName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + { + "Ref": "tableName" + }, + { + "Fn::Join": [ + "", + [ + { + "Ref": "tableName" + }, + "-", + { + "Ref": "env" + } + ] + ] + } + ] + } + } + } + }, + "Outputs": { + "Name": { + "Value": { + "Ref": "DynamoDBTable" + } + }, + "Arn": { + "Value": { + "Fn::GetAtt": [ + "DynamoDBTable", + "Arn" + ] + } + }, + "StreamArn": { + "Value": { + "Fn::GetAtt": [ + "DynamoDBTable", + "StreamArn" + ] + } + }, + "PartitionKeyName": { + "Value": { + "Ref": "partitionKeyName" + } + }, + "PartitionKeyType": { + "Value": { + "Ref": "partitionKeyType" + } + }, + "SortKeyName": { + "Value": { + "Ref": "sortKeyName" + } + }, + "SortKeyType": { + "Value": { + "Ref": "sortKeyType" + } + }, + "Region": { + "Value": { + "Ref": "AWS::Region" + } + } + } +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-storageavatars-x.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-storageavatars-x.description.txt new file mode 100644 index 00000000000..e01eac85f24 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-storageavatars-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"storage-S3","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-storageavatars-x.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-storageavatars-x.outputs.json new file mode 100644 index 00000000000..a9c5cf8e68e --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-storageavatars-x.outputs.json @@ -0,0 +1,11 @@ +[ + { + "OutputKey": "BucketName", + "OutputValue": "discus-avatarsx-x", + "Description": "Bucket name for the S3 bucket" + }, + { + "OutputKey": "Region", + "OutputValue": "us-east-1" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-storageavatars-x.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-storageavatars-x.parameters.json new file mode 100644 index 00000000000..2d041f1da19 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-storageavatars-x.parameters.json @@ -0,0 +1,86 @@ +[ + { + "ParameterKey": "s3PermissionsGuestPublic", + "ParameterValue": "DISALLOW" + }, + { + "ParameterKey": "bucketName", + "ParameterValue": "discus-avatars" + }, + { + "ParameterKey": "s3PublicPolicy", + "ParameterValue": "Public_policy_bf41454d" + }, + { + "ParameterKey": "AuthenticatedAllowList", + "ParameterValue": "ALLOW" + }, + { + "ParameterKey": "unauthRoleName", + "ParameterValue": "amplify-discussions-x-x-unauthRole" + }, + { + "ParameterKey": "s3PrivatePolicy", + "ParameterValue": "Private_policy_bf41454d" + }, + { + "ParameterKey": "selectedGuestPermissions", + "ParameterValue": "" + }, + { + "ParameterKey": "s3PermissionsAuthenticatedPublic", + "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" + }, + { + "ParameterKey": "s3PermissionsAuthenticatedPrivate", + "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" + }, + { + "ParameterKey": "s3PermissionsAuthenticatedUploads", + "ParameterValue": "s3:PutObject" + }, + { + "ParameterKey": "s3UploadsPolicy", + "ParameterValue": "Uploads_policy_bf41454d" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "unauthPolicyName", + "ParameterValue": "s3_amplify_bf41454d" + }, + { + "ParameterKey": "authRoleName", + "ParameterValue": "amplify-discussions-x-x-authRole" + }, + { + "ParameterKey": "GuestAllowList", + "ParameterValue": "DISALLOW" + }, + { + "ParameterKey": "authPolicyName", + "ParameterValue": "s3_amplify_bf41454d" + }, + { + "ParameterKey": "s3ProtectedPolicy", + "ParameterValue": "Protected_policy_bf41454d" + }, + { + "ParameterKey": "s3PermissionsAuthenticatedProtected", + "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" + }, + { + "ParameterKey": "s3PermissionsGuestUploads", + "ParameterValue": "DISALLOW" + }, + { + "ParameterKey": "s3ReadPolicy", + "ParameterValue": "read_policy_bf41454d" + }, + { + "ParameterKey": "selectedAuthenticatedPermissions", + "ParameterValue": "s3:PutObject,s3:GetObject,s3:ListBucket,s3:DeleteObject" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-storageavatars-x.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-storageavatars-x.template.json new file mode 100644 index 00000000000..78971e367f6 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-storageavatars-x.template.json @@ -0,0 +1,599 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-S3\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "bucketName": { + "Type": "String" + }, + "authRoleName": { + "Type": "String" + }, + "unauthRoleName": { + "Type": "String" + }, + "authPolicyName": { + "Type": "String" + }, + "unauthPolicyName": { + "Type": "String" + }, + "s3PublicPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3PrivatePolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3ProtectedPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3UploadsPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3ReadPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3PermissionsAuthenticatedPublic": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedProtected": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedPrivate": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedUploads": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsGuestPublic": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsGuestUploads": { + "Type": "String", + "Default": "DISALLOW" + }, + "AuthenticatedAllowList": { + "Type": "String", + "Default": "DISALLOW" + }, + "GuestAllowList": { + "Type": "String", + "Default": "DISALLOW" + }, + "selectedGuestPermissions": { + "Type": "CommaDelimitedList", + "Default": "NONE" + }, + "selectedAuthenticatedPermissions": { + "Type": "CommaDelimitedList", + "Default": "NONE" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + }, + "CreateAuthPublic": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "s3PermissionsAuthenticatedPublic" + }, + "DISALLOW" + ] + } + ] + }, + "CreateAuthProtected": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "s3PermissionsAuthenticatedProtected" + }, + "DISALLOW" + ] + } + ] + }, + "CreateAuthPrivate": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "s3PermissionsAuthenticatedPrivate" + }, + "DISALLOW" + ] + } + ] + }, + "CreateAuthUploads": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "s3PermissionsAuthenticatedUploads" + }, + "DISALLOW" + ] + } + ] + }, + "CreateGuestPublic": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "s3PermissionsGuestPublic" + }, + "DISALLOW" + ] + } + ] + }, + "CreateGuestUploads": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "s3PermissionsGuestUploads" + }, + "DISALLOW" + ] + } + ] + }, + "AuthReadAndList": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "AuthenticatedAllowList" + }, + "DISALLOW" + ] + } + ] + }, + "GuestReadAndList": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "GuestAllowList" + }, + "DISALLOW" + ] + } + ] + } + }, + "Outputs": { + "BucketName": { + "Description": "Bucket name for the S3 bucket", + "Value": { + "Ref": "S3Bucket" + } + }, + "Region": { + "Value": { + "Ref": "AWS::Region" + } + } + }, + "Resources": { + "S3Bucket": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + { + "Ref": "bucketName" + }, + { + "Fn::Join": [ + "", + [ + { + "Ref": "bucketName" + }, + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + { + "Ref": "AWS::StackName" + } + ] + } + ] + }, + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "Id": "S3CORSRuleId1", + "MaxAge": 3000 + } + ] + }, + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + } + }, + "UpdateReplacePolicy": "Retain", + "DeletionPolicy": "Retain" + }, + "S3AuthPublicPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + { + "Ref": "s3PermissionsAuthenticatedPublic" + } + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + }, + "/public/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": { + "Ref": "s3PublicPolicy" + }, + "Roles": [ + { + "Ref": "authRoleName" + } + ] + }, + "DependsOn": [ + "S3Bucket" + ], + "Condition": "CreateAuthPublic" + }, + "S3AuthProtectedPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + { + "Ref": "s3PermissionsAuthenticatedProtected" + } + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + }, + "/protected/${cognito-identity.amazonaws.com:sub}/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": { + "Ref": "s3ProtectedPolicy" + }, + "Roles": [ + { + "Ref": "authRoleName" + } + ] + }, + "DependsOn": [ + "S3Bucket" + ], + "Condition": "CreateAuthProtected" + }, + "S3AuthPrivatePolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + { + "Ref": "s3PermissionsAuthenticatedPrivate" + } + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + }, + "/private/${cognito-identity.amazonaws.com:sub}/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": { + "Ref": "s3PrivatePolicy" + }, + "Roles": [ + { + "Ref": "authRoleName" + } + ] + }, + "DependsOn": [ + "S3Bucket" + ], + "Condition": "CreateAuthPrivate" + }, + "S3AuthUploadPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + { + "Ref": "s3PermissionsAuthenticatedUploads" + } + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + }, + "/uploads/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": { + "Ref": "s3UploadsPolicy" + }, + "Roles": [ + { + "Ref": "authRoleName" + } + ] + }, + "DependsOn": [ + "S3Bucket" + ], + "Condition": "CreateAuthUploads" + }, + "S3AuthReadPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + }, + "/protected/*" + ] + ] + } + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/", + "public/*", + "protected/", + "protected/*", + "private/${cognito-identity.amazonaws.com:sub}/", + "private/${cognito-identity.amazonaws.com:sub}/*" + ] + } + }, + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + } + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": { + "Ref": "s3ReadPolicy" + }, + "Roles": [ + { + "Ref": "authRoleName" + } + ] + }, + "DependsOn": [ + "S3Bucket" + ], + "Condition": "AuthReadAndList" + }, + "S3GuestReadPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + }, + "/protected/*" + ] + ] + } + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/", + "public/*", + "protected/", + "protected/*" + ] + } + }, + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + } + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": { + "Ref": "s3ReadPolicy" + }, + "Roles": [ + { + "Ref": "unauthRoleName" + } + ] + }, + "DependsOn": [ + "S3Bucket" + ], + "Condition": "GuestReadAndList" + } + } +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-storagebookmarks-x.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-storagebookmarks-x.description.txt new file mode 100644 index 00000000000..4f6a85b2847 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-storagebookmarks-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"storage-DynamoDB","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-storagebookmarks-x.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-storagebookmarks-x.outputs.json new file mode 100644 index 00000000000..49d36b2a80b --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-storagebookmarks-x.outputs.json @@ -0,0 +1,34 @@ +[ + { + "OutputKey": "PartitionKeyName", + "OutputValue": "userId" + }, + { + "OutputKey": "SortKeyName", + "OutputValue": "postId" + }, + { + "OutputKey": "SortKeyType", + "OutputValue": "S" + }, + { + "OutputKey": "Region", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "Arn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/bookmarks-x" + }, + { + "OutputKey": "StreamArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/bookmarks-x/stream/2026-04-15T03:52:11.077" + }, + { + "OutputKey": "PartitionKeyType", + "OutputValue": "S" + }, + { + "OutputKey": "Name", + "OutputValue": "bookmarks-x" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-storagebookmarks-x.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-storagebookmarks-x.parameters.json new file mode 100644 index 00000000000..edbc064a301 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-storagebookmarks-x.parameters.json @@ -0,0 +1,26 @@ +[ + { + "ParameterKey": "partitionKeyType", + "ParameterValue": "S" + }, + { + "ParameterKey": "partitionKeyName", + "ParameterValue": "userId" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "sortKeyName", + "ParameterValue": "postId" + }, + { + "ParameterKey": "sortKeyType", + "ParameterValue": "S" + }, + { + "ParameterKey": "tableName", + "ParameterValue": "bookmarks" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-storagebookmarks-x.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-storagebookmarks-x.template.json new file mode 100644 index 00000000000..976119728ee --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x-storagebookmarks-x.template.json @@ -0,0 +1,156 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-DynamoDB\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "partitionKeyName": { + "Type": "String" + }, + "partitionKeyType": { + "Type": "String" + }, + "env": { + "Type": "String" + }, + "sortKeyName": { + "Type": "String" + }, + "sortKeyType": { + "Type": "String" + }, + "tableName": { + "Type": "String" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + } + }, + "Resources": { + "DynamoDBTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "AttributeDefinitions": [ + { + "AttributeName": "userId", + "AttributeType": "S" + }, + { + "AttributeName": "postId", + "AttributeType": "S" + } + ], + "GlobalSecondaryIndexes": [ + { + "IndexName": "byPost", + "KeySchema": [ + { + "AttributeName": "postId", + "KeyType": "HASH" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "ReadCapacityUnits": 5, + "WriteCapacityUnits": 5 + } + } + ], + "KeySchema": [ + { + "AttributeName": "userId", + "KeyType": "HASH" + }, + { + "AttributeName": "postId", + "KeyType": "RANGE" + } + ], + "ProvisionedThroughput": { + "ReadCapacityUnits": 5, + "WriteCapacityUnits": 5 + }, + "StreamSpecification": { + "StreamViewType": "NEW_IMAGE" + }, + "TableName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + { + "Ref": "tableName" + }, + { + "Fn::Join": [ + "", + [ + { + "Ref": "tableName" + }, + "-", + { + "Ref": "env" + } + ] + ] + } + ] + } + } + } + }, + "Outputs": { + "Name": { + "Value": { + "Ref": "DynamoDBTable" + } + }, + "Arn": { + "Value": { + "Fn::GetAtt": [ + "DynamoDBTable", + "Arn" + ] + } + }, + "StreamArn": { + "Value": { + "Fn::GetAtt": [ + "DynamoDBTable", + "StreamArn" + ] + } + }, + "PartitionKeyName": { + "Value": { + "Ref": "partitionKeyName" + } + }, + "PartitionKeyType": { + "Value": { + "Ref": "partitionKeyType" + } + }, + "SortKeyName": { + "Value": { + "Ref": "sortKeyName" + } + }, + "SortKeyType": { + "Value": { + "Ref": "sortKeyType" + } + }, + "Region": { + "Value": { + "Ref": "AWS::Region" + } + } + } +} diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x.description.txt b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x.description.txt new file mode 100644 index 00000000000..6e1d8ff2351 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x.description.txt @@ -0,0 +1 @@ +Root Stack for AWS Amplify CLI diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x.outputs.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x.outputs.json new file mode 100644 index 00000000000..968243f00d5 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x.outputs.json @@ -0,0 +1,42 @@ +[ + { + "OutputKey": "AuthRoleName", + "OutputValue": "amplify-discussions-x-x-authRole" + }, + { + "OutputKey": "UnauthRoleArn", + "OutputValue": "arn:aws:iam::123456789012:role/amplify-discussions-x-x-unauthRole" + }, + { + "OutputKey": "AuthRoleArn", + "OutputValue": "arn:aws:iam::123456789012:role/amplify-discussions-x-x-authRole" + }, + { + "OutputKey": "Region", + "OutputValue": "us-east-1", + "Description": "CloudFormation provider root stack Region", + "ExportName": "amplify-discussions-x-x-Region" + }, + { + "OutputKey": "DeploymentBucketName", + "OutputValue": "amplify-discussions-x-x-deployment", + "Description": "CloudFormation provider root stack deployment bucket name", + "ExportName": "amplify-discussions-x-x-DeploymentBucketName" + }, + { + "OutputKey": "UnauthRoleName", + "OutputValue": "amplify-discussions-x-x-unauthRole" + }, + { + "OutputKey": "StackName", + "OutputValue": "amplify-discussions-x-x", + "Description": "CloudFormation provider root stack ID", + "ExportName": "amplify-discussions-x-x-StackName" + }, + { + "OutputKey": "StackId", + "OutputValue": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-discussions-x-x/573e2000-387e-11f1-8fe1-0e59b95a9da1", + "Description": "CloudFormation provider root stack name", + "ExportName": "amplify-discussions-x-x-StackId" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x.parameters.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x.parameters.json new file mode 100644 index 00000000000..f1b3d3885d5 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x.parameters.json @@ -0,0 +1,14 @@ +[ + { + "ParameterKey": "AuthRoleName", + "ParameterValue": "amplify-discussions-x-x-authRole" + }, + { + "ParameterKey": "DeploymentBucketName", + "ParameterValue": "amplify-discussions-x-x-deployment" + }, + { + "ParameterKey": "UnauthRoleName", + "ParameterValue": "amplify-discussions-x-x-unauthRole" + } +] diff --git a/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x.template.json b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x.template.json new file mode 100644 index 00000000000..e03c7e56754 --- /dev/null +++ b/amplify-migration-apps/discussions/_snapshot.pre.refactor/amplify-discussions-x-x.template.json @@ -0,0 +1,610 @@ +{ + "Description": "Root Stack for AWS Amplify CLI", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "DeploymentBucketName": { + "Type": "String", + "Default": "DeploymentBucket", + "Description": "Name of the common deployment bucket provided by the parent stack" + }, + "AuthRoleName": { + "Type": "String", + "Default": "AuthRoleName", + "Description": "Name of the common deployment bucket provided by the parent stack" + }, + "UnauthRoleName": { + "Type": "String", + "Default": "UnAuthRoleName", + "Description": "Name of the common deployment bucket provided by the parent stack" + } + }, + "Outputs": { + "Region": { + "Description": "CloudFormation provider root stack Region", + "Value": { + "Ref": "AWS::Region" + }, + "Export": { + "Name": { + "Fn::Sub": "${AWS::StackName}-Region" + } + } + }, + "StackName": { + "Description": "CloudFormation provider root stack ID", + "Value": { + "Ref": "AWS::StackName" + }, + "Export": { + "Name": { + "Fn::Sub": "${AWS::StackName}-StackName" + } + } + }, + "StackId": { + "Description": "CloudFormation provider root stack name", + "Value": { + "Ref": "AWS::StackId" + }, + "Export": { + "Name": { + "Fn::Sub": "${AWS::StackName}-StackId" + } + } + }, + "AuthRoleArn": { + "Value": { + "Fn::GetAtt": [ + "AuthRole", + "Arn" + ] + } + }, + "UnauthRoleArn": { + "Value": { + "Fn::GetAtt": [ + "UnauthRole", + "Arn" + ] + } + }, + "DeploymentBucketName": { + "Description": "CloudFormation provider root stack deployment bucket name", + "Value": { + "Ref": "DeploymentBucketName" + }, + "Export": { + "Name": { + "Fn::Sub": "${AWS::StackName}-DeploymentBucketName" + } + } + }, + "AuthRoleName": { + "Value": { + "Ref": "AuthRole" + } + }, + "UnauthRoleName": { + "Value": { + "Ref": "UnauthRole" + } + } + }, + "Resources": { + "DeploymentBucket": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketName": { + "Ref": "DeploymentBucketName" + }, + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + } + }, + "UpdateReplacePolicy": "Retain", + "DeletionPolicy": "Retain" + }, + "DeploymentBucketBlockHTTP": { + "Type": "AWS::S3::BucketPolicy", + "Properties": { + "Bucket": { + "Ref": "DeploymentBucketName" + }, + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:*", + "Effect": "Deny", + "Principal": "*", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "DeploymentBucketName" + }, + "/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "DeploymentBucketName" + } + ] + ] + } + ], + "Condition": { + "Bool": { + "aws:SecureTransport": false + } + } + } + ] + } + } + }, + "AuthRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Sid": "", + "Effect": "Deny", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + }, + "Action": "sts:AssumeRoleWithWebIdentity" + } + ] + }, + "RoleName": { + "Ref": "AuthRoleName" + } + } + }, + "UnauthRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Sid": "", + "Effect": "Deny", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + }, + "Action": "sts:AssumeRoleWithWebIdentity" + } + ] + }, + "RoleName": { + "Ref": "UnauthRoleName" + } + } + }, + "apidiscussions": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "Parameters": { + "AppSyncApiName": "discussions", + "DynamoDBBillingMode": "PAY_PER_REQUEST", + "DynamoDBEnableServerSideEncryption": false, + "S3DeploymentBucket": "amplify-discussions-x-x-deployment", + "S3DeploymentRootKey": "amplify-appsync-files/db92bad357b2590353e82db2f2ec7d0fc9cfd30d", + "env": "x" + } + } + }, + "authdiscussionsc578c16ec578c16e": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/auth/discussionsc578c16ec578c16e-cloudformation-template.json", + "Parameters": { + "identityPoolName": "discussionsc578c16e_identitypool_c578c16e", + "allowUnauthenticatedIdentities": false, + "resourceNameTruncated": "discusc578c16e", + "userPoolName": "discussionsc578c16e_userpool_c578c16e", + "autoVerifiedAttributes": "email", + "mfaConfiguration": "OFF", + "mfaTypes": "SMS Text Message", + "smsAuthenticationMessage": "Your authentication code is {####}", + "smsVerificationMessage": "Your verification code is {####}", + "emailVerificationSubject": "Verification", + "emailVerificationMessage": "Here is your verification code {####}", + "defaultPasswordPolicy": false, + "passwordPolicyMinLength": 8, + "passwordPolicyCharacters": "", + "requiredAttributes": "email,phone_number", + "aliasAttributes": "", + "userpoolClientGenerateSecret": false, + "userpoolClientRefreshTokenValidity": "120", + "userpoolClientWriteAttributes": "email", + "userpoolClientReadAttributes": "email", + "userpoolClientLambdaRole": "discusc578c16e_userpoolclient_lambda_role", + "userpoolClientSetAttributes": false, + "sharedId": "c578c16e", + "resourceName": "discussionsc578c16ec578c16e", + "authSelections": "identityPoolAndUserPool", + "useDefault": "manual", + "thirdPartyAuth": false, + "usernameAttributes": "phone_number", + "userPoolGroups": false, + "adminQueries": false, + "triggers": "{}", + "hostedUI": false, + "userPoolGroupList": "", + "serviceName": "Cognito", + "usernameCaseSensitive": false, + "useEnabledMfas": true, + "authRoleArn": { + "Fn::GetAtt": [ + "AuthRole", + "Arn" + ] + }, + "unauthRoleArn": { + "Fn::GetAtt": [ + "UnauthRole", + "Arn" + ] + }, + "breakCircularDependency": true, + "dependsOn": "", + "env": "x" + } + } + }, + "functionfetchuseractivity": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/function/fetchuseractivity-cloudformation-template.json", + "Parameters": { + "deploymentBucketName": "amplify-discussions-x-x-deployment", + "s3Key": "amplify-builds/fetchuseractivity-574d43794579796f5042-build.zip", + "storageactivityName": { + "Fn::GetAtt": [ + "storageactivity", + "Outputs.Name" + ] + }, + "storageactivityArn": { + "Fn::GetAtt": [ + "storageactivity", + "Outputs.Arn" + ] + }, + "storageactivityStreamArn": { + "Fn::GetAtt": [ + "storageactivity", + "Outputs.StreamArn" + ] + }, + "env": "x" + } + } + }, + "functionrecorduseractivity": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/function/recorduseractivity-cloudformation-template.json", + "Parameters": { + "deploymentBucketName": "amplify-discussions-x-x-deployment", + "s3Key": "amplify-builds/recorduseractivity-54696a587a7168467354-build.zip", + "apidiscussionsGraphQLAPIIdOutput": { + "Fn::GetAtt": [ + "apidiscussions", + "Outputs.GraphQLAPIIdOutput" + ] + }, + "apidiscussionsGraphQLAPIEndpointOutput": { + "Fn::GetAtt": [ + "apidiscussions", + "Outputs.GraphQLAPIEndpointOutput" + ] + }, + "storageactivityName": { + "Fn::GetAtt": [ + "storageactivity", + "Outputs.Name" + ] + }, + "storageactivityArn": { + "Fn::GetAtt": [ + "storageactivity", + "Outputs.Arn" + ] + }, + "storageactivityStreamArn": { + "Fn::GetAtt": [ + "storageactivity", + "Outputs.StreamArn" + ] + }, + "env": "x" + } + } + }, + "storageactivity": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/storage/activity-cloudformation-template.json", + "Parameters": { + "tableName": "activity", + "partitionKeyName": "id", + "partitionKeyType": "S", + "sortKeyName": "userId", + "sortKeyType": "S", + "env": "x" + } + } + }, + "storageavatars": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "Parameters": { + "bucketName": "discus-avatars", + "selectedGuestPermissions": "", + "selectedAuthenticatedPermissions": "s3:PutObject,s3:GetObject,s3:ListBucket,s3:DeleteObject", + "unauthRoleName": { + "Ref": "UnauthRoleName" + }, + "authRoleName": { + "Ref": "AuthRoleName" + }, + "s3PrivatePolicy": "Private_policy_bf41454d", + "s3ProtectedPolicy": "Protected_policy_bf41454d", + "s3PublicPolicy": "Public_policy_bf41454d", + "s3ReadPolicy": "read_policy_bf41454d", + "s3UploadsPolicy": "Uploads_policy_bf41454d", + "authPolicyName": "s3_amplify_bf41454d", + "unauthPolicyName": "s3_amplify_bf41454d", + "AuthenticatedAllowList": "ALLOW", + "GuestAllowList": "DISALLOW", + "s3PermissionsAuthenticatedPrivate": "s3:PutObject,s3:GetObject,s3:DeleteObject", + "s3PermissionsAuthenticatedProtected": "s3:PutObject,s3:GetObject,s3:DeleteObject", + "s3PermissionsAuthenticatedPublic": "s3:PutObject,s3:GetObject,s3:DeleteObject", + "s3PermissionsAuthenticatedUploads": "s3:PutObject", + "s3PermissionsGuestPublic": "DISALLOW", + "s3PermissionsGuestUploads": "DISALLOW", + "env": "x" + } + } + }, + "storagebookmarks": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-discussions-x-x-deployment/amplify-cfn-templates/storage/bookmarks-cloudformation-template.json", + "Parameters": { + "tableName": "bookmarks", + "partitionKeyName": "userId", + "partitionKeyType": "S", + "sortKeyName": "postId", + "sortKeyType": "S", + "env": "x" + } + } + }, + "UpdateRolesWithIDPFunction": { + "DependsOn": [ + "AuthRole", + "UnauthRole", + "authdiscussionsc578c16ec578c16e" + ], + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "ZipFile": { + "Fn::Join": [ + "\n", + [ + "const response = require('cfn-response');", + "const { IAMClient, GetRoleCommand, UpdateAssumeRolePolicyCommand } = require('@aws-sdk/client-iam');", + "exports.handler = function(event, context) {", + " // Don't return promise, response.send() marks context as done internally", + " const ignoredPromise = handleEvent(event, context)", + "};", + "async function handleEvent(event, context) {", + " try {", + " let authRoleName = event.ResourceProperties.authRoleName;", + " let unauthRoleName = event.ResourceProperties.unauthRoleName;", + " let idpId = event.ResourceProperties.idpId;", + " let authParamsJson = {", + " 'Version': '2012-10-17',", + " 'Statement': [{", + " 'Effect': 'Allow',", + " 'Principal': {'Federated': 'cognito-identity.amazonaws.com'},", + " 'Action': 'sts:AssumeRoleWithWebIdentity',", + " 'Condition': {", + " 'StringEquals': {'cognito-identity.amazonaws.com:aud': idpId},", + " 'ForAnyValue:StringLike': {'cognito-identity.amazonaws.com:amr': 'authenticated'}", + " }", + " }]", + " };", + " let unauthParamsJson = {", + " 'Version': '2012-10-17',", + " 'Statement': [{", + " 'Effect': 'Allow',", + " 'Principal': {'Federated': 'cognito-identity.amazonaws.com'},", + " 'Action': 'sts:AssumeRoleWithWebIdentity',", + " 'Condition': {", + " 'StringEquals': {'cognito-identity.amazonaws.com:aud': idpId},", + " 'ForAnyValue:StringLike': {'cognito-identity.amazonaws.com:amr': 'unauthenticated'}", + " }", + " }]", + " };", + " if (event.RequestType === 'Delete') {", + " try {", + " delete authParamsJson.Statement[0].Condition;", + " delete unauthParamsJson.Statement[0].Condition;", + " authParamsJson.Statement[0].Effect = 'Deny'", + " unauthParamsJson.Statement[0].Effect = 'Deny'", + " let authParams = {PolicyDocument: JSON.stringify(authParamsJson), RoleName: authRoleName};", + " let unauthParams = {PolicyDocument: JSON.stringify(unauthParamsJson), RoleName: unauthRoleName};", + " const iam = new IAMClient({region: event.ResourceProperties.region});", + " let res = await Promise.all([", + " iam.send(new GetRoleCommand({RoleName: authParams.RoleName})),", + " iam.send(new GetRoleCommand({RoleName: unauthParams.RoleName}))", + " ]);", + " res = await Promise.all([", + " iam.send(new UpdateAssumeRolePolicyCommand(authParams)),", + " iam.send(new UpdateAssumeRolePolicyCommand(unauthParams))", + " ]);", + " response.send(event, context, response.SUCCESS, {});", + " } catch (err) {", + " console.log(err.stack);", + " response.send(event, context, response.SUCCESS, {Error: err});", + " }", + " } else if (event.RequestType === 'Update' || event.RequestType === 'Create') {", + " const iam = new IAMClient({region: event.ResourceProperties.region});", + " let authParams = {PolicyDocument: JSON.stringify(authParamsJson), RoleName: authRoleName};", + " let unauthParams = {PolicyDocument: JSON.stringify(unauthParamsJson), RoleName: unauthRoleName};", + " const res = await Promise.all([", + " iam.send(new UpdateAssumeRolePolicyCommand(authParams)),", + " iam.send(new UpdateAssumeRolePolicyCommand(unauthParams))", + " ]);", + " response.send(event, context, response.SUCCESS, {});", + " }", + " } catch (err) {", + " console.log(err.stack);", + " response.send(event, context, response.FAILED, {Error: err});", + " }", + "};" + ] + ] + } + }, + "Handler": "index.handler", + "Runtime": "nodejs22.x", + "Timeout": 300, + "Role": { + "Fn::GetAtt": [ + "UpdateRolesWithIDPFunctionRole", + "Arn" + ] + } + } + }, + "UpdateRolesWithIDPFunctionOutputs": { + "Type": "Custom::LambdaCallout", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "UpdateRolesWithIDPFunction", + "Arn" + ] + }, + "region": { + "Ref": "AWS::Region" + }, + "idpId": { + "Fn::GetAtt": [ + "authdiscussionsc578c16ec578c16e", + "Outputs.IdentityPoolId" + ] + }, + "authRoleName": { + "Ref": "AuthRole" + }, + "unauthRoleName": { + "Ref": "UnauthRole" + } + } + }, + "UpdateRolesWithIDPFunctionRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "RoleName": { + "Fn::Join": [ + "", + [ + { + "Ref": "AuthRole" + }, + "-idp" + ] + ] + }, + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": [ + "lambda.amazonaws.com" + ] + }, + "Action": [ + "sts:AssumeRole" + ] + } + ] + }, + "Policies": [ + { + "PolicyName": "UpdateRolesWithIDPFunctionPolicy", + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "logs:CreateLogGroup", + "logs:CreateLogStream", + "logs:PutLogEvents" + ], + "Resource": "arn:aws:logs:*:*:*" + }, + { + "Effect": "Allow", + "Action": [ + "iam:UpdateAssumeRolePolicy", + "iam:GetRole" + ], + "Resource": { + "Fn::GetAtt": [ + "AuthRole", + "Arn" + ] + } + }, + { + "Effect": "Allow", + "Action": [ + "iam:UpdateAssumeRolePolicy", + "iam:GetRole" + ], + "Resource": { + "Fn::GetAtt": [ + "UnauthRole", + "Arn" + ] + } + } + ] + } + } + ] + } + } + } +} diff --git a/amplify-migration-apps/discussions/package.json b/amplify-migration-apps/discussions/package.json index 864804fce63..59db15592e0 100644 --- a/amplify-migration-apps/discussions/package.json +++ b/amplify-migration-apps/discussions/package.json @@ -13,6 +13,7 @@ "configure": "./backend/configure.sh", "configure-schema": "./backend/configure-schema.sh", "sanitize": "tsx ../sanitize.ts", + "normalize": "tsx ../normalize.ts", "typecheck": "cd _snapshot.post.generate/amplify && npx tsc --noEmit", "test:gen1": "APP_CONFIG_PATH=${APP_CONFIG_PATH:-src/amplifyconfiguration.json} NODE_OPTIONS='--experimental-vm-modules' jest --verbose --testPathIgnorePatterns='shared-data'", "test:gen2": "APP_CONFIG_PATH=${APP_CONFIG_PATH:-amplify_outputs.json} NODE_OPTIONS='--experimental-vm-modules' jest --verbose --testPathIgnorePatterns='shared-data'", diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify.yml b/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify.yml index 52c312768f5..19475262460 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify.yml +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify.yml @@ -8,16 +8,11 @@ backend: - npx ampx pipeline-deploy --branch $AWS_BRANCH --app-id $AWS_APP_ID frontend: phases: - preBuild: - commands: - - npm install build: commands: - - npm run build + - mkdir dist + - touch dist/index.html artifacts: baseDirectory: dist files: - "**/*" - cache: - paths: - - node_modules/**/* diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/backend.ts b/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/backend.ts index 582a879b36a..2cea7993f97 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/backend.ts +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/backend.ts @@ -120,8 +120,8 @@ const gen1nutritionapiApi = RestApi.fromRestApiAttributes( nutritionapiStack, 'Gen1nutritionapiApi', { - restApiId: 'hmydcaubcb', - rootResourceId: 'hmydcaubcb-root', + restApiId: 's27d6on2x4', + rootResourceId: 's27d6on2x4-root', } ); const gen1nutritionapiPolicy = new Policy( @@ -249,8 +249,8 @@ const gen1adminapiApi = RestApi.fromRestApiAttributes( adminapiStack, 'Gen1adminapiApi', { - restApiId: 'oxq86r59h6', - rootResourceId: 'oxq86r59h6-root', + restApiId: 'wn1ifrxt6h', + rootResourceId: 'wn1ifrxt6h-root', } ); const gen1adminapiPolicy = new Policy(adminapiStack, 'Gen1adminapiPolicy', { diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/data/resource.ts b/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/data/resource.ts index 26962a0c071..cebbbf3b8de 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/data/resource.ts +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/amplify/data/resource.ts @@ -36,11 +36,11 @@ export const data = defineData({ migratedAmplifyGen1DynamoDbTableMappings: [ { //The "branchname" variable needs to be the same as your deployment branch if you want to reuse your Gen1 app tables - branchName: 'main', + branchName: 'x', modelNameToTableNameMapping: { - WorkoutProgram: 'WorkoutProgram-jzwb5p2vcbd2ldlnlxokgjcjby-main', - Exercise: 'Exercise-jzwb5p2vcbd2ldlnlxokgjcjby-main', - Meal: 'Meal-jzwb5p2vcbd2ldlnlxokgjcjby-main', + WorkoutProgram: 'WorkoutProgram-xwgwkksjrbcoxnb64a6clvir4u-x', + Exercise: 'Exercise-xwgwkksjrbcoxnb64a6clvir4u-x', + Meal: 'Meal-xwgwkksjrbcoxnb64a6clvir4u-x', }, }, ], diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/package.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/package.json index 10c2c83ec2d..e457c78c1c8 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/package.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.generate/package.json @@ -1,5 +1,5 @@ { - "name": "@amplify-migration-apps/fitness-goal-tracker-snapshot", + "name": "@amplify-migration-apps/fitness-tracker-snapshot", "private": true, "version": "1.0.0", "type": "module", @@ -12,10 +12,22 @@ "build": "tsc -b && vite build", "lint": "eslint .", "preview": "vite preview", - "configure": "./configure.sh", - "configure-schema": "./configure-schema.sh", + "configure": "./backend/configure.sh", + "configure-schema": "./backend/configure-schema.sh", "sanitize": "tsx ../sanitize.ts", - "typecheck": "cd _snapshot.post.generate/amplify && npx tsc --noEmit" + "normalize": "tsx ../normalize.ts", + "typecheck": "cd _snapshot.post.generate/amplify && npx tsc --noEmit", + "test:gen1": "APP_CONFIG_PATH=${APP_CONFIG_PATH:-src/amplifyconfiguration.json} NODE_OPTIONS='--experimental-vm-modules' jest --verbose", + "test:gen2": "APP_CONFIG_PATH=${APP_CONFIG_PATH:-amplify_outputs.json} NODE_OPTIONS='--experimental-vm-modules' jest --verbose", + "test:shared-data": "true", + "test:e2e": "cd ../../packages/amplify-gen2-migration-e2e-system && npx tsx src/cli.ts --app fitness-tracker --profile ${AWS_PROFILE:-default}", + "deploy": "cd ../../packages/amplify-gen2-migration-e2e-system && npx tsx src/cli.ts --app fitness-tracker --step deploy --profile ${AWS_PROFILE:-default}", + "pre-push": "npx tsx migration/pre-push.ts", + "post-generate": "npx tsx migration/post-generate.ts", + "post-refactor": "true", + "post-sandbox": "true", + "pre-sandbox": "true", + "post-push": "true" }, "dependencies": { "@aws-amplify/ui-react": "^6.13.1", @@ -33,8 +45,11 @@ "@aws-amplify/backend": "^1.18.0", "@aws-amplify/backend-cli": "^1.8.0", "@aws-amplify/backend-data": "^1.6.2", + "@aws-sdk/client-cognito-identity-provider": "^3.936.0", + "@aws-sdk/client-lambda": "^3.936.0", "@eslint/js": "^9.39.1", "@types/aws-lambda": "^8.10.92", + "@types/jest": "^29.5.14", "@types/node": "*", "@types/react": "^19.2.5", "@types/react-dom": "^19.2.3", @@ -48,6 +63,8 @@ "eslint-plugin-react-hooks": "^7.0.1", "eslint-plugin-react-refresh": "^0.4.24", "globals": "^16.5.0", + "jest": "^29.7.0", + "ts-jest": "^29.3.4", "tsx": "^4.20.6", "typescript": "~5.9.3", "typescript-eslint": "^8.46.4", diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x.__to__.amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x-holding.mappings.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x.__to__.amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x-holding.mappings.json new file mode 100644 index 00000000000..46c5ede659c --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x.__to__.amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x-holding.mappings.json @@ -0,0 +1,52 @@ +[ + { + "Source": { + "StackName": "amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + }, + "Destination": { + "StackName": "amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x-holding", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + } + }, + { + "Source": { + "StackName": "amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + }, + "Destination": { + "StackName": "amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x-holding", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + } + }, + { + "Source": { + "StackName": "amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + }, + "Destination": { + "StackName": "amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x-holding", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + } + }, + { + "Source": { + "StackName": "amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + }, + "Destination": { + "StackName": "amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x-holding", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + } + }, + { + "Source": { + "StackName": "amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + }, + "Destination": { + "StackName": "amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x-holding", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + } + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x.__to__.amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x-holding.source.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x.__to__.amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x-holding.source.template.json new file mode 100644 index 00000000000..5dbcd063d29 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x.__to__.amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x-holding.source.template.json @@ -0,0 +1,917 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", + "Resources": { + "amplifyAuthUserPoolPreSignUpCognito55F45D8E": { + "Type": "AWS::Lambda::Permission", + "Properties": { + "Action": "lambda:InvokeFunction", + "FunctionName": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker33f5545533f55455PreSignup-gen2-x", + "Principal": "cognito-idp.amazonaws.com", + "SourceArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_FnKoHEldQ" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/amplifyAuth/UserPool/PreSignUpCognito" + } + }, + "amplifyAuthauthenticatedUserRoleD8DA3689": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:64bddaa4-7f3b-47a0-b404-3275cd735004" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/amplifyAuth/authenticatedUserRole/Resource" + } + }, + "amplifyAuthunauthenticatedUserRole2B524D9E": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:64bddaa4-7f3b-47a0-b404-3275cd735004" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "unauthenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/amplifyAuth/unauthenticatedUserRole/Resource" + } + }, + "amplifyAuthAdminGroupRole766878DC": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:64bddaa4-7f3b-47a0-b404-3275cd735004" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/amplifyAuth/AdminGroupRole/Resource" + } + }, + "fitnesstracker33f5545533f55455PreSignupgen2xlambdaServiceRole796B58B8": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "fitnesstracker33f5545533f55455PreSignup-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/fitnesstracker33f5545533f55455PreSignup-gen2-x-lambda/ServiceRole/Resource" + } + }, + "fitnesstracker33f5545533f55455PreSignupgen2xlambda207A093B": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Architectures": [ + "x86_64" + ], + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "4eb38c172ef4d940eb17f8c6890c0284b8743fc46517097ac3e22db8b67f30eb.zip" + }, + "Environment": { + "Variables": { + "MODULES": "email-filter-allowlist", + "DOMAINALLOWLIST": "amazon.com", + "DOMAINBLACKLIST": "", + "ENV": "gen2-x", + "REGION": "us-east-1", + "AMPLIFY_SSM_ENV_CONFIG": "{}" + } + }, + "EphemeralStorage": { + "Size": 512 + }, + "FunctionName": "fitnesstracker33f5545533f55455PreSignup-gen2-x", + "Handler": "index.handler", + "MemorySize": 128, + "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x/fitnesstracker33f5545533f55455PreSignupgen2xlambdaServiceRole796B58B8", + "Runtime": "nodejs22.x", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "fitnesstracker33f5545533f55455PreSignup-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 25 + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/fitnesstracker33f5545533f55455PreSignup-gen2-x-lambda/Resource", + "aws:asset:path": "asset.4eb38c172ef4d940eb17f8c6890c0284b8743fc46517097ac3e22db8b67f30eb", + "aws:asset:is-bundled": true, + "aws:asset:property": "Code" + } + }, + "AMPLIFYAUTHUSERPOOLIDParameterCC466CA3": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/fitnesstracker/e2e-sandbox-x/AMPLIFY_AUTH_USERPOOL_ID", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": "us-east-1_FnKoHEldQ" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/AMPLIFY_AUTH_USERPOOL_IDParameter/Resource" + } + }, + "admingen2xlambdaServiceRoleDFED86E5": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "admin-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/admin-gen2-x-lambda/ServiceRole/Resource" + } + }, + "admingen2xlambdaServiceRoleDefaultPolicyF1CBE2CB": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "ssm:GetParameters", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":ssm:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":parameter/amplify/resource_reference/fitnesstracker/e2e-sandbox-x/AMPLIFY_AUTH_USERPOOL_ID" + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "admingen2xlambdaServiceRoleDefaultPolicyF1CBE2CB", + "Roles": [ + { + "Ref": "admingen2xlambdaServiceRoleDFED86E5" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/admin-gen2-x-lambda/ServiceRole/DefaultPolicy/Resource" + } + }, + "admingen2xlambdaBD6AFAAA": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Architectures": [ + "x86_64" + ], + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "5c5c671427617f523e13e68fd0ce04b66742ea630686ba9840a7c23ae2163b75.zip" + }, + "Environment": { + "Variables": { + "ENV": "gen2-x", + "REGION": "us-east-1", + "AMPLIFY_SSM_ENV_CONFIG": "{\"AMPLIFY_AUTH_USERPOOL_ID\":{\"path\":\"/amplify/resource_reference/fitnesstracker/e2e-sandbox-x/AMPLIFY_AUTH_USERPOOL_ID\"}}", + "AMPLIFY_AUTH_USERPOOL_ID": "", + "AUTH_FITNESSTRACKER33F5545533F55455_USERPOOLID": "us-east-1_FnKoHEldQ" + } + }, + "EphemeralStorage": { + "Size": 512 + }, + "FunctionName": "admin-gen2-x", + "Handler": "index.handler", + "MemorySize": 128, + "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x/admingen2xlambdaServiceRoleDFED86E5", + "Runtime": "nodejs22.x", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "admin-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 25 + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/admin-gen2-x-lambda/Resource", + "aws:asset:path": "asset.5c5c671427617f523e13e68fd0ce04b66742ea630686ba9840a7c23ae2163b75", + "aws:asset:is-bundled": true, + "aws:asset:property": "Code" + } + }, + "userpoolAccess13FEE5419": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:AdminGetDevice", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_FnKoHEldQ" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess13FEE5419", + "Roles": [ + { + "Ref": "admingen2xlambdaServiceRoleDFED86E5" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/userpoolAccess1/Resource" + } + }, + "userpoolAccess268F187DB": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:AdminGetUser", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_FnKoHEldQ" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess268F187DB", + "Roles": [ + { + "Ref": "admingen2xlambdaServiceRoleDFED86E5" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/userpoolAccess2/Resource" + } + }, + "userpoolAccess3956C62F8": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:AdminListDevices", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_FnKoHEldQ" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess3956C62F8", + "Roles": [ + { + "Ref": "admingen2xlambdaServiceRoleDFED86E5" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/userpoolAccess3/Resource" + } + }, + "userpoolAccess4A84025C3": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:AdminListGroupsForUser", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_FnKoHEldQ" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess4A84025C3", + "Roles": [ + { + "Ref": "admingen2xlambdaServiceRoleDFED86E5" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/userpoolAccess4/Resource" + } + }, + "userpoolAccess585E2FB32": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:ListUsers", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_FnKoHEldQ" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess585E2FB32", + "Roles": [ + { + "Ref": "admingen2xlambdaServiceRoleDFED86E5" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/userpoolAccess5/Resource" + } + }, + "userpoolAccess600DA4CB0": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:ListUsersInGroup", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_FnKoHEldQ" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess600DA4CB0", + "Roles": [ + { + "Ref": "admingen2xlambdaServiceRoleDFED86E5" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/userpoolAccess6/Resource" + } + }, + "userpoolAccess76F9C91C1": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:ListGroups", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_FnKoHEldQ" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess76F9C91C1", + "Roles": [ + { + "Ref": "admingen2xlambdaServiceRoleDFED86E5" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/userpoolAccess7/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/12NzW6DQAyEnyX3xaVE7T1BatRLhIJ6RpvFoYb9qdamUYR492qJaKOeZsb2fC6geMkh3+grZ6YdMktnmI7Igm0t2gxKX7mZTOg8SYDpgzFWIVhVXvyvX01pCb08rv4m7y16Ibmt5cd8ChZ3Itp8un/9Qwzj16ysdudWw1RefIXRETMFn+7eRm+Egp8VaQdTAqXxolWwZG4p3t2KaXxosWc4LrISFG8bzYzCsEuieAv70Qwoe82omB1MtUTyXaWjdigYF/Qa5lktvVp0R76bVfoCPT99FwU8v0K+6Zkoi6MXcginu/4AH6eqXH4BAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + }, + "amplifyAuthAdminGroupCC42FF04": { + "Type": "AWS::Cognito::UserPoolGroup", + "Properties": { + "Description": "override success", + "GroupName": "Admin", + "Precedence": 1, + "RoleArn": "arn:aws:iam::123456789012:role/us-east-1_Xm7264Or1-AdminGroupRole", + "UserPoolId": "us-east-1_Xm7264Or1" + } + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthUserPoolC7DC7AACRef": { + "Value": "us-east-1_FnKoHEldQ" + }, + "amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthUserPoolAppClientB7EA7D1ERef": { + "Value": "1tmuolsu3gsj9nj6bg66l3capo" + }, + "amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref": { + "Value": "us-east-1:64bddaa4-7f3b-47a0-b404-3275cd735004" + }, + "amplifyfitnesstrackere2esandboxb87516873eauthfitnesstracker33f5545533f55455PreSignupgen2xlambdaF9537418Ref": { + "Value": "fitnesstracker33f5545533f55455PreSignup-gen2-x" + }, + "amplifyfitnesstrackere2esandboxb87516873eauthadmingen2xlambda8DFBC2FBRef": { + "Value": "admin-gen2-x" + }, + "amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef": { + "Value": "amplify-fitnesstra2604142-amplifyAuthauthenticatedU-NanIXo9aixs2" + }, + "amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref": { + "Value": "amplify-fitnesstra2604142-amplifyAuthunauthenticate-1g49fB6fAFbP" + }, + "amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthAdminGroupRoleDDED643DRef": { + "Value": "amplify-fitnesstra2604142-amplifyAuthAdminGroupRole-w2iwcg4Jlkt1" + }, + "amplifyfitnesstrackere2esandboxb87516873eauthadmingen2xlambda8DFBC2FBArn": { + "Value": "arn:aws:lambda:us-east-1:123456789012:function:admin-gen2-x" + } + } +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x.__to__.amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x-holding.target.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x.__to__.amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x-holding.target.template.json new file mode 100644 index 00000000000..f4e60392830 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x.__to__.amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x-holding.target.template.json @@ -0,0 +1,225 @@ +{ + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "Temporary holding stack for Gen2 migration", + "Resources": { + "amplifyAuthAdminGroupCC42FF04": { + "Type": "AWS::Cognito::UserPoolGroup", + "Properties": { + "GroupName": "Admin", + "Precedence": 0, + "RoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstra2604142-amplifyAuthAdminGroupRole-w2iwcg4Jlkt1", + "UserPoolId": "us-east-1_FnKoHEldQ" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/amplifyAuth/AdminGroup" + } + }, + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AccountRecoverySetting": { + "RecoveryMechanisms": [ + { + "Name": "verified_email", + "Priority": 1 + } + ] + }, + "AdminCreateUserConfig": { + "AllowAdminCreateUserOnly": false + }, + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "LambdaConfig": { + "PreSignUp": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker33f5545533f55455PreSignup-gen2-x" + }, + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": 8, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false, + "TemporaryPasswordValidityDays": 7 + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "SmsVerificationMessage": "The verification code to your new account is {####}", + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolTags": { + "amplify:deployment-type": "sandbox", + "amplify:friendly-name": "amplifyAuth", + "created-by": "amplify" + }, + "UsernameConfiguration": { + "CaseSensitive": false + }, + "VerificationMessageTemplate": { + "DefaultEmailOption": "CONFIRM_WITH_CODE", + "EmailMessage": "Your verification code is {####}", + "EmailSubject": "Your verification code", + "SmsMessage": "The verification code to your new account is {####}" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/amplifyAuth/UserPool/Resource" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 43200, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": "us-east-1_FnKoHEldQ" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlows": [ + "code" + ], + "AllowedOAuthFlowsUserPoolClient": true, + "AllowedOAuthScopes": [ + "profile", + "phone", + "email", + "openid", + "aws.cognito.signin.user.admin" + ], + "CallbackURLs": [ + "https://example.com" + ], + "ExplicitAuthFlows": [ + "ALLOW_CUSTOM_AUTH", + "ALLOW_USER_SRP_AUTH", + "ALLOW_REFRESH_TOKEN_AUTH" + ], + "PreventUserExistenceErrors": "ENABLED", + "SupportedIdentityProviders": [ + "COGNITO" + ], + "UserPoolId": "us-east-1_FnKoHEldQ" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/amplifyAuth/UserPoolAppClient/Resource" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": false, + "CognitoIdentityProviders": [ + { + "ClientId": "1tmuolsu3gsj9nj6bg66l3capo", + "ProviderName": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_FnKoHEldQ" + ] + ] + } + } + ], + "IdentityPoolTags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "SupportedLoginProviders": {} + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/amplifyAuth/IdentityPool" + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:64bddaa4-7f3b-47a0-b404-3275cd735004", + "RoleMappings": { + "UserPoolWebClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_FnKoHEldQ", + ":", + "1tmuolsu3gsj9nj6bg66l3capo" + ] + ] + }, + "Type": "Token" + } + }, + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstra2604142-amplifyAuthunauthenticate-1g49fB6fAFbP", + "authenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstra2604142-amplifyAuthauthenticatedU-NanIXo9aixs2" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/amplifyAuth/IdentityPoolRoleAttachment" + } + } + }, + "Outputs": {} +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I-holding.mappings.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I-holding.mappings.json deleted file mode 100644 index 45dc09dc29f..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I-holding.mappings.json +++ /dev/null @@ -1,52 +0,0 @@ -[ - { - "Source": { - "StackName": "amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" - }, - "Destination": { - "StackName": "amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I-holding", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" - } - }, - { - "Source": { - "StackName": "amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" - }, - "Destination": { - "StackName": "amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I-holding", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" - } - }, - { - "Source": { - "StackName": "amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" - }, - "Destination": { - "StackName": "amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I-holding", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" - } - }, - { - "Source": { - "StackName": "amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" - }, - "Destination": { - "StackName": "amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I-holding", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" - } - }, - { - "Source": { - "StackName": "amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" - }, - "Destination": { - "StackName": "amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I-holding", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" - } - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I-holding.source.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I-holding.source.template.json deleted file mode 100644 index 59b4cf9ec3a..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I-holding.source.template.json +++ /dev/null @@ -1,943 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", - "Resources": { - "amplifyAuthUserPoolPreSignUpCognito55F45D8E": { - "Type": "AWS::Lambda::Permission", - "Properties": { - "Action": "lambda:InvokeFunction", - "FunctionName": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker33f5545533f55455PreSignup-gen2-main", - "Principal": "cognito-idp.amazonaws.com", - "SourceArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/UserPool/PreSignUpCognito" - } - }, - "amplifyAuthauthenticatedUserRoleD8DA3689": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3" - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "authenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/authenticatedUserRole/Resource" - } - }, - "amplifyAuthunauthenticatedUserRole2B524D9E": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3" - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "unauthenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/unauthenticatedUserRole/Resource" - } - }, - "amplifyAuthAdminGroupRole766878DC": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3" - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "authenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/AdminGroupRole/Resource" - } - }, - "fitnesstracker33f5545533f55455PreSignupgen2mainlambdaServiceRole713FCE90": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "fitnesstracker33f5545533f55455PreSignup-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/fitnesstracker33f5545533f55455PreSignup-gen2-main-lambda/ServiceRole/Resource" - } - }, - "fitnesstracker33f5545533f55455PreSignupgen2mainlambda1F6BAF02": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Architectures": [ - "x86_64" - ], - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "9f9c01e67674891c2af7783b0075317068ffc260976375cef1a2fb293d54b4f7.zip" - }, - "Environment": { - "Variables": { - "MODULES": "email-filter-allowlist", - "DOMAINALLOWLIST": "amazon.com", - "DOMAINBLACKLIST": "", - "ENV": "gen2-main", - "REGION": "us-east-1", - "AMPLIFY_SSM_ENV_CONFIG": "{}" - } - }, - "EphemeralStorage": { - "Size": 512 - }, - "FunctionName": "fitnesstracker33f5545533f55455PreSignup-gen2-main", - "Handler": "index.handler", - "MemorySize": 128, - "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I/fitnesstracker33f5545533f55455PreSignupgen2mainlambdaServiceRole713FCE90", - "Runtime": "nodejs22.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "fitnesstracker33f5545533f55455PreSignup-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 25 - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/fitnesstracker33f5545533f55455PreSignup-gen2-main-lambda/Resource", - "aws:asset:path": "asset.9f9c01e67674891c2af7783b0075317068ffc260976375cef1a2fb293d54b4f7", - "aws:asset:is-bundled": true, - "aws:asset:property": "Code" - } - }, - "AMPLIFYAUTHUSERPOOLIDParameterCC466CA3": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/fitnesstracker/gen2main-branch-400746baeb/AMPLIFY_AUTH_USERPOOL_ID", - "Tags": { - "amplify:app-id": "fitnesstracker", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": "us-east-1_KGveHFLxc" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/AMPLIFY_AUTH_USERPOOL_IDParameter/Resource" - } - }, - "admingen2mainlambdaServiceRole439B1792": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "admin-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/admin-gen2-main-lambda/ServiceRole/Resource" - } - }, - "admingen2mainlambdaServiceRoleDefaultPolicy0F640A9C": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "ssm:GetParameters", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":ssm:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":parameter/amplify/resource_reference/fitnesstracker/gen2main-branch-400746baeb/AMPLIFY_AUTH_USERPOOL_ID" - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "admingen2mainlambdaServiceRoleDefaultPolicy0F640A9C", - "Roles": [ - { - "Ref": "admingen2mainlambdaServiceRole439B1792" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/admin-gen2-main-lambda/ServiceRole/DefaultPolicy/Resource" - } - }, - "admingen2mainlambdaECF7211C": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Architectures": [ - "x86_64" - ], - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "b92a661741ad73057aa08e5c49f164a180c0bb1ad1d4be9740e7154f2b916a62.zip" - }, - "Environment": { - "Variables": { - "ENV": "gen2-main", - "REGION": "us-east-1", - "AMPLIFY_SSM_ENV_CONFIG": "{\"AMPLIFY_AUTH_USERPOOL_ID\":{\"path\":\"/amplify/resource_reference/fitnesstracker/gen2main-branch-400746baeb/AMPLIFY_AUTH_USERPOOL_ID\"}}", - "AMPLIFY_AUTH_USERPOOL_ID": "", - "AUTH_FITNESSTRACKER33F5545533F55455_USERPOOLID": "us-east-1_KGveHFLxc" - } - }, - "EphemeralStorage": { - "Size": 512 - }, - "FunctionName": "admin-gen2-main", - "Handler": "index.handler", - "MemorySize": 128, - "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I/admingen2mainlambdaServiceRole439B1792", - "Runtime": "nodejs22.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "admin-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 25 - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/admin-gen2-main-lambda/Resource", - "aws:asset:path": "asset.b92a661741ad73057aa08e5c49f164a180c0bb1ad1d4be9740e7154f2b916a62", - "aws:asset:is-bundled": true, - "aws:asset:property": "Code" - } - }, - "userpoolAccess13FEE5419": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:AdminGetDevice", - "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess13FEE5419", - "Roles": [ - { - "Ref": "admingen2mainlambdaServiceRole439B1792" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess1/Resource" - } - }, - "userpoolAccess268F187DB": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:AdminGetUser", - "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess268F187DB", - "Roles": [ - { - "Ref": "admingen2mainlambdaServiceRole439B1792" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess2/Resource" - } - }, - "userpoolAccess3956C62F8": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:AdminListDevices", - "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess3956C62F8", - "Roles": [ - { - "Ref": "admingen2mainlambdaServiceRole439B1792" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess3/Resource" - } - }, - "userpoolAccess4A84025C3": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:AdminListGroupsForUser", - "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess4A84025C3", - "Roles": [ - { - "Ref": "admingen2mainlambdaServiceRole439B1792" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess4/Resource" - } - }, - "userpoolAccess585E2FB32": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:ListUsers", - "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess585E2FB32", - "Roles": [ - { - "Ref": "admingen2mainlambdaServiceRole439B1792" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess5/Resource" - } - }, - "userpoolAccess600DA4CB0": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:ListUsersInGroup", - "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess600DA4CB0", - "Roles": [ - { - "Ref": "admingen2mainlambdaServiceRole439B1792" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess6/Resource" - } - }, - "userpoolAccess76F9C91C1": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:ListGroups", - "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess76F9C91C1", - "Roles": [ - { - "Ref": "admingen2mainlambdaServiceRole439B1792" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess7/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/12NzW7CQAyEn4X74tLAoVeI1KoXFBH1HC0bkzrZn2rtFKFV3r3aoLSop5mxPZ8LKHY72Kz0ldemHdaWzpCOyIJtLdoMSl+5SSZ0niRA+mCMVQhWlRf/6xdTWkIvj6u/yXuLXkhuS/kxn4LFvYg2n+5f/y2G8WtSVrtzqyGVF19hdMRMwee719EboeAnRdpByqA8nrUKlswtx7tbMI0PLfYMx1kWguJto5lRGPZZFG/hMJoB5aAZFbODVEsk31U6aoeCcUYvYZrU3KtFd+S7SeUv0PPTd1HA8wtsVj0TrePohRzC6a4/caZnM34BAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - }, - "amplifyAuthAdminGroupCC42FF04": { - "Type": "AWS::Cognito::UserPoolGroup", - "Properties": { - "Description": "override success", - "GroupName": "Admin", - "Precedence": 1, - "RoleArn": "arn:aws:iam::123456789012:role/us-east-1_iguxCIcMS-AdminGroupRole", - "UserPoolId": "us-east-1_iguxCIcMS" - } - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Outputs": { - "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthUserPoolBF05A444Ref": { - "Value": "us-east-1_KGveHFLxc" - }, - "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthUserPoolAppClient1903AFDARef": { - "Value": "1o40oi80febsgsdamen2i1gnfd" - }, - "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref": { - "Value": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3" - }, - "amplifyfitnesstrackergen2mainbranch400746baebauthfitnesstracker33f5545533f55455PreSignupgen2mainlambda2B17C7BARef": { - "Value": "fitnesstracker33f5545533f55455PreSignup-gen2-main" - }, - "amplifyfitnesstrackergen2mainbranch400746baebauthadmingen2mainlambda19698385Ref": { - "Value": "admin-gen2-main" - }, - "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref": { - "Value": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-fF1WwIKcoHtV" - }, - "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef": { - "Value": "amplify-fitnesstracker-ge-amplifyAuthunauthenticate-RtuRf8ygfomA" - }, - "amplifyfitnesstrackergen2mainbranch400746baebauthadmingen2mainlambda19698385Arn": { - "Value": "arn:aws:lambda:us-east-1:123456789012:function:admin-gen2-main" - }, - "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthAdminGroupRoleC37E0196Ref": { - "Value": "amplify-fitnesstracker-ge-amplifyAuthAdminGroupRole-jIdkeXSZarK4" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I-holding.target.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I-holding.target.template.json deleted file mode 100644 index 17c4bf8ebf4..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I-holding.target.template.json +++ /dev/null @@ -1,225 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "Temporary holding stack for Gen2 migration", - "Resources": { - "amplifyAuthAdminGroupCC42FF04": { - "Type": "AWS::Cognito::UserPoolGroup", - "Properties": { - "GroupName": "Admin", - "Precedence": 0, - "RoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-amplifyAuthAdminGroupRole-jIdkeXSZarK4", - "UserPoolId": "us-east-1_KGveHFLxc" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/AdminGroup" - } - }, - "amplifyAuthUserPool4BA7F805": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AccountRecoverySetting": { - "RecoveryMechanisms": [ - { - "Name": "verified_email", - "Priority": 1 - } - ] - }, - "AdminCreateUserConfig": { - "AllowAdminCreateUserOnly": false - }, - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": "Your verification code is {####}", - "EmailVerificationSubject": "Your verification code", - "LambdaConfig": { - "PreSignUp": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker33f5545533f55455PreSignup-gen2-main" - }, - "MfaConfiguration": "OFF", - "Policies": { - "PasswordPolicy": { - "MinimumLength": 8, - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false, - "TemporaryPasswordValidityDays": 7 - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "SmsVerificationMessage": "The verification code to your new account is {####}", - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolTags": { - "amplify:app-id": "fitnesstracker", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "amplify:friendly-name": "amplifyAuth", - "created-by": "amplify" - }, - "UsernameConfiguration": { - "CaseSensitive": false - }, - "VerificationMessageTemplate": { - "DefaultEmailOption": "CONFIRM_WITH_CODE", - "EmailMessage": "Your verification code is {####}", - "EmailSubject": "Your verification code", - "SmsMessage": "The verification code to your new account is {####}" - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/UserPool/Resource" - } - }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 43200, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": "us-east-1_KGveHFLxc" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, - "amplifyAuthUserPoolAppClient2626C6F8": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlows": [ - "code" - ], - "AllowedOAuthFlowsUserPoolClient": true, - "AllowedOAuthScopes": [ - "profile", - "phone", - "email", - "openid", - "aws.cognito.signin.user.admin" - ], - "CallbackURLs": [ - "https://example.com" - ], - "ExplicitAuthFlows": [ - "ALLOW_CUSTOM_AUTH", - "ALLOW_USER_SRP_AUTH", - "ALLOW_REFRESH_TOKEN_AUTH" - ], - "PreventUserExistenceErrors": "ENABLED", - "SupportedIdentityProviders": [ - "COGNITO" - ], - "UserPoolId": "us-east-1_KGveHFLxc" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/UserPoolAppClient/Resource" - } - }, - "amplifyAuthIdentityPool3FDE84CC": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": false, - "CognitoIdentityProviders": [ - { - "ClientId": "1o40oi80febsgsdamen2i1gnfd", - "ProviderName": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - "us-east-1_KGveHFLxc" - ] - ] - } - } - ], - "IdentityPoolTags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "SupportedLoginProviders": {} - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/IdentityPool" - } - }, - "amplifyAuthIdentityPoolRoleAttachment045F17C8": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3", - "RoleMappings": { - "UserPoolWebClientRoleMapping": { - "AmbiguousRoleResolution": "AuthenticatedRole", - "IdentityProvider": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - "us-east-1_KGveHFLxc", - ":", - "1o40oi80febsgsdamen2i1gnfd" - ] - ] - }, - "Type": "Token" - } - }, - "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-amplifyAuthunauthenticate-RtuRf8ygfomA", - "authenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-fF1WwIKcoHtV" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/IdentityPoolRoleAttachment" - } - } - }, - "Outputs": {} -} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.mappings.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.mappings.json deleted file mode 100644 index 44c8ff21ad3..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.mappings.json +++ /dev/null @@ -1,52 +0,0 @@ -[ - { - "Source": { - "StackName": "amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508", - "LogicalResourceId": "UserPool" - }, - "Destination": { - "StackName": "amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" - } - }, - { - "Source": { - "StackName": "amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508", - "LogicalResourceId": "UserPoolClientWeb" - }, - "Destination": { - "StackName": "amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" - } - }, - { - "Source": { - "StackName": "amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508", - "LogicalResourceId": "UserPoolClient" - }, - "Destination": { - "StackName": "amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" - } - }, - { - "Source": { - "StackName": "amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508", - "LogicalResourceId": "IdentityPool" - }, - "Destination": { - "StackName": "amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" - } - }, - { - "Source": { - "StackName": "amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508", - "LogicalResourceId": "IdentityPoolRoleMap" - }, - "Destination": { - "StackName": "amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" - } - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.source.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.source.template.json deleted file mode 100644 index 747de2cd975..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.source.template.json +++ /dev/null @@ -1,216 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "env": { - "Type": "String" - }, - "functionfitnesstracker33f5545533f55455PreSignupArn": { - "Type": "String", - "Default": "functionfitnesstracker33f5545533f55455PreSignupArn" - }, - "functionfitnesstracker33f5545533f55455PreSignupName": { - "Type": "String", - "Default": "functionfitnesstracker33f5545533f55455PreSignupName" - }, - "identityPoolName": { - "Type": "String" - }, - "allowUnauthenticatedIdentities": { - "Type": "String" - }, - "resourceNameTruncated": { - "Type": "String" - }, - "userPoolName": { - "Type": "String" - }, - "autoVerifiedAttributes": { - "Type": "CommaDelimitedList" - }, - "mfaConfiguration": { - "Type": "String" - }, - "mfaTypes": { - "Type": "CommaDelimitedList" - }, - "smsAuthenticationMessage": { - "Type": "String" - }, - "smsVerificationMessage": { - "Type": "String" - }, - "emailVerificationSubject": { - "Type": "String" - }, - "emailVerificationMessage": { - "Type": "String" - }, - "defaultPasswordPolicy": { - "Type": "String" - }, - "passwordPolicyMinLength": { - "Type": "String" - }, - "passwordPolicyCharacters": { - "Type": "CommaDelimitedList" - }, - "requiredAttributes": { - "Type": "CommaDelimitedList" - }, - "aliasAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientGenerateSecret": { - "Type": "String" - }, - "userpoolClientRefreshTokenValidity": { - "Type": "String" - }, - "userpoolClientWriteAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientReadAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientLambdaRole": { - "Type": "String" - }, - "userpoolClientSetAttributes": { - "Type": "String" - }, - "sharedId": { - "Type": "String" - }, - "resourceName": { - "Type": "String" - }, - "authSelections": { - "Type": "String" - }, - "useDefault": { - "Type": "String" - }, - "thirdPartyAuth": { - "Type": "String" - }, - "userPoolGroups": { - "Type": "String" - }, - "adminQueries": { - "Type": "String" - }, - "triggers": { - "Type": "String" - }, - "hostedUI": { - "Type": "String" - }, - "userPoolGroupList": { - "Type": "CommaDelimitedList" - }, - "serviceName": { - "Type": "String" - }, - "usernameCaseSensitive": { - "Type": "String" - }, - "useEnabledMfas": { - "Type": "String" - }, - "authRoleArn": { - "Type": "String" - }, - "unauthRoleArn": { - "Type": "String" - }, - "breakCircularDependency": { - "Type": "String" - }, - "dependsOn": { - "Type": "CommaDelimitedList" - }, - "permissions": { - "Type": "CommaDelimitedList" - }, - "authTriggerConnections": { - "Type": "CommaDelimitedList" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - "main", - "NONE" - ] - } - }, - "Resources": { - "UserPoolClientRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - }, - "Action": "sts:AssumeRole" - } - ] - }, - "RoleName": { - "Fn::Join": [ - "", - [ - "upClientLambdaRole33f55455", - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - "amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508" - ] - } - ] - }, - "-", - "main" - ] - ] - } - } - } - }, - "Outputs": { - "IdentityPoolId": { - "Description": "Id for the identity pool", - "Value": "us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022" - }, - "IdentityPoolName": { - "Value": "fitnesstracker33f55455_identitypool_33f55455__main" - }, - "UserPoolId": { - "Description": "Id for the user pool", - "Value": "us-east-1_iguxCIcMS" - }, - "UserPoolArn": { - "Description": "Arn for the user pool", - "Value": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_iguxCIcMS" - }, - "UserPoolName": { - "Value": "fitnesstracker33f55455_userpool_33f55455" - }, - "AppClientIDWeb": { - "Description": "The user pool app client id for web", - "Value": "29bubgvfbbqkp4k60rl7oaqd8s" - }, - "AppClientID": { - "Description": "The user pool app client id", - "Value": "3s8jcv7nflisr91emephrr2a9s" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.target.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.target.template.json deleted file mode 100644 index d34f92e81e5..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.target.template.json +++ /dev/null @@ -1,1100 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", - "Resources": { - "amplifyAuthUserPoolPreSignUpCognito55F45D8E": { - "Type": "AWS::Lambda::Permission", - "Properties": { - "Action": "lambda:InvokeFunction", - "FunctionName": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker33f5545533f55455PreSignup-gen2-main", - "Principal": "cognito-idp.amazonaws.com", - "SourceArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/UserPool/PreSignUpCognito" - } - }, - "amplifyAuthauthenticatedUserRoleD8DA3689": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3" - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "authenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/authenticatedUserRole/Resource" - } - }, - "amplifyAuthunauthenticatedUserRole2B524D9E": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3" - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "unauthenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/unauthenticatedUserRole/Resource" - } - }, - "amplifyAuthAdminGroupRole766878DC": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3" - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "authenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/AdminGroupRole/Resource" - } - }, - "fitnesstracker33f5545533f55455PreSignupgen2mainlambdaServiceRole713FCE90": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "fitnesstracker33f5545533f55455PreSignup-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/fitnesstracker33f5545533f55455PreSignup-gen2-main-lambda/ServiceRole/Resource" - } - }, - "fitnesstracker33f5545533f55455PreSignupgen2mainlambda1F6BAF02": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Architectures": [ - "x86_64" - ], - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "9f9c01e67674891c2af7783b0075317068ffc260976375cef1a2fb293d54b4f7.zip" - }, - "Environment": { - "Variables": { - "MODULES": "email-filter-allowlist", - "DOMAINALLOWLIST": "amazon.com", - "DOMAINBLACKLIST": "", - "ENV": "gen2-main", - "REGION": "us-east-1", - "AMPLIFY_SSM_ENV_CONFIG": "{}" - } - }, - "EphemeralStorage": { - "Size": 512 - }, - "FunctionName": "fitnesstracker33f5545533f55455PreSignup-gen2-main", - "Handler": "index.handler", - "MemorySize": 128, - "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I/fitnesstracker33f5545533f55455PreSignupgen2mainlambdaServiceRole713FCE90", - "Runtime": "nodejs22.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "fitnesstracker33f5545533f55455PreSignup-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 25 - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/fitnesstracker33f5545533f55455PreSignup-gen2-main-lambda/Resource", - "aws:asset:path": "asset.9f9c01e67674891c2af7783b0075317068ffc260976375cef1a2fb293d54b4f7", - "aws:asset:is-bundled": true, - "aws:asset:property": "Code" - } - }, - "AMPLIFYAUTHUSERPOOLIDParameterCC466CA3": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/fitnesstracker/gen2main-branch-400746baeb/AMPLIFY_AUTH_USERPOOL_ID", - "Tags": { - "amplify:app-id": "fitnesstracker", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": "us-east-1_KGveHFLxc" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/AMPLIFY_AUTH_USERPOOL_IDParameter/Resource" - } - }, - "admingen2mainlambdaServiceRole439B1792": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "admin-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/admin-gen2-main-lambda/ServiceRole/Resource" - } - }, - "admingen2mainlambdaServiceRoleDefaultPolicy0F640A9C": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "ssm:GetParameters", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":ssm:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":parameter/amplify/resource_reference/fitnesstracker/gen2main-branch-400746baeb/AMPLIFY_AUTH_USERPOOL_ID" - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "admingen2mainlambdaServiceRoleDefaultPolicy0F640A9C", - "Roles": [ - { - "Ref": "admingen2mainlambdaServiceRole439B1792" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/admin-gen2-main-lambda/ServiceRole/DefaultPolicy/Resource" - } - }, - "admingen2mainlambdaECF7211C": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Architectures": [ - "x86_64" - ], - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "b92a661741ad73057aa08e5c49f164a180c0bb1ad1d4be9740e7154f2b916a62.zip" - }, - "Environment": { - "Variables": { - "ENV": "gen2-main", - "REGION": "us-east-1", - "AMPLIFY_SSM_ENV_CONFIG": "{\"AMPLIFY_AUTH_USERPOOL_ID\":{\"path\":\"/amplify/resource_reference/fitnesstracker/gen2main-branch-400746baeb/AMPLIFY_AUTH_USERPOOL_ID\"}}", - "AMPLIFY_AUTH_USERPOOL_ID": "", - "AUTH_FITNESSTRACKER33F5545533F55455_USERPOOLID": "us-east-1_KGveHFLxc" - } - }, - "EphemeralStorage": { - "Size": 512 - }, - "FunctionName": "admin-gen2-main", - "Handler": "index.handler", - "MemorySize": 128, - "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I/admingen2mainlambdaServiceRole439B1792", - "Runtime": "nodejs22.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "admin-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 25 - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/admin-gen2-main-lambda/Resource", - "aws:asset:path": "asset.b92a661741ad73057aa08e5c49f164a180c0bb1ad1d4be9740e7154f2b916a62", - "aws:asset:is-bundled": true, - "aws:asset:property": "Code" - } - }, - "userpoolAccess13FEE5419": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:AdminGetDevice", - "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess13FEE5419", - "Roles": [ - { - "Ref": "admingen2mainlambdaServiceRole439B1792" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess1/Resource" - } - }, - "userpoolAccess268F187DB": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:AdminGetUser", - "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess268F187DB", - "Roles": [ - { - "Ref": "admingen2mainlambdaServiceRole439B1792" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess2/Resource" - } - }, - "userpoolAccess3956C62F8": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:AdminListDevices", - "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess3956C62F8", - "Roles": [ - { - "Ref": "admingen2mainlambdaServiceRole439B1792" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess3/Resource" - } - }, - "userpoolAccess4A84025C3": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:AdminListGroupsForUser", - "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess4A84025C3", - "Roles": [ - { - "Ref": "admingen2mainlambdaServiceRole439B1792" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess4/Resource" - } - }, - "userpoolAccess585E2FB32": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:ListUsers", - "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess585E2FB32", - "Roles": [ - { - "Ref": "admingen2mainlambdaServiceRole439B1792" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess5/Resource" - } - }, - "userpoolAccess600DA4CB0": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:ListUsersInGroup", - "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess600DA4CB0", - "Roles": [ - { - "Ref": "admingen2mainlambdaServiceRole439B1792" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess6/Resource" - } - }, - "userpoolAccess76F9C91C1": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:ListGroups", - "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess76F9C91C1", - "Roles": [ - { - "Ref": "admingen2mainlambdaServiceRole439B1792" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess7/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/12NzW7CQAyEn4X74tLAoVeI1KoXFBH1HC0bkzrZn2rtFKFV3r3aoLSop5mxPZ8LKHY72Kz0ldemHdaWzpCOyIJtLdoMSl+5SSZ0niRA+mCMVQhWlRf/6xdTWkIvj6u/yXuLXkhuS/kxn4LFvYg2n+5f/y2G8WtSVrtzqyGVF19hdMRMwee719EboeAnRdpByqA8nrUKlswtx7tbMI0PLfYMx1kWguJto5lRGPZZFG/hMJoB5aAZFbODVEsk31U6aoeCcUYvYZrU3KtFd+S7SeUv0PPTd1HA8wtsVj0TrePohRzC6a4/caZnM34BAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - }, - "amplifyAuthAdminGroupCC42FF04": { - "Type": "AWS::Cognito::UserPoolGroup", - "Properties": { - "Description": "override success", - "GroupName": "Admin", - "Precedence": 1, - "RoleArn": "arn:aws:iam::123456789012:role/us-east-1_iguxCIcMS-AdminGroupRole", - "UserPoolId": "us-east-1_iguxCIcMS" - } - }, - "amplifyAuthUserPool4BA7F805": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": "Your verification code is {####}", - "EmailVerificationSubject": "Your verification code", - "MfaConfiguration": "OFF", - "Policies": { - "PasswordPolicy": { - "MinimumLength": "8", - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolName": { - "Fn::Join": [ - "", - [ - "fitnesstracker33f55455_userpool_33f55455", - "-", - "main" - ] - ] - }, - "UsernameConfiguration": { - "CaseSensitive": false - } - } - }, - "amplifyAuthUserPoolAppClient2626C6F8": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "fitnes33f55455_app_clientWeb", - "RefreshTokenValidity": "30", - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": "us-east-1_iguxCIcMS" - } - }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "fitnes33f55455_app_client", - "GenerateSecret": "false", - "RefreshTokenValidity": "30", - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": "us-east-1_iguxCIcMS" - } - }, - "amplifyAuthIdentityPool3FDE84CC": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": "false", - "CognitoIdentityProviders": [ - { - "ClientId": "3s8jcv7nflisr91emephrr2a9s", - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": "us-east-1_iguxCIcMS" - } - ] - } - }, - { - "ClientId": "29bubgvfbbqkp4k60rl7oaqd8s", - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": "us-east-1_iguxCIcMS" - } - ] - } - } - ], - "IdentityPoolName": { - "Fn::Join": [ - "", - [ - "fitnesstracker33f55455_identitypool_33f55455__", - "main" - ] - ] - } - } - }, - "amplifyAuthIdentityPoolRoleAttachment045F17C8": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": "us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022", - "RoleMappings": { - "UserPoolClientRoleMapping": { - "AmbiguousRoleResolution": "AuthenticatedRole", - "IdentityProvider": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${userPool}:${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "userPool": "us-east-1_iguxCIcMS", - "client": "3s8jcv7nflisr91emephrr2a9s" - } - ] - }, - "Type": "Token" - }, - "UserPoolWebClientRoleMapping": { - "AmbiguousRoleResolution": "AuthenticatedRole", - "IdentityProvider": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${userPool}:${webClient}", - { - "region": { - "Ref": "AWS::Region" - }, - "userPool": "us-east-1_iguxCIcMS", - "webClient": "29bubgvfbbqkp4k60rl7oaqd8s" - } - ] - }, - "Type": "Token" - } - }, - "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-unauthRole", - "authenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-authRole" - } - } - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Outputs": { - "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthUserPoolBF05A444Ref": { - "Value": "us-east-1_KGveHFLxc" - }, - "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthUserPoolAppClient1903AFDARef": { - "Value": "1o40oi80febsgsdamen2i1gnfd" - }, - "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref": { - "Value": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3" - }, - "amplifyfitnesstrackergen2mainbranch400746baebauthfitnesstracker33f5545533f55455PreSignupgen2mainlambda2B17C7BARef": { - "Value": "fitnesstracker33f5545533f55455PreSignup-gen2-main" - }, - "amplifyfitnesstrackergen2mainbranch400746baebauthadmingen2mainlambda19698385Ref": { - "Value": "admin-gen2-main" - }, - "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref": { - "Value": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-fF1WwIKcoHtV" - }, - "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef": { - "Value": "amplify-fitnesstracker-ge-amplifyAuthunauthenticate-RtuRf8ygfomA" - }, - "amplifyfitnesstrackergen2mainbranch400746baebauthadmingen2mainlambda19698385Arn": { - "Value": "arn:aws:lambda:us-east-1:123456789012:function:admin-gen2-main" - }, - "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthAdminGroupRoleC37E0196Ref": { - "Value": "amplify-fitnesstracker-ge-amplifyAuthAdminGroupRole-jIdkeXSZarK4" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.mappings.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.mappings.json deleted file mode 100644 index d6ab8efe950..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.mappings.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "Source": { - "StackName": "amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF", - "LogicalResourceId": "AdminGroup" - }, - "Destination": { - "StackName": "amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I", - "LogicalResourceId": "amplifyAuthAdminGroupCC42FF04" - } - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.source.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.source.template.json deleted file mode 100644 index 4f2192b77e7..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.source.template.json +++ /dev/null @@ -1,81 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito-UserPool-Groups\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "env": { - "Type": "String" - }, - "AuthRoleArn": { - "Type": "String" - }, - "UnauthRoleArn": { - "Type": "String" - }, - "authfitnesstracker33f5545533f55455UserPoolId": { - "Type": "String", - "Default": "authfitnesstracker33f5545533f55455UserPoolId" - }, - "authfitnesstracker33f5545533f55455IdentityPoolId": { - "Type": "String", - "Default": "authfitnesstracker33f5545533f55455IdentityPoolId" - }, - "authfitnesstracker33f5545533f55455AppClientID": { - "Type": "String", - "Default": "authfitnesstracker33f5545533f55455AppClientID" - }, - "authfitnesstracker33f5545533f55455AppClientIDWeb": { - "Type": "String", - "Default": "authfitnesstracker33f5545533f55455AppClientIDWeb" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - "main", - "NONE" - ] - } - }, - "Resources": { - "AdminGroupRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Sid": "", - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - }, - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022" - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "authenticated" - } - } - } - ] - }, - "RoleName": { - "Fn::Join": [ - "", - [ - "us-east-1_iguxCIcMS", - "-AdminGroupRole" - ] - ] - } - } - } - }, - "Outputs": { - "AdminGroupRole": { - "Value": "arn:aws:iam::123456789012:role/us-east-1_iguxCIcMS-AdminGroupRole" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.target.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.target.template.json deleted file mode 100644 index 90e47d86a0d..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.__to__.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.target.template.json +++ /dev/null @@ -1,1149 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", - "Resources": { - "amplifyAuthUserPool4BA7F805": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AccountRecoverySetting": { - "RecoveryMechanisms": [ - { - "Name": "verified_email", - "Priority": 1 - } - ] - }, - "AdminCreateUserConfig": { - "AllowAdminCreateUserOnly": false - }, - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": "Your verification code is {####}", - "EmailVerificationSubject": "Your verification code", - "LambdaConfig": { - "PreSignUp": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker33f5545533f55455PreSignup-gen2-main" - }, - "MfaConfiguration": "OFF", - "Policies": { - "PasswordPolicy": { - "MinimumLength": 8, - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false, - "TemporaryPasswordValidityDays": 7 - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "SmsVerificationMessage": "The verification code to your new account is {####}", - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolTags": { - "amplify:app-id": "fitnesstracker", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "amplify:friendly-name": "amplifyAuth", - "created-by": "amplify" - }, - "UsernameConfiguration": { - "CaseSensitive": false - }, - "VerificationMessageTemplate": { - "DefaultEmailOption": "CONFIRM_WITH_CODE", - "EmailMessage": "Your verification code is {####}", - "EmailSubject": "Your verification code", - "SmsMessage": "The verification code to your new account is {####}" - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/UserPool/Resource" - } - }, - "amplifyAuthUserPoolPreSignUpCognito55F45D8E": { - "Type": "AWS::Lambda::Permission", - "Properties": { - "Action": "lambda:InvokeFunction", - "FunctionName": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker33f5545533f55455PreSignup-gen2-main", - "Principal": "cognito-idp.amazonaws.com", - "SourceArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/UserPool/PreSignUpCognito" - } - }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 43200, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": "us-east-1_KGveHFLxc" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, - "amplifyAuthUserPoolAppClient2626C6F8": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlows": [ - "code" - ], - "AllowedOAuthFlowsUserPoolClient": true, - "AllowedOAuthScopes": [ - "profile", - "phone", - "email", - "openid", - "aws.cognito.signin.user.admin" - ], - "CallbackURLs": [ - "https://example.com" - ], - "ExplicitAuthFlows": [ - "ALLOW_CUSTOM_AUTH", - "ALLOW_USER_SRP_AUTH", - "ALLOW_REFRESH_TOKEN_AUTH" - ], - "PreventUserExistenceErrors": "ENABLED", - "SupportedIdentityProviders": [ - "COGNITO" - ], - "UserPoolId": "us-east-1_KGveHFLxc" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/UserPoolAppClient/Resource" - } - }, - "amplifyAuthIdentityPool3FDE84CC": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": false, - "CognitoIdentityProviders": [ - { - "ClientId": "1o40oi80febsgsdamen2i1gnfd", - "ProviderName": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - "us-east-1_KGveHFLxc" - ] - ] - } - } - ], - "IdentityPoolTags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "SupportedLoginProviders": {} - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/IdentityPool" - } - }, - "amplifyAuthauthenticatedUserRoleD8DA3689": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3" - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "authenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/authenticatedUserRole/Resource" - } - }, - "amplifyAuthunauthenticatedUserRole2B524D9E": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3" - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "unauthenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/unauthenticatedUserRole/Resource" - } - }, - "amplifyAuthIdentityPoolRoleAttachment045F17C8": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3", - "RoleMappings": { - "UserPoolWebClientRoleMapping": { - "AmbiguousRoleResolution": "AuthenticatedRole", - "IdentityProvider": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - "us-east-1_KGveHFLxc", - ":", - "1o40oi80febsgsdamen2i1gnfd" - ] - ] - }, - "Type": "Token" - } - }, - "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-amplifyAuthunauthenticate-RtuRf8ygfomA", - "authenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-fF1WwIKcoHtV" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/IdentityPoolRoleAttachment" - } - }, - "amplifyAuthAdminGroupRole766878DC": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3" - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "authenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/AdminGroupRole/Resource" - } - }, - "fitnesstracker33f5545533f55455PreSignupgen2mainlambdaServiceRole713FCE90": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "fitnesstracker33f5545533f55455PreSignup-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/fitnesstracker33f5545533f55455PreSignup-gen2-main-lambda/ServiceRole/Resource" - } - }, - "fitnesstracker33f5545533f55455PreSignupgen2mainlambda1F6BAF02": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Architectures": [ - "x86_64" - ], - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "9f9c01e67674891c2af7783b0075317068ffc260976375cef1a2fb293d54b4f7.zip" - }, - "Environment": { - "Variables": { - "MODULES": "email-filter-allowlist", - "DOMAINALLOWLIST": "amazon.com", - "DOMAINBLACKLIST": "", - "ENV": "gen2-main", - "REGION": "us-east-1", - "AMPLIFY_SSM_ENV_CONFIG": "{}" - } - }, - "EphemeralStorage": { - "Size": 512 - }, - "FunctionName": "fitnesstracker33f5545533f55455PreSignup-gen2-main", - "Handler": "index.handler", - "MemorySize": 128, - "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I/fitnesstracker33f5545533f55455PreSignupgen2mainlambdaServiceRole713FCE90", - "Runtime": "nodejs22.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "fitnesstracker33f5545533f55455PreSignup-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 25 - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/fitnesstracker33f5545533f55455PreSignup-gen2-main-lambda/Resource", - "aws:asset:path": "asset.9f9c01e67674891c2af7783b0075317068ffc260976375cef1a2fb293d54b4f7", - "aws:asset:is-bundled": true, - "aws:asset:property": "Code" - } - }, - "AMPLIFYAUTHUSERPOOLIDParameterCC466CA3": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/fitnesstracker/gen2main-branch-400746baeb/AMPLIFY_AUTH_USERPOOL_ID", - "Tags": { - "amplify:app-id": "fitnesstracker", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": "us-east-1_KGveHFLxc" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/AMPLIFY_AUTH_USERPOOL_IDParameter/Resource" - } - }, - "admingen2mainlambdaServiceRole439B1792": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "admin-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/admin-gen2-main-lambda/ServiceRole/Resource" - } - }, - "admingen2mainlambdaServiceRoleDefaultPolicy0F640A9C": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "ssm:GetParameters", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":ssm:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":parameter/amplify/resource_reference/fitnesstracker/gen2main-branch-400746baeb/AMPLIFY_AUTH_USERPOOL_ID" - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "admingen2mainlambdaServiceRoleDefaultPolicy0F640A9C", - "Roles": [ - { - "Ref": "admingen2mainlambdaServiceRole439B1792" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/admin-gen2-main-lambda/ServiceRole/DefaultPolicy/Resource" - } - }, - "admingen2mainlambdaECF7211C": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Architectures": [ - "x86_64" - ], - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "b92a661741ad73057aa08e5c49f164a180c0bb1ad1d4be9740e7154f2b916a62.zip" - }, - "Environment": { - "Variables": { - "ENV": "gen2-main", - "REGION": "us-east-1", - "AMPLIFY_SSM_ENV_CONFIG": "{\"AMPLIFY_AUTH_USERPOOL_ID\":{\"path\":\"/amplify/resource_reference/fitnesstracker/gen2main-branch-400746baeb/AMPLIFY_AUTH_USERPOOL_ID\"}}", - "AMPLIFY_AUTH_USERPOOL_ID": "", - "AUTH_FITNESSTRACKER33F5545533F55455_USERPOOLID": "us-east-1_KGveHFLxc" - } - }, - "EphemeralStorage": { - "Size": 512 - }, - "FunctionName": "admin-gen2-main", - "Handler": "index.handler", - "MemorySize": 128, - "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I/admingen2mainlambdaServiceRole439B1792", - "Runtime": "nodejs22.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "admin-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 25 - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/admin-gen2-main-lambda/Resource", - "aws:asset:path": "asset.b92a661741ad73057aa08e5c49f164a180c0bb1ad1d4be9740e7154f2b916a62", - "aws:asset:is-bundled": true, - "aws:asset:property": "Code" - } - }, - "userpoolAccess13FEE5419": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:AdminGetDevice", - "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess13FEE5419", - "Roles": [ - { - "Ref": "admingen2mainlambdaServiceRole439B1792" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess1/Resource" - } - }, - "userpoolAccess268F187DB": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:AdminGetUser", - "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess268F187DB", - "Roles": [ - { - "Ref": "admingen2mainlambdaServiceRole439B1792" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess2/Resource" - } - }, - "userpoolAccess3956C62F8": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:AdminListDevices", - "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess3956C62F8", - "Roles": [ - { - "Ref": "admingen2mainlambdaServiceRole439B1792" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess3/Resource" - } - }, - "userpoolAccess4A84025C3": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:AdminListGroupsForUser", - "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess4A84025C3", - "Roles": [ - { - "Ref": "admingen2mainlambdaServiceRole439B1792" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess4/Resource" - } - }, - "userpoolAccess585E2FB32": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:ListUsers", - "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess585E2FB32", - "Roles": [ - { - "Ref": "admingen2mainlambdaServiceRole439B1792" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess5/Resource" - } - }, - "userpoolAccess600DA4CB0": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:ListUsersInGroup", - "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess600DA4CB0", - "Roles": [ - { - "Ref": "admingen2mainlambdaServiceRole439B1792" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess6/Resource" - } - }, - "userpoolAccess76F9C91C1": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:ListGroups", - "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess76F9C91C1", - "Roles": [ - { - "Ref": "admingen2mainlambdaServiceRole439B1792" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess7/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/12NzW7CQAyEn4X74tLAoVeI1KoXFBH1HC0bkzrZn2rtFKFV3r3aoLSop5mxPZ8LKHY72Kz0ldemHdaWzpCOyIJtLdoMSl+5SSZ0niRA+mCMVQhWlRf/6xdTWkIvj6u/yXuLXkhuS/kxn4LFvYg2n+5f/y2G8WtSVrtzqyGVF19hdMRMwee719EboeAnRdpByqA8nrUKlswtx7tbMI0PLfYMx1kWguJto5lRGPZZFG/hMJoB5aAZFbODVEsk31U6aoeCcUYvYZrU3KtFd+S7SeUv0PPTd1HA8wtsVj0TrePohRzC6a4/caZnM34BAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - }, - "amplifyAuthAdminGroupCC42FF04": { - "Type": "AWS::Cognito::UserPoolGroup", - "Properties": { - "Description": "override success", - "GroupName": "Admin", - "Precedence": 1, - "RoleArn": "arn:aws:iam::123456789012:role/us-east-1_iguxCIcMS-AdminGroupRole", - "UserPoolId": "us-east-1_iguxCIcMS" - } - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Outputs": { - "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthUserPoolBF05A444Ref": { - "Value": "us-east-1_KGveHFLxc" - }, - "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthUserPoolAppClient1903AFDARef": { - "Value": "1o40oi80febsgsdamen2i1gnfd" - }, - "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref": { - "Value": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3" - }, - "amplifyfitnesstrackergen2mainbranch400746baebauthfitnesstracker33f5545533f55455PreSignupgen2mainlambda2B17C7BARef": { - "Value": "fitnesstracker33f5545533f55455PreSignup-gen2-main" - }, - "amplifyfitnesstrackergen2mainbranch400746baebauthadmingen2mainlambda19698385Ref": { - "Value": "admin-gen2-main" - }, - "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref": { - "Value": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-fF1WwIKcoHtV" - }, - "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef": { - "Value": "amplify-fitnesstracker-ge-amplifyAuthunauthenticate-RtuRf8ygfomA" - }, - "amplifyfitnesstrackergen2mainbranch400746baebauthadmingen2mainlambda19698385Arn": { - "Value": "arn:aws:lambda:us-east-1:123456789012:function:admin-gen2-main" - }, - "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthAdminGroupRoleC37E0196Ref": { - "Value": "amplify-fitnesstracker-ge-amplifyAuthAdminGroupRole-jIdkeXSZarK4" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-x-x-authfitnesstracker33f5545533f55455-x.__to__.amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x.mappings.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-x-x-authfitnesstracker33f5545533f55455-x.__to__.amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x.mappings.json new file mode 100644 index 00000000000..b487741dbe6 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-x-x-authfitnesstracker33f5545533f55455-x.__to__.amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x.mappings.json @@ -0,0 +1,52 @@ +[ + { + "Source": { + "StackName": "amplify-fitnesstracker-x-x-authfitnesstracker33f5545533f55455-x", + "LogicalResourceId": "UserPool" + }, + "Destination": { + "StackName": "amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + } + }, + { + "Source": { + "StackName": "amplify-fitnesstracker-x-x-authfitnesstracker33f5545533f55455-x", + "LogicalResourceId": "UserPoolClientWeb" + }, + "Destination": { + "StackName": "amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + } + }, + { + "Source": { + "StackName": "amplify-fitnesstracker-x-x-authfitnesstracker33f5545533f55455-x", + "LogicalResourceId": "UserPoolClient" + }, + "Destination": { + "StackName": "amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + } + }, + { + "Source": { + "StackName": "amplify-fitnesstracker-x-x-authfitnesstracker33f5545533f55455-x", + "LogicalResourceId": "IdentityPool" + }, + "Destination": { + "StackName": "amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + } + }, + { + "Source": { + "StackName": "amplify-fitnesstracker-x-x-authfitnesstracker33f5545533f55455-x", + "LogicalResourceId": "IdentityPoolRoleMap" + }, + "Destination": { + "StackName": "amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + } + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-x-x-authfitnesstracker33f5545533f55455-x.__to__.amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x.source.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-x-x-authfitnesstracker33f5545533f55455-x.__to__.amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x.source.template.json new file mode 100644 index 00000000000..2cd966ce675 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-x-x-authfitnesstracker33f5545533f55455-x.__to__.amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x.source.template.json @@ -0,0 +1,216 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "functionfitnesstracker33f5545533f55455PreSignupArn": { + "Type": "String", + "Default": "functionfitnesstracker33f5545533f55455PreSignupArn" + }, + "functionfitnesstracker33f5545533f55455PreSignupName": { + "Type": "String", + "Default": "functionfitnesstracker33f5545533f55455PreSignupName" + }, + "identityPoolName": { + "Type": "String" + }, + "allowUnauthenticatedIdentities": { + "Type": "String" + }, + "resourceNameTruncated": { + "Type": "String" + }, + "userPoolName": { + "Type": "String" + }, + "autoVerifiedAttributes": { + "Type": "CommaDelimitedList" + }, + "mfaConfiguration": { + "Type": "String" + }, + "mfaTypes": { + "Type": "CommaDelimitedList" + }, + "smsAuthenticationMessage": { + "Type": "String" + }, + "smsVerificationMessage": { + "Type": "String" + }, + "emailVerificationSubject": { + "Type": "String" + }, + "emailVerificationMessage": { + "Type": "String" + }, + "defaultPasswordPolicy": { + "Type": "String" + }, + "passwordPolicyMinLength": { + "Type": "String" + }, + "passwordPolicyCharacters": { + "Type": "CommaDelimitedList" + }, + "requiredAttributes": { + "Type": "CommaDelimitedList" + }, + "aliasAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientGenerateSecret": { + "Type": "String" + }, + "userpoolClientRefreshTokenValidity": { + "Type": "String" + }, + "userpoolClientWriteAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientReadAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientLambdaRole": { + "Type": "String" + }, + "userpoolClientSetAttributes": { + "Type": "String" + }, + "sharedId": { + "Type": "String" + }, + "resourceName": { + "Type": "String" + }, + "authSelections": { + "Type": "String" + }, + "useDefault": { + "Type": "String" + }, + "thirdPartyAuth": { + "Type": "String" + }, + "userPoolGroups": { + "Type": "String" + }, + "adminQueries": { + "Type": "String" + }, + "triggers": { + "Type": "String" + }, + "hostedUI": { + "Type": "String" + }, + "userPoolGroupList": { + "Type": "CommaDelimitedList" + }, + "serviceName": { + "Type": "String" + }, + "usernameCaseSensitive": { + "Type": "String" + }, + "useEnabledMfas": { + "Type": "String" + }, + "authRoleArn": { + "Type": "String" + }, + "unauthRoleArn": { + "Type": "String" + }, + "breakCircularDependency": { + "Type": "String" + }, + "dependsOn": { + "Type": "CommaDelimitedList" + }, + "permissions": { + "Type": "CommaDelimitedList" + }, + "authTriggerConnections": { + "Type": "CommaDelimitedList" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + "x", + "NONE" + ] + } + }, + "Resources": { + "UserPoolClientRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + }, + "Action": "sts:AssumeRole" + } + ] + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "upClientLambdaRole33f55455", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + "amplify-fitnesstracker-x-x-authfitnesstracker33f5545533f55455-x" + ] + } + ] + }, + "-", + "x" + ] + ] + } + } + } + }, + "Outputs": { + "IdentityPoolId": { + "Description": "Id for the identity pool", + "Value": "us-east-1:c525ee11-d503-434d-a20e-29d16684f0f3" + }, + "IdentityPoolName": { + "Value": "fitnesstracker33f55455_identitypool_33f55455__x" + }, + "UserPoolId": { + "Description": "Id for the user pool", + "Value": "us-east-1_Xm7264Or1" + }, + "UserPoolArn": { + "Description": "Arn for the user pool", + "Value": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_Xm7264Or1" + }, + "UserPoolName": { + "Value": "fitnesstracker33f55455_userpool_33f55455" + }, + "AppClientIDWeb": { + "Description": "The user pool app client id for web", + "Value": "2r67bqd39lvdif3jjk3da8ok74" + }, + "AppClientID": { + "Description": "The user pool app client id", + "Value": "763u4g2459ac3omq43p1rnh7bu" + } + } +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-x-x-authfitnesstracker33f5545533f55455-x.__to__.amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x.target.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-x-x-authfitnesstracker33f5545533f55455-x.__to__.amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x.target.template.json new file mode 100644 index 00000000000..ef7a3873d2d --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-x-x-authfitnesstracker33f5545533f55455-x.__to__.amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x.target.template.json @@ -0,0 +1,1074 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", + "Resources": { + "amplifyAuthUserPoolPreSignUpCognito55F45D8E": { + "Type": "AWS::Lambda::Permission", + "Properties": { + "Action": "lambda:InvokeFunction", + "FunctionName": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker33f5545533f55455PreSignup-gen2-x", + "Principal": "cognito-idp.amazonaws.com", + "SourceArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_FnKoHEldQ" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/amplifyAuth/UserPool/PreSignUpCognito" + } + }, + "amplifyAuthauthenticatedUserRoleD8DA3689": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:64bddaa4-7f3b-47a0-b404-3275cd735004" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/amplifyAuth/authenticatedUserRole/Resource" + } + }, + "amplifyAuthunauthenticatedUserRole2B524D9E": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:64bddaa4-7f3b-47a0-b404-3275cd735004" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "unauthenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/amplifyAuth/unauthenticatedUserRole/Resource" + } + }, + "amplifyAuthAdminGroupRole766878DC": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:64bddaa4-7f3b-47a0-b404-3275cd735004" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/amplifyAuth/AdminGroupRole/Resource" + } + }, + "fitnesstracker33f5545533f55455PreSignupgen2xlambdaServiceRole796B58B8": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "fitnesstracker33f5545533f55455PreSignup-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/fitnesstracker33f5545533f55455PreSignup-gen2-x-lambda/ServiceRole/Resource" + } + }, + "fitnesstracker33f5545533f55455PreSignupgen2xlambda207A093B": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Architectures": [ + "x86_64" + ], + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "4eb38c172ef4d940eb17f8c6890c0284b8743fc46517097ac3e22db8b67f30eb.zip" + }, + "Environment": { + "Variables": { + "MODULES": "email-filter-allowlist", + "DOMAINALLOWLIST": "amazon.com", + "DOMAINBLACKLIST": "", + "ENV": "gen2-x", + "REGION": "us-east-1", + "AMPLIFY_SSM_ENV_CONFIG": "{}" + } + }, + "EphemeralStorage": { + "Size": 512 + }, + "FunctionName": "fitnesstracker33f5545533f55455PreSignup-gen2-x", + "Handler": "index.handler", + "MemorySize": 128, + "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x/fitnesstracker33f5545533f55455PreSignupgen2xlambdaServiceRole796B58B8", + "Runtime": "nodejs22.x", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "fitnesstracker33f5545533f55455PreSignup-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 25 + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/fitnesstracker33f5545533f55455PreSignup-gen2-x-lambda/Resource", + "aws:asset:path": "asset.4eb38c172ef4d940eb17f8c6890c0284b8743fc46517097ac3e22db8b67f30eb", + "aws:asset:is-bundled": true, + "aws:asset:property": "Code" + } + }, + "AMPLIFYAUTHUSERPOOLIDParameterCC466CA3": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/fitnesstracker/e2e-sandbox-x/AMPLIFY_AUTH_USERPOOL_ID", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": "us-east-1_FnKoHEldQ" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/AMPLIFY_AUTH_USERPOOL_IDParameter/Resource" + } + }, + "admingen2xlambdaServiceRoleDFED86E5": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "admin-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/admin-gen2-x-lambda/ServiceRole/Resource" + } + }, + "admingen2xlambdaServiceRoleDefaultPolicyF1CBE2CB": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "ssm:GetParameters", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":ssm:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":parameter/amplify/resource_reference/fitnesstracker/e2e-sandbox-x/AMPLIFY_AUTH_USERPOOL_ID" + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "admingen2xlambdaServiceRoleDefaultPolicyF1CBE2CB", + "Roles": [ + { + "Ref": "admingen2xlambdaServiceRoleDFED86E5" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/admin-gen2-x-lambda/ServiceRole/DefaultPolicy/Resource" + } + }, + "admingen2xlambdaBD6AFAAA": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Architectures": [ + "x86_64" + ], + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "5c5c671427617f523e13e68fd0ce04b66742ea630686ba9840a7c23ae2163b75.zip" + }, + "Environment": { + "Variables": { + "ENV": "gen2-x", + "REGION": "us-east-1", + "AMPLIFY_SSM_ENV_CONFIG": "{\"AMPLIFY_AUTH_USERPOOL_ID\":{\"path\":\"/amplify/resource_reference/fitnesstracker/e2e-sandbox-x/AMPLIFY_AUTH_USERPOOL_ID\"}}", + "AMPLIFY_AUTH_USERPOOL_ID": "", + "AUTH_FITNESSTRACKER33F5545533F55455_USERPOOLID": "us-east-1_FnKoHEldQ" + } + }, + "EphemeralStorage": { + "Size": 512 + }, + "FunctionName": "admin-gen2-x", + "Handler": "index.handler", + "MemorySize": 128, + "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x/admingen2xlambdaServiceRoleDFED86E5", + "Runtime": "nodejs22.x", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "admin-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 25 + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/admin-gen2-x-lambda/Resource", + "aws:asset:path": "asset.5c5c671427617f523e13e68fd0ce04b66742ea630686ba9840a7c23ae2163b75", + "aws:asset:is-bundled": true, + "aws:asset:property": "Code" + } + }, + "userpoolAccess13FEE5419": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:AdminGetDevice", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_FnKoHEldQ" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess13FEE5419", + "Roles": [ + { + "Ref": "admingen2xlambdaServiceRoleDFED86E5" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/userpoolAccess1/Resource" + } + }, + "userpoolAccess268F187DB": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:AdminGetUser", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_FnKoHEldQ" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess268F187DB", + "Roles": [ + { + "Ref": "admingen2xlambdaServiceRoleDFED86E5" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/userpoolAccess2/Resource" + } + }, + "userpoolAccess3956C62F8": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:AdminListDevices", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_FnKoHEldQ" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess3956C62F8", + "Roles": [ + { + "Ref": "admingen2xlambdaServiceRoleDFED86E5" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/userpoolAccess3/Resource" + } + }, + "userpoolAccess4A84025C3": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:AdminListGroupsForUser", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_FnKoHEldQ" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess4A84025C3", + "Roles": [ + { + "Ref": "admingen2xlambdaServiceRoleDFED86E5" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/userpoolAccess4/Resource" + } + }, + "userpoolAccess585E2FB32": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:ListUsers", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_FnKoHEldQ" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess585E2FB32", + "Roles": [ + { + "Ref": "admingen2xlambdaServiceRoleDFED86E5" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/userpoolAccess5/Resource" + } + }, + "userpoolAccess600DA4CB0": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:ListUsersInGroup", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_FnKoHEldQ" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess600DA4CB0", + "Roles": [ + { + "Ref": "admingen2xlambdaServiceRoleDFED86E5" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/userpoolAccess6/Resource" + } + }, + "userpoolAccess76F9C91C1": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:ListGroups", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_FnKoHEldQ" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess76F9C91C1", + "Roles": [ + { + "Ref": "admingen2xlambdaServiceRoleDFED86E5" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/userpoolAccess7/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/12NzW6DQAyEnyX3xaVE7T1BatRLhIJ6RpvFoYb9qdamUYR492qJaKOeZsb2fC6geMkh3+grZ6YdMktnmI7Igm0t2gxKX7mZTOg8SYDpgzFWIVhVXvyvX01pCb08rv4m7y16Ibmt5cd8ChZ3Itp8un/9Qwzj16ysdudWw1RefIXRETMFn+7eRm+Egp8VaQdTAqXxolWwZG4p3t2KaXxosWc4LrISFG8bzYzCsEuieAv70Qwoe82omB1MtUTyXaWjdigYF/Qa5lktvVp0R76bVfoCPT99FwU8v0K+6Zkoi6MXcginu/4AH6eqXH4BAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + }, + "amplifyAuthAdminGroupCC42FF04": { + "Type": "AWS::Cognito::UserPoolGroup", + "Properties": { + "Description": "override success", + "GroupName": "Admin", + "Precedence": 1, + "RoleArn": "arn:aws:iam::123456789012:role/us-east-1_Xm7264Or1-AdminGroupRole", + "UserPoolId": "us-east-1_Xm7264Or1" + } + }, + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": "8", + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolName": { + "Fn::Join": [ + "", + [ + "fitnesstracker33f55455_userpool_33f55455", + "-", + "x" + ] + ] + }, + "UsernameConfiguration": { + "CaseSensitive": false + } + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "fitnes33f55455_app_clientWeb", + "RefreshTokenValidity": "30", + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": "us-east-1_Xm7264Or1" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "fitnes33f55455_app_client", + "GenerateSecret": "false", + "RefreshTokenValidity": "30", + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": "us-east-1_Xm7264Or1" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": "false", + "CognitoIdentityProviders": [ + { + "ClientId": "763u4g2459ac3omq43p1rnh7bu", + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": "us-east-1_Xm7264Or1" + } + ] + } + }, + { + "ClientId": "2r67bqd39lvdif3jjk3da8ok74", + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": "us-east-1_Xm7264Or1" + } + ] + } + } + ], + "IdentityPoolName": { + "Fn::Join": [ + "", + [ + "fitnesstracker33f55455_identitypool_33f55455__", + "x" + ] + ] + } + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:c525ee11-d503-434d-a20e-29d16684f0f3", + "RoleMappings": { + "UserPoolClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${userPool}:${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "userPool": "us-east-1_Xm7264Or1", + "client": "763u4g2459ac3omq43p1rnh7bu" + } + ] + }, + "Type": "Token" + }, + "UserPoolWebClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${userPool}:${webClient}", + { + "region": { + "Ref": "AWS::Region" + }, + "userPool": "us-east-1_Xm7264Or1", + "webClient": "2r67bqd39lvdif3jjk3da8ok74" + } + ] + }, + "Type": "Token" + } + }, + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-x-x-unauthRole", + "authenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-x-x-authRole" + } + } + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthUserPoolC7DC7AACRef": { + "Value": "us-east-1_FnKoHEldQ" + }, + "amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthUserPoolAppClientB7EA7D1ERef": { + "Value": "1tmuolsu3gsj9nj6bg66l3capo" + }, + "amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref": { + "Value": "us-east-1:64bddaa4-7f3b-47a0-b404-3275cd735004" + }, + "amplifyfitnesstrackere2esandboxb87516873eauthfitnesstracker33f5545533f55455PreSignupgen2xlambdaF9537418Ref": { + "Value": "fitnesstracker33f5545533f55455PreSignup-gen2-x" + }, + "amplifyfitnesstrackere2esandboxb87516873eauthadmingen2xlambda8DFBC2FBRef": { + "Value": "admin-gen2-x" + }, + "amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef": { + "Value": "amplify-fitnesstra2604142-amplifyAuthauthenticatedU-NanIXo9aixs2" + }, + "amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref": { + "Value": "amplify-fitnesstra2604142-amplifyAuthunauthenticate-1g49fB6fAFbP" + }, + "amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthAdminGroupRoleDDED643DRef": { + "Value": "amplify-fitnesstra2604142-amplifyAuthAdminGroupRole-w2iwcg4Jlkt1" + }, + "amplifyfitnesstrackere2esandboxb87516873eauthadmingen2xlambda8DFBC2FBArn": { + "Value": "arn:aws:lambda:us-east-1:123456789012:function:admin-gen2-x" + } + } +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-x-x-authuserPoolGroups-x.__to__.amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x.mappings.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-x-x-authuserPoolGroups-x.__to__.amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x.mappings.json new file mode 100644 index 00000000000..48fe24cccbc --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-x-x-authuserPoolGroups-x.__to__.amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x.mappings.json @@ -0,0 +1,12 @@ +[ + { + "Source": { + "StackName": "amplify-fitnesstracker-x-x-authuserPoolGroups-x", + "LogicalResourceId": "AdminGroup" + }, + "Destination": { + "StackName": "amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthAdminGroupCC42FF04" + } + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-x-x-authuserPoolGroups-x.__to__.amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x.source.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-x-x-authuserPoolGroups-x.__to__.amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x.source.template.json new file mode 100644 index 00000000000..9c6ca8f5bd4 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-x-x-authuserPoolGroups-x.__to__.amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x.source.template.json @@ -0,0 +1,81 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito-UserPool-Groups\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "AuthRoleArn": { + "Type": "String" + }, + "UnauthRoleArn": { + "Type": "String" + }, + "authfitnesstracker33f5545533f55455UserPoolId": { + "Type": "String", + "Default": "authfitnesstracker33f5545533f55455UserPoolId" + }, + "authfitnesstracker33f5545533f55455IdentityPoolId": { + "Type": "String", + "Default": "authfitnesstracker33f5545533f55455IdentityPoolId" + }, + "authfitnesstracker33f5545533f55455AppClientID": { + "Type": "String", + "Default": "authfitnesstracker33f5545533f55455AppClientID" + }, + "authfitnesstracker33f5545533f55455AppClientIDWeb": { + "Type": "String", + "Default": "authfitnesstracker33f5545533f55455AppClientIDWeb" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + "x", + "NONE" + ] + } + }, + "Resources": { + "AdminGroupRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Sid": "", + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + }, + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:c525ee11-d503-434d-a20e-29d16684f0f3" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + } + } + ] + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "us-east-1_Xm7264Or1", + "-AdminGroupRole" + ] + ] + } + } + } + }, + "Outputs": { + "AdminGroupRole": { + "Value": "arn:aws:iam::123456789012:role/us-east-1_Xm7264Or1-AdminGroupRole" + } + } +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-x-x-authuserPoolGroups-x.__to__.amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x.target.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-x-x-authuserPoolGroups-x.__to__.amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x.target.template.json new file mode 100644 index 00000000000..49a776a261b --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/refactor.__from__.amplify-fitnesstracker-x-x-authuserPoolGroups-x.__to__.amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x.target.template.json @@ -0,0 +1,1121 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", + "Resources": { + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AccountRecoverySetting": { + "RecoveryMechanisms": [ + { + "Name": "verified_email", + "Priority": 1 + } + ] + }, + "AdminCreateUserConfig": { + "AllowAdminCreateUserOnly": false + }, + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "LambdaConfig": { + "PreSignUp": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker33f5545533f55455PreSignup-gen2-x" + }, + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": 8, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false, + "TemporaryPasswordValidityDays": 7 + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "SmsVerificationMessage": "The verification code to your new account is {####}", + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolTags": { + "amplify:deployment-type": "sandbox", + "amplify:friendly-name": "amplifyAuth", + "created-by": "amplify" + }, + "UsernameConfiguration": { + "CaseSensitive": false + }, + "VerificationMessageTemplate": { + "DefaultEmailOption": "CONFIRM_WITH_CODE", + "EmailMessage": "Your verification code is {####}", + "EmailSubject": "Your verification code", + "SmsMessage": "The verification code to your new account is {####}" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/amplifyAuth/UserPool/Resource" + } + }, + "amplifyAuthUserPoolPreSignUpCognito55F45D8E": { + "Type": "AWS::Lambda::Permission", + "Properties": { + "Action": "lambda:InvokeFunction", + "FunctionName": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker33f5545533f55455PreSignup-gen2-x", + "Principal": "cognito-idp.amazonaws.com", + "SourceArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_FnKoHEldQ" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/amplifyAuth/UserPool/PreSignUpCognito" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 43200, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": "us-east-1_FnKoHEldQ" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlows": [ + "code" + ], + "AllowedOAuthFlowsUserPoolClient": true, + "AllowedOAuthScopes": [ + "profile", + "phone", + "email", + "openid", + "aws.cognito.signin.user.admin" + ], + "CallbackURLs": [ + "https://example.com" + ], + "ExplicitAuthFlows": [ + "ALLOW_CUSTOM_AUTH", + "ALLOW_USER_SRP_AUTH", + "ALLOW_REFRESH_TOKEN_AUTH" + ], + "PreventUserExistenceErrors": "ENABLED", + "SupportedIdentityProviders": [ + "COGNITO" + ], + "UserPoolId": "us-east-1_FnKoHEldQ" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/amplifyAuth/UserPoolAppClient/Resource" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": false, + "CognitoIdentityProviders": [ + { + "ClientId": "1tmuolsu3gsj9nj6bg66l3capo", + "ProviderName": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_FnKoHEldQ" + ] + ] + } + } + ], + "IdentityPoolTags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "SupportedLoginProviders": {} + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/amplifyAuth/IdentityPool" + } + }, + "amplifyAuthauthenticatedUserRoleD8DA3689": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:64bddaa4-7f3b-47a0-b404-3275cd735004" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/amplifyAuth/authenticatedUserRole/Resource" + } + }, + "amplifyAuthunauthenticatedUserRole2B524D9E": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:64bddaa4-7f3b-47a0-b404-3275cd735004" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "unauthenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/amplifyAuth/unauthenticatedUserRole/Resource" + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:64bddaa4-7f3b-47a0-b404-3275cd735004", + "RoleMappings": { + "UserPoolWebClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_FnKoHEldQ", + ":", + "1tmuolsu3gsj9nj6bg66l3capo" + ] + ] + }, + "Type": "Token" + } + }, + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstra2604142-amplifyAuthunauthenticate-1g49fB6fAFbP", + "authenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstra2604142-amplifyAuthauthenticatedU-NanIXo9aixs2" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/amplifyAuth/IdentityPoolRoleAttachment" + } + }, + "amplifyAuthAdminGroupRole766878DC": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:64bddaa4-7f3b-47a0-b404-3275cd735004" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/amplifyAuth/AdminGroupRole/Resource" + } + }, + "fitnesstracker33f5545533f55455PreSignupgen2xlambdaServiceRole796B58B8": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "fitnesstracker33f5545533f55455PreSignup-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/fitnesstracker33f5545533f55455PreSignup-gen2-x-lambda/ServiceRole/Resource" + } + }, + "fitnesstracker33f5545533f55455PreSignupgen2xlambda207A093B": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Architectures": [ + "x86_64" + ], + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "4eb38c172ef4d940eb17f8c6890c0284b8743fc46517097ac3e22db8b67f30eb.zip" + }, + "Environment": { + "Variables": { + "MODULES": "email-filter-allowlist", + "DOMAINALLOWLIST": "amazon.com", + "DOMAINBLACKLIST": "", + "ENV": "gen2-x", + "REGION": "us-east-1", + "AMPLIFY_SSM_ENV_CONFIG": "{}" + } + }, + "EphemeralStorage": { + "Size": 512 + }, + "FunctionName": "fitnesstracker33f5545533f55455PreSignup-gen2-x", + "Handler": "index.handler", + "MemorySize": 128, + "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x/fitnesstracker33f5545533f55455PreSignupgen2xlambdaServiceRole796B58B8", + "Runtime": "nodejs22.x", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "fitnesstracker33f5545533f55455PreSignup-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 25 + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/fitnesstracker33f5545533f55455PreSignup-gen2-x-lambda/Resource", + "aws:asset:path": "asset.4eb38c172ef4d940eb17f8c6890c0284b8743fc46517097ac3e22db8b67f30eb", + "aws:asset:is-bundled": true, + "aws:asset:property": "Code" + } + }, + "AMPLIFYAUTHUSERPOOLIDParameterCC466CA3": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/fitnesstracker/e2e-sandbox-x/AMPLIFY_AUTH_USERPOOL_ID", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": "us-east-1_FnKoHEldQ" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/AMPLIFY_AUTH_USERPOOL_IDParameter/Resource" + } + }, + "admingen2xlambdaServiceRoleDFED86E5": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "admin-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/admin-gen2-x-lambda/ServiceRole/Resource" + } + }, + "admingen2xlambdaServiceRoleDefaultPolicyF1CBE2CB": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "ssm:GetParameters", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":ssm:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":parameter/amplify/resource_reference/fitnesstracker/e2e-sandbox-x/AMPLIFY_AUTH_USERPOOL_ID" + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "admingen2xlambdaServiceRoleDefaultPolicyF1CBE2CB", + "Roles": [ + { + "Ref": "admingen2xlambdaServiceRoleDFED86E5" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/admin-gen2-x-lambda/ServiceRole/DefaultPolicy/Resource" + } + }, + "admingen2xlambdaBD6AFAAA": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Architectures": [ + "x86_64" + ], + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "5c5c671427617f523e13e68fd0ce04b66742ea630686ba9840a7c23ae2163b75.zip" + }, + "Environment": { + "Variables": { + "ENV": "gen2-x", + "REGION": "us-east-1", + "AMPLIFY_SSM_ENV_CONFIG": "{\"AMPLIFY_AUTH_USERPOOL_ID\":{\"path\":\"/amplify/resource_reference/fitnesstracker/e2e-sandbox-x/AMPLIFY_AUTH_USERPOOL_ID\"}}", + "AMPLIFY_AUTH_USERPOOL_ID": "", + "AUTH_FITNESSTRACKER33F5545533F55455_USERPOOLID": "us-east-1_FnKoHEldQ" + } + }, + "EphemeralStorage": { + "Size": 512 + }, + "FunctionName": "admin-gen2-x", + "Handler": "index.handler", + "MemorySize": 128, + "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x/admingen2xlambdaServiceRoleDFED86E5", + "Runtime": "nodejs22.x", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "admin-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 25 + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/admin-gen2-x-lambda/Resource", + "aws:asset:path": "asset.5c5c671427617f523e13e68fd0ce04b66742ea630686ba9840a7c23ae2163b75", + "aws:asset:is-bundled": true, + "aws:asset:property": "Code" + } + }, + "userpoolAccess13FEE5419": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:AdminGetDevice", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_FnKoHEldQ" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess13FEE5419", + "Roles": [ + { + "Ref": "admingen2xlambdaServiceRoleDFED86E5" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/userpoolAccess1/Resource" + } + }, + "userpoolAccess268F187DB": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:AdminGetUser", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_FnKoHEldQ" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess268F187DB", + "Roles": [ + { + "Ref": "admingen2xlambdaServiceRoleDFED86E5" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/userpoolAccess2/Resource" + } + }, + "userpoolAccess3956C62F8": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:AdminListDevices", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_FnKoHEldQ" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess3956C62F8", + "Roles": [ + { + "Ref": "admingen2xlambdaServiceRoleDFED86E5" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/userpoolAccess3/Resource" + } + }, + "userpoolAccess4A84025C3": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:AdminListGroupsForUser", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_FnKoHEldQ" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess4A84025C3", + "Roles": [ + { + "Ref": "admingen2xlambdaServiceRoleDFED86E5" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/userpoolAccess4/Resource" + } + }, + "userpoolAccess585E2FB32": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:ListUsers", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_FnKoHEldQ" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess585E2FB32", + "Roles": [ + { + "Ref": "admingen2xlambdaServiceRoleDFED86E5" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/userpoolAccess5/Resource" + } + }, + "userpoolAccess600DA4CB0": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:ListUsersInGroup", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_FnKoHEldQ" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess600DA4CB0", + "Roles": [ + { + "Ref": "admingen2xlambdaServiceRoleDFED86E5" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/userpoolAccess6/Resource" + } + }, + "userpoolAccess76F9C91C1": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:ListGroups", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_FnKoHEldQ" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess76F9C91C1", + "Roles": [ + { + "Ref": "admingen2xlambdaServiceRoleDFED86E5" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/userpoolAccess7/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/12NzW6DQAyEnyX3xaVE7T1BatRLhIJ6RpvFoYb9qdamUYR492qJaKOeZsb2fC6geMkh3+grZ6YdMktnmI7Igm0t2gxKX7mZTOg8SYDpgzFWIVhVXvyvX01pCb08rv4m7y16Ibmt5cd8ChZ3Itp8un/9Qwzj16ysdudWw1RefIXRETMFn+7eRm+Egp8VaQdTAqXxolWwZG4p3t2KaXxosWc4LrISFG8bzYzCsEuieAv70Qwoe82omB1MtUTyXaWjdigYF/Qa5lktvVp0R76bVfoCPT99FwU8v0K+6Zkoi6MXcginu/4AH6eqXH4BAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + }, + "amplifyAuthAdminGroupCC42FF04": { + "Type": "AWS::Cognito::UserPoolGroup", + "Properties": { + "Description": "override success", + "GroupName": "Admin", + "Precedence": 1, + "RoleArn": "arn:aws:iam::123456789012:role/us-east-1_Xm7264Or1-AdminGroupRole", + "UserPoolId": "us-east-1_Xm7264Or1" + } + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthUserPoolC7DC7AACRef": { + "Value": "us-east-1_FnKoHEldQ" + }, + "amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthUserPoolAppClientB7EA7D1ERef": { + "Value": "1tmuolsu3gsj9nj6bg66l3capo" + }, + "amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref": { + "Value": "us-east-1:64bddaa4-7f3b-47a0-b404-3275cd735004" + }, + "amplifyfitnesstrackere2esandboxb87516873eauthfitnesstracker33f5545533f55455PreSignupgen2xlambdaF9537418Ref": { + "Value": "fitnesstracker33f5545533f55455PreSignup-gen2-x" + }, + "amplifyfitnesstrackere2esandboxb87516873eauthadmingen2xlambda8DFBC2FBRef": { + "Value": "admin-gen2-x" + }, + "amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef": { + "Value": "amplify-fitnesstra2604142-amplifyAuthauthenticatedU-NanIXo9aixs2" + }, + "amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref": { + "Value": "amplify-fitnesstra2604142-amplifyAuthunauthenticate-1g49fB6fAFbP" + }, + "amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthAdminGroupRoleDDED643DRef": { + "Value": "amplify-fitnesstra2604142-amplifyAuthAdminGroupRole-w2iwcg4Jlkt1" + }, + "amplifyfitnesstrackere2esandboxb87516873eauthadmingen2xlambda8DFBC2FBArn": { + "Value": "arn:aws:lambda:us-east-1:123456789012:function:admin-gen2-x" + } + } +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x.parameters.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x.parameters.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x.template.json new file mode 100644 index 00000000000..8979199eefc --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x.template.json @@ -0,0 +1,1125 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", + "Resources": { + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AccountRecoverySetting": { + "RecoveryMechanisms": [ + { + "Name": "verified_email", + "Priority": 1 + } + ] + }, + "AdminCreateUserConfig": { + "AllowAdminCreateUserOnly": false + }, + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "LambdaConfig": { + "PreSignUp": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker33f5545533f55455PreSignup-gen2-x" + }, + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": 8, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false, + "TemporaryPasswordValidityDays": 7 + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "SmsVerificationMessage": "The verification code to your new account is {####}", + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolTags": { + "amplify:deployment-type": "sandbox", + "amplify:friendly-name": "amplifyAuth", + "created-by": "amplify" + }, + "UsernameConfiguration": { + "CaseSensitive": false + }, + "VerificationMessageTemplate": { + "DefaultEmailOption": "CONFIRM_WITH_CODE", + "EmailMessage": "Your verification code is {####}", + "EmailSubject": "Your verification code", + "SmsMessage": "The verification code to your new account is {####}" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/amplifyAuth/UserPool/Resource" + } + }, + "amplifyAuthUserPoolPreSignUpCognito55F45D8E": { + "Type": "AWS::Lambda::Permission", + "Properties": { + "Action": "lambda:InvokeFunction", + "FunctionName": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker33f5545533f55455PreSignup-gen2-x", + "Principal": "cognito-idp.amazonaws.com", + "SourceArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_FnKoHEldQ" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/amplifyAuth/UserPool/PreSignUpCognito" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 43200, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": "us-east-1_FnKoHEldQ" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlows": [ + "code" + ], + "AllowedOAuthFlowsUserPoolClient": true, + "AllowedOAuthScopes": [ + "profile", + "phone", + "email", + "openid", + "aws.cognito.signin.user.admin" + ], + "CallbackURLs": [ + "https://example.com" + ], + "ExplicitAuthFlows": [ + "ALLOW_CUSTOM_AUTH", + "ALLOW_USER_SRP_AUTH", + "ALLOW_REFRESH_TOKEN_AUTH" + ], + "PreventUserExistenceErrors": "ENABLED", + "SupportedIdentityProviders": [ + "COGNITO" + ], + "UserPoolId": "us-east-1_FnKoHEldQ" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/amplifyAuth/UserPoolAppClient/Resource" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": false, + "CognitoIdentityProviders": [ + { + "ClientId": "1tmuolsu3gsj9nj6bg66l3capo", + "ProviderName": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_FnKoHEldQ" + ] + ] + } + } + ], + "IdentityPoolTags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "SupportedLoginProviders": {} + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/amplifyAuth/IdentityPool" + } + }, + "amplifyAuthauthenticatedUserRoleD8DA3689": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:64bddaa4-7f3b-47a0-b404-3275cd735004" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/amplifyAuth/authenticatedUserRole/Resource" + } + }, + "amplifyAuthunauthenticatedUserRole2B524D9E": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:64bddaa4-7f3b-47a0-b404-3275cd735004" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "unauthenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/amplifyAuth/unauthenticatedUserRole/Resource" + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:64bddaa4-7f3b-47a0-b404-3275cd735004", + "RoleMappings": { + "UserPoolWebClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_FnKoHEldQ", + ":", + "1tmuolsu3gsj9nj6bg66l3capo" + ] + ] + }, + "Type": "Token" + } + }, + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstra2604142-amplifyAuthunauthenticate-1g49fB6fAFbP", + "authenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstra2604142-amplifyAuthauthenticatedU-NanIXo9aixs2" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/amplifyAuth/IdentityPoolRoleAttachment" + } + }, + "amplifyAuthAdminGroupRole766878DC": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:64bddaa4-7f3b-47a0-b404-3275cd735004" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/amplifyAuth/AdminGroupRole/Resource" + } + }, + "amplifyAuthAdminGroupCC42FF04": { + "Type": "AWS::Cognito::UserPoolGroup", + "Properties": { + "GroupName": "Admin", + "Precedence": 0, + "RoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstra2604142-amplifyAuthAdminGroupRole-w2iwcg4Jlkt1", + "UserPoolId": "us-east-1_FnKoHEldQ" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/amplifyAuth/AdminGroup" + } + }, + "fitnesstracker33f5545533f55455PreSignupgen2xlambdaServiceRole796B58B8": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "fitnesstracker33f5545533f55455PreSignup-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/fitnesstracker33f5545533f55455PreSignup-gen2-x-lambda/ServiceRole/Resource" + } + }, + "fitnesstracker33f5545533f55455PreSignupgen2xlambda207A093B": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Architectures": [ + "x86_64" + ], + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "4eb38c172ef4d940eb17f8c6890c0284b8743fc46517097ac3e22db8b67f30eb.zip" + }, + "Environment": { + "Variables": { + "MODULES": "email-filter-allowlist", + "DOMAINALLOWLIST": "amazon.com", + "DOMAINBLACKLIST": "", + "ENV": "gen2-x", + "REGION": "us-east-1", + "AMPLIFY_SSM_ENV_CONFIG": "{}" + } + }, + "EphemeralStorage": { + "Size": 512 + }, + "FunctionName": "fitnesstracker33f5545533f55455PreSignup-gen2-x", + "Handler": "index.handler", + "MemorySize": 128, + "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x/fitnesstracker33f5545533f55455PreSignupgen2xlambdaServiceRole796B58B8", + "Runtime": "nodejs22.x", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "fitnesstracker33f5545533f55455PreSignup-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 25 + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/fitnesstracker33f5545533f55455PreSignup-gen2-x-lambda/Resource", + "aws:asset:path": "asset.4eb38c172ef4d940eb17f8c6890c0284b8743fc46517097ac3e22db8b67f30eb", + "aws:asset:is-bundled": true, + "aws:asset:property": "Code" + } + }, + "AMPLIFYAUTHUSERPOOLIDParameterCC466CA3": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/fitnesstracker/e2e-sandbox-x/AMPLIFY_AUTH_USERPOOL_ID", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": "us-east-1_FnKoHEldQ" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/AMPLIFY_AUTH_USERPOOL_IDParameter/Resource" + } + }, + "admingen2xlambdaServiceRoleDFED86E5": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "admin-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/admin-gen2-x-lambda/ServiceRole/Resource" + } + }, + "admingen2xlambdaServiceRoleDefaultPolicyF1CBE2CB": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "ssm:GetParameters", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":ssm:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":parameter/amplify/resource_reference/fitnesstracker/e2e-sandbox-x/AMPLIFY_AUTH_USERPOOL_ID" + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "admingen2xlambdaServiceRoleDefaultPolicyF1CBE2CB", + "Roles": [ + { + "Ref": "admingen2xlambdaServiceRoleDFED86E5" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/admin-gen2-x-lambda/ServiceRole/DefaultPolicy/Resource" + } + }, + "admingen2xlambdaBD6AFAAA": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Architectures": [ + "x86_64" + ], + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "5c5c671427617f523e13e68fd0ce04b66742ea630686ba9840a7c23ae2163b75.zip" + }, + "Environment": { + "Variables": { + "ENV": "gen2-x", + "REGION": "us-east-1", + "AMPLIFY_SSM_ENV_CONFIG": "{\"AMPLIFY_AUTH_USERPOOL_ID\":{\"path\":\"/amplify/resource_reference/fitnesstracker/e2e-sandbox-x/AMPLIFY_AUTH_USERPOOL_ID\"}}", + "AMPLIFY_AUTH_USERPOOL_ID": "", + "AUTH_FITNESSTRACKER33F5545533F55455_USERPOOLID": "us-east-1_FnKoHEldQ" + } + }, + "EphemeralStorage": { + "Size": 512 + }, + "FunctionName": "admin-gen2-x", + "Handler": "index.handler", + "MemorySize": 128, + "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x/admingen2xlambdaServiceRoleDFED86E5", + "Runtime": "nodejs22.x", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "admin-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 25 + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/admin-gen2-x-lambda/Resource", + "aws:asset:path": "asset.5c5c671427617f523e13e68fd0ce04b66742ea630686ba9840a7c23ae2163b75", + "aws:asset:is-bundled": true, + "aws:asset:property": "Code" + } + }, + "userpoolAccess13FEE5419": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:AdminGetDevice", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_FnKoHEldQ" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess13FEE5419", + "Roles": [ + { + "Ref": "admingen2xlambdaServiceRoleDFED86E5" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/userpoolAccess1/Resource" + } + }, + "userpoolAccess268F187DB": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:AdminGetUser", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_FnKoHEldQ" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess268F187DB", + "Roles": [ + { + "Ref": "admingen2xlambdaServiceRoleDFED86E5" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/userpoolAccess2/Resource" + } + }, + "userpoolAccess3956C62F8": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:AdminListDevices", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_FnKoHEldQ" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess3956C62F8", + "Roles": [ + { + "Ref": "admingen2xlambdaServiceRoleDFED86E5" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/userpoolAccess3/Resource" + } + }, + "userpoolAccess4A84025C3": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:AdminListGroupsForUser", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_FnKoHEldQ" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess4A84025C3", + "Roles": [ + { + "Ref": "admingen2xlambdaServiceRoleDFED86E5" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/userpoolAccess4/Resource" + } + }, + "userpoolAccess585E2FB32": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:ListUsers", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_FnKoHEldQ" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess585E2FB32", + "Roles": [ + { + "Ref": "admingen2xlambdaServiceRoleDFED86E5" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/userpoolAccess5/Resource" + } + }, + "userpoolAccess600DA4CB0": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:ListUsersInGroup", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_FnKoHEldQ" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess600DA4CB0", + "Roles": [ + { + "Ref": "admingen2xlambdaServiceRoleDFED86E5" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/userpoolAccess6/Resource" + } + }, + "userpoolAccess76F9C91C1": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:ListGroups", + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_FnKoHEldQ" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess76F9C91C1", + "Roles": [ + { + "Ref": "admingen2xlambdaServiceRoleDFED86E5" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/userpoolAccess7/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/12NzW6DQAyEnyX3xaVE7T1BatRLhIJ6RpvFoYb9qdamUYR492qJaKOeZsb2fC6geMkh3+grZ6YdMktnmI7Igm0t2gxKX7mZTOg8SYDpgzFWIVhVXvyvX01pCb08rv4m7y16Ibmt5cd8ChZ3Itp8un/9Qwzj16ysdudWw1RefIXRETMFn+7eRm+Egp8VaQdTAqXxolWwZG4p3t2KaXxosWc4LrISFG8bzYzCsEuieAv70Qwoe82omB1MtUTyXaWjdigYF/Qa5lktvVp0R76bVfoCPT99FwU8v0K+6Zkoi6MXcginu/4AH6eqXH4BAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthUserPoolC7DC7AACRef": { + "Value": "us-east-1_FnKoHEldQ" + }, + "amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthUserPoolAppClientB7EA7D1ERef": { + "Value": "1tmuolsu3gsj9nj6bg66l3capo" + }, + "amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref": { + "Value": "us-east-1:64bddaa4-7f3b-47a0-b404-3275cd735004" + }, + "amplifyfitnesstrackere2esandboxb87516873eauthfitnesstracker33f5545533f55455PreSignupgen2xlambdaF9537418Ref": { + "Value": "fitnesstracker33f5545533f55455PreSignup-gen2-x" + }, + "amplifyfitnesstrackere2esandboxb87516873eauthadmingen2xlambda8DFBC2FBRef": { + "Value": "admin-gen2-x" + }, + "amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef": { + "Value": "amplify-fitnesstra2604142-amplifyAuthauthenticatedU-NanIXo9aixs2" + }, + "amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref": { + "Value": "amplify-fitnesstra2604142-amplifyAuthunauthenticate-1g49fB6fAFbP" + }, + "amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthAdminGroupRoleDDED643DRef": { + "Value": "amplify-fitnesstra2604142-amplifyAuthAdminGroupRole-w2iwcg4Jlkt1" + }, + "amplifyfitnesstrackere2esandboxb87516873eauthadmingen2xlambda8DFBC2FBArn": { + "Value": "arn:aws:lambda:us-east-1:123456789012:function:admin-gen2-x" + } + } +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.parameters.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.parameters.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.template.json deleted file mode 100644 index 3d8a92fce02..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.template.json +++ /dev/null @@ -1,1151 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", - "Resources": { - "amplifyAuthUserPool4BA7F805": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AccountRecoverySetting": { - "RecoveryMechanisms": [ - { - "Name": "verified_email", - "Priority": 1 - } - ] - }, - "AdminCreateUserConfig": { - "AllowAdminCreateUserOnly": false - }, - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": "Your verification code is {####}", - "EmailVerificationSubject": "Your verification code", - "LambdaConfig": { - "PreSignUp": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker33f5545533f55455PreSignup-gen2-main" - }, - "MfaConfiguration": "OFF", - "Policies": { - "PasswordPolicy": { - "MinimumLength": 8, - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false, - "TemporaryPasswordValidityDays": 7 - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "SmsVerificationMessage": "The verification code to your new account is {####}", - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolTags": { - "amplify:app-id": "fitnesstracker", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "amplify:friendly-name": "amplifyAuth", - "created-by": "amplify" - }, - "UsernameConfiguration": { - "CaseSensitive": false - }, - "VerificationMessageTemplate": { - "DefaultEmailOption": "CONFIRM_WITH_CODE", - "EmailMessage": "Your verification code is {####}", - "EmailSubject": "Your verification code", - "SmsMessage": "The verification code to your new account is {####}" - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/UserPool/Resource" - } - }, - "amplifyAuthUserPoolPreSignUpCognito55F45D8E": { - "Type": "AWS::Lambda::Permission", - "Properties": { - "Action": "lambda:InvokeFunction", - "FunctionName": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker33f5545533f55455PreSignup-gen2-main", - "Principal": "cognito-idp.amazonaws.com", - "SourceArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/UserPool/PreSignUpCognito" - } - }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 43200, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": "us-east-1_KGveHFLxc" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, - "amplifyAuthUserPoolAppClient2626C6F8": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlows": [ - "code" - ], - "AllowedOAuthFlowsUserPoolClient": true, - "AllowedOAuthScopes": [ - "profile", - "phone", - "email", - "openid", - "aws.cognito.signin.user.admin" - ], - "CallbackURLs": [ - "https://example.com" - ], - "ExplicitAuthFlows": [ - "ALLOW_CUSTOM_AUTH", - "ALLOW_USER_SRP_AUTH", - "ALLOW_REFRESH_TOKEN_AUTH" - ], - "PreventUserExistenceErrors": "ENABLED", - "SupportedIdentityProviders": [ - "COGNITO" - ], - "UserPoolId": "us-east-1_KGveHFLxc" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/UserPoolAppClient/Resource" - } - }, - "amplifyAuthIdentityPool3FDE84CC": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": false, - "CognitoIdentityProviders": [ - { - "ClientId": "1o40oi80febsgsdamen2i1gnfd", - "ProviderName": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - "us-east-1_KGveHFLxc" - ] - ] - } - } - ], - "IdentityPoolTags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "SupportedLoginProviders": {} - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/IdentityPool" - } - }, - "amplifyAuthauthenticatedUserRoleD8DA3689": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3" - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "authenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/authenticatedUserRole/Resource" - } - }, - "amplifyAuthunauthenticatedUserRole2B524D9E": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3" - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "unauthenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/unauthenticatedUserRole/Resource" - } - }, - "amplifyAuthIdentityPoolRoleAttachment045F17C8": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3", - "RoleMappings": { - "UserPoolWebClientRoleMapping": { - "AmbiguousRoleResolution": "AuthenticatedRole", - "IdentityProvider": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - "us-east-1_KGveHFLxc", - ":", - "1o40oi80febsgsdamen2i1gnfd" - ] - ] - }, - "Type": "Token" - } - }, - "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-amplifyAuthunauthenticate-RtuRf8ygfomA", - "authenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-fF1WwIKcoHtV" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/IdentityPoolRoleAttachment" - } - }, - "amplifyAuthAdminGroupRole766878DC": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3" - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "authenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/AdminGroupRole/Resource" - } - }, - "amplifyAuthAdminGroupCC42FF04": { - "Type": "AWS::Cognito::UserPoolGroup", - "Properties": { - "GroupName": "Admin", - "Precedence": 0, - "RoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-ge-amplifyAuthAdminGroupRole-jIdkeXSZarK4", - "UserPoolId": "us-east-1_KGveHFLxc" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/AdminGroup" - } - }, - "fitnesstracker33f5545533f55455PreSignupgen2mainlambdaServiceRole713FCE90": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "fitnesstracker33f5545533f55455PreSignup-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/fitnesstracker33f5545533f55455PreSignup-gen2-main-lambda/ServiceRole/Resource" - } - }, - "fitnesstracker33f5545533f55455PreSignupgen2mainlambda1F6BAF02": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Architectures": [ - "x86_64" - ], - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "9f9c01e67674891c2af7783b0075317068ffc260976375cef1a2fb293d54b4f7.zip" - }, - "Environment": { - "Variables": { - "MODULES": "email-filter-allowlist", - "DOMAINALLOWLIST": "amazon.com", - "DOMAINBLACKLIST": "", - "ENV": "gen2-main", - "REGION": "us-east-1", - "AMPLIFY_SSM_ENV_CONFIG": "{}" - } - }, - "EphemeralStorage": { - "Size": 512 - }, - "FunctionName": "fitnesstracker33f5545533f55455PreSignup-gen2-main", - "Handler": "index.handler", - "MemorySize": 128, - "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I/fitnesstracker33f5545533f55455PreSignupgen2mainlambdaServiceRole713FCE90", - "Runtime": "nodejs22.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "fitnesstracker33f5545533f55455PreSignup-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 25 - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/fitnesstracker33f5545533f55455PreSignup-gen2-main-lambda/Resource", - "aws:asset:path": "asset.9f9c01e67674891c2af7783b0075317068ffc260976375cef1a2fb293d54b4f7", - "aws:asset:is-bundled": true, - "aws:asset:property": "Code" - } - }, - "AMPLIFYAUTHUSERPOOLIDParameterCC466CA3": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/fitnesstracker/gen2main-branch-400746baeb/AMPLIFY_AUTH_USERPOOL_ID", - "Tags": { - "amplify:app-id": "fitnesstracker", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": "us-east-1_KGveHFLxc" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/AMPLIFY_AUTH_USERPOOL_IDParameter/Resource" - } - }, - "admingen2mainlambdaServiceRole439B1792": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "admin-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/admin-gen2-main-lambda/ServiceRole/Resource" - } - }, - "admingen2mainlambdaServiceRoleDefaultPolicy0F640A9C": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "ssm:GetParameters", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":ssm:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":parameter/amplify/resource_reference/fitnesstracker/gen2main-branch-400746baeb/AMPLIFY_AUTH_USERPOOL_ID" - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "admingen2mainlambdaServiceRoleDefaultPolicy0F640A9C", - "Roles": [ - { - "Ref": "admingen2mainlambdaServiceRole439B1792" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/admin-gen2-main-lambda/ServiceRole/DefaultPolicy/Resource" - } - }, - "admingen2mainlambdaECF7211C": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Architectures": [ - "x86_64" - ], - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "b92a661741ad73057aa08e5c49f164a180c0bb1ad1d4be9740e7154f2b916a62.zip" - }, - "Environment": { - "Variables": { - "ENV": "gen2-main", - "REGION": "us-east-1", - "AMPLIFY_SSM_ENV_CONFIG": "{\"AMPLIFY_AUTH_USERPOOL_ID\":{\"path\":\"/amplify/resource_reference/fitnesstracker/gen2main-branch-400746baeb/AMPLIFY_AUTH_USERPOOL_ID\"}}", - "AMPLIFY_AUTH_USERPOOL_ID": "", - "AUTH_FITNESSTRACKER33F5545533F55455_USERPOOLID": "us-east-1_KGveHFLxc" - } - }, - "EphemeralStorage": { - "Size": 512 - }, - "FunctionName": "admin-gen2-main", - "Handler": "index.handler", - "MemorySize": 128, - "Role": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I/admingen2mainlambdaServiceRole439B1792", - "Runtime": "nodejs22.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "admin-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 25 - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/admin-gen2-main-lambda/Resource", - "aws:asset:path": "asset.b92a661741ad73057aa08e5c49f164a180c0bb1ad1d4be9740e7154f2b916a62", - "aws:asset:is-bundled": true, - "aws:asset:property": "Code" - } - }, - "userpoolAccess13FEE5419": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:AdminGetDevice", - "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess13FEE5419", - "Roles": [ - { - "Ref": "admingen2mainlambdaServiceRole439B1792" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess1/Resource" - } - }, - "userpoolAccess268F187DB": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:AdminGetUser", - "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess268F187DB", - "Roles": [ - { - "Ref": "admingen2mainlambdaServiceRole439B1792" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess2/Resource" - } - }, - "userpoolAccess3956C62F8": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:AdminListDevices", - "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess3956C62F8", - "Roles": [ - { - "Ref": "admingen2mainlambdaServiceRole439B1792" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess3/Resource" - } - }, - "userpoolAccess4A84025C3": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:AdminListGroupsForUser", - "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess4A84025C3", - "Roles": [ - { - "Ref": "admingen2mainlambdaServiceRole439B1792" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess4/Resource" - } - }, - "userpoolAccess585E2FB32": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:ListUsers", - "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess585E2FB32", - "Roles": [ - { - "Ref": "admingen2mainlambdaServiceRole439B1792" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess5/Resource" - } - }, - "userpoolAccess600DA4CB0": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:ListUsersInGroup", - "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess600DA4CB0", - "Roles": [ - { - "Ref": "admingen2mainlambdaServiceRole439B1792" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess6/Resource" - } - }, - "userpoolAccess76F9C91C1": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:ListGroups", - "Effect": "Allow", - "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_KGveHFLxc" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess76F9C91C1", - "Roles": [ - { - "Ref": "admingen2mainlambdaServiceRole439B1792" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess7/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/12NzW7CQAyEn4X74tLAoVeI1KoXFBH1HC0bkzrZn2rtFKFV3r3aoLSop5mxPZ8LKHY72Kz0ldemHdaWzpCOyIJtLdoMSl+5SSZ0niRA+mCMVQhWlRf/6xdTWkIvj6u/yXuLXkhuS/kxn4LFvYg2n+5f/y2G8WtSVrtzqyGVF19hdMRMwee719EboeAnRdpByqA8nrUKlswtx7tbMI0PLfYMx1kWguJto5lRGPZZFG/hMJoB5aAZFbODVEsk31U6aoeCcUYvYZrU3KtFd+S7SeUv0PPTd1HA8wtsVj0TrePohRzC6a4/caZnM34BAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Outputs": { - "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthUserPoolBF05A444Ref": { - "Value": "us-east-1_KGveHFLxc" - }, - "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthUserPoolAppClient1903AFDARef": { - "Value": "1o40oi80febsgsdamen2i1gnfd" - }, - "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref": { - "Value": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3" - }, - "amplifyfitnesstrackergen2mainbranch400746baebauthfitnesstracker33f5545533f55455PreSignupgen2mainlambda2B17C7BARef": { - "Value": "fitnesstracker33f5545533f55455PreSignup-gen2-main" - }, - "amplifyfitnesstrackergen2mainbranch400746baebauthadmingen2mainlambda19698385Ref": { - "Value": "admin-gen2-main" - }, - "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref": { - "Value": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-fF1WwIKcoHtV" - }, - "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef": { - "Value": "amplify-fitnesstracker-ge-amplifyAuthunauthenticate-RtuRf8ygfomA" - }, - "amplifyfitnesstrackergen2mainbranch400746baebauthadmingen2mainlambda19698385Arn": { - "Value": "arn:aws:lambda:us-east-1:123456789012:function:admin-gen2-main" - }, - "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthAdminGroupRoleC37E0196Ref": { - "Value": "amplify-fitnesstracker-ge-amplifyAuthAdminGroupRole-jIdkeXSZarK4" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.parameters.json deleted file mode 100644 index 01043034b58..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.parameters.json +++ /dev/null @@ -1,178 +0,0 @@ -[ - { - "ParameterKey": "authRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-authRole" - }, - { - "ParameterKey": "autoVerifiedAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "allowUnauthenticatedIdentities", - "ParameterValue": "false" - }, - { - "ParameterKey": "hostedUI", - "ParameterValue": "false" - }, - { - "ParameterKey": "smsVerificationMessage", - "ParameterValue": "Your verification code is {####}" - }, - { - "ParameterKey": "userpoolClientReadAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "breakCircularDependency", - "ParameterValue": "true" - }, - { - "ParameterKey": "mfaTypes", - "ParameterValue": "SMS Text Message" - }, - { - "ParameterKey": "emailVerificationSubject", - "ParameterValue": "Your verification code" - }, - { - "ParameterKey": "sharedId", - "ParameterValue": "33f55455" - }, - { - "ParameterKey": "useDefault", - "ParameterValue": "manual" - }, - { - "ParameterKey": "userpoolClientGenerateSecret", - "ParameterValue": "false" - }, - { - "ParameterKey": "mfaConfiguration", - "ParameterValue": "OFF" - }, - { - "ParameterKey": "identityPoolName", - "ParameterValue": "fitnesstracker33f55455_identitypool_33f55455" - }, - { - "ParameterKey": "thirdPartyAuth", - "ParameterValue": "false" - }, - { - "ParameterKey": "userPoolGroupList", - "ParameterValue": "Admin" - }, - { - "ParameterKey": "authSelections", - "ParameterValue": "identityPoolAndUserPool" - }, - { - "ParameterKey": "adminQueries", - "ParameterValue": "false" - }, - { - "ParameterKey": "permissions", - "ParameterValue": "" - }, - { - "ParameterKey": "functionfitnesstracker33f5545533f55455PreSignupArn", - "ParameterValue": "functionfitnesstracker33f5545533f55455PreSignupArn" - }, - { - "ParameterKey": "resourceNameTruncated", - "ParameterValue": "fitnes33f55455" - }, - { - "ParameterKey": "userPoolGroups", - "ParameterValue": "true" - }, - { - "ParameterKey": "smsAuthenticationMessage", - "ParameterValue": "Your authentication code is {####}" - }, - { - "ParameterKey": "passwordPolicyMinLength", - "ParameterValue": "8" - }, - { - "ParameterKey": "userPoolName", - "ParameterValue": "fitnesstracker33f55455_userpool_33f55455" - }, - { - "ParameterKey": "userpoolClientWriteAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "dependsOn", - "ParameterValue": "[object Object]" - }, - { - "ParameterKey": "useEnabledMfas", - "ParameterValue": "true" - }, - { - "ParameterKey": "functionfitnesstracker33f5545533f55455PreSignupName", - "ParameterValue": "functionfitnesstracker33f5545533f55455PreSignupName" - }, - { - "ParameterKey": "usernameCaseSensitive", - "ParameterValue": "false" - }, - { - "ParameterKey": "resourceName", - "ParameterValue": "fitnesstracker33f5545533f55455" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "triggers", - "ParameterValue": "{\"PreSignup\":[\"email-filter-allowlist\"]}" - }, - { - "ParameterKey": "serviceName", - "ParameterValue": "Cognito" - }, - { - "ParameterKey": "emailVerificationMessage", - "ParameterValue": "Your verification code is {####}" - }, - { - "ParameterKey": "userpoolClientRefreshTokenValidity", - "ParameterValue": "30" - }, - { - "ParameterKey": "userpoolClientSetAttributes", - "ParameterValue": "false" - }, - { - "ParameterKey": "unauthRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-unauthRole" - }, - { - "ParameterKey": "requiredAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "passwordPolicyCharacters", - "ParameterValue": "" - }, - { - "ParameterKey": "authTriggerConnections", - "ParameterValue": "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker33f5545533f55455PreSignup\"}" - }, - { - "ParameterKey": "aliasAttributes", - "ParameterValue": "" - }, - { - "ParameterKey": "userpoolClientLambdaRole", - "ParameterValue": "fitnes33f55455_userpoolclient_lambda_role" - }, - { - "ParameterKey": "defaultPasswordPolicy", - "ParameterValue": "false" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.template.json deleted file mode 100644 index cf501295b33..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.template.json +++ /dev/null @@ -1,373 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "env": { - "Type": "String" - }, - "functionfitnesstracker33f5545533f55455PreSignupArn": { - "Type": "String", - "Default": "functionfitnesstracker33f5545533f55455PreSignupArn" - }, - "functionfitnesstracker33f5545533f55455PreSignupName": { - "Type": "String", - "Default": "functionfitnesstracker33f5545533f55455PreSignupName" - }, - "identityPoolName": { - "Type": "String" - }, - "allowUnauthenticatedIdentities": { - "Type": "String" - }, - "resourceNameTruncated": { - "Type": "String" - }, - "userPoolName": { - "Type": "String" - }, - "autoVerifiedAttributes": { - "Type": "CommaDelimitedList" - }, - "mfaConfiguration": { - "Type": "String" - }, - "mfaTypes": { - "Type": "CommaDelimitedList" - }, - "smsAuthenticationMessage": { - "Type": "String" - }, - "smsVerificationMessage": { - "Type": "String" - }, - "emailVerificationSubject": { - "Type": "String" - }, - "emailVerificationMessage": { - "Type": "String" - }, - "defaultPasswordPolicy": { - "Type": "String" - }, - "passwordPolicyMinLength": { - "Type": "String" - }, - "passwordPolicyCharacters": { - "Type": "CommaDelimitedList" - }, - "requiredAttributes": { - "Type": "CommaDelimitedList" - }, - "aliasAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientGenerateSecret": { - "Type": "String" - }, - "userpoolClientRefreshTokenValidity": { - "Type": "String" - }, - "userpoolClientWriteAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientReadAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientLambdaRole": { - "Type": "String" - }, - "userpoolClientSetAttributes": { - "Type": "String" - }, - "sharedId": { - "Type": "String" - }, - "resourceName": { - "Type": "String" - }, - "authSelections": { - "Type": "String" - }, - "useDefault": { - "Type": "String" - }, - "thirdPartyAuth": { - "Type": "String" - }, - "userPoolGroups": { - "Type": "String" - }, - "adminQueries": { - "Type": "String" - }, - "triggers": { - "Type": "String" - }, - "hostedUI": { - "Type": "String" - }, - "userPoolGroupList": { - "Type": "CommaDelimitedList" - }, - "serviceName": { - "Type": "String" - }, - "usernameCaseSensitive": { - "Type": "String" - }, - "useEnabledMfas": { - "Type": "String" - }, - "authRoleArn": { - "Type": "String" - }, - "unauthRoleArn": { - "Type": "String" - }, - "breakCircularDependency": { - "Type": "String" - }, - "dependsOn": { - "Type": "CommaDelimitedList" - }, - "permissions": { - "Type": "CommaDelimitedList" - }, - "authTriggerConnections": { - "Type": "CommaDelimitedList" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - "main", - "NONE" - ] - } - }, - "Resources": { - "UserPool": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": "Your verification code is {####}", - "EmailVerificationSubject": "Your verification code", - "MfaConfiguration": "OFF", - "Policies": { - "PasswordPolicy": { - "MinimumLength": "8", - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolName": { - "Fn::Join": [ - "", - [ - "fitnesstracker33f55455_userpool_33f55455", - "-", - "main" - ] - ] - }, - "UsernameConfiguration": { - "CaseSensitive": false - } - } - }, - "UserPoolClientWeb": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "fitnes33f55455_app_clientWeb", - "RefreshTokenValidity": "30", - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": "us-east-1_iguxCIcMS" - } - }, - "UserPoolClient": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "fitnes33f55455_app_client", - "GenerateSecret": "false", - "RefreshTokenValidity": "30", - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": "us-east-1_iguxCIcMS" - } - }, - "UserPoolClientRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - }, - "Action": "sts:AssumeRole" - } - ] - }, - "RoleName": { - "Fn::Join": [ - "", - [ - "upClientLambdaRole33f55455", - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - "amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508" - ] - } - ] - }, - "-", - "main" - ] - ] - } - } - }, - "IdentityPool": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": "false", - "CognitoIdentityProviders": [ - { - "ClientId": "3s8jcv7nflisr91emephrr2a9s", - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": "us-east-1_iguxCIcMS" - } - ] - } - }, - { - "ClientId": "29bubgvfbbqkp4k60rl7oaqd8s", - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": "us-east-1_iguxCIcMS" - } - ] - } - } - ], - "IdentityPoolName": { - "Fn::Join": [ - "", - [ - "fitnesstracker33f55455_identitypool_33f55455__", - "main" - ] - ] - } - } - }, - "IdentityPoolRoleMap": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": "us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022", - "RoleMappings": { - "UserPoolClientRoleMapping": { - "AmbiguousRoleResolution": "AuthenticatedRole", - "IdentityProvider": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${userPool}:${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "userPool": "us-east-1_iguxCIcMS", - "client": "3s8jcv7nflisr91emephrr2a9s" - } - ] - }, - "Type": "Token" - }, - "UserPoolWebClientRoleMapping": { - "AmbiguousRoleResolution": "AuthenticatedRole", - "IdentityProvider": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${userPool}:${webClient}", - { - "region": { - "Ref": "AWS::Region" - }, - "userPool": "us-east-1_iguxCIcMS", - "webClient": "29bubgvfbbqkp4k60rl7oaqd8s" - } - ] - }, - "Type": "Token" - } - }, - "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-unauthRole", - "authenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-authRole" - } - } - } - }, - "Outputs": { - "IdentityPoolId": { - "Description": "Id for the identity pool", - "Value": "us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022" - }, - "IdentityPoolName": { - "Value": "fitnesstracker33f55455_identitypool_33f55455__main" - }, - "UserPoolId": { - "Description": "Id for the user pool", - "Value": "us-east-1_iguxCIcMS" - }, - "UserPoolArn": { - "Description": "Arn for the user pool", - "Value": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_iguxCIcMS" - }, - "UserPoolName": { - "Value": "fitnesstracker33f55455_userpool_33f55455" - }, - "AppClientIDWeb": { - "Description": "The user pool app client id for web", - "Value": "29bubgvfbbqkp4k60rl7oaqd8s" - }, - "AppClientID": { - "Description": "The user pool app client id", - "Value": "3s8jcv7nflisr91emephrr2a9s" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.parameters.json deleted file mode 100644 index 11a65b7a7e8..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.parameters.json +++ /dev/null @@ -1,30 +0,0 @@ -[ - { - "ParameterKey": "UnauthRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-unauthRole" - }, - { - "ParameterKey": "authfitnesstracker33f5545533f55455IdentityPoolId", - "ParameterValue": "us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022" - }, - { - "ParameterKey": "AuthRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-authRole" - }, - { - "ParameterKey": "authfitnesstracker33f5545533f55455UserPoolId", - "ParameterValue": "us-east-1_iguxCIcMS" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "authfitnesstracker33f5545533f55455AppClientIDWeb", - "ParameterValue": "29bubgvfbbqkp4k60rl7oaqd8s" - }, - { - "ParameterKey": "authfitnesstracker33f5545533f55455AppClientID", - "ParameterValue": "3s8jcv7nflisr91emephrr2a9s" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.template.json deleted file mode 100644 index 0b1b48d7a2e..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.template.json +++ /dev/null @@ -1,91 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito-UserPool-Groups\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "env": { - "Type": "String" - }, - "AuthRoleArn": { - "Type": "String" - }, - "UnauthRoleArn": { - "Type": "String" - }, - "authfitnesstracker33f5545533f55455UserPoolId": { - "Type": "String", - "Default": "authfitnesstracker33f5545533f55455UserPoolId" - }, - "authfitnesstracker33f5545533f55455IdentityPoolId": { - "Type": "String", - "Default": "authfitnesstracker33f5545533f55455IdentityPoolId" - }, - "authfitnesstracker33f5545533f55455AppClientID": { - "Type": "String", - "Default": "authfitnesstracker33f5545533f55455AppClientID" - }, - "authfitnesstracker33f5545533f55455AppClientIDWeb": { - "Type": "String", - "Default": "authfitnesstracker33f5545533f55455AppClientIDWeb" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - "main", - "NONE" - ] - } - }, - "Resources": { - "AdminGroup": { - "Type": "AWS::Cognito::UserPoolGroup", - "Properties": { - "Description": "override success", - "GroupName": "Admin", - "Precedence": 1, - "RoleArn": "arn:aws:iam::123456789012:role/us-east-1_iguxCIcMS-AdminGroupRole", - "UserPoolId": "us-east-1_iguxCIcMS" - } - }, - "AdminGroupRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Sid": "", - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - }, - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022" - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "authenticated" - } - } - } - ] - }, - "RoleName": { - "Fn::Join": [ - "", - [ - "us-east-1_iguxCIcMS", - "-AdminGroupRole" - ] - ] - } - } - } - }, - "Outputs": { - "AdminGroupRole": { - "Value": "arn:aws:iam::123456789012:role/us-east-1_iguxCIcMS-AdminGroupRole" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-x-x-authfitnesstracker33f5545533f55455-x.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-x-x-authfitnesstracker33f5545533f55455-x.parameters.json new file mode 100644 index 00000000000..135f033d140 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-x-x-authfitnesstracker33f5545533f55455-x.parameters.json @@ -0,0 +1,178 @@ +[ + { + "ParameterKey": "authRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-x-x-authRole" + }, + { + "ParameterKey": "autoVerifiedAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "allowUnauthenticatedIdentities", + "ParameterValue": "false" + }, + { + "ParameterKey": "hostedUI", + "ParameterValue": "false" + }, + { + "ParameterKey": "smsVerificationMessage", + "ParameterValue": "Your verification code is {####}" + }, + { + "ParameterKey": "userpoolClientReadAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "breakCircularDependency", + "ParameterValue": "true" + }, + { + "ParameterKey": "mfaTypes", + "ParameterValue": "SMS Text Message" + }, + { + "ParameterKey": "emailVerificationSubject", + "ParameterValue": "Your verification code" + }, + { + "ParameterKey": "sharedId", + "ParameterValue": "33f55455" + }, + { + "ParameterKey": "useDefault", + "ParameterValue": "manual" + }, + { + "ParameterKey": "userpoolClientGenerateSecret", + "ParameterValue": "false" + }, + { + "ParameterKey": "mfaConfiguration", + "ParameterValue": "OFF" + }, + { + "ParameterKey": "identityPoolName", + "ParameterValue": "fitnesstracker33f55455_identitypool_33f55455" + }, + { + "ParameterKey": "thirdPartyAuth", + "ParameterValue": "false" + }, + { + "ParameterKey": "userPoolGroupList", + "ParameterValue": "Admin" + }, + { + "ParameterKey": "authSelections", + "ParameterValue": "identityPoolAndUserPool" + }, + { + "ParameterKey": "adminQueries", + "ParameterValue": "false" + }, + { + "ParameterKey": "permissions", + "ParameterValue": "" + }, + { + "ParameterKey": "functionfitnesstracker33f5545533f55455PreSignupArn", + "ParameterValue": "functionfitnesstracker33f5545533f55455PreSignupArn" + }, + { + "ParameterKey": "resourceNameTruncated", + "ParameterValue": "fitnes33f55455" + }, + { + "ParameterKey": "userPoolGroups", + "ParameterValue": "true" + }, + { + "ParameterKey": "smsAuthenticationMessage", + "ParameterValue": "Your authentication code is {####}" + }, + { + "ParameterKey": "passwordPolicyMinLength", + "ParameterValue": "8" + }, + { + "ParameterKey": "userPoolName", + "ParameterValue": "fitnesstracker33f55455_userpool_33f55455" + }, + { + "ParameterKey": "userpoolClientWriteAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "dependsOn", + "ParameterValue": "[object Object]" + }, + { + "ParameterKey": "useEnabledMfas", + "ParameterValue": "true" + }, + { + "ParameterKey": "functionfitnesstracker33f5545533f55455PreSignupName", + "ParameterValue": "functionfitnesstracker33f5545533f55455PreSignupName" + }, + { + "ParameterKey": "usernameCaseSensitive", + "ParameterValue": "false" + }, + { + "ParameterKey": "resourceName", + "ParameterValue": "fitnesstracker33f5545533f55455" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "triggers", + "ParameterValue": "{\"PreSignup\":[\"email-filter-allowlist\"]}" + }, + { + "ParameterKey": "serviceName", + "ParameterValue": "Cognito" + }, + { + "ParameterKey": "emailVerificationMessage", + "ParameterValue": "Your verification code is {####}" + }, + { + "ParameterKey": "userpoolClientRefreshTokenValidity", + "ParameterValue": "30" + }, + { + "ParameterKey": "userpoolClientSetAttributes", + "ParameterValue": "false" + }, + { + "ParameterKey": "unauthRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-x-x-unauthRole" + }, + { + "ParameterKey": "requiredAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "passwordPolicyCharacters", + "ParameterValue": "" + }, + { + "ParameterKey": "authTriggerConnections", + "ParameterValue": "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker33f5545533f55455PreSignup\"}" + }, + { + "ParameterKey": "aliasAttributes", + "ParameterValue": "" + }, + { + "ParameterKey": "userpoolClientLambdaRole", + "ParameterValue": "fitnes33f55455_userpoolclient_lambda_role" + }, + { + "ParameterKey": "defaultPasswordPolicy", + "ParameterValue": "false" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-x-x-authfitnesstracker33f5545533f55455-x.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-x-x-authfitnesstracker33f5545533f55455-x.template.json new file mode 100644 index 00000000000..d75d77afb80 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-x-x-authfitnesstracker33f5545533f55455-x.template.json @@ -0,0 +1,373 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "functionfitnesstracker33f5545533f55455PreSignupArn": { + "Type": "String", + "Default": "functionfitnesstracker33f5545533f55455PreSignupArn" + }, + "functionfitnesstracker33f5545533f55455PreSignupName": { + "Type": "String", + "Default": "functionfitnesstracker33f5545533f55455PreSignupName" + }, + "identityPoolName": { + "Type": "String" + }, + "allowUnauthenticatedIdentities": { + "Type": "String" + }, + "resourceNameTruncated": { + "Type": "String" + }, + "userPoolName": { + "Type": "String" + }, + "autoVerifiedAttributes": { + "Type": "CommaDelimitedList" + }, + "mfaConfiguration": { + "Type": "String" + }, + "mfaTypes": { + "Type": "CommaDelimitedList" + }, + "smsAuthenticationMessage": { + "Type": "String" + }, + "smsVerificationMessage": { + "Type": "String" + }, + "emailVerificationSubject": { + "Type": "String" + }, + "emailVerificationMessage": { + "Type": "String" + }, + "defaultPasswordPolicy": { + "Type": "String" + }, + "passwordPolicyMinLength": { + "Type": "String" + }, + "passwordPolicyCharacters": { + "Type": "CommaDelimitedList" + }, + "requiredAttributes": { + "Type": "CommaDelimitedList" + }, + "aliasAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientGenerateSecret": { + "Type": "String" + }, + "userpoolClientRefreshTokenValidity": { + "Type": "String" + }, + "userpoolClientWriteAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientReadAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientLambdaRole": { + "Type": "String" + }, + "userpoolClientSetAttributes": { + "Type": "String" + }, + "sharedId": { + "Type": "String" + }, + "resourceName": { + "Type": "String" + }, + "authSelections": { + "Type": "String" + }, + "useDefault": { + "Type": "String" + }, + "thirdPartyAuth": { + "Type": "String" + }, + "userPoolGroups": { + "Type": "String" + }, + "adminQueries": { + "Type": "String" + }, + "triggers": { + "Type": "String" + }, + "hostedUI": { + "Type": "String" + }, + "userPoolGroupList": { + "Type": "CommaDelimitedList" + }, + "serviceName": { + "Type": "String" + }, + "usernameCaseSensitive": { + "Type": "String" + }, + "useEnabledMfas": { + "Type": "String" + }, + "authRoleArn": { + "Type": "String" + }, + "unauthRoleArn": { + "Type": "String" + }, + "breakCircularDependency": { + "Type": "String" + }, + "dependsOn": { + "Type": "CommaDelimitedList" + }, + "permissions": { + "Type": "CommaDelimitedList" + }, + "authTriggerConnections": { + "Type": "CommaDelimitedList" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + "x", + "NONE" + ] + } + }, + "Resources": { + "UserPool": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": "8", + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolName": { + "Fn::Join": [ + "", + [ + "fitnesstracker33f55455_userpool_33f55455", + "-", + "x" + ] + ] + }, + "UsernameConfiguration": { + "CaseSensitive": false + } + } + }, + "UserPoolClientWeb": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "fitnes33f55455_app_clientWeb", + "RefreshTokenValidity": "30", + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": "us-east-1_Xm7264Or1" + } + }, + "UserPoolClient": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "fitnes33f55455_app_client", + "GenerateSecret": "false", + "RefreshTokenValidity": "30", + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": "us-east-1_Xm7264Or1" + } + }, + "UserPoolClientRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + }, + "Action": "sts:AssumeRole" + } + ] + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "upClientLambdaRole33f55455", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + "amplify-fitnesstracker-x-x-authfitnesstracker33f5545533f55455-x" + ] + } + ] + }, + "-", + "x" + ] + ] + } + } + }, + "IdentityPool": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": "false", + "CognitoIdentityProviders": [ + { + "ClientId": "763u4g2459ac3omq43p1rnh7bu", + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": "us-east-1_Xm7264Or1" + } + ] + } + }, + { + "ClientId": "2r67bqd39lvdif3jjk3da8ok74", + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": "us-east-1_Xm7264Or1" + } + ] + } + } + ], + "IdentityPoolName": { + "Fn::Join": [ + "", + [ + "fitnesstracker33f55455_identitypool_33f55455__", + "x" + ] + ] + } + } + }, + "IdentityPoolRoleMap": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:c525ee11-d503-434d-a20e-29d16684f0f3", + "RoleMappings": { + "UserPoolClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${userPool}:${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "userPool": "us-east-1_Xm7264Or1", + "client": "763u4g2459ac3omq43p1rnh7bu" + } + ] + }, + "Type": "Token" + }, + "UserPoolWebClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${userPool}:${webClient}", + { + "region": { + "Ref": "AWS::Region" + }, + "userPool": "us-east-1_Xm7264Or1", + "webClient": "2r67bqd39lvdif3jjk3da8ok74" + } + ] + }, + "Type": "Token" + } + }, + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-x-x-unauthRole", + "authenticated": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-x-x-authRole" + } + } + } + }, + "Outputs": { + "IdentityPoolId": { + "Description": "Id for the identity pool", + "Value": "us-east-1:c525ee11-d503-434d-a20e-29d16684f0f3" + }, + "IdentityPoolName": { + "Value": "fitnesstracker33f55455_identitypool_33f55455__x" + }, + "UserPoolId": { + "Description": "Id for the user pool", + "Value": "us-east-1_Xm7264Or1" + }, + "UserPoolArn": { + "Description": "Arn for the user pool", + "Value": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_Xm7264Or1" + }, + "UserPoolName": { + "Value": "fitnesstracker33f55455_userpool_33f55455" + }, + "AppClientIDWeb": { + "Description": "The user pool app client id for web", + "Value": "2r67bqd39lvdif3jjk3da8ok74" + }, + "AppClientID": { + "Description": "The user pool app client id", + "Value": "763u4g2459ac3omq43p1rnh7bu" + } + } +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-x-x-authuserPoolGroups-x.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-x-x-authuserPoolGroups-x.parameters.json new file mode 100644 index 00000000000..ab8b3eeba53 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-x-x-authuserPoolGroups-x.parameters.json @@ -0,0 +1,30 @@ +[ + { + "ParameterKey": "UnauthRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-x-x-unauthRole" + }, + { + "ParameterKey": "authfitnesstracker33f5545533f55455IdentityPoolId", + "ParameterValue": "us-east-1:c525ee11-d503-434d-a20e-29d16684f0f3" + }, + { + "ParameterKey": "AuthRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-x-x-authRole" + }, + { + "ParameterKey": "authfitnesstracker33f5545533f55455UserPoolId", + "ParameterValue": "us-east-1_Xm7264Or1" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "authfitnesstracker33f5545533f55455AppClientIDWeb", + "ParameterValue": "2r67bqd39lvdif3jjk3da8ok74" + }, + { + "ParameterKey": "authfitnesstracker33f5545533f55455AppClientID", + "ParameterValue": "763u4g2459ac3omq43p1rnh7bu" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-x-x-authuserPoolGroups-x.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-x-x-authuserPoolGroups-x.template.json new file mode 100644 index 00000000000..219356b2e43 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.post.refactor/update.amplify-fitnesstracker-x-x-authuserPoolGroups-x.template.json @@ -0,0 +1,91 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito-UserPool-Groups\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "AuthRoleArn": { + "Type": "String" + }, + "UnauthRoleArn": { + "Type": "String" + }, + "authfitnesstracker33f5545533f55455UserPoolId": { + "Type": "String", + "Default": "authfitnesstracker33f5545533f55455UserPoolId" + }, + "authfitnesstracker33f5545533f55455IdentityPoolId": { + "Type": "String", + "Default": "authfitnesstracker33f5545533f55455IdentityPoolId" + }, + "authfitnesstracker33f5545533f55455AppClientID": { + "Type": "String", + "Default": "authfitnesstracker33f5545533f55455AppClientID" + }, + "authfitnesstracker33f5545533f55455AppClientIDWeb": { + "Type": "String", + "Default": "authfitnesstracker33f5545533f55455AppClientIDWeb" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + "x", + "NONE" + ] + } + }, + "Resources": { + "AdminGroup": { + "Type": "AWS::Cognito::UserPoolGroup", + "Properties": { + "Description": "override success", + "GroupName": "Admin", + "Precedence": 1, + "RoleArn": "arn:aws:iam::123456789012:role/us-east-1_Xm7264Or1-AdminGroupRole", + "UserPoolId": "us-east-1_Xm7264Or1" + } + }, + "AdminGroupRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Sid": "", + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + }, + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:c525ee11-d503-434d-a20e-29d16684f0f3" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + } + } + ] + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "us-east-1_Xm7264Or1", + "-AdminGroupRole" + ] + ] + } + } + } + }, + "Outputs": { + "AdminGroupRole": { + "Value": "arn:aws:iam::123456789012:role/us-east-1_Xm7264Or1-AdminGroupRole" + } + } +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/.gitignore b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/.gitignore index 4a025af5313..8c9162f3547 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/.gitignore +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/.gitignore @@ -36,7 +36,6 @@ dist/ node_modules/ aws-exports.js awsconfiguration.json -amplifyconfiguration.json amplifyconfiguration.dart amplify-build-config.json amplify-gradle-config.json diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json index 8334327a376..524ef0450ee 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json @@ -1,17 +1,17 @@ { "providers": { "awscloudformation": { - "AuthRoleName": "amplify-fitnesstracker-main-a0537-authRole", - "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-unauthRole", - "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-authRole", + "AuthRoleName": "amplify-fitnesstracker-x-x-authRole", + "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-x-x-unauthRole", + "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-x-x-authRole", "Region": "us-east-1", - "DeploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", - "UnauthRoleName": "amplify-fitnesstracker-main-a0537-unauthRole", - "StackName": "amplify-fitnesstracker-main-a0537", - "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-main-a0537/1749a530-272d-11f1-a465-0e5f0b5f7853", + "DeploymentBucketName": "amplify-fitnesstracker-x-x-deployment", + "UnauthRoleName": "amplify-fitnesstracker-x-x-unauthRole", + "StackName": "amplify-fitnesstracker-x-x", + "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-x-x/05c223c0-387e-11f1-a0a5-0affda7b6827", "AmplifyAppId": "fitnesstracker", - "APIGatewayAuthURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", - "AuthTriggerTemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json" + "APIGatewayAuthURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", + "AuthTriggerTemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json" } }, "auth": { @@ -30,13 +30,13 @@ ] } ], - "lastPushTimeStamp": "2026-03-24T03:10:58.631Z", + "lastPushTimeStamp": "2026-04-15T03:56:52.835Z", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", "logicalId": "authuserPoolGroups" }, "output": { - "AdminGroupRole": "arn:aws:iam::123456789012:role/us-east-1_iguxCIcMS-AdminGroupRole" + "AdminGroupRole": "arn:aws:iam::123456789012:role/us-east-1_Xm7264Or1-AdminGroupRole" }, "lastPushDirHash": "5G4uAlMxN8rsFD1jyeLTya9ahFM=" }, @@ -74,17 +74,17 @@ ] }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/auth/fitnesstracker33f5545533f55455-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/auth/fitnesstracker33f5545533f55455-cloudformation-template.json", "logicalId": "authfitnesstracker33f5545533f55455" }, - "lastPushTimeStamp": "2026-03-24T03:10:58.631Z", + "lastPushTimeStamp": "2026-04-15T03:56:52.835Z", "output": { - "UserPoolId": "us-east-1_iguxCIcMS", - "AppClientIDWeb": "29bubgvfbbqkp4k60rl7oaqd8s", - "AppClientID": "3s8jcv7nflisr91emephrr2a9s", - "IdentityPoolId": "us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022", - "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_iguxCIcMS", - "IdentityPoolName": "fitnesstracker33f55455_identitypool_33f55455__main", + "UserPoolId": "us-east-1_Xm7264Or1", + "AppClientIDWeb": "2r67bqd39lvdif3jjk3da8ok74", + "AppClientID": "763u4g2459ac3omq43p1rnh7bu", + "IdentityPoolId": "us-east-1:c525ee11-d503-434d-a20e-29d16684f0f3", + "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_Xm7264Or1", + "IdentityPoolName": "fitnesstracker33f55455_identitypool_33f55455__x", "UserPoolName": "fitnesstracker33f55455_userpool_33f55455" }, "lastPushDirHash": "0UqXAz+SYrchlHkWJtyjmhwNAyw=" @@ -95,25 +95,25 @@ "build": true, "providerPlugin": "awscloudformation", "service": "Lambda", - "lastBuildTimeStamp": "2026-03-24T03:03:03.155Z", + "lastBuildTimeStamp": "2026-04-15T03:50:12.633Z", "lastBuildType": "PROD", - "lastPackageTimeStamp": "2026-03-24T03:03:03.215Z", + "lastPackageTimeStamp": "2026-04-15T03:50:12.725Z", "distZipFilename": "fitnesstracker33f5545533f55455PreSignup-68374859444c45627749-build.zip", "s3Bucket": { - "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", + "deploymentBucketName": "amplify-fitnesstracker-x-x-deployment", "s3Key": "amplify-builds/fitnesstracker33f5545533f55455PreSignup-68374859444c45627749-build.zip" }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/function/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/function/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json", "logicalId": "functionfitnesstracker33f5545533f55455PreSignup" }, - "lastPushTimeStamp": "2026-03-24T03:10:58.631Z", + "lastPushTimeStamp": "2026-04-15T03:56:52.835Z", "output": { - "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/fitnesstracker33f5545533f55455PreSignup-main", + "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/fitnesstracker33f5545533f55455PreSignup-x", "Region": "us-east-1", - "Arn": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker33f5545533f55455PreSignup-main", - "Name": "fitnesstracker33f5545533f55455PreSignup-main", - "LambdaExecutionRole": "fitnesstracker33f5545533f55455PreSignup-main" + "Arn": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker33f5545533f55455PreSignup-x", + "Name": "fitnesstracker33f5545533f55455PreSignup-x", + "LambdaExecutionRole": "fitnesstracker33f5545533f55455PreSignup-x" }, "lastPushDirHash": "kHZgvjW478Vk1rWRqWN9hZbma+U=" }, @@ -130,27 +130,27 @@ ] } ], - "lastBuildTimeStamp": "2026-03-24T03:03:04.944Z", + "lastBuildTimeStamp": "2026-04-15T03:50:14.673Z", "lastBuildType": "PROD", - "lastPackageTimeStamp": "2026-03-24T03:03:05.883Z", - "distZipFilename": "lognutrition-554b5263566866516c6c-build.zip", + "lastPackageTimeStamp": "2026-04-15T03:50:15.648Z", + "distZipFilename": "lognutrition-4d67766f675761365161-build.zip", "s3Bucket": { - "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", - "s3Key": "amplify-builds/lognutrition-554b5263566866516c6c-build.zip" + "deploymentBucketName": "amplify-fitnesstracker-x-x-deployment", + "s3Key": "amplify-builds/lognutrition-4d67766f675761365161-build.zip" }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/function/lognutrition-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/function/lognutrition-cloudformation-template.json", "logicalId": "functionlognutrition" }, - "lastPushTimeStamp": "2026-03-24T03:10:58.631Z", + "lastPushTimeStamp": "2026-04-15T03:56:52.835Z", "output": { - "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/fitnesstrackerLambdaRole2824d4b4-main", + "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/fitnesstrackerLambdaRole2824d4b4-x", "Region": "us-east-1", - "Arn": "arn:aws:lambda:us-east-1:123456789012:function:lognutrition-main", - "Name": "lognutrition-main", - "LambdaExecutionRole": "fitnesstrackerLambdaRole2824d4b4-main" + "Arn": "arn:aws:lambda:us-east-1:123456789012:function:lognutrition-x", + "Name": "lognutrition-x", + "LambdaExecutionRole": "fitnesstrackerLambdaRole2824d4b4-x" }, - "lastPushDirHash": "KAgg7Tg7xQWrkPA+Y7AX2th1kaI=" + "lastPushDirHash": "pNY5K84SMXhTHbBmtp4HizlFtFk=" }, "admin": { "build": true, @@ -165,27 +165,27 @@ ] } ], - "lastBuildTimeStamp": "2026-03-24T03:03:08.363Z", + "lastBuildTimeStamp": "2026-04-15T03:50:18.461Z", "lastBuildType": "PROD", - "lastPackageTimeStamp": "2026-03-24T03:03:14.781Z", - "distZipFilename": "admin-7934694b6d366c486d32-build.zip", + "lastPackageTimeStamp": "2026-04-15T03:50:23.125Z", + "distZipFilename": "admin-2f397a7163426d447a6b-build.zip", "s3Bucket": { - "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", - "s3Key": "amplify-builds/admin-7934694b6d366c486d32-build.zip" + "deploymentBucketName": "amplify-fitnesstracker-x-x-deployment", + "s3Key": "amplify-builds/admin-2f397a7163426d447a6b-build.zip" }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/function/admin-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/function/admin-cloudformation-template.json", "logicalId": "functionadmin" }, - "lastPushTimeStamp": "2026-03-24T03:10:58.631Z", + "lastPushTimeStamp": "2026-04-15T03:56:52.835Z", "output": { - "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/fitnesstrackerLambdaRole4a08108a-main", + "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/fitnesstrackerLambdaRole4a08108a-x", "Region": "us-east-1", - "Arn": "arn:aws:lambda:us-east-1:123456789012:function:admin-main", - "Name": "admin-main", - "LambdaExecutionRole": "fitnesstrackerLambdaRole4a08108a-main" + "Arn": "arn:aws:lambda:us-east-1:123456789012:function:admin-x", + "Name": "admin-x", + "LambdaExecutionRole": "fitnesstrackerLambdaRole4a08108a-x" }, - "lastPushDirHash": "20iOEIOvyMwayeWUC08s9NsJkTA=" + "lastPushDirHash": "Vv581bo2tS4KT5uObXBovEQfFBA=" } }, "api": { @@ -220,15 +220,15 @@ } ] }, - "GraphQLAPIIdOutput": "jzwb5p2vcbd2ldlnlxokgjcjby", - "GraphQLAPIEndpointOutput": "https://lqftdnws2zb75jcuwdcmx23wdi.appsync-api.us-east-1.amazonaws.com/graphql", + "GraphQLAPIIdOutput": "xwgwkksjrbcoxnb64a6clvir4u", + "GraphQLAPIEndpointOutput": "https://p7b42iegyfh4zn7eo7a6k6lni4.appsync-api.us-east-1.amazonaws.com/graphql", "GraphQLAPIKeyOutput": "da2-fakeapikey00000000000000" }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", "logicalId": "apifitnesstracker" }, - "lastPushTimeStamp": "2026-03-24T03:10:58.631Z", + "lastPushTimeStamp": "2026-04-15T03:56:52.835Z", "lastPushDirHash": "RCtlX/RFS23/RTpTpKEuv4XLh08=" }, "nutritionapi": { @@ -259,14 +259,14 @@ } ], "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/nutritionapi-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/api/nutritionapi-cloudformation-template.json", "logicalId": "apinutritionapi" }, - "lastPushTimeStamp": "2026-03-24T03:10:58.631Z", + "lastPushTimeStamp": "2026-04-15T03:56:52.835Z", "output": { "ApiName": "nutritionapi", - "RootUrl": "https://hmydcaubcb.execute-api.us-east-1.amazonaws.com/main", - "ApiId": "hmydcaubcb" + "RootUrl": "https://s27d6on2x4.execute-api.us-east-1.amazonaws.com/x", + "ApiId": "s27d6on2x4" }, "lastPushDirHash": "5JwuGoxSHfV3nT5/dIukaklIOKI=" }, @@ -298,16 +298,16 @@ } ], "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/adminapi-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/api/adminapi-cloudformation-template.json", "logicalId": "apiadminapi" }, - "lastPushTimeStamp": "2026-03-24T03:10:58.631Z", + "lastPushTimeStamp": "2026-04-15T03:56:52.835Z", "output": { "ApiName": "adminapi", - "RootUrl": "https://oxq86r59h6.execute-api.us-east-1.amazonaws.com/main", - "ApiId": "oxq86r59h6" + "RootUrl": "https://wn1ifrxt6h.execute-api.us-east-1.amazonaws.com/x", + "ApiId": "wn1ifrxt6h" }, "lastPushDirHash": "SI1snudM0j/SqX5HIasSB/7nF3k=" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/adminapi/build/adminapi-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/adminapi/build/adminapi-cloudformation-template.json index 63a8fcdb155..640df24a5f9 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/adminapi/build/adminapi-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/adminapi/build/adminapi-cloudformation-template.json @@ -426,7 +426,7 @@ "Name": "adminapi" } }, - "adminapiDefault4XXResponse0e27c647": { + "adminapiDefault4XXResponse9abfcb58": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -441,7 +441,7 @@ } } }, - "adminapiDefault5XXResponse0e27c647": { + "adminapiDefault5XXResponse9abfcb58": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -456,7 +456,7 @@ } } }, - "DeploymentAPIGWadminapiad7711e6": { + "DeploymentAPIGWadminapi7459b549": { "Type": "AWS::ApiGateway::Deployment", "Properties": { "Description": "The Development stage deployment of your API.", @@ -474,8 +474,8 @@ } }, "DependsOn": [ - "adminapiDefault4XXResponse0e27c647", - "adminapiDefault5XXResponse0e27c647" + "adminapiDefault4XXResponse9abfcb58", + "adminapiDefault5XXResponse9abfcb58" ] } }, @@ -529,4 +529,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/adminapi/build/parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/adminapi/build/parameters.json index 9e26dfeeb6e..0967ef424bc 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/adminapi/build/parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/adminapi/build/parameters.json @@ -1 +1 @@ -{} \ No newline at end of file +{} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/adminapi/cli-inputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/adminapi/cli-inputs.json index e5476755338..dff6040583e 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/adminapi/cli-inputs.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/adminapi/cli-inputs.json @@ -14,4 +14,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/cloudformation-template.json index cd07bb81a76..5824262e76d 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/cloudformation-template.json @@ -129,7 +129,7 @@ ] }, "Description": "graphql", - "Expires": 1774926196 + "Expires": 1776829824 } }, "GraphQLAPINONEDS95A13CF0": { @@ -606,4 +606,4 @@ } }, "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/parameters.json index 42555b61e79..cbe4a04b457 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/parameters.json @@ -8,6 +8,6 @@ "Outputs.UserPoolId" ] }, - "S3DeploymentBucket": "amplify-fitnesstracker-main-a0537-deployment", + "S3DeploymentBucket": "amplify-fitnesstracker-x-x-deployment", "S3DeploymentRootKey": "amplify-appsync-files/67310f5f0a68cc163f9cc58da56e1409a2c21b1d" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Exercise.owner.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Exercise.owner.req.vtl index 1aae0961a3e..a9c5efa2bb8 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Exercise.owner.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Exercise.owner.req.vtl @@ -1 +1 @@ -$util.toJson({"version":"2018-05-29","payload":{}}) \ No newline at end of file +$util.toJson({"version":"2018-05-29","payload":{}}) diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Exercise.owner.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Exercise.owner.res.vtl index c6de7a4f2cf..0552e7005c8 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Exercise.owner.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Exercise.owner.res.vtl @@ -17,4 +17,4 @@ $util.qr($ctx.source.put("owner", $ownerEntitiesLast)) $util.toJson($ctx.source.owner) #end -## [End] Parse owner field auth for Get. ** \ No newline at end of file +## [End] Parse owner field auth for Get. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createExercise.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createExercise.auth.1.req.vtl index bfcd6b25f4c..69b8026f025 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createExercise.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createExercise.auth.1.req.vtl @@ -49,4 +49,4 @@ $util.unauthorized() #end #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createExercise.init.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createExercise.init.1.req.vtl index df6b4cbbc5c..407b5845fc2 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createExercise.init.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createExercise.init.1.req.vtl @@ -8,4 +8,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createExercise.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createExercise.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createExercise.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createExercise.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createExercise.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createExercise.req.vtl index 999b84e8fd0..3fa23896463 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createExercise.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createExercise.req.vtl @@ -63,4 +63,4 @@ $util.qr($mergedValues.put("__typename", "Exercise")) $util.qr($PutObject.put("key", $Key)) #end $util.toJson($PutObject) -## [End] Create Request template. ** \ No newline at end of file +## [End] Create Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createExercise.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createExercise.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createExercise.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createExercise.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createMeal.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createMeal.auth.1.req.vtl index 08cba3f3ade..3f8533b77b8 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createMeal.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createMeal.auth.1.req.vtl @@ -19,4 +19,4 @@ $util.unauthorized() #end #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createMeal.init.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createMeal.init.1.req.vtl index df6b4cbbc5c..407b5845fc2 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createMeal.init.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createMeal.init.1.req.vtl @@ -8,4 +8,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createMeal.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createMeal.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createMeal.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createMeal.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createMeal.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createMeal.req.vtl index 68993c145cb..47812247f3f 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createMeal.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createMeal.req.vtl @@ -63,4 +63,4 @@ $util.qr($mergedValues.put("__typename", "Meal")) $util.qr($PutObject.put("key", $Key)) #end $util.toJson($PutObject) -## [End] Create Request template. ** \ No newline at end of file +## [End] Create Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createMeal.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createMeal.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createMeal.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createMeal.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createWorkoutProgram.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createWorkoutProgram.auth.1.req.vtl index 6b3671bf681..cb21e72be6d 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createWorkoutProgram.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createWorkoutProgram.auth.1.req.vtl @@ -49,4 +49,4 @@ $util.unauthorized() #end #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createWorkoutProgram.init.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createWorkoutProgram.init.1.req.vtl index df6b4cbbc5c..407b5845fc2 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createWorkoutProgram.init.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createWorkoutProgram.init.1.req.vtl @@ -8,4 +8,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createWorkoutProgram.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createWorkoutProgram.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createWorkoutProgram.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createWorkoutProgram.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createWorkoutProgram.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createWorkoutProgram.req.vtl index 8eb81aff9ba..50a9585af02 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createWorkoutProgram.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createWorkoutProgram.req.vtl @@ -63,4 +63,4 @@ $util.qr($mergedValues.put("__typename", "WorkoutProgram")) $util.qr($PutObject.put("key", $Key)) #end $util.toJson($PutObject) -## [End] Create Request template. ** \ No newline at end of file +## [End] Create Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createWorkoutProgram.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createWorkoutProgram.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createWorkoutProgram.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.createWorkoutProgram.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteExercise.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteExercise.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteExercise.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteExercise.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteExercise.auth.1.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteExercise.auth.1.res.vtl index d60b77ecdd7..a616f67a6c4 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteExercise.auth.1.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteExercise.auth.1.res.vtl @@ -24,4 +24,4 @@ $util.unauthorized() $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteExercise.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteExercise.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteExercise.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteExercise.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteExercise.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteExercise.req.vtl index ace459bd501..d2cb40cd15d 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteExercise.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteExercise.req.vtl @@ -55,4 +55,4 @@ $util.qr($DeleteRequest.put("key", $Key)) $util.qr($DeleteRequest.put("condition", $Conditions)) #end $util.toJson($DeleteRequest) -## [End] Delete Request template. ** \ No newline at end of file +## [End] Delete Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteExercise.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteExercise.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteExercise.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteExercise.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteMeal.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteMeal.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteMeal.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteMeal.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteMeal.auth.1.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteMeal.auth.1.res.vtl index 4303a893cb1..b8c75f73235 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteMeal.auth.1.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteMeal.auth.1.res.vtl @@ -11,4 +11,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteMeal.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteMeal.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteMeal.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteMeal.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteMeal.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteMeal.req.vtl index ace459bd501..d2cb40cd15d 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteMeal.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteMeal.req.vtl @@ -55,4 +55,4 @@ $util.qr($DeleteRequest.put("key", $Key)) $util.qr($DeleteRequest.put("condition", $Conditions)) #end $util.toJson($DeleteRequest) -## [End] Delete Request template. ** \ No newline at end of file +## [End] Delete Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteMeal.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteMeal.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteMeal.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteMeal.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteWorkoutProgram.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteWorkoutProgram.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteWorkoutProgram.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteWorkoutProgram.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteWorkoutProgram.auth.1.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteWorkoutProgram.auth.1.res.vtl index d60b77ecdd7..a616f67a6c4 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteWorkoutProgram.auth.1.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteWorkoutProgram.auth.1.res.vtl @@ -24,4 +24,4 @@ $util.unauthorized() $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteWorkoutProgram.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteWorkoutProgram.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteWorkoutProgram.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteWorkoutProgram.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteWorkoutProgram.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteWorkoutProgram.req.vtl index ace459bd501..d2cb40cd15d 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteWorkoutProgram.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteWorkoutProgram.req.vtl @@ -55,4 +55,4 @@ $util.qr($DeleteRequest.put("key", $Key)) $util.qr($DeleteRequest.put("condition", $Conditions)) #end $util.toJson($DeleteRequest) -## [End] Delete Request template. ** \ No newline at end of file +## [End] Delete Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteWorkoutProgram.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteWorkoutProgram.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteWorkoutProgram.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.deleteWorkoutProgram.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.auth.1.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.auth.1.res.vtl index 9688da5a374..7008f002e65 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.auth.1.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.auth.1.res.vtl @@ -52,4 +52,4 @@ $util.unauthorized() $util.error("Unauthorized on ${deniedFields.keySet()}", "Unauthorized") #end $util.toJson({}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.init.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.init.1.req.vtl index ab5766fb051..dde2512aea8 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.init.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.init.1.req.vtl @@ -6,4 +6,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.req.vtl index a1bd67d21b6..648b67d7c57 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.req.vtl @@ -127,4 +127,4 @@ $util.qr($update.put("expression", "$expression")) $util.qr($UpdateItem.put("condition", $Conditions)) #end $util.toJson($UpdateItem) -## [End] Mutation Update resolver. ** \ No newline at end of file +## [End] Mutation Update resolver. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.auth.1.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.auth.1.res.vtl index 4f05c2725c3..48e15145909 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.auth.1.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.auth.1.res.vtl @@ -31,4 +31,4 @@ $util.unauthorized() $util.error("Unauthorized on ${deniedFields.keySet()}", "Unauthorized") #end $util.toJson({}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.init.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.init.1.req.vtl index ab5766fb051..dde2512aea8 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.init.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.init.1.req.vtl @@ -6,4 +6,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.req.vtl index a1bd67d21b6..648b67d7c57 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.req.vtl @@ -127,4 +127,4 @@ $util.qr($update.put("expression", "$expression")) $util.qr($UpdateItem.put("condition", $Conditions)) #end $util.toJson($UpdateItem) -## [End] Mutation Update resolver. ** \ No newline at end of file +## [End] Mutation Update resolver. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.auth.1.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.auth.1.res.vtl index 58673803f93..eaca71df93e 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.auth.1.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.auth.1.res.vtl @@ -52,4 +52,4 @@ $util.unauthorized() $util.error("Unauthorized on ${deniedFields.keySet()}", "Unauthorized") #end $util.toJson({}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.init.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.init.1.req.vtl index ab5766fb051..dde2512aea8 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.init.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.init.1.req.vtl @@ -6,4 +6,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.req.vtl index a1bd67d21b6..648b67d7c57 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.req.vtl @@ -127,4 +127,4 @@ $util.qr($update.put("expression", "$expression")) $util.qr($UpdateItem.put("condition", $Conditions)) #end $util.toJson($UpdateItem) -## [End] Mutation Update resolver. ** \ No newline at end of file +## [End] Mutation Update resolver. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getExercise.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getExercise.auth.1.req.vtl index 6cf44cb48a1..f9672a99451 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getExercise.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getExercise.auth.1.req.vtl @@ -33,4 +33,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getExercise.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getExercise.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getExercise.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getExercise.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getExercise.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getExercise.req.vtl index a8d7811a021..fd7fbfc8013 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getExercise.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getExercise.req.vtl @@ -31,4 +31,4 @@ $util.qr($GetRequest.put("query", $query)) $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) #end $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getExercise.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getExercise.res.vtl index e9ef1436bdd..92e05f99816 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getExercise.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getExercise.res.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson(null) #end -## [End] Get Response template. ** \ No newline at end of file +## [End] Get Response template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getMeal.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getMeal.auth.1.req.vtl index 6ea758ede95..5e8328df3a4 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getMeal.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getMeal.auth.1.req.vtl @@ -12,4 +12,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getMeal.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getMeal.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getMeal.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getMeal.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getMeal.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getMeal.req.vtl index a8d7811a021..fd7fbfc8013 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getMeal.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getMeal.req.vtl @@ -31,4 +31,4 @@ $util.qr($GetRequest.put("query", $query)) $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) #end $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getMeal.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getMeal.res.vtl index e9ef1436bdd..92e05f99816 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getMeal.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getMeal.res.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson(null) #end -## [End] Get Response template. ** \ No newline at end of file +## [End] Get Response template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getWorkoutProgram.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getWorkoutProgram.auth.1.req.vtl index 6cf44cb48a1..f9672a99451 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getWorkoutProgram.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getWorkoutProgram.auth.1.req.vtl @@ -33,4 +33,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getWorkoutProgram.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getWorkoutProgram.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getWorkoutProgram.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getWorkoutProgram.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getWorkoutProgram.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getWorkoutProgram.req.vtl index a8d7811a021..fd7fbfc8013 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getWorkoutProgram.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getWorkoutProgram.req.vtl @@ -31,4 +31,4 @@ $util.qr($GetRequest.put("query", $query)) $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) #end $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getWorkoutProgram.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getWorkoutProgram.res.vtl index e9ef1436bdd..92e05f99816 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getWorkoutProgram.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.getWorkoutProgram.res.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson(null) #end -## [End] Get Response template. ** \ No newline at end of file +## [End] Get Response template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listExercises.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listExercises.auth.1.req.vtl index 6cf44cb48a1..f9672a99451 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listExercises.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listExercises.auth.1.req.vtl @@ -33,4 +33,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listExercises.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listExercises.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listExercises.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listExercises.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listExercises.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listExercises.req.vtl index 014213710e8..ef976126825 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listExercises.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listExercises.req.vtl @@ -47,4 +47,4 @@ #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) #end $util.toJson($ListRequest) -## [End] List Request. ** \ No newline at end of file +## [End] List Request. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listExercises.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listExercises.res.vtl index ee8b6670cbc..aab9983954e 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listExercises.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listExercises.res.vtl @@ -4,4 +4,4 @@ #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listMeals.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listMeals.auth.1.req.vtl index 6ea758ede95..5e8328df3a4 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listMeals.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listMeals.auth.1.req.vtl @@ -12,4 +12,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listMeals.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listMeals.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listMeals.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listMeals.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listMeals.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listMeals.req.vtl index 014213710e8..ef976126825 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listMeals.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listMeals.req.vtl @@ -47,4 +47,4 @@ #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) #end $util.toJson($ListRequest) -## [End] List Request. ** \ No newline at end of file +## [End] List Request. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listMeals.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listMeals.res.vtl index ee8b6670cbc..aab9983954e 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listMeals.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listMeals.res.vtl @@ -4,4 +4,4 @@ #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listWorkoutPrograms.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listWorkoutPrograms.auth.1.req.vtl index 6cf44cb48a1..f9672a99451 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listWorkoutPrograms.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listWorkoutPrograms.auth.1.req.vtl @@ -33,4 +33,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listWorkoutPrograms.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listWorkoutPrograms.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listWorkoutPrograms.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listWorkoutPrograms.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listWorkoutPrograms.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listWorkoutPrograms.req.vtl index 014213710e8..ef976126825 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listWorkoutPrograms.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listWorkoutPrograms.req.vtl @@ -47,4 +47,4 @@ #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) #end $util.toJson($ListRequest) -## [End] List Request. ** \ No newline at end of file +## [End] List Request. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listWorkoutPrograms.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listWorkoutPrograms.res.vtl index ee8b6670cbc..aab9983954e 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listWorkoutPrograms.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Query.listWorkoutPrograms.res.vtl @@ -4,4 +4,4 @@ #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateExercise.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateExercise.auth.1.req.vtl index 6d8411e0b7b..fec2fc55a1d 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateExercise.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateExercise.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateExercise.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateExercise.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateExercise.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateExercise.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateExercise.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateExercise.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateExercise.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateExercise.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateExercise.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateExercise.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateExercise.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateExercise.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateMeal.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateMeal.auth.1.req.vtl index dbc01a41cf3..0ff5d9f7ef1 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateMeal.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateMeal.auth.1.req.vtl @@ -35,4 +35,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateMeal.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateMeal.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateMeal.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateMeal.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateMeal.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateMeal.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateMeal.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateMeal.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateMeal.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateMeal.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateMeal.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateMeal.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateWorkoutProgram.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateWorkoutProgram.auth.1.req.vtl index 6d8411e0b7b..fec2fc55a1d 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateWorkoutProgram.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateWorkoutProgram.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateWorkoutProgram.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateWorkoutProgram.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateWorkoutProgram.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateWorkoutProgram.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateWorkoutProgram.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateWorkoutProgram.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateWorkoutProgram.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateWorkoutProgram.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateWorkoutProgram.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateWorkoutProgram.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateWorkoutProgram.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onCreateWorkoutProgram.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteExercise.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteExercise.auth.1.req.vtl index 6d8411e0b7b..fec2fc55a1d 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteExercise.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteExercise.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteExercise.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteExercise.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteExercise.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteExercise.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteExercise.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteExercise.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteExercise.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteExercise.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteExercise.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteExercise.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteExercise.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteExercise.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteMeal.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteMeal.auth.1.req.vtl index dbc01a41cf3..0ff5d9f7ef1 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteMeal.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteMeal.auth.1.req.vtl @@ -35,4 +35,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteMeal.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteMeal.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteMeal.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteMeal.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteMeal.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteMeal.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteMeal.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteMeal.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteMeal.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteMeal.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteMeal.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteMeal.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteWorkoutProgram.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteWorkoutProgram.auth.1.req.vtl index 6d8411e0b7b..fec2fc55a1d 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteWorkoutProgram.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteWorkoutProgram.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteWorkoutProgram.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteWorkoutProgram.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteWorkoutProgram.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteWorkoutProgram.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteWorkoutProgram.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteWorkoutProgram.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteWorkoutProgram.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteWorkoutProgram.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteWorkoutProgram.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteWorkoutProgram.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteWorkoutProgram.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteWorkoutProgram.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateExercise.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateExercise.auth.1.req.vtl index 6d8411e0b7b..fec2fc55a1d 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateExercise.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateExercise.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateExercise.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateExercise.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateExercise.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateExercise.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateExercise.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateExercise.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateExercise.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateExercise.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateExercise.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateExercise.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateExercise.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateExercise.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateMeal.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateMeal.auth.1.req.vtl index dbc01a41cf3..0ff5d9f7ef1 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateMeal.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateMeal.auth.1.req.vtl @@ -35,4 +35,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateMeal.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateMeal.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateMeal.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateMeal.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateMeal.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateMeal.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateMeal.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateMeal.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateMeal.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateMeal.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateMeal.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateMeal.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateWorkoutProgram.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateWorkoutProgram.auth.1.req.vtl index 6d8411e0b7b..fec2fc55a1d 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateWorkoutProgram.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateWorkoutProgram.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateWorkoutProgram.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateWorkoutProgram.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateWorkoutProgram.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateWorkoutProgram.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateWorkoutProgram.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateWorkoutProgram.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateWorkoutProgram.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateWorkoutProgram.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateWorkoutProgram.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateWorkoutProgram.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateWorkoutProgram.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateWorkoutProgram.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/WorkoutProgram.exercises.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/WorkoutProgram.exercises.auth.1.req.vtl index efb7fd5ccf6..c3c78ec1d2e 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/WorkoutProgram.exercises.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/WorkoutProgram.exercises.auth.1.req.vtl @@ -37,4 +37,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/WorkoutProgram.exercises.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/WorkoutProgram.exercises.req.vtl index aa11e2a22b2..fcb971beb9e 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/WorkoutProgram.exercises.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/WorkoutProgram.exercises.req.vtl @@ -69,4 +69,4 @@ null #end, "index": "gsi-WorkoutProgram.exercises" } -#end \ No newline at end of file +#end diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/WorkoutProgram.exercises.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/WorkoutProgram.exercises.res.vtl index 922c4ce53d0..ae420dbf03f 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/WorkoutProgram.exercises.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/WorkoutProgram.exercises.res.vtl @@ -10,4 +10,4 @@ $util.error($ctx.error.message, $ctx.error.type) #end #end $util.toJson($result) -#end \ No newline at end of file +#end diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/WorkoutProgram.owner.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/WorkoutProgram.owner.req.vtl index 1aae0961a3e..a9c5efa2bb8 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/WorkoutProgram.owner.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/WorkoutProgram.owner.req.vtl @@ -1 +1 @@ -$util.toJson({"version":"2018-05-29","payload":{}}) \ No newline at end of file +$util.toJson({"version":"2018-05-29","payload":{}}) diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/WorkoutProgram.owner.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/WorkoutProgram.owner.res.vtl index c6de7a4f2cf..0552e7005c8 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/WorkoutProgram.owner.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/resolvers/WorkoutProgram.owner.res.vtl @@ -17,4 +17,4 @@ $util.qr($ctx.source.put("owner", $ownerEntitiesLast)) $util.toJson($ctx.source.owner) #end -## [End] Parse owner field auth for Get. ** \ No newline at end of file +## [End] Parse owner field auth for Get. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/ConnectionStack.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/ConnectionStack.json index 37b698b468d..c9c8f2f3b14 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/ConnectionStack.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/ConnectionStack.json @@ -111,7 +111,7 @@ { "Ref": "referencetotransformerrootstackExerciseNestedStackExerciseNestedStackResourceA190CF68OutputstransformerrootstackExerciseExerciseTable2F3E478ERef" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -140,4 +140,4 @@ "Type": "String" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/CustomResources.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/CustomResources.json index 016991278d0..5fe357d6096 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/CustomResources.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/CustomResources.json @@ -58,4 +58,4 @@ "Value": "" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/Exercise.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/Exercise.json index cc800da40df..481bbc26c62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/Exercise.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/Exercise.json @@ -503,7 +503,7 @@ { "Ref": "ExerciseTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -598,7 +598,7 @@ { "Ref": "ExerciseTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -729,7 +729,7 @@ { "Ref": "ExerciseTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -881,7 +881,7 @@ { "Ref": "ExerciseTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -1030,7 +1030,7 @@ { "Ref": "ExerciseTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -1067,7 +1067,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -1104,7 +1104,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -1141,7 +1141,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -1172,7 +1172,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -1259,4 +1259,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/Meal.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/Meal.json index ee4ac331787..a6a7e50e1eb 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/Meal.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/Meal.json @@ -482,7 +482,7 @@ { "Ref": "MealTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -580,7 +580,7 @@ { "Ref": "MealTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -711,7 +711,7 @@ { "Ref": "MealTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -863,7 +863,7 @@ { "Ref": "MealTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -1012,7 +1012,7 @@ { "Ref": "MealTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -1082,7 +1082,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -1122,7 +1122,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -1162,7 +1162,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -1236,4 +1236,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/WorkoutProgram.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/WorkoutProgram.json index 8d494295f5d..19decceb16c 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/WorkoutProgram.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/build/stacks/WorkoutProgram.json @@ -503,7 +503,7 @@ { "Ref": "WorkoutProgramTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -604,7 +604,7 @@ { "Ref": "WorkoutProgramTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -771,7 +771,7 @@ { "Ref": "WorkoutProgramTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -959,7 +959,7 @@ { "Ref": "WorkoutProgramTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -1111,7 +1111,7 @@ { "Ref": "WorkoutProgramTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -1232,7 +1232,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -1278,7 +1278,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -1324,7 +1324,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -1403,7 +1403,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -1533,4 +1533,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/cli-inputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/cli-inputs.json index 848a1768ba9..2ca2cd14494 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/cli-inputs.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/cli-inputs.json @@ -16,4 +16,4 @@ } ] } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/parameters.json index 72d6b16ab57..d3f4b113c17 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/parameters.json @@ -8,4 +8,4 @@ "Outputs.UserPoolId" ] } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/resolvers/README.md b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/resolvers/README.md index 89e564c5b31..1634d295144 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/resolvers/README.md +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/resolvers/README.md @@ -1,2 +1,2 @@ Any resolvers that you add in this directory will override the ones automatically generated by Amplify CLI and will be directly copied to the cloud. -For more information, visit [https://docs.amplify.aws/cli/graphql-transformer/resolvers](https://docs.amplify.aws/cli/graphql-transformer/resolvers) \ No newline at end of file +For more information, visit [https://docs.amplify.aws/cli/graphql-transformer/resolvers](https://docs.amplify.aws/cli/graphql-transformer/resolvers) diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/transform.conf.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/transform.conf.json index 98e1e19f038..d0421b1df09 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/transform.conf.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/fitnesstracker/transform.conf.json @@ -1,4 +1,4 @@ { "Version": 5, "ElasticsearchWarning": true -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/nutritionapi/build/nutritionapi-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/nutritionapi/build/nutritionapi-cloudformation-template.json index ba07311cb22..96dfbff48ea 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/nutritionapi/build/nutritionapi-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/nutritionapi/build/nutritionapi-cloudformation-template.json @@ -666,7 +666,7 @@ "Name": "nutritionapi" } }, - "nutritionapiDefault4XXResponsef55128fc": { + "nutritionapiDefault4XXResponse18f0d0eb": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -681,7 +681,7 @@ } } }, - "nutritionapiDefault5XXResponsef55128fc": { + "nutritionapiDefault5XXResponse18f0d0eb": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -696,7 +696,7 @@ } } }, - "DeploymentAPIGWnutritionapi5caf0abc": { + "DeploymentAPIGWnutritionapib144b434": { "Type": "AWS::ApiGateway::Deployment", "Properties": { "Description": "The Development stage deployment of your API.", @@ -714,8 +714,8 @@ } }, "DependsOn": [ - "nutritionapiDefault4XXResponsef55128fc", - "nutritionapiDefault5XXResponsef55128fc" + "nutritionapiDefault4XXResponse18f0d0eb", + "nutritionapiDefault5XXResponse18f0d0eb" ] } }, @@ -769,4 +769,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/nutritionapi/build/parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/nutritionapi/build/parameters.json index 9e26dfeeb6e..0967ef424bc 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/nutritionapi/build/parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/nutritionapi/build/parameters.json @@ -1 +1 @@ -{} \ No newline at end of file +{} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/nutritionapi/cli-inputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/nutritionapi/cli-inputs.json index 514e02664a9..7850952abd0 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/nutritionapi/cli-inputs.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/api/nutritionapi/cli-inputs.json @@ -23,4 +23,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker33f5545533f55455/build/auth-trigger-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker33f5545533f55455/build/auth-trigger-cloudformation-template.json index 3d97c0ff654..39a2148fc05 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker33f5545533f55455/build/auth-trigger-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker33f5545533f55455/build/auth-trigger-cloudformation-template.json @@ -143,7 +143,7 @@ } } ], - "nonce": "ce3e930d-07f8-4cb9-a927-2ce7de23494f" + "nonce": "9edcf916-bda1-43d2-a7b5-e1f7ac4273f8" }, "DependsOn": [ "authTriggerFn7FCFA449", @@ -154,4 +154,4 @@ "DeletionPolicy": "Delete" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker33f5545533f55455/build/fitnesstracker33f5545533f55455-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker33f5545533f55455/build/fitnesstracker33f5545533f55455-cloudformation-template.json index f5ed153a8fe..e52f2be13ec 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker33f5545533f55455/build/fitnesstracker33f5545533f55455-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker33f5545533f55455/build/fitnesstracker33f5545533f55455-cloudformation-template.json @@ -477,4 +477,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker33f5545533f55455/build/parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker33f5545533f55455/build/parameters.json index 41d861ce59c..cd8f1d2a1b4 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker33f5545533f55455/build/parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker33f5545533f55455/build/parameters.json @@ -74,4 +74,4 @@ "authTriggerConnections": [ "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker33f5545533f55455PreSignup\"}" ] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker33f5545533f55455/cli-inputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker33f5545533f55455/cli-inputs.json index f8ecf9a776f..0cfd5521dcc 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker33f5545533f55455/cli-inputs.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/fitnesstracker33f5545533f55455/cli-inputs.json @@ -53,4 +53,4 @@ "usernameCaseSensitive": false, "useEnabledMfas": true } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/userPoolGroups/build/parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/userPoolGroups/build/parameters.json index 48115bd5cd6..2221b374f62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/userPoolGroups/build/parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/userPoolGroups/build/parameters.json @@ -11,4 +11,4 @@ "Arn" ] } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json index e34b9d7bd14..3d1a8a6bb6f 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json @@ -106,4 +106,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/userPoolGroups/user-pool-group-precedence.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/userPoolGroups/user-pool-group-precedence.json index ec20cf4296d..b92c99cb4d0 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/userPoolGroups/user-pool-group-precedence.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/userPoolGroups/user-pool-group-precedence.json @@ -3,4 +3,4 @@ "groupName": "Admin", "precedence": 1 } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/adminapi/build/adminapi-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/adminapi/build/adminapi-cloudformation-template.json index 63a8fcdb155..640df24a5f9 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/adminapi/build/adminapi-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/adminapi/build/adminapi-cloudformation-template.json @@ -426,7 +426,7 @@ "Name": "adminapi" } }, - "adminapiDefault4XXResponse0e27c647": { + "adminapiDefault4XXResponse9abfcb58": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -441,7 +441,7 @@ } } }, - "adminapiDefault5XXResponse0e27c647": { + "adminapiDefault5XXResponse9abfcb58": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -456,7 +456,7 @@ } } }, - "DeploymentAPIGWadminapiad7711e6": { + "DeploymentAPIGWadminapi7459b549": { "Type": "AWS::ApiGateway::Deployment", "Properties": { "Description": "The Development stage deployment of your API.", @@ -474,8 +474,8 @@ } }, "DependsOn": [ - "adminapiDefault4XXResponse0e27c647", - "adminapiDefault5XXResponse0e27c647" + "adminapiDefault4XXResponse9abfcb58", + "adminapiDefault5XXResponse9abfcb58" ] } }, @@ -529,4 +529,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/fitnesstracker/build/cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/fitnesstracker/build/cloudformation-template.json index cd07bb81a76..5824262e76d 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/fitnesstracker/build/cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/fitnesstracker/build/cloudformation-template.json @@ -129,7 +129,7 @@ ] }, "Description": "graphql", - "Expires": 1774926196 + "Expires": 1776829824 } }, "GraphQLAPINONEDS95A13CF0": { @@ -606,4 +606,4 @@ } }, "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/nutritionapi/build/nutritionapi-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/nutritionapi/build/nutritionapi-cloudformation-template.json index ba07311cb22..96dfbff48ea 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/nutritionapi/build/nutritionapi-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/nutritionapi/build/nutritionapi-cloudformation-template.json @@ -666,7 +666,7 @@ "Name": "nutritionapi" } }, - "nutritionapiDefault4XXResponsef55128fc": { + "nutritionapiDefault4XXResponse18f0d0eb": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -681,7 +681,7 @@ } } }, - "nutritionapiDefault5XXResponsef55128fc": { + "nutritionapiDefault5XXResponse18f0d0eb": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -696,7 +696,7 @@ } } }, - "DeploymentAPIGWnutritionapi5caf0abc": { + "DeploymentAPIGWnutritionapib144b434": { "Type": "AWS::ApiGateway::Deployment", "Properties": { "Description": "The Development stage deployment of your API.", @@ -714,8 +714,8 @@ } }, "DependsOn": [ - "nutritionapiDefault4XXResponsef55128fc", - "nutritionapiDefault5XXResponsef55128fc" + "nutritionapiDefault4XXResponse18f0d0eb", + "nutritionapiDefault5XXResponse18f0d0eb" ] } }, @@ -769,4 +769,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/fitnesstracker33f5545533f55455/build/fitnesstracker33f5545533f55455-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/fitnesstracker33f5545533f55455/build/fitnesstracker33f5545533f55455-cloudformation-template.json index f5ed153a8fe..e52f2be13ec 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/fitnesstracker33f5545533f55455/build/fitnesstracker33f5545533f55455-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/fitnesstracker33f5545533f55455/build/fitnesstracker33f5545533f55455-cloudformation-template.json @@ -477,4 +477,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json index e34b9d7bd14..3d1a8a6bb6f 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json @@ -106,4 +106,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json index 3874b454557..e224f695608 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json @@ -202,7 +202,7 @@ "APIGatewayAuthStack": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", "Parameters": { "authRoleName": { "Ref": "AuthRoleName" @@ -210,7 +210,7 @@ "unauthRoleName": { "Ref": "UnauthRoleName" }, - "env": "main", + "env": "x", "nutritionapi": { "Fn::GetAtt": [ "apinutritionapi", @@ -229,9 +229,9 @@ "AuthTriggerCustomLambdaStack": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json", "Parameters": { - "env": "main", + "env": "x", "userpoolId": { "Fn::GetAtt": [ "authfitnesstracker33f5545533f55455", @@ -272,7 +272,7 @@ "authuserPoolGroups": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", "Parameters": { "AuthRoleArn": { "Fn::GetAtt": [ @@ -310,14 +310,14 @@ "Outputs.IdentityPoolId" ] }, - "env": "main" + "env": "x" } } }, "authfitnesstracker33f5545533f55455": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/auth/fitnesstracker33f5545533f55455-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/auth/fitnesstracker33f5545533f55455-cloudformation-template.json", "Parameters": { "identityPoolName": "fitnesstracker33f55455_identitypool_33f55455", "allowUnauthenticatedIdentities": false, @@ -370,62 +370,62 @@ "dependsOn": "[object Object]", "permissions": "", "authTriggerConnections": "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker33f5545533f55455PreSignup\"}", - "env": "main" + "env": "x" } } }, "functionfitnesstracker33f5545533f55455PreSignup": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/function/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/function/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json", "Parameters": { "modules": "email-filter-allowlist", "resourceName": "fitnesstracker33f5545533f55455PreSignup", "DOMAINALLOWLIST": "amazon.com", - "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", + "deploymentBucketName": "amplify-fitnesstracker-x-x-deployment", "s3Key": "amplify-builds/fitnesstracker33f5545533f55455PreSignup-68374859444c45627749-build.zip", - "env": "main" + "env": "x" } } }, "functionlognutrition": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/function/lognutrition-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/function/lognutrition-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", - "s3Key": "amplify-builds/lognutrition-554b5263566866516c6c-build.zip", + "deploymentBucketName": "amplify-fitnesstracker-x-x-deployment", + "s3Key": "amplify-builds/lognutrition-4d67766f675761365161-build.zip", "apifitnesstrackerGraphQLAPIIdOutput": { "Fn::GetAtt": [ "apifitnesstracker", "Outputs.GraphQLAPIIdOutput" ] }, - "env": "main" + "env": "x" } } }, "functionadmin": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/function/admin-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/function/admin-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", - "s3Key": "amplify-builds/admin-7934694b6d366c486d32-build.zip", + "deploymentBucketName": "amplify-fitnesstracker-x-x-deployment", + "s3Key": "amplify-builds/admin-2f397a7163426d447a6b-build.zip", "authfitnesstracker33f5545533f55455UserPoolId": { "Fn::GetAtt": [ "authfitnesstracker33f5545533f55455", "Outputs.UserPoolId" ] }, - "env": "main" + "env": "x" } } }, "apifitnesstracker": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", "Parameters": { "AppSyncApiName": "fitnesstracker", "DynamoDBBillingMode": "PAY_PER_REQUEST", @@ -436,16 +436,16 @@ "Outputs.UserPoolId" ] }, - "S3DeploymentBucket": "amplify-fitnesstracker-main-a0537-deployment", + "S3DeploymentBucket": "amplify-fitnesstracker-x-x-deployment", "S3DeploymentRootKey": "amplify-appsync-files/67310f5f0a68cc163f9cc58da56e1409a2c21b1d", - "env": "main" + "env": "x" } } }, "apinutritionapi": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/nutritionapi-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/api/nutritionapi-cloudformation-template.json", "Parameters": { "functionlognutritionName": { "Fn::GetAtt": [ @@ -471,14 +471,14 @@ "Outputs.AdminGroupRole" ] }, - "env": "main" + "env": "x" } } }, "apiadminapi": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/adminapi-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/api/adminapi-cloudformation-template.json", "Parameters": { "functionadminName": { "Fn::GetAtt": [ @@ -504,7 +504,7 @@ "Outputs.AdminGroupRole" ] }, - "env": "main" + "env": "x" } } }, @@ -712,4 +712,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/admin/admin-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/admin/admin-cloudformation-template.json index 57322afb5e3..bb77cf8cd5c 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/admin/admin-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/admin/admin-cloudformation-template.json @@ -265,4 +265,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/fitnesstracker33f5545533f55455PreSignup/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/fitnesstracker33f5545533f55455PreSignup/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json index e53fff724cb..2c017bb1df9 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/fitnesstracker33f5545533f55455PreSignup/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/fitnesstracker33f5545533f55455PreSignup/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json @@ -239,4 +239,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/lognutrition/lognutrition-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/lognutrition/lognutrition-cloudformation-template.json index 34e97f53ec9..3d017b0693f 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/lognutrition/lognutrition-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/lognutrition/lognutrition-cloudformation-template.json @@ -317,4 +317,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json index 3874b454557..e224f695608 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json @@ -202,7 +202,7 @@ "APIGatewayAuthStack": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", "Parameters": { "authRoleName": { "Ref": "AuthRoleName" @@ -210,7 +210,7 @@ "unauthRoleName": { "Ref": "UnauthRoleName" }, - "env": "main", + "env": "x", "nutritionapi": { "Fn::GetAtt": [ "apinutritionapi", @@ -229,9 +229,9 @@ "AuthTriggerCustomLambdaStack": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json", "Parameters": { - "env": "main", + "env": "x", "userpoolId": { "Fn::GetAtt": [ "authfitnesstracker33f5545533f55455", @@ -272,7 +272,7 @@ "authuserPoolGroups": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", "Parameters": { "AuthRoleArn": { "Fn::GetAtt": [ @@ -310,14 +310,14 @@ "Outputs.IdentityPoolId" ] }, - "env": "main" + "env": "x" } } }, "authfitnesstracker33f5545533f55455": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/auth/fitnesstracker33f5545533f55455-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/auth/fitnesstracker33f5545533f55455-cloudformation-template.json", "Parameters": { "identityPoolName": "fitnesstracker33f55455_identitypool_33f55455", "allowUnauthenticatedIdentities": false, @@ -370,62 +370,62 @@ "dependsOn": "[object Object]", "permissions": "", "authTriggerConnections": "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker33f5545533f55455PreSignup\"}", - "env": "main" + "env": "x" } } }, "functionfitnesstracker33f5545533f55455PreSignup": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/function/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/function/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json", "Parameters": { "modules": "email-filter-allowlist", "resourceName": "fitnesstracker33f5545533f55455PreSignup", "DOMAINALLOWLIST": "amazon.com", - "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", + "deploymentBucketName": "amplify-fitnesstracker-x-x-deployment", "s3Key": "amplify-builds/fitnesstracker33f5545533f55455PreSignup-68374859444c45627749-build.zip", - "env": "main" + "env": "x" } } }, "functionlognutrition": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/function/lognutrition-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/function/lognutrition-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", - "s3Key": "amplify-builds/lognutrition-554b5263566866516c6c-build.zip", + "deploymentBucketName": "amplify-fitnesstracker-x-x-deployment", + "s3Key": "amplify-builds/lognutrition-4d67766f675761365161-build.zip", "apifitnesstrackerGraphQLAPIIdOutput": { "Fn::GetAtt": [ "apifitnesstracker", "Outputs.GraphQLAPIIdOutput" ] }, - "env": "main" + "env": "x" } } }, "functionadmin": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/function/admin-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/function/admin-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", - "s3Key": "amplify-builds/admin-7934694b6d366c486d32-build.zip", + "deploymentBucketName": "amplify-fitnesstracker-x-x-deployment", + "s3Key": "amplify-builds/admin-2f397a7163426d447a6b-build.zip", "authfitnesstracker33f5545533f55455UserPoolId": { "Fn::GetAtt": [ "authfitnesstracker33f5545533f55455", "Outputs.UserPoolId" ] }, - "env": "main" + "env": "x" } } }, "apifitnesstracker": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", "Parameters": { "AppSyncApiName": "fitnesstracker", "DynamoDBBillingMode": "PAY_PER_REQUEST", @@ -436,16 +436,16 @@ "Outputs.UserPoolId" ] }, - "S3DeploymentBucket": "amplify-fitnesstracker-main-a0537-deployment", + "S3DeploymentBucket": "amplify-fitnesstracker-x-x-deployment", "S3DeploymentRootKey": "amplify-appsync-files/67310f5f0a68cc163f9cc58da56e1409a2c21b1d", - "env": "main" + "env": "x" } } }, "apinutritionapi": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/nutritionapi-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/api/nutritionapi-cloudformation-template.json", "Parameters": { "functionlognutritionName": { "Fn::GetAtt": [ @@ -471,14 +471,14 @@ "Outputs.AdminGroupRole" ] }, - "env": "main" + "env": "x" } } }, "apiadminapi": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/adminapi-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/api/adminapi-cloudformation-template.json", "Parameters": { "functionadminName": { "Fn::GetAtt": [ @@ -504,7 +504,7 @@ "Outputs.AdminGroupRole" ] }, - "env": "main" + "env": "x" } } }, @@ -712,4 +712,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json index d15b0adea45..d1ef8419fca 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json @@ -235,4 +235,4 @@ ] } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/admin/admin-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/admin/admin-cloudformation-template.json index 57322afb5e3..bb77cf8cd5c 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/admin/admin-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/admin/admin-cloudformation-template.json @@ -265,4 +265,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/admin/amplify.state b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/admin/amplify.state index ba4128da404..02da2024d5c 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/admin/amplify.state +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/admin/amplify.state @@ -6,4 +6,4 @@ "scripts": { "build": "npm install --no-bin-links --production" } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/admin/custom-policies.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/admin/custom-policies.json index 528c94f2f26..1f21c530082 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/admin/custom-policies.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/admin/custom-policies.json @@ -3,4 +3,4 @@ "Action": [], "Resource": [] } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/admin/function-parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/admin/function-parameters.json index f87ac79fa6f..2539935d173 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/admin/function-parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/admin/function-parameters.json @@ -7,4 +7,4 @@ } }, "lambdaLayers": [] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/admin/parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/admin/parameters.json index 9e26dfeeb6e..0967ef424bc 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/admin/parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/admin/parameters.json @@ -1 +1 @@ -{} \ No newline at end of file +{} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker33f5545533f55455PreSignup/amplify.state b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker33f5545533f55455PreSignup/amplify.state index 0c3efe04706..ab8a6cc8046 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker33f5545533f55455PreSignup/amplify.state +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker33f5545533f55455PreSignup/amplify.state @@ -3,4 +3,4 @@ "functionRuntime": "nodejs", "useLegacyBuild": true, "defaultEditorFile": "src/index.js" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker33f5545533f55455PreSignup/custom-policies.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker33f5545533f55455PreSignup/custom-policies.json index 528c94f2f26..1f21c530082 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker33f5545533f55455PreSignup/custom-policies.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker33f5545533f55455PreSignup/custom-policies.json @@ -3,4 +3,4 @@ "Action": [], "Resource": [] } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker33f5545533f55455PreSignup/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker33f5545533f55455PreSignup/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json index e53fff724cb..2c017bb1df9 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker33f5545533f55455PreSignup/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker33f5545533f55455PreSignup/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json @@ -239,4 +239,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker33f5545533f55455PreSignup/function-parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker33f5545533f55455PreSignup/function-parameters.json index ddc07525de2..0bc93b83030 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker33f5545533f55455PreSignup/function-parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker33f5545533f55455PreSignup/function-parameters.json @@ -13,4 +13,4 @@ "triggerEventPath": "PreSignup.event.json", "roleName": "fitnesstracker33f5545533f55455PreSignup", "skipEdit": true -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker33f5545533f55455PreSignup/parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker33f5545533f55455PreSignup/parameters.json index 020628a583f..67c30da7a0a 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker33f5545533f55455PreSignup/parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/fitnesstracker33f5545533f55455PreSignup/parameters.json @@ -1,4 +1,4 @@ { "modules": "email-filter-allowlist", "resourceName": "fitnesstracker33f5545533f55455PreSignup" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lognutrition/amplify.state b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lognutrition/amplify.state index ba4128da404..02da2024d5c 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lognutrition/amplify.state +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lognutrition/amplify.state @@ -6,4 +6,4 @@ "scripts": { "build": "npm install --no-bin-links --production" } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lognutrition/custom-policies.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lognutrition/custom-policies.json index 528c94f2f26..1f21c530082 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lognutrition/custom-policies.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lognutrition/custom-policies.json @@ -3,4 +3,4 @@ "Action": [], "Resource": [] } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lognutrition/function-parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lognutrition/function-parameters.json index 4846242bcad..cb4cb83ae81 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lognutrition/function-parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lognutrition/function-parameters.json @@ -10,4 +10,4 @@ } }, "lambdaLayers": [] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lognutrition/lognutrition-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lognutrition/lognutrition-cloudformation-template.json index 34e97f53ec9..3d017b0693f 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lognutrition/lognutrition-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lognutrition/lognutrition-cloudformation-template.json @@ -317,4 +317,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lognutrition/parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lognutrition/parameters.json index 9e26dfeeb6e..0967ef424bc 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lognutrition/parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lognutrition/parameters.json @@ -1 +1 @@ -{} \ No newline at end of file +{} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/tags.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/tags.json index b9321d71b83..71f6abe11a6 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/tags.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/#current-cloud-backend/tags.json @@ -7,4 +7,4 @@ "Key": "user:Application", "Value": "{project-name}" } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/.config/project-config.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/.config/project-config.json index ca35ab208e8..2988a9ef6c1 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/.config/project-config.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/.config/project-config.json @@ -8,11 +8,11 @@ "config": { "SourceDir": "src", "DistributionDir": "dist", - "BuildCommand": "npm run-script build", + "BuildCommand": "npm run build", "StartCommand": "npm run-script start" } }, "providers": [ "awscloudformation" ] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/amplify-meta.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/amplify-meta.json index 8334327a376..524ef0450ee 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/amplify-meta.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/amplify-meta.json @@ -1,17 +1,17 @@ { "providers": { "awscloudformation": { - "AuthRoleName": "amplify-fitnesstracker-main-a0537-authRole", - "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-unauthRole", - "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-authRole", + "AuthRoleName": "amplify-fitnesstracker-x-x-authRole", + "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-x-x-unauthRole", + "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-x-x-authRole", "Region": "us-east-1", - "DeploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", - "UnauthRoleName": "amplify-fitnesstracker-main-a0537-unauthRole", - "StackName": "amplify-fitnesstracker-main-a0537", - "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-main-a0537/1749a530-272d-11f1-a465-0e5f0b5f7853", + "DeploymentBucketName": "amplify-fitnesstracker-x-x-deployment", + "UnauthRoleName": "amplify-fitnesstracker-x-x-unauthRole", + "StackName": "amplify-fitnesstracker-x-x", + "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-x-x/05c223c0-387e-11f1-a0a5-0affda7b6827", "AmplifyAppId": "fitnesstracker", - "APIGatewayAuthURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", - "AuthTriggerTemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json" + "APIGatewayAuthURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", + "AuthTriggerTemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json" } }, "auth": { @@ -30,13 +30,13 @@ ] } ], - "lastPushTimeStamp": "2026-03-24T03:10:58.631Z", + "lastPushTimeStamp": "2026-04-15T03:56:52.835Z", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", "logicalId": "authuserPoolGroups" }, "output": { - "AdminGroupRole": "arn:aws:iam::123456789012:role/us-east-1_iguxCIcMS-AdminGroupRole" + "AdminGroupRole": "arn:aws:iam::123456789012:role/us-east-1_Xm7264Or1-AdminGroupRole" }, "lastPushDirHash": "5G4uAlMxN8rsFD1jyeLTya9ahFM=" }, @@ -74,17 +74,17 @@ ] }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/auth/fitnesstracker33f5545533f55455-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/auth/fitnesstracker33f5545533f55455-cloudformation-template.json", "logicalId": "authfitnesstracker33f5545533f55455" }, - "lastPushTimeStamp": "2026-03-24T03:10:58.631Z", + "lastPushTimeStamp": "2026-04-15T03:56:52.835Z", "output": { - "UserPoolId": "us-east-1_iguxCIcMS", - "AppClientIDWeb": "29bubgvfbbqkp4k60rl7oaqd8s", - "AppClientID": "3s8jcv7nflisr91emephrr2a9s", - "IdentityPoolId": "us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022", - "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_iguxCIcMS", - "IdentityPoolName": "fitnesstracker33f55455_identitypool_33f55455__main", + "UserPoolId": "us-east-1_Xm7264Or1", + "AppClientIDWeb": "2r67bqd39lvdif3jjk3da8ok74", + "AppClientID": "763u4g2459ac3omq43p1rnh7bu", + "IdentityPoolId": "us-east-1:c525ee11-d503-434d-a20e-29d16684f0f3", + "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_Xm7264Or1", + "IdentityPoolName": "fitnesstracker33f55455_identitypool_33f55455__x", "UserPoolName": "fitnesstracker33f55455_userpool_33f55455" }, "lastPushDirHash": "0UqXAz+SYrchlHkWJtyjmhwNAyw=" @@ -95,25 +95,25 @@ "build": true, "providerPlugin": "awscloudformation", "service": "Lambda", - "lastBuildTimeStamp": "2026-03-24T03:03:03.155Z", + "lastBuildTimeStamp": "2026-04-15T03:50:12.633Z", "lastBuildType": "PROD", - "lastPackageTimeStamp": "2026-03-24T03:03:03.215Z", + "lastPackageTimeStamp": "2026-04-15T03:50:12.725Z", "distZipFilename": "fitnesstracker33f5545533f55455PreSignup-68374859444c45627749-build.zip", "s3Bucket": { - "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", + "deploymentBucketName": "amplify-fitnesstracker-x-x-deployment", "s3Key": "amplify-builds/fitnesstracker33f5545533f55455PreSignup-68374859444c45627749-build.zip" }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/function/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/function/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json", "logicalId": "functionfitnesstracker33f5545533f55455PreSignup" }, - "lastPushTimeStamp": "2026-03-24T03:10:58.631Z", + "lastPushTimeStamp": "2026-04-15T03:56:52.835Z", "output": { - "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/fitnesstracker33f5545533f55455PreSignup-main", + "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/fitnesstracker33f5545533f55455PreSignup-x", "Region": "us-east-1", - "Arn": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker33f5545533f55455PreSignup-main", - "Name": "fitnesstracker33f5545533f55455PreSignup-main", - "LambdaExecutionRole": "fitnesstracker33f5545533f55455PreSignup-main" + "Arn": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker33f5545533f55455PreSignup-x", + "Name": "fitnesstracker33f5545533f55455PreSignup-x", + "LambdaExecutionRole": "fitnesstracker33f5545533f55455PreSignup-x" }, "lastPushDirHash": "kHZgvjW478Vk1rWRqWN9hZbma+U=" }, @@ -130,27 +130,27 @@ ] } ], - "lastBuildTimeStamp": "2026-03-24T03:03:04.944Z", + "lastBuildTimeStamp": "2026-04-15T03:50:14.673Z", "lastBuildType": "PROD", - "lastPackageTimeStamp": "2026-03-24T03:03:05.883Z", - "distZipFilename": "lognutrition-554b5263566866516c6c-build.zip", + "lastPackageTimeStamp": "2026-04-15T03:50:15.648Z", + "distZipFilename": "lognutrition-4d67766f675761365161-build.zip", "s3Bucket": { - "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", - "s3Key": "amplify-builds/lognutrition-554b5263566866516c6c-build.zip" + "deploymentBucketName": "amplify-fitnesstracker-x-x-deployment", + "s3Key": "amplify-builds/lognutrition-4d67766f675761365161-build.zip" }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/function/lognutrition-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/function/lognutrition-cloudformation-template.json", "logicalId": "functionlognutrition" }, - "lastPushTimeStamp": "2026-03-24T03:10:58.631Z", + "lastPushTimeStamp": "2026-04-15T03:56:52.835Z", "output": { - "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/fitnesstrackerLambdaRole2824d4b4-main", + "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/fitnesstrackerLambdaRole2824d4b4-x", "Region": "us-east-1", - "Arn": "arn:aws:lambda:us-east-1:123456789012:function:lognutrition-main", - "Name": "lognutrition-main", - "LambdaExecutionRole": "fitnesstrackerLambdaRole2824d4b4-main" + "Arn": "arn:aws:lambda:us-east-1:123456789012:function:lognutrition-x", + "Name": "lognutrition-x", + "LambdaExecutionRole": "fitnesstrackerLambdaRole2824d4b4-x" }, - "lastPushDirHash": "KAgg7Tg7xQWrkPA+Y7AX2th1kaI=" + "lastPushDirHash": "pNY5K84SMXhTHbBmtp4HizlFtFk=" }, "admin": { "build": true, @@ -165,27 +165,27 @@ ] } ], - "lastBuildTimeStamp": "2026-03-24T03:03:08.363Z", + "lastBuildTimeStamp": "2026-04-15T03:50:18.461Z", "lastBuildType": "PROD", - "lastPackageTimeStamp": "2026-03-24T03:03:14.781Z", - "distZipFilename": "admin-7934694b6d366c486d32-build.zip", + "lastPackageTimeStamp": "2026-04-15T03:50:23.125Z", + "distZipFilename": "admin-2f397a7163426d447a6b-build.zip", "s3Bucket": { - "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", - "s3Key": "amplify-builds/admin-7934694b6d366c486d32-build.zip" + "deploymentBucketName": "amplify-fitnesstracker-x-x-deployment", + "s3Key": "amplify-builds/admin-2f397a7163426d447a6b-build.zip" }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/function/admin-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/function/admin-cloudformation-template.json", "logicalId": "functionadmin" }, - "lastPushTimeStamp": "2026-03-24T03:10:58.631Z", + "lastPushTimeStamp": "2026-04-15T03:56:52.835Z", "output": { - "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/fitnesstrackerLambdaRole4a08108a-main", + "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/fitnesstrackerLambdaRole4a08108a-x", "Region": "us-east-1", - "Arn": "arn:aws:lambda:us-east-1:123456789012:function:admin-main", - "Name": "admin-main", - "LambdaExecutionRole": "fitnesstrackerLambdaRole4a08108a-main" + "Arn": "arn:aws:lambda:us-east-1:123456789012:function:admin-x", + "Name": "admin-x", + "LambdaExecutionRole": "fitnesstrackerLambdaRole4a08108a-x" }, - "lastPushDirHash": "20iOEIOvyMwayeWUC08s9NsJkTA=" + "lastPushDirHash": "Vv581bo2tS4KT5uObXBovEQfFBA=" } }, "api": { @@ -220,15 +220,15 @@ } ] }, - "GraphQLAPIIdOutput": "jzwb5p2vcbd2ldlnlxokgjcjby", - "GraphQLAPIEndpointOutput": "https://lqftdnws2zb75jcuwdcmx23wdi.appsync-api.us-east-1.amazonaws.com/graphql", + "GraphQLAPIIdOutput": "xwgwkksjrbcoxnb64a6clvir4u", + "GraphQLAPIEndpointOutput": "https://p7b42iegyfh4zn7eo7a6k6lni4.appsync-api.us-east-1.amazonaws.com/graphql", "GraphQLAPIKeyOutput": "da2-fakeapikey00000000000000" }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", "logicalId": "apifitnesstracker" }, - "lastPushTimeStamp": "2026-03-24T03:10:58.631Z", + "lastPushTimeStamp": "2026-04-15T03:56:52.835Z", "lastPushDirHash": "RCtlX/RFS23/RTpTpKEuv4XLh08=" }, "nutritionapi": { @@ -259,14 +259,14 @@ } ], "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/nutritionapi-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/api/nutritionapi-cloudformation-template.json", "logicalId": "apinutritionapi" }, - "lastPushTimeStamp": "2026-03-24T03:10:58.631Z", + "lastPushTimeStamp": "2026-04-15T03:56:52.835Z", "output": { "ApiName": "nutritionapi", - "RootUrl": "https://hmydcaubcb.execute-api.us-east-1.amazonaws.com/main", - "ApiId": "hmydcaubcb" + "RootUrl": "https://s27d6on2x4.execute-api.us-east-1.amazonaws.com/x", + "ApiId": "s27d6on2x4" }, "lastPushDirHash": "5JwuGoxSHfV3nT5/dIukaklIOKI=" }, @@ -298,16 +298,16 @@ } ], "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/adminapi-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/api/adminapi-cloudformation-template.json", "logicalId": "apiadminapi" }, - "lastPushTimeStamp": "2026-03-24T03:10:58.631Z", + "lastPushTimeStamp": "2026-04-15T03:56:52.835Z", "output": { "ApiName": "adminapi", - "RootUrl": "https://oxq86r59h6.execute-api.us-east-1.amazonaws.com/main", - "ApiId": "oxq86r59h6" + "RootUrl": "https://wn1ifrxt6h.execute-api.us-east-1.amazonaws.com/x", + "ApiId": "wn1ifrxt6h" }, "lastPushDirHash": "SI1snudM0j/SqX5HIasSB/7nF3k=" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/APIGatewayAuthStack.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/APIGatewayAuthStack.json index 341ef5a4b69..05641bfa363 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/APIGatewayAuthStack.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/APIGatewayAuthStack.json @@ -113,4 +113,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/adminapi/build/adminapi-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/adminapi/build/adminapi-cloudformation-template.json index 63a8fcdb155..640df24a5f9 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/adminapi/build/adminapi-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/adminapi/build/adminapi-cloudformation-template.json @@ -426,7 +426,7 @@ "Name": "adminapi" } }, - "adminapiDefault4XXResponse0e27c647": { + "adminapiDefault4XXResponse9abfcb58": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -441,7 +441,7 @@ } } }, - "adminapiDefault5XXResponse0e27c647": { + "adminapiDefault5XXResponse9abfcb58": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -456,7 +456,7 @@ } } }, - "DeploymentAPIGWadminapiad7711e6": { + "DeploymentAPIGWadminapi7459b549": { "Type": "AWS::ApiGateway::Deployment", "Properties": { "Description": "The Development stage deployment of your API.", @@ -474,8 +474,8 @@ } }, "DependsOn": [ - "adminapiDefault4XXResponse0e27c647", - "adminapiDefault5XXResponse0e27c647" + "adminapiDefault4XXResponse9abfcb58", + "adminapiDefault5XXResponse9abfcb58" ] } }, @@ -529,4 +529,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/adminapi/build/parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/adminapi/build/parameters.json index 9e26dfeeb6e..0967ef424bc 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/adminapi/build/parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/adminapi/build/parameters.json @@ -1 +1 @@ -{} \ No newline at end of file +{} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/adminapi/cli-inputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/adminapi/cli-inputs.json index e5476755338..dff6040583e 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/adminapi/cli-inputs.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/adminapi/cli-inputs.json @@ -14,4 +14,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/cloudformation-template.json index cd07bb81a76..5824262e76d 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/cloudformation-template.json @@ -129,7 +129,7 @@ ] }, "Description": "graphql", - "Expires": 1774926196 + "Expires": 1776829824 } }, "GraphQLAPINONEDS95A13CF0": { @@ -606,4 +606,4 @@ } }, "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/parameters.json index 42555b61e79..cbe4a04b457 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/parameters.json @@ -8,6 +8,6 @@ "Outputs.UserPoolId" ] }, - "S3DeploymentBucket": "amplify-fitnesstracker-main-a0537-deployment", + "S3DeploymentBucket": "amplify-fitnesstracker-x-x-deployment", "S3DeploymentRootKey": "amplify-appsync-files/67310f5f0a68cc163f9cc58da56e1409a2c21b1d" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Exercise.owner.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Exercise.owner.req.vtl index 1aae0961a3e..a9c5efa2bb8 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Exercise.owner.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Exercise.owner.req.vtl @@ -1 +1 @@ -$util.toJson({"version":"2018-05-29","payload":{}}) \ No newline at end of file +$util.toJson({"version":"2018-05-29","payload":{}}) diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Exercise.owner.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Exercise.owner.res.vtl index c6de7a4f2cf..0552e7005c8 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Exercise.owner.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Exercise.owner.res.vtl @@ -17,4 +17,4 @@ $util.qr($ctx.source.put("owner", $ownerEntitiesLast)) $util.toJson($ctx.source.owner) #end -## [End] Parse owner field auth for Get. ** \ No newline at end of file +## [End] Parse owner field auth for Get. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createExercise.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createExercise.auth.1.req.vtl index bfcd6b25f4c..69b8026f025 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createExercise.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createExercise.auth.1.req.vtl @@ -49,4 +49,4 @@ $util.unauthorized() #end #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createExercise.init.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createExercise.init.1.req.vtl index df6b4cbbc5c..407b5845fc2 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createExercise.init.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createExercise.init.1.req.vtl @@ -8,4 +8,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createExercise.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createExercise.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createExercise.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createExercise.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createExercise.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createExercise.req.vtl index 999b84e8fd0..3fa23896463 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createExercise.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createExercise.req.vtl @@ -63,4 +63,4 @@ $util.qr($mergedValues.put("__typename", "Exercise")) $util.qr($PutObject.put("key", $Key)) #end $util.toJson($PutObject) -## [End] Create Request template. ** \ No newline at end of file +## [End] Create Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createExercise.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createExercise.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createExercise.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createExercise.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createMeal.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createMeal.auth.1.req.vtl index 08cba3f3ade..3f8533b77b8 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createMeal.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createMeal.auth.1.req.vtl @@ -19,4 +19,4 @@ $util.unauthorized() #end #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createMeal.init.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createMeal.init.1.req.vtl index df6b4cbbc5c..407b5845fc2 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createMeal.init.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createMeal.init.1.req.vtl @@ -8,4 +8,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createMeal.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createMeal.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createMeal.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createMeal.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createMeal.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createMeal.req.vtl index 68993c145cb..47812247f3f 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createMeal.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createMeal.req.vtl @@ -63,4 +63,4 @@ $util.qr($mergedValues.put("__typename", "Meal")) $util.qr($PutObject.put("key", $Key)) #end $util.toJson($PutObject) -## [End] Create Request template. ** \ No newline at end of file +## [End] Create Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createMeal.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createMeal.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createMeal.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createMeal.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createWorkoutProgram.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createWorkoutProgram.auth.1.req.vtl index 6b3671bf681..cb21e72be6d 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createWorkoutProgram.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createWorkoutProgram.auth.1.req.vtl @@ -49,4 +49,4 @@ $util.unauthorized() #end #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createWorkoutProgram.init.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createWorkoutProgram.init.1.req.vtl index df6b4cbbc5c..407b5845fc2 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createWorkoutProgram.init.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createWorkoutProgram.init.1.req.vtl @@ -8,4 +8,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createWorkoutProgram.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createWorkoutProgram.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createWorkoutProgram.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createWorkoutProgram.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createWorkoutProgram.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createWorkoutProgram.req.vtl index 8eb81aff9ba..50a9585af02 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createWorkoutProgram.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createWorkoutProgram.req.vtl @@ -63,4 +63,4 @@ $util.qr($mergedValues.put("__typename", "WorkoutProgram")) $util.qr($PutObject.put("key", $Key)) #end $util.toJson($PutObject) -## [End] Create Request template. ** \ No newline at end of file +## [End] Create Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createWorkoutProgram.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createWorkoutProgram.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createWorkoutProgram.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.createWorkoutProgram.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteExercise.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteExercise.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteExercise.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteExercise.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteExercise.auth.1.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteExercise.auth.1.res.vtl index d60b77ecdd7..a616f67a6c4 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteExercise.auth.1.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteExercise.auth.1.res.vtl @@ -24,4 +24,4 @@ $util.unauthorized() $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteExercise.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteExercise.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteExercise.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteExercise.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteExercise.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteExercise.req.vtl index ace459bd501..d2cb40cd15d 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteExercise.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteExercise.req.vtl @@ -55,4 +55,4 @@ $util.qr($DeleteRequest.put("key", $Key)) $util.qr($DeleteRequest.put("condition", $Conditions)) #end $util.toJson($DeleteRequest) -## [End] Delete Request template. ** \ No newline at end of file +## [End] Delete Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteExercise.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteExercise.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteExercise.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteExercise.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteMeal.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteMeal.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteMeal.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteMeal.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteMeal.auth.1.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteMeal.auth.1.res.vtl index 4303a893cb1..b8c75f73235 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteMeal.auth.1.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteMeal.auth.1.res.vtl @@ -11,4 +11,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteMeal.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteMeal.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteMeal.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteMeal.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteMeal.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteMeal.req.vtl index ace459bd501..d2cb40cd15d 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteMeal.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteMeal.req.vtl @@ -55,4 +55,4 @@ $util.qr($DeleteRequest.put("key", $Key)) $util.qr($DeleteRequest.put("condition", $Conditions)) #end $util.toJson($DeleteRequest) -## [End] Delete Request template. ** \ No newline at end of file +## [End] Delete Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteMeal.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteMeal.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteMeal.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteMeal.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteWorkoutProgram.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteWorkoutProgram.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteWorkoutProgram.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteWorkoutProgram.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteWorkoutProgram.auth.1.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteWorkoutProgram.auth.1.res.vtl index d60b77ecdd7..a616f67a6c4 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteWorkoutProgram.auth.1.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteWorkoutProgram.auth.1.res.vtl @@ -24,4 +24,4 @@ $util.unauthorized() $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteWorkoutProgram.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteWorkoutProgram.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteWorkoutProgram.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteWorkoutProgram.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteWorkoutProgram.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteWorkoutProgram.req.vtl index ace459bd501..d2cb40cd15d 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteWorkoutProgram.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteWorkoutProgram.req.vtl @@ -55,4 +55,4 @@ $util.qr($DeleteRequest.put("key", $Key)) $util.qr($DeleteRequest.put("condition", $Conditions)) #end $util.toJson($DeleteRequest) -## [End] Delete Request template. ** \ No newline at end of file +## [End] Delete Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteWorkoutProgram.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteWorkoutProgram.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteWorkoutProgram.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.deleteWorkoutProgram.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.auth.1.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.auth.1.res.vtl index 9688da5a374..7008f002e65 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.auth.1.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.auth.1.res.vtl @@ -52,4 +52,4 @@ $util.unauthorized() $util.error("Unauthorized on ${deniedFields.keySet()}", "Unauthorized") #end $util.toJson({}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.init.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.init.1.req.vtl index ab5766fb051..dde2512aea8 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.init.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.init.1.req.vtl @@ -6,4 +6,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.req.vtl index a1bd67d21b6..648b67d7c57 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.req.vtl @@ -127,4 +127,4 @@ $util.qr($update.put("expression", "$expression")) $util.qr($UpdateItem.put("condition", $Conditions)) #end $util.toJson($UpdateItem) -## [End] Mutation Update resolver. ** \ No newline at end of file +## [End] Mutation Update resolver. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateExercise.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.auth.1.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.auth.1.res.vtl index 4f05c2725c3..48e15145909 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.auth.1.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.auth.1.res.vtl @@ -31,4 +31,4 @@ $util.unauthorized() $util.error("Unauthorized on ${deniedFields.keySet()}", "Unauthorized") #end $util.toJson({}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.init.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.init.1.req.vtl index ab5766fb051..dde2512aea8 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.init.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.init.1.req.vtl @@ -6,4 +6,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.req.vtl index a1bd67d21b6..648b67d7c57 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.req.vtl @@ -127,4 +127,4 @@ $util.qr($update.put("expression", "$expression")) $util.qr($UpdateItem.put("condition", $Conditions)) #end $util.toJson($UpdateItem) -## [End] Mutation Update resolver. ** \ No newline at end of file +## [End] Mutation Update resolver. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateMeal.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.auth.1.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.auth.1.res.vtl index 58673803f93..eaca71df93e 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.auth.1.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.auth.1.res.vtl @@ -52,4 +52,4 @@ $util.unauthorized() $util.error("Unauthorized on ${deniedFields.keySet()}", "Unauthorized") #end $util.toJson({}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.init.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.init.1.req.vtl index ab5766fb051..dde2512aea8 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.init.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.init.1.req.vtl @@ -6,4 +6,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.req.vtl index a1bd67d21b6..648b67d7c57 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.req.vtl @@ -127,4 +127,4 @@ $util.qr($update.put("expression", "$expression")) $util.qr($UpdateItem.put("condition", $Conditions)) #end $util.toJson($UpdateItem) -## [End] Mutation Update resolver. ** \ No newline at end of file +## [End] Mutation Update resolver. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Mutation.updateWorkoutProgram.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getExercise.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getExercise.auth.1.req.vtl index 6cf44cb48a1..f9672a99451 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getExercise.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getExercise.auth.1.req.vtl @@ -33,4 +33,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getExercise.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getExercise.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getExercise.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getExercise.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getExercise.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getExercise.req.vtl index a8d7811a021..fd7fbfc8013 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getExercise.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getExercise.req.vtl @@ -31,4 +31,4 @@ $util.qr($GetRequest.put("query", $query)) $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) #end $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getExercise.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getExercise.res.vtl index e9ef1436bdd..92e05f99816 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getExercise.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getExercise.res.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson(null) #end -## [End] Get Response template. ** \ No newline at end of file +## [End] Get Response template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getMeal.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getMeal.auth.1.req.vtl index 6ea758ede95..5e8328df3a4 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getMeal.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getMeal.auth.1.req.vtl @@ -12,4 +12,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getMeal.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getMeal.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getMeal.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getMeal.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getMeal.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getMeal.req.vtl index a8d7811a021..fd7fbfc8013 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getMeal.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getMeal.req.vtl @@ -31,4 +31,4 @@ $util.qr($GetRequest.put("query", $query)) $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) #end $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getMeal.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getMeal.res.vtl index e9ef1436bdd..92e05f99816 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getMeal.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getMeal.res.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson(null) #end -## [End] Get Response template. ** \ No newline at end of file +## [End] Get Response template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getWorkoutProgram.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getWorkoutProgram.auth.1.req.vtl index 6cf44cb48a1..f9672a99451 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getWorkoutProgram.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getWorkoutProgram.auth.1.req.vtl @@ -33,4 +33,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getWorkoutProgram.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getWorkoutProgram.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getWorkoutProgram.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getWorkoutProgram.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getWorkoutProgram.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getWorkoutProgram.req.vtl index a8d7811a021..fd7fbfc8013 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getWorkoutProgram.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getWorkoutProgram.req.vtl @@ -31,4 +31,4 @@ $util.qr($GetRequest.put("query", $query)) $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) #end $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getWorkoutProgram.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getWorkoutProgram.res.vtl index e9ef1436bdd..92e05f99816 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getWorkoutProgram.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.getWorkoutProgram.res.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson(null) #end -## [End] Get Response template. ** \ No newline at end of file +## [End] Get Response template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listExercises.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listExercises.auth.1.req.vtl index 6cf44cb48a1..f9672a99451 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listExercises.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listExercises.auth.1.req.vtl @@ -33,4 +33,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listExercises.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listExercises.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listExercises.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listExercises.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listExercises.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listExercises.req.vtl index 014213710e8..ef976126825 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listExercises.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listExercises.req.vtl @@ -47,4 +47,4 @@ #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) #end $util.toJson($ListRequest) -## [End] List Request. ** \ No newline at end of file +## [End] List Request. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listExercises.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listExercises.res.vtl index ee8b6670cbc..aab9983954e 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listExercises.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listExercises.res.vtl @@ -4,4 +4,4 @@ #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listMeals.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listMeals.auth.1.req.vtl index 6ea758ede95..5e8328df3a4 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listMeals.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listMeals.auth.1.req.vtl @@ -12,4 +12,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listMeals.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listMeals.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listMeals.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listMeals.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listMeals.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listMeals.req.vtl index 014213710e8..ef976126825 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listMeals.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listMeals.req.vtl @@ -47,4 +47,4 @@ #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) #end $util.toJson($ListRequest) -## [End] List Request. ** \ No newline at end of file +## [End] List Request. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listMeals.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listMeals.res.vtl index ee8b6670cbc..aab9983954e 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listMeals.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listMeals.res.vtl @@ -4,4 +4,4 @@ #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listWorkoutPrograms.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listWorkoutPrograms.auth.1.req.vtl index 6cf44cb48a1..f9672a99451 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listWorkoutPrograms.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listWorkoutPrograms.auth.1.req.vtl @@ -33,4 +33,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listWorkoutPrograms.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listWorkoutPrograms.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listWorkoutPrograms.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listWorkoutPrograms.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listWorkoutPrograms.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listWorkoutPrograms.req.vtl index 014213710e8..ef976126825 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listWorkoutPrograms.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listWorkoutPrograms.req.vtl @@ -47,4 +47,4 @@ #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) #end $util.toJson($ListRequest) -## [End] List Request. ** \ No newline at end of file +## [End] List Request. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listWorkoutPrograms.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listWorkoutPrograms.res.vtl index ee8b6670cbc..aab9983954e 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listWorkoutPrograms.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Query.listWorkoutPrograms.res.vtl @@ -4,4 +4,4 @@ #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateExercise.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateExercise.auth.1.req.vtl index 6d8411e0b7b..fec2fc55a1d 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateExercise.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateExercise.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateExercise.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateExercise.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateExercise.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateExercise.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateExercise.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateExercise.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateExercise.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateExercise.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateExercise.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateExercise.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateExercise.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateExercise.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateMeal.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateMeal.auth.1.req.vtl index dbc01a41cf3..0ff5d9f7ef1 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateMeal.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateMeal.auth.1.req.vtl @@ -35,4 +35,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateMeal.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateMeal.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateMeal.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateMeal.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateMeal.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateMeal.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateMeal.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateMeal.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateMeal.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateMeal.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateMeal.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateMeal.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateWorkoutProgram.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateWorkoutProgram.auth.1.req.vtl index 6d8411e0b7b..fec2fc55a1d 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateWorkoutProgram.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateWorkoutProgram.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateWorkoutProgram.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateWorkoutProgram.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateWorkoutProgram.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateWorkoutProgram.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateWorkoutProgram.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateWorkoutProgram.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateWorkoutProgram.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateWorkoutProgram.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateWorkoutProgram.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateWorkoutProgram.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateWorkoutProgram.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onCreateWorkoutProgram.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteExercise.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteExercise.auth.1.req.vtl index 6d8411e0b7b..fec2fc55a1d 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteExercise.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteExercise.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteExercise.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteExercise.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteExercise.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteExercise.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteExercise.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteExercise.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteExercise.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteExercise.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteExercise.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteExercise.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteExercise.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteExercise.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteMeal.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteMeal.auth.1.req.vtl index dbc01a41cf3..0ff5d9f7ef1 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteMeal.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteMeal.auth.1.req.vtl @@ -35,4 +35,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteMeal.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteMeal.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteMeal.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteMeal.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteMeal.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteMeal.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteMeal.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteMeal.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteMeal.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteMeal.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteMeal.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteMeal.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteWorkoutProgram.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteWorkoutProgram.auth.1.req.vtl index 6d8411e0b7b..fec2fc55a1d 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteWorkoutProgram.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteWorkoutProgram.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteWorkoutProgram.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteWorkoutProgram.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteWorkoutProgram.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteWorkoutProgram.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteWorkoutProgram.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteWorkoutProgram.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteWorkoutProgram.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteWorkoutProgram.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteWorkoutProgram.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteWorkoutProgram.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteWorkoutProgram.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onDeleteWorkoutProgram.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateExercise.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateExercise.auth.1.req.vtl index 6d8411e0b7b..fec2fc55a1d 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateExercise.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateExercise.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateExercise.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateExercise.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateExercise.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateExercise.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateExercise.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateExercise.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateExercise.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateExercise.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateExercise.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateExercise.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateExercise.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateExercise.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateMeal.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateMeal.auth.1.req.vtl index dbc01a41cf3..0ff5d9f7ef1 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateMeal.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateMeal.auth.1.req.vtl @@ -35,4 +35,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateMeal.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateMeal.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateMeal.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateMeal.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateMeal.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateMeal.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateMeal.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateMeal.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateMeal.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateMeal.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateMeal.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateMeal.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateWorkoutProgram.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateWorkoutProgram.auth.1.req.vtl index 6d8411e0b7b..fec2fc55a1d 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateWorkoutProgram.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateWorkoutProgram.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateWorkoutProgram.postAuth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateWorkoutProgram.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateWorkoutProgram.postAuth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateWorkoutProgram.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateWorkoutProgram.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateWorkoutProgram.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateWorkoutProgram.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateWorkoutProgram.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateWorkoutProgram.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateWorkoutProgram.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateWorkoutProgram.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/Subscription.onUpdateWorkoutProgram.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/WorkoutProgram.exercises.auth.1.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/WorkoutProgram.exercises.auth.1.req.vtl index efb7fd5ccf6..c3c78ec1d2e 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/WorkoutProgram.exercises.auth.1.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/WorkoutProgram.exercises.auth.1.req.vtl @@ -37,4 +37,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/WorkoutProgram.exercises.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/WorkoutProgram.exercises.req.vtl index aa11e2a22b2..fcb971beb9e 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/WorkoutProgram.exercises.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/WorkoutProgram.exercises.req.vtl @@ -69,4 +69,4 @@ null #end, "index": "gsi-WorkoutProgram.exercises" } -#end \ No newline at end of file +#end diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/WorkoutProgram.exercises.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/WorkoutProgram.exercises.res.vtl index 922c4ce53d0..ae420dbf03f 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/WorkoutProgram.exercises.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/WorkoutProgram.exercises.res.vtl @@ -10,4 +10,4 @@ $util.error($ctx.error.message, $ctx.error.type) #end #end $util.toJson($result) -#end \ No newline at end of file +#end diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/WorkoutProgram.owner.req.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/WorkoutProgram.owner.req.vtl index 1aae0961a3e..a9c5efa2bb8 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/WorkoutProgram.owner.req.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/WorkoutProgram.owner.req.vtl @@ -1 +1 @@ -$util.toJson({"version":"2018-05-29","payload":{}}) \ No newline at end of file +$util.toJson({"version":"2018-05-29","payload":{}}) diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/WorkoutProgram.owner.res.vtl b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/WorkoutProgram.owner.res.vtl index c6de7a4f2cf..0552e7005c8 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/WorkoutProgram.owner.res.vtl +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/resolvers/WorkoutProgram.owner.res.vtl @@ -17,4 +17,4 @@ $util.qr($ctx.source.put("owner", $ownerEntitiesLast)) $util.toJson($ctx.source.owner) #end -## [End] Parse owner field auth for Get. ** \ No newline at end of file +## [End] Parse owner field auth for Get. ** diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/ConnectionStack.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/ConnectionStack.json index 37b698b468d..c9c8f2f3b14 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/ConnectionStack.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/ConnectionStack.json @@ -111,7 +111,7 @@ { "Ref": "referencetotransformerrootstackExerciseNestedStackExerciseNestedStackResourceA190CF68OutputstransformerrootstackExerciseExerciseTable2F3E478ERef" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -140,4 +140,4 @@ "Type": "String" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/CustomResources.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/CustomResources.json index 016991278d0..5fe357d6096 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/CustomResources.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/CustomResources.json @@ -58,4 +58,4 @@ "Value": "" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/Exercise.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/Exercise.json index cc800da40df..481bbc26c62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/Exercise.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/Exercise.json @@ -503,7 +503,7 @@ { "Ref": "ExerciseTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -598,7 +598,7 @@ { "Ref": "ExerciseTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -729,7 +729,7 @@ { "Ref": "ExerciseTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -881,7 +881,7 @@ { "Ref": "ExerciseTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -1030,7 +1030,7 @@ { "Ref": "ExerciseTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -1067,7 +1067,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -1104,7 +1104,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -1141,7 +1141,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -1172,7 +1172,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -1259,4 +1259,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/Meal.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/Meal.json index ee4ac331787..a6a7e50e1eb 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/Meal.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/Meal.json @@ -482,7 +482,7 @@ { "Ref": "MealTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -580,7 +580,7 @@ { "Ref": "MealTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -711,7 +711,7 @@ { "Ref": "MealTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -863,7 +863,7 @@ { "Ref": "MealTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -1012,7 +1012,7 @@ { "Ref": "MealTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -1082,7 +1082,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -1122,7 +1122,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -1162,7 +1162,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -1236,4 +1236,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/WorkoutProgram.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/WorkoutProgram.json index 8d494295f5d..19decceb16c 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/WorkoutProgram.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/build/stacks/WorkoutProgram.json @@ -503,7 +503,7 @@ { "Ref": "WorkoutProgramTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -604,7 +604,7 @@ { "Ref": "WorkoutProgramTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -771,7 +771,7 @@ { "Ref": "WorkoutProgramTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -959,7 +959,7 @@ { "Ref": "WorkoutProgramTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -1111,7 +1111,7 @@ { "Ref": "WorkoutProgramTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -1232,7 +1232,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -1278,7 +1278,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -1324,7 +1324,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -1403,7 +1403,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" ] ] }, @@ -1533,4 +1533,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/cli-inputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/cli-inputs.json index 848a1768ba9..2ca2cd14494 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/cli-inputs.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/cli-inputs.json @@ -16,4 +16,4 @@ } ] } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/parameters.json index 72d6b16ab57..d3f4b113c17 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/parameters.json @@ -8,4 +8,4 @@ "Outputs.UserPoolId" ] } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/resolvers/README.md b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/resolvers/README.md index 89e564c5b31..1634d295144 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/resolvers/README.md +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/resolvers/README.md @@ -1,2 +1,2 @@ Any resolvers that you add in this directory will override the ones automatically generated by Amplify CLI and will be directly copied to the cloud. -For more information, visit [https://docs.amplify.aws/cli/graphql-transformer/resolvers](https://docs.amplify.aws/cli/graphql-transformer/resolvers) \ No newline at end of file +For more information, visit [https://docs.amplify.aws/cli/graphql-transformer/resolvers](https://docs.amplify.aws/cli/graphql-transformer/resolvers) diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/transform.conf.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/transform.conf.json index 98e1e19f038..d0421b1df09 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/transform.conf.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/fitnesstracker/transform.conf.json @@ -1,4 +1,4 @@ { "Version": 5, "ElasticsearchWarning": true -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/nutritionapi/build/nutritionapi-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/nutritionapi/build/nutritionapi-cloudformation-template.json index ba07311cb22..96dfbff48ea 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/nutritionapi/build/nutritionapi-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/nutritionapi/build/nutritionapi-cloudformation-template.json @@ -666,7 +666,7 @@ "Name": "nutritionapi" } }, - "nutritionapiDefault4XXResponsef55128fc": { + "nutritionapiDefault4XXResponse18f0d0eb": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -681,7 +681,7 @@ } } }, - "nutritionapiDefault5XXResponsef55128fc": { + "nutritionapiDefault5XXResponse18f0d0eb": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -696,7 +696,7 @@ } } }, - "DeploymentAPIGWnutritionapi5caf0abc": { + "DeploymentAPIGWnutritionapib144b434": { "Type": "AWS::ApiGateway::Deployment", "Properties": { "Description": "The Development stage deployment of your API.", @@ -714,8 +714,8 @@ } }, "DependsOn": [ - "nutritionapiDefault4XXResponsef55128fc", - "nutritionapiDefault5XXResponsef55128fc" + "nutritionapiDefault4XXResponse18f0d0eb", + "nutritionapiDefault5XXResponse18f0d0eb" ] } }, @@ -769,4 +769,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/nutritionapi/build/parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/nutritionapi/build/parameters.json index 9e26dfeeb6e..0967ef424bc 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/nutritionapi/build/parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/nutritionapi/build/parameters.json @@ -1 +1 @@ -{} \ No newline at end of file +{} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/nutritionapi/cli-inputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/nutritionapi/cli-inputs.json index 514e02664a9..7850952abd0 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/nutritionapi/cli-inputs.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/api/nutritionapi/cli-inputs.json @@ -23,4 +23,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker33f5545533f55455/build/auth-trigger-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker33f5545533f55455/build/auth-trigger-cloudformation-template.json index 3d97c0ff654..39a2148fc05 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker33f5545533f55455/build/auth-trigger-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker33f5545533f55455/build/auth-trigger-cloudformation-template.json @@ -143,7 +143,7 @@ } } ], - "nonce": "ce3e930d-07f8-4cb9-a927-2ce7de23494f" + "nonce": "9edcf916-bda1-43d2-a7b5-e1f7ac4273f8" }, "DependsOn": [ "authTriggerFn7FCFA449", @@ -154,4 +154,4 @@ "DeletionPolicy": "Delete" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker33f5545533f55455/build/fitnesstracker33f5545533f55455-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker33f5545533f55455/build/fitnesstracker33f5545533f55455-cloudformation-template.json index f5ed153a8fe..e52f2be13ec 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker33f5545533f55455/build/fitnesstracker33f5545533f55455-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker33f5545533f55455/build/fitnesstracker33f5545533f55455-cloudformation-template.json @@ -477,4 +477,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker33f5545533f55455/build/parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker33f5545533f55455/build/parameters.json index 41d861ce59c..cd8f1d2a1b4 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker33f5545533f55455/build/parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker33f5545533f55455/build/parameters.json @@ -74,4 +74,4 @@ "authTriggerConnections": [ "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker33f5545533f55455PreSignup\"}" ] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker33f5545533f55455/cli-inputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker33f5545533f55455/cli-inputs.json index f8ecf9a776f..0cfd5521dcc 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker33f5545533f55455/cli-inputs.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/fitnesstracker33f5545533f55455/cli-inputs.json @@ -53,4 +53,4 @@ "usernameCaseSensitive": false, "useEnabledMfas": true } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/userPoolGroups/build/parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/userPoolGroups/build/parameters.json index 48115bd5cd6..2221b374f62 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/userPoolGroups/build/parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/userPoolGroups/build/parameters.json @@ -11,4 +11,4 @@ "Arn" ] } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json index e34b9d7bd14..3d1a8a6bb6f 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json @@ -106,4 +106,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/userPoolGroups/user-pool-group-precedence.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/userPoolGroups/user-pool-group-precedence.json index ec20cf4296d..b92c99cb4d0 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/userPoolGroups/user-pool-group-precedence.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/auth/userPoolGroups/user-pool-group-precedence.json @@ -3,4 +3,4 @@ "groupName": "Admin", "precedence": 1 } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/adminapi/build/adminapi-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/adminapi/build/adminapi-cloudformation-template.json index 63a8fcdb155..640df24a5f9 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/adminapi/build/adminapi-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/adminapi/build/adminapi-cloudformation-template.json @@ -426,7 +426,7 @@ "Name": "adminapi" } }, - "adminapiDefault4XXResponse0e27c647": { + "adminapiDefault4XXResponse9abfcb58": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -441,7 +441,7 @@ } } }, - "adminapiDefault5XXResponse0e27c647": { + "adminapiDefault5XXResponse9abfcb58": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -456,7 +456,7 @@ } } }, - "DeploymentAPIGWadminapiad7711e6": { + "DeploymentAPIGWadminapi7459b549": { "Type": "AWS::ApiGateway::Deployment", "Properties": { "Description": "The Development stage deployment of your API.", @@ -474,8 +474,8 @@ } }, "DependsOn": [ - "adminapiDefault4XXResponse0e27c647", - "adminapiDefault5XXResponse0e27c647" + "adminapiDefault4XXResponse9abfcb58", + "adminapiDefault5XXResponse9abfcb58" ] } }, @@ -529,4 +529,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/fitnesstracker/build/cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/fitnesstracker/build/cloudformation-template.json index cd07bb81a76..5824262e76d 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/fitnesstracker/build/cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/fitnesstracker/build/cloudformation-template.json @@ -129,7 +129,7 @@ ] }, "Description": "graphql", - "Expires": 1774926196 + "Expires": 1776829824 } }, "GraphQLAPINONEDS95A13CF0": { @@ -606,4 +606,4 @@ } }, "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/nutritionapi/build/nutritionapi-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/nutritionapi/build/nutritionapi-cloudformation-template.json index ba07311cb22..96dfbff48ea 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/nutritionapi/build/nutritionapi-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/nutritionapi/build/nutritionapi-cloudformation-template.json @@ -666,7 +666,7 @@ "Name": "nutritionapi" } }, - "nutritionapiDefault4XXResponsef55128fc": { + "nutritionapiDefault4XXResponse18f0d0eb": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -681,7 +681,7 @@ } } }, - "nutritionapiDefault5XXResponsef55128fc": { + "nutritionapiDefault5XXResponse18f0d0eb": { "Type": "AWS::ApiGateway::GatewayResponse", "Properties": { "ResponseParameters": { @@ -696,7 +696,7 @@ } } }, - "DeploymentAPIGWnutritionapi5caf0abc": { + "DeploymentAPIGWnutritionapib144b434": { "Type": "AWS::ApiGateway::Deployment", "Properties": { "Description": "The Development stage deployment of your API.", @@ -714,8 +714,8 @@ } }, "DependsOn": [ - "nutritionapiDefault4XXResponsef55128fc", - "nutritionapiDefault5XXResponsef55128fc" + "nutritionapiDefault4XXResponse18f0d0eb", + "nutritionapiDefault5XXResponse18f0d0eb" ] } }, @@ -769,4 +769,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/fitnesstracker33f5545533f55455/build/fitnesstracker33f5545533f55455-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/fitnesstracker33f5545533f55455/build/fitnesstracker33f5545533f55455-cloudformation-template.json index f5ed153a8fe..e52f2be13ec 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/fitnesstracker33f5545533f55455/build/fitnesstracker33f5545533f55455-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/fitnesstracker33f5545533f55455/build/fitnesstracker33f5545533f55455-cloudformation-template.json @@ -477,4 +477,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json index e34b9d7bd14..3d1a8a6bb6f 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json @@ -106,4 +106,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json index 3874b454557..e224f695608 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json @@ -202,7 +202,7 @@ "APIGatewayAuthStack": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", "Parameters": { "authRoleName": { "Ref": "AuthRoleName" @@ -210,7 +210,7 @@ "unauthRoleName": { "Ref": "UnauthRoleName" }, - "env": "main", + "env": "x", "nutritionapi": { "Fn::GetAtt": [ "apinutritionapi", @@ -229,9 +229,9 @@ "AuthTriggerCustomLambdaStack": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json", "Parameters": { - "env": "main", + "env": "x", "userpoolId": { "Fn::GetAtt": [ "authfitnesstracker33f5545533f55455", @@ -272,7 +272,7 @@ "authuserPoolGroups": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", "Parameters": { "AuthRoleArn": { "Fn::GetAtt": [ @@ -310,14 +310,14 @@ "Outputs.IdentityPoolId" ] }, - "env": "main" + "env": "x" } } }, "authfitnesstracker33f5545533f55455": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/auth/fitnesstracker33f5545533f55455-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/auth/fitnesstracker33f5545533f55455-cloudformation-template.json", "Parameters": { "identityPoolName": "fitnesstracker33f55455_identitypool_33f55455", "allowUnauthenticatedIdentities": false, @@ -370,62 +370,62 @@ "dependsOn": "[object Object]", "permissions": "", "authTriggerConnections": "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker33f5545533f55455PreSignup\"}", - "env": "main" + "env": "x" } } }, "functionfitnesstracker33f5545533f55455PreSignup": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/function/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/function/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json", "Parameters": { "modules": "email-filter-allowlist", "resourceName": "fitnesstracker33f5545533f55455PreSignup", "DOMAINALLOWLIST": "amazon.com", - "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", + "deploymentBucketName": "amplify-fitnesstracker-x-x-deployment", "s3Key": "amplify-builds/fitnesstracker33f5545533f55455PreSignup-68374859444c45627749-build.zip", - "env": "main" + "env": "x" } } }, "functionlognutrition": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/function/lognutrition-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/function/lognutrition-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", - "s3Key": "amplify-builds/lognutrition-554b5263566866516c6c-build.zip", + "deploymentBucketName": "amplify-fitnesstracker-x-x-deployment", + "s3Key": "amplify-builds/lognutrition-4d67766f675761365161-build.zip", "apifitnesstrackerGraphQLAPIIdOutput": { "Fn::GetAtt": [ "apifitnesstracker", "Outputs.GraphQLAPIIdOutput" ] }, - "env": "main" + "env": "x" } } }, "functionadmin": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/function/admin-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/function/admin-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", - "s3Key": "amplify-builds/admin-7934694b6d366c486d32-build.zip", + "deploymentBucketName": "amplify-fitnesstracker-x-x-deployment", + "s3Key": "amplify-builds/admin-2f397a7163426d447a6b-build.zip", "authfitnesstracker33f5545533f55455UserPoolId": { "Fn::GetAtt": [ "authfitnesstracker33f5545533f55455", "Outputs.UserPoolId" ] }, - "env": "main" + "env": "x" } } }, "apifitnesstracker": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", "Parameters": { "AppSyncApiName": "fitnesstracker", "DynamoDBBillingMode": "PAY_PER_REQUEST", @@ -436,16 +436,16 @@ "Outputs.UserPoolId" ] }, - "S3DeploymentBucket": "amplify-fitnesstracker-main-a0537-deployment", + "S3DeploymentBucket": "amplify-fitnesstracker-x-x-deployment", "S3DeploymentRootKey": "amplify-appsync-files/67310f5f0a68cc163f9cc58da56e1409a2c21b1d", - "env": "main" + "env": "x" } } }, "apinutritionapi": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/nutritionapi-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/api/nutritionapi-cloudformation-template.json", "Parameters": { "functionlognutritionName": { "Fn::GetAtt": [ @@ -471,14 +471,14 @@ "Outputs.AdminGroupRole" ] }, - "env": "main" + "env": "x" } } }, "apiadminapi": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/adminapi-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/api/adminapi-cloudformation-template.json", "Parameters": { "functionadminName": { "Fn::GetAtt": [ @@ -504,7 +504,7 @@ "Outputs.AdminGroupRole" ] }, - "env": "main" + "env": "x" } } }, @@ -712,4 +712,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/admin/admin-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/admin/admin-cloudformation-template.json index 57322afb5e3..bb77cf8cd5c 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/admin/admin-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/admin/admin-cloudformation-template.json @@ -265,4 +265,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/fitnesstracker33f5545533f55455PreSignup/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/fitnesstracker33f5545533f55455PreSignup/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json index e53fff724cb..2c017bb1df9 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/fitnesstracker33f5545533f55455PreSignup/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/fitnesstracker33f5545533f55455PreSignup/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json @@ -239,4 +239,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/lognutrition/lognutrition-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/lognutrition/lognutrition-cloudformation-template.json index 34e97f53ec9..3d017b0693f 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/lognutrition/lognutrition-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/lognutrition/lognutrition-cloudformation-template.json @@ -317,4 +317,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json index 3874b454557..e224f695608 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json @@ -202,7 +202,7 @@ "APIGatewayAuthStack": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", "Parameters": { "authRoleName": { "Ref": "AuthRoleName" @@ -210,7 +210,7 @@ "unauthRoleName": { "Ref": "UnauthRoleName" }, - "env": "main", + "env": "x", "nutritionapi": { "Fn::GetAtt": [ "apinutritionapi", @@ -229,9 +229,9 @@ "AuthTriggerCustomLambdaStack": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json", "Parameters": { - "env": "main", + "env": "x", "userpoolId": { "Fn::GetAtt": [ "authfitnesstracker33f5545533f55455", @@ -272,7 +272,7 @@ "authuserPoolGroups": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", "Parameters": { "AuthRoleArn": { "Fn::GetAtt": [ @@ -310,14 +310,14 @@ "Outputs.IdentityPoolId" ] }, - "env": "main" + "env": "x" } } }, "authfitnesstracker33f5545533f55455": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/auth/fitnesstracker33f5545533f55455-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/auth/fitnesstracker33f5545533f55455-cloudformation-template.json", "Parameters": { "identityPoolName": "fitnesstracker33f55455_identitypool_33f55455", "allowUnauthenticatedIdentities": false, @@ -370,62 +370,62 @@ "dependsOn": "[object Object]", "permissions": "", "authTriggerConnections": "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker33f5545533f55455PreSignup\"}", - "env": "main" + "env": "x" } } }, "functionfitnesstracker33f5545533f55455PreSignup": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/function/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/function/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json", "Parameters": { "modules": "email-filter-allowlist", "resourceName": "fitnesstracker33f5545533f55455PreSignup", "DOMAINALLOWLIST": "amazon.com", - "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", + "deploymentBucketName": "amplify-fitnesstracker-x-x-deployment", "s3Key": "amplify-builds/fitnesstracker33f5545533f55455PreSignup-68374859444c45627749-build.zip", - "env": "main" + "env": "x" } } }, "functionlognutrition": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/function/lognutrition-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/function/lognutrition-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", - "s3Key": "amplify-builds/lognutrition-554b5263566866516c6c-build.zip", + "deploymentBucketName": "amplify-fitnesstracker-x-x-deployment", + "s3Key": "amplify-builds/lognutrition-4d67766f675761365161-build.zip", "apifitnesstrackerGraphQLAPIIdOutput": { "Fn::GetAtt": [ "apifitnesstracker", "Outputs.GraphQLAPIIdOutput" ] }, - "env": "main" + "env": "x" } } }, "functionadmin": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/function/admin-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/function/admin-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", - "s3Key": "amplify-builds/admin-7934694b6d366c486d32-build.zip", + "deploymentBucketName": "amplify-fitnesstracker-x-x-deployment", + "s3Key": "amplify-builds/admin-2f397a7163426d447a6b-build.zip", "authfitnesstracker33f5545533f55455UserPoolId": { "Fn::GetAtt": [ "authfitnesstracker33f5545533f55455", "Outputs.UserPoolId" ] }, - "env": "main" + "env": "x" } } }, "apifitnesstracker": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", "Parameters": { "AppSyncApiName": "fitnesstracker", "DynamoDBBillingMode": "PAY_PER_REQUEST", @@ -436,16 +436,16 @@ "Outputs.UserPoolId" ] }, - "S3DeploymentBucket": "amplify-fitnesstracker-main-a0537-deployment", + "S3DeploymentBucket": "amplify-fitnesstracker-x-x-deployment", "S3DeploymentRootKey": "amplify-appsync-files/67310f5f0a68cc163f9cc58da56e1409a2c21b1d", - "env": "main" + "env": "x" } } }, "apinutritionapi": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/nutritionapi-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/api/nutritionapi-cloudformation-template.json", "Parameters": { "functionlognutritionName": { "Fn::GetAtt": [ @@ -471,14 +471,14 @@ "Outputs.AdminGroupRole" ] }, - "env": "main" + "env": "x" } } }, "apiadminapi": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/adminapi-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/api/adminapi-cloudformation-template.json", "Parameters": { "functionadminName": { "Fn::GetAtt": [ @@ -504,7 +504,7 @@ "Outputs.AdminGroupRole" ] }, - "env": "main" + "env": "x" } } }, @@ -712,4 +712,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/backend-config.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/backend-config.json index d15b0adea45..d1ef8419fca 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/backend-config.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/backend-config.json @@ -235,4 +235,4 @@ ] } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/admin/admin-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/admin/admin-cloudformation-template.json index 57322afb5e3..bb77cf8cd5c 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/admin/admin-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/admin/admin-cloudformation-template.json @@ -265,4 +265,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/admin/amplify.state b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/admin/amplify.state index ba4128da404..02da2024d5c 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/admin/amplify.state +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/admin/amplify.state @@ -6,4 +6,4 @@ "scripts": { "build": "npm install --no-bin-links --production" } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/admin/custom-policies.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/admin/custom-policies.json index 528c94f2f26..1f21c530082 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/admin/custom-policies.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/admin/custom-policies.json @@ -3,4 +3,4 @@ "Action": [], "Resource": [] } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/admin/function-parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/admin/function-parameters.json index f87ac79fa6f..2539935d173 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/admin/function-parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/admin/function-parameters.json @@ -7,4 +7,4 @@ } }, "lambdaLayers": [] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/admin/parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/admin/parameters.json index 9e26dfeeb6e..0967ef424bc 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/admin/parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/admin/parameters.json @@ -1 +1 @@ -{} \ No newline at end of file +{} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker33f5545533f55455PreSignup/amplify.state b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker33f5545533f55455PreSignup/amplify.state index 0c3efe04706..ab8a6cc8046 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker33f5545533f55455PreSignup/amplify.state +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker33f5545533f55455PreSignup/amplify.state @@ -3,4 +3,4 @@ "functionRuntime": "nodejs", "useLegacyBuild": true, "defaultEditorFile": "src/index.js" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker33f5545533f55455PreSignup/custom-policies.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker33f5545533f55455PreSignup/custom-policies.json index 528c94f2f26..1f21c530082 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker33f5545533f55455PreSignup/custom-policies.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker33f5545533f55455PreSignup/custom-policies.json @@ -3,4 +3,4 @@ "Action": [], "Resource": [] } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker33f5545533f55455PreSignup/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker33f5545533f55455PreSignup/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json index e53fff724cb..2c017bb1df9 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker33f5545533f55455PreSignup/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker33f5545533f55455PreSignup/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json @@ -239,4 +239,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker33f5545533f55455PreSignup/function-parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker33f5545533f55455PreSignup/function-parameters.json index ddc07525de2..0bc93b83030 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker33f5545533f55455PreSignup/function-parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker33f5545533f55455PreSignup/function-parameters.json @@ -13,4 +13,4 @@ "triggerEventPath": "PreSignup.event.json", "roleName": "fitnesstracker33f5545533f55455PreSignup", "skipEdit": true -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker33f5545533f55455PreSignup/parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker33f5545533f55455PreSignup/parameters.json index 020628a583f..67c30da7a0a 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker33f5545533f55455PreSignup/parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/fitnesstracker33f5545533f55455PreSignup/parameters.json @@ -1,4 +1,4 @@ { "modules": "email-filter-allowlist", "resourceName": "fitnesstracker33f5545533f55455PreSignup" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/lognutrition/amplify.state b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/lognutrition/amplify.state index ba4128da404..02da2024d5c 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/lognutrition/amplify.state +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/lognutrition/amplify.state @@ -6,4 +6,4 @@ "scripts": { "build": "npm install --no-bin-links --production" } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/lognutrition/custom-policies.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/lognutrition/custom-policies.json index 528c94f2f26..1f21c530082 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/lognutrition/custom-policies.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/lognutrition/custom-policies.json @@ -3,4 +3,4 @@ "Action": [], "Resource": [] } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/lognutrition/function-parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/lognutrition/function-parameters.json index 4846242bcad..cb4cb83ae81 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/lognutrition/function-parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/lognutrition/function-parameters.json @@ -10,4 +10,4 @@ } }, "lambdaLayers": [] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/lognutrition/lognutrition-cloudformation-template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/lognutrition/lognutrition-cloudformation-template.json index 34e97f53ec9..3d017b0693f 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/lognutrition/lognutrition-cloudformation-template.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/lognutrition/lognutrition-cloudformation-template.json @@ -317,4 +317,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/lognutrition/parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/lognutrition/parameters.json index 9e26dfeeb6e..0967ef424bc 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/lognutrition/parameters.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/function/lognutrition/parameters.json @@ -1 +1 @@ -{} \ No newline at end of file +{} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/tags.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/tags.json index b9321d71b83..71f6abe11a6 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/tags.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/tags.json @@ -7,4 +7,4 @@ "Key": "user:Application", "Value": "{project-name}" } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts index f717052117c..590d9903904 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts @@ -53,4 +53,4 @@ export type AmplifyDependentResourcesAttributes = { "Region": "string" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/cli.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/cli.json index 11dc8ca0f7d..6991bfaca44 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/cli.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/cli.json @@ -62,4 +62,4 @@ "debug": { "shareProjectConfig": false } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/team-provider-info.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/team-provider-info.json index 23d20a11c3f..437e4bc98df 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/team-provider-info.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/amplify/team-provider-info.json @@ -1,17 +1,17 @@ { - "main": { + "x": { "awscloudformation": { - "AuthRoleName": "amplify-fitnesstracker-main-a0537-authRole", - "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-unauthRole", - "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-authRole", + "AuthRoleName": "amplify-fitnesstracker-x-x-authRole", + "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-x-x-unauthRole", + "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-x-x-authRole", "Region": "us-east-1", - "DeploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", - "UnauthRoleName": "amplify-fitnesstracker-main-a0537-unauthRole", - "StackName": "amplify-fitnesstracker-main-a0537", - "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-main-a0537/1749a530-272d-11f1-a465-0e5f0b5f7853", + "DeploymentBucketName": "amplify-fitnesstracker-x-x-deployment", + "UnauthRoleName": "amplify-fitnesstracker-x-x-unauthRole", + "StackName": "amplify-fitnesstracker-x-x", + "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-x-x/05c223c0-387e-11f1-a0a5-0affda7b6827", "AmplifyAppId": "fitnesstracker", - "APIGatewayAuthURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", - "AuthTriggerTemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json" + "APIGatewayAuthURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", + "AuthTriggerTemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json" }, "categories": { "auth": { @@ -21,16 +21,16 @@ "function": { "fitnesstracker33f5545533f55455PreSignup": { "DOMAINALLOWLIST": "amazon.com", - "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", + "deploymentBucketName": "amplify-fitnesstracker-x-x-deployment", "s3Key": "amplify-builds/fitnesstracker33f5545533f55455PreSignup-68374859444c45627749-build.zip" }, - "lognutrition": { - "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", - "s3Key": "amplify-builds/lognutrition-554b5263566866516c6c-build.zip" - }, "admin": { - "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", - "s3Key": "amplify-builds/admin-7934694b6d366c486d32-build.zip" + "deploymentBucketName": "amplify-fitnesstracker-x-x-deployment", + "s3Key": "amplify-builds/admin-2f397a7163426d447a6b-build.zip" + }, + "lognutrition": { + "deploymentBucketName": "amplify-fitnesstracker-x-x-deployment", + "s3Key": "amplify-builds/lognutrition-4d67766f675761365161-build.zip" } }, "api": { @@ -40,4 +40,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/package.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/package.json index c5d3e0d4aca..7b9d6f30060 100644 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/package.json +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.generate/package.json @@ -1,5 +1,5 @@ { - "name": "@amplify-migration-apps/fitness-goal-tracker-snapshot", + "name": "@amplify-migration-apps/fitness-tracker-snapshot", "private": true, "version": "1.0.0", "type": "module", @@ -12,10 +12,22 @@ "build": "tsc -b && vite build", "lint": "eslint .", "preview": "vite preview", - "configure": "./configure.sh", - "configure-schema": "./configure-schema.sh", + "configure": "./backend/configure.sh", + "configure-schema": "./backend/configure-schema.sh", "sanitize": "tsx ../sanitize.ts", - "typecheck": "cd _snapshot.post.generate/amplify && npx tsc --noEmit" + "normalize": "tsx ../normalize.ts", + "typecheck": "cd _snapshot.post.generate/amplify && npx tsc --noEmit", + "test:gen1": "APP_CONFIG_PATH=${APP_CONFIG_PATH:-src/amplifyconfiguration.json} NODE_OPTIONS='--experimental-vm-modules' jest --verbose", + "test:gen2": "APP_CONFIG_PATH=${APP_CONFIG_PATH:-amplify_outputs.json} NODE_OPTIONS='--experimental-vm-modules' jest --verbose", + "test:shared-data": "true", + "test:e2e": "cd ../../packages/amplify-gen2-migration-e2e-system && npx tsx src/cli.ts --app fitness-tracker --profile ${AWS_PROFILE:-default}", + "deploy": "cd ../../packages/amplify-gen2-migration-e2e-system && npx tsx src/cli.ts --app fitness-tracker --step deploy --profile ${AWS_PROFILE:-default}", + "pre-push": "npx tsx migration/pre-push.ts", + "post-generate": "npx tsx migration/post-generate.ts", + "post-refactor": "true", + "post-sandbox": "true", + "pre-sandbox": "true", + "post-push": "true" }, "dependencies": { "@aws-amplify/ui-react": "^6.13.1", @@ -29,7 +41,10 @@ "react-dom": "^19.2.0" }, "devDependencies": { + "@aws-sdk/client-cognito-identity-provider": "^3.936.0", + "@aws-sdk/client-lambda": "^3.936.0", "@eslint/js": "^9.39.1", + "@types/jest": "^29.5.14", "@types/node": "^24.10.1", "@types/react": "^19.2.5", "@types/react-dom": "^19.2.3", @@ -38,6 +53,8 @@ "eslint-plugin-react-hooks": "^7.0.1", "eslint-plugin-react-refresh": "^0.4.24", "globals": "^16.5.0", + "jest": "^29.7.0", + "ts-jest": "^29.3.4", "typescript": "~5.9.3", "typescript-eslint": "^8.46.4", "vite": "^7.2.4" diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.outputs.json new file mode 100644 index 00000000000..ea86a8dc0ac --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.outputs.json @@ -0,0 +1,6 @@ +[ + { + "OutputKey": "amplifyfitnesstrackere2esandboxb87516873edataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent0E608822Arn", + "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-fitnesstra2604142-TableManagerCustomProvid-Q0L3VJEDauvR" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.parameters.json new file mode 100644 index 00000000000..d482d5771c8 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.parameters.json @@ -0,0 +1,6 @@ +[ + { + "ParameterKey": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId", + "ParameterValue": "pa7lr2bmbjfqxdfidheoysbvhu" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.template.json new file mode 100644 index 00000000000..e413c825036 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.template.json @@ -0,0 +1,787 @@ +{ + "Resources": { + "AmplifyManagedTableIsCompleteRoleF825222C": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:CreateTable", + "dynamodb:UpdateTable", + "dynamodb:DeleteTable", + "dynamodb:DescribeTable", + "dynamodb:DescribeContinuousBackups", + "dynamodb:DescribeTimeToLive", + "dynamodb:UpdateContinuousBackups", + "dynamodb:UpdateTimeToLive", + "dynamodb:TagResource", + "dynamodb:UntagResource", + "dynamodb:ListTagsOfResource" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/*-${apiId}-${envName}", + { + "apiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "envName": "NONE" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", + { + "tableName": "WorkoutProgram-xwgwkksjrbcoxnb64a6clvir4u-x" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", + { + "tableName": "Exercise-xwgwkksjrbcoxnb64a6clvir4u-x" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", + { + "tableName": "Meal-xwgwkksjrbcoxnb64a6clvir4u-x" + } + ] + } + ] + }, + { + "Action": "lambda:ListTags", + "Effect": "Allow", + "Resource": { + "Fn::Sub": [ + "arn:${AWS::Partition}:lambda:${AWS::Region}:${AWS::AccountId}:function:*TableManager*", + {} + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "CreateUpdateDeleteTablesPolicy" + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/AmplifyManagedTableIsCompleteRole/Resource" + } + }, + "AmplifyManagedTableOnEventRoleB4E71DEA": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:CreateTable", + "dynamodb:UpdateTable", + "dynamodb:DeleteTable", + "dynamodb:DescribeTable", + "dynamodb:DescribeContinuousBackups", + "dynamodb:DescribeTimeToLive", + "dynamodb:UpdateContinuousBackups", + "dynamodb:UpdateTimeToLive", + "dynamodb:TagResource", + "dynamodb:UntagResource", + "dynamodb:ListTagsOfResource" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/*-${apiId}-${envName}", + { + "apiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "envName": "NONE" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", + { + "tableName": "WorkoutProgram-xwgwkksjrbcoxnb64a6clvir4u-x" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", + { + "tableName": "Exercise-xwgwkksjrbcoxnb64a6clvir4u-x" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", + { + "tableName": "Meal-xwgwkksjrbcoxnb64a6clvir4u-x" + } + ] + } + ] + }, + { + "Action": "lambda:ListTags", + "Effect": "Allow", + "Resource": { + "Fn::Sub": [ + "arn:${AWS::Partition}:lambda:${AWS::Region}:${AWS::AccountId}:function:*TableManager*", + {} + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "CreateUpdateDeleteTablesPolicy" + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/AmplifyManagedTableOnEventRole/Resource" + } + }, + "AmplifyManagedTableOnEventRoleDefaultPolicyF6DABCB6": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "states:StartExecution", + "Effect": "Allow", + "Resource": { + "Ref": "AmplifyTableWaiterStateMachine060600BC" + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "AmplifyManagedTableOnEventRoleDefaultPolicyF6DABCB6", + "Roles": [ + { + "Ref": "AmplifyManagedTableOnEventRoleB4E71DEA" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/AmplifyManagedTableOnEventRole/DefaultPolicy/Resource" + } + }, + "TableManagerCustomProviderframeworkonEvent1DFC2ECC": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6.zip" + }, + "Description": "AmplifyManagedTable - onEvent (amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider)", + "Environment": { + "Variables": { + "WAITER_STATE_MACHINE_ARN": { + "Ref": "AmplifyTableWaiterStateMachine060600BC" + } + } + }, + "Handler": "amplify-table-manager-handler.onEvent", + "Role": { + "Fn::GetAtt": [ + "AmplifyManagedTableOnEventRoleB4E71DEA", + "Arn" + ] + }, + "Runtime": "nodejs24.x", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 840 + }, + "DependsOn": [ + "AmplifyManagedTableOnEventRoleDefaultPolicyF6DABCB6", + "AmplifyManagedTableOnEventRoleB4E71DEA" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider/framework-onEvent/Resource", + "aws:asset:path": "asset.f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6", + "aws:asset:is-bundled": false, + "aws:asset:property": "Code" + } + }, + "TableManagerCustomProviderframeworkisComplete2E51021B": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6.zip" + }, + "Description": "AmplifyManagedTable - isComplete (amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider)", + "Handler": "amplify-table-manager-handler.isComplete", + "Role": { + "Fn::GetAtt": [ + "AmplifyManagedTableIsCompleteRoleF825222C", + "Arn" + ] + }, + "Runtime": "nodejs24.x", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 840 + }, + "DependsOn": [ + "AmplifyManagedTableIsCompleteRoleF825222C" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider/framework-isComplete/Resource", + "aws:asset:path": "asset.f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6", + "aws:asset:is-bundled": false, + "aws:asset:property": "Code" + } + }, + "AmplifyTableWaiterStateMachineRole470BE899": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "states.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Role/Resource" + } + }, + "AmplifyTableWaiterStateMachineRoleDefaultPolicy89F3836A": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "TableManagerCustomProviderframeworkisComplete2E51021B", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "TableManagerCustomProviderframeworkisComplete2E51021B", + "Arn" + ] + }, + ":*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "AmplifyTableWaiterStateMachineRoleDefaultPolicy89F3836A", + "Roles": [ + { + "Ref": "AmplifyTableWaiterStateMachineRole470BE899" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Role/DefaultPolicy/Resource" + } + }, + "AmplifyTableWaiterStateMachine060600BC": { + "Type": "AWS::StepFunctions::StateMachine", + "Properties": { + "DefinitionString": { + "Fn::Join": [ + "", + [ + "{\"StartAt\":\"framework-isComplete-task\",\"States\":{\"framework-isComplete-task\":{\"End\":true,\"Retry\":[{\"ErrorEquals\":[\"States.ALL\"],\"IntervalSeconds\":10,\"MaxAttempts\":360,\"BackoffRate\":1}],\"Type\":\"Task\",\"Resource\":\"", + { + "Fn::GetAtt": [ + "TableManagerCustomProviderframeworkisComplete2E51021B", + "Arn" + ] + }, + "\"}}}" + ] + ] + }, + "RoleArn": { + "Fn::GetAtt": [ + "AmplifyTableWaiterStateMachineRole470BE899", + "Arn" + ] + } + }, + "DependsOn": [ + "AmplifyTableWaiterStateMachineRoleDefaultPolicy89F3836A", + "AmplifyTableWaiterStateMachineRole470BE899" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/zWNyw6CMBBFv8V9GbFE92Li0hj4ADK0IymPNmFaiWn67wbQ1Tk3Z3ElyHMO+QEXzpQestG0EB/EnnTtUQ0CF26iwQli5UYSt5fd+HSjUZ917pbEiFOrEeI9WOWNs2v7exJcNMhMnuG6QnABZVAD+RKZkqiIXZgVia3WHjtju+3sF5KwThP0fHxLCacL5IeejcnmYL2ZCKqdX3lj/13PAAAA" + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId": { + "Type": "String" + } + }, + "Outputs": { + "amplifyfitnesstrackere2esandboxb87516873edataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent0E608822Arn": { + "Value": { + "Fn::GetAtt": [ + "TableManagerCustomProviderframeworkonEvent1DFC2ECC", + "Arn" + ] + } + } + } +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.outputs.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.outputs.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.parameters.json new file mode 100644 index 00000000000..33ad1a01057 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.parameters.json @@ -0,0 +1,30 @@ +[ + { + "ParameterKey": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef", + "ParameterValue": "amplify-fitnesstra2604142-amplifyAuthauthenticatedU-NanIXo9aixs2" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref", + "ParameterValue": "us-east-1:64bddaa4-7f3b-47a0-b404-3275cd735004" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataExerciseNestedStackExerciseNestedStackResource29F00F64Outputsamplifyfitnesstrackere2esandboxb87516873edataamplifyDataExerciseExerciseDataSource0ED76988Name", + "ParameterValue": "ExerciseTable" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataExerciseNestedStackExerciseNestedStackResource29F00F64Outputsamplifyfitnesstrackere2esandboxb87516873edataamplifyDataExerciseExerciseTable43007536TableArn", + "ParameterValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Exercise-xwgwkksjrbcoxnb64a6clvir4u-x" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId", + "ParameterValue": "pa7lr2bmbjfqxdfidheoysbvhu" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref", + "ParameterValue": "amplify-fitnesstra2604142-amplifyAuthunauthenticate-1g49fB6fAFbP" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.template.json new file mode 100644 index 00000000000..28cf3326c3e --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.template.json @@ -0,0 +1,446 @@ +{ + "Resources": { + "WorkoutProgramexercisesauth0FunctionWorkoutProgramexercisesauth0FunctionAppSyncFunctionFB9C3EA7": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "WorkoutProgramexercisesauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/7e695c442cb66bcf09634d6ce3b169bbd5d354833e59146903a003f40233d687.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/ConnectionStack/WorkoutProgramexercisesauth0Function/WorkoutProgramexercisesauth0Function.AppSyncFunction" + } + }, + "WorkoutProgramExercisesDataResolverFnWorkoutProgramExercisesDataResolverFnAppSyncFunctionA9FFE7A3": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataExerciseNestedStackExerciseNestedStackResource29F00F64Outputsamplifyfitnesstrackere2esandboxb87516873edataamplifyDataExerciseExerciseDataSource0ED76988Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "WorkoutProgramExercisesDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/6a2602ae4f01a20294e6cc3a7428fe00cfc3ca99458727b08747e400c422e4d7.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/49e7a1f2fb4c809b82bed6b0242a2a3bcfa2c5276ebd2539ff330fee36f8fe18.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/ConnectionStack/WorkoutProgramExercisesDataResolverFn/WorkoutProgramExercisesDataResolverFn.AppSyncFunction" + } + }, + "WorkoutProgramexercisesResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "FieldName": "exercises", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "WorkoutProgramexercisesauth0FunctionWorkoutProgramexercisesauth0FunctionAppSyncFunctionFB9C3EA7", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "WorkoutProgramExercisesDataResolverFnWorkoutProgramExercisesDataResolverFnAppSyncFunctionA9FFE7A3", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"WorkoutProgram\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"exercises\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataExerciseNestedStackExerciseNestedStackResource29F00F64Outputsamplifyfitnesstrackere2esandboxb87516873edataamplifyDataExerciseExerciseTable43007536TableArn" + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "WorkoutProgram" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/ConnectionStack/workoutProgramExercisesResolver" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXMQQ6CQAxA0bO4HyoO0b2QuHQBByB1KKSAHUJnIIZwd4OuXv7mW7DXFNITrpq4ZkhGfsH2JA3UVAHdYHDVetOsRlUKCvcDoxnk0Q0UclQyOE36EQdb0cojigvspfDSchdnPMIUrZSkflxo3nfze1QBO5ZuN+Ibgl7Pi7VwuUF66pU5maMEfhOUf7+QP0CWpwAAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/ConnectionStack/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId": { + "Type": "String" + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name": { + "Type": "String" + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataExerciseNestedStackExerciseNestedStackResource29F00F64Outputsamplifyfitnesstrackere2esandboxb87516873edataamplifyDataExerciseExerciseDataSource0ED76988Name": { + "Type": "String" + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataExerciseNestedStackExerciseNestedStackResource29F00F64Outputsamplifyfitnesstrackere2esandboxb87516873edataamplifyDataExerciseExerciseTable43007536TableArn": { + "Type": "String" + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef": { + "Type": "String" + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref": { + "Type": "String" + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref": { + "Type": "String" + } + } +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataExerciseNestedStackExerciseNest-x.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataExerciseNestedStackExerciseNest-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataExerciseNestedStackExerciseNest-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataExerciseNestedStackExerciseNest-x.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataExerciseNestedStackExerciseNest-x.outputs.json new file mode 100644 index 00000000000..0d860c86237 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataExerciseNestedStackExerciseNest-x.outputs.json @@ -0,0 +1,22 @@ +[ + { + "OutputKey": "amplifyfitnesstrackere2esandboxb87516873edataamplifyDataExerciseExerciseTable43007536TableArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Exercise-xwgwkksjrbcoxnb64a6clvir4u-x" + }, + { + "OutputKey": "GetAttExerciseTableName", + "OutputValue": "Exercise-xwgwkksjrbcoxnb64a6clvir4u-x", + "Description": "Your DynamoDB table name.", + "ExportName": "pa7lr2bmbjfqxdfidheoysbvhu:GetAtt:ExerciseTable:Name" + }, + { + "OutputKey": "amplifyfitnesstrackere2esandboxb87516873edataamplifyDataExerciseExerciseDataSource0ED76988Name", + "OutputValue": "ExerciseTable" + }, + { + "OutputKey": "GetAttExerciseTableStreamArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Exercise-xwgwkksjrbcoxnb64a6clvir4u-x/stream/2026-04-15T03:52:31.073", + "Description": "Your DynamoDB table StreamArn.", + "ExportName": "pa7lr2bmbjfqxdfidheoysbvhu:GetAtt:ExerciseTable:StreamArn" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataExerciseNestedStackExerciseNest-x.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataExerciseNestedStackExerciseNest-x.parameters.json new file mode 100644 index 00000000000..8004d0d34a3 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataExerciseNestedStackExerciseNest-x.parameters.json @@ -0,0 +1,46 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef", + "ParameterValue": "amplify-fitnesstra2604142-amplifyAuthauthenticatedU-NanIXo9aixs2" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref", + "ParameterValue": "us-east-1:64bddaa4-7f3b-47a0-b404-3275cd735004" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "true" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource8B964194Outputsamplifyfitnesstrackere2esandboxb87516873edataamplifyDataAmplifyTableManagerTab7D931540", + "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-fitnesstra2604142-TableManagerCustomProvid-Q0L3VJEDauvR" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId", + "ParameterValue": "pa7lr2bmbjfqxdfidheoysbvhu" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref", + "ParameterValue": "amplify-fitnesstra2604142-amplifyAuthunauthenticate-1g49fB6fAFbP" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataExerciseNestedStackExerciseNest-x.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataExerciseNestedStackExerciseNest-x.template.json new file mode 100644 index 00000000000..f4db5827f40 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataExerciseNestedStackExerciseNest-x.template.json @@ -0,0 +1,2170 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource8B964194Outputsamplifyfitnesstrackere2esandboxb87516873edataamplifyDataAmplifyTableManagerTab7D931540": { + "Type": "String" + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId": { + "Type": "String" + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name": { + "Type": "String" + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef": { + "Type": "String" + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref": { + "Type": "String" + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + "NONE", + "NONE" + ] + } + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + }, + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Resources": { + "ExerciseTable": { + "Type": "Custom::ImportedAmplifyDynamoDBTable", + "Properties": { + "ServiceToken": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource8B964194Outputsamplifyfitnesstrackere2esandboxb87516873edataamplifyDataAmplifyTableManagerTab7D931540" + }, + "tableName": "Exercise-xwgwkksjrbcoxnb64a6clvir4u-x", + "attributeDefinitions": [ + { + "attributeName": "id", + "attributeType": "S" + }, + { + "attributeName": "workoutProgramExercisesId", + "attributeType": "S" + } + ], + "keySchema": [ + { + "attributeName": "id", + "keyType": "HASH" + } + ], + "globalSecondaryIndexes": [ + { + "indexName": "gsi-WorkoutProgram.exercises", + "keySchema": [ + { + "attributeName": "workoutProgramExercisesId", + "keyType": "HASH" + } + ], + "projection": { + "projectionType": "ALL" + }, + "provisionedThroughput": { + "readCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "writeCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + } + ], + "provisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "sseSpecification": { + "sseEnabled": false + }, + "streamSpecification": { + "streamViewType": "NEW_AND_OLD_IMAGES" + }, + "deletionProtectionEnabled": true, + "allowDestructiveGraphqlSchemaUpdates": true, + "replaceTableUponGsiUpdate": false, + "isImported": true, + "pointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "billingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Exercise/ExerciseTable/Default/Default" + } + }, + "ExerciseIAMRole28D09384": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem", + "dynamodb:ConditionCheckItem", + "dynamodb:DescribeTable", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": "Exercise-xwgwkksjrbcoxnb64a6clvir4u-x" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": "Exercise-xwgwkksjrbcoxnb64a6clvir4u-x" + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess" + } + ], + "RoleName": { + "Fn::Join": [ + "", + [ + "ExerciseIAMRoled0d0e6-", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "-NONE" + ] + ] + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Exercise/ExerciseIAMRole/Resource" + } + }, + "ExerciseDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "ExerciseTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + } + }, + "Name": "ExerciseTable", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "ExerciseIAMRole28D09384", + "Arn" + ] + }, + "Type": "AMAZON_DYNAMODB" + }, + "DependsOn": [ + "ExerciseIAMRole28D09384" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Exercise/ExerciseDataSource/Resource" + } + }, + "QuerygetExerciseauth0FunctionQuerygetExerciseauth0FunctionAppSyncFunction0AC70BDB": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetExerciseauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/b5e19309383f9e8964a3deca60bb43787960d705db799c21d87e0f0c32127523.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Exercise/QuerygetExerciseauth0Function/QuerygetExerciseauth0Function.AppSyncFunction" + } + }, + "QuerygetExercisepostAuth0FunctionQuerygetExercisepostAuth0FunctionAppSyncFunction6287EBF7": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetExercisepostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Exercise/QuerygetExercisepostAuth0Function/QuerygetExercisepostAuth0Function.AppSyncFunction" + } + }, + "QueryGetExerciseDataResolverFnQueryGetExerciseDataResolverFnAppSyncFunction73149704": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ExerciseDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryGetExerciseDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/08f4d557693d96c1a4efba0f9dc91330e4b19772fd5477c156468843e3d9cb5e.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4c6a2d29f01c6091bd1d9afe16e5849d456c96f17c3b215938c8067399532719.vtl" + } + }, + "DependsOn": [ + "ExerciseDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Exercise/QueryGetExerciseDataResolverFn/QueryGetExerciseDataResolverFn.AppSyncFunction" + } + }, + "GetExerciseResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "FieldName": "getExercise", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerygetExerciseauth0FunctionQuerygetExerciseauth0FunctionAppSyncFunction0AC70BDB", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetExercisepostAuth0FunctionQuerygetExercisepostAuth0FunctionAppSyncFunction6287EBF7", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryGetExerciseDataResolverFnQueryGetExerciseDataResolverFnAppSyncFunction73149704", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getExercise\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "ExerciseTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Exercise/queryGetExerciseResolver" + } + }, + "QuerylistExercisesauth0FunctionQuerylistExercisesauth0FunctionAppSyncFunction51A6AD03": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerylistExercisesauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/b5e19309383f9e8964a3deca60bb43787960d705db799c21d87e0f0c32127523.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Exercise/QuerylistExercisesauth0Function/QuerylistExercisesauth0Function.AppSyncFunction" + } + }, + "QuerylistExercisespostAuth0FunctionQuerylistExercisespostAuth0FunctionAppSyncFunction0E7A24F2": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerylistExercisespostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Exercise/QuerylistExercisespostAuth0Function/QuerylistExercisespostAuth0Function.AppSyncFunction" + } + }, + "QueryListExercisesDataResolverFnQueryListExercisesDataResolverFnAppSyncFunction0818DDCE": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ExerciseDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryListExercisesDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9fcbe070ecd3023c5bf5b966fa9584757db9762eef123bad0820bd87591b2174.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/cc01911d0269d4080ea57505dc445dfc315ef7ad85d3d9d4ea1357858bff451d.vtl" + } + }, + "DependsOn": [ + "ExerciseDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Exercise/QueryListExercisesDataResolverFn/QueryListExercisesDataResolverFn.AppSyncFunction" + } + }, + "ListExerciseResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "FieldName": "listExercises", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerylistExercisesauth0FunctionQuerylistExercisesauth0FunctionAppSyncFunction51A6AD03", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerylistExercisespostAuth0FunctionQuerylistExercisespostAuth0FunctionAppSyncFunction0E7A24F2", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryListExercisesDataResolverFnQueryListExercisesDataResolverFnAppSyncFunction0818DDCE", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listExercises\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "ExerciseTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Exercise/queryListExercisesResolver" + } + }, + "MutationcreateExerciseinit0FunctionMutationcreateExerciseinit0FunctionAppSyncFunction007007C2": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateExerciseinit0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a183ddccbd956316c38ef97177b8f088ef0826f62023323f5ae6053d348ccffc.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Exercise/MutationcreateExerciseinit0Function/MutationcreateExerciseinit0Function.AppSyncFunction" + } + }, + "MutationcreateExerciseauth0FunctionMutationcreateExerciseauth0FunctionAppSyncFunction06E6FB6C": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateExerciseauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/cbab3e978fe54ca3b978a085f88bfc88a1e499c59f5b5b6de37b52e4f8407be5.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Exercise/MutationcreateExerciseauth0Function/MutationcreateExerciseauth0Function.AppSyncFunction" + } + }, + "MutationcreateExercisepostAuth0FunctionMutationcreateExercisepostAuth0FunctionAppSyncFunctionFAC86A10": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateExercisepostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Exercise/MutationcreateExercisepostAuth0Function/MutationcreateExercisepostAuth0Function.AppSyncFunction" + } + }, + "MutationCreateExerciseDataResolverFnMutationCreateExerciseDataResolverFnAppSyncFunction9F8EC7E0": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ExerciseDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationCreateExerciseDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/922105ee0755486ce2373543b62576410311b7b99485651040a448d9d6cba53c.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "ExerciseDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Exercise/MutationCreateExerciseDataResolverFn/MutationCreateExerciseDataResolverFn.AppSyncFunction" + } + }, + "CreateExerciseResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "FieldName": "createExercise", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationcreateExerciseinit0FunctionMutationcreateExerciseinit0FunctionAppSyncFunction007007C2", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationcreateExerciseauth0FunctionMutationcreateExerciseauth0FunctionAppSyncFunction06E6FB6C", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationcreateExercisepostAuth0FunctionMutationcreateExercisepostAuth0FunctionAppSyncFunctionFAC86A10", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationCreateExerciseDataResolverFnMutationCreateExerciseDataResolverFnAppSyncFunction9F8EC7E0", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createExercise\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "ExerciseTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Exercise/mutationCreateExerciseResolver" + } + }, + "MutationupdateExerciseinit0FunctionMutationupdateExerciseinit0FunctionAppSyncFunction2DE5E607": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateExerciseinit0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/06db846fd14e6fc371f22b12b5545ba8e2dbfeda85d8c8d586c71c282166657b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Exercise/MutationupdateExerciseinit0Function/MutationupdateExerciseinit0Function.AppSyncFunction" + } + }, + "MutationupdateExerciseauth0FunctionMutationupdateExerciseauth0FunctionAppSyncFunction2CE5BE66": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ExerciseDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateExerciseauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/cf8e7a76ca4a2b7673c08cc49c9634ef4b43e6f3ce7820cfb335769ff528212b.vtl" + } + }, + "DependsOn": [ + "ExerciseDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Exercise/MutationupdateExerciseauth0Function/MutationupdateExerciseauth0Function.AppSyncFunction" + } + }, + "MutationupdateExercisepostAuth0FunctionMutationupdateExercisepostAuth0FunctionAppSyncFunction25628A67": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateExercisepostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Exercise/MutationupdateExercisepostAuth0Function/MutationupdateExercisepostAuth0Function.AppSyncFunction" + } + }, + "MutationUpdateExerciseDataResolverFnMutationUpdateExerciseDataResolverFnAppSyncFunctionD0CB335C": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ExerciseDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationUpdateExerciseDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/474bf0776ec2164a13191d1a0a9e057154931e4918fea5086f49850d02a5371b.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "ExerciseDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Exercise/MutationUpdateExerciseDataResolverFn/MutationUpdateExerciseDataResolverFn.AppSyncFunction" + } + }, + "UpdateExerciseResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "FieldName": "updateExercise", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationupdateExerciseinit0FunctionMutationupdateExerciseinit0FunctionAppSyncFunction2DE5E607", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationupdateExerciseauth0FunctionMutationupdateExerciseauth0FunctionAppSyncFunction2CE5BE66", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationupdateExercisepostAuth0FunctionMutationupdateExercisepostAuth0FunctionAppSyncFunction25628A67", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationUpdateExerciseDataResolverFnMutationUpdateExerciseDataResolverFnAppSyncFunctionD0CB335C", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateExercise\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "ExerciseTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Exercise/mutationUpdateExerciseResolver" + } + }, + "MutationdeleteExerciseauth0FunctionMutationdeleteExerciseauth0FunctionAppSyncFunctionC2D9DFF8": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ExerciseDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeleteExerciseauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/6257bfd1ef2992bd01df135516c0df15c5ff692f426e0c71c93960be8f8c81df.vtl" + } + }, + "DependsOn": [ + "ExerciseDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Exercise/MutationdeleteExerciseauth0Function/MutationdeleteExerciseauth0Function.AppSyncFunction" + } + }, + "MutationdeleteExercisepostAuth0FunctionMutationdeleteExercisepostAuth0FunctionAppSyncFunction990C3B7B": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeleteExercisepostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Exercise/MutationdeleteExercisepostAuth0Function/MutationdeleteExercisepostAuth0Function.AppSyncFunction" + } + }, + "MutationDeleteExerciseDataResolverFnMutationDeleteExerciseDataResolverFnAppSyncFunction91D88DD6": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ExerciseDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationDeleteExerciseDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4f7907d1209a2c9953a0c053df402c634e359546d70c7cc5c2e8e21ea734880f.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "ExerciseDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Exercise/MutationDeleteExerciseDataResolverFn/MutationDeleteExerciseDataResolverFn.AppSyncFunction" + } + }, + "DeleteExerciseResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "FieldName": "deleteExercise", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationdeleteExerciseauth0FunctionMutationdeleteExerciseauth0FunctionAppSyncFunctionC2D9DFF8", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationdeleteExercisepostAuth0FunctionMutationdeleteExercisepostAuth0FunctionAppSyncFunction990C3B7B", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationDeleteExerciseDataResolverFnMutationDeleteExerciseDataResolverFnAppSyncFunction91D88DD6", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteExercise\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "ExerciseTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Exercise/mutationDeleteExerciseResolver" + } + }, + "SubscriptiononCreateExerciseauth0FunctionSubscriptiononCreateExerciseauth0FunctionAppSyncFunctionC50A81C7": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononCreateExerciseauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/ba02e7c1690152b12072e4f476fba2abbb138ea0b0aba433b0676ffcff949e08.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Exercise/SubscriptiononCreateExerciseauth0Function/SubscriptiononCreateExerciseauth0Function.AppSyncFunction" + } + }, + "SubscriptiononCreateExercisepostAuth0FunctionSubscriptiononCreateExercisepostAuth0FunctionAppSyncFunction5A196A51": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononCreateExercisepostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Exercise/SubscriptiononCreateExercisepostAuth0Function/SubscriptiononCreateExercisepostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnCreateExerciseDataResolverFnSubscriptionOnCreateExerciseDataResolverFnAppSyncFunctionAB5DF306": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnCreateExerciseDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Exercise/SubscriptionOnCreateExerciseDataResolverFn/SubscriptionOnCreateExerciseDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononCreateExerciseResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "FieldName": "onCreateExercise", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononCreateExerciseauth0FunctionSubscriptiononCreateExerciseauth0FunctionAppSyncFunctionC50A81C7", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononCreateExercisepostAuth0FunctionSubscriptiononCreateExercisepostAuth0FunctionAppSyncFunction5A196A51", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnCreateExerciseDataResolverFnSubscriptionOnCreateExerciseDataResolverFnAppSyncFunctionAB5DF306", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateExercise\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Exercise/subscriptionOnCreateExerciseResolver" + } + }, + "SubscriptiononUpdateExerciseauth0FunctionSubscriptiononUpdateExerciseauth0FunctionAppSyncFunction9193D2A0": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononUpdateExerciseauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/ba02e7c1690152b12072e4f476fba2abbb138ea0b0aba433b0676ffcff949e08.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Exercise/SubscriptiononUpdateExerciseauth0Function/SubscriptiononUpdateExerciseauth0Function.AppSyncFunction" + } + }, + "SubscriptiononUpdateExercisepostAuth0FunctionSubscriptiononUpdateExercisepostAuth0FunctionAppSyncFunctionDE028CEA": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononUpdateExercisepostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Exercise/SubscriptiononUpdateExercisepostAuth0Function/SubscriptiononUpdateExercisepostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnUpdateExerciseDataResolverFnSubscriptionOnUpdateExerciseDataResolverFnAppSyncFunctionA7AA88CA": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnUpdateExerciseDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Exercise/SubscriptionOnUpdateExerciseDataResolverFn/SubscriptionOnUpdateExerciseDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononUpdateExerciseResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "FieldName": "onUpdateExercise", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononUpdateExerciseauth0FunctionSubscriptiononUpdateExerciseauth0FunctionAppSyncFunction9193D2A0", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononUpdateExercisepostAuth0FunctionSubscriptiononUpdateExercisepostAuth0FunctionAppSyncFunctionDE028CEA", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnUpdateExerciseDataResolverFnSubscriptionOnUpdateExerciseDataResolverFnAppSyncFunctionA7AA88CA", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateExercise\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Exercise/subscriptionOnUpdateExerciseResolver" + } + }, + "SubscriptiononDeleteExerciseauth0FunctionSubscriptiononDeleteExerciseauth0FunctionAppSyncFunction54DF160B": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononDeleteExerciseauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/ba02e7c1690152b12072e4f476fba2abbb138ea0b0aba433b0676ffcff949e08.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Exercise/SubscriptiononDeleteExerciseauth0Function/SubscriptiononDeleteExerciseauth0Function.AppSyncFunction" + } + }, + "SubscriptiononDeleteExercisepostAuth0FunctionSubscriptiononDeleteExercisepostAuth0FunctionAppSyncFunctionAF03921E": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononDeleteExercisepostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Exercise/SubscriptiononDeleteExercisepostAuth0Function/SubscriptiononDeleteExercisepostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnDeleteExerciseDataResolverFnSubscriptionOnDeleteExerciseDataResolverFnAppSyncFunctionA2A2A8C9": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnDeleteExerciseDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Exercise/SubscriptionOnDeleteExerciseDataResolverFn/SubscriptionOnDeleteExerciseDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononDeleteExerciseResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "FieldName": "onDeleteExercise", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononDeleteExerciseauth0FunctionSubscriptiononDeleteExerciseauth0FunctionAppSyncFunction54DF160B", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononDeleteExercisepostAuth0FunctionSubscriptiononDeleteExercisepostAuth0FunctionAppSyncFunctionAF03921E", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnDeleteExerciseDataResolverFnSubscriptionOnDeleteExerciseDataResolverFnAppSyncFunctionA2A2A8C9", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteExercise\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Exercise/subscriptionOnDeleteExerciseResolver" + } + }, + "ExerciseOwnerDataResolverFnExerciseOwnerDataResolverFnAppSyncFunction8652EC02": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "ExerciseOwnerDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/041534e5fd916595f752318f161512d7c7f83b9f2cf32d0f0be381c12253ff68.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/064303962e481067b44300212516363b99aaee539b6bafaf756fdd83ff0b60f0.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Exercise/ExerciseOwnerDataResolverFn/ExerciseOwnerDataResolverFn.AppSyncFunction" + } + }, + "ExerciseownerResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "FieldName": "owner", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ExerciseOwnerDataResolverFnExerciseOwnerDataResolverFnAppSyncFunction8652EC02", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Exercise\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"owner\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Exercise" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Exercise/exerciseOwnerResolver" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOwW6DMAyGn6X31GNU230F7bhNsHtlEoNSwEGx06pCvPsEnTrt9PuTP9l/DvlLBtkOr7K3rt8PvoH5g0TJ1Yq2N0XLXxhxJKW4QhHYefWBTUUSUrRkiiQaxj9s+THjVU6zuzGOwTXwjc1ARxQyHkeYqzDc7TDQYnCa5MYW5nLTy6ZExfpx8j+9J7ZriSJw67sUcWv0+3m4UFyMHE4oQirwtoaRAxyT7UnXAsvqfiadkpptXSt2nrvFcHAEZ3m65Dk8v0K2O4v3+5hY/UhQ3fMHIPwRXTYBAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Exercise/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Outputs": { + "GetAttExerciseTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "ExerciseTable", + "TableStreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "GetAtt:ExerciseTable:StreamArn" + ] + ] + } + } + }, + "GetAttExerciseTableName": { + "Description": "Your DynamoDB table name.", + "Value": "Exercise-xwgwkksjrbcoxnb64a6clvir4u-x", + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "GetAtt:ExerciseTable:Name" + ] + ] + } + } + }, + "amplifyfitnesstrackere2esandboxb87516873edataamplifyDataExerciseExerciseDataSource0ED76988Name": { + "Value": { + "Fn::GetAtt": [ + "ExerciseDataSource", + "Name" + ] + } + }, + "amplifyfitnesstrackere2esandboxb87516873edataamplifyDataExerciseExerciseTable43007536TableArn": { + "Value": { + "Fn::GetAtt": [ + "ExerciseTable", + "TableArn" + ] + } + } + } +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataMealNestedStackMealNestedStackR-x.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataMealNestedStackMealNestedStackR-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataMealNestedStackMealNestedStackR-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataMealNestedStackMealNestedStackR-x.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataMealNestedStackMealNestedStackR-x.outputs.json new file mode 100644 index 00000000000..9e959483f6f --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataMealNestedStackMealNestedStackR-x.outputs.json @@ -0,0 +1,18 @@ +[ + { + "OutputKey": "amplifyfitnesstrackere2esandboxb87516873edataamplifyDataMealMealTable74E2D2AETableArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Meal-xwgwkksjrbcoxnb64a6clvir4u-x" + }, + { + "OutputKey": "GetAttMealTableName", + "OutputValue": "Meal-xwgwkksjrbcoxnb64a6clvir4u-x", + "Description": "Your DynamoDB table name.", + "ExportName": "pa7lr2bmbjfqxdfidheoysbvhu:GetAtt:MealTable:Name" + }, + { + "OutputKey": "GetAttMealTableStreamArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Meal-xwgwkksjrbcoxnb64a6clvir4u-x/stream/2026-04-15T03:52:30.998", + "Description": "Your DynamoDB table StreamArn.", + "ExportName": "pa7lr2bmbjfqxdfidheoysbvhu:GetAtt:MealTable:StreamArn" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataMealNestedStackMealNestedStackR-x.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataMealNestedStackMealNestedStackR-x.parameters.json new file mode 100644 index 00000000000..8004d0d34a3 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataMealNestedStackMealNestedStackR-x.parameters.json @@ -0,0 +1,46 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef", + "ParameterValue": "amplify-fitnesstra2604142-amplifyAuthauthenticatedU-NanIXo9aixs2" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref", + "ParameterValue": "us-east-1:64bddaa4-7f3b-47a0-b404-3275cd735004" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "true" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource8B964194Outputsamplifyfitnesstrackere2esandboxb87516873edataamplifyDataAmplifyTableManagerTab7D931540", + "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-fitnesstra2604142-TableManagerCustomProvid-Q0L3VJEDauvR" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId", + "ParameterValue": "pa7lr2bmbjfqxdfidheoysbvhu" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref", + "ParameterValue": "amplify-fitnesstra2604142-amplifyAuthunauthenticate-1g49fB6fAFbP" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataMealNestedStackMealNestedStackR-x.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataMealNestedStackMealNestedStackR-x.template.json new file mode 100644 index 00000000000..37773e3d910 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataMealNestedStackMealNestedStackR-x.template.json @@ -0,0 +1,2045 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource8B964194Outputsamplifyfitnesstrackere2esandboxb87516873edataamplifyDataAmplifyTableManagerTab7D931540": { + "Type": "String" + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId": { + "Type": "String" + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name": { + "Type": "String" + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef": { + "Type": "String" + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref": { + "Type": "String" + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + "NONE", + "NONE" + ] + } + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + }, + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Resources": { + "MealTable": { + "Type": "Custom::ImportedAmplifyDynamoDBTable", + "Properties": { + "ServiceToken": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource8B964194Outputsamplifyfitnesstrackere2esandboxb87516873edataamplifyDataAmplifyTableManagerTab7D931540" + }, + "tableName": "Meal-xwgwkksjrbcoxnb64a6clvir4u-x", + "attributeDefinitions": [ + { + "attributeName": "id", + "attributeType": "S" + } + ], + "keySchema": [ + { + "attributeName": "id", + "keyType": "HASH" + } + ], + "provisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "sseSpecification": { + "sseEnabled": false + }, + "streamSpecification": { + "streamViewType": "NEW_AND_OLD_IMAGES" + }, + "deletionProtectionEnabled": true, + "allowDestructiveGraphqlSchemaUpdates": true, + "replaceTableUponGsiUpdate": false, + "isImported": true, + "pointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "billingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Meal/MealTable/Default/Default" + } + }, + "MealIAMRoleEDE19E15": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem", + "dynamodb:ConditionCheckItem", + "dynamodb:DescribeTable", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": "Meal-xwgwkksjrbcoxnb64a6clvir4u-x" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": "Meal-xwgwkksjrbcoxnb64a6clvir4u-x" + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess" + } + ], + "RoleName": { + "Fn::Join": [ + "", + [ + "MealIAMRole54b7fd-", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "-NONE" + ] + ] + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Meal/MealIAMRole/Resource" + } + }, + "MealDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "MealTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + } + }, + "Name": "MealTable", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "MealIAMRoleEDE19E15", + "Arn" + ] + }, + "Type": "AMAZON_DYNAMODB" + }, + "DependsOn": [ + "MealIAMRoleEDE19E15" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Meal/MealDataSource/Resource" + } + }, + "QuerygetMealauth0FunctionQuerygetMealauth0FunctionAppSyncFunction3EC25F21": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetMealauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/0224a3e5097427da3f4460b5d6d2b86ad4195c9cb8da7bc13e7187eead1c3ae3.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Meal/QuerygetMealauth0Function/QuerygetMealauth0Function.AppSyncFunction" + } + }, + "QuerygetMealpostAuth0FunctionQuerygetMealpostAuth0FunctionAppSyncFunction9E0F196D": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetMealpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Meal/QuerygetMealpostAuth0Function/QuerygetMealpostAuth0Function.AppSyncFunction" + } + }, + "QueryGetMealDataResolverFnQueryGetMealDataResolverFnAppSyncFunction8B80E67B": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "MealDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryGetMealDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/08f4d557693d96c1a4efba0f9dc91330e4b19772fd5477c156468843e3d9cb5e.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4c6a2d29f01c6091bd1d9afe16e5849d456c96f17c3b215938c8067399532719.vtl" + } + }, + "DependsOn": [ + "MealDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Meal/QueryGetMealDataResolverFn/QueryGetMealDataResolverFn.AppSyncFunction" + } + }, + "GetMealResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "FieldName": "getMeal", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerygetMealauth0FunctionQuerygetMealauth0FunctionAppSyncFunction3EC25F21", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetMealpostAuth0FunctionQuerygetMealpostAuth0FunctionAppSyncFunction9E0F196D", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryGetMealDataResolverFnQueryGetMealDataResolverFnAppSyncFunction8B80E67B", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getMeal\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "MealTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Meal/queryGetMealResolver" + } + }, + "QuerylistMealsauth0FunctionQuerylistMealsauth0FunctionAppSyncFunctionB47607B5": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerylistMealsauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/0224a3e5097427da3f4460b5d6d2b86ad4195c9cb8da7bc13e7187eead1c3ae3.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Meal/QuerylistMealsauth0Function/QuerylistMealsauth0Function.AppSyncFunction" + } + }, + "QuerylistMealspostAuth0FunctionQuerylistMealspostAuth0FunctionAppSyncFunction15CC850C": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerylistMealspostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Meal/QuerylistMealspostAuth0Function/QuerylistMealspostAuth0Function.AppSyncFunction" + } + }, + "QueryListMealsDataResolverFnQueryListMealsDataResolverFnAppSyncFunction3EE87F58": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "MealDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryListMealsDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9fcbe070ecd3023c5bf5b966fa9584757db9762eef123bad0820bd87591b2174.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/cc01911d0269d4080ea57505dc445dfc315ef7ad85d3d9d4ea1357858bff451d.vtl" + } + }, + "DependsOn": [ + "MealDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Meal/QueryListMealsDataResolverFn/QueryListMealsDataResolverFn.AppSyncFunction" + } + }, + "ListMealResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "FieldName": "listMeals", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerylistMealsauth0FunctionQuerylistMealsauth0FunctionAppSyncFunctionB47607B5", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerylistMealspostAuth0FunctionQuerylistMealspostAuth0FunctionAppSyncFunction15CC850C", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryListMealsDataResolverFnQueryListMealsDataResolverFnAppSyncFunction3EE87F58", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listMeals\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "MealTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Meal/queryListMealsResolver" + } + }, + "MutationcreateMealinit0FunctionMutationcreateMealinit0FunctionAppSyncFunctionC8456643": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateMealinit0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a183ddccbd956316c38ef97177b8f088ef0826f62023323f5ae6053d348ccffc.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Meal/MutationcreateMealinit0Function/MutationcreateMealinit0Function.AppSyncFunction" + } + }, + "MutationcreateMealauth0FunctionMutationcreateMealauth0FunctionAppSyncFunction746792DB": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateMealauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/d637c1fb7301003b8a5ada269338cf2e8df6cc0dc412ef13acc6158d680b6d3e.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Meal/MutationcreateMealauth0Function/MutationcreateMealauth0Function.AppSyncFunction" + } + }, + "MutationcreateMealpostAuth0FunctionMutationcreateMealpostAuth0FunctionAppSyncFunctionF0FDFBD0": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateMealpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Meal/MutationcreateMealpostAuth0Function/MutationcreateMealpostAuth0Function.AppSyncFunction" + } + }, + "MutationCreateMealDataResolverFnMutationCreateMealDataResolverFnAppSyncFunction3A7E3265": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "MealDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationCreateMealDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/234a2e583ce643aca3c00032245fde469b9cb2a389dc5bd8f486ec3b2e335f92.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "MealDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Meal/MutationCreateMealDataResolverFn/MutationCreateMealDataResolverFn.AppSyncFunction" + } + }, + "CreateMealResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "FieldName": "createMeal", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationcreateMealinit0FunctionMutationcreateMealinit0FunctionAppSyncFunctionC8456643", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationcreateMealauth0FunctionMutationcreateMealauth0FunctionAppSyncFunction746792DB", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationcreateMealpostAuth0FunctionMutationcreateMealpostAuth0FunctionAppSyncFunctionF0FDFBD0", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationCreateMealDataResolverFnMutationCreateMealDataResolverFnAppSyncFunction3A7E3265", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createMeal\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "MealTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Meal/mutationCreateMealResolver" + } + }, + "MutationupdateMealinit0FunctionMutationupdateMealinit0FunctionAppSyncFunction80065D7F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateMealinit0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/06db846fd14e6fc371f22b12b5545ba8e2dbfeda85d8c8d586c71c282166657b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Meal/MutationupdateMealinit0Function/MutationupdateMealinit0Function.AppSyncFunction" + } + }, + "MutationupdateMealauth0FunctionMutationupdateMealauth0FunctionAppSyncFunctionEFC9C205": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "MealDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateMealauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/89f92efd98b1034df0e2497fe31a97de6975de554b8a22e0677d05d6efcafa59.vtl" + } + }, + "DependsOn": [ + "MealDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Meal/MutationupdateMealauth0Function/MutationupdateMealauth0Function.AppSyncFunction" + } + }, + "MutationupdateMealpostAuth0FunctionMutationupdateMealpostAuth0FunctionAppSyncFunction5B29DBED": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateMealpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Meal/MutationupdateMealpostAuth0Function/MutationupdateMealpostAuth0Function.AppSyncFunction" + } + }, + "MutationUpdateMealDataResolverFnMutationUpdateMealDataResolverFnAppSyncFunction7CE88037": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "MealDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationUpdateMealDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/474bf0776ec2164a13191d1a0a9e057154931e4918fea5086f49850d02a5371b.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "MealDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Meal/MutationUpdateMealDataResolverFn/MutationUpdateMealDataResolverFn.AppSyncFunction" + } + }, + "UpdateMealResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "FieldName": "updateMeal", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationupdateMealinit0FunctionMutationupdateMealinit0FunctionAppSyncFunction80065D7F", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationupdateMealauth0FunctionMutationupdateMealauth0FunctionAppSyncFunctionEFC9C205", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationupdateMealpostAuth0FunctionMutationupdateMealpostAuth0FunctionAppSyncFunction5B29DBED", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationUpdateMealDataResolverFnMutationUpdateMealDataResolverFnAppSyncFunction7CE88037", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateMeal\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "MealTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Meal/mutationUpdateMealResolver" + } + }, + "MutationdeleteMealauth0FunctionMutationdeleteMealauth0FunctionAppSyncFunction5A3C8FCE": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "MealDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeleteMealauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e3416b4d47414f29c21e59a70e83bddb959ef0625854ed7fb0ca376573e99069.vtl" + } + }, + "DependsOn": [ + "MealDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Meal/MutationdeleteMealauth0Function/MutationdeleteMealauth0Function.AppSyncFunction" + } + }, + "MutationdeleteMealpostAuth0FunctionMutationdeleteMealpostAuth0FunctionAppSyncFunctionC9BB36B8": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeleteMealpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Meal/MutationdeleteMealpostAuth0Function/MutationdeleteMealpostAuth0Function.AppSyncFunction" + } + }, + "MutationDeleteMealDataResolverFnMutationDeleteMealDataResolverFnAppSyncFunctionB6415754": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "MealDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationDeleteMealDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4f7907d1209a2c9953a0c053df402c634e359546d70c7cc5c2e8e21ea734880f.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "MealDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Meal/MutationDeleteMealDataResolverFn/MutationDeleteMealDataResolverFn.AppSyncFunction" + } + }, + "DeleteMealResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "FieldName": "deleteMeal", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationdeleteMealauth0FunctionMutationdeleteMealauth0FunctionAppSyncFunction5A3C8FCE", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationdeleteMealpostAuth0FunctionMutationdeleteMealpostAuth0FunctionAppSyncFunctionC9BB36B8", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationDeleteMealDataResolverFnMutationDeleteMealDataResolverFnAppSyncFunctionB6415754", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteMeal\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "MealTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Meal/mutationDeleteMealResolver" + } + }, + "SubscriptiononCreateMealauth0FunctionSubscriptiononCreateMealauth0FunctionAppSyncFunction8AF26F94": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononCreateMealauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e6da5a6e993df8b5fdc91086b71eb53e72a3a97c98836ef9c9257776f36c452b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Meal/SubscriptiononCreateMealauth0Function/SubscriptiononCreateMealauth0Function.AppSyncFunction" + } + }, + "SubscriptiononCreateMealpostAuth0FunctionSubscriptiononCreateMealpostAuth0FunctionAppSyncFunction820A2BD2": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononCreateMealpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Meal/SubscriptiononCreateMealpostAuth0Function/SubscriptiononCreateMealpostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnCreateMealDataResolverFnSubscriptionOnCreateMealDataResolverFnAppSyncFunctionF1334F8F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnCreateMealDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Meal/SubscriptionOnCreateMealDataResolverFn/SubscriptionOnCreateMealDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononCreateMealResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "FieldName": "onCreateMeal", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononCreateMealauth0FunctionSubscriptiononCreateMealauth0FunctionAppSyncFunction8AF26F94", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononCreateMealpostAuth0FunctionSubscriptiononCreateMealpostAuth0FunctionAppSyncFunction820A2BD2", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnCreateMealDataResolverFnSubscriptionOnCreateMealDataResolverFnAppSyncFunctionF1334F8F", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateMeal\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Meal/subscriptionOnCreateMealResolver" + } + }, + "SubscriptiononUpdateMealauth0FunctionSubscriptiononUpdateMealauth0FunctionAppSyncFunction2DF3B7A1": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononUpdateMealauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e6da5a6e993df8b5fdc91086b71eb53e72a3a97c98836ef9c9257776f36c452b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Meal/SubscriptiononUpdateMealauth0Function/SubscriptiononUpdateMealauth0Function.AppSyncFunction" + } + }, + "SubscriptiononUpdateMealpostAuth0FunctionSubscriptiononUpdateMealpostAuth0FunctionAppSyncFunction6DDD0917": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononUpdateMealpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Meal/SubscriptiononUpdateMealpostAuth0Function/SubscriptiononUpdateMealpostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnUpdateMealDataResolverFnSubscriptionOnUpdateMealDataResolverFnAppSyncFunction7E09A153": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnUpdateMealDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Meal/SubscriptionOnUpdateMealDataResolverFn/SubscriptionOnUpdateMealDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononUpdateMealResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "FieldName": "onUpdateMeal", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononUpdateMealauth0FunctionSubscriptiononUpdateMealauth0FunctionAppSyncFunction2DF3B7A1", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononUpdateMealpostAuth0FunctionSubscriptiononUpdateMealpostAuth0FunctionAppSyncFunction6DDD0917", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnUpdateMealDataResolverFnSubscriptionOnUpdateMealDataResolverFnAppSyncFunction7E09A153", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateMeal\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Meal/subscriptionOnUpdateMealResolver" + } + }, + "SubscriptiononDeleteMealauth0FunctionSubscriptiononDeleteMealauth0FunctionAppSyncFunctionE50EF48C": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononDeleteMealauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e6da5a6e993df8b5fdc91086b71eb53e72a3a97c98836ef9c9257776f36c452b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Meal/SubscriptiononDeleteMealauth0Function/SubscriptiononDeleteMealauth0Function.AppSyncFunction" + } + }, + "SubscriptiononDeleteMealpostAuth0FunctionSubscriptiononDeleteMealpostAuth0FunctionAppSyncFunction6FA10C5F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononDeleteMealpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Meal/SubscriptiononDeleteMealpostAuth0Function/SubscriptiononDeleteMealpostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnDeleteMealDataResolverFnSubscriptionOnDeleteMealDataResolverFnAppSyncFunction0A2F61AD": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnDeleteMealDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Meal/SubscriptionOnDeleteMealDataResolverFn/SubscriptionOnDeleteMealDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononDeleteMealResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "FieldName": "onDeleteMeal", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononDeleteMealauth0FunctionSubscriptiononDeleteMealauth0FunctionAppSyncFunctionE50EF48C", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononDeleteMealpostAuth0FunctionSubscriptiononDeleteMealpostAuth0FunctionAppSyncFunction6FA10C5F", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnDeleteMealDataResolverFnSubscriptionOnDeleteMealDataResolverFnAppSyncFunction0A2F61AD", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteMeal\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Meal/subscriptionOnDeleteMealResolver" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOwW6DMAyGn6X31GNU230F7bhNsHtlEoNSwEGx06pCvPsEnTrt9PuTP9l/DvlLBtkOr7K3rt8PvoH5g0TJ1Yq2N0XLXxhxJKW4QhHYefWBTUUSUrRkiiQaxj9s+THjVU6zuzGOwTXwjc1ARxQyHkeYqzDc7TDQYnCa5MYW5nLTy6ZExfpx8j+9J7ZriSJw67sUcWv0+3m4UFyMHE4oQirwtoaRAxyT7UnXAsvqfiadkpptXSt2nrvFcHAEZ3m65Dk8v0K2O4v3+5hY/UhQ3fMHIPwRXTYBAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Meal/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Outputs": { + "GetAttMealTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "MealTable", + "TableStreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "GetAtt:MealTable:StreamArn" + ] + ] + } + } + }, + "GetAttMealTableName": { + "Description": "Your DynamoDB table name.", + "Value": "Meal-xwgwkksjrbcoxnb64a6clvir4u-x", + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "GetAtt:MealTable:Name" + ] + ] + } + } + }, + "amplifyfitnesstrackere2esandboxb87516873edataamplifyDataMealMealTable74E2D2AETableArn": { + "Value": { + "Fn::GetAtt": [ + "MealTable", + "TableArn" + ] + } + } + } +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataWorkoutProgramNestedStackWorkou-x.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataWorkoutProgramNestedStackWorkou-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataWorkoutProgramNestedStackWorkou-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataWorkoutProgramNestedStackWorkou-x.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataWorkoutProgramNestedStackWorkou-x.outputs.json new file mode 100644 index 00000000000..56bb37a9d16 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataWorkoutProgramNestedStackWorkou-x.outputs.json @@ -0,0 +1,14 @@ +[ + { + "OutputKey": "GetAttWorkoutProgramTableStreamArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/WorkoutProgram-xwgwkksjrbcoxnb64a6clvir4u-x/stream/2026-04-15T03:51:29.200", + "Description": "Your DynamoDB table StreamArn.", + "ExportName": "pa7lr2bmbjfqxdfidheoysbvhu:GetAtt:WorkoutProgramTable:StreamArn" + }, + { + "OutputKey": "GetAttWorkoutProgramTableName", + "OutputValue": "WorkoutProgram-xwgwkksjrbcoxnb64a6clvir4u-x", + "Description": "Your DynamoDB table name.", + "ExportName": "pa7lr2bmbjfqxdfidheoysbvhu:GetAtt:WorkoutProgramTable:Name" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataWorkoutProgramNestedStackWorkou-x.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataWorkoutProgramNestedStackWorkou-x.parameters.json new file mode 100644 index 00000000000..8004d0d34a3 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataWorkoutProgramNestedStackWorkou-x.parameters.json @@ -0,0 +1,46 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef", + "ParameterValue": "amplify-fitnesstra2604142-amplifyAuthauthenticatedU-NanIXo9aixs2" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref", + "ParameterValue": "us-east-1:64bddaa4-7f3b-47a0-b404-3275cd735004" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "true" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource8B964194Outputsamplifyfitnesstrackere2esandboxb87516873edataamplifyDataAmplifyTableManagerTab7D931540", + "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-fitnesstra2604142-TableManagerCustomProvid-Q0L3VJEDauvR" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId", + "ParameterValue": "pa7lr2bmbjfqxdfidheoysbvhu" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref", + "ParameterValue": "amplify-fitnesstra2604142-amplifyAuthunauthenticate-1g49fB6fAFbP" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataWorkoutProgramNestedStackWorkou-x.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataWorkoutProgramNestedStackWorkou-x.template.json new file mode 100644 index 00000000000..d13dfc68f41 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-amplifyDataWorkoutProgramNestedStackWorkou-x.template.json @@ -0,0 +1,2128 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource8B964194Outputsamplifyfitnesstrackere2esandboxb87516873edataamplifyDataAmplifyTableManagerTab7D931540": { + "Type": "String" + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId": { + "Type": "String" + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name": { + "Type": "String" + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef": { + "Type": "String" + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref": { + "Type": "String" + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + "NONE", + "NONE" + ] + } + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + }, + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Resources": { + "WorkoutProgramTable": { + "Type": "Custom::ImportedAmplifyDynamoDBTable", + "Properties": { + "ServiceToken": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource8B964194Outputsamplifyfitnesstrackere2esandboxb87516873edataamplifyDataAmplifyTableManagerTab7D931540" + }, + "tableName": "WorkoutProgram-xwgwkksjrbcoxnb64a6clvir4u-x", + "attributeDefinitions": [ + { + "attributeName": "id", + "attributeType": "S" + } + ], + "keySchema": [ + { + "attributeName": "id", + "keyType": "HASH" + } + ], + "provisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "sseSpecification": { + "sseEnabled": false + }, + "streamSpecification": { + "streamViewType": "NEW_AND_OLD_IMAGES" + }, + "deletionProtectionEnabled": true, + "allowDestructiveGraphqlSchemaUpdates": true, + "replaceTableUponGsiUpdate": false, + "isImported": true, + "pointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "billingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/WorkoutProgram/WorkoutProgramTable/Default/Default" + } + }, + "WorkoutProgramIAMRoleB75B98D5": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem", + "dynamodb:ConditionCheckItem", + "dynamodb:DescribeTable", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": "WorkoutProgram-xwgwkksjrbcoxnb64a6clvir4u-x" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": "WorkoutProgram-xwgwkksjrbcoxnb64a6clvir4u-x" + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess" + } + ], + "RoleName": { + "Fn::Join": [ + "", + [ + "WorkoutProgramIAMRol516c57-", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "-NONE" + ] + ] + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/WorkoutProgram/WorkoutProgramIAMRole/Resource" + } + }, + "WorkoutProgramDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "WorkoutProgramTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + } + }, + "Name": "WorkoutProgramTable", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "WorkoutProgramIAMRoleB75B98D5", + "Arn" + ] + }, + "Type": "AMAZON_DYNAMODB" + }, + "DependsOn": [ + "WorkoutProgramIAMRoleB75B98D5" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/WorkoutProgram/WorkoutProgramDataSource/Resource" + } + }, + "QuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunctionF61649FE": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetWorkoutProgramauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/b5e19309383f9e8964a3deca60bb43787960d705db799c21d87e0f0c32127523.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/WorkoutProgram/QuerygetWorkoutProgramauth0Function/QuerygetWorkoutProgramauth0Function.AppSyncFunction" + } + }, + "QuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction3557039E": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetWorkoutProgrampostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/WorkoutProgram/QuerygetWorkoutProgrampostAuth0Function/QuerygetWorkoutProgrampostAuth0Function.AppSyncFunction" + } + }, + "QueryGetWorkoutProgramDataResolverFnQueryGetWorkoutProgramDataResolverFnAppSyncFunctionDFD5C9FA": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "WorkoutProgramDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryGetWorkoutProgramDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/08f4d557693d96c1a4efba0f9dc91330e4b19772fd5477c156468843e3d9cb5e.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4c6a2d29f01c6091bd1d9afe16e5849d456c96f17c3b215938c8067399532719.vtl" + } + }, + "DependsOn": [ + "WorkoutProgramDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/WorkoutProgram/QueryGetWorkoutProgramDataResolverFn/QueryGetWorkoutProgramDataResolverFn.AppSyncFunction" + } + }, + "GetWorkoutProgramResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "FieldName": "getWorkoutProgram", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunctionF61649FE", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction3557039E", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryGetWorkoutProgramDataResolverFnQueryGetWorkoutProgramDataResolverFnAppSyncFunctionDFD5C9FA", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getWorkoutProgram\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "WorkoutProgramTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/WorkoutProgram/queryGetWorkoutProgramResolver" + } + }, + "QuerylistWorkoutProgramsauth0FunctionQuerylistWorkoutProgramsauth0FunctionAppSyncFunctionEDC95461": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerylistWorkoutProgramsauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/b5e19309383f9e8964a3deca60bb43787960d705db799c21d87e0f0c32127523.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/WorkoutProgram/QuerylistWorkoutProgramsauth0Function/QuerylistWorkoutProgramsauth0Function.AppSyncFunction" + } + }, + "QuerylistWorkoutProgramspostAuth0FunctionQuerylistWorkoutProgramspostAuth0FunctionAppSyncFunction784BDD23": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerylistWorkoutProgramspostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/WorkoutProgram/QuerylistWorkoutProgramspostAuth0Function/QuerylistWorkoutProgramspostAuth0Function.AppSyncFunction" + } + }, + "QueryListWorkoutProgramsDataResolverFnQueryListWorkoutProgramsDataResolverFnAppSyncFunctionC43C9A14": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "WorkoutProgramDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryListWorkoutProgramsDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9fcbe070ecd3023c5bf5b966fa9584757db9762eef123bad0820bd87591b2174.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/cc01911d0269d4080ea57505dc445dfc315ef7ad85d3d9d4ea1357858bff451d.vtl" + } + }, + "DependsOn": [ + "WorkoutProgramDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/WorkoutProgram/QueryListWorkoutProgramsDataResolverFn/QueryListWorkoutProgramsDataResolverFn.AppSyncFunction" + } + }, + "ListWorkoutProgramResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "FieldName": "listWorkoutPrograms", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerylistWorkoutProgramsauth0FunctionQuerylistWorkoutProgramsauth0FunctionAppSyncFunctionEDC95461", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerylistWorkoutProgramspostAuth0FunctionQuerylistWorkoutProgramspostAuth0FunctionAppSyncFunction784BDD23", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryListWorkoutProgramsDataResolverFnQueryListWorkoutProgramsDataResolverFnAppSyncFunctionC43C9A14", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listWorkoutPrograms\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "WorkoutProgramTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/WorkoutProgram/queryListWorkoutProgramsResolver" + } + }, + "MutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD050B3C1": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateWorkoutPrograminit0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a183ddccbd956316c38ef97177b8f088ef0826f62023323f5ae6053d348ccffc.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/WorkoutProgram/MutationcreateWorkoutPrograminit0Function/MutationcreateWorkoutPrograminit0Function.AppSyncFunction" + } + }, + "MutationcreateWorkoutProgramauth0FunctionMutationcreateWorkoutProgramauth0FunctionAppSyncFunction6165E2A5": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateWorkoutProgramauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/5cc5b2ba2375ce5397ffa7c05ab36ef89e2dcb36179feab15241b2758020898a.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/WorkoutProgram/MutationcreateWorkoutProgramauth0Function/MutationcreateWorkoutProgramauth0Function.AppSyncFunction" + } + }, + "MutationcreateWorkoutProgrampostAuth0FunctionMutationcreateWorkoutProgrampostAuth0FunctionAppSyncFunctionC1F2C501": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateWorkoutProgrampostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/WorkoutProgram/MutationcreateWorkoutProgrampostAuth0Function/MutationcreateWorkoutProgrampostAuth0Function.AppSyncFunction" + } + }, + "MutationCreateWorkoutProgramDataResolverFnMutationCreateWorkoutProgramDataResolverFnAppSyncFunction20E77E8E": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "WorkoutProgramDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationCreateWorkoutProgramDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/5e3663e53709c6806794ba18425c4edf8a27b33eab158ed13428b1f47ebf035e.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "WorkoutProgramDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/WorkoutProgram/MutationCreateWorkoutProgramDataResolverFn/MutationCreateWorkoutProgramDataResolverFn.AppSyncFunction" + } + }, + "CreateWorkoutProgramResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "FieldName": "createWorkoutProgram", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD050B3C1", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationcreateWorkoutProgramauth0FunctionMutationcreateWorkoutProgramauth0FunctionAppSyncFunction6165E2A5", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationcreateWorkoutProgrampostAuth0FunctionMutationcreateWorkoutProgrampostAuth0FunctionAppSyncFunctionC1F2C501", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationCreateWorkoutProgramDataResolverFnMutationCreateWorkoutProgramDataResolverFnAppSyncFunction20E77E8E", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createWorkoutProgram\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "WorkoutProgramTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/WorkoutProgram/mutationCreateWorkoutProgramResolver" + } + }, + "MutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionDF7D6DB3": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateWorkoutPrograminit0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/06db846fd14e6fc371f22b12b5545ba8e2dbfeda85d8c8d586c71c282166657b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/WorkoutProgram/MutationupdateWorkoutPrograminit0Function/MutationupdateWorkoutPrograminit0Function.AppSyncFunction" + } + }, + "MutationupdateWorkoutProgramauth0FunctionMutationupdateWorkoutProgramauth0FunctionAppSyncFunction5B1F99AE": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "WorkoutProgramDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateWorkoutProgramauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9b977f410dc17218d10f2a36c19d6dc44218b69fe22d2cd0641145cad886d6de.vtl" + } + }, + "DependsOn": [ + "WorkoutProgramDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/WorkoutProgram/MutationupdateWorkoutProgramauth0Function/MutationupdateWorkoutProgramauth0Function.AppSyncFunction" + } + }, + "MutationupdateWorkoutProgrampostAuth0FunctionMutationupdateWorkoutProgrampostAuth0FunctionAppSyncFunction848486DA": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateWorkoutProgrampostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/WorkoutProgram/MutationupdateWorkoutProgrampostAuth0Function/MutationupdateWorkoutProgrampostAuth0Function.AppSyncFunction" + } + }, + "MutationUpdateWorkoutProgramDataResolverFnMutationUpdateWorkoutProgramDataResolverFnAppSyncFunctionC239D12F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "WorkoutProgramDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationUpdateWorkoutProgramDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/474bf0776ec2164a13191d1a0a9e057154931e4918fea5086f49850d02a5371b.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "WorkoutProgramDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/WorkoutProgram/MutationUpdateWorkoutProgramDataResolverFn/MutationUpdateWorkoutProgramDataResolverFn.AppSyncFunction" + } + }, + "UpdateWorkoutProgramResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "FieldName": "updateWorkoutProgram", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionDF7D6DB3", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationupdateWorkoutProgramauth0FunctionMutationupdateWorkoutProgramauth0FunctionAppSyncFunction5B1F99AE", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationupdateWorkoutProgrampostAuth0FunctionMutationupdateWorkoutProgrampostAuth0FunctionAppSyncFunction848486DA", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationUpdateWorkoutProgramDataResolverFnMutationUpdateWorkoutProgramDataResolverFnAppSyncFunctionC239D12F", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateWorkoutProgram\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "WorkoutProgramTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/WorkoutProgram/mutationUpdateWorkoutProgramResolver" + } + }, + "MutationdeleteWorkoutProgramauth0FunctionMutationdeleteWorkoutProgramauth0FunctionAppSyncFunctionCF8FDD99": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "WorkoutProgramDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeleteWorkoutProgramauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/6257bfd1ef2992bd01df135516c0df15c5ff692f426e0c71c93960be8f8c81df.vtl" + } + }, + "DependsOn": [ + "WorkoutProgramDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/WorkoutProgram/MutationdeleteWorkoutProgramauth0Function/MutationdeleteWorkoutProgramauth0Function.AppSyncFunction" + } + }, + "MutationdeleteWorkoutProgrampostAuth0FunctionMutationdeleteWorkoutProgrampostAuth0FunctionAppSyncFunction1A56FB4E": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeleteWorkoutProgrampostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/WorkoutProgram/MutationdeleteWorkoutProgrampostAuth0Function/MutationdeleteWorkoutProgrampostAuth0Function.AppSyncFunction" + } + }, + "MutationDeleteWorkoutProgramDataResolverFnMutationDeleteWorkoutProgramDataResolverFnAppSyncFunction57D3FA26": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "WorkoutProgramDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationDeleteWorkoutProgramDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4f7907d1209a2c9953a0c053df402c634e359546d70c7cc5c2e8e21ea734880f.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "WorkoutProgramDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/WorkoutProgram/MutationDeleteWorkoutProgramDataResolverFn/MutationDeleteWorkoutProgramDataResolverFn.AppSyncFunction" + } + }, + "DeleteWorkoutProgramResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "FieldName": "deleteWorkoutProgram", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationdeleteWorkoutProgramauth0FunctionMutationdeleteWorkoutProgramauth0FunctionAppSyncFunctionCF8FDD99", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationdeleteWorkoutProgrampostAuth0FunctionMutationdeleteWorkoutProgrampostAuth0FunctionAppSyncFunction1A56FB4E", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationDeleteWorkoutProgramDataResolverFnMutationDeleteWorkoutProgramDataResolverFnAppSyncFunction57D3FA26", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteWorkoutProgram\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "WorkoutProgramTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/WorkoutProgram/mutationDeleteWorkoutProgramResolver" + } + }, + "SubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncFunctionBA1C0577": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononCreateWorkoutProgramauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/ba02e7c1690152b12072e4f476fba2abbb138ea0b0aba433b0676ffcff949e08.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/WorkoutProgram/SubscriptiononCreateWorkoutProgramauth0Function/SubscriptiononCreateWorkoutProgramauth0Function.AppSyncFunction" + } + }, + "SubscriptiononCreateWorkoutProgrampostAuth0FunctionSubscriptiononCreateWorkoutProgrampostAuth0FunctionAppSyncFunction1FBC8B34": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononCreateWorkoutProgrampostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/WorkoutProgram/SubscriptiononCreateWorkoutProgrampostAuth0Function/SubscriptiononCreateWorkoutProgrampostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyncFunction4E344723": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnCreateWorkoutProgramDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/WorkoutProgram/SubscriptionOnCreateWorkoutProgramDataResolverFn/SubscriptionOnCreateWorkoutProgramDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononCreateWorkoutProgramResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "FieldName": "onCreateWorkoutProgram", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncFunctionBA1C0577", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononCreateWorkoutProgrampostAuth0FunctionSubscriptiononCreateWorkoutProgrampostAuth0FunctionAppSyncFunction1FBC8B34", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyncFunction4E344723", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateWorkoutProgram\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/WorkoutProgram/subscriptionOnCreateWorkoutProgramResolver" + } + }, + "SubscriptiononUpdateWorkoutProgramauth0FunctionSubscriptiononUpdateWorkoutProgramauth0FunctionAppSyncFunctionEC33DFA9": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononUpdateWorkoutProgramauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/ba02e7c1690152b12072e4f476fba2abbb138ea0b0aba433b0676ffcff949e08.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/WorkoutProgram/SubscriptiononUpdateWorkoutProgramauth0Function/SubscriptiononUpdateWorkoutProgramauth0Function.AppSyncFunction" + } + }, + "SubscriptiononUpdateWorkoutProgrampostAuth0FunctionSubscriptiononUpdateWorkoutProgrampostAuth0FunctionAppSyncFunctionB64D3021": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononUpdateWorkoutProgrampostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/WorkoutProgram/SubscriptiononUpdateWorkoutProgrampostAuth0Function/SubscriptiononUpdateWorkoutProgrampostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnUpdateWorkoutProgramDataResolverFnSubscriptionOnUpdateWorkoutProgramDataResolverFnAppSyncFunction09BC3352": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnUpdateWorkoutProgramDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/WorkoutProgram/SubscriptionOnUpdateWorkoutProgramDataResolverFn/SubscriptionOnUpdateWorkoutProgramDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononUpdateWorkoutProgramResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "FieldName": "onUpdateWorkoutProgram", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononUpdateWorkoutProgramauth0FunctionSubscriptiononUpdateWorkoutProgramauth0FunctionAppSyncFunctionEC33DFA9", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononUpdateWorkoutProgrampostAuth0FunctionSubscriptiononUpdateWorkoutProgrampostAuth0FunctionAppSyncFunctionB64D3021", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnUpdateWorkoutProgramDataResolverFnSubscriptionOnUpdateWorkoutProgramDataResolverFnAppSyncFunction09BC3352", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateWorkoutProgram\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/WorkoutProgram/subscriptionOnUpdateWorkoutProgramResolver" + } + }, + "SubscriptiononDeleteWorkoutProgramauth0FunctionSubscriptiononDeleteWorkoutProgramauth0FunctionAppSyncFunction798D646D": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononDeleteWorkoutProgramauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/ba02e7c1690152b12072e4f476fba2abbb138ea0b0aba433b0676ffcff949e08.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/WorkoutProgram/SubscriptiononDeleteWorkoutProgramauth0Function/SubscriptiononDeleteWorkoutProgramauth0Function.AppSyncFunction" + } + }, + "SubscriptiononDeleteWorkoutProgrampostAuth0FunctionSubscriptiononDeleteWorkoutProgrampostAuth0FunctionAppSyncFunctionF1F4A2FC": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononDeleteWorkoutProgrampostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/WorkoutProgram/SubscriptiononDeleteWorkoutProgrampostAuth0Function/SubscriptiononDeleteWorkoutProgrampostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnDeleteWorkoutProgramDataResolverFnSubscriptionOnDeleteWorkoutProgramDataResolverFnAppSyncFunction7AE965FB": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnDeleteWorkoutProgramDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/WorkoutProgram/SubscriptionOnDeleteWorkoutProgramDataResolverFn/SubscriptionOnDeleteWorkoutProgramDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononDeleteWorkoutProgramResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "FieldName": "onDeleteWorkoutProgram", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononDeleteWorkoutProgramauth0FunctionSubscriptiononDeleteWorkoutProgramauth0FunctionAppSyncFunction798D646D", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononDeleteWorkoutProgrampostAuth0FunctionSubscriptiononDeleteWorkoutProgrampostAuth0FunctionAppSyncFunctionF1F4A2FC", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnDeleteWorkoutProgramDataResolverFnSubscriptionOnDeleteWorkoutProgramDataResolverFnAppSyncFunction7AE965FB", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteWorkoutProgram\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/WorkoutProgram/subscriptionOnDeleteWorkoutProgramResolver" + } + }, + "WorkoutProgramOwnerDataResolverFnWorkoutProgramOwnerDataResolverFnAppSyncFunction6C8EE914": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "WorkoutProgramOwnerDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/041534e5fd916595f752318f161512d7c7f83b9f2cf32d0f0be381c12253ff68.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/064303962e481067b44300212516363b99aaee539b6bafaf756fdd83ff0b60f0.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/WorkoutProgram/WorkoutProgramOwnerDataResolverFn/WorkoutProgramOwnerDataResolverFn.AppSyncFunction" + } + }, + "WorkoutProgramownerResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "FieldName": "owner", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "WorkoutProgramOwnerDataResolverFnWorkoutProgramOwnerDataResolverFnAppSyncFunction6C8EE914", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"WorkoutProgram\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"owner\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "WorkoutProgram" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/WorkoutProgram/workoutProgramOwnerResolver" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOwW6DMAyGn6X31GNU230F7bhNsHtlEoNSwEGx06pCvPsEnTrt9PuTP9l/DvlLBtkOr7K3rt8PvoH5g0TJ1Yq2N0XLXxhxJKW4QhHYefWBTUUSUrRkiiQaxj9s+THjVU6zuzGOwTXwjc1ARxQyHkeYqzDc7TDQYnCa5MYW5nLTy6ZExfpx8j+9J7ZriSJw67sUcWv0+3m4UFyMHE4oQirwtoaRAxyT7UnXAsvqfiadkpptXSt2nrvFcHAEZ3m65Dk8v0K2O4v3+5hY/UhQ3fMHIPwRXTYBAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/WorkoutProgram/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Outputs": { + "GetAttWorkoutProgramTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "WorkoutProgramTable", + "TableStreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "GetAtt:WorkoutProgramTable:StreamArn" + ] + ] + } + } + }, + "GetAttWorkoutProgramTableName": { + "Description": "Your DynamoDB table name.", + "Value": "WorkoutProgram-xwgwkksjrbcoxnb64a6clvir4u-x", + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + }, + "GetAtt:WorkoutProgramTable:Name" + ] + ] + } + } + } + } +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x.description.txt new file mode 100644 index 00000000000..b66e3e0b9e2 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"AmplifySandbox","createdWith":"1.11.2","stackType":"auth-Cognito","metadata":{}} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x.outputs.json new file mode 100644 index 00000000000..66cd2773cee --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x.outputs.json @@ -0,0 +1,38 @@ +[ + { + "OutputKey": "amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef", + "OutputValue": "amplify-fitnesstra2604142-amplifyAuthauthenticatedU-NanIXo9aixs2" + }, + { + "OutputKey": "amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthUserPoolAppClientB7EA7D1ERef", + "OutputValue": "1tmuolsu3gsj9nj6bg66l3capo" + }, + { + "OutputKey": "amplifyfitnesstrackere2esandboxb87516873eauthadmingen2xlambda8DFBC2FBArn", + "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:admin-gen2-x" + }, + { + "OutputKey": "amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthUserPoolC7DC7AACRef", + "OutputValue": "us-east-1_FnKoHEldQ" + }, + { + "OutputKey": "amplifyfitnesstrackere2esandboxb87516873eauthfitnesstracker33f5545533f55455PreSignupgen2xlambdaF9537418Ref", + "OutputValue": "fitnesstracker33f5545533f55455PreSignup-gen2-x" + }, + { + "OutputKey": "amplifyfitnesstrackere2esandboxb87516873eauthadmingen2xlambda8DFBC2FBRef", + "OutputValue": "admin-gen2-x" + }, + { + "OutputKey": "amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref", + "OutputValue": "us-east-1:64bddaa4-7f3b-47a0-b404-3275cd735004" + }, + { + "OutputKey": "amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref", + "OutputValue": "amplify-fitnesstra2604142-amplifyAuthunauthenticate-1g49fB6fAFbP" + }, + { + "OutputKey": "amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthAdminGroupRoleDDED643DRef", + "OutputValue": "amplify-fitnesstra2604142-amplifyAuthAdminGroupRole-w2iwcg4Jlkt1" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x.parameters.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x.parameters.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x.template.json new file mode 100644 index 00000000000..e80b5f030f8 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-auth179371D7-x.template.json @@ -0,0 +1,1257 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", + "Resources": { + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AccountRecoverySetting": { + "RecoveryMechanisms": [ + { + "Name": "verified_email", + "Priority": 1 + } + ] + }, + "AdminCreateUserConfig": { + "AllowAdminCreateUserOnly": false + }, + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "LambdaConfig": { + "PreSignUp": { + "Fn::GetAtt": [ + "fitnesstracker33f5545533f55455PreSignupgen2xlambda207A093B", + "Arn" + ] + } + }, + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": 8, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false, + "TemporaryPasswordValidityDays": 7 + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "SmsVerificationMessage": "The verification code to your new account is {####}", + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolTags": { + "amplify:deployment-type": "sandbox", + "amplify:friendly-name": "amplifyAuth", + "created-by": "amplify" + }, + "UsernameConfiguration": { + "CaseSensitive": false + }, + "VerificationMessageTemplate": { + "DefaultEmailOption": "CONFIRM_WITH_CODE", + "EmailMessage": "Your verification code is {####}", + "EmailSubject": "Your verification code", + "SmsMessage": "The verification code to your new account is {####}" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/amplifyAuth/UserPool/Resource" + } + }, + "amplifyAuthUserPoolPreSignUpCognito55F45D8E": { + "Type": "AWS::Lambda::Permission", + "Properties": { + "Action": "lambda:InvokeFunction", + "FunctionName": { + "Fn::GetAtt": [ + "fitnesstracker33f5545533f55455PreSignupgen2xlambda207A093B", + "Arn" + ] + }, + "Principal": "cognito-idp.amazonaws.com", + "SourceArn": { + "Fn::GetAtt": [ + "amplifyAuthUserPool4BA7F805", + "Arn" + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/amplifyAuth/UserPool/PreSignUpCognito" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 43200, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": { + "Ref": "amplifyAuthUserPool4BA7F805" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlows": [ + "code" + ], + "AllowedOAuthFlowsUserPoolClient": true, + "AllowedOAuthScopes": [ + "profile", + "phone", + "email", + "openid", + "aws.cognito.signin.user.admin" + ], + "CallbackURLs": [ + "https://example.com" + ], + "ExplicitAuthFlows": [ + "ALLOW_CUSTOM_AUTH", + "ALLOW_USER_SRP_AUTH", + "ALLOW_REFRESH_TOKEN_AUTH" + ], + "PreventUserExistenceErrors": "ENABLED", + "SupportedIdentityProviders": [ + "COGNITO" + ], + "UserPoolId": { + "Ref": "amplifyAuthUserPool4BA7F805" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/amplifyAuth/UserPoolAppClient/Resource" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": false, + "CognitoIdentityProviders": [ + { + "ClientId": { + "Ref": "amplifyAuthUserPoolAppClient2626C6F8" + }, + "ProviderName": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + { + "Ref": "amplifyAuthUserPool4BA7F805" + } + ] + ] + } + } + ], + "IdentityPoolTags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "SupportedLoginProviders": {} + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/amplifyAuth/IdentityPool" + } + }, + "amplifyAuthauthenticatedUserRoleD8DA3689": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/amplifyAuth/authenticatedUserRole/Resource" + } + }, + "amplifyAuthunauthenticatedUserRole2B524D9E": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "unauthenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/amplifyAuth/unauthenticatedUserRole/Resource" + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + }, + "RoleMappings": { + "UserPoolWebClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + { + "Ref": "amplifyAuthUserPool4BA7F805" + }, + ":", + { + "Ref": "amplifyAuthUserPoolAppClient2626C6F8" + } + ] + ] + }, + "Type": "Token" + } + }, + "Roles": { + "unauthenticated": { + "Fn::GetAtt": [ + "amplifyAuthunauthenticatedUserRole2B524D9E", + "Arn" + ] + }, + "authenticated": { + "Fn::GetAtt": [ + "amplifyAuthauthenticatedUserRoleD8DA3689", + "Arn" + ] + } + } + }, + "DependsOn": [ + "amplifyAuthIdentityPool3FDE84CC", + "amplifyAuthUserPoolAppClient2626C6F8" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/amplifyAuth/IdentityPoolRoleAttachment" + } + }, + "amplifyAuthAdminGroupRole766878DC": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/amplifyAuth/AdminGroupRole/Resource" + } + }, + "amplifyAuthAdminGroupCC42FF04": { + "Type": "AWS::Cognito::UserPoolGroup", + "Properties": { + "GroupName": "Admin", + "Precedence": 0, + "RoleArn": { + "Fn::GetAtt": [ + "amplifyAuthAdminGroupRole766878DC", + "Arn" + ] + }, + "UserPoolId": { + "Ref": "amplifyAuthUserPool4BA7F805" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/amplifyAuth/AdminGroup" + } + }, + "fitnesstracker33f5545533f55455PreSignupgen2xlambdaServiceRole796B58B8": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "fitnesstracker33f5545533f55455PreSignup-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/fitnesstracker33f5545533f55455PreSignup-gen2-x-lambda/ServiceRole/Resource" + } + }, + "fitnesstracker33f5545533f55455PreSignupgen2xlambda207A093B": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Architectures": [ + "x86_64" + ], + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "4eb38c172ef4d940eb17f8c6890c0284b8743fc46517097ac3e22db8b67f30eb.zip" + }, + "Environment": { + "Variables": { + "MODULES": "email-filter-allowlist", + "DOMAINALLOWLIST": "amazon.com", + "DOMAINBLACKLIST": "", + "ENV": "gen2-x", + "REGION": "us-east-1", + "AMPLIFY_SSM_ENV_CONFIG": "{}" + } + }, + "EphemeralStorage": { + "Size": 512 + }, + "FunctionName": "fitnesstracker33f5545533f55455PreSignup-gen2-x", + "Handler": "index.handler", + "MemorySize": 128, + "Role": { + "Fn::GetAtt": [ + "fitnesstracker33f5545533f55455PreSignupgen2xlambdaServiceRole796B58B8", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "fitnesstracker33f5545533f55455PreSignup-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 25 + }, + "DependsOn": [ + "fitnesstracker33f5545533f55455PreSignupgen2xlambdaServiceRole796B58B8" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/fitnesstracker33f5545533f55455PreSignup-gen2-x-lambda/Resource", + "aws:asset:path": "asset.4eb38c172ef4d940eb17f8c6890c0284b8743fc46517097ac3e22db8b67f30eb", + "aws:asset:is-bundled": true, + "aws:asset:property": "Code" + } + }, + "AMPLIFYAUTHUSERPOOLIDParameterCC466CA3": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/fitnesstracker/e2e-sandbox-x/AMPLIFY_AUTH_USERPOOL_ID", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": { + "Ref": "amplifyAuthUserPool4BA7F805" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/AMPLIFY_AUTH_USERPOOL_IDParameter/Resource" + } + }, + "admingen2xlambdaServiceRoleDFED86E5": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "admin-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/admin-gen2-x-lambda/ServiceRole/Resource" + } + }, + "admingen2xlambdaServiceRoleDefaultPolicyF1CBE2CB": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "ssm:GetParameters", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":ssm:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":parameter/amplify/resource_reference/fitnesstracker/e2e-sandbox-x/AMPLIFY_AUTH_USERPOOL_ID" + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "admingen2xlambdaServiceRoleDefaultPolicyF1CBE2CB", + "Roles": [ + { + "Ref": "admingen2xlambdaServiceRoleDFED86E5" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/admin-gen2-x-lambda/ServiceRole/DefaultPolicy/Resource" + } + }, + "admingen2xlambdaBD6AFAAA": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Architectures": [ + "x86_64" + ], + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "5c5c671427617f523e13e68fd0ce04b66742ea630686ba9840a7c23ae2163b75.zip" + }, + "Environment": { + "Variables": { + "ENV": "gen2-x", + "REGION": "us-east-1", + "AMPLIFY_SSM_ENV_CONFIG": "{\"AMPLIFY_AUTH_USERPOOL_ID\":{\"path\":\"/amplify/resource_reference/fitnesstracker/e2e-sandbox-x/AMPLIFY_AUTH_USERPOOL_ID\"}}", + "AMPLIFY_AUTH_USERPOOL_ID": "", + "AUTH_FITNESSTRACKER33F5545533F55455_USERPOOLID": { + "Ref": "amplifyAuthUserPool4BA7F805" + } + } + }, + "EphemeralStorage": { + "Size": 512 + }, + "FunctionName": "admin-gen2-x", + "Handler": "index.handler", + "MemorySize": 128, + "Role": { + "Fn::GetAtt": [ + "admingen2xlambdaServiceRoleDFED86E5", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "admin-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 25 + }, + "DependsOn": [ + "admingen2xlambdaServiceRoleDFED86E5" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/admin-gen2-x-lambda/Resource", + "aws:asset:path": "asset.5c5c671427617f523e13e68fd0ce04b66742ea630686ba9840a7c23ae2163b75", + "aws:asset:is-bundled": true, + "aws:asset:property": "Code" + } + }, + "userpoolAccess13FEE5419": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:AdminGetDevice", + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "amplifyAuthUserPool4BA7F805", + "Arn" + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess13FEE5419", + "Roles": [ + { + "Ref": "admingen2xlambdaServiceRoleDFED86E5" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/userpoolAccess1/Resource" + } + }, + "userpoolAccess268F187DB": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:AdminGetUser", + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "amplifyAuthUserPool4BA7F805", + "Arn" + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess268F187DB", + "Roles": [ + { + "Ref": "admingen2xlambdaServiceRoleDFED86E5" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/userpoolAccess2/Resource" + } + }, + "userpoolAccess3956C62F8": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:AdminListDevices", + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "amplifyAuthUserPool4BA7F805", + "Arn" + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess3956C62F8", + "Roles": [ + { + "Ref": "admingen2xlambdaServiceRoleDFED86E5" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/userpoolAccess3/Resource" + } + }, + "userpoolAccess4A84025C3": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:AdminListGroupsForUser", + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "amplifyAuthUserPool4BA7F805", + "Arn" + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess4A84025C3", + "Roles": [ + { + "Ref": "admingen2xlambdaServiceRoleDFED86E5" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/userpoolAccess4/Resource" + } + }, + "userpoolAccess585E2FB32": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:ListUsers", + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "amplifyAuthUserPool4BA7F805", + "Arn" + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess585E2FB32", + "Roles": [ + { + "Ref": "admingen2xlambdaServiceRoleDFED86E5" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/userpoolAccess5/Resource" + } + }, + "userpoolAccess600DA4CB0": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:ListUsersInGroup", + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "amplifyAuthUserPool4BA7F805", + "Arn" + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess600DA4CB0", + "Roles": [ + { + "Ref": "admingen2xlambdaServiceRoleDFED86E5" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/userpoolAccess6/Resource" + } + }, + "userpoolAccess76F9C91C1": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:ListGroups", + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "amplifyAuthUserPool4BA7F805", + "Arn" + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess76F9C91C1", + "Roles": [ + { + "Ref": "admingen2xlambdaServiceRoleDFED86E5" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/userpoolAccess7/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/12NzW6DQAyEnyX3xaVE7T1BatRLhIJ6RpvFoYb9qdamUYR492qJaKOeZsb2fC6geMkh3+grZ6YdMktnmI7Igm0t2gxKX7mZTOg8SYDpgzFWIVhVXvyvX01pCb08rv4m7y16Ibmt5cd8ChZ3Itp8un/9Qwzj16ysdudWw1RefIXRETMFn+7eRm+Egp8VaQdTAqXxolWwZG4p3t2KaXxosWc4LrISFG8bzYzCsEuieAv70Qwoe82omB1MtUTyXaWjdigYF/Qa5lktvVp0R76bVfoCPT99FwU8v0K+6Zkoi6MXcginu/4AH6eqXH4BAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthUserPoolC7DC7AACRef": { + "Value": { + "Ref": "amplifyAuthUserPool4BA7F805" + } + }, + "amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthUserPoolAppClientB7EA7D1ERef": { + "Value": { + "Ref": "amplifyAuthUserPoolAppClient2626C6F8" + } + }, + "amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref": { + "Value": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } + }, + "amplifyfitnesstrackere2esandboxb87516873eauthfitnesstracker33f5545533f55455PreSignupgen2xlambdaF9537418Ref": { + "Value": { + "Ref": "fitnesstracker33f5545533f55455PreSignupgen2xlambda207A093B" + } + }, + "amplifyfitnesstrackere2esandboxb87516873eauthadmingen2xlambda8DFBC2FBRef": { + "Value": { + "Ref": "admingen2xlambdaBD6AFAAA" + } + }, + "amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef": { + "Value": { + "Ref": "amplifyAuthauthenticatedUserRoleD8DA3689" + } + }, + "amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref": { + "Value": { + "Ref": "amplifyAuthunauthenticatedUserRole2B524D9E" + } + }, + "amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthAdminGroupRoleDDED643DRef": { + "Value": { + "Ref": "amplifyAuthAdminGroupRole766878DC" + } + }, + "amplifyfitnesstrackere2esandboxb87516873eauthadmingen2xlambda8DFBC2FBArn": { + "Value": { + "Fn::GetAtt": [ + "admingen2xlambdaBD6AFAAA", + "Arn" + ] + } + } + } +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-data7552DF31-x.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-data7552DF31-x.description.txt new file mode 100644 index 00000000000..ddf2cb33f1b --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-data7552DF31-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"AmplifySandbox","createdWith":"1.21.2","stackType":"api-AppSync","metadata":{"dataSources":"dynamodb","authorizationModes":"amazon_cognito_identity_pools,amazon_cognito_user_pools,api_key,aws_iam","customOperations":""}} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-data7552DF31-x.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-data7552DF31-x.outputs.json new file mode 100644 index 00000000000..447464814da --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-data7552DF31-x.outputs.json @@ -0,0 +1,26 @@ +[ + { + "OutputKey": "amplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId", + "OutputValue": "pa7lr2bmbjfqxdfidheoysbvhu" + }, + { + "OutputKey": "amplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5GraphQLUrl", + "OutputValue": "https://xswambcukzfbnhzand3lag77ey.appsync-api.us-east-1.amazonaws.com/graphql" + }, + { + "OutputKey": "amplifyfitnesstrackere2esandboxb87516873edatalognutritiongen2xlambda8A6B927BRef", + "OutputValue": "lognutrition-gen2-x" + }, + { + "OutputKey": "amplifyfitnesstrackere2esandboxb87516873edataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB8CEB812DDestinationBucketArn", + "OutputValue": "arn:aws:s3:::amplify-fitnesstra2604142-amplifydataamplifycodege-kqzgdclvoxoc" + }, + { + "OutputKey": "amplifyfitnesstrackere2esandboxb87516873edatalognutritiongen2xlambda8A6B927BArn", + "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:lognutrition-gen2-x" + }, + { + "OutputKey": "amplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPIDefaultApiKey24BA9C2AApiKey", + "OutputValue": "da2-fakeapikey00000000000000" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-data7552DF31-x.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-data7552DF31-x.parameters.json new file mode 100644 index 00000000000..fda3746d907 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-data7552DF31-x.parameters.json @@ -0,0 +1,38 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef", + "ParameterValue": "amplify-fitnesstra2604142-amplifyAuthauthenticatedU-NanIXo9aixs2" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref", + "ParameterValue": "us-east-1:64bddaa4-7f3b-47a0-b404-3275cd735004" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "true" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthUserPoolC7DC7AACRef", + "ParameterValue": "us-east-1_FnKoHEldQ" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref", + "ParameterValue": "amplify-fitnesstra2604142-amplifyAuthunauthenticate-1g49fB6fAFbP" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-data7552DF31-x.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-data7552DF31-x.template.json new file mode 100644 index 00000000000..02f2bcfc8fb --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-data7552DF31-x.template.json @@ -0,0 +1,1863 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.21.2\",\"stackType\":\"api-AppSync\",\"metadata\":{\"dataSources\":\"dynamodb\",\"authorizationModes\":\"amazon_cognito_identity_pools,amazon_cognito_user_pools,api_key,aws_iam\",\"customOperations\":\"\"}}", + "Resources": { + "amplifyDataGraphQLAPI42A6FA33": { + "Type": "AWS::AppSync::GraphQLApi", + "Properties": { + "AdditionalAuthenticationProviders": [ + { + "AuthenticationType": "API_KEY" + } + ], + "AuthenticationType": "AMAZON_COGNITO_USER_POOLS", + "Name": "amplifyData", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "UserPoolConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "DefaultAction": "ALLOW", + "UserPoolId": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthUserPoolC7DC7AACRef" + } + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/GraphQLAPI/Resource" + } + }, + "amplifyDataGraphQLAPITransformerSchemaFF50A789": { + "Type": "AWS::AppSync::GraphQLSchema", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "DefinitionS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/65a1439e92e2068c9c150df8566894c82534d1cbbecce25f360faab8b21d0713.graphql" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/GraphQLAPI/TransformerSchema" + } + }, + "amplifyDataGraphQLAPIDefaultApiKey1C8ED374": { + "Type": "AWS::AppSync::ApiKey", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "Description": "graphql", + "Expires": 1776830613 + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/GraphQLAPI/DefaultApiKey" + } + }, + "amplifyDataGraphQLAPINONEDS684BF699": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "Description": "None Data Source for Pipeline functions", + "Name": "NONE_DS", + "Type": "NONE" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/GraphQLAPI/NONE_DS/Resource" + } + }, + "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/11e87f0b0f4b3c6ca8258538fe6e01524bbafd2a0c2f7c13ba8099bb66fd0d54.json" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/AmplifyTableManager.NestedStack/AmplifyTableManager.NestedStackResource", + "aws:asset:path": "amplifyfitnesstrackere2esandboxb87516873edataamplifyDataAmplifyTableManager46FD137C.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "amplifyDataWorkoutProgramNestedStackWorkoutProgramNestedStackResourceE567B35D": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource8B964194Outputsamplifyfitnesstrackere2esandboxb87516873edataamplifyDataAmplifyTableManagerTab7D931540": { + "Fn::GetAtt": [ + "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833", + "Outputs.amplifyfitnesstrackere2esandboxb87516873edataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent0E608822Arn" + ] + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef" + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref" + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref" + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/932eae81319ebdd449ab7b9e69d51752887471e3c323524277aee24e680e5d4e.json" + ] + ] + } + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/WorkoutProgram.NestedStack/WorkoutProgram.NestedStackResource", + "aws:asset:path": "amplifyfitnesstrackere2esandboxb87516873edataamplifyDataWorkoutProgram46ED79EB.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "amplifyDataExerciseNestedStackExerciseNestedStackResource73533B79": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource8B964194Outputsamplifyfitnesstrackere2esandboxb87516873edataamplifyDataAmplifyTableManagerTab7D931540": { + "Fn::GetAtt": [ + "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833", + "Outputs.amplifyfitnesstrackere2esandboxb87516873edataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent0E608822Arn" + ] + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef" + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref" + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref" + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/e2e4423245ccd954a5c35be29221d6883033ccb25113b2af557fb85c3f1e214f.json" + ] + ] + } + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Exercise.NestedStack/Exercise.NestedStackResource", + "aws:asset:path": "amplifyfitnesstrackere2esandboxb87516873edataamplifyDataExercise06D3C664.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "amplifyDataMealNestedStackMealNestedStackResourceDA3F2B9A": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource8B964194Outputsamplifyfitnesstrackere2esandboxb87516873edataamplifyDataAmplifyTableManagerTab7D931540": { + "Fn::GetAtt": [ + "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833", + "Outputs.amplifyfitnesstrackere2esandboxb87516873edataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent0E608822Arn" + ] + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef" + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref" + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref" + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/8721e7e92e0d1501dec9ab7ffb396af087220e2f1f03faf64840f81aad83b1cf.json" + ] + ] + } + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/Meal.NestedStack/Meal.NestedStackResource", + "aws:asset:path": "amplifyfitnesstrackere2esandboxb87516873edataamplifyDataMeal2649F6F7.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "amplifyDataConnectionStackNestedStackConnectionStackNestedStackResourceAB0F312B": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPINONEDSD3F9B7A2Name": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataExerciseNestedStackExerciseNestedStackResource29F00F64Outputsamplifyfitnesstrackere2esandboxb87516873edataamplifyDataExerciseExerciseDataSource0ED76988Name": { + "Fn::GetAtt": [ + "amplifyDataExerciseNestedStackExerciseNestedStackResource73533B79", + "Outputs.amplifyfitnesstrackere2esandboxb87516873edataamplifyDataExerciseExerciseDataSource0ED76988Name" + ] + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873edataamplifyDataExerciseNestedStackExerciseNestedStackResource29F00F64Outputsamplifyfitnesstrackere2esandboxb87516873edataamplifyDataExerciseExerciseTable43007536TableArn": { + "Fn::GetAtt": [ + "amplifyDataExerciseNestedStackExerciseNestedStackResource73533B79", + "Outputs.amplifyfitnesstrackere2esandboxb87516873edataamplifyDataExerciseExerciseTable43007536TableArn" + ] + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef" + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref" + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref" + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/76426653ffe63f6ab1252eac7dd1c0d4022388ee5087e69e2f3e2b4b5d61820e.json" + ] + ] + } + }, + "DependsOn": [ + "amplifyDataExerciseNestedStackExerciseNestedStackResource73533B79", + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/ConnectionStack.NestedStack/ConnectionStack.NestedStackResource", + "aws:asset:path": "amplifyfitnesstrackere2esandboxb87516873edataamplifyDataConnectionStackFAB69167.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA": { + "Type": "AWS::S3::Bucket", + "Properties": { + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD" + ], + "AllowedOrigins": [ + { + "Fn::Join": [ + "", + [ + "https://", + { + "Ref": "AWS::Region" + }, + ".console.aws.amazon.com/amplify" + ] + ] + } + ] + } + ] + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "aws-cdk:cr-owned:6793dd45", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/Resource" + } + }, + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucketPolicyF1C1C548": { + "Type": "AWS::S3::BucketPolicy", + "Properties": { + "Bucket": { + "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" + }, + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "s3:PutBucketPolicy", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*" + ], + "Effect": "Allow", + "Principal": { + "AWS": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + } + }, + "Resource": [ + { + "Fn::GetAtt": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/Policy/Resource" + } + }, + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucketAutoDeleteObjectsCustomResource437F26F5": { + "Type": "Custom::S3AutoDeleteObjects", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "Arn" + ] + }, + "BucketName": { + "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" + } + }, + "DependsOn": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucketPolicyF1C1C548" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/AutoDeleteObjectsCustomResource/Default" + } + }, + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentAwsCliLayerE322F905": { + "Type": "AWS::Lambda::LayerVersion", + "Properties": { + "Content": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "e2659170a0721541efa761a8d5d04d5e36cbbf691c4b15a9053002b7c825055d.zip" + }, + "Description": "/opt/awscli/aws" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsDeployment/AwsCliLayer/Resource", + "aws:asset:path": "asset.e2659170a0721541efa761a8d5d04d5e36cbbf691c4b15a9053002b7c825055d.zip", + "aws:asset:is-bundled": false, + "aws:asset:property": "Content" + } + }, + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB21775929": { + "Type": "Custom::CDKBucketDeployment", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBC5D8AB21", + "Arn" + ] + }, + "SourceBucketNames": [ + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + } + ], + "SourceObjectKeys": [ + "b8a396fe25a065248377a8b285f24f09f426a7d7d7dcc629f6a5a7537e86d717.zip" + ], + "SourceMarkers": [ + {} + ], + "DestinationBucketName": { + "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" + }, + "WaitForDistributionInvalidation": true, + "Prune": true, + "OutputObjectKeys": true, + "DestinationBucketArn": { + "Fn::GetAtt": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", + "Arn" + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsDeployment/CustomResource-1536MiB/Default" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ] + }, + "ManagedPolicyArns": [ + { + "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" + }, + "Timeout": 900, + "MemorySize": 128, + "Handler": "index.handler", + "Role": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Description": { + "Fn::Join": [ + "", + [ + "Lambda function for auto-deleting objects in ", + { + "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" + }, + " S3 bucket." + ] + ] + } + }, + "DependsOn": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", + "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", + "aws:asset:property": "Code" + } + }, + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/ServiceRole/Resource" + } + }, + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleDefaultPolicyFF1C635B": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "s3:GetObject*", + "s3:GetBucket*", + "s3:List*" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":s3:::", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + } + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":s3:::", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/*" + ] + ] + } + ] + }, + { + "Action": [ + "s3:GetObject*", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*", + "s3:PutObject", + "s3:PutObjectLegalHold", + "s3:PutObjectRetention", + "s3:PutObjectTagging", + "s3:PutObjectVersionTagging", + "s3:Abort*" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + }, + { + "Action": [ + "s3:GetObject*", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*", + "s3:PutObject", + "s3:PutObjectLegalHold", + "s3:PutObjectRetention", + "s3:PutObjectTagging", + "s3:PutObjectVersionTagging", + "s3:Abort*" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "modelIntrospectionSchemaBucketF566B665", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "modelIntrospectionSchemaBucketF566B665", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleDefaultPolicyFF1C635B", + "Roles": [ + { + "Ref": "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/ServiceRole/DefaultPolicy/Resource" + } + }, + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBC5D8AB21": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "3423a042b818e31c1e34a19d6689ab2e5f9b70fcbe9e71df66f241b20a200bd9.zip" + }, + "Environment": { + "Variables": { + "AWS_CA_BUNDLE": "/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem" + } + }, + "Handler": "index.handler", + "Layers": [ + { + "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentAwsCliLayerE322F905" + } + ], + "MemorySize": 1536, + "Role": { + "Fn::GetAtt": [ + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2", + "Arn" + ] + }, + "Runtime": "python3.13", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 900 + }, + "DependsOn": [ + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleDefaultPolicyFF1C635B", + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/Resource", + "aws:asset:path": "asset.3423a042b818e31c1e34a19d6689ab2e5f9b70fcbe9e71df66f241b20a200bd9", + "aws:asset:is-bundled": false, + "aws:asset:property": "Code" + } + }, + "modelIntrospectionSchemaBucketF566B665": { + "Type": "AWS::S3::Bucket", + "Properties": { + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "aws-cdk:cr-owned:7b209f4d", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/modelIntrospectionSchemaBucket/Resource" + } + }, + "modelIntrospectionSchemaBucketPolicy4DAB0D15": { + "Type": "AWS::S3::BucketPolicy", + "Properties": { + "Bucket": { + "Ref": "modelIntrospectionSchemaBucketF566B665" + }, + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:*", + "Condition": { + "Bool": { + "aws:SecureTransport": "false" + } + }, + "Effect": "Deny", + "Principal": { + "AWS": "*" + }, + "Resource": [ + { + "Fn::GetAtt": [ + "modelIntrospectionSchemaBucketF566B665", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "modelIntrospectionSchemaBucketF566B665", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + }, + { + "Action": [ + "s3:PutBucketPolicy", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*" + ], + "Effect": "Allow", + "Principal": { + "AWS": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + } + }, + "Resource": [ + { + "Fn::GetAtt": [ + "modelIntrospectionSchemaBucketF566B665", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "modelIntrospectionSchemaBucketF566B665", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/modelIntrospectionSchemaBucket/Policy/Resource" + } + }, + "modelIntrospectionSchemaBucketAutoDeleteObjectsCustomResourceFE57309F": { + "Type": "Custom::S3AutoDeleteObjects", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "Arn" + ] + }, + "BucketName": { + "Ref": "modelIntrospectionSchemaBucketF566B665" + } + }, + "DependsOn": [ + "modelIntrospectionSchemaBucketPolicy4DAB0D15" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/modelIntrospectionSchemaBucket/AutoDeleteObjectsCustomResource/Default" + } + }, + "modelIntrospectionSchemaBucketDeploymentAwsCliLayer13C432F7": { + "Type": "AWS::Lambda::LayerVersion", + "Properties": { + "Content": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "e2659170a0721541efa761a8d5d04d5e36cbbf691c4b15a9053002b7c825055d.zip" + }, + "Description": "/opt/awscli/aws" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/modelIntrospectionSchemaBucketDeployment/AwsCliLayer/Resource", + "aws:asset:path": "asset.e2659170a0721541efa761a8d5d04d5e36cbbf691c4b15a9053002b7c825055d.zip", + "aws:asset:is-bundled": false, + "aws:asset:property": "Content" + } + }, + "modelIntrospectionSchemaBucketDeploymentCustomResource1536MiB104B97EC": { + "Type": "Custom::CDKBucketDeployment", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBC5D8AB21", + "Arn" + ] + }, + "SourceBucketNames": [ + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + } + ], + "SourceObjectKeys": [ + "bbcdecb1eed320d4ad564b02b8d9bdd9c598d023476534cd6c73d3be095717a4.zip" + ], + "SourceMarkers": [ + {} + ], + "DestinationBucketName": { + "Ref": "modelIntrospectionSchemaBucketF566B665" + }, + "WaitForDistributionInvalidation": true, + "Prune": true, + "OutputObjectKeys": true + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/modelIntrospectionSchemaBucketDeployment/CustomResource-1536MiB/Default" + } + }, + "AMPLIFYDATAGRAPHQLENDPOINTParameter1C2CBB16": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/fitnesstracker/e2e-sandbox-x/AMPLIFY_DATA_GRAPHQL_ENDPOINT", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "GraphQLUrl" + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/AMPLIFY_DATA_GRAPHQL_ENDPOINTParameter/Resource" + } + }, + "AMPLIFYDATAMODELINTROSPECTIONSCHEMABUCKETNAMEParameter47BF4F44": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/fitnesstracker/e2e-sandbox-x/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_BUCKET_NAME", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": { + "Ref": "modelIntrospectionSchemaBucketF566B665" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_BUCKET_NAMEParameter/Resource" + } + }, + "AMPLIFYDATAMODELINTROSPECTIONSCHEMAKEYParameterB6AEAE8A": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/fitnesstracker/e2e-sandbox-x/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_KEY", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": "modelIntrospectionSchema.json" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_KEYParameter/Resource" + } + }, + "AMPLIFYDATADEFAULTNAMEParameterE7C23CC4": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/fitnesstracker/e2e-sandbox-x/AMPLIFY_DATA_DEFAULT_NAME", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": "amplifyData" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/AMPLIFY_DATA_DEFAULT_NAMEParameter/Resource" + } + }, + "lognutritiongen2xlambdaServiceRoleF21DB0C3": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "lognutrition-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/lognutrition-gen2-x-lambda/ServiceRole/Resource" + } + }, + "lognutritiongen2xlambdaServiceRoleDefaultPolicy9072D864": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:Put*", + "dynamodb:Create*", + "dynamodb:BatchWriteItem", + "dynamodb:PartiQLInsert", + "dynamodb:Get*", + "dynamodb:BatchGetItem", + "dynamodb:List*", + "dynamodb:Describe*", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:PartiQLSelect", + "dynamodb:Update*", + "dynamodb:RestoreTable*", + "dynamodb:PartiQLUpdate", + "dynamodb:Delete*", + "dynamodb:PartiQLDelete" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "amplifyDataMealNestedStackMealNestedStackResourceDA3F2B9A", + "Outputs.amplifyfitnesstrackere2esandboxb87516873edataamplifyDataMealMealTable74E2D2AETableArn" + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "lognutritiongen2xlambdaServiceRoleDefaultPolicy9072D864", + "Roles": [ + { + "Ref": "lognutritiongen2xlambdaServiceRoleF21DB0C3" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/lognutrition-gen2-x-lambda/ServiceRole/DefaultPolicy/Resource" + } + }, + "lognutritiongen2xlambdaDF913480": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Architectures": [ + "x86_64" + ], + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "8bce62671cc25d063d38b0d762aa3f6a1397612dca173d213e1f4645c8d43d45.zip" + }, + "Environment": { + "Variables": { + "ENV": "gen2-x", + "REGION": "us-east-1", + "AMPLIFY_SSM_ENV_CONFIG": "{}", + "API_FITNESSTRACKER_GRAPHQLAPIIDOUTPUT": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "API_FITNESSTRACKER_MEALTABLE_ARN": { + "Fn::GetAtt": [ + "amplifyDataMealNestedStackMealNestedStackResourceDA3F2B9A", + "Outputs.amplifyfitnesstrackere2esandboxb87516873edataamplifyDataMealMealTable74E2D2AETableArn" + ] + }, + "API_FITNESSTRACKER_MEALTABLE_NAME": { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "amplifyDataMealNestedStackMealNestedStackResourceDA3F2B9A", + "Outputs.amplifyfitnesstrackere2esandboxb87516873edataamplifyDataMealMealTable74E2D2AETableArn" + ] + } + ] + } + ] + } + ] + } + ] + } + } + }, + "EphemeralStorage": { + "Size": 512 + }, + "FunctionName": "lognutrition-gen2-x", + "Handler": "index.handler", + "MemorySize": 128, + "Role": { + "Fn::GetAtt": [ + "lognutritiongen2xlambdaServiceRoleF21DB0C3", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "lognutrition-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 25 + }, + "DependsOn": [ + "lognutritiongen2xlambdaServiceRoleDefaultPolicy9072D864", + "lognutritiongen2xlambdaServiceRoleF21DB0C3" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/lognutrition-gen2-x-lambda/Resource", + "aws:asset:path": "asset.8bce62671cc25d063d38b0d762aa3f6a1397612dca173d213e1f4645c8d43d45", + "aws:asset:is-bundled": true, + "aws:asset:property": "Code" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/6VSTW/bMAz9Lc1ZUbMU3aE310F7WJFlMbDLMASMTKdM9OGKcjND8H8fZDVJt52KnUi+J5KPFOdyfjuTsys48lTVh6mmrYxL5IB1FUAdxBrZdV6hgCNvIrQt91bJ+OihfX7RRUv3wCjKxo7It6eipXdRpZ7RQAKKlr5gL5bO4gICVLlo2dhLNAi+kfG+UwcMicnejzgx9Ivs5G7yXmSSwzdypFjmp0UX3AI1Bvy63aMKPBnEf2X/FJlaOU2qv2jK8QeU5YQqQECD9oPC/k0+6Uq7T1vbxBpb7fpEvyUtzoAAZgwsi2QGocFsa5CxbOwT9Oi/o2dyVlRkdxqDsw+dVSEhZ6dszuAgCIyMa6fHzxvtZTvZGwSzkbEKnuxuBR4MBvQjfwpOMjbW1bhnuRzNpUnZ2Hx+ZcfBmfMRppYn/62CTkNs4MhKkyyOXGoa5xLjvFWAHdndH83/Krry7pVq9HmZSZDc8/XrfC4/fZazqz0TTX1nAxmU62x/A6K949U2AwAA" + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthUserPoolC7DC7AACRef": { + "Type": "String" + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef": { + "Type": "String" + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref": { + "Type": "String" + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref": { + "Type": "String" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifyfitnesstrackere2esandboxb87516873edatalognutritiongen2xlambda8A6B927BRef": { + "Value": { + "Ref": "lognutritiongen2xlambdaDF913480" + } + }, + "amplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId": { + "Value": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + } + }, + "amplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5GraphQLUrl": { + "Value": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "GraphQLUrl" + ] + } + }, + "amplifyfitnesstrackere2esandboxb87516873edataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB8CEB812DDestinationBucketArn": { + "Value": { + "Fn::GetAtt": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB21775929", + "DestinationBucketArn" + ] + } + }, + "amplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPIDefaultApiKey24BA9C2AApiKey": { + "Value": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPIDefaultApiKey1C8ED374", + "ApiKey" + ] + } + }, + "amplifyfitnesstrackere2esandboxb87516873edatalognutritiongen2xlambda8A6B927BArn": { + "Value": { + "Fn::GetAtt": [ + "lognutritiongen2xlambdaDF913480", + "Arn" + ] + } + } + } +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-restapistackadminapi43EA27F6-x.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-restapistackadminapi43EA27F6-x.description.txt new file mode 100644 index 00000000000..46446793250 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-restapistackadminapi43EA27F6-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"AmplifySandbox","createdWith":"1.22.0","stackType":"custom","metadata":{}} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-restapistackadminapi43EA27F6-x.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-restapistackadminapi43EA27F6-x.outputs.json new file mode 100644 index 00000000000..02ef6da3546 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-restapistackadminapi43EA27F6-x.outputs.json @@ -0,0 +1,14 @@ +[ + { + "OutputKey": "RestApiEndpoint0551178A", + "OutputValue": "https://snusxn6lwg.execute-api.us-east-1.amazonaws.com/prod/" + }, + { + "OutputKey": "amplifyfitnesstrackere2esandboxb87516873erestapistackadminapiRestApi50D7436CRef", + "OutputValue": "snusxn6lwg" + }, + { + "OutputKey": "amplifyfitnesstrackere2esandboxb87516873erestapistackadminapiRestApiDeploymentStageprod2EE9F059Ref", + "OutputValue": "prod" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-restapistackadminapi43EA27F6-x.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-restapistackadminapi43EA27F6-x.parameters.json new file mode 100644 index 00000000000..25674b64122 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-restapistackadminapi43EA27F6-x.parameters.json @@ -0,0 +1,14 @@ +[ + { + "ParameterKey": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef", + "ParameterValue": "amplify-fitnesstra2604142-amplifyAuthauthenticatedU-NanIXo9aixs2" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthadmingen2xlambda8DFBC2FBArn", + "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:admin-gen2-x" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthAdminGroupRoleDDED643DRef", + "ParameterValue": "amplify-fitnesstra2604142-amplifyAuthAdminGroupRole-w2iwcg4Jlkt1" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-restapistackadminapi43EA27F6-x.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-restapistackadminapi43EA27F6-x.template.json new file mode 100644 index 00000000000..d1360c802f5 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-restapistackadminapi43EA27F6-x.template.json @@ -0,0 +1,1006 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.22.0\",\"stackType\":\"custom\",\"metadata\":{}}", + "Resources": { + "RestApi0C43BF4B": { + "Type": "AWS::ApiGateway::RestApi", + "Properties": { + "Name": "adminapi-gen2-x", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/rest-api-stack-adminapi/RestApi/Resource" + } + }, + "RestApiCloudWatchRoleE3ED6605": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "apigateway.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AmazonAPIGatewayPushToCloudWatchLogs" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/rest-api-stack-adminapi/RestApi/CloudWatchRole/Resource" + } + }, + "RestApiAccount7C83CF5A": { + "Type": "AWS::ApiGateway::Account", + "Properties": { + "CloudWatchRoleArn": { + "Fn::GetAtt": [ + "RestApiCloudWatchRoleE3ED6605", + "Arn" + ] + } + }, + "DependsOn": [ + "RestApi0C43BF4B" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/rest-api-stack-adminapi/RestApi/Account" + } + }, + "RestApiDeployment180EC50309a9283cbf2e6e4eef0cefd751c71b80": { + "Type": "AWS::ApiGateway::Deployment", + "Properties": { + "Description": "Automatically created by the RestApi construct", + "RestApiId": { + "Ref": "RestApi0C43BF4B" + } + }, + "DependsOn": [ + "RestApiadminproxyANYAD871D2E", + "RestApiadminproxyOPTIONS0428B0AB", + "RestApiadminproxy34EEEF46", + "RestApiadminANY959B010C", + "RestApiadminOPTIONS9579A88D", + "RestApiadmin6E2AFAD8", + "RestApiDefault4XX291F46B7", + "RestApiDefault5XXD8CFC37C" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/rest-api-stack-adminapi/RestApi/Deployment/Resource", + "aws:cdk:do-not-refactor": true + } + }, + "RestApiDeploymentStageprod3855DE66": { + "Type": "AWS::ApiGateway::Stage", + "Properties": { + "DeploymentId": { + "Ref": "RestApiDeployment180EC50309a9283cbf2e6e4eef0cefd751c71b80" + }, + "RestApiId": { + "Ref": "RestApi0C43BF4B" + }, + "StageName": "prod", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "DependsOn": [ + "RestApiAccount7C83CF5A" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/rest-api-stack-adminapi/RestApi/DeploymentStage.prod/Resource" + } + }, + "RestApiadmin6E2AFAD8": { + "Type": "AWS::ApiGateway::Resource", + "Properties": { + "ParentId": { + "Fn::GetAtt": [ + "RestApi0C43BF4B", + "RootResourceId" + ] + }, + "PathPart": "admin", + "RestApiId": { + "Ref": "RestApi0C43BF4B" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/rest-api-stack-adminapi/RestApi/Default/admin/Resource" + } + }, + "RestApiadminOPTIONS9579A88D": { + "Type": "AWS::ApiGateway::Method", + "Properties": { + "ApiKeyRequired": false, + "AuthorizationType": "NONE", + "HttpMethod": "OPTIONS", + "Integration": { + "IntegrationResponses": [ + { + "ResponseParameters": { + "method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token,X-Amz-User-Agent'", + "method.response.header.Access-Control-Allow-Origin": "'*'", + "method.response.header.Access-Control-Allow-Methods": "'OPTIONS,GET,PUT,POST,DELETE,PATCH,HEAD'" + }, + "StatusCode": "200" + } + ], + "RequestTemplates": { + "application/json": "{ statusCode: 200 }" + }, + "Type": "MOCK" + }, + "MethodResponses": [ + { + "ResponseParameters": { + "method.response.header.Access-Control-Allow-Headers": true, + "method.response.header.Access-Control-Allow-Origin": true, + "method.response.header.Access-Control-Allow-Methods": true + }, + "StatusCode": "200" + } + ], + "ResourceId": { + "Ref": "RestApiadmin6E2AFAD8" + }, + "RestApiId": { + "Ref": "RestApi0C43BF4B" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/rest-api-stack-adminapi/RestApi/Default/admin/OPTIONS/Resource" + } + }, + "RestApiadminANYApiPermissionamplifyfitnesstrackere2esandboxb87516873erestapistackadminapiRestApi6671DA38ANYadmin45D62B11": { + "Type": "AWS::Lambda::Permission", + "Properties": { + "Action": "lambda:InvokeFunction", + "FunctionName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthadmingen2xlambda8DFBC2FBArn" + }, + "Principal": "apigateway.amazonaws.com", + "SourceArn": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":", + { + "Ref": "RestApi0C43BF4B" + }, + "/", + { + "Ref": "RestApiDeploymentStageprod3855DE66" + }, + "/*/admin" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/rest-api-stack-adminapi/RestApi/Default/admin/ANY/ApiPermission.amplifyfitnesstrackere2esandboxb87516873erestapistackadminapiRestApi6671DA38.ANY..admin" + } + }, + "RestApiadminANYApiPermissionTestamplifyfitnesstrackere2esandboxb87516873erestapistackadminapiRestApi6671DA38ANYadmin313D5983": { + "Type": "AWS::Lambda::Permission", + "Properties": { + "Action": "lambda:InvokeFunction", + "FunctionName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthadmingen2xlambda8DFBC2FBArn" + }, + "Principal": "apigateway.amazonaws.com", + "SourceArn": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":", + { + "Ref": "RestApi0C43BF4B" + }, + "/test-invoke-stage/*/admin" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/rest-api-stack-adminapi/RestApi/Default/admin/ANY/ApiPermission.Test.amplifyfitnesstrackere2esandboxb87516873erestapistackadminapiRestApi6671DA38.ANY..admin" + } + }, + "RestApiadminANY959B010C": { + "Type": "AWS::ApiGateway::Method", + "Properties": { + "AuthorizationType": "AWS_IAM", + "HttpMethod": "ANY", + "Integration": { + "IntegrationHttpMethod": "POST", + "Type": "AWS_PROXY", + "Uri": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":apigateway:", + { + "Ref": "AWS::Region" + }, + ":lambda:path/2015-03-31/functions/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthadmingen2xlambda8DFBC2FBArn" + }, + "/invocations" + ] + ] + } + }, + "ResourceId": { + "Ref": "RestApiadmin6E2AFAD8" + }, + "RestApiId": { + "Ref": "RestApi0C43BF4B" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/rest-api-stack-adminapi/RestApi/Default/admin/ANY/Resource" + } + }, + "RestApiadminproxy34EEEF46": { + "Type": "AWS::ApiGateway::Resource", + "Properties": { + "ParentId": { + "Ref": "RestApiadmin6E2AFAD8" + }, + "PathPart": "{proxy+}", + "RestApiId": { + "Ref": "RestApi0C43BF4B" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/rest-api-stack-adminapi/RestApi/Default/admin/{proxy+}/Resource" + } + }, + "RestApiadminproxyOPTIONS0428B0AB": { + "Type": "AWS::ApiGateway::Method", + "Properties": { + "ApiKeyRequired": false, + "AuthorizationType": "NONE", + "HttpMethod": "OPTIONS", + "Integration": { + "IntegrationResponses": [ + { + "ResponseParameters": { + "method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token,X-Amz-User-Agent'", + "method.response.header.Access-Control-Allow-Origin": "'*'", + "method.response.header.Access-Control-Allow-Methods": "'OPTIONS,GET,PUT,POST,DELETE,PATCH,HEAD'" + }, + "StatusCode": "200" + } + ], + "RequestTemplates": { + "application/json": "{ statusCode: 200 }" + }, + "Type": "MOCK" + }, + "MethodResponses": [ + { + "ResponseParameters": { + "method.response.header.Access-Control-Allow-Headers": true, + "method.response.header.Access-Control-Allow-Origin": true, + "method.response.header.Access-Control-Allow-Methods": true + }, + "StatusCode": "200" + } + ], + "ResourceId": { + "Ref": "RestApiadminproxy34EEEF46" + }, + "RestApiId": { + "Ref": "RestApi0C43BF4B" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/rest-api-stack-adminapi/RestApi/Default/admin/{proxy+}/OPTIONS/Resource" + } + }, + "RestApiadminproxyANYApiPermissionamplifyfitnesstrackere2esandboxb87516873erestapistackadminapiRestApi6671DA38ANYadminproxyE8268F3F": { + "Type": "AWS::Lambda::Permission", + "Properties": { + "Action": "lambda:InvokeFunction", + "FunctionName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthadmingen2xlambda8DFBC2FBArn" + }, + "Principal": "apigateway.amazonaws.com", + "SourceArn": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":", + { + "Ref": "RestApi0C43BF4B" + }, + "/", + { + "Ref": "RestApiDeploymentStageprod3855DE66" + }, + "/*/admin/*" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/rest-api-stack-adminapi/RestApi/Default/admin/{proxy+}/ANY/ApiPermission.amplifyfitnesstrackere2esandboxb87516873erestapistackadminapiRestApi6671DA38.ANY..admin.{proxy+}" + } + }, + "RestApiadminproxyANYApiPermissionTestamplifyfitnesstrackere2esandboxb87516873erestapistackadminapiRestApi6671DA38ANYadminproxyAC2274CD": { + "Type": "AWS::Lambda::Permission", + "Properties": { + "Action": "lambda:InvokeFunction", + "FunctionName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthadmingen2xlambda8DFBC2FBArn" + }, + "Principal": "apigateway.amazonaws.com", + "SourceArn": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":", + { + "Ref": "RestApi0C43BF4B" + }, + "/test-invoke-stage/*/admin/*" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/rest-api-stack-adminapi/RestApi/Default/admin/{proxy+}/ANY/ApiPermission.Test.amplifyfitnesstrackere2esandboxb87516873erestapistackadminapiRestApi6671DA38.ANY..admin.{proxy+}" + } + }, + "RestApiadminproxyANYAD871D2E": { + "Type": "AWS::ApiGateway::Method", + "Properties": { + "AuthorizationType": "AWS_IAM", + "HttpMethod": "ANY", + "Integration": { + "IntegrationHttpMethod": "POST", + "Type": "AWS_PROXY", + "Uri": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":apigateway:", + { + "Ref": "AWS::Region" + }, + ":lambda:path/2015-03-31/functions/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthadmingen2xlambda8DFBC2FBArn" + }, + "/invocations" + ] + ] + } + }, + "ResourceId": { + "Ref": "RestApiadminproxy34EEEF46" + }, + "RestApiId": { + "Ref": "RestApi0C43BF4B" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/rest-api-stack-adminapi/RestApi/Default/admin/{proxy+}/ANY/Resource" + } + }, + "RestApiDefault4XX291F46B7": { + "Type": "AWS::ApiGateway::GatewayResponse", + "Properties": { + "ResponseParameters": { + "gatewayresponse.header.Access-Control-Allow-Origin": "'*'", + "gatewayresponse.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token'", + "gatewayresponse.header.Access-Control-Allow-Methods": "'DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT'", + "gatewayresponse.header.Access-Control-Expose-Headers": "'Date,X-Amzn-ErrorType'" + }, + "ResponseType": "DEFAULT_4XX", + "RestApiId": { + "Ref": "RestApi0C43BF4B" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/rest-api-stack-adminapi/RestApi/Default4XX/Resource" + } + }, + "RestApiDefault5XXD8CFC37C": { + "Type": "AWS::ApiGateway::GatewayResponse", + "Properties": { + "ResponseParameters": { + "gatewayresponse.header.Access-Control-Allow-Origin": "'*'", + "gatewayresponse.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token'", + "gatewayresponse.header.Access-Control-Allow-Methods": "'DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT'", + "gatewayresponse.header.Access-Control-Expose-Headers": "'Date,X-Amzn-ErrorType'" + }, + "ResponseType": "DEFAULT_5XX", + "RestApiId": { + "Ref": "RestApi0C43BF4B" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/rest-api-stack-adminapi/RestApi/Default5XX/Resource" + } + }, + "Gen1adminapiPolicy55C22DB4": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "execute-api:Invoke", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":wn1ifrxt6h/*/GET/*" + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "Gen1adminapiPolicy55C22DB4", + "Roles": [ + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/rest-api-stack-adminapi/Gen1adminapiPolicy/Resource" + } + }, + "adminAdminPolicyED58DCB3": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "execute-api:Invoke", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":", + { + "Ref": "RestApi0C43BF4B" + }, + "/*/GET/admin" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":", + { + "Ref": "RestApi0C43BF4B" + }, + "/*/GET/admin/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "adminAdminPolicyED58DCB3", + "Roles": [ + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthAdminGroupRoleDDED643DRef" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/rest-api-stack-adminapi/adminAdminPolicy/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/12OwU7DMAyGn2X3NJRKcB8gcRpM2QMgLzHDW5pEtUOpqr47Cqlg4uTv/2LH7nR31+p2AyM31l0aT0c9vyALuoOAvSgY+W2GRCcQHGHSs0GWbSL1+B6ucGttzEHUEyYfpx6DFHuVDgInLK6CQY55sPgA/BfWPyvvUD6iK2ql/RC/pt/n53qPQU4x8M/of7WeV1YsiqDXs4m+Lil1Hz3ZqcRKi/LQHx3oYnDoiZliWErDa5aUZVEhOtRnvvnsOn17r9vNmYmaIQehHrWp9Rus9hnJUwEAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/rest-api-stack-adminapi/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Outputs": { + "RestApiEndpoint0551178A": { + "Value": { + "Fn::Join": [ + "", + [ + "https://", + { + "Ref": "RestApi0C43BF4B" + }, + ".execute-api.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "RestApiDeploymentStageprod3855DE66" + }, + "/" + ] + ] + } + }, + "amplifyfitnesstrackere2esandboxb87516873erestapistackadminapiRestApi50D7436CRef": { + "Value": { + "Ref": "RestApi0C43BF4B" + } + }, + "amplifyfitnesstrackere2esandboxb87516873erestapistackadminapiRestApiDeploymentStageprod2EE9F059Ref": { + "Value": { + "Ref": "RestApiDeploymentStageprod3855DE66" + } + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthadmingen2xlambda8DFBC2FBArn": { + "Type": "String" + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef": { + "Type": "String" + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthAdminGroupRoleDDED643DRef": { + "Type": "String" + } + } +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-restapistacknutritionapi72914ECD-x.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-restapistacknutritionapi72914ECD-x.description.txt new file mode 100644 index 00000000000..46446793250 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-restapistacknutritionapi72914ECD-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"AmplifySandbox","createdWith":"1.22.0","stackType":"custom","metadata":{}} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-restapistacknutritionapi72914ECD-x.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-restapistacknutritionapi72914ECD-x.outputs.json new file mode 100644 index 00000000000..017fff4b1e6 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-restapistacknutritionapi72914ECD-x.outputs.json @@ -0,0 +1,14 @@ +[ + { + "OutputKey": "RestApiEndpoint0551178A", + "OutputValue": "https://xae3h1l9l7.execute-api.us-east-1.amazonaws.com/prod/" + }, + { + "OutputKey": "amplifyfitnesstrackere2esandboxb87516873erestapistacknutritionapiRestApiDeploymentStageprod6F2FD815Ref", + "OutputValue": "prod" + }, + { + "OutputKey": "amplifyfitnesstrackere2esandboxb87516873erestapistacknutritionapiRestApi28212794Ref", + "OutputValue": "xae3h1l9l7" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-restapistacknutritionapi72914ECD-x.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-restapistacknutritionapi72914ECD-x.parameters.json new file mode 100644 index 00000000000..0c7a260ee2d --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-restapistacknutritionapi72914ECD-x.parameters.json @@ -0,0 +1,14 @@ +[ + { + "ParameterKey": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef", + "ParameterValue": "amplify-fitnesstra2604142-amplifyAuthauthenticatedU-NanIXo9aixs2" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackere2esandboxb87516873edataNestedStackdataNestedStackResource5CB5414DOutputsamplifyfitnesstrackere2esandboxb87516873edatalognutritiongen2xlambda8A6B927BArn", + "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:lognutrition-gen2-x" + }, + { + "ParameterKey": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthAdminGroupRoleDDED643DRef", + "ParameterValue": "amplify-fitnesstra2604142-amplifyAuthAdminGroupRole-w2iwcg4Jlkt1" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-restapistacknutritionapi72914ECD-x.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-restapistacknutritionapi72914ECD-x.template.json new file mode 100644 index 00000000000..147a8a45508 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x-restapistacknutritionapi72914ECD-x.template.json @@ -0,0 +1,1449 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.22.0\",\"stackType\":\"custom\",\"metadata\":{}}", + "Resources": { + "RestApi0C43BF4B": { + "Type": "AWS::ApiGateway::RestApi", + "Properties": { + "Name": "nutritionapi-gen2-x", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/rest-api-stack-nutritionapi/RestApi/Resource" + } + }, + "RestApiCloudWatchRoleE3ED6605": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "apigateway.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AmazonAPIGatewayPushToCloudWatchLogs" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/rest-api-stack-nutritionapi/RestApi/CloudWatchRole/Resource" + } + }, + "RestApiAccount7C83CF5A": { + "Type": "AWS::ApiGateway::Account", + "Properties": { + "CloudWatchRoleArn": { + "Fn::GetAtt": [ + "RestApiCloudWatchRoleE3ED6605", + "Arn" + ] + } + }, + "DependsOn": [ + "RestApi0C43BF4B" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/rest-api-stack-nutritionapi/RestApi/Account" + } + }, + "RestApiDeployment180EC5033e73cf385dac4ffb99e7c8df64331992": { + "Type": "AWS::ApiGateway::Deployment", + "Properties": { + "Description": "Automatically created by the RestApi construct", + "RestApiId": { + "Ref": "RestApi0C43BF4B" + } + }, + "DependsOn": [ + "RestApinutritionlogproxyANY89358520", + "RestApinutritionlogproxyOPTIONS695D781E", + "RestApinutritionlogproxyA0E81954", + "RestApinutritionlogANY08C15E55", + "RestApinutritionlogOPTIONS0916370A", + "RestApinutritionlog525763DE", + "RestApinutrition3942DEFC", + "RestApiDefault4XX291F46B7", + "RestApiDefault5XXD8CFC37C" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/rest-api-stack-nutritionapi/RestApi/Deployment/Resource", + "aws:cdk:do-not-refactor": true + } + }, + "RestApiDeploymentStageprod3855DE66": { + "Type": "AWS::ApiGateway::Stage", + "Properties": { + "DeploymentId": { + "Ref": "RestApiDeployment180EC5033e73cf385dac4ffb99e7c8df64331992" + }, + "RestApiId": { + "Ref": "RestApi0C43BF4B" + }, + "StageName": "prod", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "DependsOn": [ + "RestApiAccount7C83CF5A" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/rest-api-stack-nutritionapi/RestApi/DeploymentStage.prod/Resource" + } + }, + "RestApinutrition3942DEFC": { + "Type": "AWS::ApiGateway::Resource", + "Properties": { + "ParentId": { + "Fn::GetAtt": [ + "RestApi0C43BF4B", + "RootResourceId" + ] + }, + "PathPart": "nutrition", + "RestApiId": { + "Ref": "RestApi0C43BF4B" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/rest-api-stack-nutritionapi/RestApi/Default/nutrition/Resource" + } + }, + "RestApinutritionlog525763DE": { + "Type": "AWS::ApiGateway::Resource", + "Properties": { + "ParentId": { + "Ref": "RestApinutrition3942DEFC" + }, + "PathPart": "log", + "RestApiId": { + "Ref": "RestApi0C43BF4B" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/Resource" + } + }, + "RestApinutritionlogOPTIONS0916370A": { + "Type": "AWS::ApiGateway::Method", + "Properties": { + "ApiKeyRequired": false, + "AuthorizationType": "NONE", + "HttpMethod": "OPTIONS", + "Integration": { + "IntegrationResponses": [ + { + "ResponseParameters": { + "method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token,X-Amz-User-Agent'", + "method.response.header.Access-Control-Allow-Origin": "'*'", + "method.response.header.Access-Control-Allow-Methods": "'OPTIONS,GET,PUT,POST,DELETE,PATCH,HEAD'" + }, + "StatusCode": "200" + } + ], + "RequestTemplates": { + "application/json": "{ statusCode: 200 }" + }, + "Type": "MOCK" + }, + "MethodResponses": [ + { + "ResponseParameters": { + "method.response.header.Access-Control-Allow-Headers": true, + "method.response.header.Access-Control-Allow-Origin": true, + "method.response.header.Access-Control-Allow-Methods": true + }, + "StatusCode": "200" + } + ], + "ResourceId": { + "Ref": "RestApinutritionlog525763DE" + }, + "RestApiId": { + "Ref": "RestApi0C43BF4B" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/OPTIONS/Resource" + } + }, + "RestApinutritionlogANYApiPermissionamplifyfitnesstrackere2esandboxb87516873erestapistacknutritionapiRestApi9084C38AANYnutritionlog8E6912BA": { + "Type": "AWS::Lambda::Permission", + "Properties": { + "Action": "lambda:InvokeFunction", + "FunctionName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataNestedStackdataNestedStackResource5CB5414DOutputsamplifyfitnesstrackere2esandboxb87516873edatalognutritiongen2xlambda8A6B927BArn" + }, + "Principal": "apigateway.amazonaws.com", + "SourceArn": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":", + { + "Ref": "RestApi0C43BF4B" + }, + "/", + { + "Ref": "RestApiDeploymentStageprod3855DE66" + }, + "/*/nutrition/log" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/ANY/ApiPermission.amplifyfitnesstrackere2esandboxb87516873erestapistacknutritionapiRestApi9084C38A.ANY..nutrition.log" + } + }, + "RestApinutritionlogANYApiPermissionTestamplifyfitnesstrackere2esandboxb87516873erestapistacknutritionapiRestApi9084C38AANYnutritionlogDF04A34A": { + "Type": "AWS::Lambda::Permission", + "Properties": { + "Action": "lambda:InvokeFunction", + "FunctionName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataNestedStackdataNestedStackResource5CB5414DOutputsamplifyfitnesstrackere2esandboxb87516873edatalognutritiongen2xlambda8A6B927BArn" + }, + "Principal": "apigateway.amazonaws.com", + "SourceArn": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":", + { + "Ref": "RestApi0C43BF4B" + }, + "/test-invoke-stage/*/nutrition/log" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/ANY/ApiPermission.Test.amplifyfitnesstrackere2esandboxb87516873erestapistacknutritionapiRestApi9084C38A.ANY..nutrition.log" + } + }, + "RestApinutritionlogANY08C15E55": { + "Type": "AWS::ApiGateway::Method", + "Properties": { + "AuthorizationType": "AWS_IAM", + "HttpMethod": "ANY", + "Integration": { + "IntegrationHttpMethod": "POST", + "Type": "AWS_PROXY", + "Uri": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":apigateway:", + { + "Ref": "AWS::Region" + }, + ":lambda:path/2015-03-31/functions/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataNestedStackdataNestedStackResource5CB5414DOutputsamplifyfitnesstrackere2esandboxb87516873edatalognutritiongen2xlambda8A6B927BArn" + }, + "/invocations" + ] + ] + } + }, + "ResourceId": { + "Ref": "RestApinutritionlog525763DE" + }, + "RestApiId": { + "Ref": "RestApi0C43BF4B" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/ANY/Resource" + } + }, + "RestApinutritionlogproxyA0E81954": { + "Type": "AWS::ApiGateway::Resource", + "Properties": { + "ParentId": { + "Ref": "RestApinutritionlog525763DE" + }, + "PathPart": "{proxy+}", + "RestApiId": { + "Ref": "RestApi0C43BF4B" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/{proxy+}/Resource" + } + }, + "RestApinutritionlogproxyOPTIONS695D781E": { + "Type": "AWS::ApiGateway::Method", + "Properties": { + "ApiKeyRequired": false, + "AuthorizationType": "NONE", + "HttpMethod": "OPTIONS", + "Integration": { + "IntegrationResponses": [ + { + "ResponseParameters": { + "method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token,X-Amz-User-Agent'", + "method.response.header.Access-Control-Allow-Origin": "'*'", + "method.response.header.Access-Control-Allow-Methods": "'OPTIONS,GET,PUT,POST,DELETE,PATCH,HEAD'" + }, + "StatusCode": "200" + } + ], + "RequestTemplates": { + "application/json": "{ statusCode: 200 }" + }, + "Type": "MOCK" + }, + "MethodResponses": [ + { + "ResponseParameters": { + "method.response.header.Access-Control-Allow-Headers": true, + "method.response.header.Access-Control-Allow-Origin": true, + "method.response.header.Access-Control-Allow-Methods": true + }, + "StatusCode": "200" + } + ], + "ResourceId": { + "Ref": "RestApinutritionlogproxyA0E81954" + }, + "RestApiId": { + "Ref": "RestApi0C43BF4B" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/{proxy+}/OPTIONS/Resource" + } + }, + "RestApinutritionlogproxyANYApiPermissionamplifyfitnesstrackere2esandboxb87516873erestapistacknutritionapiRestApi9084C38AANYnutritionlogproxyFCDF0CD2": { + "Type": "AWS::Lambda::Permission", + "Properties": { + "Action": "lambda:InvokeFunction", + "FunctionName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataNestedStackdataNestedStackResource5CB5414DOutputsamplifyfitnesstrackere2esandboxb87516873edatalognutritiongen2xlambda8A6B927BArn" + }, + "Principal": "apigateway.amazonaws.com", + "SourceArn": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":", + { + "Ref": "RestApi0C43BF4B" + }, + "/", + { + "Ref": "RestApiDeploymentStageprod3855DE66" + }, + "/*/nutrition/log/*" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/{proxy+}/ANY/ApiPermission.amplifyfitnesstrackere2esandboxb87516873erestapistacknutritionapiRestApi9084C38A.ANY..nutrition.log.{proxy+}" + } + }, + "RestApinutritionlogproxyANYApiPermissionTestamplifyfitnesstrackere2esandboxb87516873erestapistacknutritionapiRestApi9084C38AANYnutritionlogproxyFDB894CB": { + "Type": "AWS::Lambda::Permission", + "Properties": { + "Action": "lambda:InvokeFunction", + "FunctionName": { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataNestedStackdataNestedStackResource5CB5414DOutputsamplifyfitnesstrackere2esandboxb87516873edatalognutritiongen2xlambda8A6B927BArn" + }, + "Principal": "apigateway.amazonaws.com", + "SourceArn": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":", + { + "Ref": "RestApi0C43BF4B" + }, + "/test-invoke-stage/*/nutrition/log/*" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/{proxy+}/ANY/ApiPermission.Test.amplifyfitnesstrackere2esandboxb87516873erestapistacknutritionapiRestApi9084C38A.ANY..nutrition.log.{proxy+}" + } + }, + "RestApinutritionlogproxyANY89358520": { + "Type": "AWS::ApiGateway::Method", + "Properties": { + "AuthorizationType": "AWS_IAM", + "HttpMethod": "ANY", + "Integration": { + "IntegrationHttpMethod": "POST", + "Type": "AWS_PROXY", + "Uri": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":apigateway:", + { + "Ref": "AWS::Region" + }, + ":lambda:path/2015-03-31/functions/", + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873edataNestedStackdataNestedStackResource5CB5414DOutputsamplifyfitnesstrackere2esandboxb87516873edatalognutritiongen2xlambda8A6B927BArn" + }, + "/invocations" + ] + ] + } + }, + "ResourceId": { + "Ref": "RestApinutritionlogproxyA0E81954" + }, + "RestApiId": { + "Ref": "RestApi0C43BF4B" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/{proxy+}/ANY/Resource" + } + }, + "RestApiDefault4XX291F46B7": { + "Type": "AWS::ApiGateway::GatewayResponse", + "Properties": { + "ResponseParameters": { + "gatewayresponse.header.Access-Control-Allow-Origin": "'*'", + "gatewayresponse.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token'", + "gatewayresponse.header.Access-Control-Allow-Methods": "'DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT'", + "gatewayresponse.header.Access-Control-Expose-Headers": "'Date,X-Amzn-ErrorType'" + }, + "ResponseType": "DEFAULT_4XX", + "RestApiId": { + "Ref": "RestApi0C43BF4B" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/rest-api-stack-nutritionapi/RestApi/Default4XX/Resource" + } + }, + "RestApiDefault5XXD8CFC37C": { + "Type": "AWS::ApiGateway::GatewayResponse", + "Properties": { + "ResponseParameters": { + "gatewayresponse.header.Access-Control-Allow-Origin": "'*'", + "gatewayresponse.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token'", + "gatewayresponse.header.Access-Control-Allow-Methods": "'DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT'", + "gatewayresponse.header.Access-Control-Expose-Headers": "'Date,X-Amzn-ErrorType'" + }, + "ResponseType": "DEFAULT_5XX", + "RestApiId": { + "Ref": "RestApi0C43BF4B" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/rest-api-stack-nutritionapi/RestApi/Default5XX/Resource" + } + }, + "Gen1nutritionapiPolicyAC846721": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "execute-api:Invoke", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":s27d6on2x4/*/POST/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":s27d6on2x4/*/GET/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":s27d6on2x4/*/PUT/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":s27d6on2x4/*/DELETE/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "Gen1nutritionapiPolicyAC846721", + "Roles": [ + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/rest-api-stack-nutritionapi/Gen1nutritionapiPolicy/Resource" + } + }, + "nutritionlogAuthPolicyF60C3901": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "execute-api:Invoke", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":", + { + "Ref": "RestApi0C43BF4B" + }, + "/*/POST/nutrition/log" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":", + { + "Ref": "RestApi0C43BF4B" + }, + "/*/POST/nutrition/log/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":", + { + "Ref": "RestApi0C43BF4B" + }, + "/*/GET/nutrition/log" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":", + { + "Ref": "RestApi0C43BF4B" + }, + "/*/GET/nutrition/log/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":", + { + "Ref": "RestApi0C43BF4B" + }, + "/*/PUT/nutrition/log" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":", + { + "Ref": "RestApi0C43BF4B" + }, + "/*/PUT/nutrition/log/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":", + { + "Ref": "RestApi0C43BF4B" + }, + "/*/DELETE/nutrition/log" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":", + { + "Ref": "RestApi0C43BF4B" + }, + "/*/DELETE/nutrition/log/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "nutritionlogAuthPolicyF60C3901", + "Roles": [ + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/rest-api-stack-nutritionapi/nutritionlogAuthPolicy/Resource" + } + }, + "nutritionlogAdminPolicy5FCB013F": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "execute-api:Invoke", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":", + { + "Ref": "RestApi0C43BF4B" + }, + "/*/POST/nutrition/log" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":", + { + "Ref": "RestApi0C43BF4B" + }, + "/*/POST/nutrition/log/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":", + { + "Ref": "RestApi0C43BF4B" + }, + "/*/GET/nutrition/log" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":", + { + "Ref": "RestApi0C43BF4B" + }, + "/*/GET/nutrition/log/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":", + { + "Ref": "RestApi0C43BF4B" + }, + "/*/PUT/nutrition/log" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":", + { + "Ref": "RestApi0C43BF4B" + }, + "/*/PUT/nutrition/log/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":", + { + "Ref": "RestApi0C43BF4B" + }, + "/*/DELETE/nutrition/log" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":", + { + "Ref": "RestApi0C43BF4B" + }, + "/*/DELETE/nutrition/log/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "nutritionlogAdminPolicy5FCB013F", + "Roles": [ + { + "Ref": "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthAdminGroupRoleDDED643DRef" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/rest-api-stack-nutritionapi/nutritionlogAdminPolicy/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/12OwU7DMAyGn2X3NJRKcB8gcRpM2QMgLzHDW5pEtUOpqr47Cqlg4uTv/2LH7nR31+p2AyM31l0aT0c9vyALuoOAvSgY+W2GRCcQHGHSs0GWbSL1+B6ucGttzEHUEyYfpx6DFHuVDgInLK6CQY55sPgA/BfWPyvvUD6iK2ql/RC/pt/n53qPQU4x8M/of7WeV1YsiqDXs4m+Lil1Hz3ZqcRKi/LQHx3oYnDoiZliWErDa5aUZVEhOtRnvvnsOn17r9vNmYmaIQehHrWp9Rus9hnJUwEAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/rest-api-stack-nutritionapi/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Outputs": { + "RestApiEndpoint0551178A": { + "Value": { + "Fn::Join": [ + "", + [ + "https://", + { + "Ref": "RestApi0C43BF4B" + }, + ".execute-api.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "RestApiDeploymentStageprod3855DE66" + }, + "/" + ] + ] + } + }, + "amplifyfitnesstrackere2esandboxb87516873erestapistacknutritionapiRestApi28212794Ref": { + "Value": { + "Ref": "RestApi0C43BF4B" + } + }, + "amplifyfitnesstrackere2esandboxb87516873erestapistacknutritionapiRestApiDeploymentStageprod6F2FD815Ref": { + "Value": { + "Ref": "RestApiDeploymentStageprod3855DE66" + } + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "referencetoamplifyfitnesstrackere2esandboxb87516873edataNestedStackdataNestedStackResource5CB5414DOutputsamplifyfitnesstrackere2esandboxb87516873edatalognutritiongen2xlambda8A6B927BArn": { + "Type": "String" + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef": { + "Type": "String" + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthAdminGroupRoleDDED643DRef": { + "Type": "String" + } + } +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x.description.txt new file mode 100644 index 00000000000..d1c87f28683 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"AmplifySandbox","createdWith":"1.22.0","stackType":"root","metadata":{}} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x.outputs.json new file mode 100644 index 00000000000..f5f5e59ab7b --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x.outputs.json @@ -0,0 +1,130 @@ +[ + { + "OutputKey": "webClientId", + "OutputValue": "1tmuolsu3gsj9nj6bg66l3capo" + }, + { + "OutputKey": "socialProviders", + "OutputValue": "" + }, + { + "OutputKey": "usernameAttributes", + "OutputValue": "[]" + }, + { + "OutputKey": "signupAttributes", + "OutputValue": "[\"email\"]" + }, + { + "OutputKey": "oauthClientId", + "OutputValue": "1tmuolsu3gsj9nj6bg66l3capo" + }, + { + "OutputKey": "allowUnauthenticatedIdentities", + "OutputValue": "false" + }, + { + "OutputKey": "oauthCognitoDomain", + "OutputValue": "" + }, + { + "OutputKey": "oauthScope", + "OutputValue": "[\"profile\",\"phone\",\"email\",\"openid\",\"aws.cognito.signin.user.admin\"]" + }, + { + "OutputKey": "oauthRedirectSignOut", + "OutputValue": "" + }, + { + "OutputKey": "awsAppsyncAdditionalAuthenticationTypes", + "OutputValue": "API_KEY,AWS_IAM" + }, + { + "OutputKey": "mfaTypes", + "OutputValue": "[]" + }, + { + "OutputKey": "mfaConfiguration", + "OutputValue": "OFF" + }, + { + "OutputKey": "oauthResponseType", + "OutputValue": "code" + }, + { + "OutputKey": "awsAppsyncApiKey", + "OutputValue": "da2-fakeapikey00000000000000" + }, + { + "OutputKey": "awsAppsyncAuthenticationType", + "OutputValue": "AMAZON_COGNITO_USER_POOLS" + }, + { + "OutputKey": "customOutputs", + "OutputValue": "{\"custom\":{\"API\":{\"nutritionapi-gen2-x\":{\"endpoint\":\"https://xae3h1l9l7.execute-api.us-east-1.amazonaws.com/prod\",\"region\":\"us-east-1\",\"apiName\":\"nutritionapi-gen2-x\"},\"adminapi-gen2-x\":{\"endpoint\":\"https://snusxn6lwg.execute-api.us-east-1.amazonaws.com/prod\",\"region\":\"us-east-1\",\"apiName\":\"adminapi-gen2-x\"}}},\"version\":\"1.4\"}" + }, + { + "OutputKey": "oauthRedirectSignIn", + "OutputValue": "https://example.com" + }, + { + "OutputKey": "passwordPolicyMinLength", + "OutputValue": "8" + }, + { + "OutputKey": "awsAppsyncApiEndpoint", + "OutputValue": "https://xswambcukzfbnhzand3lag77ey.appsync-api.us-east-1.amazonaws.com/graphql" + }, + { + "OutputKey": "awsAppsyncApiId", + "OutputValue": "pa7lr2bmbjfqxdfidheoysbvhu" + }, + { + "OutputKey": "authRegion", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "amplifyApiModelSchemaS3Uri", + "OutputValue": "s3://amplify-fitnesstra2604142-amplifydataamplifycodege-kqzgdclvoxoc/model-schema.graphql" + }, + { + "OutputKey": "groups", + "OutputValue": "[{\"Admin\":{\"precedence\":0}}]" + }, + { + "OutputKey": "definedFunctions", + "OutputValue": "[\"fitnesstracker33f5545533f55455PreSignup-gen2-x\",\"admin-gen2-x\",\"lognutrition-gen2-x\"]" + }, + { + "OutputKey": "passwordlessOptions", + "OutputValue": "" + }, + { + "OutputKey": "awsAppsyncRegion", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "deploymentType", + "OutputValue": "sandbox" + }, + { + "OutputKey": "passwordPolicyRequirements", + "OutputValue": "[]" + }, + { + "OutputKey": "region", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "userPoolId", + "OutputValue": "us-east-1_FnKoHEldQ" + }, + { + "OutputKey": "identityPoolId", + "OutputValue": "us-east-1:64bddaa4-7f3b-47a0-b404-3275cd735004" + }, + { + "OutputKey": "verificationMechanisms", + "OutputValue": "[\"email\"]" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x.parameters.json new file mode 100644 index 00000000000..9b7e2669975 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x.parameters.json @@ -0,0 +1,7 @@ +[ + { + "ParameterKey": "BootstrapVersion", + "ParameterValue": "/cdk-bootstrap/hnb659fds/version", + "ResolvedValue": "30" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x.template.json new file mode 100644 index 00000000000..f9be6006070 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-e2e-sandbox-x.template.json @@ -0,0 +1,868 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.22.0\",\"stackType\":\"root\",\"metadata\":{}}", + "Metadata": { + "AWS::Amplify::Platform": { + "version": "1", + "stackOutputs": [ + "deploymentType", + "region" + ] + }, + "AWS::Amplify::Auth": { + "version": "1", + "stackOutputs": [ + "userPoolId", + "webClientId", + "identityPoolId", + "authRegion", + "allowUnauthenticatedIdentities", + "signupAttributes", + "usernameAttributes", + "verificationMechanisms", + "passwordPolicyMinLength", + "passwordPolicyRequirements", + "mfaConfiguration", + "mfaTypes", + "passwordlessOptions", + "socialProviders", + "oauthCognitoDomain", + "oauthScope", + "oauthRedirectSignIn", + "oauthRedirectSignOut", + "oauthResponseType", + "oauthClientId", + "groups" + ] + }, + "AWS::Amplify::Function": { + "version": "1", + "stackOutputs": [ + "definedFunctions" + ] + }, + "AWS::Amplify::GraphQL": { + "version": "1", + "stackOutputs": [ + "awsAppsyncApiId", + "awsAppsyncApiEndpoint", + "awsAppsyncAuthenticationType", + "awsAppsyncRegion", + "amplifyApiModelSchemaS3Uri", + "awsAppsyncApiKey", + "awsAppsyncAdditionalAuthenticationTypes" + ] + }, + "AWS::Amplify::Custom": { + "version": "1", + "stackOutputs": [ + "customOutputs" + ] + } + }, + "Outputs": { + "deploymentType": { + "Value": "sandbox" + }, + "region": { + "Value": { + "Ref": "AWS::Region" + } + }, + "userPoolId": { + "Value": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthUserPoolC7DC7AACRef" + ] + } + }, + "webClientId": { + "Value": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthUserPoolAppClientB7EA7D1ERef" + ] + } + }, + "identityPoolId": { + "Value": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref" + ] + } + }, + "authRegion": { + "Value": { + "Ref": "AWS::Region" + } + }, + "allowUnauthenticatedIdentities": { + "Value": "false" + }, + "signupAttributes": { + "Value": "[\"email\"]" + }, + "usernameAttributes": { + "Value": "[]" + }, + "verificationMechanisms": { + "Value": "[\"email\"]" + }, + "passwordPolicyMinLength": { + "Value": "8" + }, + "passwordPolicyRequirements": { + "Value": "[]" + }, + "mfaConfiguration": { + "Value": "OFF" + }, + "mfaTypes": { + "Value": "[]" + }, + "passwordlessOptions": { + "Value": "" + }, + "socialProviders": { + "Value": "" + }, + "oauthCognitoDomain": { + "Value": "" + }, + "oauthScope": { + "Value": "[\"profile\",\"phone\",\"email\",\"openid\",\"aws.cognito.signin.user.admin\"]" + }, + "oauthRedirectSignIn": { + "Value": "https://example.com" + }, + "oauthRedirectSignOut": { + "Value": "" + }, + "oauthResponseType": { + "Value": "code" + }, + "oauthClientId": { + "Value": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthUserPoolAppClientB7EA7D1ERef" + ] + } + }, + "groups": { + "Value": "[{\"Admin\":{\"precedence\":0}}]" + }, + "definedFunctions": { + "Value": { + "Fn::Join": [ + "", + [ + "[\"", + { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifyfitnesstrackere2esandboxb87516873eauthfitnesstracker33f5545533f55455PreSignupgen2xlambdaF9537418Ref" + ] + }, + "\",\"", + { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifyfitnesstrackere2esandboxb87516873eauthadmingen2xlambda8DFBC2FBRef" + ] + }, + "\",\"", + { + "Fn::GetAtt": [ + "data7552DF31", + "Outputs.amplifyfitnesstrackere2esandboxb87516873edatalognutritiongen2xlambda8A6B927BRef" + ] + }, + "\"]" + ] + ] + } + }, + "awsAppsyncApiId": { + "Value": { + "Fn::GetAtt": [ + "data7552DF31", + "Outputs.amplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5ApiId" + ] + } + }, + "awsAppsyncApiEndpoint": { + "Value": { + "Fn::GetAtt": [ + "data7552DF31", + "Outputs.amplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPI2639E0B5GraphQLUrl" + ] + } + }, + "awsAppsyncAuthenticationType": { + "Value": "AMAZON_COGNITO_USER_POOLS" + }, + "awsAppsyncRegion": { + "Value": { + "Ref": "AWS::Region" + } + }, + "amplifyApiModelSchemaS3Uri": { + "Value": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Fn::Select": [ + 0, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "data7552DF31", + "Outputs.amplifyfitnesstrackere2esandboxb87516873edataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB8CEB812DDestinationBucketArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "/model-schema.graphql" + ] + ] + } + }, + "awsAppsyncApiKey": { + "Value": { + "Fn::GetAtt": [ + "data7552DF31", + "Outputs.amplifyfitnesstrackere2esandboxb87516873edataamplifyDataGraphQLAPIDefaultApiKey24BA9C2AApiKey" + ] + } + }, + "awsAppsyncAdditionalAuthenticationTypes": { + "Value": "API_KEY,AWS_IAM" + }, + "customOutputs": { + "Value": { + "Fn::Join": [ + "", + [ + "{\"custom\":{\"API\":{\"nutritionapi-gen2-x\":{\"endpoint\":\"https://", + { + "Fn::GetAtt": [ + "restapistacknutritionapi72914ECD", + "Outputs.amplifyfitnesstrackere2esandboxb87516873erestapistacknutritionapiRestApi28212794Ref" + ] + }, + ".execute-api.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::GetAtt": [ + "restapistacknutritionapi72914ECD", + "Outputs.amplifyfitnesstrackere2esandboxb87516873erestapistacknutritionapiRestApiDeploymentStageprod6F2FD815Ref" + ] + }, + "\",\"region\":\"", + { + "Ref": "AWS::Region" + }, + "\",\"apiName\":\"nutritionapi-gen2-x\"},\"adminapi-gen2-x\":{\"endpoint\":\"https://", + { + "Fn::GetAtt": [ + "restapistackadminapi43EA27F6", + "Outputs.amplifyfitnesstrackere2esandboxb87516873erestapistackadminapiRestApi50D7436CRef" + ] + }, + ".execute-api.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::GetAtt": [ + "restapistackadminapi43EA27F6", + "Outputs.amplifyfitnesstrackere2esandboxb87516873erestapistackadminapiRestApiDeploymentStageprod2EE9F059Ref" + ] + }, + "\",\"region\":\"", + { + "Ref": "AWS::Region" + }, + "\",\"apiName\":\"adminapi-gen2-x\"}}},\"version\":\"1.4\"}" + ] + ] + } + } + }, + "Resources": { + "auth179371D7": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/61b963ab8f5ec2cfa07fcb56eb956ae6ebe9b383f66218b0a3e873e3cfbd639a.json" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/auth.NestedStack/auth.NestedStackResource", + "aws:asset:path": "amplifyfitnesstrackere2esandboxb87516873eauth3DBBCCD9.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "data7552DF31": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthUserPoolC7DC7AACRef": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthUserPoolC7DC7AACRef" + ] + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef" + ] + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthunauthenticatedUserRoleC3170373Ref" + ] + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthIdentityPool5207C654Ref" + ] + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/33265294e8dd64f33c77ef3931ad1ca3aac0fa8177832ee14543e1554f68f90b.json" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/data.NestedStack/data.NestedStackResource", + "aws:asset:path": "amplifyfitnesstrackere2esandboxb87516873edata8F734C15.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "restapistacknutritionapi72914ECD": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetoamplifyfitnesstrackere2esandboxb87516873edataNestedStackdataNestedStackResource5CB5414DOutputsamplifyfitnesstrackere2esandboxb87516873edatalognutritiongen2xlambda8A6B927BArn": { + "Fn::GetAtt": [ + "data7552DF31", + "Outputs.amplifyfitnesstrackere2esandboxb87516873edatalognutritiongen2xlambda8A6B927BArn" + ] + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef" + ] + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthAdminGroupRoleDDED643DRef": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthAdminGroupRoleDDED643DRef" + ] + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/1f8ece1fb0bf98617bcd6b5ccb746e2f4f4f6ecfa79b7e9a7ce0210a96c59641.json" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/rest-api-stack-nutritionapi.NestedStack/rest-api-stack-nutritionapi.NestedStackResource", + "aws:asset:path": "amplifyfitnesstrackere2esandboxb87516873erestapistacknutritionapi7AE2021D.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "restapistackadminapi43EA27F6": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthadmingen2xlambda8DFBC2FBArn": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifyfitnesstrackere2esandboxb87516873eauthadmingen2xlambda8DFBC2FBArn" + ] + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthauthenticatedUserRole0560F89FRef" + ] + }, + "referencetoamplifyfitnesstrackere2esandboxb87516873eauthNestedStackauthNestedStackResource3D775B9AOutputsamplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthAdminGroupRoleDDED643DRef": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifyfitnesstrackere2esandboxb87516873eauthamplifyAuthAdminGroupRoleDDED643DRef" + ] + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/7c920eb478a9fd6c6d70b5b5914e856596030edbc4bcbe32bc1ce0ad34f79087.json" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/rest-api-stack-adminapi.NestedStack/rest-api-stack-adminapi.NestedStackResource", + "aws:asset:path": "amplifyfitnesstrackere2esandboxb87516873erestapistackadminapiA65FC2B9.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/zPSMzI10DNQTCwv1k1OydbNyUzSqw4uSUzO1nFOy/MvLSkoLQGxwEK1Onn5Kal6WcX6ZUZGeoZmegaKWcWZmbpFpXklmbmpekEQGgAGekjOVAAAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-fitnesstracker-e2e-sandbox-x/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "BootstrapVersion": { + "Type": "AWS::SSM::Parameter::Value", + "Default": "/cdk-bootstrap/hnb659fds/version", + "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]" + } + }, + "Rules": { + "CheckBootstrapVersion": { + "Assertions": [ + { + "Assert": { + "Fn::Not": [ + { + "Fn::Contains": [ + [ + "1", + "2", + "3", + "4", + "5" + ], + { + "Ref": "BootstrapVersion" + } + ] + } + ] + }, + "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI." + } + ] + } + } +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataAmplifyTableManagerNestedStackA-75CKIPDMA8E7.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataAmplifyTableManagerNestedStackA-75CKIPDMA8E7.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataAmplifyTableManagerNestedStackA-75CKIPDMA8E7.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataAmplifyTableManagerNestedStackA-75CKIPDMA8E7.outputs.json deleted file mode 100644 index 247a6aabec3..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataAmplifyTableManagerNestedStackA-75CKIPDMA8E7.outputs.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - { - "OutputKey": "amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent4D2D0CF9Arn", - "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-fitnesstracker-ge-TableManagerCustomProvid-tD7nAluDQILS" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataAmplifyTableManagerNestedStackA-75CKIPDMA8E7.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataAmplifyTableManagerNestedStackA-75CKIPDMA8E7.parameters.json deleted file mode 100644 index 6d3d672c6ad..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataAmplifyTableManagerNestedStackA-75CKIPDMA8E7.parameters.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId", - "ParameterValue": "jrmmxaml4ndpxmx4pmyk3bgv7u" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataAmplifyTableManagerNestedStackA-75CKIPDMA8E7.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataAmplifyTableManagerNestedStackA-75CKIPDMA8E7.template.json deleted file mode 100644 index 5cab0a1cea5..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataAmplifyTableManagerNestedStackA-75CKIPDMA8E7.template.json +++ /dev/null @@ -1,811 +0,0 @@ -{ - "Resources": { - "AmplifyManagedTableIsCompleteRoleF825222C": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:CreateTable", - "dynamodb:UpdateTable", - "dynamodb:DeleteTable", - "dynamodb:DescribeTable", - "dynamodb:DescribeContinuousBackups", - "dynamodb:DescribeTimeToLive", - "dynamodb:UpdateContinuousBackups", - "dynamodb:UpdateTimeToLive", - "dynamodb:TagResource", - "dynamodb:UntagResource", - "dynamodb:ListTagsOfResource" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/*-${apiId}-${envName}", - { - "apiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "envName": "NONE" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", - { - "tableName": "WorkoutProgram-jzwb5p2vcbd2ldlnlxokgjcjby-main" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", - { - "tableName": "Exercise-jzwb5p2vcbd2ldlnlxokgjcjby-main" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", - { - "tableName": "Meal-jzwb5p2vcbd2ldlnlxokgjcjby-main" - } - ] - } - ] - }, - { - "Action": "lambda:ListTags", - "Effect": "Allow", - "Resource": { - "Fn::Sub": [ - "arn:${AWS::Partition}:lambda:${AWS::Region}:${AWS::AccountId}:function:*TableManager*", - {} - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "CreateUpdateDeleteTablesPolicy" - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/AmplifyTableManager/AmplifyManagedTableIsCompleteRole/Resource" - } - }, - "AmplifyManagedTableOnEventRoleB4E71DEA": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:CreateTable", - "dynamodb:UpdateTable", - "dynamodb:DeleteTable", - "dynamodb:DescribeTable", - "dynamodb:DescribeContinuousBackups", - "dynamodb:DescribeTimeToLive", - "dynamodb:UpdateContinuousBackups", - "dynamodb:UpdateTimeToLive", - "dynamodb:TagResource", - "dynamodb:UntagResource", - "dynamodb:ListTagsOfResource" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/*-${apiId}-${envName}", - { - "apiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "envName": "NONE" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", - { - "tableName": "WorkoutProgram-jzwb5p2vcbd2ldlnlxokgjcjby-main" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", - { - "tableName": "Exercise-jzwb5p2vcbd2ldlnlxokgjcjby-main" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", - { - "tableName": "Meal-jzwb5p2vcbd2ldlnlxokgjcjby-main" - } - ] - } - ] - }, - { - "Action": "lambda:ListTags", - "Effect": "Allow", - "Resource": { - "Fn::Sub": [ - "arn:${AWS::Partition}:lambda:${AWS::Region}:${AWS::AccountId}:function:*TableManager*", - {} - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "CreateUpdateDeleteTablesPolicy" - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/AmplifyTableManager/AmplifyManagedTableOnEventRole/Resource" - } - }, - "AmplifyManagedTableOnEventRoleDefaultPolicyF6DABCB6": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "states:StartExecution", - "Effect": "Allow", - "Resource": { - "Ref": "AmplifyTableWaiterStateMachine060600BC" - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "AmplifyManagedTableOnEventRoleDefaultPolicyF6DABCB6", - "Roles": [ - { - "Ref": "AmplifyManagedTableOnEventRoleB4E71DEA" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/AmplifyTableManager/AmplifyManagedTableOnEventRole/DefaultPolicy/Resource" - } - }, - "TableManagerCustomProviderframeworkonEvent1DFC2ECC": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6.zip" - }, - "Description": "AmplifyManagedTable - onEvent (amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider)", - "Environment": { - "Variables": { - "WAITER_STATE_MACHINE_ARN": { - "Ref": "AmplifyTableWaiterStateMachine060600BC" - } - } - }, - "Handler": "amplify-table-manager-handler.onEvent", - "Role": { - "Fn::GetAtt": [ - "AmplifyManagedTableOnEventRoleB4E71DEA", - "Arn" - ] - }, - "Runtime": "nodejs24.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 840 - }, - "DependsOn": [ - "AmplifyManagedTableOnEventRoleDefaultPolicyF6DABCB6", - "AmplifyManagedTableOnEventRoleB4E71DEA" - ], - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider/framework-onEvent/Resource", - "aws:asset:path": "asset.f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6", - "aws:asset:is-bundled": false, - "aws:asset:property": "Code" - } - }, - "TableManagerCustomProviderframeworkisComplete2E51021B": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6.zip" - }, - "Description": "AmplifyManagedTable - isComplete (amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider)", - "Handler": "amplify-table-manager-handler.isComplete", - "Role": { - "Fn::GetAtt": [ - "AmplifyManagedTableIsCompleteRoleF825222C", - "Arn" - ] - }, - "Runtime": "nodejs24.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 840 - }, - "DependsOn": [ - "AmplifyManagedTableIsCompleteRoleF825222C" - ], - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider/framework-isComplete/Resource", - "aws:asset:path": "asset.f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6", - "aws:asset:is-bundled": false, - "aws:asset:property": "Code" - } - }, - "AmplifyTableWaiterStateMachineRole470BE899": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "states.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Role/Resource" - } - }, - "AmplifyTableWaiterStateMachineRoleDefaultPolicy89F3836A": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "lambda:InvokeFunction", - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "TableManagerCustomProviderframeworkisComplete2E51021B", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "TableManagerCustomProviderframeworkisComplete2E51021B", - "Arn" - ] - }, - ":*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "AmplifyTableWaiterStateMachineRoleDefaultPolicy89F3836A", - "Roles": [ - { - "Ref": "AmplifyTableWaiterStateMachineRole470BE899" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Role/DefaultPolicy/Resource" - } - }, - "AmplifyTableWaiterStateMachine060600BC": { - "Type": "AWS::StepFunctions::StateMachine", - "Properties": { - "DefinitionString": { - "Fn::Join": [ - "", - [ - "{\"StartAt\":\"framework-isComplete-task\",\"States\":{\"framework-isComplete-task\":{\"End\":true,\"Retry\":[{\"ErrorEquals\":[\"States.ALL\"],\"IntervalSeconds\":10,\"MaxAttempts\":360,\"BackoffRate\":1}],\"Type\":\"Task\",\"Resource\":\"", - { - "Fn::GetAtt": [ - "TableManagerCustomProviderframeworkisComplete2E51021B", - "Arn" - ] - }, - "\"}}}" - ] - ] - }, - "RoleArn": { - "Fn::GetAtt": [ - "AmplifyTableWaiterStateMachineRole470BE899", - "Arn" - ] - } - }, - "DependsOn": [ - "AmplifyTableWaiterStateMachineRoleDefaultPolicy89F3836A", - "AmplifyTableWaiterStateMachineRole470BE899" - ], - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/zWNQQ6CMBBFz8K+jAgs3IqJS2PgAGRoR1IobcIUiWl6dwPo6r2ft/g55GUJWYIrp1KNqdEdhAexJ9V4lKPAldugcYJQO0Pi9rI7n85o+dnmYVEYnDqFEO6LlV47u7W/R8FFi8zkGa4bBBdQLXIkXyFTFDWxW2ZJYq+Nx17bfj/7hSisUwQDn955DucLZMnAWqfzYr2eCOqDX96JKODPAAAA" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/AmplifyTableManager/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId": { - "Type": "String" - } - }, - "Outputs": { - "amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent4D2D0CF9Arn": { - "Value": { - "Fn::GetAtt": [ - "TableManagerCustomProviderframeworkonEvent1DFC2ECC", - "Arn" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataConnectionStackNestedStackConne-WNK2ROR3OZN0.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataConnectionStackNestedStackConne-WNK2ROR3OZN0.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataConnectionStackNestedStackConne-WNK2ROR3OZN0.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataConnectionStackNestedStackConne-WNK2ROR3OZN0.outputs.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataConnectionStackNestedStackConne-WNK2ROR3OZN0.outputs.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataConnectionStackNestedStackConne-WNK2ROR3OZN0.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataConnectionStackNestedStackConne-WNK2ROR3OZN0.parameters.json deleted file mode 100644 index ed214a6fa9b..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataConnectionStackNestedStackConne-WNK2ROR3OZN0.parameters.json +++ /dev/null @@ -1,30 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataExerciseNestedStackExerciseNestedStackResourceA766B8C6Outputsamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataExerciseExerciseTableA7BD0631TableArn", - "ParameterValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Exercise-jzwb5p2vcbd2ldlnlxokgjcjby-main" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef", - "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthunauthenticate-RtuRf8ygfomA" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref", - "ParameterValue": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId", - "ParameterValue": "jrmmxaml4ndpxmx4pmyk3bgv7u" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataExerciseNestedStackExerciseNestedStackResourceA766B8C6Outputsamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataExerciseExerciseDataSourceA366FC05Name", - "ParameterValue": "ExerciseTable" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref", - "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-fF1WwIKcoHtV" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name", - "ParameterValue": "NONE_DS" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataConnectionStackNestedStackConne-WNK2ROR3OZN0.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataConnectionStackNestedStackConne-WNK2ROR3OZN0.template.json deleted file mode 100644 index 3bf2b06531b..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataConnectionStackNestedStackConne-WNK2ROR3OZN0.template.json +++ /dev/null @@ -1,440 +0,0 @@ -{ - "Resources": { - "WorkoutProgramexercisesauth0FunctionWorkoutProgramexercisesauth0FunctionAppSyncFunctionFB9C3EA7": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "WorkoutProgramexercisesauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/7e695c442cb66bcf09634d6ce3b169bbd5d354833e59146903a003f40233d687.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/ConnectionStack/WorkoutProgramexercisesauth0Function/WorkoutProgramexercisesauth0Function.AppSyncFunction" - } - }, - "WorkoutProgramExercisesDataResolverFnWorkoutProgramExercisesDataResolverFnAppSyncFunctionA9FFE7A3": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataExerciseNestedStackExerciseNestedStackResourceA766B8C6Outputsamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataExerciseExerciseDataSourceA366FC05Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "WorkoutProgramExercisesDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/6a2602ae4f01a20294e6cc3a7428fe00cfc3ca99458727b08747e400c422e4d7.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/49e7a1f2fb4c809b82bed6b0242a2a3bcfa2c5276ebd2539ff330fee36f8fe18.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/ConnectionStack/WorkoutProgramExercisesDataResolverFn/WorkoutProgramExercisesDataResolverFn.AppSyncFunction" - } - }, - "WorkoutProgramexercisesResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "FieldName": "exercises", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "WorkoutProgramexercisesauth0FunctionWorkoutProgramexercisesauth0FunctionAppSyncFunctionFB9C3EA7", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "WorkoutProgramExercisesDataResolverFnWorkoutProgramExercisesDataResolverFnAppSyncFunctionA9FFE7A3", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"WorkoutProgram\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"exercises\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataExerciseNestedStackExerciseNestedStackResourceA766B8C6Outputsamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataExerciseExerciseTableA7BD0631TableArn" - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "WorkoutProgram" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/ConnectionStack/workoutProgramExercisesResolver" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXMsQ6CMBCA4WdhLycWBlchcXSAByBnOUgBr6TXQgzh3Q06ffmXX4MuCsgS3CQ13ZTO9gX7kyRQ1wQ0k8JN2l3yFkUoCNxPlORQRjNRKFFI4bLIhw3sVc+PyCZYx5Xj3g7R4xmq6rkmcfNK/jjU79EEHCwPh2LXEYxyWbWG6w2yZBRrUx852DdB/fcLf5ddvqcAAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/ConnectionStack/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId": { - "Type": "String" - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name": { - "Type": "String" - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataExerciseNestedStackExerciseNestedStackResourceA766B8C6Outputsamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataExerciseExerciseDataSourceA366FC05Name": { - "Type": "String" - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataExerciseNestedStackExerciseNestedStackResourceA766B8C6Outputsamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataExerciseExerciseTableA7BD0631TableArn": { - "Type": "String" - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref": { - "Type": "String" - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef": { - "Type": "String" - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref": { - "Type": "String" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataExerciseNestedStackExerciseNest-1P5371DGLAVUG.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataExerciseNestedStackExerciseNest-1P5371DGLAVUG.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataExerciseNestedStackExerciseNest-1P5371DGLAVUG.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataExerciseNestedStackExerciseNest-1P5371DGLAVUG.outputs.json deleted file mode 100644 index b0c8e37470e..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataExerciseNestedStackExerciseNest-1P5371DGLAVUG.outputs.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "OutputKey": "GetAttExerciseTableName", - "OutputValue": "Exercise-jzwb5p2vcbd2ldlnlxokgjcjby-main", - "Description": "Your DynamoDB table name.", - "ExportName": "jrmmxaml4ndpxmx4pmyk3bgv7u:GetAtt:ExerciseTable:Name" - }, - { - "OutputKey": "GetAttExerciseTableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Exercise-jzwb5p2vcbd2ldlnlxokgjcjby-main/stream/2026-03-24T03:05:11.212", - "Description": "Your DynamoDB table StreamArn.", - "ExportName": "jrmmxaml4ndpxmx4pmyk3bgv7u:GetAtt:ExerciseTable:StreamArn" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataExerciseExerciseTableA7BD0631TableArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Exercise-jzwb5p2vcbd2ldlnlxokgjcjby-main" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataExerciseExerciseDataSourceA366FC05Name", - "OutputValue": "ExerciseTable" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataExerciseNestedStackExerciseNest-1P5371DGLAVUG.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataExerciseNestedStackExerciseNest-1P5371DGLAVUG.parameters.json deleted file mode 100644 index 96d6ac2b889..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataExerciseNestedStackExerciseNest-1P5371DGLAVUG.parameters.json +++ /dev/null @@ -1,46 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef", - "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthunauthenticate-RtuRf8ygfomA" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "true" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref", - "ParameterValue": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceE84470E2Outputsamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerTableMaE24831DE", - "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-fitnesstracker-ge-TableManagerCustomProvid-tD7nAluDQILS" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId", - "ParameterValue": "jrmmxaml4ndpxmx4pmyk3bgv7u" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref", - "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-fF1WwIKcoHtV" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name", - "ParameterValue": "NONE_DS" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataExerciseNestedStackExerciseNest-1P5371DGLAVUG.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataExerciseNestedStackExerciseNest-1P5371DGLAVUG.template.json deleted file mode 100644 index fa010d191e5..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataExerciseNestedStackExerciseNest-1P5371DGLAVUG.template.json +++ /dev/null @@ -1,2102 +0,0 @@ -{ - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceE84470E2Outputsamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerTableMaE24831DE": { - "Type": "String" - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId": { - "Type": "String" - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name": { - "Type": "String" - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref": { - "Type": "String" - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef": { - "Type": "String" - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref": { - "Type": "String" - } - }, - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - "NONE", - "NONE" - ] - } - ] - }, - "ShouldUsePayPerRequestBilling": { - "Fn::Equals": [ - { - "Ref": "DynamoDBBillingMode" - }, - "PAY_PER_REQUEST" - ] - }, - "ShouldUsePointInTimeRecovery": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "true" - ] - }, - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Resources": { - "ExerciseTable": { - "Type": "Custom::ImportedAmplifyDynamoDBTable", - "Properties": { - "ServiceToken": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceE84470E2Outputsamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerTableMaE24831DE" - }, - "tableName": "Exercise-jzwb5p2vcbd2ldlnlxokgjcjby-main", - "attributeDefinitions": [ - { - "attributeName": "id", - "attributeType": "S" - }, - { - "attributeName": "workoutProgramExercisesId", - "attributeType": "S" - } - ], - "keySchema": [ - { - "attributeName": "id", - "keyType": "HASH" - } - ], - "globalSecondaryIndexes": [ - { - "indexName": "gsi-WorkoutProgram.exercises", - "keySchema": [ - { - "attributeName": "workoutProgramExercisesId", - "keyType": "HASH" - } - ], - "projection": { - "projectionType": "ALL" - }, - "provisionedThroughput": { - "readCapacityUnits": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "writeCapacityUnits": { - "Ref": "DynamoDBModelTableWriteIOPS" - } - } - } - ], - "provisionedThroughput": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - { - "Ref": "AWS::NoValue" - }, - { - "ReadCapacityUnits": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "WriteCapacityUnits": { - "Ref": "DynamoDBModelTableWriteIOPS" - } - } - ] - }, - "sseSpecification": { - "sseEnabled": false - }, - "streamSpecification": { - "streamViewType": "NEW_AND_OLD_IMAGES" - }, - "deletionProtectionEnabled": true, - "allowDestructiveGraphqlSchemaUpdates": true, - "replaceTableUponGsiUpdate": false, - "isImported": true, - "pointInTimeRecoverySpecification": { - "Fn::If": [ - "ShouldUsePointInTimeRecovery", - { - "PointInTimeRecoveryEnabled": true - }, - { - "Ref": "AWS::NoValue" - } - ] - }, - "billingMode": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - "PAY_PER_REQUEST", - { - "Ref": "AWS::NoValue" - } - ] - } - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain", - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/ExerciseTable/Default/Default" - } - }, - "ExerciseIAMRole28D09384": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:DeleteItem", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:Query", - "dynamodb:UpdateItem", - "dynamodb:ConditionCheckItem", - "dynamodb:DescribeTable", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", - { - "tablename": "Exercise-jzwb5p2vcbd2ldlnlxokgjcjby-main" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", - { - "tablename": "Exercise-jzwb5p2vcbd2ldlnlxokgjcjby-main" - } - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "DynamoDBAccess" - } - ], - "RoleName": { - "Fn::Join": [ - "", - [ - "ExerciseIAMRoled0d0e6-", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "-NONE" - ] - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/ExerciseIAMRole/Resource" - } - }, - "ExerciseDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DynamoDBConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "TableName": { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "ExerciseTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - } - }, - "Name": "ExerciseTable", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "ExerciseIAMRole28D09384", - "Arn" - ] - }, - "Type": "AMAZON_DYNAMODB" - }, - "DependsOn": [ - "ExerciseIAMRole28D09384" - ], - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/ExerciseDataSource/Resource" - } - }, - "QuerygetExerciseauth0FunctionQuerygetExerciseauth0FunctionAppSyncFunction0AC70BDB": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetExerciseauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/b5e19309383f9e8964a3deca60bb43787960d705db799c21d87e0f0c32127523.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/QuerygetExerciseauth0Function/QuerygetExerciseauth0Function.AppSyncFunction" - } - }, - "QuerygetExercisepostAuth0FunctionQuerygetExercisepostAuth0FunctionAppSyncFunction6287EBF7": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetExercisepostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/QuerygetExercisepostAuth0Function/QuerygetExercisepostAuth0Function.AppSyncFunction" - } - }, - "QueryGetExerciseDataResolverFnQueryGetExerciseDataResolverFnAppSyncFunction73149704": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ExerciseDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryGetExerciseDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/08f4d557693d96c1a4efba0f9dc91330e4b19772fd5477c156468843e3d9cb5e.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4c6a2d29f01c6091bd1d9afe16e5849d456c96f17c3b215938c8067399532719.vtl" - } - }, - "DependsOn": [ - "ExerciseDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/QueryGetExerciseDataResolverFn/QueryGetExerciseDataResolverFn.AppSyncFunction" - } - }, - "GetExerciseResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "FieldName": "getExercise", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerygetExerciseauth0FunctionQuerygetExerciseauth0FunctionAppSyncFunction0AC70BDB", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetExercisepostAuth0FunctionQuerygetExercisepostAuth0FunctionAppSyncFunction6287EBF7", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryGetExerciseDataResolverFnQueryGetExerciseDataResolverFnAppSyncFunction73149704", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getExercise\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "ExerciseTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/queryGetExerciseResolver" - } - }, - "QuerylistExercisesauth0FunctionQuerylistExercisesauth0FunctionAppSyncFunction51A6AD03": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerylistExercisesauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/b5e19309383f9e8964a3deca60bb43787960d705db799c21d87e0f0c32127523.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/QuerylistExercisesauth0Function/QuerylistExercisesauth0Function.AppSyncFunction" - } - }, - "QuerylistExercisespostAuth0FunctionQuerylistExercisespostAuth0FunctionAppSyncFunction0E7A24F2": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerylistExercisespostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/QuerylistExercisespostAuth0Function/QuerylistExercisespostAuth0Function.AppSyncFunction" - } - }, - "QueryListExercisesDataResolverFnQueryListExercisesDataResolverFnAppSyncFunction0818DDCE": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ExerciseDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryListExercisesDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9fcbe070ecd3023c5bf5b966fa9584757db9762eef123bad0820bd87591b2174.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/cc01911d0269d4080ea57505dc445dfc315ef7ad85d3d9d4ea1357858bff451d.vtl" - } - }, - "DependsOn": [ - "ExerciseDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/QueryListExercisesDataResolverFn/QueryListExercisesDataResolverFn.AppSyncFunction" - } - }, - "ListExerciseResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "FieldName": "listExercises", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerylistExercisesauth0FunctionQuerylistExercisesauth0FunctionAppSyncFunction51A6AD03", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerylistExercisespostAuth0FunctionQuerylistExercisespostAuth0FunctionAppSyncFunction0E7A24F2", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryListExercisesDataResolverFnQueryListExercisesDataResolverFnAppSyncFunction0818DDCE", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listExercises\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "ExerciseTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/queryListExercisesResolver" - } - }, - "MutationcreateExerciseinit0FunctionMutationcreateExerciseinit0FunctionAppSyncFunction007007C2": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateExerciseinit0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a183ddccbd956316c38ef97177b8f088ef0826f62023323f5ae6053d348ccffc.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/MutationcreateExerciseinit0Function/MutationcreateExerciseinit0Function.AppSyncFunction" - } - }, - "MutationcreateExerciseauth0FunctionMutationcreateExerciseauth0FunctionAppSyncFunction06E6FB6C": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateExerciseauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/cbab3e978fe54ca3b978a085f88bfc88a1e499c59f5b5b6de37b52e4f8407be5.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/MutationcreateExerciseauth0Function/MutationcreateExerciseauth0Function.AppSyncFunction" - } - }, - "MutationcreateExercisepostAuth0FunctionMutationcreateExercisepostAuth0FunctionAppSyncFunctionFAC86A10": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateExercisepostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/MutationcreateExercisepostAuth0Function/MutationcreateExercisepostAuth0Function.AppSyncFunction" - } - }, - "MutationCreateExerciseDataResolverFnMutationCreateExerciseDataResolverFnAppSyncFunction9F8EC7E0": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ExerciseDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationCreateExerciseDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/922105ee0755486ce2373543b62576410311b7b99485651040a448d9d6cba53c.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "ExerciseDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/MutationCreateExerciseDataResolverFn/MutationCreateExerciseDataResolverFn.AppSyncFunction" - } - }, - "CreateExerciseResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "FieldName": "createExercise", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationcreateExerciseinit0FunctionMutationcreateExerciseinit0FunctionAppSyncFunction007007C2", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationcreateExerciseauth0FunctionMutationcreateExerciseauth0FunctionAppSyncFunction06E6FB6C", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationcreateExercisepostAuth0FunctionMutationcreateExercisepostAuth0FunctionAppSyncFunctionFAC86A10", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationCreateExerciseDataResolverFnMutationCreateExerciseDataResolverFnAppSyncFunction9F8EC7E0", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createExercise\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "ExerciseTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/mutationCreateExerciseResolver" - } - }, - "MutationupdateExerciseinit0FunctionMutationupdateExerciseinit0FunctionAppSyncFunction2DE5E607": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateExerciseinit0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/06db846fd14e6fc371f22b12b5545ba8e2dbfeda85d8c8d586c71c282166657b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/MutationupdateExerciseinit0Function/MutationupdateExerciseinit0Function.AppSyncFunction" - } - }, - "MutationupdateExerciseauth0FunctionMutationupdateExerciseauth0FunctionAppSyncFunction2CE5BE66": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ExerciseDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateExerciseauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/cf8e7a76ca4a2b7673c08cc49c9634ef4b43e6f3ce7820cfb335769ff528212b.vtl" - } - }, - "DependsOn": [ - "ExerciseDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/MutationupdateExerciseauth0Function/MutationupdateExerciseauth0Function.AppSyncFunction" - } - }, - "MutationupdateExercisepostAuth0FunctionMutationupdateExercisepostAuth0FunctionAppSyncFunction25628A67": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateExercisepostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/MutationupdateExercisepostAuth0Function/MutationupdateExercisepostAuth0Function.AppSyncFunction" - } - }, - "MutationUpdateExerciseDataResolverFnMutationUpdateExerciseDataResolverFnAppSyncFunctionD0CB335C": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ExerciseDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationUpdateExerciseDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/474bf0776ec2164a13191d1a0a9e057154931e4918fea5086f49850d02a5371b.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "ExerciseDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/MutationUpdateExerciseDataResolverFn/MutationUpdateExerciseDataResolverFn.AppSyncFunction" - } - }, - "UpdateExerciseResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "FieldName": "updateExercise", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationupdateExerciseinit0FunctionMutationupdateExerciseinit0FunctionAppSyncFunction2DE5E607", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationupdateExerciseauth0FunctionMutationupdateExerciseauth0FunctionAppSyncFunction2CE5BE66", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationupdateExercisepostAuth0FunctionMutationupdateExercisepostAuth0FunctionAppSyncFunction25628A67", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationUpdateExerciseDataResolverFnMutationUpdateExerciseDataResolverFnAppSyncFunctionD0CB335C", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateExercise\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "ExerciseTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/mutationUpdateExerciseResolver" - } - }, - "MutationdeleteExerciseauth0FunctionMutationdeleteExerciseauth0FunctionAppSyncFunctionC2D9DFF8": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ExerciseDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeleteExerciseauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/6257bfd1ef2992bd01df135516c0df15c5ff692f426e0c71c93960be8f8c81df.vtl" - } - }, - "DependsOn": [ - "ExerciseDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/MutationdeleteExerciseauth0Function/MutationdeleteExerciseauth0Function.AppSyncFunction" - } - }, - "MutationdeleteExercisepostAuth0FunctionMutationdeleteExercisepostAuth0FunctionAppSyncFunction990C3B7B": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeleteExercisepostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/MutationdeleteExercisepostAuth0Function/MutationdeleteExercisepostAuth0Function.AppSyncFunction" - } - }, - "MutationDeleteExerciseDataResolverFnMutationDeleteExerciseDataResolverFnAppSyncFunction91D88DD6": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ExerciseDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationDeleteExerciseDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4f7907d1209a2c9953a0c053df402c634e359546d70c7cc5c2e8e21ea734880f.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "ExerciseDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/MutationDeleteExerciseDataResolverFn/MutationDeleteExerciseDataResolverFn.AppSyncFunction" - } - }, - "DeleteExerciseResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "FieldName": "deleteExercise", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationdeleteExerciseauth0FunctionMutationdeleteExerciseauth0FunctionAppSyncFunctionC2D9DFF8", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationdeleteExercisepostAuth0FunctionMutationdeleteExercisepostAuth0FunctionAppSyncFunction990C3B7B", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationDeleteExerciseDataResolverFnMutationDeleteExerciseDataResolverFnAppSyncFunction91D88DD6", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteExercise\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "ExerciseTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/mutationDeleteExerciseResolver" - } - }, - "SubscriptiononCreateExerciseauth0FunctionSubscriptiononCreateExerciseauth0FunctionAppSyncFunctionC50A81C7": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononCreateExerciseauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/ba02e7c1690152b12072e4f476fba2abbb138ea0b0aba433b0676ffcff949e08.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/SubscriptiononCreateExerciseauth0Function/SubscriptiononCreateExerciseauth0Function.AppSyncFunction" - } - }, - "SubscriptiononCreateExercisepostAuth0FunctionSubscriptiononCreateExercisepostAuth0FunctionAppSyncFunction5A196A51": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononCreateExercisepostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/SubscriptiononCreateExercisepostAuth0Function/SubscriptiononCreateExercisepostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnCreateExerciseDataResolverFnSubscriptionOnCreateExerciseDataResolverFnAppSyncFunctionAB5DF306": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnCreateExerciseDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/SubscriptionOnCreateExerciseDataResolverFn/SubscriptionOnCreateExerciseDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononCreateExerciseResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "FieldName": "onCreateExercise", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononCreateExerciseauth0FunctionSubscriptiononCreateExerciseauth0FunctionAppSyncFunctionC50A81C7", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononCreateExercisepostAuth0FunctionSubscriptiononCreateExercisepostAuth0FunctionAppSyncFunction5A196A51", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnCreateExerciseDataResolverFnSubscriptionOnCreateExerciseDataResolverFnAppSyncFunctionAB5DF306", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateExercise\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/subscriptionOnCreateExerciseResolver" - } - }, - "SubscriptiononUpdateExerciseauth0FunctionSubscriptiononUpdateExerciseauth0FunctionAppSyncFunction9193D2A0": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononUpdateExerciseauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/ba02e7c1690152b12072e4f476fba2abbb138ea0b0aba433b0676ffcff949e08.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/SubscriptiononUpdateExerciseauth0Function/SubscriptiononUpdateExerciseauth0Function.AppSyncFunction" - } - }, - "SubscriptiononUpdateExercisepostAuth0FunctionSubscriptiononUpdateExercisepostAuth0FunctionAppSyncFunctionDE028CEA": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononUpdateExercisepostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/SubscriptiononUpdateExercisepostAuth0Function/SubscriptiononUpdateExercisepostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnUpdateExerciseDataResolverFnSubscriptionOnUpdateExerciseDataResolverFnAppSyncFunctionA7AA88CA": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnUpdateExerciseDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/SubscriptionOnUpdateExerciseDataResolverFn/SubscriptionOnUpdateExerciseDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononUpdateExerciseResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "FieldName": "onUpdateExercise", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononUpdateExerciseauth0FunctionSubscriptiononUpdateExerciseauth0FunctionAppSyncFunction9193D2A0", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononUpdateExercisepostAuth0FunctionSubscriptiononUpdateExercisepostAuth0FunctionAppSyncFunctionDE028CEA", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnUpdateExerciseDataResolverFnSubscriptionOnUpdateExerciseDataResolverFnAppSyncFunctionA7AA88CA", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateExercise\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/subscriptionOnUpdateExerciseResolver" - } - }, - "SubscriptiononDeleteExerciseauth0FunctionSubscriptiononDeleteExerciseauth0FunctionAppSyncFunction54DF160B": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononDeleteExerciseauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/ba02e7c1690152b12072e4f476fba2abbb138ea0b0aba433b0676ffcff949e08.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/SubscriptiononDeleteExerciseauth0Function/SubscriptiononDeleteExerciseauth0Function.AppSyncFunction" - } - }, - "SubscriptiononDeleteExercisepostAuth0FunctionSubscriptiononDeleteExercisepostAuth0FunctionAppSyncFunctionAF03921E": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononDeleteExercisepostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/SubscriptiononDeleteExercisepostAuth0Function/SubscriptiononDeleteExercisepostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnDeleteExerciseDataResolverFnSubscriptionOnDeleteExerciseDataResolverFnAppSyncFunctionA2A2A8C9": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnDeleteExerciseDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/SubscriptionOnDeleteExerciseDataResolverFn/SubscriptionOnDeleteExerciseDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononDeleteExerciseResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "FieldName": "onDeleteExercise", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononDeleteExerciseauth0FunctionSubscriptiononDeleteExerciseauth0FunctionAppSyncFunction54DF160B", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononDeleteExercisepostAuth0FunctionSubscriptiononDeleteExercisepostAuth0FunctionAppSyncFunctionAF03921E", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnDeleteExerciseDataResolverFnSubscriptionOnDeleteExerciseDataResolverFnAppSyncFunctionA2A2A8C9", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteExercise\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/subscriptionOnDeleteExerciseResolver" - } - }, - "ExerciseOwnerDataResolverFnExerciseOwnerDataResolverFnAppSyncFunction8652EC02": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "ExerciseOwnerDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/041534e5fd916595f752318f161512d7c7f83b9f2cf32d0f0be381c12253ff68.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/064303962e481067b44300212516363b99aaee539b6bafaf756fdd83ff0b60f0.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/ExerciseOwnerDataResolverFn/ExerciseOwnerDataResolverFn.AppSyncFunction" - } - }, - "ExerciseownerResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "FieldName": "owner", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "ExerciseOwnerDataResolverFnExerciseOwnerDataResolverFnAppSyncFunction8652EC02", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Exercise\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"owner\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Exercise" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/exerciseOwnerResolver" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOwW6DMAyGn6X31OtoD7uuoB63CXavTGJQCjgodlpViHefoFOnnX5/8if7zyA7HGC3wZtsreu2va9h+iBRcpWi7Uze8BdGHEgpLpAHdl59YFOShBQtmTyJhuEPG37OeJPz5O6MQ3A1fGPd0xGFjMcBpjL0Dzv0NBscR7mzhalY9aIuULF6nvxPp8R2KZEHbnybIq6Nfj/3V4qzkf0ZRUgF3pcwsodjsh3pUmBe3M+kY1KzrivF1nM7Gw6O4CIv1yyD1zfYbS7i/TYmVj8QlI/8AVayTVs2AQAA" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Outputs": { - "GetAttExerciseTableStreamArn": { - "Description": "Your DynamoDB table StreamArn.", - "Value": { - "Fn::GetAtt": [ - "ExerciseTable", - "TableStreamArn" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "GetAtt:ExerciseTable:StreamArn" - ] - ] - } - } - }, - "GetAttExerciseTableName": { - "Description": "Your DynamoDB table name.", - "Value": "Exercise-jzwb5p2vcbd2ldlnlxokgjcjby-main", - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "GetAtt:ExerciseTable:Name" - ] - ] - } - } - }, - "amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataExerciseExerciseDataSourceA366FC05Name": { - "Value": { - "Fn::GetAtt": [ - "ExerciseDataSource", - "Name" - ] - } - }, - "amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataExerciseExerciseTableA7BD0631TableArn": { - "Value": { - "Fn::GetAtt": [ - "ExerciseTable", - "TableArn" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataMealNestedStackMealNestedStackR-A8J8VTBF4SWH.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataMealNestedStackMealNestedStackR-A8J8VTBF4SWH.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataMealNestedStackMealNestedStackR-A8J8VTBF4SWH.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataMealNestedStackMealNestedStackR-A8J8VTBF4SWH.outputs.json deleted file mode 100644 index bc276ddef47..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataMealNestedStackMealNestedStackR-A8J8VTBF4SWH.outputs.json +++ /dev/null @@ -1,18 +0,0 @@ -[ - { - "OutputKey": "GetAttMealTableName", - "OutputValue": "Meal-jzwb5p2vcbd2ldlnlxokgjcjby-main", - "Description": "Your DynamoDB table name.", - "ExportName": "jrmmxaml4ndpxmx4pmyk3bgv7u:GetAtt:MealTable:Name" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataMealMealTable5D540888TableArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Meal-jzwb5p2vcbd2ldlnlxokgjcjby-main" - }, - { - "OutputKey": "GetAttMealTableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Meal-jzwb5p2vcbd2ldlnlxokgjcjby-main/stream/2026-03-24T03:05:11.935", - "Description": "Your DynamoDB table StreamArn.", - "ExportName": "jrmmxaml4ndpxmx4pmyk3bgv7u:GetAtt:MealTable:StreamArn" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataMealNestedStackMealNestedStackR-A8J8VTBF4SWH.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataMealNestedStackMealNestedStackR-A8J8VTBF4SWH.parameters.json deleted file mode 100644 index 96d6ac2b889..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataMealNestedStackMealNestedStackR-A8J8VTBF4SWH.parameters.json +++ /dev/null @@ -1,46 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef", - "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthunauthenticate-RtuRf8ygfomA" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "true" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref", - "ParameterValue": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceE84470E2Outputsamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerTableMaE24831DE", - "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-fitnesstracker-ge-TableManagerCustomProvid-tD7nAluDQILS" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId", - "ParameterValue": "jrmmxaml4ndpxmx4pmyk3bgv7u" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref", - "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-fF1WwIKcoHtV" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name", - "ParameterValue": "NONE_DS" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataMealNestedStackMealNestedStackR-A8J8VTBF4SWH.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataMealNestedStackMealNestedStackR-A8J8VTBF4SWH.template.json deleted file mode 100644 index b05d293abf6..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataMealNestedStackMealNestedStackR-A8J8VTBF4SWH.template.json +++ /dev/null @@ -1,1981 +0,0 @@ -{ - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceE84470E2Outputsamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerTableMaE24831DE": { - "Type": "String" - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId": { - "Type": "String" - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name": { - "Type": "String" - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref": { - "Type": "String" - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef": { - "Type": "String" - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref": { - "Type": "String" - } - }, - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - "NONE", - "NONE" - ] - } - ] - }, - "ShouldUsePayPerRequestBilling": { - "Fn::Equals": [ - { - "Ref": "DynamoDBBillingMode" - }, - "PAY_PER_REQUEST" - ] - }, - "ShouldUsePointInTimeRecovery": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "true" - ] - }, - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Resources": { - "MealTable": { - "Type": "Custom::ImportedAmplifyDynamoDBTable", - "Properties": { - "ServiceToken": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceE84470E2Outputsamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerTableMaE24831DE" - }, - "tableName": "Meal-jzwb5p2vcbd2ldlnlxokgjcjby-main", - "attributeDefinitions": [ - { - "attributeName": "id", - "attributeType": "S" - } - ], - "keySchema": [ - { - "attributeName": "id", - "keyType": "HASH" - } - ], - "provisionedThroughput": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - { - "Ref": "AWS::NoValue" - }, - { - "ReadCapacityUnits": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "WriteCapacityUnits": { - "Ref": "DynamoDBModelTableWriteIOPS" - } - } - ] - }, - "sseSpecification": { - "sseEnabled": false - }, - "streamSpecification": { - "streamViewType": "NEW_AND_OLD_IMAGES" - }, - "deletionProtectionEnabled": true, - "allowDestructiveGraphqlSchemaUpdates": true, - "replaceTableUponGsiUpdate": false, - "isImported": true, - "pointInTimeRecoverySpecification": { - "Fn::If": [ - "ShouldUsePointInTimeRecovery", - { - "PointInTimeRecoveryEnabled": true - }, - { - "Ref": "AWS::NoValue" - } - ] - }, - "billingMode": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - "PAY_PER_REQUEST", - { - "Ref": "AWS::NoValue" - } - ] - } - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain", - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/MealTable/Default/Default" - } - }, - "MealIAMRoleEDE19E15": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:DeleteItem", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:Query", - "dynamodb:UpdateItem", - "dynamodb:ConditionCheckItem", - "dynamodb:DescribeTable", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", - { - "tablename": "Meal-jzwb5p2vcbd2ldlnlxokgjcjby-main" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", - { - "tablename": "Meal-jzwb5p2vcbd2ldlnlxokgjcjby-main" - } - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "DynamoDBAccess" - } - ], - "RoleName": { - "Fn::Join": [ - "", - [ - "MealIAMRole54b7fd-", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "-NONE" - ] - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/MealIAMRole/Resource" - } - }, - "MealDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DynamoDBConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "TableName": { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "MealTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - } - }, - "Name": "MealTable", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "MealIAMRoleEDE19E15", - "Arn" - ] - }, - "Type": "AMAZON_DYNAMODB" - }, - "DependsOn": [ - "MealIAMRoleEDE19E15" - ], - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/MealDataSource/Resource" - } - }, - "QuerygetMealauth0FunctionQuerygetMealauth0FunctionAppSyncFunction3EC25F21": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetMealauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/0224a3e5097427da3f4460b5d6d2b86ad4195c9cb8da7bc13e7187eead1c3ae3.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/QuerygetMealauth0Function/QuerygetMealauth0Function.AppSyncFunction" - } - }, - "QuerygetMealpostAuth0FunctionQuerygetMealpostAuth0FunctionAppSyncFunction9E0F196D": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetMealpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/QuerygetMealpostAuth0Function/QuerygetMealpostAuth0Function.AppSyncFunction" - } - }, - "QueryGetMealDataResolverFnQueryGetMealDataResolverFnAppSyncFunction8B80E67B": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "MealDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryGetMealDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/08f4d557693d96c1a4efba0f9dc91330e4b19772fd5477c156468843e3d9cb5e.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4c6a2d29f01c6091bd1d9afe16e5849d456c96f17c3b215938c8067399532719.vtl" - } - }, - "DependsOn": [ - "MealDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/QueryGetMealDataResolverFn/QueryGetMealDataResolverFn.AppSyncFunction" - } - }, - "GetMealResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "FieldName": "getMeal", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerygetMealauth0FunctionQuerygetMealauth0FunctionAppSyncFunction3EC25F21", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetMealpostAuth0FunctionQuerygetMealpostAuth0FunctionAppSyncFunction9E0F196D", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryGetMealDataResolverFnQueryGetMealDataResolverFnAppSyncFunction8B80E67B", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getMeal\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "MealTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/queryGetMealResolver" - } - }, - "QuerylistMealsauth0FunctionQuerylistMealsauth0FunctionAppSyncFunctionB47607B5": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerylistMealsauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/0224a3e5097427da3f4460b5d6d2b86ad4195c9cb8da7bc13e7187eead1c3ae3.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/QuerylistMealsauth0Function/QuerylistMealsauth0Function.AppSyncFunction" - } - }, - "QuerylistMealspostAuth0FunctionQuerylistMealspostAuth0FunctionAppSyncFunction15CC850C": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerylistMealspostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/QuerylistMealspostAuth0Function/QuerylistMealspostAuth0Function.AppSyncFunction" - } - }, - "QueryListMealsDataResolverFnQueryListMealsDataResolverFnAppSyncFunction3EE87F58": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "MealDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryListMealsDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9fcbe070ecd3023c5bf5b966fa9584757db9762eef123bad0820bd87591b2174.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/cc01911d0269d4080ea57505dc445dfc315ef7ad85d3d9d4ea1357858bff451d.vtl" - } - }, - "DependsOn": [ - "MealDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/QueryListMealsDataResolverFn/QueryListMealsDataResolverFn.AppSyncFunction" - } - }, - "ListMealResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "FieldName": "listMeals", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerylistMealsauth0FunctionQuerylistMealsauth0FunctionAppSyncFunctionB47607B5", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerylistMealspostAuth0FunctionQuerylistMealspostAuth0FunctionAppSyncFunction15CC850C", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryListMealsDataResolverFnQueryListMealsDataResolverFnAppSyncFunction3EE87F58", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listMeals\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "MealTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/queryListMealsResolver" - } - }, - "MutationcreateMealinit0FunctionMutationcreateMealinit0FunctionAppSyncFunctionC8456643": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateMealinit0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a183ddccbd956316c38ef97177b8f088ef0826f62023323f5ae6053d348ccffc.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/MutationcreateMealinit0Function/MutationcreateMealinit0Function.AppSyncFunction" - } - }, - "MutationcreateMealauth0FunctionMutationcreateMealauth0FunctionAppSyncFunction746792DB": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateMealauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/d637c1fb7301003b8a5ada269338cf2e8df6cc0dc412ef13acc6158d680b6d3e.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/MutationcreateMealauth0Function/MutationcreateMealauth0Function.AppSyncFunction" - } - }, - "MutationcreateMealpostAuth0FunctionMutationcreateMealpostAuth0FunctionAppSyncFunctionF0FDFBD0": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateMealpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/MutationcreateMealpostAuth0Function/MutationcreateMealpostAuth0Function.AppSyncFunction" - } - }, - "MutationCreateMealDataResolverFnMutationCreateMealDataResolverFnAppSyncFunction3A7E3265": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "MealDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationCreateMealDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/234a2e583ce643aca3c00032245fde469b9cb2a389dc5bd8f486ec3b2e335f92.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "MealDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/MutationCreateMealDataResolverFn/MutationCreateMealDataResolverFn.AppSyncFunction" - } - }, - "CreateMealResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "FieldName": "createMeal", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationcreateMealinit0FunctionMutationcreateMealinit0FunctionAppSyncFunctionC8456643", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationcreateMealauth0FunctionMutationcreateMealauth0FunctionAppSyncFunction746792DB", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationcreateMealpostAuth0FunctionMutationcreateMealpostAuth0FunctionAppSyncFunctionF0FDFBD0", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationCreateMealDataResolverFnMutationCreateMealDataResolverFnAppSyncFunction3A7E3265", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createMeal\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "MealTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/mutationCreateMealResolver" - } - }, - "MutationupdateMealinit0FunctionMutationupdateMealinit0FunctionAppSyncFunction80065D7F": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateMealinit0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/06db846fd14e6fc371f22b12b5545ba8e2dbfeda85d8c8d586c71c282166657b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/MutationupdateMealinit0Function/MutationupdateMealinit0Function.AppSyncFunction" - } - }, - "MutationupdateMealauth0FunctionMutationupdateMealauth0FunctionAppSyncFunctionEFC9C205": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "MealDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateMealauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/89f92efd98b1034df0e2497fe31a97de6975de554b8a22e0677d05d6efcafa59.vtl" - } - }, - "DependsOn": [ - "MealDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/MutationupdateMealauth0Function/MutationupdateMealauth0Function.AppSyncFunction" - } - }, - "MutationupdateMealpostAuth0FunctionMutationupdateMealpostAuth0FunctionAppSyncFunction5B29DBED": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateMealpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/MutationupdateMealpostAuth0Function/MutationupdateMealpostAuth0Function.AppSyncFunction" - } - }, - "MutationUpdateMealDataResolverFnMutationUpdateMealDataResolverFnAppSyncFunction7CE88037": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "MealDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationUpdateMealDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/474bf0776ec2164a13191d1a0a9e057154931e4918fea5086f49850d02a5371b.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "MealDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/MutationUpdateMealDataResolverFn/MutationUpdateMealDataResolverFn.AppSyncFunction" - } - }, - "UpdateMealResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "FieldName": "updateMeal", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationupdateMealinit0FunctionMutationupdateMealinit0FunctionAppSyncFunction80065D7F", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationupdateMealauth0FunctionMutationupdateMealauth0FunctionAppSyncFunctionEFC9C205", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationupdateMealpostAuth0FunctionMutationupdateMealpostAuth0FunctionAppSyncFunction5B29DBED", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationUpdateMealDataResolverFnMutationUpdateMealDataResolverFnAppSyncFunction7CE88037", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateMeal\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "MealTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/mutationUpdateMealResolver" - } - }, - "MutationdeleteMealauth0FunctionMutationdeleteMealauth0FunctionAppSyncFunction5A3C8FCE": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "MealDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeleteMealauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e3416b4d47414f29c21e59a70e83bddb959ef0625854ed7fb0ca376573e99069.vtl" - } - }, - "DependsOn": [ - "MealDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/MutationdeleteMealauth0Function/MutationdeleteMealauth0Function.AppSyncFunction" - } - }, - "MutationdeleteMealpostAuth0FunctionMutationdeleteMealpostAuth0FunctionAppSyncFunctionC9BB36B8": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeleteMealpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/MutationdeleteMealpostAuth0Function/MutationdeleteMealpostAuth0Function.AppSyncFunction" - } - }, - "MutationDeleteMealDataResolverFnMutationDeleteMealDataResolverFnAppSyncFunctionB6415754": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "MealDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationDeleteMealDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4f7907d1209a2c9953a0c053df402c634e359546d70c7cc5c2e8e21ea734880f.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "MealDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/MutationDeleteMealDataResolverFn/MutationDeleteMealDataResolverFn.AppSyncFunction" - } - }, - "DeleteMealResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "FieldName": "deleteMeal", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationdeleteMealauth0FunctionMutationdeleteMealauth0FunctionAppSyncFunction5A3C8FCE", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationdeleteMealpostAuth0FunctionMutationdeleteMealpostAuth0FunctionAppSyncFunctionC9BB36B8", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationDeleteMealDataResolverFnMutationDeleteMealDataResolverFnAppSyncFunctionB6415754", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteMeal\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "MealTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/mutationDeleteMealResolver" - } - }, - "SubscriptiononCreateMealauth0FunctionSubscriptiononCreateMealauth0FunctionAppSyncFunction8AF26F94": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononCreateMealauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e6da5a6e993df8b5fdc91086b71eb53e72a3a97c98836ef9c9257776f36c452b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/SubscriptiononCreateMealauth0Function/SubscriptiononCreateMealauth0Function.AppSyncFunction" - } - }, - "SubscriptiononCreateMealpostAuth0FunctionSubscriptiononCreateMealpostAuth0FunctionAppSyncFunction820A2BD2": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononCreateMealpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/SubscriptiononCreateMealpostAuth0Function/SubscriptiononCreateMealpostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnCreateMealDataResolverFnSubscriptionOnCreateMealDataResolverFnAppSyncFunctionF1334F8F": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnCreateMealDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/SubscriptionOnCreateMealDataResolverFn/SubscriptionOnCreateMealDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononCreateMealResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "FieldName": "onCreateMeal", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononCreateMealauth0FunctionSubscriptiononCreateMealauth0FunctionAppSyncFunction8AF26F94", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononCreateMealpostAuth0FunctionSubscriptiononCreateMealpostAuth0FunctionAppSyncFunction820A2BD2", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnCreateMealDataResolverFnSubscriptionOnCreateMealDataResolverFnAppSyncFunctionF1334F8F", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateMeal\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/subscriptionOnCreateMealResolver" - } - }, - "SubscriptiononUpdateMealauth0FunctionSubscriptiononUpdateMealauth0FunctionAppSyncFunction2DF3B7A1": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononUpdateMealauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e6da5a6e993df8b5fdc91086b71eb53e72a3a97c98836ef9c9257776f36c452b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/SubscriptiononUpdateMealauth0Function/SubscriptiononUpdateMealauth0Function.AppSyncFunction" - } - }, - "SubscriptiononUpdateMealpostAuth0FunctionSubscriptiononUpdateMealpostAuth0FunctionAppSyncFunction6DDD0917": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononUpdateMealpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/SubscriptiononUpdateMealpostAuth0Function/SubscriptiononUpdateMealpostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnUpdateMealDataResolverFnSubscriptionOnUpdateMealDataResolverFnAppSyncFunction7E09A153": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnUpdateMealDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/SubscriptionOnUpdateMealDataResolverFn/SubscriptionOnUpdateMealDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononUpdateMealResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "FieldName": "onUpdateMeal", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononUpdateMealauth0FunctionSubscriptiononUpdateMealauth0FunctionAppSyncFunction2DF3B7A1", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononUpdateMealpostAuth0FunctionSubscriptiononUpdateMealpostAuth0FunctionAppSyncFunction6DDD0917", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnUpdateMealDataResolverFnSubscriptionOnUpdateMealDataResolverFnAppSyncFunction7E09A153", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateMeal\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/subscriptionOnUpdateMealResolver" - } - }, - "SubscriptiononDeleteMealauth0FunctionSubscriptiononDeleteMealauth0FunctionAppSyncFunctionE50EF48C": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononDeleteMealauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e6da5a6e993df8b5fdc91086b71eb53e72a3a97c98836ef9c9257776f36c452b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/SubscriptiononDeleteMealauth0Function/SubscriptiononDeleteMealauth0Function.AppSyncFunction" - } - }, - "SubscriptiononDeleteMealpostAuth0FunctionSubscriptiononDeleteMealpostAuth0FunctionAppSyncFunction6FA10C5F": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononDeleteMealpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/SubscriptiononDeleteMealpostAuth0Function/SubscriptiononDeleteMealpostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnDeleteMealDataResolverFnSubscriptionOnDeleteMealDataResolverFnAppSyncFunction0A2F61AD": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnDeleteMealDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/SubscriptionOnDeleteMealDataResolverFn/SubscriptionOnDeleteMealDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononDeleteMealResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "FieldName": "onDeleteMeal", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononDeleteMealauth0FunctionSubscriptiononDeleteMealauth0FunctionAppSyncFunctionE50EF48C", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononDeleteMealpostAuth0FunctionSubscriptiononDeleteMealpostAuth0FunctionAppSyncFunction6FA10C5F", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnDeleteMealDataResolverFnSubscriptionOnDeleteMealDataResolverFnAppSyncFunction0A2F61AD", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteMeal\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/subscriptionOnDeleteMealResolver" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOwW6DMAyGn6X31OtoD7uuoB63CXavTGJQCjgodlpViHefoFOnnX5/8if7zyA7HGC3wZtsreu2va9h+iBRcpWi7Uze8BdGHEgpLpAHdl59YFOShBQtmTyJhuEPG37OeJPz5O6MQ3A1fGPd0xGFjMcBpjL0Dzv0NBscR7mzhalY9aIuULF6nvxPp8R2KZEHbnybIq6Nfj/3V4qzkf0ZRUgF3pcwsodjsh3pUmBe3M+kY1KzrivF1nM7Gw6O4CIv1yyD1zfYbS7i/TYmVj8QlI/8AVayTVs2AQAA" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Outputs": { - "GetAttMealTableStreamArn": { - "Description": "Your DynamoDB table StreamArn.", - "Value": { - "Fn::GetAtt": [ - "MealTable", - "TableStreamArn" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "GetAtt:MealTable:StreamArn" - ] - ] - } - } - }, - "GetAttMealTableName": { - "Description": "Your DynamoDB table name.", - "Value": "Meal-jzwb5p2vcbd2ldlnlxokgjcjby-main", - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "GetAtt:MealTable:Name" - ] - ] - } - } - }, - "amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataMealMealTable5D540888TableArn": { - "Value": { - "Fn::GetAtt": [ - "MealTable", - "TableArn" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataWorkoutProgramNestedStackWorkou-162Z9OPH7DXYW.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataWorkoutProgramNestedStackWorkou-162Z9OPH7DXYW.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataWorkoutProgramNestedStackWorkou-162Z9OPH7DXYW.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataWorkoutProgramNestedStackWorkou-162Z9OPH7DXYW.outputs.json deleted file mode 100644 index c750785a346..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataWorkoutProgramNestedStackWorkou-162Z9OPH7DXYW.outputs.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "OutputKey": "GetAttWorkoutProgramTableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/WorkoutProgram-jzwb5p2vcbd2ldlnlxokgjcjby-main/stream/2026-03-24T03:04:23.623", - "Description": "Your DynamoDB table StreamArn.", - "ExportName": "jrmmxaml4ndpxmx4pmyk3bgv7u:GetAtt:WorkoutProgramTable:StreamArn" - }, - { - "OutputKey": "GetAttWorkoutProgramTableName", - "OutputValue": "WorkoutProgram-jzwb5p2vcbd2ldlnlxokgjcjby-main", - "Description": "Your DynamoDB table name.", - "ExportName": "jrmmxaml4ndpxmx4pmyk3bgv7u:GetAtt:WorkoutProgramTable:Name" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataWorkoutProgramNestedStackWorkou-162Z9OPH7DXYW.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataWorkoutProgramNestedStackWorkou-162Z9OPH7DXYW.parameters.json deleted file mode 100644 index 96d6ac2b889..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataWorkoutProgramNestedStackWorkou-162Z9OPH7DXYW.parameters.json +++ /dev/null @@ -1,46 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef", - "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthunauthenticate-RtuRf8ygfomA" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "true" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref", - "ParameterValue": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceE84470E2Outputsamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerTableMaE24831DE", - "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-fitnesstracker-ge-TableManagerCustomProvid-tD7nAluDQILS" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId", - "ParameterValue": "jrmmxaml4ndpxmx4pmyk3bgv7u" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref", - "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-fF1WwIKcoHtV" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name", - "ParameterValue": "NONE_DS" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataWorkoutProgramNestedStackWorkou-162Z9OPH7DXYW.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataWorkoutProgramNestedStackWorkou-162Z9OPH7DXYW.template.json deleted file mode 100644 index 185f385ee91..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-4007-amplifyDataWorkoutProgramNestedStackWorkou-162Z9OPH7DXYW.template.json +++ /dev/null @@ -1,2060 +0,0 @@ -{ - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceE84470E2Outputsamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerTableMaE24831DE": { - "Type": "String" - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId": { - "Type": "String" - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name": { - "Type": "String" - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref": { - "Type": "String" - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef": { - "Type": "String" - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref": { - "Type": "String" - } - }, - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - "NONE", - "NONE" - ] - } - ] - }, - "ShouldUsePayPerRequestBilling": { - "Fn::Equals": [ - { - "Ref": "DynamoDBBillingMode" - }, - "PAY_PER_REQUEST" - ] - }, - "ShouldUsePointInTimeRecovery": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "true" - ] - }, - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Resources": { - "WorkoutProgramTable": { - "Type": "Custom::ImportedAmplifyDynamoDBTable", - "Properties": { - "ServiceToken": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceE84470E2Outputsamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerTableMaE24831DE" - }, - "tableName": "WorkoutProgram-jzwb5p2vcbd2ldlnlxokgjcjby-main", - "attributeDefinitions": [ - { - "attributeName": "id", - "attributeType": "S" - } - ], - "keySchema": [ - { - "attributeName": "id", - "keyType": "HASH" - } - ], - "provisionedThroughput": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - { - "Ref": "AWS::NoValue" - }, - { - "ReadCapacityUnits": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "WriteCapacityUnits": { - "Ref": "DynamoDBModelTableWriteIOPS" - } - } - ] - }, - "sseSpecification": { - "sseEnabled": false - }, - "streamSpecification": { - "streamViewType": "NEW_AND_OLD_IMAGES" - }, - "deletionProtectionEnabled": true, - "allowDestructiveGraphqlSchemaUpdates": true, - "replaceTableUponGsiUpdate": false, - "isImported": true, - "pointInTimeRecoverySpecification": { - "Fn::If": [ - "ShouldUsePointInTimeRecovery", - { - "PointInTimeRecoveryEnabled": true - }, - { - "Ref": "AWS::NoValue" - } - ] - }, - "billingMode": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - "PAY_PER_REQUEST", - { - "Ref": "AWS::NoValue" - } - ] - } - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain", - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/WorkoutProgramTable/Default/Default" - } - }, - "WorkoutProgramIAMRoleB75B98D5": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:DeleteItem", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:Query", - "dynamodb:UpdateItem", - "dynamodb:ConditionCheckItem", - "dynamodb:DescribeTable", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", - { - "tablename": "WorkoutProgram-jzwb5p2vcbd2ldlnlxokgjcjby-main" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", - { - "tablename": "WorkoutProgram-jzwb5p2vcbd2ldlnlxokgjcjby-main" - } - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "DynamoDBAccess" - } - ], - "RoleName": { - "Fn::Join": [ - "", - [ - "WorkoutProgramIAMRol516c57-", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "-NONE" - ] - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/WorkoutProgramIAMRole/Resource" - } - }, - "WorkoutProgramDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DynamoDBConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "TableName": { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "WorkoutProgramTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - } - }, - "Name": "WorkoutProgramTable", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "WorkoutProgramIAMRoleB75B98D5", - "Arn" - ] - }, - "Type": "AMAZON_DYNAMODB" - }, - "DependsOn": [ - "WorkoutProgramIAMRoleB75B98D5" - ], - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/WorkoutProgramDataSource/Resource" - } - }, - "QuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunctionF61649FE": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetWorkoutProgramauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/b5e19309383f9e8964a3deca60bb43787960d705db799c21d87e0f0c32127523.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/QuerygetWorkoutProgramauth0Function/QuerygetWorkoutProgramauth0Function.AppSyncFunction" - } - }, - "QuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction3557039E": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetWorkoutProgrampostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/QuerygetWorkoutProgrampostAuth0Function/QuerygetWorkoutProgrampostAuth0Function.AppSyncFunction" - } - }, - "QueryGetWorkoutProgramDataResolverFnQueryGetWorkoutProgramDataResolverFnAppSyncFunctionDFD5C9FA": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "WorkoutProgramDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryGetWorkoutProgramDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/08f4d557693d96c1a4efba0f9dc91330e4b19772fd5477c156468843e3d9cb5e.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4c6a2d29f01c6091bd1d9afe16e5849d456c96f17c3b215938c8067399532719.vtl" - } - }, - "DependsOn": [ - "WorkoutProgramDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/QueryGetWorkoutProgramDataResolverFn/QueryGetWorkoutProgramDataResolverFn.AppSyncFunction" - } - }, - "GetWorkoutProgramResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "FieldName": "getWorkoutProgram", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunctionF61649FE", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction3557039E", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryGetWorkoutProgramDataResolverFnQueryGetWorkoutProgramDataResolverFnAppSyncFunctionDFD5C9FA", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getWorkoutProgram\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "WorkoutProgramTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/queryGetWorkoutProgramResolver" - } - }, - "QuerylistWorkoutProgramsauth0FunctionQuerylistWorkoutProgramsauth0FunctionAppSyncFunctionEDC95461": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerylistWorkoutProgramsauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/b5e19309383f9e8964a3deca60bb43787960d705db799c21d87e0f0c32127523.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/QuerylistWorkoutProgramsauth0Function/QuerylistWorkoutProgramsauth0Function.AppSyncFunction" - } - }, - "QuerylistWorkoutProgramspostAuth0FunctionQuerylistWorkoutProgramspostAuth0FunctionAppSyncFunction784BDD23": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerylistWorkoutProgramspostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/QuerylistWorkoutProgramspostAuth0Function/QuerylistWorkoutProgramspostAuth0Function.AppSyncFunction" - } - }, - "QueryListWorkoutProgramsDataResolverFnQueryListWorkoutProgramsDataResolverFnAppSyncFunctionC43C9A14": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "WorkoutProgramDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryListWorkoutProgramsDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9fcbe070ecd3023c5bf5b966fa9584757db9762eef123bad0820bd87591b2174.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/cc01911d0269d4080ea57505dc445dfc315ef7ad85d3d9d4ea1357858bff451d.vtl" - } - }, - "DependsOn": [ - "WorkoutProgramDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/QueryListWorkoutProgramsDataResolverFn/QueryListWorkoutProgramsDataResolverFn.AppSyncFunction" - } - }, - "ListWorkoutProgramResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "FieldName": "listWorkoutPrograms", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerylistWorkoutProgramsauth0FunctionQuerylistWorkoutProgramsauth0FunctionAppSyncFunctionEDC95461", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerylistWorkoutProgramspostAuth0FunctionQuerylistWorkoutProgramspostAuth0FunctionAppSyncFunction784BDD23", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryListWorkoutProgramsDataResolverFnQueryListWorkoutProgramsDataResolverFnAppSyncFunctionC43C9A14", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listWorkoutPrograms\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "WorkoutProgramTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/queryListWorkoutProgramsResolver" - } - }, - "MutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD050B3C1": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateWorkoutPrograminit0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a183ddccbd956316c38ef97177b8f088ef0826f62023323f5ae6053d348ccffc.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/MutationcreateWorkoutPrograminit0Function/MutationcreateWorkoutPrograminit0Function.AppSyncFunction" - } - }, - "MutationcreateWorkoutProgramauth0FunctionMutationcreateWorkoutProgramauth0FunctionAppSyncFunction6165E2A5": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateWorkoutProgramauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/5cc5b2ba2375ce5397ffa7c05ab36ef89e2dcb36179feab15241b2758020898a.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/MutationcreateWorkoutProgramauth0Function/MutationcreateWorkoutProgramauth0Function.AppSyncFunction" - } - }, - "MutationcreateWorkoutProgrampostAuth0FunctionMutationcreateWorkoutProgrampostAuth0FunctionAppSyncFunctionC1F2C501": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateWorkoutProgrampostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/MutationcreateWorkoutProgrampostAuth0Function/MutationcreateWorkoutProgrampostAuth0Function.AppSyncFunction" - } - }, - "MutationCreateWorkoutProgramDataResolverFnMutationCreateWorkoutProgramDataResolverFnAppSyncFunction20E77E8E": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "WorkoutProgramDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationCreateWorkoutProgramDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/5e3663e53709c6806794ba18425c4edf8a27b33eab158ed13428b1f47ebf035e.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "WorkoutProgramDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/MutationCreateWorkoutProgramDataResolverFn/MutationCreateWorkoutProgramDataResolverFn.AppSyncFunction" - } - }, - "CreateWorkoutProgramResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "FieldName": "createWorkoutProgram", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD050B3C1", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationcreateWorkoutProgramauth0FunctionMutationcreateWorkoutProgramauth0FunctionAppSyncFunction6165E2A5", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationcreateWorkoutProgrampostAuth0FunctionMutationcreateWorkoutProgrampostAuth0FunctionAppSyncFunctionC1F2C501", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationCreateWorkoutProgramDataResolverFnMutationCreateWorkoutProgramDataResolverFnAppSyncFunction20E77E8E", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createWorkoutProgram\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "WorkoutProgramTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/mutationCreateWorkoutProgramResolver" - } - }, - "MutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionDF7D6DB3": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateWorkoutPrograminit0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/06db846fd14e6fc371f22b12b5545ba8e2dbfeda85d8c8d586c71c282166657b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/MutationupdateWorkoutPrograminit0Function/MutationupdateWorkoutPrograminit0Function.AppSyncFunction" - } - }, - "MutationupdateWorkoutProgramauth0FunctionMutationupdateWorkoutProgramauth0FunctionAppSyncFunction5B1F99AE": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "WorkoutProgramDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateWorkoutProgramauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9b977f410dc17218d10f2a36c19d6dc44218b69fe22d2cd0641145cad886d6de.vtl" - } - }, - "DependsOn": [ - "WorkoutProgramDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/MutationupdateWorkoutProgramauth0Function/MutationupdateWorkoutProgramauth0Function.AppSyncFunction" - } - }, - "MutationupdateWorkoutProgrampostAuth0FunctionMutationupdateWorkoutProgrampostAuth0FunctionAppSyncFunction848486DA": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateWorkoutProgrampostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/MutationupdateWorkoutProgrampostAuth0Function/MutationupdateWorkoutProgrampostAuth0Function.AppSyncFunction" - } - }, - "MutationUpdateWorkoutProgramDataResolverFnMutationUpdateWorkoutProgramDataResolverFnAppSyncFunctionC239D12F": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "WorkoutProgramDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationUpdateWorkoutProgramDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/474bf0776ec2164a13191d1a0a9e057154931e4918fea5086f49850d02a5371b.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "WorkoutProgramDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/MutationUpdateWorkoutProgramDataResolverFn/MutationUpdateWorkoutProgramDataResolverFn.AppSyncFunction" - } - }, - "UpdateWorkoutProgramResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "FieldName": "updateWorkoutProgram", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionDF7D6DB3", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationupdateWorkoutProgramauth0FunctionMutationupdateWorkoutProgramauth0FunctionAppSyncFunction5B1F99AE", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationupdateWorkoutProgrampostAuth0FunctionMutationupdateWorkoutProgrampostAuth0FunctionAppSyncFunction848486DA", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationUpdateWorkoutProgramDataResolverFnMutationUpdateWorkoutProgramDataResolverFnAppSyncFunctionC239D12F", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateWorkoutProgram\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "WorkoutProgramTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/mutationUpdateWorkoutProgramResolver" - } - }, - "MutationdeleteWorkoutProgramauth0FunctionMutationdeleteWorkoutProgramauth0FunctionAppSyncFunctionCF8FDD99": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "WorkoutProgramDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeleteWorkoutProgramauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/6257bfd1ef2992bd01df135516c0df15c5ff692f426e0c71c93960be8f8c81df.vtl" - } - }, - "DependsOn": [ - "WorkoutProgramDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/MutationdeleteWorkoutProgramauth0Function/MutationdeleteWorkoutProgramauth0Function.AppSyncFunction" - } - }, - "MutationdeleteWorkoutProgrampostAuth0FunctionMutationdeleteWorkoutProgrampostAuth0FunctionAppSyncFunction1A56FB4E": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeleteWorkoutProgrampostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/MutationdeleteWorkoutProgrampostAuth0Function/MutationdeleteWorkoutProgrampostAuth0Function.AppSyncFunction" - } - }, - "MutationDeleteWorkoutProgramDataResolverFnMutationDeleteWorkoutProgramDataResolverFnAppSyncFunction57D3FA26": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "WorkoutProgramDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationDeleteWorkoutProgramDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4f7907d1209a2c9953a0c053df402c634e359546d70c7cc5c2e8e21ea734880f.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "WorkoutProgramDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/MutationDeleteWorkoutProgramDataResolverFn/MutationDeleteWorkoutProgramDataResolverFn.AppSyncFunction" - } - }, - "DeleteWorkoutProgramResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "FieldName": "deleteWorkoutProgram", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationdeleteWorkoutProgramauth0FunctionMutationdeleteWorkoutProgramauth0FunctionAppSyncFunctionCF8FDD99", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationdeleteWorkoutProgrampostAuth0FunctionMutationdeleteWorkoutProgrampostAuth0FunctionAppSyncFunction1A56FB4E", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationDeleteWorkoutProgramDataResolverFnMutationDeleteWorkoutProgramDataResolverFnAppSyncFunction57D3FA26", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteWorkoutProgram\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "WorkoutProgramTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/mutationDeleteWorkoutProgramResolver" - } - }, - "SubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncFunctionBA1C0577": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononCreateWorkoutProgramauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/ba02e7c1690152b12072e4f476fba2abbb138ea0b0aba433b0676ffcff949e08.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/SubscriptiononCreateWorkoutProgramauth0Function/SubscriptiononCreateWorkoutProgramauth0Function.AppSyncFunction" - } - }, - "SubscriptiononCreateWorkoutProgrampostAuth0FunctionSubscriptiononCreateWorkoutProgrampostAuth0FunctionAppSyncFunction1FBC8B34": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononCreateWorkoutProgrampostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/SubscriptiononCreateWorkoutProgrampostAuth0Function/SubscriptiononCreateWorkoutProgrampostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyncFunction4E344723": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnCreateWorkoutProgramDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/SubscriptionOnCreateWorkoutProgramDataResolverFn/SubscriptionOnCreateWorkoutProgramDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononCreateWorkoutProgramResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "FieldName": "onCreateWorkoutProgram", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncFunctionBA1C0577", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononCreateWorkoutProgrampostAuth0FunctionSubscriptiononCreateWorkoutProgrampostAuth0FunctionAppSyncFunction1FBC8B34", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyncFunction4E344723", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateWorkoutProgram\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/subscriptionOnCreateWorkoutProgramResolver" - } - }, - "SubscriptiononUpdateWorkoutProgramauth0FunctionSubscriptiononUpdateWorkoutProgramauth0FunctionAppSyncFunctionEC33DFA9": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononUpdateWorkoutProgramauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/ba02e7c1690152b12072e4f476fba2abbb138ea0b0aba433b0676ffcff949e08.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/SubscriptiononUpdateWorkoutProgramauth0Function/SubscriptiononUpdateWorkoutProgramauth0Function.AppSyncFunction" - } - }, - "SubscriptiononUpdateWorkoutProgrampostAuth0FunctionSubscriptiononUpdateWorkoutProgrampostAuth0FunctionAppSyncFunctionB64D3021": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononUpdateWorkoutProgrampostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/SubscriptiononUpdateWorkoutProgrampostAuth0Function/SubscriptiononUpdateWorkoutProgrampostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnUpdateWorkoutProgramDataResolverFnSubscriptionOnUpdateWorkoutProgramDataResolverFnAppSyncFunction09BC3352": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnUpdateWorkoutProgramDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/SubscriptionOnUpdateWorkoutProgramDataResolverFn/SubscriptionOnUpdateWorkoutProgramDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononUpdateWorkoutProgramResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "FieldName": "onUpdateWorkoutProgram", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononUpdateWorkoutProgramauth0FunctionSubscriptiononUpdateWorkoutProgramauth0FunctionAppSyncFunctionEC33DFA9", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononUpdateWorkoutProgrampostAuth0FunctionSubscriptiononUpdateWorkoutProgrampostAuth0FunctionAppSyncFunctionB64D3021", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnUpdateWorkoutProgramDataResolverFnSubscriptionOnUpdateWorkoutProgramDataResolverFnAppSyncFunction09BC3352", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateWorkoutProgram\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/subscriptionOnUpdateWorkoutProgramResolver" - } - }, - "SubscriptiononDeleteWorkoutProgramauth0FunctionSubscriptiononDeleteWorkoutProgramauth0FunctionAppSyncFunction798D646D": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononDeleteWorkoutProgramauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/ba02e7c1690152b12072e4f476fba2abbb138ea0b0aba433b0676ffcff949e08.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/SubscriptiononDeleteWorkoutProgramauth0Function/SubscriptiononDeleteWorkoutProgramauth0Function.AppSyncFunction" - } - }, - "SubscriptiononDeleteWorkoutProgrampostAuth0FunctionSubscriptiononDeleteWorkoutProgrampostAuth0FunctionAppSyncFunctionF1F4A2FC": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononDeleteWorkoutProgrampostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/SubscriptiononDeleteWorkoutProgrampostAuth0Function/SubscriptiononDeleteWorkoutProgrampostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnDeleteWorkoutProgramDataResolverFnSubscriptionOnDeleteWorkoutProgramDataResolverFnAppSyncFunction7AE965FB": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnDeleteWorkoutProgramDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/SubscriptionOnDeleteWorkoutProgramDataResolverFn/SubscriptionOnDeleteWorkoutProgramDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononDeleteWorkoutProgramResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "FieldName": "onDeleteWorkoutProgram", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononDeleteWorkoutProgramauth0FunctionSubscriptiononDeleteWorkoutProgramauth0FunctionAppSyncFunction798D646D", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononDeleteWorkoutProgrampostAuth0FunctionSubscriptiononDeleteWorkoutProgrampostAuth0FunctionAppSyncFunctionF1F4A2FC", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnDeleteWorkoutProgramDataResolverFnSubscriptionOnDeleteWorkoutProgramDataResolverFnAppSyncFunction7AE965FB", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteWorkoutProgram\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/subscriptionOnDeleteWorkoutProgramResolver" - } - }, - "WorkoutProgramOwnerDataResolverFnWorkoutProgramOwnerDataResolverFnAppSyncFunction6C8EE914": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "WorkoutProgramOwnerDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/041534e5fd916595f752318f161512d7c7f83b9f2cf32d0f0be381c12253ff68.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/064303962e481067b44300212516363b99aaee539b6bafaf756fdd83ff0b60f0.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/WorkoutProgramOwnerDataResolverFn/WorkoutProgramOwnerDataResolverFn.AppSyncFunction" - } - }, - "WorkoutProgramownerResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "FieldName": "owner", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "WorkoutProgramOwnerDataResolverFnWorkoutProgramOwnerDataResolverFnAppSyncFunction6C8EE914", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"WorkoutProgram\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"owner\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "WorkoutProgram" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/workoutProgramOwnerResolver" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOwW6DMAyGn6X31OtoD7uuoB63CXavTGJQCjgodlpViHefoFOnnX5/8if7zyA7HGC3wZtsreu2va9h+iBRcpWi7Uze8BdGHEgpLpAHdl59YFOShBQtmTyJhuEPG37OeJPz5O6MQ3A1fGPd0xGFjMcBpjL0Dzv0NBscR7mzhalY9aIuULF6nvxPp8R2KZEHbnybIq6Nfj/3V4qzkf0ZRUgF3pcwsodjsh3pUmBe3M+kY1KzrivF1nM7Gw6O4CIv1yyD1zfYbS7i/TYmVj8QlI/8AVayTVs2AQAA" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Outputs": { - "GetAttWorkoutProgramTableStreamArn": { - "Description": "Your DynamoDB table StreamArn.", - "Value": { - "Fn::GetAtt": [ - "WorkoutProgramTable", - "TableStreamArn" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "GetAtt:WorkoutProgramTable:StreamArn" - ] - ] - } - } - }, - "GetAttWorkoutProgramTableName": { - "Description": "Your DynamoDB table name.", - "Value": "WorkoutProgram-jzwb5p2vcbd2ldlnlxokgjcjby-main", - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - }, - "GetAtt:WorkoutProgramTable:Name" - ] - ] - } - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.description.txt deleted file mode 100644 index 72751282334..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.11.2","stackType":"auth-Cognito","metadata":{}} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.outputs.json deleted file mode 100644 index 6ce6d9f7248..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.outputs.json +++ /dev/null @@ -1,38 +0,0 @@ -[ - { - "OutputKey": "amplifyfitnesstrackergen2mainbranch400746baebauthadmingen2mainlambda19698385Arn", - "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:admin-gen2-main" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthUserPoolBF05A444Ref", - "OutputValue": "us-east-1_KGveHFLxc" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthAdminGroupRoleC37E0196Ref", - "OutputValue": "amplify-fitnesstracker-ge-amplifyAuthAdminGroupRole-jIdkeXSZarK4" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref", - "OutputValue": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbranch400746baebauthadmingen2mainlambda19698385Ref", - "OutputValue": "admin-gen2-main" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef", - "OutputValue": "amplify-fitnesstracker-ge-amplifyAuthunauthenticate-RtuRf8ygfomA" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbranch400746baebauthfitnesstracker33f5545533f55455PreSignupgen2mainlambda2B17C7BARef", - "OutputValue": "fitnesstracker33f5545533f55455PreSignup-gen2-main" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthUserPoolAppClient1903AFDARef", - "OutputValue": "1o40oi80febsgsdamen2i1gnfd" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref", - "OutputValue": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-fF1WwIKcoHtV" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.parameters.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.parameters.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.template.json deleted file mode 100644 index b2a19c89b11..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-auth179371D7-19RM9R3LOXG8I.template.json +++ /dev/null @@ -1,1283 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", - "Resources": { - "amplifyAuthUserPool4BA7F805": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AccountRecoverySetting": { - "RecoveryMechanisms": [ - { - "Name": "verified_email", - "Priority": 1 - } - ] - }, - "AdminCreateUserConfig": { - "AllowAdminCreateUserOnly": false - }, - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": "Your verification code is {####}", - "EmailVerificationSubject": "Your verification code", - "LambdaConfig": { - "PreSignUp": { - "Fn::GetAtt": [ - "fitnesstracker33f5545533f55455PreSignupgen2mainlambda1F6BAF02", - "Arn" - ] - } - }, - "MfaConfiguration": "OFF", - "Policies": { - "PasswordPolicy": { - "MinimumLength": 8, - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false, - "TemporaryPasswordValidityDays": 7 - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "SmsVerificationMessage": "The verification code to your new account is {####}", - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolTags": { - "amplify:app-id": "fitnesstracker", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "amplify:friendly-name": "amplifyAuth", - "created-by": "amplify" - }, - "UsernameConfiguration": { - "CaseSensitive": false - }, - "VerificationMessageTemplate": { - "DefaultEmailOption": "CONFIRM_WITH_CODE", - "EmailMessage": "Your verification code is {####}", - "EmailSubject": "Your verification code", - "SmsMessage": "The verification code to your new account is {####}" - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/UserPool/Resource" - } - }, - "amplifyAuthUserPoolPreSignUpCognito55F45D8E": { - "Type": "AWS::Lambda::Permission", - "Properties": { - "Action": "lambda:InvokeFunction", - "FunctionName": { - "Fn::GetAtt": [ - "fitnesstracker33f5545533f55455PreSignupgen2mainlambda1F6BAF02", - "Arn" - ] - }, - "Principal": "cognito-idp.amazonaws.com", - "SourceArn": { - "Fn::GetAtt": [ - "amplifyAuthUserPool4BA7F805", - "Arn" - ] - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/UserPool/PreSignUpCognito" - } - }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 43200, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": { - "Ref": "amplifyAuthUserPool4BA7F805" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, - "amplifyAuthUserPoolAppClient2626C6F8": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlows": [ - "code" - ], - "AllowedOAuthFlowsUserPoolClient": true, - "AllowedOAuthScopes": [ - "profile", - "phone", - "email", - "openid", - "aws.cognito.signin.user.admin" - ], - "CallbackURLs": [ - "https://example.com" - ], - "ExplicitAuthFlows": [ - "ALLOW_CUSTOM_AUTH", - "ALLOW_USER_SRP_AUTH", - "ALLOW_REFRESH_TOKEN_AUTH" - ], - "PreventUserExistenceErrors": "ENABLED", - "SupportedIdentityProviders": [ - "COGNITO" - ], - "UserPoolId": { - "Ref": "amplifyAuthUserPool4BA7F805" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/UserPoolAppClient/Resource" - } - }, - "amplifyAuthIdentityPool3FDE84CC": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": false, - "CognitoIdentityProviders": [ - { - "ClientId": { - "Ref": "amplifyAuthUserPoolAppClient2626C6F8" - }, - "ProviderName": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - { - "Ref": "amplifyAuthUserPool4BA7F805" - } - ] - ] - } - } - ], - "IdentityPoolTags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "SupportedLoginProviders": {} - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/IdentityPool" - } - }, - "amplifyAuthauthenticatedUserRoleD8DA3689": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "authenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/authenticatedUserRole/Resource" - } - }, - "amplifyAuthunauthenticatedUserRole2B524D9E": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "unauthenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/unauthenticatedUserRole/Resource" - } - }, - "amplifyAuthIdentityPoolRoleAttachment045F17C8": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - }, - "RoleMappings": { - "UserPoolWebClientRoleMapping": { - "AmbiguousRoleResolution": "AuthenticatedRole", - "IdentityProvider": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - { - "Ref": "amplifyAuthUserPool4BA7F805" - }, - ":", - { - "Ref": "amplifyAuthUserPoolAppClient2626C6F8" - } - ] - ] - }, - "Type": "Token" - } - }, - "Roles": { - "unauthenticated": { - "Fn::GetAtt": [ - "amplifyAuthunauthenticatedUserRole2B524D9E", - "Arn" - ] - }, - "authenticated": { - "Fn::GetAtt": [ - "amplifyAuthauthenticatedUserRoleD8DA3689", - "Arn" - ] - } - } - }, - "DependsOn": [ - "amplifyAuthIdentityPool3FDE84CC", - "amplifyAuthUserPoolAppClient2626C6F8" - ], - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/IdentityPoolRoleAttachment" - } - }, - "amplifyAuthAdminGroupRole766878DC": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "authenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/AdminGroupRole/Resource" - } - }, - "amplifyAuthAdminGroupCC42FF04": { - "Type": "AWS::Cognito::UserPoolGroup", - "Properties": { - "GroupName": "Admin", - "Precedence": 0, - "RoleArn": { - "Fn::GetAtt": [ - "amplifyAuthAdminGroupRole766878DC", - "Arn" - ] - }, - "UserPoolId": { - "Ref": "amplifyAuthUserPool4BA7F805" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/amplifyAuth/AdminGroup" - } - }, - "fitnesstracker33f5545533f55455PreSignupgen2mainlambdaServiceRole713FCE90": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "fitnesstracker33f5545533f55455PreSignup-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/fitnesstracker33f5545533f55455PreSignup-gen2-main-lambda/ServiceRole/Resource" - } - }, - "fitnesstracker33f5545533f55455PreSignupgen2mainlambda1F6BAF02": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Architectures": [ - "x86_64" - ], - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "9f9c01e67674891c2af7783b0075317068ffc260976375cef1a2fb293d54b4f7.zip" - }, - "Environment": { - "Variables": { - "MODULES": "email-filter-allowlist", - "DOMAINALLOWLIST": "amazon.com", - "DOMAINBLACKLIST": "", - "ENV": "gen2-main", - "REGION": "us-east-1", - "AMPLIFY_SSM_ENV_CONFIG": "{}" - } - }, - "EphemeralStorage": { - "Size": 512 - }, - "FunctionName": "fitnesstracker33f5545533f55455PreSignup-gen2-main", - "Handler": "index.handler", - "MemorySize": 128, - "Role": { - "Fn::GetAtt": [ - "fitnesstracker33f5545533f55455PreSignupgen2mainlambdaServiceRole713FCE90", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "fitnesstracker33f5545533f55455PreSignup-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 25 - }, - "DependsOn": [ - "fitnesstracker33f5545533f55455PreSignupgen2mainlambdaServiceRole713FCE90" - ], - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/fitnesstracker33f5545533f55455PreSignup-gen2-main-lambda/Resource", - "aws:asset:path": "asset.9f9c01e67674891c2af7783b0075317068ffc260976375cef1a2fb293d54b4f7", - "aws:asset:is-bundled": true, - "aws:asset:property": "Code" - } - }, - "AMPLIFYAUTHUSERPOOLIDParameterCC466CA3": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/fitnesstracker/gen2main-branch-400746baeb/AMPLIFY_AUTH_USERPOOL_ID", - "Tags": { - "amplify:app-id": "fitnesstracker", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": { - "Ref": "amplifyAuthUserPool4BA7F805" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/AMPLIFY_AUTH_USERPOOL_IDParameter/Resource" - } - }, - "admingen2mainlambdaServiceRole439B1792": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "admin-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/admin-gen2-main-lambda/ServiceRole/Resource" - } - }, - "admingen2mainlambdaServiceRoleDefaultPolicy0F640A9C": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "ssm:GetParameters", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":ssm:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":parameter/amplify/resource_reference/fitnesstracker/gen2main-branch-400746baeb/AMPLIFY_AUTH_USERPOOL_ID" - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "admingen2mainlambdaServiceRoleDefaultPolicy0F640A9C", - "Roles": [ - { - "Ref": "admingen2mainlambdaServiceRole439B1792" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/admin-gen2-main-lambda/ServiceRole/DefaultPolicy/Resource" - } - }, - "admingen2mainlambdaECF7211C": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Architectures": [ - "x86_64" - ], - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "b92a661741ad73057aa08e5c49f164a180c0bb1ad1d4be9740e7154f2b916a62.zip" - }, - "Environment": { - "Variables": { - "ENV": "gen2-main", - "REGION": "us-east-1", - "AMPLIFY_SSM_ENV_CONFIG": "{\"AMPLIFY_AUTH_USERPOOL_ID\":{\"path\":\"/amplify/resource_reference/fitnesstracker/gen2main-branch-400746baeb/AMPLIFY_AUTH_USERPOOL_ID\"}}", - "AMPLIFY_AUTH_USERPOOL_ID": "", - "AUTH_FITNESSTRACKER33F5545533F55455_USERPOOLID": { - "Ref": "amplifyAuthUserPool4BA7F805" - } - } - }, - "EphemeralStorage": { - "Size": 512 - }, - "FunctionName": "admin-gen2-main", - "Handler": "index.handler", - "MemorySize": 128, - "Role": { - "Fn::GetAtt": [ - "admingen2mainlambdaServiceRole439B1792", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "admin-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 25 - }, - "DependsOn": [ - "admingen2mainlambdaServiceRole439B1792" - ], - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/admin-gen2-main-lambda/Resource", - "aws:asset:path": "asset.b92a661741ad73057aa08e5c49f164a180c0bb1ad1d4be9740e7154f2b916a62", - "aws:asset:is-bundled": true, - "aws:asset:property": "Code" - } - }, - "userpoolAccess13FEE5419": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:AdminGetDevice", - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "amplifyAuthUserPool4BA7F805", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess13FEE5419", - "Roles": [ - { - "Ref": "admingen2mainlambdaServiceRole439B1792" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess1/Resource" - } - }, - "userpoolAccess268F187DB": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:AdminGetUser", - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "amplifyAuthUserPool4BA7F805", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess268F187DB", - "Roles": [ - { - "Ref": "admingen2mainlambdaServiceRole439B1792" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess2/Resource" - } - }, - "userpoolAccess3956C62F8": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:AdminListDevices", - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "amplifyAuthUserPool4BA7F805", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess3956C62F8", - "Roles": [ - { - "Ref": "admingen2mainlambdaServiceRole439B1792" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess3/Resource" - } - }, - "userpoolAccess4A84025C3": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:AdminListGroupsForUser", - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "amplifyAuthUserPool4BA7F805", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess4A84025C3", - "Roles": [ - { - "Ref": "admingen2mainlambdaServiceRole439B1792" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess4/Resource" - } - }, - "userpoolAccess585E2FB32": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:ListUsers", - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "amplifyAuthUserPool4BA7F805", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess585E2FB32", - "Roles": [ - { - "Ref": "admingen2mainlambdaServiceRole439B1792" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess5/Resource" - } - }, - "userpoolAccess600DA4CB0": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:ListUsersInGroup", - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "amplifyAuthUserPool4BA7F805", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess600DA4CB0", - "Roles": [ - { - "Ref": "admingen2mainlambdaServiceRole439B1792" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess6/Resource" - } - }, - "userpoolAccess76F9C91C1": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:ListGroups", - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "amplifyAuthUserPool4BA7F805", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess76F9C91C1", - "Roles": [ - { - "Ref": "admingen2mainlambdaServiceRole439B1792" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/userpoolAccess7/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/12NzW7CQAyEn4X74tLAoVeI1KoXFBH1HC0bkzrZn2rtFKFV3r3aoLSop5mxPZ8LKHY72Kz0ldemHdaWzpCOyIJtLdoMSl+5SSZ0niRA+mCMVQhWlRf/6xdTWkIvj6u/yXuLXkhuS/kxn4LFvYg2n+5f/y2G8WtSVrtzqyGVF19hdMRMwee719EboeAnRdpByqA8nrUKlswtx7tbMI0PLfYMx1kWguJto5lRGPZZFG/hMJoB5aAZFbODVEsk31U6aoeCcUYvYZrU3KtFd+S7SeUv0PPTd1HA8wtsVj0TrePohRzC6a4/caZnM34BAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Outputs": { - "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthUserPoolBF05A444Ref": { - "Value": { - "Ref": "amplifyAuthUserPool4BA7F805" - } - }, - "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthUserPoolAppClient1903AFDARef": { - "Value": { - "Ref": "amplifyAuthUserPoolAppClient2626C6F8" - } - }, - "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref": { - "Value": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } - }, - "amplifyfitnesstrackergen2mainbranch400746baebauthfitnesstracker33f5545533f55455PreSignupgen2mainlambda2B17C7BARef": { - "Value": { - "Ref": "fitnesstracker33f5545533f55455PreSignupgen2mainlambda1F6BAF02" - } - }, - "amplifyfitnesstrackergen2mainbranch400746baebauthadmingen2mainlambda19698385Ref": { - "Value": { - "Ref": "admingen2mainlambdaECF7211C" - } - }, - "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref": { - "Value": { - "Ref": "amplifyAuthauthenticatedUserRoleD8DA3689" - } - }, - "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef": { - "Value": { - "Ref": "amplifyAuthunauthenticatedUserRole2B524D9E" - } - }, - "amplifyfitnesstrackergen2mainbranch400746baebauthadmingen2mainlambda19698385Arn": { - "Value": { - "Fn::GetAtt": [ - "admingen2mainlambdaECF7211C", - "Arn" - ] - } - }, - "amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthAdminGroupRoleC37E0196Ref": { - "Value": { - "Ref": "amplifyAuthAdminGroupRole766878DC" - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-data7552DF31-1601DAFBL31V0.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-data7552DF31-1601DAFBL31V0.description.txt deleted file mode 100644 index 4c1d5203a70..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-data7552DF31-1601DAFBL31V0.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.21.0","stackType":"api-AppSync","metadata":{"dataSources":"dynamodb","authorizationModes":"amazon_cognito_identity_pools,amazon_cognito_user_pools,api_key,aws_iam","customOperations":""}} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-data7552DF31-1601DAFBL31V0.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-data7552DF31-1601DAFBL31V0.outputs.json deleted file mode 100644 index 1a12bae0377..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-data7552DF31-1601DAFBL31V0.outputs.json +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "OutputKey": "amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId", - "OutputValue": "jrmmxaml4ndpxmx4pmyk3bgv7u" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIDefaultApiKey7DAA10FCApiKey", - "OutputValue": "da2-fakeapikey00000000000000" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbranch400746baebdatalognutritiongen2mainlambda08A76FE8Arn", - "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:lognutrition-gen2-main" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BGraphQLUrl", - "OutputValue": "https://lpsucva2qjdofmkpzenwokjsue.appsync-api.us-east-1.amazonaws.com/graphql" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB0917740FDestinationBucketArn", - "OutputValue": "arn:aws:s3:::amplify-fitnesstracker-ge-amplifydataamplifycodege-qcmnmg6hhy5m" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbranch400746baebdatalognutritiongen2mainlambda08A76FE8Ref", - "OutputValue": "lognutrition-gen2-main" - } -] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-data7552DF31-1601DAFBL31V0.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-data7552DF31-1601DAFBL31V0.parameters.json deleted file mode 100644 index 6ecdf1c9579..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-data7552DF31-1601DAFBL31V0.parameters.json +++ /dev/null @@ -1,38 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef", - "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthunauthenticate-RtuRf8ygfomA" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "true" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref", - "ParameterValue": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthUserPoolBF05A444Ref", - "ParameterValue": "us-east-1_KGveHFLxc" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref", - "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-fF1WwIKcoHtV" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-data7552DF31-1601DAFBL31V0.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-data7552DF31-1601DAFBL31V0.template.json deleted file mode 100644 index ac561915d3d..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-data7552DF31-1601DAFBL31V0.template.json +++ /dev/null @@ -1,1927 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.21.0\",\"stackType\":\"api-AppSync\",\"metadata\":{\"dataSources\":\"dynamodb\",\"authorizationModes\":\"amazon_cognito_identity_pools,amazon_cognito_user_pools,api_key,aws_iam\",\"customOperations\":\"\"}}", - "Resources": { - "amplifyDataGraphQLAPI42A6FA33": { - "Type": "AWS::AppSync::GraphQLApi", - "Properties": { - "AdditionalAuthenticationProviders": [ - { - "AuthenticationType": "API_KEY" - } - ], - "AuthenticationType": "AMAZON_COGNITO_USER_POOLS", - "Name": "amplifyData", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "UserPoolConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "DefaultAction": "ALLOW", - "UserPoolId": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthUserPoolBF05A444Ref" - } - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/GraphQLAPI/Resource" - } - }, - "amplifyDataGraphQLAPITransformerSchemaFF50A789": { - "Type": "AWS::AppSync::GraphQLSchema", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "DefinitionS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/65a1439e92e2068c9c150df8566894c82534d1cbbecce25f360faab8b21d0713.graphql" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/GraphQLAPI/TransformerSchema" - } - }, - "amplifyDataGraphQLAPIDefaultApiKey1C8ED374": { - "Type": "AWS::AppSync::ApiKey", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "Description": "graphql", - "Expires": 1774928171 - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/GraphQLAPI/DefaultApiKey" - } - }, - "amplifyDataGraphQLAPINONEDS684BF699": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "Description": "None Data Source for Pipeline functions", - "Name": "NONE_DS", - "Type": "NONE" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/GraphQLAPI/NONE_DS/Resource" - } - }, - "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/f37420166f9ac08186a3cdad4004870869529236abd5f4fbf5ce02519bd0d2d9.json" - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/AmplifyTableManager.NestedStack/AmplifyTableManager.NestedStackResource", - "aws:asset:path": "amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManager8867D646.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "amplifyDataWorkoutProgramNestedStackWorkoutProgramNestedStackResourceE567B35D": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "DynamoDBModelTableWriteIOPS": { - "Ref": "DynamoDBModelTableWriteIOPS" - }, - "DynamoDBBillingMode": { - "Ref": "DynamoDBBillingMode" - }, - "DynamoDBEnablePointInTimeRecovery": { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "DynamoDBEnableServerSideEncryption": { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceE84470E2Outputsamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerTableMaE24831DE": { - "Fn::GetAtt": [ - "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833", - "Outputs.amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent4D2D0CF9Arn" - ] - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/f49170eb7c9d78b1e4c6b9e7c434a75f6cb5412d1ebd22ebf34ddfdb7a0b1763.json" - ] - ] - } - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/WorkoutProgram.NestedStack/WorkoutProgram.NestedStackResource", - "aws:asset:path": "amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataWorkoutProgramDF6E3FC5.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "amplifyDataExerciseNestedStackExerciseNestedStackResource73533B79": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "DynamoDBModelTableWriteIOPS": { - "Ref": "DynamoDBModelTableWriteIOPS" - }, - "DynamoDBBillingMode": { - "Ref": "DynamoDBBillingMode" - }, - "DynamoDBEnablePointInTimeRecovery": { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "DynamoDBEnableServerSideEncryption": { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceE84470E2Outputsamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerTableMaE24831DE": { - "Fn::GetAtt": [ - "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833", - "Outputs.amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent4D2D0CF9Arn" - ] - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/654e5882a5d4df0c80b2afc1f525ea4f0b5f32771060945aead2e22641a51060.json" - ] - ] - } - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Exercise.NestedStack/Exercise.NestedStackResource", - "aws:asset:path": "amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataExercise2AF6D082.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "amplifyDataMealNestedStackMealNestedStackResourceDA3F2B9A": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "DynamoDBModelTableWriteIOPS": { - "Ref": "DynamoDBModelTableWriteIOPS" - }, - "DynamoDBBillingMode": { - "Ref": "DynamoDBBillingMode" - }, - "DynamoDBEnablePointInTimeRecovery": { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "DynamoDBEnableServerSideEncryption": { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceE84470E2Outputsamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerTableMaE24831DE": { - "Fn::GetAtt": [ - "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833", - "Outputs.amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent4D2D0CF9Arn" - ] - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/90bc7c76efd60f7749effd654020bce258df5515192150cb2cffb73afb4b121a.json" - ] - ] - } - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/Meal.NestedStack/Meal.NestedStackResource", - "aws:asset:path": "amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataMeal183E05A4.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "amplifyDataConnectionStackNestedStackConnectionStackNestedStackResourceAB0F312B": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPINONEDSD2CC3624Name": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataExerciseNestedStackExerciseNestedStackResourceA766B8C6Outputsamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataExerciseExerciseDataSourceA366FC05Name": { - "Fn::GetAtt": [ - "amplifyDataExerciseNestedStackExerciseNestedStackResource73533B79", - "Outputs.amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataExerciseExerciseDataSourceA366FC05Name" - ] - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataExerciseNestedStackExerciseNestedStackResourceA766B8C6Outputsamplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataExerciseExerciseTableA7BD0631TableArn": { - "Fn::GetAtt": [ - "amplifyDataExerciseNestedStackExerciseNestedStackResource73533B79", - "Outputs.amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataExerciseExerciseTableA7BD0631TableArn" - ] - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/453d993ef8245185b0fdbb2c736c1d61b4ab7885cfa293984e7c652e2006f0d4.json" - ] - ] - } - }, - "DependsOn": [ - "amplifyDataExerciseNestedStackExerciseNestedStackResource73533B79", - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/ConnectionStack.NestedStack/ConnectionStack.NestedStackResource", - "aws:asset:path": "amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataConnectionStackBA42D0E4.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA": { - "Type": "AWS::S3::Bucket", - "Properties": { - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD" - ], - "AllowedOrigins": [ - { - "Fn::Join": [ - "", - [ - "https://", - { - "Ref": "AWS::Region" - }, - ".console.aws.amazon.com/amplify" - ] - ] - } - ] - } - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "aws-cdk:cr-owned:85b13048", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/Resource" - } - }, - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucketPolicyF1C1C548": { - "Type": "AWS::S3::BucketPolicy", - "Properties": { - "Bucket": { - "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" - }, - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "s3:PutBucketPolicy", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*" - ], - "Effect": "Allow", - "Principal": { - "AWS": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - } - }, - "Resource": [ - { - "Fn::GetAtt": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/Policy/Resource" - } - }, - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucketAutoDeleteObjectsCustomResource437F26F5": { - "Type": "Custom::S3AutoDeleteObjects", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "Arn" - ] - }, - "BucketName": { - "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" - } - }, - "DependsOn": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucketPolicyF1C1C548" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/AutoDeleteObjectsCustomResource/Default" - } - }, - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentAwsCliLayerE322F905": { - "Type": "AWS::Lambda::LayerVersion", - "Properties": { - "Content": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "0cfdecad2260a3a84ad0c2d08a77e03c9d25e26c7b52f26b1e1faf97aef92f18.zip" - }, - "Description": "/opt/awscli/aws" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsDeployment/AwsCliLayer/Resource", - "aws:asset:path": "asset.0cfdecad2260a3a84ad0c2d08a77e03c9d25e26c7b52f26b1e1faf97aef92f18.zip", - "aws:asset:is-bundled": false, - "aws:asset:property": "Content" - } - }, - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB21775929": { - "Type": "Custom::CDKBucketDeployment", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBC5D8AB21", - "Arn" - ] - }, - "SourceBucketNames": [ - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - } - ], - "SourceObjectKeys": [ - "b8a396fe25a065248377a8b285f24f09f426a7d7d7dcc629f6a5a7537e86d717.zip" - ], - "SourceMarkers": [ - {} - ], - "DestinationBucketName": { - "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" - }, - "WaitForDistributionInvalidation": true, - "Prune": true, - "OutputObjectKeys": true, - "DestinationBucketArn": { - "Fn::GetAtt": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", - "Arn" - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsDeployment/CustomResource-1536MiB/Default" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ] - }, - "ManagedPolicyArns": [ - { - "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" - }, - "Timeout": 900, - "MemorySize": 128, - "Handler": "index.handler", - "Role": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Description": { - "Fn::Join": [ - "", - [ - "Lambda function for auto-deleting objects in ", - { - "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" - }, - " S3 bucket." - ] - ] - } - }, - "DependsOn": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - ], - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", - "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", - "aws:asset:property": "Code" - } - }, - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/ServiceRole/Resource" - } - }, - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleDefaultPolicyFF1C635B": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "s3:GetObject*", - "s3:GetBucket*", - "s3:List*" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":s3:::", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - } - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":s3:::", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/*" - ] - ] - } - ] - }, - { - "Action": [ - "s3:GetObject*", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*", - "s3:PutObject", - "s3:PutObjectLegalHold", - "s3:PutObjectRetention", - "s3:PutObjectTagging", - "s3:PutObjectVersionTagging", - "s3:Abort*" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - }, - { - "Action": [ - "s3:GetObject*", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*", - "s3:PutObject", - "s3:PutObjectLegalHold", - "s3:PutObjectRetention", - "s3:PutObjectTagging", - "s3:PutObjectVersionTagging", - "s3:Abort*" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "modelIntrospectionSchemaBucketF566B665", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "modelIntrospectionSchemaBucketF566B665", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleDefaultPolicyFF1C635B", - "Roles": [ - { - "Ref": "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/ServiceRole/DefaultPolicy/Resource" - } - }, - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBC5D8AB21": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "3423a042b818e31c1e34a19d6689ab2e5f9b70fcbe9e71df66f241b20a200bd9.zip" - }, - "Environment": { - "Variables": { - "AWS_CA_BUNDLE": "/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem" - } - }, - "Handler": "index.handler", - "Layers": [ - { - "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentAwsCliLayerE322F905" - } - ], - "MemorySize": 1536, - "Role": { - "Fn::GetAtt": [ - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2", - "Arn" - ] - }, - "Runtime": "python3.13", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 900 - }, - "DependsOn": [ - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleDefaultPolicyFF1C635B", - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2" - ], - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/Resource", - "aws:asset:path": "asset.3423a042b818e31c1e34a19d6689ab2e5f9b70fcbe9e71df66f241b20a200bd9", - "aws:asset:is-bundled": false, - "aws:asset:property": "Code" - } - }, - "modelIntrospectionSchemaBucketF566B665": { - "Type": "AWS::S3::Bucket", - "Properties": { - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "aws-cdk:cr-owned:eadf0ce8", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/modelIntrospectionSchemaBucket/Resource" - } - }, - "modelIntrospectionSchemaBucketPolicy4DAB0D15": { - "Type": "AWS::S3::BucketPolicy", - "Properties": { - "Bucket": { - "Ref": "modelIntrospectionSchemaBucketF566B665" - }, - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:*", - "Condition": { - "Bool": { - "aws:SecureTransport": "false" - } - }, - "Effect": "Deny", - "Principal": { - "AWS": "*" - }, - "Resource": [ - { - "Fn::GetAtt": [ - "modelIntrospectionSchemaBucketF566B665", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "modelIntrospectionSchemaBucketF566B665", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - }, - { - "Action": [ - "s3:PutBucketPolicy", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*" - ], - "Effect": "Allow", - "Principal": { - "AWS": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - } - }, - "Resource": [ - { - "Fn::GetAtt": [ - "modelIntrospectionSchemaBucketF566B665", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "modelIntrospectionSchemaBucketF566B665", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/modelIntrospectionSchemaBucket/Policy/Resource" - } - }, - "modelIntrospectionSchemaBucketAutoDeleteObjectsCustomResourceFE57309F": { - "Type": "Custom::S3AutoDeleteObjects", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "Arn" - ] - }, - "BucketName": { - "Ref": "modelIntrospectionSchemaBucketF566B665" - } - }, - "DependsOn": [ - "modelIntrospectionSchemaBucketPolicy4DAB0D15" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/modelIntrospectionSchemaBucket/AutoDeleteObjectsCustomResource/Default" - } - }, - "modelIntrospectionSchemaBucketDeploymentAwsCliLayer13C432F7": { - "Type": "AWS::Lambda::LayerVersion", - "Properties": { - "Content": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "0cfdecad2260a3a84ad0c2d08a77e03c9d25e26c7b52f26b1e1faf97aef92f18.zip" - }, - "Description": "/opt/awscli/aws" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/modelIntrospectionSchemaBucketDeployment/AwsCliLayer/Resource", - "aws:asset:path": "asset.0cfdecad2260a3a84ad0c2d08a77e03c9d25e26c7b52f26b1e1faf97aef92f18.zip", - "aws:asset:is-bundled": false, - "aws:asset:property": "Content" - } - }, - "modelIntrospectionSchemaBucketDeploymentCustomResource1536MiB104B97EC": { - "Type": "Custom::CDKBucketDeployment", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBC5D8AB21", - "Arn" - ] - }, - "SourceBucketNames": [ - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - } - ], - "SourceObjectKeys": [ - "bbcdecb1eed320d4ad564b02b8d9bdd9c598d023476534cd6c73d3be095717a4.zip" - ], - "SourceMarkers": [ - {} - ], - "DestinationBucketName": { - "Ref": "modelIntrospectionSchemaBucketF566B665" - }, - "WaitForDistributionInvalidation": true, - "Prune": true, - "OutputObjectKeys": true - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/modelIntrospectionSchemaBucketDeployment/CustomResource-1536MiB/Default" - } - }, - "AMPLIFYDATAGRAPHQLENDPOINTParameter1C2CBB16": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/fitnesstracker/gen2main-branch-400746baeb/AMPLIFY_DATA_GRAPHQL_ENDPOINT", - "Tags": { - "amplify:app-id": "fitnesstracker", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "GraphQLUrl" - ] - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/AMPLIFY_DATA_GRAPHQL_ENDPOINTParameter/Resource" - } - }, - "AMPLIFYDATAMODELINTROSPECTIONSCHEMABUCKETNAMEParameter47BF4F44": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/fitnesstracker/gen2main-branch-400746baeb/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_BUCKET_NAME", - "Tags": { - "amplify:app-id": "fitnesstracker", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": { - "Ref": "modelIntrospectionSchemaBucketF566B665" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_BUCKET_NAMEParameter/Resource" - } - }, - "AMPLIFYDATAMODELINTROSPECTIONSCHEMAKEYParameterB6AEAE8A": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/fitnesstracker/gen2main-branch-400746baeb/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_KEY", - "Tags": { - "amplify:app-id": "fitnesstracker", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": "modelIntrospectionSchema.json" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_KEYParameter/Resource" - } - }, - "AMPLIFYDATADEFAULTNAMEParameterE7C23CC4": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/fitnesstracker/gen2main-branch-400746baeb/AMPLIFY_DATA_DEFAULT_NAME", - "Tags": { - "amplify:app-id": "fitnesstracker", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": "amplifyData" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/AMPLIFY_DATA_DEFAULT_NAMEParameter/Resource" - } - }, - "lognutritiongen2mainlambdaServiceRoleEF64897B": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "lognutrition-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/lognutrition-gen2-main-lambda/ServiceRole/Resource" - } - }, - "lognutritiongen2mainlambdaServiceRoleDefaultPolicy710D0C37": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:Put*", - "dynamodb:Create*", - "dynamodb:BatchWriteItem", - "dynamodb:PartiQLInsert", - "dynamodb:Get*", - "dynamodb:BatchGetItem", - "dynamodb:List*", - "dynamodb:Describe*", - "dynamodb:Scan", - "dynamodb:Query", - "dynamodb:PartiQLSelect", - "dynamodb:Update*", - "dynamodb:RestoreTable*", - "dynamodb:PartiQLUpdate", - "dynamodb:Delete*", - "dynamodb:PartiQLDelete" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "amplifyDataMealNestedStackMealNestedStackResourceDA3F2B9A", - "Outputs.amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataMealMealTable5D540888TableArn" - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "lognutritiongen2mainlambdaServiceRoleDefaultPolicy710D0C37", - "Roles": [ - { - "Ref": "lognutritiongen2mainlambdaServiceRoleEF64897B" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/lognutrition-gen2-main-lambda/ServiceRole/DefaultPolicy/Resource" - } - }, - "lognutritiongen2mainlambda9BD8C969": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Architectures": [ - "x86_64" - ], - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "2bcd86cf1eee34f16acb031224a530896ecfe84b4004ec66912a8281b73f0356.zip" - }, - "Environment": { - "Variables": { - "ENV": "gen2-main", - "REGION": "us-east-1", - "AMPLIFY_SSM_ENV_CONFIG": "{}", - "API_FITNESSTRACKER_GRAPHQLAPIIDOUTPUT": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "API_FITNESSTRACKER_MEALTABLE_ARN": { - "Fn::GetAtt": [ - "amplifyDataMealNestedStackMealNestedStackResourceDA3F2B9A", - "Outputs.amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataMealMealTable5D540888TableArn" - ] - }, - "API_FITNESSTRACKER_MEALTABLE_NAME": { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "amplifyDataMealNestedStackMealNestedStackResourceDA3F2B9A", - "Outputs.amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataMealMealTable5D540888TableArn" - ] - } - ] - } - ] - } - ] - } - ] - } - } - }, - "EphemeralStorage": { - "Size": 512 - }, - "FunctionName": "lognutrition-gen2-main", - "Handler": "index.handler", - "MemorySize": 128, - "Role": { - "Fn::GetAtt": [ - "lognutritiongen2mainlambdaServiceRoleEF64897B", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "lognutrition-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 25 - }, - "DependsOn": [ - "lognutritiongen2mainlambdaServiceRoleDefaultPolicy710D0C37", - "lognutritiongen2mainlambdaServiceRoleEF64897B" - ], - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/lognutrition-gen2-main-lambda/Resource", - "aws:asset:path": "asset.2bcd86cf1eee34f16acb031224a530896ecfe84b4004ec66912a8281b73f0356", - "aws:asset:is-bundled": true, - "aws:asset:property": "Code" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/6VSTW/bMAz9Lc1ZUdu0h6E318F6aJFlMbDLMASMTKdM9OGJcjND8H8fZDVJ156KnUi+J5KPFGdydnsrry7gwFNV76eaNjIukAPWVQC1Fytk13mFAg68jtC23Fsl44OH9vm3Llq6B0ZRNnZEvj8VLb2JKvWMBhJQtPSIvVg4i3MIUOWiZWPP0SD4Rsb7Tu0xJCZ7P+PE0B+yk7vJW5FJDt/IkWKZnxZdcHPUGPDbZocq8GQQ/5X9S2Rq6TSp/qwpx59QlhOqAAEN2k8K+5h81JV2n7a2jjW22vWJfk2anwABzBhYFskMQoPZ1CBj2dgn6NH/QM/krKjIbjUGZ792VoWEnJyyOYGDIDAyrpweP2+05+1kbxDMRsYqeLLbJXgwGNCP/DE4ylhbV+OO5WI05yZlY/P5lR0HZ05HmFoe/dcKOg2xhgMrTbI4cKlpnEuM81YBtmS3/zR/V3Tp3QvV6PMykyC548uX2Uxef5FXFzsmmvrOBjIoV9n+BdBFrHc2AwAA" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthUserPoolBF05A444Ref": { - "Type": "String" - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref": { - "Type": "String" - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef": { - "Type": "String" - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref": { - "Type": "String" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Outputs": { - "amplifyfitnesstrackergen2mainbranch400746baebdatalognutritiongen2mainlambda08A76FE8Ref": { - "Value": { - "Ref": "lognutritiongen2mainlambda9BD8C969" - } - }, - "amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId": { - "Value": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - } - }, - "amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BGraphQLUrl": { - "Value": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "GraphQLUrl" - ] - } - }, - "amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB0917740FDestinationBucketArn": { - "Value": { - "Fn::GetAtt": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB21775929", - "DestinationBucketArn" - ] - } - }, - "amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIDefaultApiKey7DAA10FCApiKey": { - "Value": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPIDefaultApiKey1C8ED374", - "ApiKey" - ] - } - }, - "amplifyfitnesstrackergen2mainbranch400746baebdatalognutritiongen2mainlambda08A76FE8Arn": { - "Value": { - "Fn::GetAtt": [ - "lognutritiongen2mainlambda9BD8C969", - "Arn" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistackadminapi43EA27F6-156QTXWFLKBBU.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistackadminapi43EA27F6-156QTXWFLKBBU.description.txt deleted file mode 100644 index 1e3215c63d9..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistackadminapi43EA27F6-156QTXWFLKBBU.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.21.1","stackType":"custom","metadata":{}} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistackadminapi43EA27F6-156QTXWFLKBBU.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistackadminapi43EA27F6-156QTXWFLKBBU.outputs.json deleted file mode 100644 index bbfcb44ca35..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistackadminapi43EA27F6-156QTXWFLKBBU.outputs.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "OutputKey": "amplifyfitnesstrackergen2mainbranch400746baebrestapistackadminapiRestApi15E05C08Ref", - "OutputValue": "3tygfqh1kh" - }, - { - "OutputKey": "RestApiEndpoint0551178A", - "OutputValue": "https://3tygfqh1kh.execute-api.us-east-1.amazonaws.com/prod/" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbranch400746baebrestapistackadminapiRestApiDeploymentStageprodB49BA490Ref", - "OutputValue": "prod" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistackadminapi43EA27F6-156QTXWFLKBBU.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistackadminapi43EA27F6-156QTXWFLKBBU.parameters.json deleted file mode 100644 index b6b8c1039a9..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistackadminapi43EA27F6-156QTXWFLKBBU.parameters.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthAdminGroupRoleC37E0196Ref", - "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthAdminGroupRole-jIdkeXSZarK4" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthadmingen2mainlambda19698385Arn", - "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:admin-gen2-main" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref", - "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-fF1WwIKcoHtV" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistackadminapi43EA27F6-156QTXWFLKBBU.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistackadminapi43EA27F6-156QTXWFLKBBU.template.json deleted file mode 100644 index cfafb176428..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistackadminapi43EA27F6-156QTXWFLKBBU.template.json +++ /dev/null @@ -1,996 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.21.1\",\"stackType\":\"custom\",\"metadata\":{}}", - "Resources": { - "RestApi0C43BF4B": { - "Type": "AWS::ApiGateway::RestApi", - "Properties": { - "Name": "adminapi-gen2-main", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-adminapi/RestApi/Resource" - } - }, - "RestApiCloudWatchRoleE3ED6605": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "apigateway.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AmazonAPIGatewayPushToCloudWatchLogs" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain", - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-adminapi/RestApi/CloudWatchRole/Resource" - } - }, - "RestApiAccount7C83CF5A": { - "Type": "AWS::ApiGateway::Account", - "Properties": { - "CloudWatchRoleArn": { - "Fn::GetAtt": [ - "RestApiCloudWatchRoleE3ED6605", - "Arn" - ] - } - }, - "DependsOn": [ - "RestApi0C43BF4B" - ], - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain", - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-adminapi/RestApi/Account" - } - }, - "RestApiDeployment180EC5035a234307e06871ce9f41d5b69075e5fe": { - "Type": "AWS::ApiGateway::Deployment", - "Properties": { - "Description": "Automatically created by the RestApi construct", - "RestApiId": { - "Ref": "RestApi0C43BF4B" - } - }, - "DependsOn": [ - "RestApiadminproxyANYAD871D2E", - "RestApiadminproxyOPTIONS0428B0AB", - "RestApiadminproxy34EEEF46", - "RestApiadminANY959B010C", - "RestApiadminOPTIONS9579A88D", - "RestApiadmin6E2AFAD8", - "RestApiDefault4XX291F46B7", - "RestApiDefault5XXD8CFC37C" - ], - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-adminapi/RestApi/Deployment/Resource", - "aws:cdk:do-not-refactor": true - } - }, - "RestApiDeploymentStageprod3855DE66": { - "Type": "AWS::ApiGateway::Stage", - "Properties": { - "DeploymentId": { - "Ref": "RestApiDeployment180EC5035a234307e06871ce9f41d5b69075e5fe" - }, - "RestApiId": { - "Ref": "RestApi0C43BF4B" - }, - "StageName": "prod", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "DependsOn": [ - "RestApiAccount7C83CF5A" - ], - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-adminapi/RestApi/DeploymentStage.prod/Resource" - } - }, - "RestApiadmin6E2AFAD8": { - "Type": "AWS::ApiGateway::Resource", - "Properties": { - "ParentId": { - "Fn::GetAtt": [ - "RestApi0C43BF4B", - "RootResourceId" - ] - }, - "PathPart": "admin", - "RestApiId": { - "Ref": "RestApi0C43BF4B" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-adminapi/RestApi/Default/admin/Resource" - } - }, - "RestApiadminOPTIONS9579A88D": { - "Type": "AWS::ApiGateway::Method", - "Properties": { - "ApiKeyRequired": false, - "AuthorizationType": "NONE", - "HttpMethod": "OPTIONS", - "Integration": { - "IntegrationResponses": [ - { - "ResponseParameters": { - "method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token,X-Amz-User-Agent'", - "method.response.header.Access-Control-Allow-Origin": "'*'", - "method.response.header.Access-Control-Allow-Methods": "'OPTIONS,GET,PUT,POST,DELETE,PATCH,HEAD'" - }, - "StatusCode": "200" - } - ], - "RequestTemplates": { - "application/json": "{ statusCode: 200 }" - }, - "Type": "MOCK" - }, - "MethodResponses": [ - { - "ResponseParameters": { - "method.response.header.Access-Control-Allow-Headers": true, - "method.response.header.Access-Control-Allow-Origin": true, - "method.response.header.Access-Control-Allow-Methods": true - }, - "StatusCode": "200" - } - ], - "ResourceId": { - "Ref": "RestApiadmin6E2AFAD8" - }, - "RestApiId": { - "Ref": "RestApi0C43BF4B" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-adminapi/RestApi/Default/admin/OPTIONS/Resource" - } - }, - "RestApiadminANYApiPermissionamplifyfitnesstrackergen2mainbranch400746baebrestapistackadminapiRestApi93F88D79ANYadmin6E3EDE44": { - "Type": "AWS::Lambda::Permission", - "Properties": { - "Action": "lambda:InvokeFunction", - "FunctionName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthadmingen2mainlambda19698385Arn" - }, - "Principal": "apigateway.amazonaws.com", - "SourceArn": { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":", - { - "Ref": "RestApi0C43BF4B" - }, - "/", - { - "Ref": "RestApiDeploymentStageprod3855DE66" - }, - "/*/admin" - ] - ] - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-adminapi/RestApi/Default/admin/ANY/ApiPermission.amplifyfitnesstrackergen2mainbranch400746baebrestapistackadminapiRestApi93F88D79.ANY..admin" - } - }, - "RestApiadminANYApiPermissionTestamplifyfitnesstrackergen2mainbranch400746baebrestapistackadminapiRestApi93F88D79ANYadmin68E49803": { - "Type": "AWS::Lambda::Permission", - "Properties": { - "Action": "lambda:InvokeFunction", - "FunctionName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthadmingen2mainlambda19698385Arn" - }, - "Principal": "apigateway.amazonaws.com", - "SourceArn": { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":", - { - "Ref": "RestApi0C43BF4B" - }, - "/test-invoke-stage/*/admin" - ] - ] - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-adminapi/RestApi/Default/admin/ANY/ApiPermission.Test.amplifyfitnesstrackergen2mainbranch400746baebrestapistackadminapiRestApi93F88D79.ANY..admin" - } - }, - "RestApiadminANY959B010C": { - "Type": "AWS::ApiGateway::Method", - "Properties": { - "AuthorizationType": "AWS_IAM", - "HttpMethod": "ANY", - "Integration": { - "IntegrationHttpMethod": "POST", - "Type": "AWS_PROXY", - "Uri": { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":apigateway:", - { - "Ref": "AWS::Region" - }, - ":lambda:path/2015-03-31/functions/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthadmingen2mainlambda19698385Arn" - }, - "/invocations" - ] - ] - } - }, - "ResourceId": { - "Ref": "RestApiadmin6E2AFAD8" - }, - "RestApiId": { - "Ref": "RestApi0C43BF4B" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-adminapi/RestApi/Default/admin/ANY/Resource" - } - }, - "RestApiadminproxy34EEEF46": { - "Type": "AWS::ApiGateway::Resource", - "Properties": { - "ParentId": { - "Ref": "RestApiadmin6E2AFAD8" - }, - "PathPart": "{proxy+}", - "RestApiId": { - "Ref": "RestApi0C43BF4B" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-adminapi/RestApi/Default/admin/{proxy+}/Resource" - } - }, - "RestApiadminproxyOPTIONS0428B0AB": { - "Type": "AWS::ApiGateway::Method", - "Properties": { - "ApiKeyRequired": false, - "AuthorizationType": "NONE", - "HttpMethod": "OPTIONS", - "Integration": { - "IntegrationResponses": [ - { - "ResponseParameters": { - "method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token,X-Amz-User-Agent'", - "method.response.header.Access-Control-Allow-Origin": "'*'", - "method.response.header.Access-Control-Allow-Methods": "'OPTIONS,GET,PUT,POST,DELETE,PATCH,HEAD'" - }, - "StatusCode": "200" - } - ], - "RequestTemplates": { - "application/json": "{ statusCode: 200 }" - }, - "Type": "MOCK" - }, - "MethodResponses": [ - { - "ResponseParameters": { - "method.response.header.Access-Control-Allow-Headers": true, - "method.response.header.Access-Control-Allow-Origin": true, - "method.response.header.Access-Control-Allow-Methods": true - }, - "StatusCode": "200" - } - ], - "ResourceId": { - "Ref": "RestApiadminproxy34EEEF46" - }, - "RestApiId": { - "Ref": "RestApi0C43BF4B" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-adminapi/RestApi/Default/admin/{proxy+}/OPTIONS/Resource" - } - }, - "RestApiadminproxyANYApiPermissionamplifyfitnesstrackergen2mainbranch400746baebrestapistackadminapiRestApi93F88D79ANYadminproxyE1CD8302": { - "Type": "AWS::Lambda::Permission", - "Properties": { - "Action": "lambda:InvokeFunction", - "FunctionName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthadmingen2mainlambda19698385Arn" - }, - "Principal": "apigateway.amazonaws.com", - "SourceArn": { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":", - { - "Ref": "RestApi0C43BF4B" - }, - "/", - { - "Ref": "RestApiDeploymentStageprod3855DE66" - }, - "/*/admin/*" - ] - ] - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-adminapi/RestApi/Default/admin/{proxy+}/ANY/ApiPermission.amplifyfitnesstrackergen2mainbranch400746baebrestapistackadminapiRestApi93F88D79.ANY..admin.{proxy+}" - } - }, - "RestApiadminproxyANYApiPermissionTestamplifyfitnesstrackergen2mainbranch400746baebrestapistackadminapiRestApi93F88D79ANYadminproxyE5AA6688": { - "Type": "AWS::Lambda::Permission", - "Properties": { - "Action": "lambda:InvokeFunction", - "FunctionName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthadmingen2mainlambda19698385Arn" - }, - "Principal": "apigateway.amazonaws.com", - "SourceArn": { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":", - { - "Ref": "RestApi0C43BF4B" - }, - "/test-invoke-stage/*/admin/*" - ] - ] - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-adminapi/RestApi/Default/admin/{proxy+}/ANY/ApiPermission.Test.amplifyfitnesstrackergen2mainbranch400746baebrestapistackadminapiRestApi93F88D79.ANY..admin.{proxy+}" - } - }, - "RestApiadminproxyANYAD871D2E": { - "Type": "AWS::ApiGateway::Method", - "Properties": { - "AuthorizationType": "AWS_IAM", - "HttpMethod": "ANY", - "Integration": { - "IntegrationHttpMethod": "POST", - "Type": "AWS_PROXY", - "Uri": { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":apigateway:", - { - "Ref": "AWS::Region" - }, - ":lambda:path/2015-03-31/functions/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthadmingen2mainlambda19698385Arn" - }, - "/invocations" - ] - ] - } - }, - "ResourceId": { - "Ref": "RestApiadminproxy34EEEF46" - }, - "RestApiId": { - "Ref": "RestApi0C43BF4B" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-adminapi/RestApi/Default/admin/{proxy+}/ANY/Resource" - } - }, - "RestApiDefault4XX291F46B7": { - "Type": "AWS::ApiGateway::GatewayResponse", - "Properties": { - "ResponseParameters": { - "gatewayresponse.header.Access-Control-Allow-Origin": "'*'", - "gatewayresponse.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token'", - "gatewayresponse.header.Access-Control-Allow-Methods": "'DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT'", - "gatewayresponse.header.Access-Control-Expose-Headers": "'Date,X-Amzn-ErrorType'" - }, - "ResponseType": "DEFAULT_4XX", - "RestApiId": { - "Ref": "RestApi0C43BF4B" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-adminapi/RestApi/Default4XX/Resource" - } - }, - "RestApiDefault5XXD8CFC37C": { - "Type": "AWS::ApiGateway::GatewayResponse", - "Properties": { - "ResponseParameters": { - "gatewayresponse.header.Access-Control-Allow-Origin": "'*'", - "gatewayresponse.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token'", - "gatewayresponse.header.Access-Control-Allow-Methods": "'DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT'", - "gatewayresponse.header.Access-Control-Expose-Headers": "'Date,X-Amzn-ErrorType'" - }, - "ResponseType": "DEFAULT_5XX", - "RestApiId": { - "Ref": "RestApi0C43BF4B" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-adminapi/RestApi/Default5XX/Resource" - } - }, - "Gen1adminapiPolicy55C22DB4": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "execute-api:Invoke", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":oxq86r59h6/*/GET/*" - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "Gen1adminapiPolicy55C22DB4", - "Roles": [ - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-adminapi/Gen1adminapiPolicy/Resource" - } - }, - "adminAdminPolicyED58DCB3": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "execute-api:Invoke", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":", - { - "Ref": "RestApi0C43BF4B" - }, - "/*/GET/admin" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":", - { - "Ref": "RestApi0C43BF4B" - }, - "/*/GET/admin/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "adminAdminPolicyED58DCB3", - "Roles": [ - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthAdminGroupRoleC37E0196Ref" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-adminapi/adminAdminPolicy/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/12Oz07DMAyHn2X3NIxqh10HSJyAKXsA5CVmeMs/1S5dVfXdUUgFEyd/vy927Fa3m41er2DgxrpL4+mop1dkQXcQsBcFA79PkOkEggOMejLIssukHj/iDe6sTX0U9YTZpzFglGJv0kHghMVVMMip7yw+AP+F5c/KLyifyRW10L5L1/H3+bneY5Bzivwz+l8t55UVsyIIejLJ1yWl7pMnO5ZYaVYewtGBLga7QMyU4lwa3nrJvcwqJof6zHdfbavvt3q9OjNR0/VRKKA2tX4D1w/yhFMBAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-adminapi/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Outputs": { - "RestApiEndpoint0551178A": { - "Value": { - "Fn::Join": [ - "", - [ - "https://", - { - "Ref": "RestApi0C43BF4B" - }, - ".execute-api.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Ref": "RestApiDeploymentStageprod3855DE66" - }, - "/" - ] - ] - } - }, - "amplifyfitnesstrackergen2mainbranch400746baebrestapistackadminapiRestApi15E05C08Ref": { - "Value": { - "Ref": "RestApi0C43BF4B" - } - }, - "amplifyfitnesstrackergen2mainbranch400746baebrestapistackadminapiRestApiDeploymentStageprodB49BA490Ref": { - "Value": { - "Ref": "RestApiDeploymentStageprod3855DE66" - } - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthadmingen2mainlambda19698385Arn": { - "Type": "String" - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref": { - "Type": "String" - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthAdminGroupRoleC37E0196Ref": { - "Type": "String" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistacknutritionapi72914ECD-13FDREQON6AQG.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistacknutritionapi72914ECD-13FDREQON6AQG.description.txt deleted file mode 100644 index 1e3215c63d9..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistacknutritionapi72914ECD-13FDREQON6AQG.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.21.1","stackType":"custom","metadata":{}} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistacknutritionapi72914ECD-13FDREQON6AQG.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistacknutritionapi72914ECD-13FDREQON6AQG.outputs.json deleted file mode 100644 index a721256f026..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistacknutritionapi72914ECD-13FDREQON6AQG.outputs.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "OutputKey": "amplifyfitnesstrackergen2mainbranch400746baebrestapistacknutritionapiRestApiEC7FBBC7Ref", - "OutputValue": "klqsuoycl8" - }, - { - "OutputKey": "RestApiEndpoint0551178A", - "OutputValue": "https://klqsuoycl8.execute-api.us-east-1.amazonaws.com/prod/" - }, - { - "OutputKey": "amplifyfitnesstrackergen2mainbranch400746baebrestapistacknutritionapiRestApiDeploymentStageprod41F1D9FFRef", - "OutputValue": "prod" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistacknutritionapi72914ECD-13FDREQON6AQG.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistacknutritionapi72914ECD-13FDREQON6AQG.parameters.json deleted file mode 100644 index b14479fe049..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistacknutritionapi72914ECD-13FDREQON6AQG.parameters.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthAdminGroupRoleC37E0196Ref", - "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthAdminGroupRole-jIdkeXSZarK4" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataNestedStackdataNestedStackResource2B549F52Outputsamplifyfitnesstrackergen2mainbranch400746baebdatalognutritiongen2mainlambda08A76FE8Arn", - "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:lognutrition-gen2-main" - }, - { - "ParameterKey": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref", - "ParameterValue": "amplify-fitnesstracker-ge-amplifyAuthauthenticatedU-fF1WwIKcoHtV" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistacknutritionapi72914ECD-13FDREQON6AQG.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistacknutritionapi72914ECD-13FDREQON6AQG.template.json deleted file mode 100644 index c0e5129c687..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb-restapistacknutritionapi72914ECD-13FDREQON6AQG.template.json +++ /dev/null @@ -1,1435 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.21.1\",\"stackType\":\"custom\",\"metadata\":{}}", - "Resources": { - "RestApi0C43BF4B": { - "Type": "AWS::ApiGateway::RestApi", - "Properties": { - "Name": "nutritionapi-gen2-main", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-nutritionapi/RestApi/Resource" - } - }, - "RestApiCloudWatchRoleE3ED6605": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "apigateway.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AmazonAPIGatewayPushToCloudWatchLogs" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain", - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-nutritionapi/RestApi/CloudWatchRole/Resource" - } - }, - "RestApiAccount7C83CF5A": { - "Type": "AWS::ApiGateway::Account", - "Properties": { - "CloudWatchRoleArn": { - "Fn::GetAtt": [ - "RestApiCloudWatchRoleE3ED6605", - "Arn" - ] - } - }, - "DependsOn": [ - "RestApi0C43BF4B" - ], - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain", - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-nutritionapi/RestApi/Account" - } - }, - "RestApiDeployment180EC50372b8910fb447646fe0ec851ddd88eb80": { - "Type": "AWS::ApiGateway::Deployment", - "Properties": { - "Description": "Automatically created by the RestApi construct", - "RestApiId": { - "Ref": "RestApi0C43BF4B" - } - }, - "DependsOn": [ - "RestApinutritionlogproxyANY89358520", - "RestApinutritionlogproxyOPTIONS695D781E", - "RestApinutritionlogproxyA0E81954", - "RestApinutritionlogANY08C15E55", - "RestApinutritionlogOPTIONS0916370A", - "RestApinutritionlog525763DE", - "RestApinutrition3942DEFC", - "RestApiDefault4XX291F46B7", - "RestApiDefault5XXD8CFC37C" - ], - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-nutritionapi/RestApi/Deployment/Resource", - "aws:cdk:do-not-refactor": true - } - }, - "RestApiDeploymentStageprod3855DE66": { - "Type": "AWS::ApiGateway::Stage", - "Properties": { - "DeploymentId": { - "Ref": "RestApiDeployment180EC50372b8910fb447646fe0ec851ddd88eb80" - }, - "RestApiId": { - "Ref": "RestApi0C43BF4B" - }, - "StageName": "prod", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "DependsOn": [ - "RestApiAccount7C83CF5A" - ], - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-nutritionapi/RestApi/DeploymentStage.prod/Resource" - } - }, - "RestApinutrition3942DEFC": { - "Type": "AWS::ApiGateway::Resource", - "Properties": { - "ParentId": { - "Fn::GetAtt": [ - "RestApi0C43BF4B", - "RootResourceId" - ] - }, - "PathPart": "nutrition", - "RestApiId": { - "Ref": "RestApi0C43BF4B" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-nutritionapi/RestApi/Default/nutrition/Resource" - } - }, - "RestApinutritionlog525763DE": { - "Type": "AWS::ApiGateway::Resource", - "Properties": { - "ParentId": { - "Ref": "RestApinutrition3942DEFC" - }, - "PathPart": "log", - "RestApiId": { - "Ref": "RestApi0C43BF4B" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/Resource" - } - }, - "RestApinutritionlogOPTIONS0916370A": { - "Type": "AWS::ApiGateway::Method", - "Properties": { - "ApiKeyRequired": false, - "AuthorizationType": "NONE", - "HttpMethod": "OPTIONS", - "Integration": { - "IntegrationResponses": [ - { - "ResponseParameters": { - "method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token,X-Amz-User-Agent'", - "method.response.header.Access-Control-Allow-Origin": "'*'", - "method.response.header.Access-Control-Allow-Methods": "'OPTIONS,GET,PUT,POST,DELETE,PATCH,HEAD'" - }, - "StatusCode": "200" - } - ], - "RequestTemplates": { - "application/json": "{ statusCode: 200 }" - }, - "Type": "MOCK" - }, - "MethodResponses": [ - { - "ResponseParameters": { - "method.response.header.Access-Control-Allow-Headers": true, - "method.response.header.Access-Control-Allow-Origin": true, - "method.response.header.Access-Control-Allow-Methods": true - }, - "StatusCode": "200" - } - ], - "ResourceId": { - "Ref": "RestApinutritionlog525763DE" - }, - "RestApiId": { - "Ref": "RestApi0C43BF4B" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/OPTIONS/Resource" - } - }, - "RestApinutritionlogANYApiPermissionamplifyfitnesstrackergen2mainbranch400746baebrestapistacknutritionapiRestApi56F22D17ANYnutritionlog0E7B0360": { - "Type": "AWS::Lambda::Permission", - "Properties": { - "Action": "lambda:InvokeFunction", - "FunctionName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataNestedStackdataNestedStackResource2B549F52Outputsamplifyfitnesstrackergen2mainbranch400746baebdatalognutritiongen2mainlambda08A76FE8Arn" - }, - "Principal": "apigateway.amazonaws.com", - "SourceArn": { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":", - { - "Ref": "RestApi0C43BF4B" - }, - "/", - { - "Ref": "RestApiDeploymentStageprod3855DE66" - }, - "/*/nutrition/log" - ] - ] - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/ANY/ApiPermission.amplifyfitnesstrackergen2mainbranch400746baebrestapistacknutritionapiRestApi56F22D17.ANY..nutrition.log" - } - }, - "RestApinutritionlogANYApiPermissionTestamplifyfitnesstrackergen2mainbranch400746baebrestapistacknutritionapiRestApi56F22D17ANYnutritionlogC943788E": { - "Type": "AWS::Lambda::Permission", - "Properties": { - "Action": "lambda:InvokeFunction", - "FunctionName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataNestedStackdataNestedStackResource2B549F52Outputsamplifyfitnesstrackergen2mainbranch400746baebdatalognutritiongen2mainlambda08A76FE8Arn" - }, - "Principal": "apigateway.amazonaws.com", - "SourceArn": { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":", - { - "Ref": "RestApi0C43BF4B" - }, - "/test-invoke-stage/*/nutrition/log" - ] - ] - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/ANY/ApiPermission.Test.amplifyfitnesstrackergen2mainbranch400746baebrestapistacknutritionapiRestApi56F22D17.ANY..nutrition.log" - } - }, - "RestApinutritionlogANY08C15E55": { - "Type": "AWS::ApiGateway::Method", - "Properties": { - "AuthorizationType": "AWS_IAM", - "HttpMethod": "ANY", - "Integration": { - "IntegrationHttpMethod": "POST", - "Type": "AWS_PROXY", - "Uri": { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":apigateway:", - { - "Ref": "AWS::Region" - }, - ":lambda:path/2015-03-31/functions/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataNestedStackdataNestedStackResource2B549F52Outputsamplifyfitnesstrackergen2mainbranch400746baebdatalognutritiongen2mainlambda08A76FE8Arn" - }, - "/invocations" - ] - ] - } - }, - "ResourceId": { - "Ref": "RestApinutritionlog525763DE" - }, - "RestApiId": { - "Ref": "RestApi0C43BF4B" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/ANY/Resource" - } - }, - "RestApinutritionlogproxyA0E81954": { - "Type": "AWS::ApiGateway::Resource", - "Properties": { - "ParentId": { - "Ref": "RestApinutritionlog525763DE" - }, - "PathPart": "{proxy+}", - "RestApiId": { - "Ref": "RestApi0C43BF4B" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/{proxy+}/Resource" - } - }, - "RestApinutritionlogproxyOPTIONS695D781E": { - "Type": "AWS::ApiGateway::Method", - "Properties": { - "ApiKeyRequired": false, - "AuthorizationType": "NONE", - "HttpMethod": "OPTIONS", - "Integration": { - "IntegrationResponses": [ - { - "ResponseParameters": { - "method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token,X-Amz-User-Agent'", - "method.response.header.Access-Control-Allow-Origin": "'*'", - "method.response.header.Access-Control-Allow-Methods": "'OPTIONS,GET,PUT,POST,DELETE,PATCH,HEAD'" - }, - "StatusCode": "200" - } - ], - "RequestTemplates": { - "application/json": "{ statusCode: 200 }" - }, - "Type": "MOCK" - }, - "MethodResponses": [ - { - "ResponseParameters": { - "method.response.header.Access-Control-Allow-Headers": true, - "method.response.header.Access-Control-Allow-Origin": true, - "method.response.header.Access-Control-Allow-Methods": true - }, - "StatusCode": "200" - } - ], - "ResourceId": { - "Ref": "RestApinutritionlogproxyA0E81954" - }, - "RestApiId": { - "Ref": "RestApi0C43BF4B" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/{proxy+}/OPTIONS/Resource" - } - }, - "RestApinutritionlogproxyANYApiPermissionamplifyfitnesstrackergen2mainbranch400746baebrestapistacknutritionapiRestApi56F22D17ANYnutritionlogproxy30B465F0": { - "Type": "AWS::Lambda::Permission", - "Properties": { - "Action": "lambda:InvokeFunction", - "FunctionName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataNestedStackdataNestedStackResource2B549F52Outputsamplifyfitnesstrackergen2mainbranch400746baebdatalognutritiongen2mainlambda08A76FE8Arn" - }, - "Principal": "apigateway.amazonaws.com", - "SourceArn": { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":", - { - "Ref": "RestApi0C43BF4B" - }, - "/", - { - "Ref": "RestApiDeploymentStageprod3855DE66" - }, - "/*/nutrition/log/*" - ] - ] - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/{proxy+}/ANY/ApiPermission.amplifyfitnesstrackergen2mainbranch400746baebrestapistacknutritionapiRestApi56F22D17.ANY..nutrition.log.{proxy+}" - } - }, - "RestApinutritionlogproxyANYApiPermissionTestamplifyfitnesstrackergen2mainbranch400746baebrestapistacknutritionapiRestApi56F22D17ANYnutritionlogproxy7276060A": { - "Type": "AWS::Lambda::Permission", - "Properties": { - "Action": "lambda:InvokeFunction", - "FunctionName": { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataNestedStackdataNestedStackResource2B549F52Outputsamplifyfitnesstrackergen2mainbranch400746baebdatalognutritiongen2mainlambda08A76FE8Arn" - }, - "Principal": "apigateway.amazonaws.com", - "SourceArn": { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":", - { - "Ref": "RestApi0C43BF4B" - }, - "/test-invoke-stage/*/nutrition/log/*" - ] - ] - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/{proxy+}/ANY/ApiPermission.Test.amplifyfitnesstrackergen2mainbranch400746baebrestapistacknutritionapiRestApi56F22D17.ANY..nutrition.log.{proxy+}" - } - }, - "RestApinutritionlogproxyANY89358520": { - "Type": "AWS::ApiGateway::Method", - "Properties": { - "AuthorizationType": "AWS_IAM", - "HttpMethod": "ANY", - "Integration": { - "IntegrationHttpMethod": "POST", - "Type": "AWS_PROXY", - "Uri": { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":apigateway:", - { - "Ref": "AWS::Region" - }, - ":lambda:path/2015-03-31/functions/", - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataNestedStackdataNestedStackResource2B549F52Outputsamplifyfitnesstrackergen2mainbranch400746baebdatalognutritiongen2mainlambda08A76FE8Arn" - }, - "/invocations" - ] - ] - } - }, - "ResourceId": { - "Ref": "RestApinutritionlogproxyA0E81954" - }, - "RestApiId": { - "Ref": "RestApi0C43BF4B" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-nutritionapi/RestApi/Default/nutrition/log/{proxy+}/ANY/Resource" - } - }, - "RestApiDefault4XX291F46B7": { - "Type": "AWS::ApiGateway::GatewayResponse", - "Properties": { - "ResponseParameters": { - "gatewayresponse.header.Access-Control-Allow-Origin": "'*'", - "gatewayresponse.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token'", - "gatewayresponse.header.Access-Control-Allow-Methods": "'DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT'", - "gatewayresponse.header.Access-Control-Expose-Headers": "'Date,X-Amzn-ErrorType'" - }, - "ResponseType": "DEFAULT_4XX", - "RestApiId": { - "Ref": "RestApi0C43BF4B" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-nutritionapi/RestApi/Default4XX/Resource" - } - }, - "RestApiDefault5XXD8CFC37C": { - "Type": "AWS::ApiGateway::GatewayResponse", - "Properties": { - "ResponseParameters": { - "gatewayresponse.header.Access-Control-Allow-Origin": "'*'", - "gatewayresponse.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token'", - "gatewayresponse.header.Access-Control-Allow-Methods": "'DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT'", - "gatewayresponse.header.Access-Control-Expose-Headers": "'Date,X-Amzn-ErrorType'" - }, - "ResponseType": "DEFAULT_5XX", - "RestApiId": { - "Ref": "RestApi0C43BF4B" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-nutritionapi/RestApi/Default5XX/Resource" - } - }, - "Gen1nutritionapiPolicyAC846721": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "execute-api:Invoke", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":hmydcaubcb/*/POST/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":hmydcaubcb/*/GET/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":hmydcaubcb/*/PUT/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":hmydcaubcb/*/DELETE/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "Gen1nutritionapiPolicyAC846721", - "Roles": [ - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-nutritionapi/Gen1nutritionapiPolicy/Resource" - } - }, - "nutritionlogAuthPolicyF60C3901": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "execute-api:Invoke", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":", - { - "Ref": "RestApi0C43BF4B" - }, - "/*/POST/nutrition/log" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":", - { - "Ref": "RestApi0C43BF4B" - }, - "/*/POST/nutrition/log/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":", - { - "Ref": "RestApi0C43BF4B" - }, - "/*/GET/nutrition/log" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":", - { - "Ref": "RestApi0C43BF4B" - }, - "/*/GET/nutrition/log/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":", - { - "Ref": "RestApi0C43BF4B" - }, - "/*/PUT/nutrition/log" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":", - { - "Ref": "RestApi0C43BF4B" - }, - "/*/PUT/nutrition/log/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":", - { - "Ref": "RestApi0C43BF4B" - }, - "/*/DELETE/nutrition/log" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":", - { - "Ref": "RestApi0C43BF4B" - }, - "/*/DELETE/nutrition/log/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "nutritionlogAuthPolicyF60C3901", - "Roles": [ - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-nutritionapi/nutritionlogAuthPolicy/Resource" - } - }, - "nutritionlogAdminPolicy5FCB013F": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "execute-api:Invoke", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":", - { - "Ref": "RestApi0C43BF4B" - }, - "/*/POST/nutrition/log" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":", - { - "Ref": "RestApi0C43BF4B" - }, - "/*/POST/nutrition/log/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":", - { - "Ref": "RestApi0C43BF4B" - }, - "/*/GET/nutrition/log" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":", - { - "Ref": "RestApi0C43BF4B" - }, - "/*/GET/nutrition/log/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":", - { - "Ref": "RestApi0C43BF4B" - }, - "/*/PUT/nutrition/log" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":", - { - "Ref": "RestApi0C43BF4B" - }, - "/*/PUT/nutrition/log/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":", - { - "Ref": "RestApi0C43BF4B" - }, - "/*/DELETE/nutrition/log" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":", - { - "Ref": "RestApi0C43BF4B" - }, - "/*/DELETE/nutrition/log/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "nutritionlogAdminPolicy5FCB013F", - "Roles": [ - { - "Ref": "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthAdminGroupRoleC37E0196Ref" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-nutritionapi/nutritionlogAdminPolicy/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/12Oz07DMAyHn2X3NIxqh10HSJyAKXsA5CVmeMs/1S5dVfXdUUgFEyd/vy927Fa3m41er2DgxrpL4+mop1dkQXcQsBcFA79PkOkEggOMejLIssukHj/iDe6sTX0U9YTZpzFglGJv0kHghMVVMMip7yw+AP+F5c/KLyifyRW10L5L1/H3+bneY5Bzivwz+l8t55UVsyIIejLJ1yWl7pMnO5ZYaVYewtGBLga7QMyU4lwa3nrJvcwqJof6zHdfbavvt3q9OjNR0/VRKKA2tX4D1w/yhFMBAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-nutritionapi/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Outputs": { - "RestApiEndpoint0551178A": { - "Value": { - "Fn::Join": [ - "", - [ - "https://", - { - "Ref": "RestApi0C43BF4B" - }, - ".execute-api.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Ref": "RestApiDeploymentStageprod3855DE66" - }, - "/" - ] - ] - } - }, - "amplifyfitnesstrackergen2mainbranch400746baebrestapistacknutritionapiRestApiEC7FBBC7Ref": { - "Value": { - "Ref": "RestApi0C43BF4B" - } - }, - "amplifyfitnesstrackergen2mainbranch400746baebrestapistacknutritionapiRestApiDeploymentStageprod41F1D9FFRef": { - "Value": { - "Ref": "RestApiDeploymentStageprod3855DE66" - } - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataNestedStackdataNestedStackResource2B549F52Outputsamplifyfitnesstrackergen2mainbranch400746baebdatalognutritiongen2mainlambda08A76FE8Arn": { - "Type": "String" - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref": { - "Type": "String" - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthAdminGroupRoleC37E0196Ref": { - "Type": "String" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb.description.txt deleted file mode 100644 index afc6ec23957..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.21.1","stackType":"root","metadata":{}} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb.outputs.json deleted file mode 100644 index c7c6c970cb5..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb.outputs.json +++ /dev/null @@ -1,130 +0,0 @@ -[ - { - "OutputKey": "webClientId", - "OutputValue": "1o40oi80febsgsdamen2i1gnfd" - }, - { - "OutputKey": "socialProviders", - "OutputValue": "" - }, - { - "OutputKey": "usernameAttributes", - "OutputValue": "[]" - }, - { - "OutputKey": "signupAttributes", - "OutputValue": "[\"email\"]" - }, - { - "OutputKey": "oauthClientId", - "OutputValue": "1o40oi80febsgsdamen2i1gnfd" - }, - { - "OutputKey": "allowUnauthenticatedIdentities", - "OutputValue": "false" - }, - { - "OutputKey": "oauthCognitoDomain", - "OutputValue": "" - }, - { - "OutputKey": "oauthScope", - "OutputValue": "[\"profile\",\"phone\",\"email\",\"openid\",\"aws.cognito.signin.user.admin\"]" - }, - { - "OutputKey": "oauthRedirectSignOut", - "OutputValue": "" - }, - { - "OutputKey": "awsAppsyncAdditionalAuthenticationTypes", - "OutputValue": "API_KEY,AWS_IAM" - }, - { - "OutputKey": "mfaTypes", - "OutputValue": "[]" - }, - { - "OutputKey": "mfaConfiguration", - "OutputValue": "OFF" - }, - { - "OutputKey": "oauthResponseType", - "OutputValue": "code" - }, - { - "OutputKey": "awsAppsyncApiKey", - "OutputValue": "da2-fakeapikey00000000000000" - }, - { - "OutputKey": "awsAppsyncAuthenticationType", - "OutputValue": "AMAZON_COGNITO_USER_POOLS" - }, - { - "OutputKey": "customOutputs", - "OutputValue": "{\"custom\":{\"API\":{\"adminapi-gen2-main\":{\"endpoint\":\"https://3tygfqh1kh.execute-api.us-east-1.amazonaws.com/prod\",\"region\":\"us-east-1\",\"apiName\":\"adminapi-gen2-main\"},\"nutritionapi-gen2-main\":{\"endpoint\":\"https://klqsuoycl8.execute-api.us-east-1.amazonaws.com/prod\",\"region\":\"us-east-1\",\"apiName\":\"nutritionapi-gen2-main\"}}},\"version\":\"1.4\"}" - }, - { - "OutputKey": "oauthRedirectSignIn", - "OutputValue": "https://example.com" - }, - { - "OutputKey": "passwordPolicyMinLength", - "OutputValue": "8" - }, - { - "OutputKey": "awsAppsyncApiEndpoint", - "OutputValue": "https://lpsucva2qjdofmkpzenwokjsue.appsync-api.us-east-1.amazonaws.com/graphql" - }, - { - "OutputKey": "awsAppsyncApiId", - "OutputValue": "jrmmxaml4ndpxmx4pmyk3bgv7u" - }, - { - "OutputKey": "authRegion", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "amplifyApiModelSchemaS3Uri", - "OutputValue": "s3://amplify-fitnesstracker-ge-amplifydataamplifycodege-qcmnmg6hhy5m/model-schema.graphql" - }, - { - "OutputKey": "groups", - "OutputValue": "[{\"Admin\":{\"precedence\":0}}]" - }, - { - "OutputKey": "definedFunctions", - "OutputValue": "[\"fitnesstracker33f5545533f55455PreSignup-gen2-main\",\"admin-gen2-main\",\"lognutrition-gen2-main\"]" - }, - { - "OutputKey": "passwordlessOptions", - "OutputValue": "" - }, - { - "OutputKey": "awsAppsyncRegion", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "deploymentType", - "OutputValue": "branch" - }, - { - "OutputKey": "passwordPolicyRequirements", - "OutputValue": "[]" - }, - { - "OutputKey": "region", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "userPoolId", - "OutputValue": "us-east-1_KGveHFLxc" - }, - { - "OutputKey": "identityPoolId", - "OutputValue": "us-east-1:b0685620-d814-422e-830f-b0f30f6900f3" - }, - { - "OutputKey": "verificationMechanisms", - "OutputValue": "[\"email\"]" - } -] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb.parameters.json deleted file mode 100644 index 74596fb6f32..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb.parameters.json +++ /dev/null @@ -1,7 +0,0 @@ -[ - { - "ParameterKey": "BootstrapVersion", - "ParameterValue": "/cdk-bootstrap/hnb659fds/version", - "ResolvedValue": "30" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb.template.json deleted file mode 100644 index 052eaffe513..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-gen2main-branch-400746baeb.template.json +++ /dev/null @@ -1,1215 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.21.1\",\"stackType\":\"root\",\"metadata\":{}}", - "Metadata": { - "AWS::Amplify::Platform": { - "version": "1", - "stackOutputs": [ - "deploymentType", - "region" - ] - }, - "AWS::Amplify::Auth": { - "version": "1", - "stackOutputs": [ - "userPoolId", - "webClientId", - "identityPoolId", - "authRegion", - "allowUnauthenticatedIdentities", - "signupAttributes", - "usernameAttributes", - "verificationMechanisms", - "passwordPolicyMinLength", - "passwordPolicyRequirements", - "mfaConfiguration", - "mfaTypes", - "passwordlessOptions", - "socialProviders", - "oauthCognitoDomain", - "oauthScope", - "oauthRedirectSignIn", - "oauthRedirectSignOut", - "oauthResponseType", - "oauthClientId", - "groups" - ] - }, - "AWS::Amplify::Function": { - "version": "1", - "stackOutputs": [ - "definedFunctions" - ] - }, - "AWS::Amplify::GraphQL": { - "version": "1", - "stackOutputs": [ - "awsAppsyncApiId", - "awsAppsyncApiEndpoint", - "awsAppsyncAuthenticationType", - "awsAppsyncRegion", - "amplifyApiModelSchemaS3Uri", - "awsAppsyncApiKey", - "awsAppsyncAdditionalAuthenticationTypes" - ] - }, - "AWS::Amplify::Custom": { - "version": "1", - "stackOutputs": [ - "customOutputs" - ] - } - }, - "Outputs": { - "deploymentType": { - "Value": "branch" - }, - "region": { - "Value": { - "Ref": "AWS::Region" - } - }, - "userPoolId": { - "Value": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthUserPoolBF05A444Ref" - ] - } - }, - "webClientId": { - "Value": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthUserPoolAppClient1903AFDARef" - ] - } - }, - "identityPoolId": { - "Value": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" - ] - } - }, - "authRegion": { - "Value": { - "Ref": "AWS::Region" - } - }, - "allowUnauthenticatedIdentities": { - "Value": "false" - }, - "signupAttributes": { - "Value": "[\"email\"]" - }, - "usernameAttributes": { - "Value": "[]" - }, - "verificationMechanisms": { - "Value": "[\"email\"]" - }, - "passwordPolicyMinLength": { - "Value": "8" - }, - "passwordPolicyRequirements": { - "Value": "[]" - }, - "mfaConfiguration": { - "Value": "OFF" - }, - "mfaTypes": { - "Value": "[]" - }, - "passwordlessOptions": { - "Value": "" - }, - "socialProviders": { - "Value": "" - }, - "oauthCognitoDomain": { - "Value": "" - }, - "oauthScope": { - "Value": "[\"profile\",\"phone\",\"email\",\"openid\",\"aws.cognito.signin.user.admin\"]" - }, - "oauthRedirectSignIn": { - "Value": "https://example.com" - }, - "oauthRedirectSignOut": { - "Value": "" - }, - "oauthResponseType": { - "Value": "code" - }, - "oauthClientId": { - "Value": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthUserPoolAppClient1903AFDARef" - ] - } - }, - "groups": { - "Value": "[{\"Admin\":{\"precedence\":0}}]" - }, - "definedFunctions": { - "Value": { - "Fn::Join": [ - "", - [ - "[\"", - { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifyfitnesstrackergen2mainbranch400746baebauthfitnesstracker33f5545533f55455PreSignupgen2mainlambda2B17C7BARef" - ] - }, - "\",\"", - { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifyfitnesstrackergen2mainbranch400746baebauthadmingen2mainlambda19698385Ref" - ] - }, - "\",\"", - { - "Fn::GetAtt": [ - "data7552DF31", - "Outputs.amplifyfitnesstrackergen2mainbranch400746baebdatalognutritiongen2mainlambda08A76FE8Ref" - ] - }, - "\"]" - ] - ] - } - }, - "awsAppsyncApiId": { - "Value": { - "Fn::GetAtt": [ - "data7552DF31", - "Outputs.amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BApiId" - ] - } - }, - "awsAppsyncApiEndpoint": { - "Value": { - "Fn::GetAtt": [ - "data7552DF31", - "Outputs.amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIEBB08D7BGraphQLUrl" - ] - } - }, - "awsAppsyncAuthenticationType": { - "Value": "AMAZON_COGNITO_USER_POOLS" - }, - "awsAppsyncRegion": { - "Value": { - "Ref": "AWS::Region" - } - }, - "amplifyApiModelSchemaS3Uri": { - "Value": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Fn::Select": [ - 0, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "data7552DF31", - "Outputs.amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB0917740FDestinationBucketArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "/model-schema.graphql" - ] - ] - } - }, - "awsAppsyncApiKey": { - "Value": { - "Fn::GetAtt": [ - "data7552DF31", - "Outputs.amplifyfitnesstrackergen2mainbranch400746baebdataamplifyDataGraphQLAPIDefaultApiKey7DAA10FCApiKey" - ] - } - }, - "awsAppsyncAdditionalAuthenticationTypes": { - "Value": "API_KEY,AWS_IAM" - }, - "customOutputs": { - "Value": { - "Fn::Join": [ - "", - [ - "{\"custom\":{\"API\":{\"adminapi-gen2-main\":{\"endpoint\":\"https://", - { - "Fn::GetAtt": [ - "restapistackadminapi43EA27F6", - "Outputs.amplifyfitnesstrackergen2mainbranch400746baebrestapistackadminapiRestApi15E05C08Ref" - ] - }, - ".execute-api.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::GetAtt": [ - "restapistackadminapi43EA27F6", - "Outputs.amplifyfitnesstrackergen2mainbranch400746baebrestapistackadminapiRestApiDeploymentStageprodB49BA490Ref" - ] - }, - "\",\"region\":\"", - { - "Ref": "AWS::Region" - }, - "\",\"apiName\":\"adminapi-gen2-main\"},\"nutritionapi-gen2-main\":{\"endpoint\":\"https://", - { - "Fn::GetAtt": [ - "restapistacknutritionapi72914ECD", - "Outputs.amplifyfitnesstrackergen2mainbranch400746baebrestapistacknutritionapiRestApiEC7FBBC7Ref" - ] - }, - ".execute-api.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::GetAtt": [ - "restapistacknutritionapi72914ECD", - "Outputs.amplifyfitnesstrackergen2mainbranch400746baebrestapistacknutritionapiRestApiDeploymentStageprod41F1D9FFRef" - ] - }, - "\",\"region\":\"", - { - "Ref": "AWS::Region" - }, - "\",\"apiName\":\"nutritionapi-gen2-main\"}}},\"version\":\"1.4\"}" - ] - ] - } - } - }, - "Resources": { - "AmplifyBranchLinkerCustomResourceLambdaServiceRole3DDCBC03": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/AmplifyBranchLinker/CustomResourceLambda/ServiceRole/Resource" - } - }, - "AmplifyBranchLinkerCustomResourceLambdaServiceRoleDefaultPolicy86099CA1": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "amplify:GetBranch", - "amplify:UpdateBranch" - ], - "Effect": "Allow", - "Resource": "arn:aws:amplify:*:*:apps/fitnesstracker/branches/gen2-main" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "AmplifyBranchLinkerCustomResourceLambdaServiceRoleDefaultPolicy86099CA1", - "Roles": [ - { - "Ref": "AmplifyBranchLinkerCustomResourceLambdaServiceRole3DDCBC03" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/AmplifyBranchLinker/CustomResourceLambda/ServiceRole/DefaultPolicy/Resource" - } - }, - "AmplifyBranchLinkerCustomResourceLambda582AC093": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "577f96ca22e59dc05e8bc39fd45b966f0ad8e25629b3b9b29d444de63fb17b12.zip" - }, - "Handler": "index.handler", - "Role": { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceLambdaServiceRole3DDCBC03", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 10 - }, - "DependsOn": [ - "AmplifyBranchLinkerCustomResourceLambdaServiceRoleDefaultPolicy86099CA1", - "AmplifyBranchLinkerCustomResourceLambdaServiceRole3DDCBC03" - ], - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/AmplifyBranchLinker/CustomResourceLambda/Resource", - "aws:asset:path": "asset.577f96ca22e59dc05e8bc39fd45b966f0ad8e25629b3b9b29d444de63fb17b12", - "aws:asset:is-bundled": true, - "aws:asset:property": "Code" - } - }, - "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRole92A035EB": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/AmplifyBranchLinker/CustomResourceProvider/framework-onEvent/ServiceRole/Resource" - } - }, - "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRoleDefaultPolicy38AAE412": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "lambda:InvokeFunction", - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceLambda582AC093", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceLambda582AC093", - "Arn" - ] - }, - ":*" - ] - ] - } - ] - }, - { - "Action": "lambda:GetFunction", - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceLambda582AC093", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRoleDefaultPolicy38AAE412", - "Roles": [ - { - "Ref": "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRole92A035EB" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/AmplifyBranchLinker/CustomResourceProvider/framework-onEvent/ServiceRole/DefaultPolicy/Resource" - } - }, - "AmplifyBranchLinkerCustomResourceProviderframeworkonEvent3B23F900": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "07a90cc3efdfc34da22208dcd9d211f06f5b0e01b21e778edc7c3966b1f61d57.zip" - }, - "Description": "AWS CDK resource provider framework - onEvent (amplify-fitnesstracker-gen2main-branch-400746baeb/AmplifyBranchLinker/CustomResourceProvider)", - "Environment": { - "Variables": { - "USER_ON_EVENT_FUNCTION_ARN": { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceLambda582AC093", - "Arn" - ] - } - } - }, - "Handler": "framework.onEvent", - "LoggingConfig": { - "ApplicationLogLevel": "FATAL", - "LogFormat": "JSON" - }, - "Role": { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRole92A035EB", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 900 - }, - "DependsOn": [ - "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRoleDefaultPolicy38AAE412", - "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRole92A035EB" - ], - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/AmplifyBranchLinker/CustomResourceProvider/framework-onEvent/Resource", - "aws:asset:path": "asset.07a90cc3efdfc34da22208dcd9d211f06f5b0e01b21e778edc7c3966b1f61d57", - "aws:asset:is-bundled": false, - "aws:asset:property": "Code" - } - }, - "AmplifyBranchLinkerCustomResource96E36FC1": { - "Type": "Custom::AmplifyBranchLinkerResource", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceProviderframeworkonEvent3B23F900", - "Arn" - ] - }, - "appId": "fitnesstracker", - "branchName": "gen2-main" - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/AmplifyBranchLinker/CustomResource/Default" - } - }, - "auth179371D7": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/cf42b4b21cde117f111d5c596f26c0d0d33834a6fcf5c3ca7ec443ab7b961ca6.json" - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/auth.NestedStack/auth.NestedStackResource", - "aws:asset:path": "amplifyfitnesstrackergen2mainbranch400746baebauthA2EE5AF1.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "data7552DF31": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthUserPoolBF05A444Ref": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthUserPoolBF05A444Ref" - ] - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" - ] - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthunauthenticatedUserRole444B7AFERef" - ] - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthIdentityPoolFB6D4845Ref" - ] - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/2fca8ecbae58008f1b1aded02efbc20cd87689de55be452c699f6a28a85af107.json" - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/data.NestedStack/data.NestedStackResource", - "aws:asset:path": "amplifyfitnesstrackergen2mainbranch400746baebdata8B7F9287.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "restapistackadminapi43EA27F6": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthadmingen2mainlambda19698385Arn": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifyfitnesstrackergen2mainbranch400746baebauthadmingen2mainlambda19698385Arn" - ] - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" - ] - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthAdminGroupRoleC37E0196Ref": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthAdminGroupRoleC37E0196Ref" - ] - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/8b7a6079311343b27ad9c9f2567281b7b85489b503537696f832d8af79a699eb.json" - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-adminapi.NestedStack/rest-api-stack-adminapi.NestedStackResource", - "aws:asset:path": "amplifyfitnesstrackergen2mainbranch400746baebrestapistackadminapi4B6BAEAB.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "restapistacknutritionapi72914ECD": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetoamplifyfitnesstrackergen2mainbranch400746baebdataNestedStackdataNestedStackResource2B549F52Outputsamplifyfitnesstrackergen2mainbranch400746baebdatalognutritiongen2mainlambda08A76FE8Arn": { - "Fn::GetAtt": [ - "data7552DF31", - "Outputs.amplifyfitnesstrackergen2mainbranch400746baebdatalognutritiongen2mainlambda08A76FE8Arn" - ] - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthauthenticatedUserRole924DCF20Ref" - ] - }, - "referencetoamplifyfitnesstrackergen2mainbranch400746baebauthNestedStackauthNestedStackResource5078865DOutputsamplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthAdminGroupRoleC37E0196Ref": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifyfitnesstrackergen2mainbranch400746baebauthamplifyAuthAdminGroupRoleC37E0196Ref" - ] - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "fitnesstracker" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/9a84370ad847765ed4eb615e833384812e6b681a28efa0db729a14d1282b6310.json" - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/rest-api-stack-nutritionapi.NestedStack/rest-api-stack-nutritionapi.NestedStackResource", - "aws:asset:path": "amplifyfitnesstrackergen2mainbranch400746baebrestapistacknutritionapi29813263.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/02PzWrDQAyEnyV3WU2dHHJtDD22wXkAo6yVIP/slpU2oRi/e/C6LT19I4YZNCWW+z1uN/TQwrV9McgFp7OR66G6+s9kX8mAHtpMA42XlhofWu4UPzLek3cmwYPQiFMdBl5SmacwiPtezlXNoLuGVNkU3xaA7vCYXM92JGVY63Gqrv6v9VfMM+TI2egm/gYuqYWxiawhRceKpxju0nKEKjv1j5Gf+afzrhmWCdjpy70s8fWA202nIkVM3mRkrFc+AXlCmgwZAQAA" - }, - "Metadata": { - "aws:cdk:path": "amplify-fitnesstracker-gen2main-branch-400746baeb/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "BootstrapVersion": { - "Type": "AWS::SSM::Parameter::Value", - "Default": "/cdk-bootstrap/hnb659fds/version", - "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]" - } - }, - "Rules": { - "CheckBootstrapVersion": { - "Assertions": [ - { - "Assert": { - "Fn::Not": [ - { - "Fn::Contains": [ - [ - "1", - "2", - "3", - "4", - "5" - ], - { - "Ref": "BootstrapVersion" - } - ] - } - ] - }, - "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI." - } - ] - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-APIGatewayAuthStack-1PX292PE83STS.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-APIGatewayAuthStack-1PX292PE83STS.description.txt deleted file mode 100644 index 68bb0136325..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-APIGatewayAuthStack-1PX292PE83STS.description.txt +++ /dev/null @@ -1 +0,0 @@ -API Gateway policy stack created using Amplify CLI \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-APIGatewayAuthStack-1PX292PE83STS.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-APIGatewayAuthStack-1PX292PE83STS.outputs.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-APIGatewayAuthStack-1PX292PE83STS.outputs.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-APIGatewayAuthStack-1PX292PE83STS.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-APIGatewayAuthStack-1PX292PE83STS.parameters.json deleted file mode 100644 index f12a02b2c3a..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-APIGatewayAuthStack-1PX292PE83STS.parameters.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "ParameterKey": "authRoleName", - "ParameterValue": "amplify-fitnesstracker-main-a0537-authRole" - }, - { - "ParameterKey": "nutritionapi", - "ParameterValue": "hmydcaubcb" - }, - { - "ParameterKey": "unauthRoleName", - "ParameterValue": "amplify-fitnesstracker-main-a0537-unauthRole" - }, - { - "ParameterKey": "adminapi", - "ParameterValue": "oxq86r59h6" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-APIGatewayAuthStack-1PX292PE83STS.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-APIGatewayAuthStack-1PX292PE83STS.template.json deleted file mode 100644 index 341ef5a4b69..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-APIGatewayAuthStack-1PX292PE83STS.template.json +++ /dev/null @@ -1,116 +0,0 @@ -{ - "Description": "API Gateway policy stack created using Amplify CLI", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "authRoleName": { - "Type": "String" - }, - "unauthRoleName": { - "Type": "String" - }, - "env": { - "Type": "String" - }, - "nutritionapi": { - "Type": "String" - }, - "adminapi": { - "Type": "String" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - }, - "Resources": { - "PolicyAPIGWAuth1": { - "Type": "AWS::IAM::ManagedPolicy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "execute-api:Invoke" - ], - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":", - { - "Ref": "nutritionapi" - }, - "/", - { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "Prod", - { - "Ref": "env" - } - ] - }, - "/*/nutrition/log/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":", - { - "Ref": "nutritionapi" - }, - "/", - { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "Prod", - { - "Ref": "env" - } - ] - }, - "/*/nutrition/log" - ] - ] - } - ] - } - ] - }, - "Roles": [ - { - "Ref": "authRoleName" - } - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-AuthTriggerCustomLambdaStack-TT7MSI2O15CI.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-AuthTriggerCustomLambdaStack-TT7MSI2O15CI.description.txt deleted file mode 100644 index 667d8b27f42..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-AuthTriggerCustomLambdaStack-TT7MSI2O15CI.description.txt +++ /dev/null @@ -1 +0,0 @@ -Custom Resource stack for Auth Trigger created using Amplify CLI \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-AuthTriggerCustomLambdaStack-TT7MSI2O15CI.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-AuthTriggerCustomLambdaStack-TT7MSI2O15CI.outputs.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-AuthTriggerCustomLambdaStack-TT7MSI2O15CI.outputs.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-AuthTriggerCustomLambdaStack-TT7MSI2O15CI.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-AuthTriggerCustomLambdaStack-TT7MSI2O15CI.parameters.json deleted file mode 100644 index 6ed9f4a0eae..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-AuthTriggerCustomLambdaStack-TT7MSI2O15CI.parameters.json +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "ParameterKey": "functionfitnesstracker33f5545533f55455PreSignupLambdaExecutionRole", - "ParameterValue": "arn:aws:iam::123456789012:role/fitnesstracker33f5545533f55455PreSignup-main" - }, - { - "ParameterKey": "functionfitnesstracker33f5545533f55455PreSignupName", - "ParameterValue": "fitnesstracker33f5545533f55455PreSignup-main" - }, - { - "ParameterKey": "functionfitnesstracker33f5545533f55455PreSignupArn", - "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker33f5545533f55455PreSignup-main" - }, - { - "ParameterKey": "userpoolId", - "ParameterValue": "us-east-1_iguxCIcMS" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "userpoolArn", - "ParameterValue": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_iguxCIcMS" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-AuthTriggerCustomLambdaStack-TT7MSI2O15CI.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-AuthTriggerCustomLambdaStack-TT7MSI2O15CI.template.json deleted file mode 100644 index fd44b22e128..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-AuthTriggerCustomLambdaStack-TT7MSI2O15CI.template.json +++ /dev/null @@ -1,157 +0,0 @@ -{ - "Description": "Custom Resource stack for Auth Trigger created using Amplify CLI", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "env": { - "Type": "String" - }, - "userpoolId": { - "Type": "String" - }, - "userpoolArn": { - "Type": "String" - }, - "functionfitnesstracker33f5545533f55455PreSignupName": { - "Type": "String" - }, - "functionfitnesstracker33f5545533f55455PreSignupArn": { - "Type": "String" - }, - "functionfitnesstracker33f5545533f55455PreSignupLambdaExecutionRole": { - "Type": "String" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - }, - "Resources": { - "UserPoolPreSignUpLambdaInvokePermission": { - "Type": "AWS::Lambda::Permission", - "Properties": { - "Action": "lambda:InvokeFunction", - "FunctionName": { - "Ref": "functionfitnesstracker33f5545533f55455PreSignupName" - }, - "Principal": "cognito-idp.amazonaws.com", - "SourceArn": { - "Ref": "userpoolArn" - } - } - }, - "authTriggerFnServiceRole08093B67": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ] - } - }, - "authTriggerFnServiceRoleDefaultPolicyEC9285A8": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "cognito-idp:DescribeUserPool", - "cognito-idp:UpdateUserPool" - ], - "Effect": "Allow", - "Resource": { - "Ref": "userpoolArn" - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "authTriggerFnServiceRoleDefaultPolicyEC9285A8", - "Roles": [ - { - "Ref": "authTriggerFnServiceRole08093B67" - } - ] - } - }, - "authTriggerFn7FCFA449": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "ZipFile": "const response = require('cfn-response');\nconst {\n CognitoIdentityProviderClient,\n DescribeUserPoolCommand,\n UpdateUserPoolCommand,\n} = require('@aws-sdk/client-cognito-identity-provider');\n\nexports.handler = (event, context) => {\n // Don't return promise, response.send() marks context as done internally\n void tryHandleEvent(event, context);\n};\n\nasync function tryHandleEvent(event, context) {\n const physicalResourceId =\n event.RequestType === 'Update' ? event.PhysicalResourceId : `${event.LogicalResourceId}-${event.ResourceProperties.userpoolId}`;\n try {\n await handleEvent(event);\n response.send(event, context, response.SUCCESS, {}, physicalResourceId);\n } catch (err) {\n console.log(err.stack);\n response.send(event, context, response.FAILED, { err }, physicalResourceId);\n }\n}\n\nasync function handleEvent(event) {\n const userPoolId = event.ResourceProperties.userpoolId;\n const { lambdaConfig } = event.ResourceProperties;\n const config = {};\n const cognitoClient = new CognitoIdentityProviderClient({});\n const userPoolConfig = await cognitoClient.send(new DescribeUserPoolCommand({ UserPoolId: userPoolId }));\n const userPoolParams = userPoolConfig.UserPool;\n // update userPool params\n\n const updateUserPoolConfig = {\n UserPoolId: userPoolParams.Id,\n Policies: userPoolParams.Policies,\n SmsVerificationMessage: userPoolParams.SmsVerificationMessage,\n AccountRecoverySetting: userPoolParams.AccountRecoverySetting,\n AdminCreateUserConfig: userPoolParams.AdminCreateUserConfig,\n AutoVerifiedAttributes: userPoolParams.AutoVerifiedAttributes,\n EmailConfiguration: userPoolParams.EmailConfiguration,\n EmailVerificationMessage: userPoolParams.EmailVerificationMessage,\n EmailVerificationSubject: userPoolParams.EmailVerificationSubject,\n VerificationMessageTemplate: userPoolParams.VerificationMessageTemplate,\n SmsAuthenticationMessage: userPoolParams.SmsAuthenticationMessage,\n MfaConfiguration: userPoolParams.MfaConfiguration,\n DeviceConfiguration: userPoolParams.DeviceConfiguration,\n SmsConfiguration: userPoolParams.SmsConfiguration,\n UserPoolTags: userPoolParams.UserPoolTags,\n UserPoolAddOns: userPoolParams.UserPoolAddOns,\n };\n\n // removing undefined keys\n Object.keys(updateUserPoolConfig).forEach((key) => updateUserPoolConfig[key] === undefined && delete updateUserPoolConfig[key]);\n\n /* removing UnusedAccountValidityDays as deprecated\n InvalidParameterException: Please use TemporaryPasswordValidityDays in PasswordPolicy instead of UnusedAccountValidityDays\n */\n if (updateUserPoolConfig.AdminCreateUserConfig && updateUserPoolConfig.AdminCreateUserConfig.UnusedAccountValidityDays) {\n delete updateUserPoolConfig.AdminCreateUserConfig.UnusedAccountValidityDays;\n }\n lambdaConfig.forEach((lambda) => (config[`${lambda.triggerType}`] = lambda.lambdaFunctionArn));\n if (event.RequestType === 'Delete') {\n updateUserPoolConfig.LambdaConfig = {};\n console.log(`${event.RequestType}:`, JSON.stringify(updateUserPoolConfig));\n const result = await cognitoClient.send(new UpdateUserPoolCommand(updateUserPoolConfig));\n console.log(`delete response data ${JSON.stringify(result)}`);\n } else if (event.RequestType === 'Update' || event.RequestType === 'Create') {\n updateUserPoolConfig.LambdaConfig = config;\n const result = await cognitoClient.send(new UpdateUserPoolCommand(updateUserPoolConfig));\n console.log(`createOrUpdate response data ${JSON.stringify(result)}`);\n }\n}\n" - }, - "Handler": "index.handler", - "Role": { - "Fn::GetAtt": [ - "authTriggerFnServiceRole08093B67", - "Arn" - ] - }, - "Runtime": "nodejs22.x" - }, - "DependsOn": [ - "authTriggerFnServiceRoleDefaultPolicyEC9285A8", - "authTriggerFnServiceRole08093B67" - ] - }, - "CustomAuthTriggerResource": { - "Type": "Custom::CustomAuthTriggerResourceOutputs", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "authTriggerFn7FCFA449", - "Arn" - ] - }, - "userpoolId": { - "Ref": "userpoolId" - }, - "lambdaConfig": [ - { - "triggerType": "PreSignUp", - "lambdaFunctionName": "fitnesstracker33f5545533f55455PreSignup", - "lambdaFunctionArn": { - "Ref": "functionfitnesstracker33f5545533f55455PreSignupArn" - } - } - ], - "nonce": "bb94c712-a1c6-4c6a-82b8-4cb8c57b4acc" - }, - "DependsOn": [ - "authTriggerFn7FCFA449", - "authTriggerFnServiceRoleDefaultPolicyEC9285A8", - "authTriggerFnServiceRole08093B67" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apiadminapi-NIM0OPDFSKJR.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apiadminapi-NIM0OPDFSKJR.description.txt deleted file mode 100644 index b239f7a9170..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apiadminapi-NIM0OPDFSKJR.description.txt +++ /dev/null @@ -1 +0,0 @@ -API Gateway Resource for AWS Amplify CLI \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apiadminapi-NIM0OPDFSKJR.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apiadminapi-NIM0OPDFSKJR.outputs.json deleted file mode 100644 index 124a527f440..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apiadminapi-NIM0OPDFSKJR.outputs.json +++ /dev/null @@ -1,17 +0,0 @@ -[ - { - "OutputKey": "ApiName", - "OutputValue": "adminapi", - "Description": "API Friendly name" - }, - { - "OutputKey": "RootUrl", - "OutputValue": "https://oxq86r59h6.execute-api.us-east-1.amazonaws.com/main", - "Description": "Root URL of the API gateway" - }, - { - "OutputKey": "ApiId", - "OutputValue": "oxq86r59h6", - "Description": "API ID (prefix of API URL)" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apiadminapi-NIM0OPDFSKJR.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apiadminapi-NIM0OPDFSKJR.parameters.json deleted file mode 100644 index b06a743d6c9..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apiadminapi-NIM0OPDFSKJR.parameters.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "ParameterKey": "functionadminArn", - "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:admin-main" - }, - { - "ParameterKey": "functionadminName", - "ParameterValue": "admin-main" - }, - { - "ParameterKey": "authfitnesstracker33f5545533f55455UserPoolId", - "ParameterValue": "us-east-1_iguxCIcMS" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "authuserPoolGroupsAdminGroupRole", - "ParameterValue": "arn:aws:iam::123456789012:role/us-east-1_iguxCIcMS-AdminGroupRole" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apiadminapi-NIM0OPDFSKJR.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apiadminapi-NIM0OPDFSKJR.template.json deleted file mode 100644 index 0eb23e1dfa6..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apiadminapi-NIM0OPDFSKJR.template.json +++ /dev/null @@ -1,532 +0,0 @@ -{ - "Description": "API Gateway Resource for AWS Amplify CLI", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "authfitnesstracker33f5545533f55455UserPoolId": { - "Type": "String", - "Default": "authfitnesstracker33f5545533f55455UserPoolId" - }, - "authuserPoolGroupsAdminGroupRole": { - "Type": "String", - "Default": "authuserPoolGroupsAdminGroupRole" - }, - "functionadminName": { - "Type": "String", - "Default": "functionadminName" - }, - "functionadminArn": { - "Type": "String", - "Default": "functionadminArn" - }, - "env": { - "Type": "String" - } - }, - "Resources": { - "AdminGroupadminPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "execute-api:Invoke", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":", - { - "Ref": "adminapi" - }, - "/", - { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "Prod", - { - "Ref": "env" - } - ] - }, - "/GET/admin" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":", - { - "Ref": "adminapi" - }, - "/", - { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "Prod", - { - "Ref": "env" - } - ] - }, - "/GET/admin/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "adminapi-admin-Admin-group-policy", - "Roles": [ - { - "Fn::Join": [ - "-", - [ - { - "Ref": "authfitnesstracker33f5545533f55455UserPoolId" - }, - "AdminGroupRole" - ] - ] - } - ] - } - }, - "functionadminPermissionadminapi": { - "Type": "AWS::Lambda::Permission", - "Properties": { - "Action": "lambda:InvokeFunction", - "FunctionName": { - "Ref": "functionadminName" - }, - "Principal": "apigateway.amazonaws.com", - "SourceArn": { - "Fn::Join": [ - "", - [ - "arn:aws:execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":", - { - "Ref": "adminapi" - }, - "/*/*/*" - ] - ] - } - } - }, - "adminapi": { - "Type": "AWS::ApiGateway::RestApi", - "Properties": { - "Body": { - "swagger": "2.0", - "info": { - "version": "2018-05-24T17:52:00Z", - "title": "adminapi" - }, - "host": { - "Fn::Join": [ - "", - [ - "apigateway.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com" - ] - ] - }, - "basePath": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "/Prod", - { - "Fn::Join": [ - "", - [ - "/", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "schemes": [ - "https" - ], - "paths": { - "/admin": { - "options": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "responses": { - "200": { - "description": "200 response", - "headers": { - "Access-Control-Allow-Origin": { - "type": "string" - }, - "Access-Control-Allow-Methods": { - "type": "string" - }, - "Access-Control-Allow-Headers": { - "type": "string" - } - } - } - }, - "x-amazon-apigateway-integration": { - "responses": { - "default": { - "statusCode": "200", - "responseParameters": { - "method.response.header.Access-Control-Allow-Methods": "'DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT'", - "method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token,X-Amz-User-Agent'", - "method.response.header.Access-Control-Allow-Origin": "'*'" - } - } - }, - "requestTemplates": { - "application/json": "{\"statusCode\": 200}" - }, - "passthroughBehavior": "when_no_match", - "type": "mock" - } - }, - "x-amazon-apigateway-any-method": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "parameters": [ - { - "in": "body", - "name": "RequestSchema", - "required": false, - "schema": { - "$ref": "#/definitions/RequestSchema" - } - } - ], - "responses": { - "200": { - "description": "200 response", - "schema": { - "$ref": "#/definitions/ResponseSchema" - } - } - }, - "x-amazon-apigateway-integration": { - "responses": { - "default": { - "statusCode": "200" - } - }, - "uri": { - "Fn::Join": [ - "", - [ - "arn:aws:apigateway:", - { - "Ref": "AWS::Region" - }, - ":lambda:path/2015-03-31/functions/", - { - "Ref": "functionadminArn" - }, - "/invocations" - ] - ] - }, - "passthroughBehavior": "when_no_match", - "httpMethod": "POST", - "type": "aws_proxy" - }, - "security": [ - { - "sigv4": [] - } - ] - } - }, - "/admin/{proxy+}": { - "options": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "responses": { - "200": { - "description": "200 response", - "headers": { - "Access-Control-Allow-Origin": { - "type": "string" - }, - "Access-Control-Allow-Methods": { - "type": "string" - }, - "Access-Control-Allow-Headers": { - "type": "string" - } - } - } - }, - "x-amazon-apigateway-integration": { - "responses": { - "default": { - "statusCode": "200", - "responseParameters": { - "method.response.header.Access-Control-Allow-Methods": "'DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT'", - "method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token,X-Amz-User-Agent'", - "method.response.header.Access-Control-Allow-Origin": "'*'" - } - } - }, - "requestTemplates": { - "application/json": "{\"statusCode\": 200}" - }, - "passthroughBehavior": "when_no_match", - "type": "mock" - } - }, - "x-amazon-apigateway-any-method": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "parameters": [ - { - "in": "body", - "name": "RequestSchema", - "required": false, - "schema": { - "$ref": "#/definitions/RequestSchema" - } - } - ], - "responses": { - "200": { - "description": "200 response", - "schema": { - "$ref": "#/definitions/ResponseSchema" - } - } - }, - "x-amazon-apigateway-integration": { - "responses": { - "default": { - "statusCode": "200" - } - }, - "uri": { - "Fn::Join": [ - "", - [ - "arn:aws:apigateway:", - { - "Ref": "AWS::Region" - }, - ":lambda:path/2015-03-31/functions/", - { - "Ref": "functionadminArn" - }, - "/invocations" - ] - ] - }, - "passthroughBehavior": "when_no_match", - "httpMethod": "POST", - "type": "aws_proxy" - }, - "security": [ - { - "sigv4": [] - } - ] - } - } - }, - "securityDefinitions": { - "sigv4": { - "type": "apiKey", - "name": "Authorization", - "in": "header", - "x-amazon-apigateway-authtype": "awsSigv4" - } - }, - "definitions": { - "RequestSchema": { - "type": "object", - "required": [ - "request" - ], - "properties": { - "request": { - "type": "string" - } - }, - "title": "Request Schema" - }, - "ResponseSchema": { - "type": "object", - "required": [ - "response" - ], - "properties": { - "response": { - "type": "string" - } - }, - "title": "Response Schema" - } - } - }, - "Description": "", - "FailOnWarnings": true, - "Name": "adminapi" - } - }, - "adminapiDefault4XXResponse1cf3cfdc": { - "Type": "AWS::ApiGateway::GatewayResponse", - "Properties": { - "ResponseParameters": { - "gatewayresponse.header.Access-Control-Allow-Origin": "'*'", - "gatewayresponse.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token'", - "gatewayresponse.header.Access-Control-Allow-Methods": "'DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT'", - "gatewayresponse.header.Access-Control-Expose-Headers": "'Date,X-Amzn-ErrorType'" - }, - "ResponseType": "DEFAULT_4XX", - "RestApiId": { - "Ref": "adminapi" - } - } - }, - "adminapiDefault5XXResponse1cf3cfdc": { - "Type": "AWS::ApiGateway::GatewayResponse", - "Properties": { - "ResponseParameters": { - "gatewayresponse.header.Access-Control-Allow-Origin": "'*'", - "gatewayresponse.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token'", - "gatewayresponse.header.Access-Control-Allow-Methods": "'DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT'", - "gatewayresponse.header.Access-Control-Expose-Headers": "'Date,X-Amzn-ErrorType'" - }, - "ResponseType": "DEFAULT_5XX", - "RestApiId": { - "Ref": "adminapi" - } - } - }, - "DeploymentAPIGWadminapi1af07a4b": { - "Type": "AWS::ApiGateway::Deployment", - "Properties": { - "Description": "The Development stage deployment of your API.", - "RestApiId": { - "Ref": "adminapi" - }, - "StageName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "Prod", - { - "Ref": "env" - } - ] - } - }, - "DependsOn": [ - "adminapiDefault4XXResponse1cf3cfdc", - "adminapiDefault5XXResponse1cf3cfdc" - ] - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - }, - "Outputs": { - "RootUrl": { - "Description": "Root URL of the API gateway", - "Value": { - "Fn::Join": [ - "", - [ - "https://", - { - "Ref": "adminapi" - }, - ".execute-api.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "Prod", - { - "Ref": "env" - } - ] - } - ] - ] - } - }, - "ApiName": { - "Description": "API Friendly name", - "Value": "adminapi" - }, - "ApiId": { - "Description": "API ID (prefix of API URL)", - "Value": { - "Ref": "adminapi" - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-ConnectionStack-96IMUMC3YX9X.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-ConnectionStack-96IMUMC3YX9X.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-ConnectionStack-96IMUMC3YX9X.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-ConnectionStack-96IMUMC3YX9X.outputs.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-ConnectionStack-96IMUMC3YX9X.outputs.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-ConnectionStack-96IMUMC3YX9X.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-ConnectionStack-96IMUMC3YX9X.parameters.json deleted file mode 100644 index 6b366cbc8e7..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-ConnectionStack-96IMUMC3YX9X.parameters.json +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", - "ParameterValue": "amplify-appsync-files/67310f5f0a68cc163f9cc58da56e1409a2c21b1d" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", - "ParameterValue": "jzwb5p2vcbd2ldlnlxokgjcjby" - }, - { - "ParameterKey": "referencetotransformerrootstackExerciseNestedStackExerciseNestedStackResourceA190CF68OutputstransformerrootstackExerciseExerciseTable2F3E478ERef", - "ParameterValue": "Exercise-jzwb5p2vcbd2ldlnlxokgjcjby-main" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", - "ParameterValue": "amplify-fitnesstracker-main-a0537-deployment" - }, - { - "ParameterKey": "referencetotransformerrootstackExerciseNestedStackExerciseNestedStackResourceA190CF68OutputstransformerrootstackExerciseExerciseDataSourceE8B787D0Name", - "ParameterValue": "ExerciseTable" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-ConnectionStack-96IMUMC3YX9X.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-ConnectionStack-96IMUMC3YX9X.template.json deleted file mode 100644 index c6490dbf938..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-ConnectionStack-96IMUMC3YX9X.template.json +++ /dev/null @@ -1,143 +0,0 @@ -{ - "Resources": { - "WorkoutProgramexercisesauth0FunctionWorkoutProgramexercisesauth0FunctionAppSyncFunctionFB9C3EA7": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "WorkoutProgramexercisesauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/WorkoutProgram.exercises.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "WorkoutProgramExercisesDataResolverFnWorkoutProgramExercisesDataResolverFnAppSyncFunctionA9FFE7A3": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackExerciseNestedStackExerciseNestedStackResourceA190CF68OutputstransformerrootstackExerciseExerciseDataSourceE8B787D0Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "WorkoutProgramExercisesDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/WorkoutProgram.exercises.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/WorkoutProgram.exercises.res.vtl" - ] - ] - } - } - }, - "WorkoutProgramexercisesResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "exercises", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "WorkoutProgramexercisesauth0FunctionWorkoutProgramexercisesauth0FunctionAppSyncFunctionFB9C3EA7", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "WorkoutProgramExercisesDataResolverFnWorkoutProgramExercisesDataResolverFnAppSyncFunctionA9FFE7A3", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"WorkoutProgram\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"exercises\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "referencetotransformerrootstackExerciseNestedStackExerciseNestedStackResourceA190CF68OutputstransformerrootstackExerciseExerciseTable2F3E478ERef" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "WorkoutProgram" - } - } - }, - "Parameters": { - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Type": "String" - }, - "referencetotransformerrootstackExerciseNestedStackExerciseNestedStackResourceA190CF68OutputstransformerrootstackExerciseExerciseDataSourceE8B787D0Name": { - "Type": "String" - }, - "referencetotransformerrootstackExerciseNestedStackExerciseNestedStackResourceA190CF68OutputstransformerrootstackExerciseExerciseTable2F3E478ERef": { - "Type": "String" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-CustomResourcesjson-1FVS02E9NW5PX.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-CustomResourcesjson-1FVS02E9NW5PX.description.txt deleted file mode 100644 index 293dec5639e..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-CustomResourcesjson-1FVS02E9NW5PX.description.txt +++ /dev/null @@ -1 +0,0 @@ -An auto-generated nested stack. \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-CustomResourcesjson-1FVS02E9NW5PX.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-CustomResourcesjson-1FVS02E9NW5PX.outputs.json deleted file mode 100644 index 5e9753d822a..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-CustomResourcesjson-1FVS02E9NW5PX.outputs.json +++ /dev/null @@ -1,7 +0,0 @@ -[ - { - "OutputKey": "EmptyOutput", - "OutputValue": "", - "Description": "An empty output. You may delete this if you have at least one resource above." - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-CustomResourcesjson-1FVS02E9NW5PX.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-CustomResourcesjson-1FVS02E9NW5PX.parameters.json deleted file mode 100644 index 4097d78d936..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-CustomResourcesjson-1FVS02E9NW5PX.parameters.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "ParameterKey": "S3DeploymentBucket", - "ParameterValue": "amplify-fitnesstracker-main-a0537-deployment" - }, - { - "ParameterKey": "AppSyncApiId", - "ParameterValue": "jzwb5p2vcbd2ldlnlxokgjcjby" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "S3DeploymentRootKey", - "ParameterValue": "amplify-appsync-files/67310f5f0a68cc163f9cc58da56e1409a2c21b1d" - }, - { - "ParameterKey": "AppSyncApiName", - "ParameterValue": "fitnesstracker" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-CustomResourcesjson-1FVS02E9NW5PX.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-CustomResourcesjson-1FVS02E9NW5PX.template.json deleted file mode 100644 index 016991278d0..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-CustomResourcesjson-1FVS02E9NW5PX.template.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "An auto-generated nested stack.", - "Metadata": {}, - "Parameters": { - "AppSyncApiId": { - "Type": "String", - "Description": "The id of the AppSync API associated with this project." - }, - "AppSyncApiName": { - "Type": "String", - "Description": "The name of the AppSync API", - "Default": "AppSyncSimpleTransform" - }, - "env": { - "Type": "String", - "Description": "The environment name. e.g. Dev, Test, or Production", - "Default": "NONE" - }, - "S3DeploymentBucket": { - "Type": "String", - "Description": "The S3 bucket containing all deployment assets for the project." - }, - "S3DeploymentRootKey": { - "Type": "String", - "Description": "An S3 key relative to the S3DeploymentBucket that points to the root\nof the deployment directory." - } - }, - "Resources": { - "EmptyResource": { - "Type": "Custom::EmptyResource", - "Condition": "AlwaysFalse" - } - }, - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - ] - }, - "AlwaysFalse": { - "Fn::Equals": [ - "true", - "false" - ] - } - }, - "Outputs": { - "EmptyOutput": { - "Description": "An empty output. You may delete this if you have at least one resource above.", - "Value": "" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Exercise-FLH6MX715G6M.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Exercise-FLH6MX715G6M.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Exercise-FLH6MX715G6M.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Exercise-FLH6MX715G6M.outputs.json deleted file mode 100644 index f1efdb2a150..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Exercise-FLH6MX715G6M.outputs.json +++ /dev/null @@ -1,28 +0,0 @@ -[ - { - "OutputKey": "transformerrootstackExerciseExerciseDataSourceE8B787D0Name", - "OutputValue": "ExerciseTable" - }, - { - "OutputKey": "GetAttExerciseTableName", - "OutputValue": "Exercise-jzwb5p2vcbd2ldlnlxokgjcjby-main", - "Description": "Your DynamoDB table name.", - "ExportName": "jzwb5p2vcbd2ldlnlxokgjcjby:GetAtt:ExerciseTable:Name" - }, - { - "OutputKey": "GetAttExerciseDataSourceName", - "OutputValue": "ExerciseTable", - "Description": "Your model DataSource name.", - "ExportName": "jzwb5p2vcbd2ldlnlxokgjcjby:GetAtt:ExerciseDataSource:Name" - }, - { - "OutputKey": "transformerrootstackExerciseExerciseTable2F3E478ERef", - "OutputValue": "Exercise-jzwb5p2vcbd2ldlnlxokgjcjby-main" - }, - { - "OutputKey": "GetAttExerciseTableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Exercise-jzwb5p2vcbd2ldlnlxokgjcjby-main/stream/2026-03-24T03:05:11.212", - "Description": "Your DynamoDB table StreamArn.", - "ExportName": "jzwb5p2vcbd2ldlnlxokgjcjby:GetAtt:ExerciseTable:StreamArn" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Exercise-FLH6MX715G6M.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Exercise-FLH6MX715G6M.parameters.json deleted file mode 100644 index 020d0d0614b..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Exercise-FLH6MX715G6M.parameters.json +++ /dev/null @@ -1,70 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", - "ParameterValue": "amplify-appsync-files/67310f5f0a68cc163f9cc58da56e1409a2c21b1d" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", - "ParameterValue": "jzwb5p2vcbd2ldlnlxokgjcjby" - }, - { - "ParameterKey": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId", - "ParameterValue": "azpojmlshjb33hbzmjtsne6eke" - }, - { - "ParameterKey": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncF52D36F4F", - "ParameterValue": "p4zgtsdhtfd5plnqeuyw434jry" - }, - { - "ParameterKey": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunction8D95BFD8FunctionId", - "ParameterValue": "7rhd6ral6railaajcfswqeadf4" - }, - { - "ParameterKey": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId", - "ParameterValue": "fws4doskqbag7dbslx7eygyckq" - }, - { - "ParameterKey": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId", - "ParameterValue": "cdecyw7rljhx7kqioiulvfozuq" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "false" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramWorkoutProgramOwnerDataResolverFnWorkoutProgramOwnerDataResolverFnAppSyncFunctionB902B95DFunctionId", - "ParameterValue": "c3jrt4vcd5cfbirsv2pukwfqt4" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", - "ParameterValue": "amplify-fitnesstracker-main-a0537-deployment" - }, - { - "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", - "ParameterValue": "main" - }, - { - "ParameterKey": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyn4D846E8C", - "ParameterValue": "bsbxi7b5m5hnjh55tvtvnd55tq" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Exercise-FLH6MX715G6M.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Exercise-FLH6MX715G6M.template.json deleted file mode 100644 index dfd88a7f935..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Exercise-FLH6MX715G6M.template.json +++ /dev/null @@ -1,1262 +0,0 @@ -{ - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "referencetotransformerrootstackenv10C5A902Ref": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Type": "String" - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunction8D95BFD8FunctionId": { - "Type": "String" - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Type": "String" - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId": { - "Type": "String" - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId": { - "Type": "String" - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncF52D36F4F": { - "Type": "String" - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyn4D846E8C": { - "Type": "String" - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramWorkoutProgramOwnerDataResolverFnWorkoutProgramOwnerDataResolverFnAppSyncFunctionB902B95DFunctionId": { - "Type": "String" - } - }, - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - }, - "NONE" - ] - } - ] - }, - "ShouldUseServerSideEncryption": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "true" - ] - }, - "ShouldUsePayPerRequestBilling": { - "Fn::Equals": [ - { - "Ref": "DynamoDBBillingMode" - }, - "PAY_PER_REQUEST" - ] - }, - "ShouldUsePointInTimeRecovery": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "true" - ] - } - }, - "Resources": { - "ExerciseTable": { - "Type": "AWS::DynamoDB::Table", - "Properties": { - "AttributeDefinitions": [ - { - "AttributeName": "id", - "AttributeType": "S" - }, - { - "AttributeName": "workoutProgramExercisesId", - "AttributeType": "S" - } - ], - "BillingMode": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - "PAY_PER_REQUEST", - { - "Ref": "AWS::NoValue" - } - ] - }, - "GlobalSecondaryIndexes": [ - { - "IndexName": "gsi-WorkoutProgram.exercises", - "KeySchema": [ - { - "AttributeName": "workoutProgramExercisesId", - "KeyType": "HASH" - } - ], - "Projection": { - "ProjectionType": "ALL" - }, - "ProvisionedThroughput": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - { - "Ref": "AWS::NoValue" - }, - { - "ReadCapacityUnits": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "WriteCapacityUnits": { - "Ref": "DynamoDBModelTableWriteIOPS" - } - } - ] - } - } - ], - "KeySchema": [ - { - "AttributeName": "id", - "KeyType": "HASH" - } - ], - "PointInTimeRecoverySpecification": { - "Fn::If": [ - "ShouldUsePointInTimeRecovery", - { - "PointInTimeRecoveryEnabled": true - }, - { - "Ref": "AWS::NoValue" - } - ] - }, - "ProvisionedThroughput": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - { - "Ref": "AWS::NoValue" - }, - { - "ReadCapacityUnits": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "WriteCapacityUnits": { - "Ref": "DynamoDBModelTableWriteIOPS" - } - } - ] - }, - "SSESpecification": { - "SSEEnabled": { - "Fn::If": [ - "ShouldUseServerSideEncryption", - true, - false - ] - } - }, - "StreamSpecification": { - "StreamViewType": "NEW_AND_OLD_IMAGES" - }, - "TableName": { - "Fn::Join": [ - "", - [ - "Exercise-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete" - }, - "ExerciseIAMRole28D09384": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:DeleteItem", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:Query", - "dynamodb:UpdateItem", - "dynamodb:ConditionCheckItem", - "dynamodb:DescribeTable", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", - { - "tablename": { - "Fn::Join": [ - "", - [ - "Exercise-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - ] - }, - { - "Fn::Sub": [ - "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", - { - "tablename": { - "Fn::Join": [ - "", - [ - "Exercise-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "DynamoDBAccess" - } - ], - "RoleName": { - "Fn::Join": [ - "", - [ - "ExerciseIAMRoled0d0e6-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - }, - "ExerciseIAMRoleDefaultPolicy0CA356BC": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator", - "dynamodb:Query", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:ConditionCheckItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:UpdateItem", - "dynamodb:DeleteItem", - "dynamodb:DescribeTable" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "ExerciseTable", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "ExerciseTable", - "Arn" - ] - }, - "/index/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "ExerciseIAMRoleDefaultPolicy0CA356BC", - "Roles": [ - { - "Ref": "ExerciseIAMRole28D09384" - } - ] - } - }, - "ExerciseDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DynamoDBConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "TableName": { - "Ref": "ExerciseTable" - } - }, - "Name": "ExerciseTable", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "ExerciseIAMRole28D09384", - "Arn" - ] - }, - "Type": "AMAZON_DYNAMODB" - }, - "DependsOn": [ - "ExerciseIAMRole28D09384" - ] - }, - "QueryGetExerciseDataResolverFnQueryGetExerciseDataResolverFnAppSyncFunction73149704": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ExerciseDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryGetExerciseDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getExercise.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getExercise.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "ExerciseDataSource" - ] - }, - "GetExerciseResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "getExercise", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunction8D95BFD8FunctionId" - }, - { - "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" - }, - { - "Fn::GetAtt": [ - "QueryGetExerciseDataResolverFnQueryGetExerciseDataResolverFnAppSyncFunction73149704", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getExercise\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "ExerciseTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - } - }, - "QueryListExercisesDataResolverFnQueryListExercisesDataResolverFnAppSyncFunction0818DDCE": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ExerciseDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryListExercisesDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.listExercises.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.listExercises.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "ExerciseDataSource" - ] - }, - "ListExerciseResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "listExercises", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunction8D95BFD8FunctionId" - }, - { - "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" - }, - { - "Fn::GetAtt": [ - "QueryListExercisesDataResolverFnQueryListExercisesDataResolverFnAppSyncFunction0818DDCE", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listExercises\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "ExerciseTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - } - }, - "MutationcreateExerciseauth0FunctionMutationcreateExerciseauth0FunctionAppSyncFunction06E6FB6C": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateExerciseauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createExercise.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "MutationCreateExerciseDataResolverFnMutationCreateExerciseDataResolverFnAppSyncFunction9F8EC7E0": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ExerciseDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationCreateExerciseDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createExercise.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createExercise.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "ExerciseDataSource" - ] - }, - "CreateExerciseResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "createExercise", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId" - }, - { - "Fn::GetAtt": [ - "MutationcreateExerciseauth0FunctionMutationcreateExerciseauth0FunctionAppSyncFunction06E6FB6C", - "FunctionId" - ] - }, - { - "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" - }, - { - "Fn::GetAtt": [ - "MutationCreateExerciseDataResolverFnMutationCreateExerciseDataResolverFnAppSyncFunction9F8EC7E0", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createExercise\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "ExerciseTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "MutationupdateExerciseauth0FunctionMutationupdateExerciseauth0FunctionAppSyncFunction2CE5BE66": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ExerciseDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateExerciseauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateExercise.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateExercise.auth.1.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "ExerciseDataSource" - ] - }, - "MutationUpdateExerciseDataResolverFnMutationUpdateExerciseDataResolverFnAppSyncFunctionD0CB335C": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ExerciseDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationUpdateExerciseDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateExercise.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateExercise.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "ExerciseDataSource" - ] - }, - "UpdateExerciseResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "updateExercise", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId" - }, - { - "Fn::GetAtt": [ - "MutationupdateExerciseauth0FunctionMutationupdateExerciseauth0FunctionAppSyncFunction2CE5BE66", - "FunctionId" - ] - }, - { - "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" - }, - { - "Fn::GetAtt": [ - "MutationUpdateExerciseDataResolverFnMutationUpdateExerciseDataResolverFnAppSyncFunctionD0CB335C", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateExercise\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "ExerciseTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "MutationdeleteExerciseauth0FunctionMutationdeleteExerciseauth0FunctionAppSyncFunctionC2D9DFF8": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ExerciseDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeleteExerciseauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteExercise.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteExercise.auth.1.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "ExerciseDataSource" - ] - }, - "MutationDeleteExerciseDataResolverFnMutationDeleteExerciseDataResolverFnAppSyncFunction91D88DD6": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ExerciseDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationDeleteExerciseDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteExercise.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteExercise.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "ExerciseDataSource" - ] - }, - "DeleteExerciseResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "deleteExercise", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationdeleteExerciseauth0FunctionMutationdeleteExerciseauth0FunctionAppSyncFunctionC2D9DFF8", - "FunctionId" - ] - }, - { - "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" - }, - { - "Fn::GetAtt": [ - "MutationDeleteExerciseDataResolverFnMutationDeleteExerciseDataResolverFnAppSyncFunction91D88DD6", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteExercise\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "ExerciseTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "SubscriptiononCreateExerciseResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onCreateExercise", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncF52D36F4F" - }, - { - "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" - }, - { - "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyn4D846E8C" - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateExercise\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - }, - "SubscriptiononUpdateExerciseResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onUpdateExercise", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncF52D36F4F" - }, - { - "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" - }, - { - "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyn4D846E8C" - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateExercise\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - }, - "SubscriptiononDeleteExerciseResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onDeleteExercise", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncF52D36F4F" - }, - { - "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" - }, - { - "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyn4D846E8C" - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteExercise\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - }, - "ExerciseownerResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "owner", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramWorkoutProgramOwnerDataResolverFnWorkoutProgramOwnerDataResolverFnAppSyncFunctionB902B95DFunctionId" - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Exercise\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"owner\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Exercise" - } - } - }, - "Outputs": { - "GetAttExerciseTableStreamArn": { - "Description": "Your DynamoDB table StreamArn.", - "Value": { - "Fn::GetAtt": [ - "ExerciseTable", - "StreamArn" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:ExerciseTable:StreamArn" - ] - ] - } - } - }, - "GetAttExerciseTableName": { - "Description": "Your DynamoDB table name.", - "Value": { - "Ref": "ExerciseTable" - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:ExerciseTable:Name" - ] - ] - } - } - }, - "GetAttExerciseDataSourceName": { - "Description": "Your model DataSource name.", - "Value": { - "Fn::GetAtt": [ - "ExerciseDataSource", - "Name" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:ExerciseDataSource:Name" - ] - ] - } - } - }, - "transformerrootstackExerciseExerciseDataSourceE8B787D0Name": { - "Value": { - "Fn::GetAtt": [ - "ExerciseDataSource", - "Name" - ] - } - }, - "transformerrootstackExerciseExerciseTable2F3E478ERef": { - "Value": { - "Ref": "ExerciseTable" - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Meal-PHGUK3IXO0QL.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Meal-PHGUK3IXO0QL.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Meal-PHGUK3IXO0QL.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Meal-PHGUK3IXO0QL.outputs.json deleted file mode 100644 index c2ec65f8932..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Meal-PHGUK3IXO0QL.outputs.json +++ /dev/null @@ -1,20 +0,0 @@ -[ - { - "OutputKey": "GetAttMealTableName", - "OutputValue": "Meal-jzwb5p2vcbd2ldlnlxokgjcjby-main", - "Description": "Your DynamoDB table name.", - "ExportName": "jzwb5p2vcbd2ldlnlxokgjcjby:GetAtt:MealTable:Name" - }, - { - "OutputKey": "GetAttMealDataSourceName", - "OutputValue": "MealTable", - "Description": "Your model DataSource name.", - "ExportName": "jzwb5p2vcbd2ldlnlxokgjcjby:GetAtt:MealDataSource:Name" - }, - { - "OutputKey": "GetAttMealTableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Meal-jzwb5p2vcbd2ldlnlxokgjcjby-main/stream/2026-03-24T03:05:11.935", - "Description": "Your DynamoDB table StreamArn.", - "ExportName": "jzwb5p2vcbd2ldlnlxokgjcjby:GetAtt:MealTable:StreamArn" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Meal-PHGUK3IXO0QL.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Meal-PHGUK3IXO0QL.parameters.json deleted file mode 100644 index fb60a11041e..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Meal-PHGUK3IXO0QL.parameters.json +++ /dev/null @@ -1,58 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", - "ParameterValue": "amplify-appsync-files/67310f5f0a68cc163f9cc58da56e1409a2c21b1d" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", - "ParameterValue": "jzwb5p2vcbd2ldlnlxokgjcjby" - }, - { - "ParameterKey": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId", - "ParameterValue": "azpojmlshjb33hbzmjtsne6eke" - }, - { - "ParameterKey": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId", - "ParameterValue": "fws4doskqbag7dbslx7eygyckq" - }, - { - "ParameterKey": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId", - "ParameterValue": "cdecyw7rljhx7kqioiulvfozuq" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "false" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", - "ParameterValue": "amplify-fitnesstracker-main-a0537-deployment" - }, - { - "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", - "ParameterValue": "main" - }, - { - "ParameterKey": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyn4D846E8C", - "ParameterValue": "bsbxi7b5m5hnjh55tvtvnd55tq" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Meal-PHGUK3IXO0QL.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Meal-PHGUK3IXO0QL.template.json deleted file mode 100644 index 0ab887347e8..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-Meal-PHGUK3IXO0QL.template.json +++ /dev/null @@ -1,1239 +0,0 @@ -{ - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "referencetotransformerrootstackenv10C5A902Ref": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Type": "String" - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId": { - "Type": "String" - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId": { - "Type": "String" - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId": { - "Type": "String" - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyn4D846E8C": { - "Type": "String" - } - }, - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - }, - "NONE" - ] - } - ] - }, - "ShouldUseServerSideEncryption": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "true" - ] - }, - "ShouldUsePayPerRequestBilling": { - "Fn::Equals": [ - { - "Ref": "DynamoDBBillingMode" - }, - "PAY_PER_REQUEST" - ] - }, - "ShouldUsePointInTimeRecovery": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "true" - ] - } - }, - "Resources": { - "MealTable": { - "Type": "AWS::DynamoDB::Table", - "Properties": { - "AttributeDefinitions": [ - { - "AttributeName": "id", - "AttributeType": "S" - } - ], - "BillingMode": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - "PAY_PER_REQUEST", - { - "Ref": "AWS::NoValue" - } - ] - }, - "KeySchema": [ - { - "AttributeName": "id", - "KeyType": "HASH" - } - ], - "PointInTimeRecoverySpecification": { - "Fn::If": [ - "ShouldUsePointInTimeRecovery", - { - "PointInTimeRecoveryEnabled": true - }, - { - "Ref": "AWS::NoValue" - } - ] - }, - "ProvisionedThroughput": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - { - "Ref": "AWS::NoValue" - }, - { - "ReadCapacityUnits": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "WriteCapacityUnits": { - "Ref": "DynamoDBModelTableWriteIOPS" - } - } - ] - }, - "SSESpecification": { - "SSEEnabled": { - "Fn::If": [ - "ShouldUseServerSideEncryption", - true, - false - ] - } - }, - "StreamSpecification": { - "StreamViewType": "NEW_AND_OLD_IMAGES" - }, - "TableName": { - "Fn::Join": [ - "", - [ - "Meal-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete" - }, - "MealIAMRoleEDE19E15": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:DeleteItem", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:Query", - "dynamodb:UpdateItem", - "dynamodb:ConditionCheckItem", - "dynamodb:DescribeTable", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", - { - "tablename": { - "Fn::Join": [ - "", - [ - "Meal-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - ] - }, - { - "Fn::Sub": [ - "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", - { - "tablename": { - "Fn::Join": [ - "", - [ - "Meal-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "DynamoDBAccess" - } - ], - "RoleName": { - "Fn::Join": [ - "", - [ - "MealIAMRole54b7fd-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - }, - "MealIAMRoleDefaultPolicyDA5A2781": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator", - "dynamodb:Query", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:ConditionCheckItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:UpdateItem", - "dynamodb:DeleteItem", - "dynamodb:DescribeTable" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "MealTable", - "Arn" - ] - }, - { - "Ref": "AWS::NoValue" - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "MealIAMRoleDefaultPolicyDA5A2781", - "Roles": [ - { - "Ref": "MealIAMRoleEDE19E15" - } - ] - } - }, - "MealDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DynamoDBConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "TableName": { - "Ref": "MealTable" - } - }, - "Name": "MealTable", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "MealIAMRoleEDE19E15", - "Arn" - ] - }, - "Type": "AMAZON_DYNAMODB" - }, - "DependsOn": [ - "MealIAMRoleEDE19E15" - ] - }, - "QuerygetMealauth0FunctionQuerygetMealauth0FunctionAppSyncFunction3EC25F21": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetMealauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getMeal.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "QueryGetMealDataResolverFnQueryGetMealDataResolverFnAppSyncFunction8B80E67B": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "MealDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryGetMealDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getMeal.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getMeal.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "MealDataSource" - ] - }, - "GetMealResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "getMeal", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerygetMealauth0FunctionQuerygetMealauth0FunctionAppSyncFunction3EC25F21", - "FunctionId" - ] - }, - { - "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" - }, - { - "Fn::GetAtt": [ - "QueryGetMealDataResolverFnQueryGetMealDataResolverFnAppSyncFunction8B80E67B", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getMeal\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "MealTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - } - }, - "QueryListMealsDataResolverFnQueryListMealsDataResolverFnAppSyncFunction3EE87F58": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "MealDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryListMealsDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.listMeals.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.listMeals.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "MealDataSource" - ] - }, - "ListMealResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "listMeals", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerygetMealauth0FunctionQuerygetMealauth0FunctionAppSyncFunction3EC25F21", - "FunctionId" - ] - }, - { - "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" - }, - { - "Fn::GetAtt": [ - "QueryListMealsDataResolverFnQueryListMealsDataResolverFnAppSyncFunction3EE87F58", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listMeals\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "MealTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - } - }, - "MutationcreateMealauth0FunctionMutationcreateMealauth0FunctionAppSyncFunction746792DB": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateMealauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createMeal.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "MutationCreateMealDataResolverFnMutationCreateMealDataResolverFnAppSyncFunction3A7E3265": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "MealDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationCreateMealDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createMeal.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createMeal.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "MealDataSource" - ] - }, - "CreateMealResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "createMeal", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId" - }, - { - "Fn::GetAtt": [ - "MutationcreateMealauth0FunctionMutationcreateMealauth0FunctionAppSyncFunction746792DB", - "FunctionId" - ] - }, - { - "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" - }, - { - "Fn::GetAtt": [ - "MutationCreateMealDataResolverFnMutationCreateMealDataResolverFnAppSyncFunction3A7E3265", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createMeal\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "MealTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "MutationupdateMealauth0FunctionMutationupdateMealauth0FunctionAppSyncFunctionEFC9C205": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "MealDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateMealauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateMeal.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateMeal.auth.1.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "MealDataSource" - ] - }, - "MutationUpdateMealDataResolverFnMutationUpdateMealDataResolverFnAppSyncFunction7CE88037": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "MealDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationUpdateMealDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateMeal.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateMeal.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "MealDataSource" - ] - }, - "UpdateMealResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "updateMeal", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId" - }, - { - "Fn::GetAtt": [ - "MutationupdateMealauth0FunctionMutationupdateMealauth0FunctionAppSyncFunctionEFC9C205", - "FunctionId" - ] - }, - { - "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" - }, - { - "Fn::GetAtt": [ - "MutationUpdateMealDataResolverFnMutationUpdateMealDataResolverFnAppSyncFunction7CE88037", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateMeal\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "MealTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "MutationdeleteMealauth0FunctionMutationdeleteMealauth0FunctionAppSyncFunction5A3C8FCE": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "MealDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeleteMealauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteMeal.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteMeal.auth.1.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "MealDataSource" - ] - }, - "MutationDeleteMealDataResolverFnMutationDeleteMealDataResolverFnAppSyncFunctionB6415754": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "MealDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationDeleteMealDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteMeal.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteMeal.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "MealDataSource" - ] - }, - "DeleteMealResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "deleteMeal", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationdeleteMealauth0FunctionMutationdeleteMealauth0FunctionAppSyncFunction5A3C8FCE", - "FunctionId" - ] - }, - { - "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" - }, - { - "Fn::GetAtt": [ - "MutationDeleteMealDataResolverFnMutationDeleteMealDataResolverFnAppSyncFunctionB6415754", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteMeal\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "MealTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "SubscriptiononCreateMealauth0FunctionSubscriptiononCreateMealauth0FunctionAppSyncFunction8AF26F94": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononCreateMealauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Subscription.onCreateMeal.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "SubscriptiononCreateMealResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onCreateMeal", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononCreateMealauth0FunctionSubscriptiononCreateMealauth0FunctionAppSyncFunction8AF26F94", - "FunctionId" - ] - }, - { - "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" - }, - { - "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyn4D846E8C" - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateMeal\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - }, - "SubscriptiononUpdateMealResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onUpdateMeal", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononCreateMealauth0FunctionSubscriptiononCreateMealauth0FunctionAppSyncFunction8AF26F94", - "FunctionId" - ] - }, - { - "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" - }, - { - "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyn4D846E8C" - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateMeal\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - }, - "SubscriptiononDeleteMealResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onDeleteMeal", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononCreateMealauth0FunctionSubscriptiononCreateMealauth0FunctionAppSyncFunction8AF26F94", - "FunctionId" - ] - }, - { - "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" - }, - { - "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyn4D846E8C" - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteMeal\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - } - }, - "Outputs": { - "GetAttMealTableStreamArn": { - "Description": "Your DynamoDB table StreamArn.", - "Value": { - "Fn::GetAtt": [ - "MealTable", - "StreamArn" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:MealTable:StreamArn" - ] - ] - } - } - }, - "GetAttMealTableName": { - "Description": "Your DynamoDB table name.", - "Value": { - "Ref": "MealTable" - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:MealTable:Name" - ] - ] - } - } - }, - "GetAttMealDataSourceName": { - "Description": "Your model DataSource name.", - "Value": { - "Fn::GetAtt": [ - "MealDataSource", - "Name" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:MealDataSource:Name" - ] - ] - } - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-WorkoutProgram-DSQSG720758E.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-WorkoutProgram-DSQSG720758E.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-WorkoutProgram-DSQSG720758E.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-WorkoutProgram-DSQSG720758E.outputs.json deleted file mode 100644 index 9f9b1cb8cc5..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-WorkoutProgram-DSQSG720758E.outputs.json +++ /dev/null @@ -1,48 +0,0 @@ -[ - { - "OutputKey": "transformerrootstackWorkoutProgramQuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunction8D95BFD8FunctionId", - "OutputValue": "7rhd6ral6railaajcfswqeadf4" - }, - { - "OutputKey": "transformerrootstackWorkoutProgramSubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncFunction55BF88AFFunctionId", - "OutputValue": "p4zgtsdhtfd5plnqeuyw434jry" - }, - { - "OutputKey": "GetAttWorkoutProgramTableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/WorkoutProgram-jzwb5p2vcbd2ldlnlxokgjcjby-main/stream/2026-03-24T03:04:23.623", - "Description": "Your DynamoDB table StreamArn.", - "ExportName": "jzwb5p2vcbd2ldlnlxokgjcjby:GetAtt:WorkoutProgramTable:StreamArn" - }, - { - "OutputKey": "transformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId", - "OutputValue": "fws4doskqbag7dbslx7eygyckq" - }, - { - "OutputKey": "GetAttWorkoutProgramTableName", - "OutputValue": "WorkoutProgram-jzwb5p2vcbd2ldlnlxokgjcjby-main", - "Description": "Your DynamoDB table name.", - "ExportName": "jzwb5p2vcbd2ldlnlxokgjcjby:GetAtt:WorkoutProgramTable:Name" - }, - { - "OutputKey": "transformerrootstackWorkoutProgramWorkoutProgramOwnerDataResolverFnWorkoutProgramOwnerDataResolverFnAppSyncFunctionB902B95DFunctionId", - "OutputValue": "c3jrt4vcd5cfbirsv2pukwfqt4" - }, - { - "OutputKey": "GetAttWorkoutProgramDataSourceName", - "OutputValue": "WorkoutProgramTable", - "Description": "Your model DataSource name.", - "ExportName": "jzwb5p2vcbd2ldlnlxokgjcjby:GetAtt:WorkoutProgramDataSource:Name" - }, - { - "OutputKey": "transformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId", - "OutputValue": "azpojmlshjb33hbzmjtsne6eke" - }, - { - "OutputKey": "transformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyncFunctionE9212A4DFunctionId", - "OutputValue": "bsbxi7b5m5hnjh55tvtvnd55tq" - }, - { - "OutputKey": "transformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId", - "OutputValue": "cdecyw7rljhx7kqioiulvfozuq" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-WorkoutProgram-DSQSG720758E.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-WorkoutProgram-DSQSG720758E.parameters.json deleted file mode 100644 index 7ab6bc5b463..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-WorkoutProgram-DSQSG720758E.parameters.json +++ /dev/null @@ -1,42 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", - "ParameterValue": "amplify-appsync-files/67310f5f0a68cc163f9cc58da56e1409a2c21b1d" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "false" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", - "ParameterValue": "jzwb5p2vcbd2ldlnlxokgjcjby" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", - "ParameterValue": "amplify-fitnesstracker-main-a0537-deployment" - }, - { - "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", - "ParameterValue": "main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-WorkoutProgram-DSQSG720758E.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-WorkoutProgram-DSQSG720758E.template.json deleted file mode 100644 index 5e3c935a32f..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX-WorkoutProgram-DSQSG720758E.template.json +++ /dev/null @@ -1,1536 +0,0 @@ -{ - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "referencetotransformerrootstackenv10C5A902Ref": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Type": "String" - } - }, - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - }, - "NONE" - ] - } - ] - }, - "ShouldUseServerSideEncryption": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "true" - ] - }, - "ShouldUsePayPerRequestBilling": { - "Fn::Equals": [ - { - "Ref": "DynamoDBBillingMode" - }, - "PAY_PER_REQUEST" - ] - }, - "ShouldUsePointInTimeRecovery": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "true" - ] - } - }, - "Resources": { - "WorkoutProgramTable": { - "Type": "AWS::DynamoDB::Table", - "Properties": { - "AttributeDefinitions": [ - { - "AttributeName": "id", - "AttributeType": "S" - } - ], - "BillingMode": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - "PAY_PER_REQUEST", - { - "Ref": "AWS::NoValue" - } - ] - }, - "KeySchema": [ - { - "AttributeName": "id", - "KeyType": "HASH" - } - ], - "PointInTimeRecoverySpecification": { - "Fn::If": [ - "ShouldUsePointInTimeRecovery", - { - "PointInTimeRecoveryEnabled": true - }, - { - "Ref": "AWS::NoValue" - } - ] - }, - "ProvisionedThroughput": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - { - "Ref": "AWS::NoValue" - }, - { - "ReadCapacityUnits": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "WriteCapacityUnits": { - "Ref": "DynamoDBModelTableWriteIOPS" - } - } - ] - }, - "SSESpecification": { - "SSEEnabled": { - "Fn::If": [ - "ShouldUseServerSideEncryption", - true, - false - ] - } - }, - "StreamSpecification": { - "StreamViewType": "NEW_AND_OLD_IMAGES" - }, - "TableName": { - "Fn::Join": [ - "", - [ - "WorkoutProgram-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete" - }, - "WorkoutProgramIAMRoleB75B98D5": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:DeleteItem", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:Query", - "dynamodb:UpdateItem", - "dynamodb:ConditionCheckItem", - "dynamodb:DescribeTable", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", - { - "tablename": { - "Fn::Join": [ - "", - [ - "WorkoutProgram-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - ] - }, - { - "Fn::Sub": [ - "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", - { - "tablename": { - "Fn::Join": [ - "", - [ - "WorkoutProgram-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "DynamoDBAccess" - } - ], - "RoleName": { - "Fn::Join": [ - "", - [ - "WorkoutProgramIAMRol516c57-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - }, - "WorkoutProgramIAMRoleDefaultPolicy523CB235": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator", - "dynamodb:Query", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:ConditionCheckItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:UpdateItem", - "dynamodb:DeleteItem", - "dynamodb:DescribeTable" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "WorkoutProgramTable", - "Arn" - ] - }, - { - "Ref": "AWS::NoValue" - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "WorkoutProgramIAMRoleDefaultPolicy523CB235", - "Roles": [ - { - "Ref": "WorkoutProgramIAMRoleB75B98D5" - } - ] - } - }, - "WorkoutProgramDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DynamoDBConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "TableName": { - "Ref": "WorkoutProgramTable" - } - }, - "Name": "WorkoutProgramTable", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "WorkoutProgramIAMRoleB75B98D5", - "Arn" - ] - }, - "Type": "AMAZON_DYNAMODB" - }, - "DependsOn": [ - "WorkoutProgramIAMRoleB75B98D5" - ] - }, - "QuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunctionF61649FE": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetWorkoutProgramauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getWorkoutProgram.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "QuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction3557039E": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetWorkoutProgrampostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getWorkoutProgram.postAuth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "QueryGetWorkoutProgramDataResolverFnQueryGetWorkoutProgramDataResolverFnAppSyncFunctionDFD5C9FA": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "WorkoutProgramDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryGetWorkoutProgramDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getWorkoutProgram.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getWorkoutProgram.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "WorkoutProgramDataSource" - ] - }, - "GetWorkoutProgramResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "getWorkoutProgram", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunctionF61649FE", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction3557039E", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryGetWorkoutProgramDataResolverFnQueryGetWorkoutProgramDataResolverFnAppSyncFunctionDFD5C9FA", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getWorkoutProgram\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "WorkoutProgramTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - } - }, - "QueryListWorkoutProgramsDataResolverFnQueryListWorkoutProgramsDataResolverFnAppSyncFunctionC43C9A14": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "WorkoutProgramDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryListWorkoutProgramsDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.listWorkoutPrograms.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.listWorkoutPrograms.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "WorkoutProgramDataSource" - ] - }, - "ListWorkoutProgramResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "listWorkoutPrograms", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunctionF61649FE", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction3557039E", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryListWorkoutProgramsDataResolverFnQueryListWorkoutProgramsDataResolverFnAppSyncFunctionC43C9A14", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listWorkoutPrograms\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "WorkoutProgramTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - } - }, - "MutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD050B3C1": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateWorkoutPrograminit0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createWorkoutProgram.init.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "MutationcreateWorkoutProgramauth0FunctionMutationcreateWorkoutProgramauth0FunctionAppSyncFunction6165E2A5": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateWorkoutProgramauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createWorkoutProgram.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "MutationCreateWorkoutProgramDataResolverFnMutationCreateWorkoutProgramDataResolverFnAppSyncFunction20E77E8E": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "WorkoutProgramDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationCreateWorkoutProgramDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createWorkoutProgram.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createWorkoutProgram.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "WorkoutProgramDataSource" - ] - }, - "CreateWorkoutProgramResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "createWorkoutProgram", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD050B3C1", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationcreateWorkoutProgramauth0FunctionMutationcreateWorkoutProgramauth0FunctionAppSyncFunction6165E2A5", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction3557039E", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationCreateWorkoutProgramDataResolverFnMutationCreateWorkoutProgramDataResolverFnAppSyncFunction20E77E8E", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createWorkoutProgram\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "WorkoutProgramTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "MutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionDF7D6DB3": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateWorkoutPrograminit0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateWorkoutProgram.init.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "MutationupdateWorkoutProgramauth0FunctionMutationupdateWorkoutProgramauth0FunctionAppSyncFunction5B1F99AE": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "WorkoutProgramDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateWorkoutProgramauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateWorkoutProgram.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateWorkoutProgram.auth.1.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "WorkoutProgramDataSource" - ] - }, - "MutationUpdateWorkoutProgramDataResolverFnMutationUpdateWorkoutProgramDataResolverFnAppSyncFunctionC239D12F": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "WorkoutProgramDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationUpdateWorkoutProgramDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateWorkoutProgram.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateWorkoutProgram.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "WorkoutProgramDataSource" - ] - }, - "UpdateWorkoutProgramResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "updateWorkoutProgram", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionDF7D6DB3", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationupdateWorkoutProgramauth0FunctionMutationupdateWorkoutProgramauth0FunctionAppSyncFunction5B1F99AE", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction3557039E", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationUpdateWorkoutProgramDataResolverFnMutationUpdateWorkoutProgramDataResolverFnAppSyncFunctionC239D12F", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateWorkoutProgram\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "WorkoutProgramTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "MutationdeleteWorkoutProgramauth0FunctionMutationdeleteWorkoutProgramauth0FunctionAppSyncFunctionCF8FDD99": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "WorkoutProgramDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeleteWorkoutProgramauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteWorkoutProgram.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteWorkoutProgram.auth.1.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "WorkoutProgramDataSource" - ] - }, - "MutationDeleteWorkoutProgramDataResolverFnMutationDeleteWorkoutProgramDataResolverFnAppSyncFunction57D3FA26": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "WorkoutProgramDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationDeleteWorkoutProgramDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteWorkoutProgram.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteWorkoutProgram.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "WorkoutProgramDataSource" - ] - }, - "DeleteWorkoutProgramResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "deleteWorkoutProgram", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationdeleteWorkoutProgramauth0FunctionMutationdeleteWorkoutProgramauth0FunctionAppSyncFunctionCF8FDD99", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction3557039E", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationDeleteWorkoutProgramDataResolverFnMutationDeleteWorkoutProgramDataResolverFnAppSyncFunction57D3FA26", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteWorkoutProgram\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "WorkoutProgramTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "SubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncFunctionBA1C0577": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononCreateWorkoutProgramauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Subscription.onCreateWorkoutProgram.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "SubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyncFunction4E344723": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnCreateWorkoutProgramDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Subscription.onCreateWorkoutProgram.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Subscription.onCreateWorkoutProgram.res.vtl" - ] - ] - } - } - }, - "SubscriptiononCreateWorkoutProgramResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onCreateWorkoutProgram", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncFunctionBA1C0577", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction3557039E", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyncFunction4E344723", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateWorkoutProgram\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - }, - "SubscriptiononUpdateWorkoutProgramResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onUpdateWorkoutProgram", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncFunctionBA1C0577", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction3557039E", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyncFunction4E344723", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateWorkoutProgram\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - }, - "SubscriptiononDeleteWorkoutProgramResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onDeleteWorkoutProgram", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncFunctionBA1C0577", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction3557039E", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyncFunction4E344723", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteWorkoutProgram\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - }, - "WorkoutProgramOwnerDataResolverFnWorkoutProgramOwnerDataResolverFnAppSyncFunction6C8EE914": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "WorkoutProgramOwnerDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/WorkoutProgram.owner.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/WorkoutProgram.owner.res.vtl" - ] - ] - } - } - }, - "WorkoutProgramownerResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "owner", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "WorkoutProgramOwnerDataResolverFnWorkoutProgramOwnerDataResolverFnAppSyncFunction6C8EE914", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"WorkoutProgram\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"owner\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "WorkoutProgram" - } - } - }, - "Outputs": { - "GetAttWorkoutProgramTableStreamArn": { - "Description": "Your DynamoDB table StreamArn.", - "Value": { - "Fn::GetAtt": [ - "WorkoutProgramTable", - "StreamArn" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:WorkoutProgramTable:StreamArn" - ] - ] - } - } - }, - "GetAttWorkoutProgramTableName": { - "Description": "Your DynamoDB table name.", - "Value": { - "Ref": "WorkoutProgramTable" - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:WorkoutProgramTable:Name" - ] - ] - } - } - }, - "GetAttWorkoutProgramDataSourceName": { - "Description": "Your model DataSource name.", - "Value": { - "Fn::GetAtt": [ - "WorkoutProgramDataSource", - "Name" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:WorkoutProgramDataSource:Name" - ] - ] - } - } - }, - "transformerrootstackWorkoutProgramQuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunction8D95BFD8FunctionId": { - "Value": { - "Fn::GetAtt": [ - "QuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunctionF61649FE", - "FunctionId" - ] - } - }, - "transformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId": { - "Value": { - "Fn::GetAtt": [ - "QuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction3557039E", - "FunctionId" - ] - } - }, - "transformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId": { - "Value": { - "Fn::GetAtt": [ - "MutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD050B3C1", - "FunctionId" - ] - } - }, - "transformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId": { - "Value": { - "Fn::GetAtt": [ - "MutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionDF7D6DB3", - "FunctionId" - ] - } - }, - "transformerrootstackWorkoutProgramSubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncFunction55BF88AFFunctionId": { - "Value": { - "Fn::GetAtt": [ - "SubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncFunctionBA1C0577", - "FunctionId" - ] - } - }, - "transformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyncFunctionE9212A4DFunctionId": { - "Value": { - "Fn::GetAtt": [ - "SubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyncFunction4E344723", - "FunctionId" - ] - } - }, - "transformerrootstackWorkoutProgramWorkoutProgramOwnerDataResolverFnWorkoutProgramOwnerDataResolverFnAppSyncFunctionB902B95DFunctionId": { - "Value": { - "Fn::GetAtt": [ - "WorkoutProgramOwnerDataResolverFnWorkoutProgramOwnerDataResolverFnAppSyncFunction6C8EE914", - "FunctionId" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX.outputs.json deleted file mode 100644 index 028a35d20d0..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX.outputs.json +++ /dev/null @@ -1,20 +0,0 @@ -[ - { - "OutputKey": "GraphQLAPIIdOutput", - "OutputValue": "jzwb5p2vcbd2ldlnlxokgjcjby", - "Description": "Your GraphQL API ID.", - "ExportName": "amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX:GraphQLApiId" - }, - { - "OutputKey": "GraphQLAPIEndpointOutput", - "OutputValue": "https://lqftdnws2zb75jcuwdcmx23wdi.appsync-api.us-east-1.amazonaws.com/graphql", - "Description": "Your GraphQL API endpoint.", - "ExportName": "amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX:GraphQLApiEndpoint" - }, - { - "OutputKey": "GraphQLAPIKeyOutput", - "OutputValue": "da2-fakeapikey00000000000000", - "Description": "Your GraphQL API ID.", - "ExportName": "amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX:GraphQLApiKey" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX.parameters.json deleted file mode 100644 index 989b15c2007..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX.parameters.json +++ /dev/null @@ -1,42 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "false" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "S3DeploymentBucket", - "ParameterValue": "amplify-fitnesstracker-main-a0537-deployment" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "S3DeploymentRootKey", - "ParameterValue": "amplify-appsync-files/67310f5f0a68cc163f9cc58da56e1409a2c21b1d" - }, - { - "ParameterKey": "AppSyncApiName", - "ParameterValue": "fitnesstracker" - }, - { - "ParameterKey": "AuthCognitoUserPoolId", - "ParameterValue": "us-east-1_iguxCIcMS" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX.template.json deleted file mode 100644 index eb461aa7cbb..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apifitnesstracker-103NTH9S45SYX.template.json +++ /dev/null @@ -1,608 +0,0 @@ -{ - "Parameters": { - "env": { - "Type": "String", - "Default": "NONE" - }, - "AppSyncApiName": { - "Type": "String", - "Default": "AppSyncSimpleTransform" - }, - "AuthCognitoUserPoolId": { - "Type": "String" - }, - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "S3DeploymentBucket": { - "Type": "String", - "Description": "An S3 Bucket name where assets are deployed" - }, - "S3DeploymentRootKey": { - "Type": "String", - "Description": "An S3 key relative to the S3DeploymentBucket that points to the root of the deployment directory." - } - }, - "Resources": { - "GraphQLAPI": { - "Type": "AWS::AppSync::GraphQLApi", - "Properties": { - "AdditionalAuthenticationProviders": [ - { - "AuthenticationType": "API_KEY" - } - ], - "AuthenticationType": "AMAZON_COGNITO_USER_POOLS", - "Name": { - "Fn::Join": [ - "", - [ - { - "Ref": "AppSyncApiName" - }, - "-", - { - "Ref": "env" - } - ] - ] - }, - "UserPoolConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "DefaultAction": "ALLOW", - "UserPoolId": { - "Ref": "AuthCognitoUserPoolId" - } - } - } - }, - "GraphQLAPITransformerSchema3CB2AE18": { - "Type": "AWS::AppSync::GraphQLSchema", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "DefinitionS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/schema.graphql" - ] - ] - } - } - }, - "GraphQLAPIDefaultApiKey215A6DD7": { - "Type": "AWS::AppSync::ApiKey", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "Description": "graphql", - "Expires": 1774926795 - } - }, - "GraphQLAPINONEDS95A13CF0": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "Description": "None Data Source for Pipeline functions", - "Name": "NONE_DS", - "Type": "NONE" - } - }, - "WorkoutProgram": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "DynamoDBModelTableWriteIOPS": { - "Ref": "DynamoDBModelTableWriteIOPS" - }, - "DynamoDBBillingMode": { - "Ref": "DynamoDBBillingMode" - }, - "DynamoDBEnablePointInTimeRecovery": { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "DynamoDBEnableServerSideEncryption": { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "referencetotransformerrootstackenv10C5A902Ref": { - "Ref": "env" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Ref": "S3DeploymentBucket" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Ref": "S3DeploymentRootKey" - } - }, - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/stacks/WorkoutProgram.json" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "Exercise": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "DynamoDBModelTableWriteIOPS": { - "Ref": "DynamoDBModelTableWriteIOPS" - }, - "DynamoDBBillingMode": { - "Ref": "DynamoDBBillingMode" - }, - "DynamoDBEnablePointInTimeRecovery": { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "DynamoDBEnableServerSideEncryption": { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "referencetotransformerrootstackenv10C5A902Ref": { - "Ref": "env" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Ref": "S3DeploymentBucket" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Ref": "S3DeploymentRootKey" - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunction8D95BFD8FunctionId": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramQuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunction8D95BFD8FunctionId" - ] - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" - ] - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId" - ] - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId" - ] - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncF52D36F4F": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramSubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncFunction55BF88AFFunctionId" - ] - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyn4D846E8C": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyncFunctionE9212A4DFunctionId" - ] - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramWorkoutProgramOwnerDataResolverFnWorkoutProgramOwnerDataResolverFnAppSyncFunctionB902B95DFunctionId": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramWorkoutProgramOwnerDataResolverFnWorkoutProgramOwnerDataResolverFnAppSyncFunctionB902B95DFunctionId" - ] - } - }, - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/stacks/Exercise.json" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "Meal": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "DynamoDBModelTableWriteIOPS": { - "Ref": "DynamoDBModelTableWriteIOPS" - }, - "DynamoDBBillingMode": { - "Ref": "DynamoDBBillingMode" - }, - "DynamoDBEnablePointInTimeRecovery": { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "DynamoDBEnableServerSideEncryption": { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "referencetotransformerrootstackenv10C5A902Ref": { - "Ref": "env" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Ref": "S3DeploymentBucket" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Ref": "S3DeploymentRootKey" - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" - ] - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId" - ] - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId" - ] - }, - "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyn4D846E8C": { - "Fn::GetAtt": [ - "WorkoutProgram", - "Outputs.transformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyncFunctionE9212A4DFunctionId" - ] - } - }, - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/stacks/Meal.json" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "ConnectionStack": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Ref": "S3DeploymentBucket" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Ref": "S3DeploymentRootKey" - }, - "referencetotransformerrootstackExerciseNestedStackExerciseNestedStackResourceA190CF68OutputstransformerrootstackExerciseExerciseDataSourceE8B787D0Name": { - "Fn::GetAtt": [ - "Exercise", - "Outputs.transformerrootstackExerciseExerciseDataSourceE8B787D0Name" - ] - }, - "referencetotransformerrootstackExerciseNestedStackExerciseNestedStackResourceA190CF68OutputstransformerrootstackExerciseExerciseTable2F3E478ERef": { - "Fn::GetAtt": [ - "Exercise", - "Outputs.transformerrootstackExerciseExerciseTable2F3E478ERef" - ] - } - }, - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/stacks/ConnectionStack.json" - ] - ] - } - }, - "DependsOn": [ - "Exercise", - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "CustomResourcesjson": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "AppSyncApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "AppSyncApiName": { - "Ref": "AppSyncApiName" - }, - "env": { - "Ref": "env" - }, - "S3DeploymentBucket": { - "Ref": "S3DeploymentBucket" - }, - "S3DeploymentRootKey": { - "Ref": "S3DeploymentRootKey" - } - }, - "TemplateURL": { - "Fn::Join": [ - "/", - [ - "https://s3.amazonaws.com", - { - "Ref": "S3DeploymentBucket" - }, - { - "Ref": "S3DeploymentRootKey" - }, - "stacks", - "CustomResources.json" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPI", - "GraphQLAPITransformerSchema3CB2AE18", - "WorkoutProgram", - "Exercise", - "Meal", - "ConnectionStack" - ] - } - }, - "Outputs": { - "GraphQLAPIKeyOutput": { - "Description": "Your GraphQL API ID.", - "Value": { - "Fn::GetAtt": [ - "GraphQLAPIDefaultApiKey215A6DD7", - "ApiKey" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "AWS::StackName" - }, - "GraphQLApiKey" - ] - ] - } - } - }, - "GraphQLAPIIdOutput": { - "Description": "Your GraphQL API ID.", - "Value": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "AWS::StackName" - }, - "GraphQLApiId" - ] - ] - } - } - }, - "GraphQLAPIEndpointOutput": { - "Description": "Your GraphQL API endpoint.", - "Value": { - "Fn::GetAtt": [ - "GraphQLAPI", - "GraphQLUrl" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "AWS::StackName" - }, - "GraphQLApiEndpoint" - ] - ] - } - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apinutritionapi-HLNAE81TRC4B.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apinutritionapi-HLNAE81TRC4B.description.txt deleted file mode 100644 index b239f7a9170..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apinutritionapi-HLNAE81TRC4B.description.txt +++ /dev/null @@ -1 +0,0 @@ -API Gateway Resource for AWS Amplify CLI \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apinutritionapi-HLNAE81TRC4B.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apinutritionapi-HLNAE81TRC4B.outputs.json deleted file mode 100644 index 7c901a65dec..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apinutritionapi-HLNAE81TRC4B.outputs.json +++ /dev/null @@ -1,17 +0,0 @@ -[ - { - "OutputKey": "ApiName", - "OutputValue": "nutritionapi", - "Description": "API Friendly name" - }, - { - "OutputKey": "RootUrl", - "OutputValue": "https://hmydcaubcb.execute-api.us-east-1.amazonaws.com/main", - "Description": "Root URL of the API gateway" - }, - { - "OutputKey": "ApiId", - "OutputValue": "hmydcaubcb", - "Description": "API ID (prefix of API URL)" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apinutritionapi-HLNAE81TRC4B.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apinutritionapi-HLNAE81TRC4B.parameters.json deleted file mode 100644 index 2805d4489d2..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apinutritionapi-HLNAE81TRC4B.parameters.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "ParameterKey": "functionlognutritionArn", - "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:lognutrition-main" - }, - { - "ParameterKey": "authfitnesstracker33f5545533f55455UserPoolId", - "ParameterValue": "us-east-1_iguxCIcMS" - }, - { - "ParameterKey": "functionlognutritionName", - "ParameterValue": "lognutrition-main" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "authuserPoolGroupsAdminGroupRole", - "ParameterValue": "arn:aws:iam::123456789012:role/us-east-1_iguxCIcMS-AdminGroupRole" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apinutritionapi-HLNAE81TRC4B.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apinutritionapi-HLNAE81TRC4B.template.json deleted file mode 100644 index eaa3ad7fcfe..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-apinutritionapi-HLNAE81TRC4B.template.json +++ /dev/null @@ -1,772 +0,0 @@ -{ - "Description": "API Gateway Resource for AWS Amplify CLI", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "authfitnesstracker33f5545533f55455UserPoolId": { - "Type": "String", - "Default": "authfitnesstracker33f5545533f55455UserPoolId" - }, - "authuserPoolGroupsAdminGroupRole": { - "Type": "String", - "Default": "authuserPoolGroupsAdminGroupRole" - }, - "functionlognutritionName": { - "Type": "String", - "Default": "functionlognutritionName" - }, - "functionlognutritionArn": { - "Type": "String", - "Default": "functionlognutritionArn" - }, - "env": { - "Type": "String" - } - }, - "Resources": { - "AdminGroupnutritionlogPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "execute-api:Invoke", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":", - { - "Ref": "nutritionapi" - }, - "/", - { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "Prod", - { - "Ref": "env" - } - ] - }, - "/POST/nutrition/log" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":", - { - "Ref": "nutritionapi" - }, - "/", - { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "Prod", - { - "Ref": "env" - } - ] - }, - "/GET/nutrition/log" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":", - { - "Ref": "nutritionapi" - }, - "/", - { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "Prod", - { - "Ref": "env" - } - ] - }, - "/PUT/nutrition/log" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":", - { - "Ref": "nutritionapi" - }, - "/", - { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "Prod", - { - "Ref": "env" - } - ] - }, - "/PATCH/nutrition/log" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":", - { - "Ref": "nutritionapi" - }, - "/", - { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "Prod", - { - "Ref": "env" - } - ] - }, - "/DELETE/nutrition/log" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":", - { - "Ref": "nutritionapi" - }, - "/", - { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "Prod", - { - "Ref": "env" - } - ] - }, - "/POST/nutrition/log/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":", - { - "Ref": "nutritionapi" - }, - "/", - { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "Prod", - { - "Ref": "env" - } - ] - }, - "/GET/nutrition/log/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":", - { - "Ref": "nutritionapi" - }, - "/", - { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "Prod", - { - "Ref": "env" - } - ] - }, - "/PUT/nutrition/log/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":", - { - "Ref": "nutritionapi" - }, - "/", - { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "Prod", - { - "Ref": "env" - } - ] - }, - "/PATCH/nutrition/log/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":", - { - "Ref": "nutritionapi" - }, - "/", - { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "Prod", - { - "Ref": "env" - } - ] - }, - "/DELETE/nutrition/log/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "nutritionapi-nutritionlog-Admin-group-policy", - "Roles": [ - { - "Fn::Join": [ - "-", - [ - { - "Ref": "authfitnesstracker33f5545533f55455UserPoolId" - }, - "AdminGroupRole" - ] - ] - } - ] - } - }, - "functionlognutritionPermissionnutritionapi": { - "Type": "AWS::Lambda::Permission", - "Properties": { - "Action": "lambda:InvokeFunction", - "FunctionName": { - "Ref": "functionlognutritionName" - }, - "Principal": "apigateway.amazonaws.com", - "SourceArn": { - "Fn::Join": [ - "", - [ - "arn:aws:execute-api:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":", - { - "Ref": "nutritionapi" - }, - "/*/*/*" - ] - ] - } - } - }, - "nutritionapi": { - "Type": "AWS::ApiGateway::RestApi", - "Properties": { - "Body": { - "swagger": "2.0", - "info": { - "version": "2018-05-24T17:52:00Z", - "title": "nutritionapi" - }, - "host": { - "Fn::Join": [ - "", - [ - "apigateway.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com" - ] - ] - }, - "basePath": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "/Prod", - { - "Fn::Join": [ - "", - [ - "/", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "schemes": [ - "https" - ], - "paths": { - "/nutrition/log": { - "options": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "responses": { - "200": { - "description": "200 response", - "headers": { - "Access-Control-Allow-Origin": { - "type": "string" - }, - "Access-Control-Allow-Methods": { - "type": "string" - }, - "Access-Control-Allow-Headers": { - "type": "string" - } - } - } - }, - "x-amazon-apigateway-integration": { - "responses": { - "default": { - "statusCode": "200", - "responseParameters": { - "method.response.header.Access-Control-Allow-Methods": "'DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT'", - "method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token,X-Amz-User-Agent'", - "method.response.header.Access-Control-Allow-Origin": "'*'" - } - } - }, - "requestTemplates": { - "application/json": "{\"statusCode\": 200}" - }, - "passthroughBehavior": "when_no_match", - "type": "mock" - } - }, - "x-amazon-apigateway-any-method": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "parameters": [ - { - "in": "body", - "name": "RequestSchema", - "required": false, - "schema": { - "$ref": "#/definitions/RequestSchema" - } - } - ], - "responses": { - "200": { - "description": "200 response", - "schema": { - "$ref": "#/definitions/ResponseSchema" - } - } - }, - "x-amazon-apigateway-integration": { - "responses": { - "default": { - "statusCode": "200" - } - }, - "uri": { - "Fn::Join": [ - "", - [ - "arn:aws:apigateway:", - { - "Ref": "AWS::Region" - }, - ":lambda:path/2015-03-31/functions/", - { - "Ref": "functionlognutritionArn" - }, - "/invocations" - ] - ] - }, - "passthroughBehavior": "when_no_match", - "httpMethod": "POST", - "type": "aws_proxy" - }, - "security": [ - { - "sigv4": [] - } - ] - } - }, - "/nutrition/log/{proxy+}": { - "options": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "responses": { - "200": { - "description": "200 response", - "headers": { - "Access-Control-Allow-Origin": { - "type": "string" - }, - "Access-Control-Allow-Methods": { - "type": "string" - }, - "Access-Control-Allow-Headers": { - "type": "string" - } - } - } - }, - "x-amazon-apigateway-integration": { - "responses": { - "default": { - "statusCode": "200", - "responseParameters": { - "method.response.header.Access-Control-Allow-Methods": "'DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT'", - "method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token,X-Amz-User-Agent'", - "method.response.header.Access-Control-Allow-Origin": "'*'" - } - } - }, - "requestTemplates": { - "application/json": "{\"statusCode\": 200}" - }, - "passthroughBehavior": "when_no_match", - "type": "mock" - } - }, - "x-amazon-apigateway-any-method": { - "consumes": [ - "application/json" - ], - "produces": [ - "application/json" - ], - "parameters": [ - { - "in": "body", - "name": "RequestSchema", - "required": false, - "schema": { - "$ref": "#/definitions/RequestSchema" - } - } - ], - "responses": { - "200": { - "description": "200 response", - "schema": { - "$ref": "#/definitions/ResponseSchema" - } - } - }, - "x-amazon-apigateway-integration": { - "responses": { - "default": { - "statusCode": "200" - } - }, - "uri": { - "Fn::Join": [ - "", - [ - "arn:aws:apigateway:", - { - "Ref": "AWS::Region" - }, - ":lambda:path/2015-03-31/functions/", - { - "Ref": "functionlognutritionArn" - }, - "/invocations" - ] - ] - }, - "passthroughBehavior": "when_no_match", - "httpMethod": "POST", - "type": "aws_proxy" - }, - "security": [ - { - "sigv4": [] - } - ] - } - } - }, - "securityDefinitions": { - "sigv4": { - "type": "apiKey", - "name": "Authorization", - "in": "header", - "x-amazon-apigateway-authtype": "awsSigv4" - } - }, - "definitions": { - "RequestSchema": { - "type": "object", - "required": [ - "request" - ], - "properties": { - "request": { - "type": "string" - } - }, - "title": "Request Schema" - }, - "ResponseSchema": { - "type": "object", - "required": [ - "response" - ], - "properties": { - "response": { - "type": "string" - } - }, - "title": "Response Schema" - } - } - }, - "Description": "", - "FailOnWarnings": true, - "Name": "nutritionapi" - } - }, - "nutritionapiDefault4XXResponse59d8037a": { - "Type": "AWS::ApiGateway::GatewayResponse", - "Properties": { - "ResponseParameters": { - "gatewayresponse.header.Access-Control-Allow-Origin": "'*'", - "gatewayresponse.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token'", - "gatewayresponse.header.Access-Control-Allow-Methods": "'DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT'", - "gatewayresponse.header.Access-Control-Expose-Headers": "'Date,X-Amzn-ErrorType'" - }, - "ResponseType": "DEFAULT_4XX", - "RestApiId": { - "Ref": "nutritionapi" - } - } - }, - "nutritionapiDefault5XXResponse59d8037a": { - "Type": "AWS::ApiGateway::GatewayResponse", - "Properties": { - "ResponseParameters": { - "gatewayresponse.header.Access-Control-Allow-Origin": "'*'", - "gatewayresponse.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token'", - "gatewayresponse.header.Access-Control-Allow-Methods": "'DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT'", - "gatewayresponse.header.Access-Control-Expose-Headers": "'Date,X-Amzn-ErrorType'" - }, - "ResponseType": "DEFAULT_5XX", - "RestApiId": { - "Ref": "nutritionapi" - } - } - }, - "DeploymentAPIGWnutritionapi633ac738": { - "Type": "AWS::ApiGateway::Deployment", - "Properties": { - "Description": "The Development stage deployment of your API.", - "RestApiId": { - "Ref": "nutritionapi" - }, - "StageName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "Prod", - { - "Ref": "env" - } - ] - } - }, - "DependsOn": [ - "nutritionapiDefault4XXResponse59d8037a", - "nutritionapiDefault5XXResponse59d8037a" - ] - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - }, - "Outputs": { - "RootUrl": { - "Description": "Root URL of the API gateway", - "Value": { - "Fn::Join": [ - "", - [ - "https://", - { - "Ref": "nutritionapi" - }, - ".execute-api.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "Prod", - { - "Ref": "env" - } - ] - } - ] - ] - } - }, - "ApiName": { - "Description": "API Friendly name", - "Value": "nutritionapi" - }, - "ApiId": { - "Description": "API ID (prefix of API URL)", - "Value": { - "Ref": "nutritionapi" - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.description.txt deleted file mode 100644 index 28ba956271c..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"auth-Cognito","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.outputs.json deleted file mode 100644 index 38dc79f5baf..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.outputs.json +++ /dev/null @@ -1,35 +0,0 @@ -[ - { - "OutputKey": "UserPoolId", - "OutputValue": "us-east-1_iguxCIcMS", - "Description": "Id for the user pool" - }, - { - "OutputKey": "AppClientIDWeb", - "OutputValue": "29bubgvfbbqkp4k60rl7oaqd8s", - "Description": "The user pool app client id for web" - }, - { - "OutputKey": "AppClientID", - "OutputValue": "3s8jcv7nflisr91emephrr2a9s", - "Description": "The user pool app client id" - }, - { - "OutputKey": "IdentityPoolId", - "OutputValue": "us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022", - "Description": "Id for the identity pool" - }, - { - "OutputKey": "UserPoolArn", - "OutputValue": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_iguxCIcMS", - "Description": "Arn for the user pool" - }, - { - "OutputKey": "IdentityPoolName", - "OutputValue": "fitnesstracker33f55455_identitypool_33f55455__main" - }, - { - "OutputKey": "UserPoolName", - "OutputValue": "fitnesstracker33f55455_userpool_33f55455" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.parameters.json deleted file mode 100644 index 01043034b58..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.parameters.json +++ /dev/null @@ -1,178 +0,0 @@ -[ - { - "ParameterKey": "authRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-authRole" - }, - { - "ParameterKey": "autoVerifiedAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "allowUnauthenticatedIdentities", - "ParameterValue": "false" - }, - { - "ParameterKey": "hostedUI", - "ParameterValue": "false" - }, - { - "ParameterKey": "smsVerificationMessage", - "ParameterValue": "Your verification code is {####}" - }, - { - "ParameterKey": "userpoolClientReadAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "breakCircularDependency", - "ParameterValue": "true" - }, - { - "ParameterKey": "mfaTypes", - "ParameterValue": "SMS Text Message" - }, - { - "ParameterKey": "emailVerificationSubject", - "ParameterValue": "Your verification code" - }, - { - "ParameterKey": "sharedId", - "ParameterValue": "33f55455" - }, - { - "ParameterKey": "useDefault", - "ParameterValue": "manual" - }, - { - "ParameterKey": "userpoolClientGenerateSecret", - "ParameterValue": "false" - }, - { - "ParameterKey": "mfaConfiguration", - "ParameterValue": "OFF" - }, - { - "ParameterKey": "identityPoolName", - "ParameterValue": "fitnesstracker33f55455_identitypool_33f55455" - }, - { - "ParameterKey": "thirdPartyAuth", - "ParameterValue": "false" - }, - { - "ParameterKey": "userPoolGroupList", - "ParameterValue": "Admin" - }, - { - "ParameterKey": "authSelections", - "ParameterValue": "identityPoolAndUserPool" - }, - { - "ParameterKey": "adminQueries", - "ParameterValue": "false" - }, - { - "ParameterKey": "permissions", - "ParameterValue": "" - }, - { - "ParameterKey": "functionfitnesstracker33f5545533f55455PreSignupArn", - "ParameterValue": "functionfitnesstracker33f5545533f55455PreSignupArn" - }, - { - "ParameterKey": "resourceNameTruncated", - "ParameterValue": "fitnes33f55455" - }, - { - "ParameterKey": "userPoolGroups", - "ParameterValue": "true" - }, - { - "ParameterKey": "smsAuthenticationMessage", - "ParameterValue": "Your authentication code is {####}" - }, - { - "ParameterKey": "passwordPolicyMinLength", - "ParameterValue": "8" - }, - { - "ParameterKey": "userPoolName", - "ParameterValue": "fitnesstracker33f55455_userpool_33f55455" - }, - { - "ParameterKey": "userpoolClientWriteAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "dependsOn", - "ParameterValue": "[object Object]" - }, - { - "ParameterKey": "useEnabledMfas", - "ParameterValue": "true" - }, - { - "ParameterKey": "functionfitnesstracker33f5545533f55455PreSignupName", - "ParameterValue": "functionfitnesstracker33f5545533f55455PreSignupName" - }, - { - "ParameterKey": "usernameCaseSensitive", - "ParameterValue": "false" - }, - { - "ParameterKey": "resourceName", - "ParameterValue": "fitnesstracker33f5545533f55455" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "triggers", - "ParameterValue": "{\"PreSignup\":[\"email-filter-allowlist\"]}" - }, - { - "ParameterKey": "serviceName", - "ParameterValue": "Cognito" - }, - { - "ParameterKey": "emailVerificationMessage", - "ParameterValue": "Your verification code is {####}" - }, - { - "ParameterKey": "userpoolClientRefreshTokenValidity", - "ParameterValue": "30" - }, - { - "ParameterKey": "userpoolClientSetAttributes", - "ParameterValue": "false" - }, - { - "ParameterKey": "unauthRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-unauthRole" - }, - { - "ParameterKey": "requiredAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "passwordPolicyCharacters", - "ParameterValue": "" - }, - { - "ParameterKey": "authTriggerConnections", - "ParameterValue": "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker33f5545533f55455PreSignup\"}" - }, - { - "ParameterKey": "aliasAttributes", - "ParameterValue": "" - }, - { - "ParameterKey": "userpoolClientLambdaRole", - "ParameterValue": "fitnes33f55455_userpoolclient_lambda_role" - }, - { - "ParameterKey": "defaultPasswordPolicy", - "ParameterValue": "false" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.template.json deleted file mode 100644 index f5ed153a8fe..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authfitnesstracker33f5545533f55455-1DWODNQZOZ508.template.json +++ /dev/null @@ -1,480 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "env": { - "Type": "String" - }, - "functionfitnesstracker33f5545533f55455PreSignupArn": { - "Type": "String", - "Default": "functionfitnesstracker33f5545533f55455PreSignupArn" - }, - "functionfitnesstracker33f5545533f55455PreSignupName": { - "Type": "String", - "Default": "functionfitnesstracker33f5545533f55455PreSignupName" - }, - "identityPoolName": { - "Type": "String" - }, - "allowUnauthenticatedIdentities": { - "Type": "String" - }, - "resourceNameTruncated": { - "Type": "String" - }, - "userPoolName": { - "Type": "String" - }, - "autoVerifiedAttributes": { - "Type": "CommaDelimitedList" - }, - "mfaConfiguration": { - "Type": "String" - }, - "mfaTypes": { - "Type": "CommaDelimitedList" - }, - "smsAuthenticationMessage": { - "Type": "String" - }, - "smsVerificationMessage": { - "Type": "String" - }, - "emailVerificationSubject": { - "Type": "String" - }, - "emailVerificationMessage": { - "Type": "String" - }, - "defaultPasswordPolicy": { - "Type": "String" - }, - "passwordPolicyMinLength": { - "Type": "String" - }, - "passwordPolicyCharacters": { - "Type": "CommaDelimitedList" - }, - "requiredAttributes": { - "Type": "CommaDelimitedList" - }, - "aliasAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientGenerateSecret": { - "Type": "String" - }, - "userpoolClientRefreshTokenValidity": { - "Type": "String" - }, - "userpoolClientWriteAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientReadAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientLambdaRole": { - "Type": "String" - }, - "userpoolClientSetAttributes": { - "Type": "String" - }, - "sharedId": { - "Type": "String" - }, - "resourceName": { - "Type": "String" - }, - "authSelections": { - "Type": "String" - }, - "useDefault": { - "Type": "String" - }, - "thirdPartyAuth": { - "Type": "String" - }, - "userPoolGroups": { - "Type": "String" - }, - "adminQueries": { - "Type": "String" - }, - "triggers": { - "Type": "String" - }, - "hostedUI": { - "Type": "String" - }, - "userPoolGroupList": { - "Type": "CommaDelimitedList" - }, - "serviceName": { - "Type": "String" - }, - "usernameCaseSensitive": { - "Type": "String" - }, - "useEnabledMfas": { - "Type": "String" - }, - "authRoleArn": { - "Type": "String" - }, - "unauthRoleArn": { - "Type": "String" - }, - "breakCircularDependency": { - "Type": "String" - }, - "dependsOn": { - "Type": "CommaDelimitedList" - }, - "permissions": { - "Type": "CommaDelimitedList" - }, - "authTriggerConnections": { - "Type": "CommaDelimitedList" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - }, - "Resources": { - "UserPool": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": { - "Ref": "emailVerificationMessage" - }, - "EmailVerificationSubject": { - "Ref": "emailVerificationSubject" - }, - "MfaConfiguration": { - "Ref": "mfaConfiguration" - }, - "Policies": { - "PasswordPolicy": { - "MinimumLength": { - "Ref": "passwordPolicyMinLength" - }, - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "userPoolName" - }, - { - "Fn::Join": [ - "", - [ - { - "Ref": "userPoolName" - }, - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "UsernameConfiguration": { - "CaseSensitive": false - } - } - }, - "UserPoolClientWeb": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "fitnes33f55455_app_clientWeb", - "RefreshTokenValidity": { - "Ref": "userpoolClientRefreshTokenValidity" - }, - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": { - "Ref": "UserPool" - } - }, - "DependsOn": [ - "UserPool" - ] - }, - "UserPoolClient": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "fitnes33f55455_app_client", - "GenerateSecret": { - "Ref": "userpoolClientGenerateSecret" - }, - "RefreshTokenValidity": { - "Ref": "userpoolClientRefreshTokenValidity" - }, - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": { - "Ref": "UserPool" - } - }, - "DependsOn": [ - "UserPool" - ] - }, - "UserPoolClientRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - }, - "Action": "sts:AssumeRole" - } - ] - }, - "RoleName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "userpoolClientLambdaRole" - }, - { - "Fn::Join": [ - "", - [ - "upClientLambdaRole33f55455", - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - { - "Ref": "AWS::StackName" - } - ] - } - ] - }, - "-", - { - "Ref": "env" - } - ] - ] - } - ] - } - } - }, - "IdentityPool": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": { - "Ref": "allowUnauthenticatedIdentities" - }, - "CognitoIdentityProviders": [ - { - "ClientId": { - "Ref": "UserPoolClient" - }, - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": { - "Ref": "UserPool" - } - } - ] - } - }, - { - "ClientId": { - "Ref": "UserPoolClientWeb" - }, - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": { - "Ref": "UserPool" - } - } - ] - } - } - ], - "IdentityPoolName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "fitnesstracker33f55455_identitypool_33f55455", - { - "Fn::Join": [ - "", - [ - "fitnesstracker33f55455_identitypool_33f55455__", - { - "Ref": "env" - } - ] - ] - } - ] - } - } - }, - "IdentityPoolRoleMap": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": { - "Ref": "IdentityPool" - }, - "RoleMappings": { - "UserPoolClientRoleMapping": { - "AmbiguousRoleResolution": "AuthenticatedRole", - "IdentityProvider": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${userPool}:${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "userPool": { - "Ref": "UserPool" - }, - "client": { - "Ref": "UserPoolClient" - } - } - ] - }, - "Type": "Token" - }, - "UserPoolWebClientRoleMapping": { - "AmbiguousRoleResolution": "AuthenticatedRole", - "IdentityProvider": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${userPool}:${webClient}", - { - "region": { - "Ref": "AWS::Region" - }, - "userPool": { - "Ref": "UserPool" - }, - "webClient": { - "Ref": "UserPoolClientWeb" - } - } - ] - }, - "Type": "Token" - } - }, - "Roles": { - "unauthenticated": { - "Ref": "unauthRoleArn" - }, - "authenticated": { - "Ref": "authRoleArn" - } - } - }, - "DependsOn": [ - "IdentityPool", - "UserPoolClient", - "UserPoolClientWeb" - ] - } - }, - "Outputs": { - "IdentityPoolId": { - "Description": "Id for the identity pool", - "Value": { - "Ref": "IdentityPool" - } - }, - "IdentityPoolName": { - "Value": { - "Fn::GetAtt": [ - "IdentityPool", - "Name" - ] - } - }, - "UserPoolId": { - "Description": "Id for the user pool", - "Value": { - "Ref": "UserPool" - } - }, - "UserPoolArn": { - "Description": "Arn for the user pool", - "Value": { - "Fn::GetAtt": [ - "UserPool", - "Arn" - ] - } - }, - "UserPoolName": { - "Value": { - "Ref": "userPoolName" - } - }, - "AppClientIDWeb": { - "Description": "The user pool app client id for web", - "Value": { - "Ref": "UserPoolClientWeb" - } - }, - "AppClientID": { - "Description": "The user pool app client id", - "Value": { - "Ref": "UserPoolClient" - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.description.txt deleted file mode 100644 index aa91c019d71..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"auth-Cognito-UserPool-Groups","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.outputs.json deleted file mode 100644 index 86a20382cd6..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.outputs.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - { - "OutputKey": "AdminGroupRole", - "OutputValue": "arn:aws:iam::123456789012:role/us-east-1_iguxCIcMS-AdminGroupRole" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.parameters.json deleted file mode 100644 index 11a65b7a7e8..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.parameters.json +++ /dev/null @@ -1,30 +0,0 @@ -[ - { - "ParameterKey": "UnauthRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-unauthRole" - }, - { - "ParameterKey": "authfitnesstracker33f5545533f55455IdentityPoolId", - "ParameterValue": "us-east-1:157ae2f7-5e4e-42ad-83e8-22689e0c1022" - }, - { - "ParameterKey": "AuthRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-authRole" - }, - { - "ParameterKey": "authfitnesstracker33f5545533f55455UserPoolId", - "ParameterValue": "us-east-1_iguxCIcMS" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "authfitnesstracker33f5545533f55455AppClientIDWeb", - "ParameterValue": "29bubgvfbbqkp4k60rl7oaqd8s" - }, - { - "ParameterKey": "authfitnesstracker33f5545533f55455AppClientID", - "ParameterValue": "3s8jcv7nflisr91emephrr2a9s" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.template.json deleted file mode 100644 index e34b9d7bd14..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-authuserPoolGroups-19G9G5Q52J3XF.template.json +++ /dev/null @@ -1,109 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito-UserPool-Groups\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "env": { - "Type": "String" - }, - "AuthRoleArn": { - "Type": "String" - }, - "UnauthRoleArn": { - "Type": "String" - }, - "authfitnesstracker33f5545533f55455UserPoolId": { - "Type": "String", - "Default": "authfitnesstracker33f5545533f55455UserPoolId" - }, - "authfitnesstracker33f5545533f55455IdentityPoolId": { - "Type": "String", - "Default": "authfitnesstracker33f5545533f55455IdentityPoolId" - }, - "authfitnesstracker33f5545533f55455AppClientID": { - "Type": "String", - "Default": "authfitnesstracker33f5545533f55455AppClientID" - }, - "authfitnesstracker33f5545533f55455AppClientIDWeb": { - "Type": "String", - "Default": "authfitnesstracker33f5545533f55455AppClientIDWeb" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - }, - "Resources": { - "AdminGroup": { - "Type": "AWS::Cognito::UserPoolGroup", - "Properties": { - "Description": "override success", - "GroupName": "Admin", - "Precedence": 1, - "RoleArn": { - "Fn::GetAtt": [ - "AdminGroupRole", - "Arn" - ] - }, - "UserPoolId": { - "Ref": "authfitnesstracker33f5545533f55455UserPoolId" - } - } - }, - "AdminGroupRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Sid": "", - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - }, - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": { - "Ref": "authfitnesstracker33f5545533f55455IdentityPoolId" - } - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "authenticated" - } - } - } - ] - }, - "RoleName": { - "Fn::Join": [ - "", - [ - { - "Ref": "authfitnesstracker33f5545533f55455UserPoolId" - }, - "-AdminGroupRole" - ] - ] - } - } - } - }, - "Outputs": { - "AdminGroupRole": { - "Value": { - "Fn::GetAtt": [ - "AdminGroupRole", - "Arn" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionadmin-1XHD95ED0WDDQ.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionadmin-1XHD95ED0WDDQ.description.txt deleted file mode 100644 index 445081e4df1..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionadmin-1XHD95ED0WDDQ.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"function-Lambda","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionadmin-1XHD95ED0WDDQ.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionadmin-1XHD95ED0WDDQ.outputs.json deleted file mode 100644 index 25dd9bb9cfe..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionadmin-1XHD95ED0WDDQ.outputs.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "OutputKey": "LambdaExecutionRoleArn", - "OutputValue": "arn:aws:iam::123456789012:role/fitnesstrackerLambdaRole4a08108a-main" - }, - { - "OutputKey": "Region", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "Arn", - "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:admin-main" - }, - { - "OutputKey": "Name", - "OutputValue": "admin-main" - }, - { - "OutputKey": "LambdaExecutionRole", - "OutputValue": "fitnesstrackerLambdaRole4a08108a-main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionadmin-1XHD95ED0WDDQ.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionadmin-1XHD95ED0WDDQ.parameters.json deleted file mode 100644 index 8893510b234..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionadmin-1XHD95ED0WDDQ.parameters.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "ParameterKey": "CloudWatchRule", - "ParameterValue": "NONE" - }, - { - "ParameterKey": "s3Key", - "ParameterValue": "amplify-builds/admin-7934694b6d366c486d32-build.zip" - }, - { - "ParameterKey": "deploymentBucketName", - "ParameterValue": "amplify-fitnesstracker-main-a0537-deployment" - }, - { - "ParameterKey": "authfitnesstracker33f5545533f55455UserPoolId", - "ParameterValue": "us-east-1_iguxCIcMS" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionadmin-1XHD95ED0WDDQ.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionadmin-1XHD95ED0WDDQ.template.json deleted file mode 100644 index 57322afb5e3..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionadmin-1XHD95ED0WDDQ.template.json +++ /dev/null @@ -1,268 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "Parameters": { - "CloudWatchRule": { - "Type": "String", - "Default": "NONE", - "Description": " Schedule Expression" - }, - "deploymentBucketName": { - "Type": "String" - }, - "env": { - "Type": "String" - }, - "s3Key": { - "Type": "String" - }, - "authfitnesstracker33f5545533f55455UserPoolId": { - "Type": "String", - "Default": "authfitnesstracker33f5545533f55455UserPoolId" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - }, - "Resources": { - "LambdaFunction": { - "Type": "AWS::Lambda::Function", - "Metadata": { - "aws:asset:path": "./src", - "aws:asset:property": "Code" - }, - "Properties": { - "Code": { - "S3Bucket": { - "Ref": "deploymentBucketName" - }, - "S3Key": { - "Ref": "s3Key" - } - }, - "Handler": "index.handler", - "FunctionName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "admin", - { - "Fn::Join": [ - "", - [ - "admin", - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "Environment": { - "Variables": { - "ENV": { - "Ref": "env" - }, - "REGION": { - "Ref": "AWS::Region" - }, - "AUTH_FITNESSTRACKER33F5545533F55455_USERPOOLID": { - "Ref": "authfitnesstracker33f5545533f55455UserPoolId" - } - } - }, - "Role": { - "Fn::GetAtt": [ - "LambdaExecutionRole", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Layers": [], - "Timeout": 25 - } - }, - "LambdaExecutionRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "RoleName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "fitnesstrackerLambdaRole4a08108a", - { - "Fn::Join": [ - "", - [ - "fitnesstrackerLambdaRole4a08108a", - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": [ - "lambda.amazonaws.com" - ] - }, - "Action": [ - "sts:AssumeRole" - ] - } - ] - } - } - }, - "lambdaexecutionpolicy": { - "DependsOn": [ - "LambdaExecutionRole" - ], - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyName": "lambda-execution-policy", - "Roles": [ - { - "Ref": "LambdaExecutionRole" - } - ], - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "logs:CreateLogGroup", - "logs:CreateLogStream", - "logs:PutLogEvents" - ], - "Resource": { - "Fn::Sub": [ - "arn:aws:logs:${region}:${account}:log-group:/aws/lambda/${lambda}:log-stream:*", - { - "region": { - "Ref": "AWS::Region" - }, - "account": { - "Ref": "AWS::AccountId" - }, - "lambda": { - "Ref": "LambdaFunction" - } - } - ] - } - } - ] - } - } - }, - "AmplifyResourcesPolicy": { - "DependsOn": [ - "LambdaExecutionRole" - ], - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyName": "amplify-lambda-execution-policy", - "Roles": [ - { - "Ref": "LambdaExecutionRole" - } - ], - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "cognito-identity:Describe*", - "cognito-identity:Get*", - "cognito-identity:List*", - "cognito-idp:Describe*", - "cognito-idp:AdminGetDevice", - "cognito-idp:AdminGetUser", - "cognito-idp:AdminList*", - "cognito-idp:List*", - "cognito-sync:Describe*", - "cognito-sync:Get*", - "cognito-sync:List*", - "iam:ListOpenIdConnectProviders", - "iam:ListRoles", - "sns:ListPlatformApplications" - ], - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:cognito-idp:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":userpool/", - { - "Ref": "authfitnesstracker33f5545533f55455UserPoolId" - } - ] - ] - } - ] - } - ] - } - } - } - }, - "Outputs": { - "Name": { - "Value": { - "Ref": "LambdaFunction" - } - }, - "Arn": { - "Value": { - "Fn::GetAtt": [ - "LambdaFunction", - "Arn" - ] - } - }, - "Region": { - "Value": { - "Ref": "AWS::Region" - } - }, - "LambdaExecutionRole": { - "Value": { - "Ref": "LambdaExecutionRole" - } - }, - "LambdaExecutionRoleArn": { - "Value": { - "Fn::GetAtt": [ - "LambdaExecutionRole", - "Arn" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionfitnesstracker33f5545533f55455PreSignup-1NSDWT8P6Z7SU.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionfitnesstracker33f5545533f55455PreSignup-1NSDWT8P6Z7SU.description.txt deleted file mode 100644 index 445081e4df1..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionfitnesstracker33f5545533f55455PreSignup-1NSDWT8P6Z7SU.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"function-Lambda","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionfitnesstracker33f5545533f55455PreSignup-1NSDWT8P6Z7SU.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionfitnesstracker33f5545533f55455PreSignup-1NSDWT8P6Z7SU.outputs.json deleted file mode 100644 index eb2c3a837ae..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionfitnesstracker33f5545533f55455PreSignup-1NSDWT8P6Z7SU.outputs.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "OutputKey": "LambdaExecutionRoleArn", - "OutputValue": "arn:aws:iam::123456789012:role/fitnesstracker33f5545533f55455PreSignup-main" - }, - { - "OutputKey": "Region", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "Arn", - "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker33f5545533f55455PreSignup-main" - }, - { - "OutputKey": "Name", - "OutputValue": "fitnesstracker33f5545533f55455PreSignup-main" - }, - { - "OutputKey": "LambdaExecutionRole", - "OutputValue": "fitnesstracker33f5545533f55455PreSignup-main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionfitnesstracker33f5545533f55455PreSignup-1NSDWT8P6Z7SU.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionfitnesstracker33f5545533f55455PreSignup-1NSDWT8P6Z7SU.parameters.json deleted file mode 100644 index 5f958b22dc3..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionfitnesstracker33f5545533f55455PreSignup-1NSDWT8P6Z7SU.parameters.json +++ /dev/null @@ -1,50 +0,0 @@ -[ - { - "ParameterKey": "parentResource", - "ParameterValue": "" - }, - { - "ParameterKey": "s3Key", - "ParameterValue": "amplify-builds/fitnesstracker33f5545533f55455PreSignup-68374859444c45627749-build.zip" - }, - { - "ParameterKey": "functionName", - "ParameterValue": "" - }, - { - "ParameterKey": "DOMAINALLOWLIST", - "ParameterValue": "amazon.com" - }, - { - "ParameterKey": "parentStack", - "ParameterValue": "" - }, - { - "ParameterKey": "deploymentBucketName", - "ParameterValue": "amplify-fitnesstracker-main-a0537-deployment" - }, - { - "ParameterKey": "DOMAINBLACKLIST", - "ParameterValue": "" - }, - { - "ParameterKey": "roleName", - "ParameterValue": "" - }, - { - "ParameterKey": "resourceName", - "ParameterValue": "fitnesstracker33f5545533f55455PreSignup" - }, - { - "ParameterKey": "trigger", - "ParameterValue": "true" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "modules", - "ParameterValue": "email-filter-allowlist" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionfitnesstracker33f5545533f55455PreSignup-1NSDWT8P6Z7SU.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionfitnesstracker33f5545533f55455PreSignup-1NSDWT8P6Z7SU.template.json deleted file mode 100644 index e53fff724cb..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionfitnesstracker33f5545533f55455PreSignup-1NSDWT8P6Z7SU.template.json +++ /dev/null @@ -1,242 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "Parameters": { - "DOMAINBLACKLIST": { - "Type": "String", - "Default": "" - }, - "DOMAINALLOWLIST": { - "Type": "String", - "Default": "" - }, - "modules": { - "Type": "String", - "Default": "", - "Description": "Comma-delimited list of modules to be executed by a lambda trigger. Sent to resource as an env variable." - }, - "resourceName": { - "Type": "String", - "Default": "" - }, - "trigger": { - "Type": "String", - "Default": "true" - }, - "functionName": { - "Type": "String", - "Default": "" - }, - "roleName": { - "Type": "String", - "Default": "" - }, - "parentResource": { - "Type": "String", - "Default": "" - }, - "parentStack": { - "Type": "String", - "Default": "" - }, - "env": { - "Type": "String" - }, - "deploymentBucketName": { - "Type": "String" - }, - "s3Key": { - "Type": "String" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - }, - "Resources": { - "LambdaFunction": { - "Type": "AWS::Lambda::Function", - "Metadata": { - "aws:asset:path": "./src", - "aws:asset:property": "Code" - }, - "Properties": { - "Handler": "index.handler", - "FunctionName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "fitnesstracker33f5545533f55455PreSignup", - { - "Fn::Join": [ - "", - [ - "fitnesstracker33f5545533f55455PreSignup", - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "Environment": { - "Variables": { - "ENV": { - "Ref": "env" - }, - "MODULES": { - "Ref": "modules" - }, - "REGION": { - "Ref": "AWS::Region" - }, - "DOMAINALLOWLIST": { - "Ref": "DOMAINALLOWLIST" - }, - "DOMAINBLACKLIST": { - "Ref": "DOMAINBLACKLIST" - } - } - }, - "Role": { - "Fn::GetAtt": [ - "LambdaExecutionRole", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Timeout": 25, - "Code": { - "S3Bucket": { - "Ref": "deploymentBucketName" - }, - "S3Key": { - "Ref": "s3Key" - } - } - } - }, - "LambdaExecutionRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "RoleName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "fitnesstracker33f5545533f55455PreSignup", - { - "Fn::Join": [ - "", - [ - "fitnesstracker33f5545533f55455PreSignup", - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": [ - "lambda.amazonaws.com" - ] - }, - "Action": [ - "sts:AssumeRole" - ] - } - ] - } - } - }, - "lambdaexecutionpolicy": { - "DependsOn": [ - "LambdaExecutionRole" - ], - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyName": "lambda-execution-policy", - "Roles": [ - { - "Ref": "LambdaExecutionRole" - } - ], - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "logs:CreateLogGroup", - "logs:CreateLogStream", - "logs:PutLogEvents" - ], - "Resource": { - "Fn::Sub": [ - "arn:aws:logs:${region}:${account}:log-group:/aws/lambda/${lambda}:log-stream:*", - { - "region": { - "Ref": "AWS::Region" - }, - "account": { - "Ref": "AWS::AccountId" - }, - "lambda": { - "Ref": "LambdaFunction" - } - } - ] - } - } - ] - } - } - } - }, - "Outputs": { - "Name": { - "Value": { - "Ref": "LambdaFunction" - } - }, - "Arn": { - "Value": { - "Fn::GetAtt": [ - "LambdaFunction", - "Arn" - ] - } - }, - "LambdaExecutionRole": { - "Value": { - "Ref": "LambdaExecutionRole" - } - }, - "LambdaExecutionRoleArn": { - "Value": { - "Fn::GetAtt": [ - "LambdaExecutionRole", - "Arn" - ] - } - }, - "Region": { - "Value": { - "Ref": "AWS::Region" - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionlognutrition-13HP6USYKZ4YI.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionlognutrition-13HP6USYKZ4YI.description.txt deleted file mode 100644 index 445081e4df1..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionlognutrition-13HP6USYKZ4YI.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"function-Lambda","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionlognutrition-13HP6USYKZ4YI.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionlognutrition-13HP6USYKZ4YI.outputs.json deleted file mode 100644 index ff6bec326d2..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionlognutrition-13HP6USYKZ4YI.outputs.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "OutputKey": "LambdaExecutionRoleArn", - "OutputValue": "arn:aws:iam::123456789012:role/fitnesstrackerLambdaRole2824d4b4-main" - }, - { - "OutputKey": "Region", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "Arn", - "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:lognutrition-main" - }, - { - "OutputKey": "Name", - "OutputValue": "lognutrition-main" - }, - { - "OutputKey": "LambdaExecutionRole", - "OutputValue": "fitnesstrackerLambdaRole2824d4b4-main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionlognutrition-13HP6USYKZ4YI.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionlognutrition-13HP6USYKZ4YI.parameters.json deleted file mode 100644 index f5b9c93a1a7..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionlognutrition-13HP6USYKZ4YI.parameters.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "ParameterKey": "CloudWatchRule", - "ParameterValue": "NONE" - }, - { - "ParameterKey": "apifitnesstrackerGraphQLAPIIdOutput", - "ParameterValue": "jzwb5p2vcbd2ldlnlxokgjcjby" - }, - { - "ParameterKey": "s3Key", - "ParameterValue": "amplify-builds/lognutrition-554b5263566866516c6c-build.zip" - }, - { - "ParameterKey": "deploymentBucketName", - "ParameterValue": "amplify-fitnesstracker-main-a0537-deployment" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionlognutrition-13HP6USYKZ4YI.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionlognutrition-13HP6USYKZ4YI.template.json deleted file mode 100644 index 34e97f53ec9..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537-functionlognutrition-13HP6USYKZ4YI.template.json +++ /dev/null @@ -1,320 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "Parameters": { - "CloudWatchRule": { - "Type": "String", - "Default": "NONE", - "Description": " Schedule Expression" - }, - "deploymentBucketName": { - "Type": "String" - }, - "env": { - "Type": "String" - }, - "s3Key": { - "Type": "String" - }, - "apifitnesstrackerGraphQLAPIIdOutput": { - "Type": "String", - "Default": "apifitnesstrackerGraphQLAPIIdOutput" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - }, - "Resources": { - "LambdaFunction": { - "Type": "AWS::Lambda::Function", - "Metadata": { - "aws:asset:path": "./src", - "aws:asset:property": "Code" - }, - "Properties": { - "Code": { - "S3Bucket": { - "Ref": "deploymentBucketName" - }, - "S3Key": { - "Ref": "s3Key" - } - }, - "Handler": "index.handler", - "FunctionName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "lognutrition", - { - "Fn::Join": [ - "", - [ - "lognutrition", - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "Environment": { - "Variables": { - "ENV": { - "Ref": "env" - }, - "REGION": { - "Ref": "AWS::Region" - }, - "API_FITNESSTRACKER_MEALTABLE_NAME": { - "Fn::ImportValue": { - "Fn::Sub": "${apifitnesstrackerGraphQLAPIIdOutput}:GetAtt:MealTable:Name" - } - }, - "API_FITNESSTRACKER_MEALTABLE_ARN": { - "Fn::Join": [ - "", - [ - "arn:aws:dynamodb:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":table/", - { - "Fn::ImportValue": { - "Fn::Sub": "${apifitnesstrackerGraphQLAPIIdOutput}:GetAtt:MealTable:Name" - } - } - ] - ] - }, - "API_FITNESSTRACKER_GRAPHQLAPIIDOUTPUT": { - "Ref": "apifitnesstrackerGraphQLAPIIdOutput" - } - } - }, - "Role": { - "Fn::GetAtt": [ - "LambdaExecutionRole", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Layers": [], - "Timeout": 25 - } - }, - "LambdaExecutionRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "RoleName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "fitnesstrackerLambdaRole2824d4b4", - { - "Fn::Join": [ - "", - [ - "fitnesstrackerLambdaRole2824d4b4", - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": [ - "lambda.amazonaws.com" - ] - }, - "Action": [ - "sts:AssumeRole" - ] - } - ] - } - } - }, - "lambdaexecutionpolicy": { - "DependsOn": [ - "LambdaExecutionRole" - ], - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyName": "lambda-execution-policy", - "Roles": [ - { - "Ref": "LambdaExecutionRole" - } - ], - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "logs:CreateLogGroup", - "logs:CreateLogStream", - "logs:PutLogEvents" - ], - "Resource": { - "Fn::Sub": [ - "arn:aws:logs:${region}:${account}:log-group:/aws/lambda/${lambda}:log-stream:*", - { - "region": { - "Ref": "AWS::Region" - }, - "account": { - "Ref": "AWS::AccountId" - }, - "lambda": { - "Ref": "LambdaFunction" - } - } - ] - } - } - ] - } - } - }, - "AmplifyResourcesPolicy": { - "DependsOn": [ - "LambdaExecutionRole" - ], - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyName": "amplify-lambda-execution-policy", - "Roles": [ - { - "Ref": "LambdaExecutionRole" - } - ], - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "dynamodb:Put*", - "dynamodb:Create*", - "dynamodb:BatchWriteItem", - "dynamodb:PartiQLInsert", - "dynamodb:Get*", - "dynamodb:BatchGetItem", - "dynamodb:List*", - "dynamodb:Describe*", - "dynamodb:Scan", - "dynamodb:Query", - "dynamodb:PartiQLSelect", - "dynamodb:Update*", - "dynamodb:RestoreTable*", - "dynamodb:PartiQLUpdate", - "dynamodb:Delete*", - "dynamodb:PartiQLDelete" - ], - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:dynamodb:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":table/", - { - "Fn::ImportValue": { - "Fn::Sub": "${apifitnesstrackerGraphQLAPIIdOutput}:GetAtt:MealTable:Name" - } - } - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:dynamodb:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":table/", - { - "Fn::ImportValue": { - "Fn::Sub": "${apifitnesstrackerGraphQLAPIIdOutput}:GetAtt:MealTable:Name" - } - }, - "/index/*" - ] - ] - } - ] - } - ] - } - } - } - }, - "Outputs": { - "Name": { - "Value": { - "Ref": "LambdaFunction" - } - }, - "Arn": { - "Value": { - "Fn::GetAtt": [ - "LambdaFunction", - "Arn" - ] - } - }, - "Region": { - "Value": { - "Ref": "AWS::Region" - } - }, - "LambdaExecutionRole": { - "Value": { - "Ref": "LambdaExecutionRole" - } - }, - "LambdaExecutionRoleArn": { - "Value": { - "Fn::GetAtt": [ - "LambdaExecutionRole", - "Arn" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537.description.txt deleted file mode 100644 index daf66c0bc85..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537.description.txt +++ /dev/null @@ -1 +0,0 @@ -Root Stack for AWS Amplify CLI \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537.outputs.json deleted file mode 100644 index 12c76d2fccb..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537.outputs.json +++ /dev/null @@ -1,42 +0,0 @@ -[ - { - "OutputKey": "AuthRoleName", - "OutputValue": "amplify-fitnesstracker-main-a0537-authRole" - }, - { - "OutputKey": "UnauthRoleArn", - "OutputValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-unauthRole" - }, - { - "OutputKey": "AuthRoleArn", - "OutputValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-main-a0537-authRole" - }, - { - "OutputKey": "Region", - "OutputValue": "us-east-1", - "Description": "CloudFormation provider root stack Region", - "ExportName": "amplify-fitnesstracker-main-a0537-Region" - }, - { - "OutputKey": "DeploymentBucketName", - "OutputValue": "amplify-fitnesstracker-main-a0537-deployment", - "Description": "CloudFormation provider root stack deployment bucket name", - "ExportName": "amplify-fitnesstracker-main-a0537-DeploymentBucketName" - }, - { - "OutputKey": "UnauthRoleName", - "OutputValue": "amplify-fitnesstracker-main-a0537-unauthRole" - }, - { - "OutputKey": "StackName", - "OutputValue": "amplify-fitnesstracker-main-a0537", - "Description": "CloudFormation provider root stack ID", - "ExportName": "amplify-fitnesstracker-main-a0537-StackName" - }, - { - "OutputKey": "StackId", - "OutputValue": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-main-a0537/1749a530-272d-11f1-a465-0e5f0b5f7853", - "Description": "CloudFormation provider root stack name", - "ExportName": "amplify-fitnesstracker-main-a0537-StackId" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537.parameters.json deleted file mode 100644 index 9ba77cc775e..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537.parameters.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "ParameterKey": "AuthRoleName", - "ParameterValue": "amplify-fitnesstracker-main-a0537-authRole" - }, - { - "ParameterKey": "DeploymentBucketName", - "ParameterValue": "amplify-fitnesstracker-main-a0537-deployment" - }, - { - "ParameterKey": "UnauthRoleName", - "ParameterValue": "amplify-fitnesstracker-main-a0537-unauthRole" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537.template.json deleted file mode 100644 index e4e090d2980..00000000000 --- a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-main-a0537.template.json +++ /dev/null @@ -1,715 +0,0 @@ -{ - "Description": "Root Stack for AWS Amplify CLI", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "DeploymentBucketName": { - "Type": "String", - "Default": "DeploymentBucket", - "Description": "Name of the common deployment bucket provided by the parent stack" - }, - "AuthRoleName": { - "Type": "String", - "Default": "AuthRoleName", - "Description": "Name of the common deployment bucket provided by the parent stack" - }, - "UnauthRoleName": { - "Type": "String", - "Default": "UnAuthRoleName", - "Description": "Name of the common deployment bucket provided by the parent stack" - } - }, - "Outputs": { - "Region": { - "Description": "CloudFormation provider root stack Region", - "Value": { - "Ref": "AWS::Region" - }, - "Export": { - "Name": { - "Fn::Sub": "${AWS::StackName}-Region" - } - } - }, - "StackName": { - "Description": "CloudFormation provider root stack ID", - "Value": { - "Ref": "AWS::StackName" - }, - "Export": { - "Name": { - "Fn::Sub": "${AWS::StackName}-StackName" - } - } - }, - "StackId": { - "Description": "CloudFormation provider root stack name", - "Value": { - "Ref": "AWS::StackId" - }, - "Export": { - "Name": { - "Fn::Sub": "${AWS::StackName}-StackId" - } - } - }, - "AuthRoleArn": { - "Value": { - "Fn::GetAtt": [ - "AuthRole", - "Arn" - ] - } - }, - "UnauthRoleArn": { - "Value": { - "Fn::GetAtt": [ - "UnauthRole", - "Arn" - ] - } - }, - "DeploymentBucketName": { - "Description": "CloudFormation provider root stack deployment bucket name", - "Value": { - "Ref": "DeploymentBucketName" - }, - "Export": { - "Name": { - "Fn::Sub": "${AWS::StackName}-DeploymentBucketName" - } - } - }, - "AuthRoleName": { - "Value": { - "Ref": "AuthRole" - } - }, - "UnauthRoleName": { - "Value": { - "Ref": "UnauthRole" - } - } - }, - "Resources": { - "DeploymentBucket": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketName": { - "Ref": "DeploymentBucketName" - }, - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - } - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain" - }, - "DeploymentBucketBlockHTTP": { - "Type": "AWS::S3::BucketPolicy", - "Properties": { - "Bucket": { - "Ref": "DeploymentBucketName" - }, - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:*", - "Effect": "Deny", - "Principal": "*", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "DeploymentBucketName" - }, - "/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "DeploymentBucketName" - } - ] - ] - } - ], - "Condition": { - "Bool": { - "aws:SecureTransport": false - } - } - } - ] - } - } - }, - "AuthRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Sid": "", - "Effect": "Deny", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - }, - "Action": "sts:AssumeRoleWithWebIdentity" - } - ] - }, - "RoleName": { - "Ref": "AuthRoleName" - } - } - }, - "UnauthRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Sid": "", - "Effect": "Deny", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - }, - "Action": "sts:AssumeRoleWithWebIdentity" - } - ] - }, - "RoleName": { - "Ref": "UnauthRoleName" - } - } - }, - "APIGatewayAuthStack": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", - "Parameters": { - "authRoleName": { - "Ref": "AuthRoleName" - }, - "unauthRoleName": { - "Ref": "UnauthRoleName" - }, - "env": "main", - "adminapi": { - "Fn::GetAtt": [ - "apiadminapi", - "Outputs.ApiId" - ] - }, - "nutritionapi": { - "Fn::GetAtt": [ - "apinutritionapi", - "Outputs.ApiId" - ] - } - } - } - }, - "AuthTriggerCustomLambdaStack": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json", - "Parameters": { - "env": "main", - "userpoolId": { - "Fn::GetAtt": [ - "authfitnesstracker33f5545533f55455", - "Outputs.UserPoolId" - ] - }, - "userpoolArn": { - "Fn::GetAtt": [ - "authfitnesstracker33f5545533f55455", - "Outputs.UserPoolArn" - ] - }, - "functionfitnesstracker33f5545533f55455PreSignupLambdaExecutionRole": { - "Fn::GetAtt": [ - "functionfitnesstracker33f5545533f55455PreSignup", - "Outputs.LambdaExecutionRoleArn" - ] - }, - "functionfitnesstracker33f5545533f55455PreSignupArn": { - "Fn::GetAtt": [ - "functionfitnesstracker33f5545533f55455PreSignup", - "Outputs.Arn" - ] - }, - "functionfitnesstracker33f5545533f55455PreSignupName": { - "Fn::GetAtt": [ - "functionfitnesstracker33f5545533f55455PreSignup", - "Outputs.Name" - ] - } - } - }, - "DependsOn": [ - "authfitnesstracker33f5545533f55455", - "functionfitnesstracker33f5545533f55455PreSignup" - ] - }, - "apiadminapi": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/adminapi-cloudformation-template.json", - "Parameters": { - "functionadminName": { - "Fn::GetAtt": [ - "functionadmin", - "Outputs.Name" - ] - }, - "functionadminArn": { - "Fn::GetAtt": [ - "functionadmin", - "Outputs.Arn" - ] - }, - "authfitnesstracker33f5545533f55455UserPoolId": { - "Fn::GetAtt": [ - "authfitnesstracker33f5545533f55455", - "Outputs.UserPoolId" - ] - }, - "authuserPoolGroupsAdminGroupRole": { - "Fn::GetAtt": [ - "authuserPoolGroups", - "Outputs.AdminGroupRole" - ] - }, - "env": "main" - } - } - }, - "apifitnesstracker": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/cloudformation-template.json", - "Parameters": { - "AppSyncApiName": "fitnesstracker", - "DynamoDBBillingMode": "PAY_PER_REQUEST", - "DynamoDBEnableServerSideEncryption": false, - "AuthCognitoUserPoolId": { - "Fn::GetAtt": [ - "authfitnesstracker33f5545533f55455", - "Outputs.UserPoolId" - ] - }, - "S3DeploymentBucket": "amplify-fitnesstracker-main-a0537-deployment", - "S3DeploymentRootKey": "amplify-appsync-files/67310f5f0a68cc163f9cc58da56e1409a2c21b1d", - "env": "main" - } - } - }, - "apinutritionapi": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/api/nutritionapi-cloudformation-template.json", - "Parameters": { - "functionlognutritionName": { - "Fn::GetAtt": [ - "functionlognutrition", - "Outputs.Name" - ] - }, - "functionlognutritionArn": { - "Fn::GetAtt": [ - "functionlognutrition", - "Outputs.Arn" - ] - }, - "authfitnesstracker33f5545533f55455UserPoolId": { - "Fn::GetAtt": [ - "authfitnesstracker33f5545533f55455", - "Outputs.UserPoolId" - ] - }, - "authuserPoolGroupsAdminGroupRole": { - "Fn::GetAtt": [ - "authuserPoolGroups", - "Outputs.AdminGroupRole" - ] - }, - "env": "main" - } - } - }, - "authfitnesstracker33f5545533f55455": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/auth/fitnesstracker33f5545533f55455-cloudformation-template.json", - "Parameters": { - "identityPoolName": "fitnesstracker33f55455_identitypool_33f55455", - "allowUnauthenticatedIdentities": false, - "resourceNameTruncated": "fitnes33f55455", - "userPoolName": "fitnesstracker33f55455_userpool_33f55455", - "autoVerifiedAttributes": "email", - "mfaConfiguration": "OFF", - "mfaTypes": "SMS Text Message", - "smsAuthenticationMessage": "Your authentication code is {####}", - "smsVerificationMessage": "Your verification code is {####}", - "emailVerificationSubject": "Your verification code", - "emailVerificationMessage": "Your verification code is {####}", - "defaultPasswordPolicy": false, - "passwordPolicyMinLength": 8, - "passwordPolicyCharacters": "", - "requiredAttributes": "email", - "aliasAttributes": "", - "userpoolClientGenerateSecret": false, - "userpoolClientRefreshTokenValidity": 30, - "userpoolClientWriteAttributes": "email", - "userpoolClientReadAttributes": "email", - "userpoolClientLambdaRole": "fitnes33f55455_userpoolclient_lambda_role", - "userpoolClientSetAttributes": false, - "sharedId": "33f55455", - "resourceName": "fitnesstracker33f5545533f55455", - "authSelections": "identityPoolAndUserPool", - "useDefault": "manual", - "thirdPartyAuth": false, - "userPoolGroups": true, - "adminQueries": false, - "triggers": "{\"PreSignup\":[\"email-filter-allowlist\"]}", - "hostedUI": false, - "userPoolGroupList": "Admin", - "serviceName": "Cognito", - "usernameCaseSensitive": false, - "useEnabledMfas": true, - "authRoleArn": { - "Fn::GetAtt": [ - "AuthRole", - "Arn" - ] - }, - "unauthRoleArn": { - "Fn::GetAtt": [ - "UnauthRole", - "Arn" - ] - }, - "breakCircularDependency": true, - "dependsOn": "[object Object]", - "permissions": "", - "authTriggerConnections": "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker33f5545533f55455PreSignup\"}", - "env": "main" - } - } - }, - "authuserPoolGroups": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", - "Parameters": { - "AuthRoleArn": { - "Fn::GetAtt": [ - "AuthRole", - "Arn" - ] - }, - "UnauthRoleArn": { - "Fn::GetAtt": [ - "UnauthRole", - "Arn" - ] - }, - "authfitnesstracker33f5545533f55455UserPoolId": { - "Fn::GetAtt": [ - "authfitnesstracker33f5545533f55455", - "Outputs.UserPoolId" - ] - }, - "authfitnesstracker33f5545533f55455AppClientIDWeb": { - "Fn::GetAtt": [ - "authfitnesstracker33f5545533f55455", - "Outputs.AppClientIDWeb" - ] - }, - "authfitnesstracker33f5545533f55455AppClientID": { - "Fn::GetAtt": [ - "authfitnesstracker33f5545533f55455", - "Outputs.AppClientID" - ] - }, - "authfitnesstracker33f5545533f55455IdentityPoolId": { - "Fn::GetAtt": [ - "authfitnesstracker33f5545533f55455", - "Outputs.IdentityPoolId" - ] - }, - "env": "main" - } - } - }, - "functionadmin": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/function/admin-cloudformation-template.json", - "Parameters": { - "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", - "s3Key": "amplify-builds/admin-7934694b6d366c486d32-build.zip", - "authfitnesstracker33f5545533f55455UserPoolId": { - "Fn::GetAtt": [ - "authfitnesstracker33f5545533f55455", - "Outputs.UserPoolId" - ] - }, - "env": "main" - } - } - }, - "functionfitnesstracker33f5545533f55455PreSignup": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/function/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json", - "Parameters": { - "modules": "email-filter-allowlist", - "resourceName": "fitnesstracker33f5545533f55455PreSignup", - "DOMAINALLOWLIST": "amazon.com", - "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", - "s3Key": "amplify-builds/fitnesstracker33f5545533f55455PreSignup-68374859444c45627749-build.zip", - "env": "main" - } - } - }, - "functionlognutrition": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-main-a0537-deployment/amplify-cfn-templates/function/lognutrition-cloudformation-template.json", - "Parameters": { - "deploymentBucketName": "amplify-fitnesstracker-main-a0537-deployment", - "s3Key": "amplify-builds/lognutrition-554b5263566866516c6c-build.zip", - "apifitnesstrackerGraphQLAPIIdOutput": { - "Fn::GetAtt": [ - "apifitnesstracker", - "Outputs.GraphQLAPIIdOutput" - ] - }, - "env": "main" - } - } - }, - "UpdateRolesWithIDPFunction": { - "DependsOn": [ - "AuthRole", - "UnauthRole", - "authfitnesstracker33f5545533f55455" - ], - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "ZipFile": { - "Fn::Join": [ - "\n", - [ - "const response = require('cfn-response');", - "const { IAMClient, GetRoleCommand, UpdateAssumeRolePolicyCommand } = require('@aws-sdk/client-iam');", - "exports.handler = function(event, context) {", - " // Don't return promise, response.send() marks context as done internally", - " const ignoredPromise = handleEvent(event, context)", - "};", - "async function handleEvent(event, context) {", - " try {", - " let authRoleName = event.ResourceProperties.authRoleName;", - " let unauthRoleName = event.ResourceProperties.unauthRoleName;", - " let idpId = event.ResourceProperties.idpId;", - " let authParamsJson = {", - " 'Version': '2012-10-17',", - " 'Statement': [{", - " 'Effect': 'Allow',", - " 'Principal': {'Federated': 'cognito-identity.amazonaws.com'},", - " 'Action': 'sts:AssumeRoleWithWebIdentity',", - " 'Condition': {", - " 'StringEquals': {'cognito-identity.amazonaws.com:aud': idpId},", - " 'ForAnyValue:StringLike': {'cognito-identity.amazonaws.com:amr': 'authenticated'}", - " }", - " }]", - " };", - " let unauthParamsJson = {", - " 'Version': '2012-10-17',", - " 'Statement': [{", - " 'Effect': 'Allow',", - " 'Principal': {'Federated': 'cognito-identity.amazonaws.com'},", - " 'Action': 'sts:AssumeRoleWithWebIdentity',", - " 'Condition': {", - " 'StringEquals': {'cognito-identity.amazonaws.com:aud': idpId},", - " 'ForAnyValue:StringLike': {'cognito-identity.amazonaws.com:amr': 'unauthenticated'}", - " }", - " }]", - " };", - " if (event.RequestType === 'Delete') {", - " try {", - " delete authParamsJson.Statement[0].Condition;", - " delete unauthParamsJson.Statement[0].Condition;", - " authParamsJson.Statement[0].Effect = 'Deny'", - " unauthParamsJson.Statement[0].Effect = 'Deny'", - " let authParams = {PolicyDocument: JSON.stringify(authParamsJson), RoleName: authRoleName};", - " let unauthParams = {PolicyDocument: JSON.stringify(unauthParamsJson), RoleName: unauthRoleName};", - " const iam = new IAMClient({region: event.ResourceProperties.region});", - " let res = await Promise.all([", - " iam.send(new GetRoleCommand({RoleName: authParams.RoleName})),", - " iam.send(new GetRoleCommand({RoleName: unauthParams.RoleName}))", - " ]);", - " res = await Promise.all([", - " iam.send(new UpdateAssumeRolePolicyCommand(authParams)),", - " iam.send(new UpdateAssumeRolePolicyCommand(unauthParams))", - " ]);", - " response.send(event, context, response.SUCCESS, {});", - " } catch (err) {", - " console.log(err.stack);", - " response.send(event, context, response.SUCCESS, {Error: err});", - " }", - " } else if (event.RequestType === 'Update' || event.RequestType === 'Create') {", - " const iam = new IAMClient({region: event.ResourceProperties.region});", - " let authParams = {PolicyDocument: JSON.stringify(authParamsJson), RoleName: authRoleName};", - " let unauthParams = {PolicyDocument: JSON.stringify(unauthParamsJson), RoleName: unauthRoleName};", - " const res = await Promise.all([", - " iam.send(new UpdateAssumeRolePolicyCommand(authParams)),", - " iam.send(new UpdateAssumeRolePolicyCommand(unauthParams))", - " ]);", - " response.send(event, context, response.SUCCESS, {});", - " }", - " } catch (err) {", - " console.log(err.stack);", - " response.send(event, context, response.FAILED, {Error: err});", - " }", - "};" - ] - ] - } - }, - "Handler": "index.handler", - "Runtime": "nodejs22.x", - "Timeout": 300, - "Role": { - "Fn::GetAtt": [ - "UpdateRolesWithIDPFunctionRole", - "Arn" - ] - } - } - }, - "UpdateRolesWithIDPFunctionOutputs": { - "Type": "Custom::LambdaCallout", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "UpdateRolesWithIDPFunction", - "Arn" - ] - }, - "region": { - "Ref": "AWS::Region" - }, - "idpId": { - "Fn::GetAtt": [ - "authfitnesstracker33f5545533f55455", - "Outputs.IdentityPoolId" - ] - }, - "authRoleName": { - "Ref": "AuthRole" - }, - "unauthRoleName": { - "Ref": "UnauthRole" - } - } - }, - "UpdateRolesWithIDPFunctionRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "RoleName": { - "Fn::Join": [ - "", - [ - { - "Ref": "AuthRole" - }, - "-idp" - ] - ] - }, - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": [ - "lambda.amazonaws.com" - ] - }, - "Action": [ - "sts:AssumeRole" - ] - } - ] - }, - "Policies": [ - { - "PolicyName": "UpdateRolesWithIDPFunctionPolicy", - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "logs:CreateLogGroup", - "logs:CreateLogStream", - "logs:PutLogEvents" - ], - "Resource": "arn:aws:logs:*:*:*" - }, - { - "Effect": "Allow", - "Action": [ - "iam:UpdateAssumeRolePolicy", - "iam:GetRole" - ], - "Resource": { - "Fn::GetAtt": [ - "AuthRole", - "Arn" - ] - } - }, - { - "Effect": "Allow", - "Action": [ - "iam:UpdateAssumeRolePolicy", - "iam:GetRole" - ], - "Resource": { - "Fn::GetAtt": [ - "UnauthRole", - "Arn" - ] - } - } - ] - } - } - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-APIGatewayAuthStack-x.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-APIGatewayAuthStack-x.description.txt new file mode 100644 index 00000000000..4acebd6a901 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-APIGatewayAuthStack-x.description.txt @@ -0,0 +1 @@ +API Gateway policy stack created using Amplify CLI diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-APIGatewayAuthStack-x.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-APIGatewayAuthStack-x.outputs.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-APIGatewayAuthStack-x.outputs.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-APIGatewayAuthStack-x.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-APIGatewayAuthStack-x.parameters.json new file mode 100644 index 00000000000..1524e43aa1a --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-APIGatewayAuthStack-x.parameters.json @@ -0,0 +1,22 @@ +[ + { + "ParameterKey": "authRoleName", + "ParameterValue": "amplify-fitnesstracker-x-x-authRole" + }, + { + "ParameterKey": "nutritionapi", + "ParameterValue": "s27d6on2x4" + }, + { + "ParameterKey": "unauthRoleName", + "ParameterValue": "amplify-fitnesstracker-x-x-unauthRole" + }, + { + "ParameterKey": "adminapi", + "ParameterValue": "wn1ifrxt6h" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-APIGatewayAuthStack-x.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-APIGatewayAuthStack-x.template.json new file mode 100644 index 00000000000..05641bfa363 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-APIGatewayAuthStack-x.template.json @@ -0,0 +1,116 @@ +{ + "Description": "API Gateway policy stack created using Amplify CLI", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "authRoleName": { + "Type": "String" + }, + "unauthRoleName": { + "Type": "String" + }, + "env": { + "Type": "String" + }, + "nutritionapi": { + "Type": "String" + }, + "adminapi": { + "Type": "String" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + } + }, + "Resources": { + "PolicyAPIGWAuth1": { + "Type": "AWS::IAM::ManagedPolicy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "execute-api:Invoke" + ], + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":", + { + "Ref": "nutritionapi" + }, + "/", + { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "Prod", + { + "Ref": "env" + } + ] + }, + "/*/nutrition/log/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":", + { + "Ref": "nutritionapi" + }, + "/", + { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "Prod", + { + "Ref": "env" + } + ] + }, + "/*/nutrition/log" + ] + ] + } + ] + } + ] + }, + "Roles": [ + { + "Ref": "authRoleName" + } + ] + } + } + } +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-AuthTriggerCustomLambdaStack-x.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-AuthTriggerCustomLambdaStack-x.description.txt new file mode 100644 index 00000000000..4fd3d424953 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-AuthTriggerCustomLambdaStack-x.description.txt @@ -0,0 +1 @@ +Custom Resource stack for Auth Trigger created using Amplify CLI diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-AuthTriggerCustomLambdaStack-x.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-AuthTriggerCustomLambdaStack-x.outputs.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-AuthTriggerCustomLambdaStack-x.outputs.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-AuthTriggerCustomLambdaStack-x.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-AuthTriggerCustomLambdaStack-x.parameters.json new file mode 100644 index 00000000000..bd147f202f6 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-AuthTriggerCustomLambdaStack-x.parameters.json @@ -0,0 +1,26 @@ +[ + { + "ParameterKey": "functionfitnesstracker33f5545533f55455PreSignupLambdaExecutionRole", + "ParameterValue": "arn:aws:iam::123456789012:role/fitnesstracker33f5545533f55455PreSignup-x" + }, + { + "ParameterKey": "functionfitnesstracker33f5545533f55455PreSignupName", + "ParameterValue": "fitnesstracker33f5545533f55455PreSignup-x" + }, + { + "ParameterKey": "functionfitnesstracker33f5545533f55455PreSignupArn", + "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker33f5545533f55455PreSignup-x" + }, + { + "ParameterKey": "userpoolId", + "ParameterValue": "us-east-1_Xm7264Or1" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "userpoolArn", + "ParameterValue": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_Xm7264Or1" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-AuthTriggerCustomLambdaStack-x.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-AuthTriggerCustomLambdaStack-x.template.json new file mode 100644 index 00000000000..872b3dd884e --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-AuthTriggerCustomLambdaStack-x.template.json @@ -0,0 +1,157 @@ +{ + "Description": "Custom Resource stack for Auth Trigger created using Amplify CLI", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "userpoolId": { + "Type": "String" + }, + "userpoolArn": { + "Type": "String" + }, + "functionfitnesstracker33f5545533f55455PreSignupName": { + "Type": "String" + }, + "functionfitnesstracker33f5545533f55455PreSignupArn": { + "Type": "String" + }, + "functionfitnesstracker33f5545533f55455PreSignupLambdaExecutionRole": { + "Type": "String" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + } + }, + "Resources": { + "UserPoolPreSignUpLambdaInvokePermission": { + "Type": "AWS::Lambda::Permission", + "Properties": { + "Action": "lambda:InvokeFunction", + "FunctionName": { + "Ref": "functionfitnesstracker33f5545533f55455PreSignupName" + }, + "Principal": "cognito-idp.amazonaws.com", + "SourceArn": { + "Ref": "userpoolArn" + } + } + }, + "authTriggerFnServiceRole08093B67": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ] + } + }, + "authTriggerFnServiceRoleDefaultPolicyEC9285A8": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "cognito-idp:DescribeUserPool", + "cognito-idp:UpdateUserPool" + ], + "Effect": "Allow", + "Resource": { + "Ref": "userpoolArn" + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "authTriggerFnServiceRoleDefaultPolicyEC9285A8", + "Roles": [ + { + "Ref": "authTriggerFnServiceRole08093B67" + } + ] + } + }, + "authTriggerFn7FCFA449": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "ZipFile": "const response = require('cfn-response');\nconst {\n CognitoIdentityProviderClient,\n DescribeUserPoolCommand,\n UpdateUserPoolCommand,\n} = require('@aws-sdk/client-cognito-identity-provider');\n\nexports.handler = (event, context) => {\n // Don't return promise, response.send() marks context as done internally\n void tryHandleEvent(event, context);\n};\n\nasync function tryHandleEvent(event, context) {\n const physicalResourceId =\n event.RequestType === 'Update' ? event.PhysicalResourceId : `${event.LogicalResourceId}-${event.ResourceProperties.userpoolId}`;\n try {\n await handleEvent(event);\n response.send(event, context, response.SUCCESS, {}, physicalResourceId);\n } catch (err) {\n console.log(err.stack);\n response.send(event, context, response.FAILED, { err }, physicalResourceId);\n }\n}\n\nasync function handleEvent(event) {\n const userPoolId = event.ResourceProperties.userpoolId;\n const { lambdaConfig } = event.ResourceProperties;\n const config = {};\n const cognitoClient = new CognitoIdentityProviderClient({});\n const userPoolConfig = await cognitoClient.send(new DescribeUserPoolCommand({ UserPoolId: userPoolId }));\n const userPoolParams = userPoolConfig.UserPool;\n // update userPool params\n\n const updateUserPoolConfig = {\n UserPoolId: userPoolParams.Id,\n Policies: userPoolParams.Policies,\n SmsVerificationMessage: userPoolParams.SmsVerificationMessage,\n AccountRecoverySetting: userPoolParams.AccountRecoverySetting,\n AdminCreateUserConfig: userPoolParams.AdminCreateUserConfig,\n AutoVerifiedAttributes: userPoolParams.AutoVerifiedAttributes,\n EmailConfiguration: userPoolParams.EmailConfiguration,\n EmailVerificationMessage: userPoolParams.EmailVerificationMessage,\n EmailVerificationSubject: userPoolParams.EmailVerificationSubject,\n VerificationMessageTemplate: userPoolParams.VerificationMessageTemplate,\n SmsAuthenticationMessage: userPoolParams.SmsAuthenticationMessage,\n MfaConfiguration: userPoolParams.MfaConfiguration,\n DeviceConfiguration: userPoolParams.DeviceConfiguration,\n SmsConfiguration: userPoolParams.SmsConfiguration,\n UserPoolTags: userPoolParams.UserPoolTags,\n UserPoolAddOns: userPoolParams.UserPoolAddOns,\n };\n\n // removing undefined keys\n Object.keys(updateUserPoolConfig).forEach((key) => updateUserPoolConfig[key] === undefined && delete updateUserPoolConfig[key]);\n\n /* removing UnusedAccountValidityDays as deprecated\n InvalidParameterException: Please use TemporaryPasswordValidityDays in PasswordPolicy instead of UnusedAccountValidityDays\n */\n if (updateUserPoolConfig.AdminCreateUserConfig && updateUserPoolConfig.AdminCreateUserConfig.UnusedAccountValidityDays) {\n delete updateUserPoolConfig.AdminCreateUserConfig.UnusedAccountValidityDays;\n }\n lambdaConfig.forEach((lambda) => (config[`${lambda.triggerType}`] = lambda.lambdaFunctionArn));\n if (event.RequestType === 'Delete') {\n updateUserPoolConfig.LambdaConfig = {};\n console.log(`${event.RequestType}:`, JSON.stringify(updateUserPoolConfig));\n const result = await cognitoClient.send(new UpdateUserPoolCommand(updateUserPoolConfig));\n console.log(`delete response data ${JSON.stringify(result)}`);\n } else if (event.RequestType === 'Update' || event.RequestType === 'Create') {\n updateUserPoolConfig.LambdaConfig = config;\n const result = await cognitoClient.send(new UpdateUserPoolCommand(updateUserPoolConfig));\n console.log(`createOrUpdate response data ${JSON.stringify(result)}`);\n }\n}\n" + }, + "Handler": "index.handler", + "Role": { + "Fn::GetAtt": [ + "authTriggerFnServiceRole08093B67", + "Arn" + ] + }, + "Runtime": "nodejs22.x" + }, + "DependsOn": [ + "authTriggerFnServiceRoleDefaultPolicyEC9285A8", + "authTriggerFnServiceRole08093B67" + ] + }, + "CustomAuthTriggerResource": { + "Type": "Custom::CustomAuthTriggerResourceOutputs", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "authTriggerFn7FCFA449", + "Arn" + ] + }, + "userpoolId": { + "Ref": "userpoolId" + }, + "lambdaConfig": [ + { + "triggerType": "PreSignUp", + "lambdaFunctionName": "fitnesstracker33f5545533f55455PreSignup", + "lambdaFunctionArn": { + "Ref": "functionfitnesstracker33f5545533f55455PreSignupArn" + } + } + ], + "nonce": "0acce522-8eb5-46c9-b68b-a7015e24a01c" + }, + "DependsOn": [ + "authTriggerFn7FCFA449", + "authTriggerFnServiceRoleDefaultPolicyEC9285A8", + "authTriggerFnServiceRole08093B67" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + } + } +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apiadminapi-x.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apiadminapi-x.description.txt new file mode 100644 index 00000000000..d297a71cc5f --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apiadminapi-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"api-API Gateway","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apiadminapi-x.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apiadminapi-x.outputs.json new file mode 100644 index 00000000000..28cf91f26b6 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apiadminapi-x.outputs.json @@ -0,0 +1,17 @@ +[ + { + "OutputKey": "ApiName", + "OutputValue": "adminapi", + "Description": "API Friendly name" + }, + { + "OutputKey": "RootUrl", + "OutputValue": "https://wn1ifrxt6h.execute-api.us-east-1.amazonaws.com/x", + "Description": "Root URL of the API gateway" + }, + { + "OutputKey": "ApiId", + "OutputValue": "wn1ifrxt6h", + "Description": "API ID (prefix of API URL)" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apiadminapi-x.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apiadminapi-x.parameters.json new file mode 100644 index 00000000000..2e6ee82b831 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apiadminapi-x.parameters.json @@ -0,0 +1,22 @@ +[ + { + "ParameterKey": "functionadminArn", + "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:admin-x" + }, + { + "ParameterKey": "functionadminName", + "ParameterValue": "admin-x" + }, + { + "ParameterKey": "authfitnesstracker33f5545533f55455UserPoolId", + "ParameterValue": "us-east-1_Xm7264Or1" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "authuserPoolGroupsAdminGroupRole", + "ParameterValue": "arn:aws:iam::123456789012:role/us-east-1_Xm7264Or1-AdminGroupRole" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apiadminapi-x.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apiadminapi-x.template.json new file mode 100644 index 00000000000..640df24a5f9 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apiadminapi-x.template.json @@ -0,0 +1,532 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-API Gateway\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "authfitnesstracker33f5545533f55455UserPoolId": { + "Type": "String", + "Default": "authfitnesstracker33f5545533f55455UserPoolId" + }, + "authuserPoolGroupsAdminGroupRole": { + "Type": "String", + "Default": "authuserPoolGroupsAdminGroupRole" + }, + "functionadminName": { + "Type": "String", + "Default": "functionadminName" + }, + "functionadminArn": { + "Type": "String", + "Default": "functionadminArn" + }, + "env": { + "Type": "String" + } + }, + "Resources": { + "AdminGroupadminPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "execute-api:Invoke", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":", + { + "Ref": "adminapi" + }, + "/", + { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "Prod", + { + "Ref": "env" + } + ] + }, + "/GET/admin" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":", + { + "Ref": "adminapi" + }, + "/", + { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "Prod", + { + "Ref": "env" + } + ] + }, + "/GET/admin/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "adminapi-admin-Admin-group-policy", + "Roles": [ + { + "Fn::Join": [ + "-", + [ + { + "Ref": "authfitnesstracker33f5545533f55455UserPoolId" + }, + "AdminGroupRole" + ] + ] + } + ] + } + }, + "functionadminPermissionadminapi": { + "Type": "AWS::Lambda::Permission", + "Properties": { + "Action": "lambda:InvokeFunction", + "FunctionName": { + "Ref": "functionadminName" + }, + "Principal": "apigateway.amazonaws.com", + "SourceArn": { + "Fn::Join": [ + "", + [ + "arn:aws:execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":", + { + "Ref": "adminapi" + }, + "/*/*/*" + ] + ] + } + } + }, + "adminapi": { + "Type": "AWS::ApiGateway::RestApi", + "Properties": { + "Body": { + "swagger": "2.0", + "info": { + "version": "2018-05-24T17:52:00Z", + "title": "adminapi" + }, + "host": { + "Fn::Join": [ + "", + [ + "apigateway.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com" + ] + ] + }, + "basePath": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "/Prod", + { + "Fn::Join": [ + "", + [ + "/", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "schemes": [ + "https" + ], + "paths": { + "/admin": { + "options": { + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "responses": { + "200": { + "description": "200 response", + "headers": { + "Access-Control-Allow-Origin": { + "type": "string" + }, + "Access-Control-Allow-Methods": { + "type": "string" + }, + "Access-Control-Allow-Headers": { + "type": "string" + } + } + } + }, + "x-amazon-apigateway-integration": { + "responses": { + "default": { + "statusCode": "200", + "responseParameters": { + "method.response.header.Access-Control-Allow-Methods": "'DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT'", + "method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token,X-Amz-User-Agent'", + "method.response.header.Access-Control-Allow-Origin": "'*'" + } + } + }, + "requestTemplates": { + "application/json": "{\"statusCode\": 200}" + }, + "passthroughBehavior": "when_no_match", + "type": "mock" + } + }, + "x-amazon-apigateway-any-method": { + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "body", + "name": "RequestSchema", + "required": false, + "schema": { + "$ref": "#/definitions/RequestSchema" + } + } + ], + "responses": { + "200": { + "description": "200 response", + "schema": { + "$ref": "#/definitions/ResponseSchema" + } + } + }, + "x-amazon-apigateway-integration": { + "responses": { + "default": { + "statusCode": "200" + } + }, + "uri": { + "Fn::Join": [ + "", + [ + "arn:aws:apigateway:", + { + "Ref": "AWS::Region" + }, + ":lambda:path/2015-03-31/functions/", + { + "Ref": "functionadminArn" + }, + "/invocations" + ] + ] + }, + "passthroughBehavior": "when_no_match", + "httpMethod": "POST", + "type": "aws_proxy" + }, + "security": [ + { + "sigv4": [] + } + ] + } + }, + "/admin/{proxy+}": { + "options": { + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "responses": { + "200": { + "description": "200 response", + "headers": { + "Access-Control-Allow-Origin": { + "type": "string" + }, + "Access-Control-Allow-Methods": { + "type": "string" + }, + "Access-Control-Allow-Headers": { + "type": "string" + } + } + } + }, + "x-amazon-apigateway-integration": { + "responses": { + "default": { + "statusCode": "200", + "responseParameters": { + "method.response.header.Access-Control-Allow-Methods": "'DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT'", + "method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token,X-Amz-User-Agent'", + "method.response.header.Access-Control-Allow-Origin": "'*'" + } + } + }, + "requestTemplates": { + "application/json": "{\"statusCode\": 200}" + }, + "passthroughBehavior": "when_no_match", + "type": "mock" + } + }, + "x-amazon-apigateway-any-method": { + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "body", + "name": "RequestSchema", + "required": false, + "schema": { + "$ref": "#/definitions/RequestSchema" + } + } + ], + "responses": { + "200": { + "description": "200 response", + "schema": { + "$ref": "#/definitions/ResponseSchema" + } + } + }, + "x-amazon-apigateway-integration": { + "responses": { + "default": { + "statusCode": "200" + } + }, + "uri": { + "Fn::Join": [ + "", + [ + "arn:aws:apigateway:", + { + "Ref": "AWS::Region" + }, + ":lambda:path/2015-03-31/functions/", + { + "Ref": "functionadminArn" + }, + "/invocations" + ] + ] + }, + "passthroughBehavior": "when_no_match", + "httpMethod": "POST", + "type": "aws_proxy" + }, + "security": [ + { + "sigv4": [] + } + ] + } + } + }, + "securityDefinitions": { + "sigv4": { + "type": "apiKey", + "name": "Authorization", + "in": "header", + "x-amazon-apigateway-authtype": "awsSigv4" + } + }, + "definitions": { + "RequestSchema": { + "type": "object", + "required": [ + "request" + ], + "properties": { + "request": { + "type": "string" + } + }, + "title": "Request Schema" + }, + "ResponseSchema": { + "type": "object", + "required": [ + "response" + ], + "properties": { + "response": { + "type": "string" + } + }, + "title": "Response Schema" + } + } + }, + "Description": "", + "FailOnWarnings": true, + "Name": "adminapi" + } + }, + "adminapiDefault4XXResponse9abfcb58": { + "Type": "AWS::ApiGateway::GatewayResponse", + "Properties": { + "ResponseParameters": { + "gatewayresponse.header.Access-Control-Allow-Origin": "'*'", + "gatewayresponse.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token'", + "gatewayresponse.header.Access-Control-Allow-Methods": "'DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT'", + "gatewayresponse.header.Access-Control-Expose-Headers": "'Date,X-Amzn-ErrorType'" + }, + "ResponseType": "DEFAULT_4XX", + "RestApiId": { + "Ref": "adminapi" + } + } + }, + "adminapiDefault5XXResponse9abfcb58": { + "Type": "AWS::ApiGateway::GatewayResponse", + "Properties": { + "ResponseParameters": { + "gatewayresponse.header.Access-Control-Allow-Origin": "'*'", + "gatewayresponse.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token'", + "gatewayresponse.header.Access-Control-Allow-Methods": "'DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT'", + "gatewayresponse.header.Access-Control-Expose-Headers": "'Date,X-Amzn-ErrorType'" + }, + "ResponseType": "DEFAULT_5XX", + "RestApiId": { + "Ref": "adminapi" + } + } + }, + "DeploymentAPIGWadminapi7459b549": { + "Type": "AWS::ApiGateway::Deployment", + "Properties": { + "Description": "The Development stage deployment of your API.", + "RestApiId": { + "Ref": "adminapi" + }, + "StageName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "Prod", + { + "Ref": "env" + } + ] + } + }, + "DependsOn": [ + "adminapiDefault4XXResponse9abfcb58", + "adminapiDefault5XXResponse9abfcb58" + ] + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + } + }, + "Outputs": { + "RootUrl": { + "Description": "Root URL of the API gateway", + "Value": { + "Fn::Join": [ + "", + [ + "https://", + { + "Ref": "adminapi" + }, + ".execute-api.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "Prod", + { + "Ref": "env" + } + ] + } + ] + ] + } + }, + "ApiName": { + "Description": "API Friendly name", + "Value": "adminapi" + }, + "ApiId": { + "Description": "API ID (prefix of API URL)", + "Value": { + "Ref": "adminapi" + } + } + } +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-ConnectionStack-x.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-ConnectionStack-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-ConnectionStack-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-ConnectionStack-x.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-ConnectionStack-x.outputs.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-ConnectionStack-x.outputs.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-ConnectionStack-x.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-ConnectionStack-x.parameters.json new file mode 100644 index 00000000000..bdba6823a8d --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-ConnectionStack-x.parameters.json @@ -0,0 +1,26 @@ +[ + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", + "ParameterValue": "amplify-appsync-files/67310f5f0a68cc163f9cc58da56e1409a2c21b1d" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", + "ParameterValue": "xwgwkksjrbcoxnb64a6clvir4u" + }, + { + "ParameterKey": "referencetotransformerrootstackExerciseNestedStackExerciseNestedStackResourceA190CF68OutputstransformerrootstackExerciseExerciseTable2F3E478ERef", + "ParameterValue": "Exercise-xwgwkksjrbcoxnb64a6clvir4u-x" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", + "ParameterValue": "amplify-fitnesstracker-x-x-deployment" + }, + { + "ParameterKey": "referencetotransformerrootstackExerciseNestedStackExerciseNestedStackResourceA190CF68OutputstransformerrootstackExerciseExerciseDataSourceE8B787D0Name", + "ParameterValue": "ExerciseTable" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-ConnectionStack-x.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-ConnectionStack-x.template.json new file mode 100644 index 00000000000..c9c8f2f3b14 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-ConnectionStack-x.template.json @@ -0,0 +1,143 @@ +{ + "Resources": { + "WorkoutProgramexercisesauth0FunctionWorkoutProgramexercisesauth0FunctionAppSyncFunctionFB9C3EA7": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "WorkoutProgramexercisesauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/WorkoutProgram.exercises.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "WorkoutProgramExercisesDataResolverFnWorkoutProgramExercisesDataResolverFnAppSyncFunctionA9FFE7A3": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackExerciseNestedStackExerciseNestedStackResourceA190CF68OutputstransformerrootstackExerciseExerciseDataSourceE8B787D0Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "WorkoutProgramExercisesDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/WorkoutProgram.exercises.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/WorkoutProgram.exercises.res.vtl" + ] + ] + } + } + }, + "WorkoutProgramexercisesResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "exercises", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "WorkoutProgramexercisesauth0FunctionWorkoutProgramexercisesauth0FunctionAppSyncFunctionFB9C3EA7", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "WorkoutProgramExercisesDataResolverFnWorkoutProgramExercisesDataResolverFnAppSyncFunctionA9FFE7A3", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"WorkoutProgram\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"exercises\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackExerciseNestedStackExerciseNestedStackResourceA190CF68OutputstransformerrootstackExerciseExerciseTable2F3E478ERef" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "WorkoutProgram" + } + } + }, + "Parameters": { + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackExerciseNestedStackExerciseNestedStackResourceA190CF68OutputstransformerrootstackExerciseExerciseDataSourceE8B787D0Name": { + "Type": "String" + }, + "referencetotransformerrootstackExerciseNestedStackExerciseNestedStackResourceA190CF68OutputstransformerrootstackExerciseExerciseTable2F3E478ERef": { + "Type": "String" + } + } +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-CustomResourcesjson-x.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-CustomResourcesjson-x.description.txt new file mode 100644 index 00000000000..21e1447423e --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-CustomResourcesjson-x.description.txt @@ -0,0 +1 @@ +An auto-generated nested stack. diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-CustomResourcesjson-x.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-CustomResourcesjson-x.outputs.json new file mode 100644 index 00000000000..291e7aad7f7 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-CustomResourcesjson-x.outputs.json @@ -0,0 +1,7 @@ +[ + { + "OutputKey": "EmptyOutput", + "OutputValue": "", + "Description": "An empty output. You may delete this if you have at least one resource above." + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-CustomResourcesjson-x.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-CustomResourcesjson-x.parameters.json new file mode 100644 index 00000000000..cefec8cf01b --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-CustomResourcesjson-x.parameters.json @@ -0,0 +1,22 @@ +[ + { + "ParameterKey": "S3DeploymentBucket", + "ParameterValue": "amplify-fitnesstracker-x-x-deployment" + }, + { + "ParameterKey": "AppSyncApiId", + "ParameterValue": "xwgwkksjrbcoxnb64a6clvir4u" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "S3DeploymentRootKey", + "ParameterValue": "amplify-appsync-files/67310f5f0a68cc163f9cc58da56e1409a2c21b1d" + }, + { + "ParameterKey": "AppSyncApiName", + "ParameterValue": "fitnesstracker" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-CustomResourcesjson-x.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-CustomResourcesjson-x.template.json new file mode 100644 index 00000000000..5fe357d6096 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-CustomResourcesjson-x.template.json @@ -0,0 +1,61 @@ +{ + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "An auto-generated nested stack.", + "Metadata": {}, + "Parameters": { + "AppSyncApiId": { + "Type": "String", + "Description": "The id of the AppSync API associated with this project." + }, + "AppSyncApiName": { + "Type": "String", + "Description": "The name of the AppSync API", + "Default": "AppSyncSimpleTransform" + }, + "env": { + "Type": "String", + "Description": "The environment name. e.g. Dev, Test, or Production", + "Default": "NONE" + }, + "S3DeploymentBucket": { + "Type": "String", + "Description": "The S3 bucket containing all deployment assets for the project." + }, + "S3DeploymentRootKey": { + "Type": "String", + "Description": "An S3 key relative to the S3DeploymentBucket that points to the root\nof the deployment directory." + } + }, + "Resources": { + "EmptyResource": { + "Type": "Custom::EmptyResource", + "Condition": "AlwaysFalse" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + } + ] + }, + "AlwaysFalse": { + "Fn::Equals": [ + "true", + "false" + ] + } + }, + "Outputs": { + "EmptyOutput": { + "Description": "An empty output. You may delete this if you have at least one resource above.", + "Value": "" + } + } +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-Exercise-x.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-Exercise-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-Exercise-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-Exercise-x.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-Exercise-x.outputs.json new file mode 100644 index 00000000000..816bf322c3c --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-Exercise-x.outputs.json @@ -0,0 +1,28 @@ +[ + { + "OutputKey": "transformerrootstackExerciseExerciseDataSourceE8B787D0Name", + "OutputValue": "ExerciseTable" + }, + { + "OutputKey": "GetAttExerciseTableName", + "OutputValue": "Exercise-xwgwkksjrbcoxnb64a6clvir4u-x", + "Description": "Your DynamoDB table name.", + "ExportName": "xwgwkksjrbcoxnb64a6clvir4u:GetAtt:ExerciseTable:Name" + }, + { + "OutputKey": "GetAttExerciseDataSourceName", + "OutputValue": "ExerciseTable", + "Description": "Your model DataSource name.", + "ExportName": "xwgwkksjrbcoxnb64a6clvir4u:GetAtt:ExerciseDataSource:Name" + }, + { + "OutputKey": "transformerrootstackExerciseExerciseTable2F3E478ERef", + "OutputValue": "Exercise-xwgwkksjrbcoxnb64a6clvir4u-x" + }, + { + "OutputKey": "GetAttExerciseTableStreamArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Exercise-xwgwkksjrbcoxnb64a6clvir4u-x/stream/2026-04-15T03:52:31.073", + "Description": "Your DynamoDB table StreamArn.", + "ExportName": "xwgwkksjrbcoxnb64a6clvir4u:GetAtt:ExerciseTable:StreamArn" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-Exercise-x.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-Exercise-x.parameters.json new file mode 100644 index 00000000000..3e7f7f1d08c --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-Exercise-x.parameters.json @@ -0,0 +1,70 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", + "ParameterValue": "amplify-appsync-files/67310f5f0a68cc163f9cc58da56e1409a2c21b1d" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", + "ParameterValue": "xwgwkksjrbcoxnb64a6clvir4u" + }, + { + "ParameterKey": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId", + "ParameterValue": "gcclerajqfgpnmxr3jcddmqsv4" + }, + { + "ParameterKey": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncF52D36F4F", + "ParameterValue": "bvcwsgcx7jg2hlkn3nbbqmpoxi" + }, + { + "ParameterKey": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunction8D95BFD8FunctionId", + "ParameterValue": "gep2vf3wjbd45hp2ubzkexxt5i" + }, + { + "ParameterKey": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId", + "ParameterValue": "imibv6cnzvcp7i5gs7mcrvx3ey" + }, + { + "ParameterKey": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId", + "ParameterValue": "khfkfuz5xrdgflta2g3tocqc2a" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramWorkoutProgramOwnerDataResolverFnWorkoutProgramOwnerDataResolverFnAppSyncFunctionB902B95DFunctionId", + "ParameterValue": "yzgglqqoifb7zgi4uecbbdek6e" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", + "ParameterValue": "amplify-fitnesstracker-x-x-deployment" + }, + { + "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", + "ParameterValue": "x" + }, + { + "ParameterKey": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyn4D846E8C", + "ParameterValue": "ezrp4critvfnfiahjlhijajcmi" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-Exercise-x.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-Exercise-x.template.json new file mode 100644 index 00000000000..cdeab5f7312 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-Exercise-x.template.json @@ -0,0 +1,1262 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunction8D95BFD8FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Type": "String" + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncF52D36F4F": { + "Type": "String" + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyn4D846E8C": { + "Type": "String" + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramWorkoutProgramOwnerDataResolverFnWorkoutProgramOwnerDataResolverFnAppSyncFunctionB902B95DFunctionId": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "ExerciseTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + }, + { + "AttributeName": "workoutProgramExercisesId", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "GlobalSecondaryIndexes": [ + { + "IndexName": "gsi-WorkoutProgram.exercises", + "KeySchema": [ + { + "AttributeName": "workoutProgramExercisesId", + "KeyType": "HASH" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + } + ], + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "Exercise-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Retain" + }, + "ExerciseIAMRole28D09384": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem", + "dynamodb:ConditionCheckItem", + "dynamodb:DescribeTable", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "Exercise-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "Exercise-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess" + } + ], + "RoleName": { + "Fn::Join": [ + "", + [ + "ExerciseIAMRoled0d0e6-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "ExerciseIAMRoleDefaultPolicy0CA356BC": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "ExerciseTable", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "ExerciseTable", + "Arn" + ] + }, + "/index/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "ExerciseIAMRoleDefaultPolicy0CA356BC", + "Roles": [ + { + "Ref": "ExerciseIAMRole28D09384" + } + ] + } + }, + "ExerciseDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "ExerciseTable" + } + }, + "Name": "ExerciseTable", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "ExerciseIAMRole28D09384", + "Arn" + ] + }, + "Type": "AMAZON_DYNAMODB" + }, + "DependsOn": [ + "ExerciseIAMRole28D09384" + ] + }, + "QueryGetExerciseDataResolverFnQueryGetExerciseDataResolverFnAppSyncFunction73149704": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ExerciseDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryGetExerciseDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getExercise.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getExercise.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ExerciseDataSource" + ] + }, + "GetExerciseResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getExercise", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunction8D95BFD8FunctionId" + }, + { + "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetExerciseDataResolverFnQueryGetExerciseDataResolverFnAppSyncFunction73149704", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getExercise\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ExerciseTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + } + }, + "QueryListExercisesDataResolverFnQueryListExercisesDataResolverFnAppSyncFunction0818DDCE": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ExerciseDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryListExercisesDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listExercises.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listExercises.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ExerciseDataSource" + ] + }, + "ListExerciseResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listExercises", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunction8D95BFD8FunctionId" + }, + { + "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListExercisesDataResolverFnQueryListExercisesDataResolverFnAppSyncFunction0818DDCE", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listExercises\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ExerciseTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + } + }, + "MutationcreateExerciseauth0FunctionMutationcreateExerciseauth0FunctionAppSyncFunction06E6FB6C": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateExerciseauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createExercise.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "MutationCreateExerciseDataResolverFnMutationCreateExerciseDataResolverFnAppSyncFunction9F8EC7E0": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ExerciseDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationCreateExerciseDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createExercise.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createExercise.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ExerciseDataSource" + ] + }, + "CreateExerciseResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createExercise", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationcreateExerciseauth0FunctionMutationcreateExerciseauth0FunctionAppSyncFunction06E6FB6C", + "FunctionId" + ] + }, + { + "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreateExerciseDataResolverFnMutationCreateExerciseDataResolverFnAppSyncFunction9F8EC7E0", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createExercise\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ExerciseTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "MutationupdateExerciseauth0FunctionMutationupdateExerciseauth0FunctionAppSyncFunction2CE5BE66": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ExerciseDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateExerciseauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateExercise.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateExercise.auth.1.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ExerciseDataSource" + ] + }, + "MutationUpdateExerciseDataResolverFnMutationUpdateExerciseDataResolverFnAppSyncFunctionD0CB335C": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ExerciseDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationUpdateExerciseDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateExercise.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateExercise.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ExerciseDataSource" + ] + }, + "UpdateExerciseResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateExercise", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId" + }, + { + "Fn::GetAtt": [ + "MutationupdateExerciseauth0FunctionMutationupdateExerciseauth0FunctionAppSyncFunction2CE5BE66", + "FunctionId" + ] + }, + { + "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdateExerciseDataResolverFnMutationUpdateExerciseDataResolverFnAppSyncFunctionD0CB335C", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateExercise\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ExerciseTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "MutationdeleteExerciseauth0FunctionMutationdeleteExerciseauth0FunctionAppSyncFunctionC2D9DFF8": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ExerciseDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeleteExerciseauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteExercise.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteExercise.auth.1.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ExerciseDataSource" + ] + }, + "MutationDeleteExerciseDataResolverFnMutationDeleteExerciseDataResolverFnAppSyncFunction91D88DD6": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ExerciseDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationDeleteExerciseDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteExercise.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteExercise.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ExerciseDataSource" + ] + }, + "DeleteExerciseResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteExercise", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationdeleteExerciseauth0FunctionMutationdeleteExerciseauth0FunctionAppSyncFunctionC2D9DFF8", + "FunctionId" + ] + }, + { + "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeleteExerciseDataResolverFnMutationDeleteExerciseDataResolverFnAppSyncFunction91D88DD6", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteExercise\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ExerciseTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "SubscriptiononCreateExerciseResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateExercise", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncF52D36F4F" + }, + { + "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" + }, + { + "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyn4D846E8C" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateExercise\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + }, + "SubscriptiononUpdateExerciseResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateExercise", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncF52D36F4F" + }, + { + "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" + }, + { + "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyn4D846E8C" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateExercise\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + }, + "SubscriptiononDeleteExerciseResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteExercise", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncF52D36F4F" + }, + { + "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" + }, + { + "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyn4D846E8C" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteExercise\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + }, + "ExerciseownerResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "owner", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramWorkoutProgramOwnerDataResolverFnWorkoutProgramOwnerDataResolverFnAppSyncFunctionB902B95DFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Exercise\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"owner\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Exercise" + } + } + }, + "Outputs": { + "GetAttExerciseTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "ExerciseTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ExerciseTable:StreamArn" + ] + ] + } + } + }, + "GetAttExerciseTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "ExerciseTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ExerciseTable:Name" + ] + ] + } + } + }, + "GetAttExerciseDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "ExerciseDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ExerciseDataSource:Name" + ] + ] + } + } + }, + "transformerrootstackExerciseExerciseDataSourceE8B787D0Name": { + "Value": { + "Fn::GetAtt": [ + "ExerciseDataSource", + "Name" + ] + } + }, + "transformerrootstackExerciseExerciseTable2F3E478ERef": { + "Value": { + "Ref": "ExerciseTable" + } + } + } +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-Meal-x.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-Meal-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-Meal-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-Meal-x.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-Meal-x.outputs.json new file mode 100644 index 00000000000..59b81e0b4a4 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-Meal-x.outputs.json @@ -0,0 +1,20 @@ +[ + { + "OutputKey": "GetAttMealTableName", + "OutputValue": "Meal-xwgwkksjrbcoxnb64a6clvir4u-x", + "Description": "Your DynamoDB table name.", + "ExportName": "xwgwkksjrbcoxnb64a6clvir4u:GetAtt:MealTable:Name" + }, + { + "OutputKey": "GetAttMealDataSourceName", + "OutputValue": "MealTable", + "Description": "Your model DataSource name.", + "ExportName": "xwgwkksjrbcoxnb64a6clvir4u:GetAtt:MealDataSource:Name" + }, + { + "OutputKey": "GetAttMealTableStreamArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Meal-xwgwkksjrbcoxnb64a6clvir4u-x/stream/2026-04-15T03:52:30.998", + "Description": "Your DynamoDB table StreamArn.", + "ExportName": "xwgwkksjrbcoxnb64a6clvir4u:GetAtt:MealTable:StreamArn" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-Meal-x.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-Meal-x.parameters.json new file mode 100644 index 00000000000..b99b5571c2a --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-Meal-x.parameters.json @@ -0,0 +1,58 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", + "ParameterValue": "amplify-appsync-files/67310f5f0a68cc163f9cc58da56e1409a2c21b1d" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", + "ParameterValue": "xwgwkksjrbcoxnb64a6clvir4u" + }, + { + "ParameterKey": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId", + "ParameterValue": "gcclerajqfgpnmxr3jcddmqsv4" + }, + { + "ParameterKey": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId", + "ParameterValue": "imibv6cnzvcp7i5gs7mcrvx3ey" + }, + { + "ParameterKey": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId", + "ParameterValue": "khfkfuz5xrdgflta2g3tocqc2a" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", + "ParameterValue": "amplify-fitnesstracker-x-x-deployment" + }, + { + "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", + "ParameterValue": "x" + }, + { + "ParameterKey": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyn4D846E8C", + "ParameterValue": "ezrp4critvfnfiahjlhijajcmi" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-Meal-x.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-Meal-x.template.json new file mode 100644 index 00000000000..e6ee70c32bf --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-Meal-x.template.json @@ -0,0 +1,1239 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyn4D846E8C": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "MealTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "Meal-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Retain" + }, + "MealIAMRoleEDE19E15": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem", + "dynamodb:ConditionCheckItem", + "dynamodb:DescribeTable", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "Meal-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "Meal-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess" + } + ], + "RoleName": { + "Fn::Join": [ + "", + [ + "MealIAMRole54b7fd-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "MealIAMRoleDefaultPolicyDA5A2781": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "MealTable", + "Arn" + ] + }, + { + "Ref": "AWS::NoValue" + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "MealIAMRoleDefaultPolicyDA5A2781", + "Roles": [ + { + "Ref": "MealIAMRoleEDE19E15" + } + ] + } + }, + "MealDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "MealTable" + } + }, + "Name": "MealTable", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "MealIAMRoleEDE19E15", + "Arn" + ] + }, + "Type": "AMAZON_DYNAMODB" + }, + "DependsOn": [ + "MealIAMRoleEDE19E15" + ] + }, + "QuerygetMealauth0FunctionQuerygetMealauth0FunctionAppSyncFunction3EC25F21": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetMealauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getMeal.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "QueryGetMealDataResolverFnQueryGetMealDataResolverFnAppSyncFunction8B80E67B": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "MealDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryGetMealDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getMeal.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getMeal.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "MealDataSource" + ] + }, + "GetMealResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getMeal", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerygetMealauth0FunctionQuerygetMealauth0FunctionAppSyncFunction3EC25F21", + "FunctionId" + ] + }, + { + "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetMealDataResolverFnQueryGetMealDataResolverFnAppSyncFunction8B80E67B", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getMeal\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "MealTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + } + }, + "QueryListMealsDataResolverFnQueryListMealsDataResolverFnAppSyncFunction3EE87F58": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "MealDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryListMealsDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listMeals.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listMeals.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "MealDataSource" + ] + }, + "ListMealResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listMeals", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerygetMealauth0FunctionQuerygetMealauth0FunctionAppSyncFunction3EC25F21", + "FunctionId" + ] + }, + { + "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListMealsDataResolverFnQueryListMealsDataResolverFnAppSyncFunction3EE87F58", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listMeals\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "MealTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + } + }, + "MutationcreateMealauth0FunctionMutationcreateMealauth0FunctionAppSyncFunction746792DB": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateMealauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createMeal.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "MutationCreateMealDataResolverFnMutationCreateMealDataResolverFnAppSyncFunction3A7E3265": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "MealDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationCreateMealDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createMeal.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createMeal.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "MealDataSource" + ] + }, + "CreateMealResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createMeal", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationcreateMealauth0FunctionMutationcreateMealauth0FunctionAppSyncFunction746792DB", + "FunctionId" + ] + }, + { + "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreateMealDataResolverFnMutationCreateMealDataResolverFnAppSyncFunction3A7E3265", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createMeal\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "MealTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "MutationupdateMealauth0FunctionMutationupdateMealauth0FunctionAppSyncFunctionEFC9C205": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "MealDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateMealauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateMeal.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateMeal.auth.1.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "MealDataSource" + ] + }, + "MutationUpdateMealDataResolverFnMutationUpdateMealDataResolverFnAppSyncFunction7CE88037": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "MealDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationUpdateMealDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateMeal.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateMeal.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "MealDataSource" + ] + }, + "UpdateMealResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateMeal", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId" + }, + { + "Fn::GetAtt": [ + "MutationupdateMealauth0FunctionMutationupdateMealauth0FunctionAppSyncFunctionEFC9C205", + "FunctionId" + ] + }, + { + "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdateMealDataResolverFnMutationUpdateMealDataResolverFnAppSyncFunction7CE88037", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateMeal\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "MealTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "MutationdeleteMealauth0FunctionMutationdeleteMealauth0FunctionAppSyncFunction5A3C8FCE": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "MealDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeleteMealauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteMeal.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteMeal.auth.1.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "MealDataSource" + ] + }, + "MutationDeleteMealDataResolverFnMutationDeleteMealDataResolverFnAppSyncFunctionB6415754": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "MealDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationDeleteMealDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteMeal.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteMeal.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "MealDataSource" + ] + }, + "DeleteMealResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteMeal", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationdeleteMealauth0FunctionMutationdeleteMealauth0FunctionAppSyncFunction5A3C8FCE", + "FunctionId" + ] + }, + { + "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeleteMealDataResolverFnMutationDeleteMealDataResolverFnAppSyncFunctionB6415754", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteMeal\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "MealTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "SubscriptiononCreateMealauth0FunctionSubscriptiononCreateMealauth0FunctionAppSyncFunction8AF26F94": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononCreateMealauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Subscription.onCreateMeal.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "SubscriptiononCreateMealResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateMeal", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononCreateMealauth0FunctionSubscriptiononCreateMealauth0FunctionAppSyncFunction8AF26F94", + "FunctionId" + ] + }, + { + "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" + }, + { + "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyn4D846E8C" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateMeal\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + }, + "SubscriptiononUpdateMealResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateMeal", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononCreateMealauth0FunctionSubscriptiononCreateMealauth0FunctionAppSyncFunction8AF26F94", + "FunctionId" + ] + }, + { + "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" + }, + { + "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyn4D846E8C" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateMeal\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + }, + "SubscriptiononDeleteMealResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteMeal", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononCreateMealauth0FunctionSubscriptiononCreateMealauth0FunctionAppSyncFunction8AF26F94", + "FunctionId" + ] + }, + { + "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" + }, + { + "Ref": "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyn4D846E8C" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteMeal\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + } + }, + "Outputs": { + "GetAttMealTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "MealTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:MealTable:StreamArn" + ] + ] + } + } + }, + "GetAttMealTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "MealTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:MealTable:Name" + ] + ] + } + } + }, + "GetAttMealDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "MealDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:MealDataSource:Name" + ] + ] + } + } + } + } +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-WorkoutProgram-x.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-WorkoutProgram-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-WorkoutProgram-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-WorkoutProgram-x.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-WorkoutProgram-x.outputs.json new file mode 100644 index 00000000000..0b8feed6702 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-WorkoutProgram-x.outputs.json @@ -0,0 +1,48 @@ +[ + { + "OutputKey": "transformerrootstackWorkoutProgramQuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunction8D95BFD8FunctionId", + "OutputValue": "gep2vf3wjbd45hp2ubzkexxt5i" + }, + { + "OutputKey": "transformerrootstackWorkoutProgramSubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncFunction55BF88AFFunctionId", + "OutputValue": "bvcwsgcx7jg2hlkn3nbbqmpoxi" + }, + { + "OutputKey": "GetAttWorkoutProgramTableStreamArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/WorkoutProgram-xwgwkksjrbcoxnb64a6clvir4u-x/stream/2026-04-15T03:51:29.200", + "Description": "Your DynamoDB table StreamArn.", + "ExportName": "xwgwkksjrbcoxnb64a6clvir4u:GetAtt:WorkoutProgramTable:StreamArn" + }, + { + "OutputKey": "transformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId", + "OutputValue": "imibv6cnzvcp7i5gs7mcrvx3ey" + }, + { + "OutputKey": "GetAttWorkoutProgramTableName", + "OutputValue": "WorkoutProgram-xwgwkksjrbcoxnb64a6clvir4u-x", + "Description": "Your DynamoDB table name.", + "ExportName": "xwgwkksjrbcoxnb64a6clvir4u:GetAtt:WorkoutProgramTable:Name" + }, + { + "OutputKey": "transformerrootstackWorkoutProgramWorkoutProgramOwnerDataResolverFnWorkoutProgramOwnerDataResolverFnAppSyncFunctionB902B95DFunctionId", + "OutputValue": "yzgglqqoifb7zgi4uecbbdek6e" + }, + { + "OutputKey": "GetAttWorkoutProgramDataSourceName", + "OutputValue": "WorkoutProgramTable", + "Description": "Your model DataSource name.", + "ExportName": "xwgwkksjrbcoxnb64a6clvir4u:GetAtt:WorkoutProgramDataSource:Name" + }, + { + "OutputKey": "transformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId", + "OutputValue": "gcclerajqfgpnmxr3jcddmqsv4" + }, + { + "OutputKey": "transformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyncFunctionE9212A4DFunctionId", + "OutputValue": "ezrp4critvfnfiahjlhijajcmi" + }, + { + "OutputKey": "transformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId", + "OutputValue": "khfkfuz5xrdgflta2g3tocqc2a" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-WorkoutProgram-x.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-WorkoutProgram-x.parameters.json new file mode 100644 index 00000000000..b08e3733edc --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-WorkoutProgram-x.parameters.json @@ -0,0 +1,42 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", + "ParameterValue": "amplify-appsync-files/67310f5f0a68cc163f9cc58da56e1409a2c21b1d" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", + "ParameterValue": "xwgwkksjrbcoxnb64a6clvir4u" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", + "ParameterValue": "amplify-fitnesstracker-x-x-deployment" + }, + { + "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", + "ParameterValue": "x" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-WorkoutProgram-x.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-WorkoutProgram-x.template.json new file mode 100644 index 00000000000..4dadebef7b5 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x-WorkoutProgram-x.template.json @@ -0,0 +1,1536 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "WorkoutProgramTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "WorkoutProgram-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Retain" + }, + "WorkoutProgramIAMRoleB75B98D5": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem", + "dynamodb:ConditionCheckItem", + "dynamodb:DescribeTable", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "WorkoutProgram-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "WorkoutProgram-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess" + } + ], + "RoleName": { + "Fn::Join": [ + "", + [ + "WorkoutProgramIAMRol516c57-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "WorkoutProgramIAMRoleDefaultPolicy523CB235": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "WorkoutProgramTable", + "Arn" + ] + }, + { + "Ref": "AWS::NoValue" + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "WorkoutProgramIAMRoleDefaultPolicy523CB235", + "Roles": [ + { + "Ref": "WorkoutProgramIAMRoleB75B98D5" + } + ] + } + }, + "WorkoutProgramDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "WorkoutProgramTable" + } + }, + "Name": "WorkoutProgramTable", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "WorkoutProgramIAMRoleB75B98D5", + "Arn" + ] + }, + "Type": "AMAZON_DYNAMODB" + }, + "DependsOn": [ + "WorkoutProgramIAMRoleB75B98D5" + ] + }, + "QuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunctionF61649FE": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetWorkoutProgramauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getWorkoutProgram.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "QuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction3557039E": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetWorkoutProgrampostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getWorkoutProgram.postAuth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "QueryGetWorkoutProgramDataResolverFnQueryGetWorkoutProgramDataResolverFnAppSyncFunctionDFD5C9FA": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "WorkoutProgramDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryGetWorkoutProgramDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getWorkoutProgram.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getWorkoutProgram.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "WorkoutProgramDataSource" + ] + }, + "GetWorkoutProgramResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getWorkoutProgram", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunctionF61649FE", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction3557039E", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryGetWorkoutProgramDataResolverFnQueryGetWorkoutProgramDataResolverFnAppSyncFunctionDFD5C9FA", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getWorkoutProgram\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "WorkoutProgramTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + } + }, + "QueryListWorkoutProgramsDataResolverFnQueryListWorkoutProgramsDataResolverFnAppSyncFunctionC43C9A14": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "WorkoutProgramDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryListWorkoutProgramsDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listWorkoutPrograms.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listWorkoutPrograms.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "WorkoutProgramDataSource" + ] + }, + "ListWorkoutProgramResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listWorkoutPrograms", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunctionF61649FE", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction3557039E", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryListWorkoutProgramsDataResolverFnQueryListWorkoutProgramsDataResolverFnAppSyncFunctionC43C9A14", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listWorkoutPrograms\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "WorkoutProgramTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + } + }, + "MutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD050B3C1": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateWorkoutPrograminit0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createWorkoutProgram.init.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "MutationcreateWorkoutProgramauth0FunctionMutationcreateWorkoutProgramauth0FunctionAppSyncFunction6165E2A5": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateWorkoutProgramauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createWorkoutProgram.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "MutationCreateWorkoutProgramDataResolverFnMutationCreateWorkoutProgramDataResolverFnAppSyncFunction20E77E8E": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "WorkoutProgramDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationCreateWorkoutProgramDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createWorkoutProgram.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createWorkoutProgram.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "WorkoutProgramDataSource" + ] + }, + "CreateWorkoutProgramResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createWorkoutProgram", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD050B3C1", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationcreateWorkoutProgramauth0FunctionMutationcreateWorkoutProgramauth0FunctionAppSyncFunction6165E2A5", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction3557039E", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationCreateWorkoutProgramDataResolverFnMutationCreateWorkoutProgramDataResolverFnAppSyncFunction20E77E8E", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createWorkoutProgram\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "WorkoutProgramTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "MutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionDF7D6DB3": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateWorkoutPrograminit0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateWorkoutProgram.init.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "MutationupdateWorkoutProgramauth0FunctionMutationupdateWorkoutProgramauth0FunctionAppSyncFunction5B1F99AE": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "WorkoutProgramDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateWorkoutProgramauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateWorkoutProgram.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateWorkoutProgram.auth.1.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "WorkoutProgramDataSource" + ] + }, + "MutationUpdateWorkoutProgramDataResolverFnMutationUpdateWorkoutProgramDataResolverFnAppSyncFunctionC239D12F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "WorkoutProgramDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationUpdateWorkoutProgramDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateWorkoutProgram.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateWorkoutProgram.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "WorkoutProgramDataSource" + ] + }, + "UpdateWorkoutProgramResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateWorkoutProgram", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionDF7D6DB3", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationupdateWorkoutProgramauth0FunctionMutationupdateWorkoutProgramauth0FunctionAppSyncFunction5B1F99AE", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction3557039E", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationUpdateWorkoutProgramDataResolverFnMutationUpdateWorkoutProgramDataResolverFnAppSyncFunctionC239D12F", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateWorkoutProgram\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "WorkoutProgramTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "MutationdeleteWorkoutProgramauth0FunctionMutationdeleteWorkoutProgramauth0FunctionAppSyncFunctionCF8FDD99": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "WorkoutProgramDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeleteWorkoutProgramauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteWorkoutProgram.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteWorkoutProgram.auth.1.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "WorkoutProgramDataSource" + ] + }, + "MutationDeleteWorkoutProgramDataResolverFnMutationDeleteWorkoutProgramDataResolverFnAppSyncFunction57D3FA26": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "WorkoutProgramDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationDeleteWorkoutProgramDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteWorkoutProgram.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteWorkoutProgram.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "WorkoutProgramDataSource" + ] + }, + "DeleteWorkoutProgramResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteWorkoutProgram", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationdeleteWorkoutProgramauth0FunctionMutationdeleteWorkoutProgramauth0FunctionAppSyncFunctionCF8FDD99", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction3557039E", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationDeleteWorkoutProgramDataResolverFnMutationDeleteWorkoutProgramDataResolverFnAppSyncFunction57D3FA26", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteWorkoutProgram\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "WorkoutProgramTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "SubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncFunctionBA1C0577": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononCreateWorkoutProgramauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Subscription.onCreateWorkoutProgram.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "SubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyncFunction4E344723": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnCreateWorkoutProgramDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Subscription.onCreateWorkoutProgram.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Subscription.onCreateWorkoutProgram.res.vtl" + ] + ] + } + } + }, + "SubscriptiononCreateWorkoutProgramResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateWorkoutProgram", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncFunctionBA1C0577", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction3557039E", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyncFunction4E344723", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateWorkoutProgram\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + }, + "SubscriptiononUpdateWorkoutProgramResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateWorkoutProgram", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncFunctionBA1C0577", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction3557039E", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyncFunction4E344723", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateWorkoutProgram\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + }, + "SubscriptiononDeleteWorkoutProgramResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteWorkoutProgram", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncFunctionBA1C0577", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction3557039E", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyncFunction4E344723", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteWorkoutProgram\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + }, + "WorkoutProgramOwnerDataResolverFnWorkoutProgramOwnerDataResolverFnAppSyncFunction6C8EE914": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "WorkoutProgramOwnerDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/WorkoutProgram.owner.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/WorkoutProgram.owner.res.vtl" + ] + ] + } + } + }, + "WorkoutProgramownerResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "owner", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "WorkoutProgramOwnerDataResolverFnWorkoutProgramOwnerDataResolverFnAppSyncFunction6C8EE914", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"WorkoutProgram\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"owner\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:ecf78ebc-4c23-4f20-8a0e-23ab99a819b1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"lognutrition-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "WorkoutProgram" + } + } + }, + "Outputs": { + "GetAttWorkoutProgramTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "WorkoutProgramTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:WorkoutProgramTable:StreamArn" + ] + ] + } + } + }, + "GetAttWorkoutProgramTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "WorkoutProgramTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:WorkoutProgramTable:Name" + ] + ] + } + } + }, + "GetAttWorkoutProgramDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "WorkoutProgramDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:WorkoutProgramDataSource:Name" + ] + ] + } + } + }, + "transformerrootstackWorkoutProgramQuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunction8D95BFD8FunctionId": { + "Value": { + "Fn::GetAtt": [ + "QuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunctionF61649FE", + "FunctionId" + ] + } + }, + "transformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId": { + "Value": { + "Fn::GetAtt": [ + "QuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction3557039E", + "FunctionId" + ] + } + }, + "transformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId": { + "Value": { + "Fn::GetAtt": [ + "MutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD050B3C1", + "FunctionId" + ] + } + }, + "transformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId": { + "Value": { + "Fn::GetAtt": [ + "MutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionDF7D6DB3", + "FunctionId" + ] + } + }, + "transformerrootstackWorkoutProgramSubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncFunction55BF88AFFunctionId": { + "Value": { + "Fn::GetAtt": [ + "SubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncFunctionBA1C0577", + "FunctionId" + ] + } + }, + "transformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyncFunctionE9212A4DFunctionId": { + "Value": { + "Fn::GetAtt": [ + "SubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyncFunction4E344723", + "FunctionId" + ] + } + }, + "transformerrootstackWorkoutProgramWorkoutProgramOwnerDataResolverFnWorkoutProgramOwnerDataResolverFnAppSyncFunctionB902B95DFunctionId": { + "Value": { + "Fn::GetAtt": [ + "WorkoutProgramOwnerDataResolverFnWorkoutProgramOwnerDataResolverFnAppSyncFunction6C8EE914", + "FunctionId" + ] + } + } + } +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x.description.txt new file mode 100644 index 00000000000..f9e13281dee --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"api-AppSync","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x.outputs.json new file mode 100644 index 00000000000..8228377c0da --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x.outputs.json @@ -0,0 +1,20 @@ +[ + { + "OutputKey": "GraphQLAPIIdOutput", + "OutputValue": "xwgwkksjrbcoxnb64a6clvir4u", + "Description": "Your GraphQL API ID.", + "ExportName": "amplify-fitnesstracker-x-x-apifitnesstracker-x:GraphQLApiId" + }, + { + "OutputKey": "GraphQLAPIEndpointOutput", + "OutputValue": "https://p7b42iegyfh4zn7eo7a6k6lni4.appsync-api.us-east-1.amazonaws.com/graphql", + "Description": "Your GraphQL API endpoint.", + "ExportName": "amplify-fitnesstracker-x-x-apifitnesstracker-x:GraphQLApiEndpoint" + }, + { + "OutputKey": "GraphQLAPIKeyOutput", + "OutputValue": "da2-fakeapikey00000000000000", + "Description": "Your GraphQL API ID.", + "ExportName": "amplify-fitnesstracker-x-x-apifitnesstracker-x:GraphQLApiKey" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x.parameters.json new file mode 100644 index 00000000000..ec20bae4101 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x.parameters.json @@ -0,0 +1,42 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "S3DeploymentBucket", + "ParameterValue": "amplify-fitnesstracker-x-x-deployment" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "S3DeploymentRootKey", + "ParameterValue": "amplify-appsync-files/67310f5f0a68cc163f9cc58da56e1409a2c21b1d" + }, + { + "ParameterKey": "AppSyncApiName", + "ParameterValue": "fitnesstracker" + }, + { + "ParameterKey": "AuthCognitoUserPoolId", + "ParameterValue": "us-east-1_Xm7264Or1" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x.template.json new file mode 100644 index 00000000000..5824262e76d --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apifitnesstracker-x.template.json @@ -0,0 +1,609 @@ +{ + "Parameters": { + "env": { + "Type": "String", + "Default": "NONE" + }, + "AppSyncApiName": { + "Type": "String", + "Default": "AppSyncSimpleTransform" + }, + "AuthCognitoUserPoolId": { + "Type": "String" + }, + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "S3DeploymentBucket": { + "Type": "String", + "Description": "An S3 Bucket name where assets are deployed" + }, + "S3DeploymentRootKey": { + "Type": "String", + "Description": "An S3 key relative to the S3DeploymentBucket that points to the root of the deployment directory." + } + }, + "Resources": { + "GraphQLAPI": { + "Type": "AWS::AppSync::GraphQLApi", + "Properties": { + "AdditionalAuthenticationProviders": [ + { + "AuthenticationType": "API_KEY" + } + ], + "AuthenticationType": "AMAZON_COGNITO_USER_POOLS", + "Name": { + "Fn::Join": [ + "", + [ + { + "Ref": "AppSyncApiName" + }, + "-", + { + "Ref": "env" + } + ] + ] + }, + "UserPoolConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "DefaultAction": "ALLOW", + "UserPoolId": { + "Ref": "AuthCognitoUserPoolId" + } + } + } + }, + "GraphQLAPITransformerSchema3CB2AE18": { + "Type": "AWS::AppSync::GraphQLSchema", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "DefinitionS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/schema.graphql" + ] + ] + } + } + }, + "GraphQLAPIDefaultApiKey215A6DD7": { + "Type": "AWS::AppSync::ApiKey", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "Description": "graphql", + "Expires": 1776829824 + } + }, + "GraphQLAPINONEDS95A13CF0": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "Description": "None Data Source for Pipeline functions", + "Name": "NONE_DS", + "Type": "NONE" + } + }, + "WorkoutProgram": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + } + }, + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/WorkoutProgram.json" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "Exercise": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunction8D95BFD8FunctionId": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramQuerygetWorkoutProgramauth0FunctionQuerygetWorkoutProgramauth0FunctionAppSyncFunction8D95BFD8FunctionId" + ] + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" + ] + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId" + ] + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId" + ] + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncF52D36F4F": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramSubscriptiononCreateWorkoutProgramauth0FunctionSubscriptiononCreateWorkoutProgramauth0FunctionAppSyncFunction55BF88AFFunctionId" + ] + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyn4D846E8C": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyncFunctionE9212A4DFunctionId" + ] + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramWorkoutProgramOwnerDataResolverFnWorkoutProgramOwnerDataResolverFnAppSyncFunctionB902B95DFunctionId": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramWorkoutProgramOwnerDataResolverFnWorkoutProgramOwnerDataResolverFnAppSyncFunctionB902B95DFunctionId" + ] + } + }, + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/Exercise.json" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "Meal": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramQuerygetWorkoutProgrampostAuth0FunctionQuerygetWorkoutProgrampostAuth0FunctionAppSyncFunction6E15B378FunctionId" + ] + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramMutationcreateWorkoutPrograminit0FunctionMutationcreateWorkoutPrograminit0FunctionAppSyncFunctionD55A286BFunctionId" + ] + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramMutationupdateWorkoutPrograminit0FunctionMutationupdateWorkoutPrograminit0FunctionAppSyncFunctionB2E2FC20FunctionId" + ] + }, + "referencetotransformerrootstackWorkoutProgramNestedStackWorkoutProgramNestedStackResource515A29CDOutputstransformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyn4D846E8C": { + "Fn::GetAtt": [ + "WorkoutProgram", + "Outputs.transformerrootstackWorkoutProgramSubscriptionOnCreateWorkoutProgramDataResolverFnSubscriptionOnCreateWorkoutProgramDataResolverFnAppSyncFunctionE9212A4DFunctionId" + ] + } + }, + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/Meal.json" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "ConnectionStack": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackExerciseNestedStackExerciseNestedStackResourceA190CF68OutputstransformerrootstackExerciseExerciseDataSourceE8B787D0Name": { + "Fn::GetAtt": [ + "Exercise", + "Outputs.transformerrootstackExerciseExerciseDataSourceE8B787D0Name" + ] + }, + "referencetotransformerrootstackExerciseNestedStackExerciseNestedStackResourceA190CF68OutputstransformerrootstackExerciseExerciseTable2F3E478ERef": { + "Fn::GetAtt": [ + "Exercise", + "Outputs.transformerrootstackExerciseExerciseTable2F3E478ERef" + ] + } + }, + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/ConnectionStack.json" + ] + ] + } + }, + "DependsOn": [ + "Exercise", + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "CustomResourcesjson": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "AppSyncApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "AppSyncApiName": { + "Ref": "AppSyncApiName" + }, + "env": { + "Ref": "env" + }, + "S3DeploymentBucket": { + "Ref": "S3DeploymentBucket" + }, + "S3DeploymentRootKey": { + "Ref": "S3DeploymentRootKey" + } + }, + "TemplateURL": { + "Fn::Join": [ + "/", + [ + "https://s3.amazonaws.com", + { + "Ref": "S3DeploymentBucket" + }, + { + "Ref": "S3DeploymentRootKey" + }, + "stacks", + "CustomResources.json" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPI", + "GraphQLAPITransformerSchema3CB2AE18", + "WorkoutProgram", + "Exercise", + "Meal", + "ConnectionStack" + ] + } + }, + "Outputs": { + "GraphQLAPIKeyOutput": { + "Description": "Your GraphQL API ID.", + "Value": { + "Fn::GetAtt": [ + "GraphQLAPIDefaultApiKey215A6DD7", + "ApiKey" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "AWS::StackName" + }, + "GraphQLApiKey" + ] + ] + } + } + }, + "GraphQLAPIIdOutput": { + "Description": "Your GraphQL API ID.", + "Value": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "AWS::StackName" + }, + "GraphQLApiId" + ] + ] + } + } + }, + "GraphQLAPIEndpointOutput": { + "Description": "Your GraphQL API endpoint.", + "Value": { + "Fn::GetAtt": [ + "GraphQLAPI", + "GraphQLUrl" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "AWS::StackName" + }, + "GraphQLApiEndpoint" + ] + ] + } + } + } + }, + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apinutritionapi-x.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apinutritionapi-x.description.txt new file mode 100644 index 00000000000..d297a71cc5f --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apinutritionapi-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"api-API Gateway","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apinutritionapi-x.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apinutritionapi-x.outputs.json new file mode 100644 index 00000000000..b43d63d3b6d --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apinutritionapi-x.outputs.json @@ -0,0 +1,17 @@ +[ + { + "OutputKey": "ApiName", + "OutputValue": "nutritionapi", + "Description": "API Friendly name" + }, + { + "OutputKey": "RootUrl", + "OutputValue": "https://s27d6on2x4.execute-api.us-east-1.amazonaws.com/x", + "Description": "Root URL of the API gateway" + }, + { + "OutputKey": "ApiId", + "OutputValue": "s27d6on2x4", + "Description": "API ID (prefix of API URL)" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apinutritionapi-x.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apinutritionapi-x.parameters.json new file mode 100644 index 00000000000..999671c5209 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apinutritionapi-x.parameters.json @@ -0,0 +1,22 @@ +[ + { + "ParameterKey": "functionlognutritionArn", + "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:lognutrition-x" + }, + { + "ParameterKey": "authfitnesstracker33f5545533f55455UserPoolId", + "ParameterValue": "us-east-1_Xm7264Or1" + }, + { + "ParameterKey": "functionlognutritionName", + "ParameterValue": "lognutrition-x" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "authuserPoolGroupsAdminGroupRole", + "ParameterValue": "arn:aws:iam::123456789012:role/us-east-1_Xm7264Or1-AdminGroupRole" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apinutritionapi-x.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apinutritionapi-x.template.json new file mode 100644 index 00000000000..96dfbff48ea --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-apinutritionapi-x.template.json @@ -0,0 +1,772 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-API Gateway\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "authfitnesstracker33f5545533f55455UserPoolId": { + "Type": "String", + "Default": "authfitnesstracker33f5545533f55455UserPoolId" + }, + "authuserPoolGroupsAdminGroupRole": { + "Type": "String", + "Default": "authuserPoolGroupsAdminGroupRole" + }, + "functionlognutritionName": { + "Type": "String", + "Default": "functionlognutritionName" + }, + "functionlognutritionArn": { + "Type": "String", + "Default": "functionlognutritionArn" + }, + "env": { + "Type": "String" + } + }, + "Resources": { + "AdminGroupnutritionlogPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "execute-api:Invoke", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":", + { + "Ref": "nutritionapi" + }, + "/", + { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "Prod", + { + "Ref": "env" + } + ] + }, + "/POST/nutrition/log" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":", + { + "Ref": "nutritionapi" + }, + "/", + { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "Prod", + { + "Ref": "env" + } + ] + }, + "/GET/nutrition/log" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":", + { + "Ref": "nutritionapi" + }, + "/", + { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "Prod", + { + "Ref": "env" + } + ] + }, + "/PUT/nutrition/log" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":", + { + "Ref": "nutritionapi" + }, + "/", + { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "Prod", + { + "Ref": "env" + } + ] + }, + "/PATCH/nutrition/log" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":", + { + "Ref": "nutritionapi" + }, + "/", + { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "Prod", + { + "Ref": "env" + } + ] + }, + "/DELETE/nutrition/log" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":", + { + "Ref": "nutritionapi" + }, + "/", + { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "Prod", + { + "Ref": "env" + } + ] + }, + "/POST/nutrition/log/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":", + { + "Ref": "nutritionapi" + }, + "/", + { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "Prod", + { + "Ref": "env" + } + ] + }, + "/GET/nutrition/log/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":", + { + "Ref": "nutritionapi" + }, + "/", + { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "Prod", + { + "Ref": "env" + } + ] + }, + "/PUT/nutrition/log/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":", + { + "Ref": "nutritionapi" + }, + "/", + { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "Prod", + { + "Ref": "env" + } + ] + }, + "/PATCH/nutrition/log/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":", + { + "Ref": "nutritionapi" + }, + "/", + { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "Prod", + { + "Ref": "env" + } + ] + }, + "/DELETE/nutrition/log/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "nutritionapi-nutritionlog-Admin-group-policy", + "Roles": [ + { + "Fn::Join": [ + "-", + [ + { + "Ref": "authfitnesstracker33f5545533f55455UserPoolId" + }, + "AdminGroupRole" + ] + ] + } + ] + } + }, + "functionlognutritionPermissionnutritionapi": { + "Type": "AWS::Lambda::Permission", + "Properties": { + "Action": "lambda:InvokeFunction", + "FunctionName": { + "Ref": "functionlognutritionName" + }, + "Principal": "apigateway.amazonaws.com", + "SourceArn": { + "Fn::Join": [ + "", + [ + "arn:aws:execute-api:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":", + { + "Ref": "nutritionapi" + }, + "/*/*/*" + ] + ] + } + } + }, + "nutritionapi": { + "Type": "AWS::ApiGateway::RestApi", + "Properties": { + "Body": { + "swagger": "2.0", + "info": { + "version": "2018-05-24T17:52:00Z", + "title": "nutritionapi" + }, + "host": { + "Fn::Join": [ + "", + [ + "apigateway.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com" + ] + ] + }, + "basePath": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "/Prod", + { + "Fn::Join": [ + "", + [ + "/", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "schemes": [ + "https" + ], + "paths": { + "/nutrition/log": { + "options": { + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "responses": { + "200": { + "description": "200 response", + "headers": { + "Access-Control-Allow-Origin": { + "type": "string" + }, + "Access-Control-Allow-Methods": { + "type": "string" + }, + "Access-Control-Allow-Headers": { + "type": "string" + } + } + } + }, + "x-amazon-apigateway-integration": { + "responses": { + "default": { + "statusCode": "200", + "responseParameters": { + "method.response.header.Access-Control-Allow-Methods": "'DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT'", + "method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token,X-Amz-User-Agent'", + "method.response.header.Access-Control-Allow-Origin": "'*'" + } + } + }, + "requestTemplates": { + "application/json": "{\"statusCode\": 200}" + }, + "passthroughBehavior": "when_no_match", + "type": "mock" + } + }, + "x-amazon-apigateway-any-method": { + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "body", + "name": "RequestSchema", + "required": false, + "schema": { + "$ref": "#/definitions/RequestSchema" + } + } + ], + "responses": { + "200": { + "description": "200 response", + "schema": { + "$ref": "#/definitions/ResponseSchema" + } + } + }, + "x-amazon-apigateway-integration": { + "responses": { + "default": { + "statusCode": "200" + } + }, + "uri": { + "Fn::Join": [ + "", + [ + "arn:aws:apigateway:", + { + "Ref": "AWS::Region" + }, + ":lambda:path/2015-03-31/functions/", + { + "Ref": "functionlognutritionArn" + }, + "/invocations" + ] + ] + }, + "passthroughBehavior": "when_no_match", + "httpMethod": "POST", + "type": "aws_proxy" + }, + "security": [ + { + "sigv4": [] + } + ] + } + }, + "/nutrition/log/{proxy+}": { + "options": { + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "responses": { + "200": { + "description": "200 response", + "headers": { + "Access-Control-Allow-Origin": { + "type": "string" + }, + "Access-Control-Allow-Methods": { + "type": "string" + }, + "Access-Control-Allow-Headers": { + "type": "string" + } + } + } + }, + "x-amazon-apigateway-integration": { + "responses": { + "default": { + "statusCode": "200", + "responseParameters": { + "method.response.header.Access-Control-Allow-Methods": "'DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT'", + "method.response.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token,X-Amz-User-Agent'", + "method.response.header.Access-Control-Allow-Origin": "'*'" + } + } + }, + "requestTemplates": { + "application/json": "{\"statusCode\": 200}" + }, + "passthroughBehavior": "when_no_match", + "type": "mock" + } + }, + "x-amazon-apigateway-any-method": { + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "body", + "name": "RequestSchema", + "required": false, + "schema": { + "$ref": "#/definitions/RequestSchema" + } + } + ], + "responses": { + "200": { + "description": "200 response", + "schema": { + "$ref": "#/definitions/ResponseSchema" + } + } + }, + "x-amazon-apigateway-integration": { + "responses": { + "default": { + "statusCode": "200" + } + }, + "uri": { + "Fn::Join": [ + "", + [ + "arn:aws:apigateway:", + { + "Ref": "AWS::Region" + }, + ":lambda:path/2015-03-31/functions/", + { + "Ref": "functionlognutritionArn" + }, + "/invocations" + ] + ] + }, + "passthroughBehavior": "when_no_match", + "httpMethod": "POST", + "type": "aws_proxy" + }, + "security": [ + { + "sigv4": [] + } + ] + } + } + }, + "securityDefinitions": { + "sigv4": { + "type": "apiKey", + "name": "Authorization", + "in": "header", + "x-amazon-apigateway-authtype": "awsSigv4" + } + }, + "definitions": { + "RequestSchema": { + "type": "object", + "required": [ + "request" + ], + "properties": { + "request": { + "type": "string" + } + }, + "title": "Request Schema" + }, + "ResponseSchema": { + "type": "object", + "required": [ + "response" + ], + "properties": { + "response": { + "type": "string" + } + }, + "title": "Response Schema" + } + } + }, + "Description": "", + "FailOnWarnings": true, + "Name": "nutritionapi" + } + }, + "nutritionapiDefault4XXResponse18f0d0eb": { + "Type": "AWS::ApiGateway::GatewayResponse", + "Properties": { + "ResponseParameters": { + "gatewayresponse.header.Access-Control-Allow-Origin": "'*'", + "gatewayresponse.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token'", + "gatewayresponse.header.Access-Control-Allow-Methods": "'DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT'", + "gatewayresponse.header.Access-Control-Expose-Headers": "'Date,X-Amzn-ErrorType'" + }, + "ResponseType": "DEFAULT_4XX", + "RestApiId": { + "Ref": "nutritionapi" + } + } + }, + "nutritionapiDefault5XXResponse18f0d0eb": { + "Type": "AWS::ApiGateway::GatewayResponse", + "Properties": { + "ResponseParameters": { + "gatewayresponse.header.Access-Control-Allow-Origin": "'*'", + "gatewayresponse.header.Access-Control-Allow-Headers": "'Content-Type,X-Amz-Date,Authorization,X-Api-Key,X-Amz-Security-Token'", + "gatewayresponse.header.Access-Control-Allow-Methods": "'DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT'", + "gatewayresponse.header.Access-Control-Expose-Headers": "'Date,X-Amzn-ErrorType'" + }, + "ResponseType": "DEFAULT_5XX", + "RestApiId": { + "Ref": "nutritionapi" + } + } + }, + "DeploymentAPIGWnutritionapib144b434": { + "Type": "AWS::ApiGateway::Deployment", + "Properties": { + "Description": "The Development stage deployment of your API.", + "RestApiId": { + "Ref": "nutritionapi" + }, + "StageName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "Prod", + { + "Ref": "env" + } + ] + } + }, + "DependsOn": [ + "nutritionapiDefault4XXResponse18f0d0eb", + "nutritionapiDefault5XXResponse18f0d0eb" + ] + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + } + }, + "Outputs": { + "RootUrl": { + "Description": "Root URL of the API gateway", + "Value": { + "Fn::Join": [ + "", + [ + "https://", + { + "Ref": "nutritionapi" + }, + ".execute-api.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "Prod", + { + "Ref": "env" + } + ] + } + ] + ] + } + }, + "ApiName": { + "Description": "API Friendly name", + "Value": "nutritionapi" + }, + "ApiId": { + "Description": "API ID (prefix of API URL)", + "Value": { + "Ref": "nutritionapi" + } + } + } +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-authfitnesstracker33f5545533f55455-x.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-authfitnesstracker33f5545533f55455-x.description.txt new file mode 100644 index 00000000000..348d1236678 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-authfitnesstracker33f5545533f55455-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"auth-Cognito","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-authfitnesstracker33f5545533f55455-x.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-authfitnesstracker33f5545533f55455-x.outputs.json new file mode 100644 index 00000000000..f4cd37ce68a --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-authfitnesstracker33f5545533f55455-x.outputs.json @@ -0,0 +1,35 @@ +[ + { + "OutputKey": "UserPoolId", + "OutputValue": "us-east-1_Xm7264Or1", + "Description": "Id for the user pool" + }, + { + "OutputKey": "AppClientIDWeb", + "OutputValue": "2r67bqd39lvdif3jjk3da8ok74", + "Description": "The user pool app client id for web" + }, + { + "OutputKey": "AppClientID", + "OutputValue": "763u4g2459ac3omq43p1rnh7bu", + "Description": "The user pool app client id" + }, + { + "OutputKey": "IdentityPoolId", + "OutputValue": "us-east-1:c525ee11-d503-434d-a20e-29d16684f0f3", + "Description": "Id for the identity pool" + }, + { + "OutputKey": "UserPoolArn", + "OutputValue": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_Xm7264Or1", + "Description": "Arn for the user pool" + }, + { + "OutputKey": "IdentityPoolName", + "OutputValue": "fitnesstracker33f55455_identitypool_33f55455__x" + }, + { + "OutputKey": "UserPoolName", + "OutputValue": "fitnesstracker33f55455_userpool_33f55455" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-authfitnesstracker33f5545533f55455-x.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-authfitnesstracker33f5545533f55455-x.parameters.json new file mode 100644 index 00000000000..135f033d140 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-authfitnesstracker33f5545533f55455-x.parameters.json @@ -0,0 +1,178 @@ +[ + { + "ParameterKey": "authRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-x-x-authRole" + }, + { + "ParameterKey": "autoVerifiedAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "allowUnauthenticatedIdentities", + "ParameterValue": "false" + }, + { + "ParameterKey": "hostedUI", + "ParameterValue": "false" + }, + { + "ParameterKey": "smsVerificationMessage", + "ParameterValue": "Your verification code is {####}" + }, + { + "ParameterKey": "userpoolClientReadAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "breakCircularDependency", + "ParameterValue": "true" + }, + { + "ParameterKey": "mfaTypes", + "ParameterValue": "SMS Text Message" + }, + { + "ParameterKey": "emailVerificationSubject", + "ParameterValue": "Your verification code" + }, + { + "ParameterKey": "sharedId", + "ParameterValue": "33f55455" + }, + { + "ParameterKey": "useDefault", + "ParameterValue": "manual" + }, + { + "ParameterKey": "userpoolClientGenerateSecret", + "ParameterValue": "false" + }, + { + "ParameterKey": "mfaConfiguration", + "ParameterValue": "OFF" + }, + { + "ParameterKey": "identityPoolName", + "ParameterValue": "fitnesstracker33f55455_identitypool_33f55455" + }, + { + "ParameterKey": "thirdPartyAuth", + "ParameterValue": "false" + }, + { + "ParameterKey": "userPoolGroupList", + "ParameterValue": "Admin" + }, + { + "ParameterKey": "authSelections", + "ParameterValue": "identityPoolAndUserPool" + }, + { + "ParameterKey": "adminQueries", + "ParameterValue": "false" + }, + { + "ParameterKey": "permissions", + "ParameterValue": "" + }, + { + "ParameterKey": "functionfitnesstracker33f5545533f55455PreSignupArn", + "ParameterValue": "functionfitnesstracker33f5545533f55455PreSignupArn" + }, + { + "ParameterKey": "resourceNameTruncated", + "ParameterValue": "fitnes33f55455" + }, + { + "ParameterKey": "userPoolGroups", + "ParameterValue": "true" + }, + { + "ParameterKey": "smsAuthenticationMessage", + "ParameterValue": "Your authentication code is {####}" + }, + { + "ParameterKey": "passwordPolicyMinLength", + "ParameterValue": "8" + }, + { + "ParameterKey": "userPoolName", + "ParameterValue": "fitnesstracker33f55455_userpool_33f55455" + }, + { + "ParameterKey": "userpoolClientWriteAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "dependsOn", + "ParameterValue": "[object Object]" + }, + { + "ParameterKey": "useEnabledMfas", + "ParameterValue": "true" + }, + { + "ParameterKey": "functionfitnesstracker33f5545533f55455PreSignupName", + "ParameterValue": "functionfitnesstracker33f5545533f55455PreSignupName" + }, + { + "ParameterKey": "usernameCaseSensitive", + "ParameterValue": "false" + }, + { + "ParameterKey": "resourceName", + "ParameterValue": "fitnesstracker33f5545533f55455" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "triggers", + "ParameterValue": "{\"PreSignup\":[\"email-filter-allowlist\"]}" + }, + { + "ParameterKey": "serviceName", + "ParameterValue": "Cognito" + }, + { + "ParameterKey": "emailVerificationMessage", + "ParameterValue": "Your verification code is {####}" + }, + { + "ParameterKey": "userpoolClientRefreshTokenValidity", + "ParameterValue": "30" + }, + { + "ParameterKey": "userpoolClientSetAttributes", + "ParameterValue": "false" + }, + { + "ParameterKey": "unauthRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-x-x-unauthRole" + }, + { + "ParameterKey": "requiredAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "passwordPolicyCharacters", + "ParameterValue": "" + }, + { + "ParameterKey": "authTriggerConnections", + "ParameterValue": "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker33f5545533f55455PreSignup\"}" + }, + { + "ParameterKey": "aliasAttributes", + "ParameterValue": "" + }, + { + "ParameterKey": "userpoolClientLambdaRole", + "ParameterValue": "fitnes33f55455_userpoolclient_lambda_role" + }, + { + "ParameterKey": "defaultPasswordPolicy", + "ParameterValue": "false" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-authfitnesstracker33f5545533f55455-x.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-authfitnesstracker33f5545533f55455-x.template.json new file mode 100644 index 00000000000..e52f2be13ec --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-authfitnesstracker33f5545533f55455-x.template.json @@ -0,0 +1,480 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "functionfitnesstracker33f5545533f55455PreSignupArn": { + "Type": "String", + "Default": "functionfitnesstracker33f5545533f55455PreSignupArn" + }, + "functionfitnesstracker33f5545533f55455PreSignupName": { + "Type": "String", + "Default": "functionfitnesstracker33f5545533f55455PreSignupName" + }, + "identityPoolName": { + "Type": "String" + }, + "allowUnauthenticatedIdentities": { + "Type": "String" + }, + "resourceNameTruncated": { + "Type": "String" + }, + "userPoolName": { + "Type": "String" + }, + "autoVerifiedAttributes": { + "Type": "CommaDelimitedList" + }, + "mfaConfiguration": { + "Type": "String" + }, + "mfaTypes": { + "Type": "CommaDelimitedList" + }, + "smsAuthenticationMessage": { + "Type": "String" + }, + "smsVerificationMessage": { + "Type": "String" + }, + "emailVerificationSubject": { + "Type": "String" + }, + "emailVerificationMessage": { + "Type": "String" + }, + "defaultPasswordPolicy": { + "Type": "String" + }, + "passwordPolicyMinLength": { + "Type": "String" + }, + "passwordPolicyCharacters": { + "Type": "CommaDelimitedList" + }, + "requiredAttributes": { + "Type": "CommaDelimitedList" + }, + "aliasAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientGenerateSecret": { + "Type": "String" + }, + "userpoolClientRefreshTokenValidity": { + "Type": "String" + }, + "userpoolClientWriteAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientReadAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientLambdaRole": { + "Type": "String" + }, + "userpoolClientSetAttributes": { + "Type": "String" + }, + "sharedId": { + "Type": "String" + }, + "resourceName": { + "Type": "String" + }, + "authSelections": { + "Type": "String" + }, + "useDefault": { + "Type": "String" + }, + "thirdPartyAuth": { + "Type": "String" + }, + "userPoolGroups": { + "Type": "String" + }, + "adminQueries": { + "Type": "String" + }, + "triggers": { + "Type": "String" + }, + "hostedUI": { + "Type": "String" + }, + "userPoolGroupList": { + "Type": "CommaDelimitedList" + }, + "serviceName": { + "Type": "String" + }, + "usernameCaseSensitive": { + "Type": "String" + }, + "useEnabledMfas": { + "Type": "String" + }, + "authRoleArn": { + "Type": "String" + }, + "unauthRoleArn": { + "Type": "String" + }, + "breakCircularDependency": { + "Type": "String" + }, + "dependsOn": { + "Type": "CommaDelimitedList" + }, + "permissions": { + "Type": "CommaDelimitedList" + }, + "authTriggerConnections": { + "Type": "CommaDelimitedList" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + } + }, + "Resources": { + "UserPool": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": { + "Ref": "emailVerificationMessage" + }, + "EmailVerificationSubject": { + "Ref": "emailVerificationSubject" + }, + "MfaConfiguration": { + "Ref": "mfaConfiguration" + }, + "Policies": { + "PasswordPolicy": { + "MinimumLength": { + "Ref": "passwordPolicyMinLength" + }, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + { + "Ref": "userPoolName" + }, + { + "Fn::Join": [ + "", + [ + { + "Ref": "userPoolName" + }, + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "UsernameConfiguration": { + "CaseSensitive": false + } + } + }, + "UserPoolClientWeb": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "fitnes33f55455_app_clientWeb", + "RefreshTokenValidity": { + "Ref": "userpoolClientRefreshTokenValidity" + }, + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": { + "Ref": "UserPool" + } + }, + "DependsOn": [ + "UserPool" + ] + }, + "UserPoolClient": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "fitnes33f55455_app_client", + "GenerateSecret": { + "Ref": "userpoolClientGenerateSecret" + }, + "RefreshTokenValidity": { + "Ref": "userpoolClientRefreshTokenValidity" + }, + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": { + "Ref": "UserPool" + } + }, + "DependsOn": [ + "UserPool" + ] + }, + "UserPoolClientRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + }, + "Action": "sts:AssumeRole" + } + ] + }, + "RoleName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + { + "Ref": "userpoolClientLambdaRole" + }, + { + "Fn::Join": [ + "", + [ + "upClientLambdaRole33f55455", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + { + "Ref": "AWS::StackName" + } + ] + } + ] + }, + "-", + { + "Ref": "env" + } + ] + ] + } + ] + } + } + }, + "IdentityPool": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": { + "Ref": "allowUnauthenticatedIdentities" + }, + "CognitoIdentityProviders": [ + { + "ClientId": { + "Ref": "UserPoolClient" + }, + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": { + "Ref": "UserPool" + } + } + ] + } + }, + { + "ClientId": { + "Ref": "UserPoolClientWeb" + }, + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": { + "Ref": "UserPool" + } + } + ] + } + } + ], + "IdentityPoolName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "fitnesstracker33f55455_identitypool_33f55455", + { + "Fn::Join": [ + "", + [ + "fitnesstracker33f55455_identitypool_33f55455__", + { + "Ref": "env" + } + ] + ] + } + ] + } + } + }, + "IdentityPoolRoleMap": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": { + "Ref": "IdentityPool" + }, + "RoleMappings": { + "UserPoolClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${userPool}:${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "userPool": { + "Ref": "UserPool" + }, + "client": { + "Ref": "UserPoolClient" + } + } + ] + }, + "Type": "Token" + }, + "UserPoolWebClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${userPool}:${webClient}", + { + "region": { + "Ref": "AWS::Region" + }, + "userPool": { + "Ref": "UserPool" + }, + "webClient": { + "Ref": "UserPoolClientWeb" + } + } + ] + }, + "Type": "Token" + } + }, + "Roles": { + "unauthenticated": { + "Ref": "unauthRoleArn" + }, + "authenticated": { + "Ref": "authRoleArn" + } + } + }, + "DependsOn": [ + "IdentityPool", + "UserPoolClient", + "UserPoolClientWeb" + ] + } + }, + "Outputs": { + "IdentityPoolId": { + "Description": "Id for the identity pool", + "Value": { + "Ref": "IdentityPool" + } + }, + "IdentityPoolName": { + "Value": { + "Fn::GetAtt": [ + "IdentityPool", + "Name" + ] + } + }, + "UserPoolId": { + "Description": "Id for the user pool", + "Value": { + "Ref": "UserPool" + } + }, + "UserPoolArn": { + "Description": "Arn for the user pool", + "Value": { + "Fn::GetAtt": [ + "UserPool", + "Arn" + ] + } + }, + "UserPoolName": { + "Value": { + "Ref": "userPoolName" + } + }, + "AppClientIDWeb": { + "Description": "The user pool app client id for web", + "Value": { + "Ref": "UserPoolClientWeb" + } + }, + "AppClientID": { + "Description": "The user pool app client id", + "Value": { + "Ref": "UserPoolClient" + } + } + } +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-authuserPoolGroups-x.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-authuserPoolGroups-x.description.txt new file mode 100644 index 00000000000..7bbda7a42c1 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-authuserPoolGroups-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"auth-Cognito-UserPool-Groups","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-authuserPoolGroups-x.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-authuserPoolGroups-x.outputs.json new file mode 100644 index 00000000000..f0c4d038425 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-authuserPoolGroups-x.outputs.json @@ -0,0 +1,6 @@ +[ + { + "OutputKey": "AdminGroupRole", + "OutputValue": "arn:aws:iam::123456789012:role/us-east-1_Xm7264Or1-AdminGroupRole" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-authuserPoolGroups-x.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-authuserPoolGroups-x.parameters.json new file mode 100644 index 00000000000..ab8b3eeba53 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-authuserPoolGroups-x.parameters.json @@ -0,0 +1,30 @@ +[ + { + "ParameterKey": "UnauthRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-x-x-unauthRole" + }, + { + "ParameterKey": "authfitnesstracker33f5545533f55455IdentityPoolId", + "ParameterValue": "us-east-1:c525ee11-d503-434d-a20e-29d16684f0f3" + }, + { + "ParameterKey": "AuthRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-x-x-authRole" + }, + { + "ParameterKey": "authfitnesstracker33f5545533f55455UserPoolId", + "ParameterValue": "us-east-1_Xm7264Or1" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "authfitnesstracker33f5545533f55455AppClientIDWeb", + "ParameterValue": "2r67bqd39lvdif3jjk3da8ok74" + }, + { + "ParameterKey": "authfitnesstracker33f5545533f55455AppClientID", + "ParameterValue": "763u4g2459ac3omq43p1rnh7bu" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-authuserPoolGroups-x.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-authuserPoolGroups-x.template.json new file mode 100644 index 00000000000..3d1a8a6bb6f --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-authuserPoolGroups-x.template.json @@ -0,0 +1,109 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito-UserPool-Groups\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "AuthRoleArn": { + "Type": "String" + }, + "UnauthRoleArn": { + "Type": "String" + }, + "authfitnesstracker33f5545533f55455UserPoolId": { + "Type": "String", + "Default": "authfitnesstracker33f5545533f55455UserPoolId" + }, + "authfitnesstracker33f5545533f55455IdentityPoolId": { + "Type": "String", + "Default": "authfitnesstracker33f5545533f55455IdentityPoolId" + }, + "authfitnesstracker33f5545533f55455AppClientID": { + "Type": "String", + "Default": "authfitnesstracker33f5545533f55455AppClientID" + }, + "authfitnesstracker33f5545533f55455AppClientIDWeb": { + "Type": "String", + "Default": "authfitnesstracker33f5545533f55455AppClientIDWeb" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + } + }, + "Resources": { + "AdminGroup": { + "Type": "AWS::Cognito::UserPoolGroup", + "Properties": { + "Description": "override success", + "GroupName": "Admin", + "Precedence": 1, + "RoleArn": { + "Fn::GetAtt": [ + "AdminGroupRole", + "Arn" + ] + }, + "UserPoolId": { + "Ref": "authfitnesstracker33f5545533f55455UserPoolId" + } + } + }, + "AdminGroupRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Sid": "", + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + }, + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": { + "Ref": "authfitnesstracker33f5545533f55455IdentityPoolId" + } + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + } + } + ] + }, + "RoleName": { + "Fn::Join": [ + "", + [ + { + "Ref": "authfitnesstracker33f5545533f55455UserPoolId" + }, + "-AdminGroupRole" + ] + ] + } + } + } + }, + "Outputs": { + "AdminGroupRole": { + "Value": { + "Fn::GetAtt": [ + "AdminGroupRole", + "Arn" + ] + } + } + } +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-functionadmin-x.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-functionadmin-x.description.txt new file mode 100644 index 00000000000..6cc2b5048c0 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-functionadmin-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"function-Lambda","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-functionadmin-x.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-functionadmin-x.outputs.json new file mode 100644 index 00000000000..39df1136c91 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-functionadmin-x.outputs.json @@ -0,0 +1,22 @@ +[ + { + "OutputKey": "LambdaExecutionRoleArn", + "OutputValue": "arn:aws:iam::123456789012:role/fitnesstrackerLambdaRole4a08108a-x" + }, + { + "OutputKey": "Region", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "Arn", + "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:admin-x" + }, + { + "OutputKey": "Name", + "OutputValue": "admin-x" + }, + { + "OutputKey": "LambdaExecutionRole", + "OutputValue": "fitnesstrackerLambdaRole4a08108a-x" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-functionadmin-x.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-functionadmin-x.parameters.json new file mode 100644 index 00000000000..6cbdbb71c8a --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-functionadmin-x.parameters.json @@ -0,0 +1,22 @@ +[ + { + "ParameterKey": "CloudWatchRule", + "ParameterValue": "NONE" + }, + { + "ParameterKey": "s3Key", + "ParameterValue": "amplify-builds/admin-2f397a7163426d447a6b-build.zip" + }, + { + "ParameterKey": "deploymentBucketName", + "ParameterValue": "amplify-fitnesstracker-x-x-deployment" + }, + { + "ParameterKey": "authfitnesstracker33f5545533f55455UserPoolId", + "ParameterValue": "us-east-1_Xm7264Or1" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-functionadmin-x.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-functionadmin-x.template.json new file mode 100644 index 00000000000..bb77cf8cd5c --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-functionadmin-x.template.json @@ -0,0 +1,268 @@ +{ + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Parameters": { + "CloudWatchRule": { + "Type": "String", + "Default": "NONE", + "Description": " Schedule Expression" + }, + "deploymentBucketName": { + "Type": "String" + }, + "env": { + "Type": "String" + }, + "s3Key": { + "Type": "String" + }, + "authfitnesstracker33f5545533f55455UserPoolId": { + "Type": "String", + "Default": "authfitnesstracker33f5545533f55455UserPoolId" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + } + }, + "Resources": { + "LambdaFunction": { + "Type": "AWS::Lambda::Function", + "Metadata": { + "aws:asset:path": "./src", + "aws:asset:property": "Code" + }, + "Properties": { + "Code": { + "S3Bucket": { + "Ref": "deploymentBucketName" + }, + "S3Key": { + "Ref": "s3Key" + } + }, + "Handler": "index.handler", + "FunctionName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "admin", + { + "Fn::Join": [ + "", + [ + "admin", + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "Environment": { + "Variables": { + "ENV": { + "Ref": "env" + }, + "REGION": { + "Ref": "AWS::Region" + }, + "AUTH_FITNESSTRACKER33F5545533F55455_USERPOOLID": { + "Ref": "authfitnesstracker33f5545533f55455UserPoolId" + } + } + }, + "Role": { + "Fn::GetAtt": [ + "LambdaExecutionRole", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Layers": [], + "Timeout": 25 + } + }, + "LambdaExecutionRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "RoleName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "fitnesstrackerLambdaRole4a08108a", + { + "Fn::Join": [ + "", + [ + "fitnesstrackerLambdaRole4a08108a", + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": [ + "lambda.amazonaws.com" + ] + }, + "Action": [ + "sts:AssumeRole" + ] + } + ] + } + } + }, + "lambdaexecutionpolicy": { + "DependsOn": [ + "LambdaExecutionRole" + ], + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyName": "lambda-execution-policy", + "Roles": [ + { + "Ref": "LambdaExecutionRole" + } + ], + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "logs:CreateLogGroup", + "logs:CreateLogStream", + "logs:PutLogEvents" + ], + "Resource": { + "Fn::Sub": [ + "arn:aws:logs:${region}:${account}:log-group:/aws/lambda/${lambda}:log-stream:*", + { + "region": { + "Ref": "AWS::Region" + }, + "account": { + "Ref": "AWS::AccountId" + }, + "lambda": { + "Ref": "LambdaFunction" + } + } + ] + } + } + ] + } + } + }, + "AmplifyResourcesPolicy": { + "DependsOn": [ + "LambdaExecutionRole" + ], + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyName": "amplify-lambda-execution-policy", + "Roles": [ + { + "Ref": "LambdaExecutionRole" + } + ], + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "cognito-identity:Describe*", + "cognito-identity:Get*", + "cognito-identity:List*", + "cognito-idp:Describe*", + "cognito-idp:AdminGetDevice", + "cognito-idp:AdminGetUser", + "cognito-idp:AdminList*", + "cognito-idp:List*", + "cognito-sync:Describe*", + "cognito-sync:Get*", + "cognito-sync:List*", + "iam:ListOpenIdConnectProviders", + "iam:ListRoles", + "sns:ListPlatformApplications" + ], + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:cognito-idp:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":userpool/", + { + "Ref": "authfitnesstracker33f5545533f55455UserPoolId" + } + ] + ] + } + ] + } + ] + } + } + } + }, + "Outputs": { + "Name": { + "Value": { + "Ref": "LambdaFunction" + } + }, + "Arn": { + "Value": { + "Fn::GetAtt": [ + "LambdaFunction", + "Arn" + ] + } + }, + "Region": { + "Value": { + "Ref": "AWS::Region" + } + }, + "LambdaExecutionRole": { + "Value": { + "Ref": "LambdaExecutionRole" + } + }, + "LambdaExecutionRoleArn": { + "Value": { + "Fn::GetAtt": [ + "LambdaExecutionRole", + "Arn" + ] + } + } + } +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-functionfitnesstracker33f5545533f55455PreS-x.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-functionfitnesstracker33f5545533f55455PreS-x.description.txt new file mode 100644 index 00000000000..6cc2b5048c0 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-functionfitnesstracker33f5545533f55455PreS-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"function-Lambda","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-functionfitnesstracker33f5545533f55455PreS-x.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-functionfitnesstracker33f5545533f55455PreS-x.outputs.json new file mode 100644 index 00000000000..f056c30d793 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-functionfitnesstracker33f5545533f55455PreS-x.outputs.json @@ -0,0 +1,22 @@ +[ + { + "OutputKey": "LambdaExecutionRoleArn", + "OutputValue": "arn:aws:iam::123456789012:role/fitnesstracker33f5545533f55455PreSignup-x" + }, + { + "OutputKey": "Region", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "Arn", + "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:fitnesstracker33f5545533f55455PreSignup-x" + }, + { + "OutputKey": "Name", + "OutputValue": "fitnesstracker33f5545533f55455PreSignup-x" + }, + { + "OutputKey": "LambdaExecutionRole", + "OutputValue": "fitnesstracker33f5545533f55455PreSignup-x" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-functionfitnesstracker33f5545533f55455PreS-x.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-functionfitnesstracker33f5545533f55455PreS-x.parameters.json new file mode 100644 index 00000000000..441bff47e5f --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-functionfitnesstracker33f5545533f55455PreS-x.parameters.json @@ -0,0 +1,50 @@ +[ + { + "ParameterKey": "parentResource", + "ParameterValue": "" + }, + { + "ParameterKey": "s3Key", + "ParameterValue": "amplify-builds/fitnesstracker33f5545533f55455PreSignup-68374859444c45627749-build.zip" + }, + { + "ParameterKey": "functionName", + "ParameterValue": "" + }, + { + "ParameterKey": "DOMAINALLOWLIST", + "ParameterValue": "amazon.com" + }, + { + "ParameterKey": "parentStack", + "ParameterValue": "" + }, + { + "ParameterKey": "deploymentBucketName", + "ParameterValue": "amplify-fitnesstracker-x-x-deployment" + }, + { + "ParameterKey": "DOMAINBLACKLIST", + "ParameterValue": "" + }, + { + "ParameterKey": "roleName", + "ParameterValue": "" + }, + { + "ParameterKey": "resourceName", + "ParameterValue": "fitnesstracker33f5545533f55455PreSignup" + }, + { + "ParameterKey": "trigger", + "ParameterValue": "true" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "modules", + "ParameterValue": "email-filter-allowlist" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-functionfitnesstracker33f5545533f55455PreS-x.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-functionfitnesstracker33f5545533f55455PreS-x.template.json new file mode 100644 index 00000000000..2c017bb1df9 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-functionfitnesstracker33f5545533f55455PreS-x.template.json @@ -0,0 +1,242 @@ +{ + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Parameters": { + "DOMAINBLACKLIST": { + "Type": "String", + "Default": "" + }, + "DOMAINALLOWLIST": { + "Type": "String", + "Default": "" + }, + "modules": { + "Type": "String", + "Default": "", + "Description": "Comma-delimited list of modules to be executed by a lambda trigger. Sent to resource as an env variable." + }, + "resourceName": { + "Type": "String", + "Default": "" + }, + "trigger": { + "Type": "String", + "Default": "true" + }, + "functionName": { + "Type": "String", + "Default": "" + }, + "roleName": { + "Type": "String", + "Default": "" + }, + "parentResource": { + "Type": "String", + "Default": "" + }, + "parentStack": { + "Type": "String", + "Default": "" + }, + "env": { + "Type": "String" + }, + "deploymentBucketName": { + "Type": "String" + }, + "s3Key": { + "Type": "String" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + } + }, + "Resources": { + "LambdaFunction": { + "Type": "AWS::Lambda::Function", + "Metadata": { + "aws:asset:path": "./src", + "aws:asset:property": "Code" + }, + "Properties": { + "Handler": "index.handler", + "FunctionName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "fitnesstracker33f5545533f55455PreSignup", + { + "Fn::Join": [ + "", + [ + "fitnesstracker33f5545533f55455PreSignup", + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "Environment": { + "Variables": { + "ENV": { + "Ref": "env" + }, + "MODULES": { + "Ref": "modules" + }, + "REGION": { + "Ref": "AWS::Region" + }, + "DOMAINALLOWLIST": { + "Ref": "DOMAINALLOWLIST" + }, + "DOMAINBLACKLIST": { + "Ref": "DOMAINBLACKLIST" + } + } + }, + "Role": { + "Fn::GetAtt": [ + "LambdaExecutionRole", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Timeout": 25, + "Code": { + "S3Bucket": { + "Ref": "deploymentBucketName" + }, + "S3Key": { + "Ref": "s3Key" + } + } + } + }, + "LambdaExecutionRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "RoleName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "fitnesstracker33f5545533f55455PreSignup", + { + "Fn::Join": [ + "", + [ + "fitnesstracker33f5545533f55455PreSignup", + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": [ + "lambda.amazonaws.com" + ] + }, + "Action": [ + "sts:AssumeRole" + ] + } + ] + } + } + }, + "lambdaexecutionpolicy": { + "DependsOn": [ + "LambdaExecutionRole" + ], + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyName": "lambda-execution-policy", + "Roles": [ + { + "Ref": "LambdaExecutionRole" + } + ], + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "logs:CreateLogGroup", + "logs:CreateLogStream", + "logs:PutLogEvents" + ], + "Resource": { + "Fn::Sub": [ + "arn:aws:logs:${region}:${account}:log-group:/aws/lambda/${lambda}:log-stream:*", + { + "region": { + "Ref": "AWS::Region" + }, + "account": { + "Ref": "AWS::AccountId" + }, + "lambda": { + "Ref": "LambdaFunction" + } + } + ] + } + } + ] + } + } + } + }, + "Outputs": { + "Name": { + "Value": { + "Ref": "LambdaFunction" + } + }, + "Arn": { + "Value": { + "Fn::GetAtt": [ + "LambdaFunction", + "Arn" + ] + } + }, + "LambdaExecutionRole": { + "Value": { + "Ref": "LambdaExecutionRole" + } + }, + "LambdaExecutionRoleArn": { + "Value": { + "Fn::GetAtt": [ + "LambdaExecutionRole", + "Arn" + ] + } + }, + "Region": { + "Value": { + "Ref": "AWS::Region" + } + } + } +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-functionlognutrition-x.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-functionlognutrition-x.description.txt new file mode 100644 index 00000000000..6cc2b5048c0 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-functionlognutrition-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"function-Lambda","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-functionlognutrition-x.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-functionlognutrition-x.outputs.json new file mode 100644 index 00000000000..a17040b3dfc --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-functionlognutrition-x.outputs.json @@ -0,0 +1,22 @@ +[ + { + "OutputKey": "LambdaExecutionRoleArn", + "OutputValue": "arn:aws:iam::123456789012:role/fitnesstrackerLambdaRole2824d4b4-x" + }, + { + "OutputKey": "Region", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "Arn", + "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:lognutrition-x" + }, + { + "OutputKey": "Name", + "OutputValue": "lognutrition-x" + }, + { + "OutputKey": "LambdaExecutionRole", + "OutputValue": "fitnesstrackerLambdaRole2824d4b4-x" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-functionlognutrition-x.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-functionlognutrition-x.parameters.json new file mode 100644 index 00000000000..c495769aa91 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-functionlognutrition-x.parameters.json @@ -0,0 +1,22 @@ +[ + { + "ParameterKey": "CloudWatchRule", + "ParameterValue": "NONE" + }, + { + "ParameterKey": "apifitnesstrackerGraphQLAPIIdOutput", + "ParameterValue": "xwgwkksjrbcoxnb64a6clvir4u" + }, + { + "ParameterKey": "s3Key", + "ParameterValue": "amplify-builds/lognutrition-4d67766f675761365161-build.zip" + }, + { + "ParameterKey": "deploymentBucketName", + "ParameterValue": "amplify-fitnesstracker-x-x-deployment" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-functionlognutrition-x.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-functionlognutrition-x.template.json new file mode 100644 index 00000000000..3d017b0693f --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x-functionlognutrition-x.template.json @@ -0,0 +1,320 @@ +{ + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Parameters": { + "CloudWatchRule": { + "Type": "String", + "Default": "NONE", + "Description": " Schedule Expression" + }, + "deploymentBucketName": { + "Type": "String" + }, + "env": { + "Type": "String" + }, + "s3Key": { + "Type": "String" + }, + "apifitnesstrackerGraphQLAPIIdOutput": { + "Type": "String", + "Default": "apifitnesstrackerGraphQLAPIIdOutput" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + } + }, + "Resources": { + "LambdaFunction": { + "Type": "AWS::Lambda::Function", + "Metadata": { + "aws:asset:path": "./src", + "aws:asset:property": "Code" + }, + "Properties": { + "Code": { + "S3Bucket": { + "Ref": "deploymentBucketName" + }, + "S3Key": { + "Ref": "s3Key" + } + }, + "Handler": "index.handler", + "FunctionName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "lognutrition", + { + "Fn::Join": [ + "", + [ + "lognutrition", + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "Environment": { + "Variables": { + "ENV": { + "Ref": "env" + }, + "REGION": { + "Ref": "AWS::Region" + }, + "API_FITNESSTRACKER_MEALTABLE_NAME": { + "Fn::ImportValue": { + "Fn::Sub": "${apifitnesstrackerGraphQLAPIIdOutput}:GetAtt:MealTable:Name" + } + }, + "API_FITNESSTRACKER_MEALTABLE_ARN": { + "Fn::Join": [ + "", + [ + "arn:aws:dynamodb:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":table/", + { + "Fn::ImportValue": { + "Fn::Sub": "${apifitnesstrackerGraphQLAPIIdOutput}:GetAtt:MealTable:Name" + } + } + ] + ] + }, + "API_FITNESSTRACKER_GRAPHQLAPIIDOUTPUT": { + "Ref": "apifitnesstrackerGraphQLAPIIdOutput" + } + } + }, + "Role": { + "Fn::GetAtt": [ + "LambdaExecutionRole", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Layers": [], + "Timeout": 25 + } + }, + "LambdaExecutionRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "RoleName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "fitnesstrackerLambdaRole2824d4b4", + { + "Fn::Join": [ + "", + [ + "fitnesstrackerLambdaRole2824d4b4", + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": [ + "lambda.amazonaws.com" + ] + }, + "Action": [ + "sts:AssumeRole" + ] + } + ] + } + } + }, + "lambdaexecutionpolicy": { + "DependsOn": [ + "LambdaExecutionRole" + ], + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyName": "lambda-execution-policy", + "Roles": [ + { + "Ref": "LambdaExecutionRole" + } + ], + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "logs:CreateLogGroup", + "logs:CreateLogStream", + "logs:PutLogEvents" + ], + "Resource": { + "Fn::Sub": [ + "arn:aws:logs:${region}:${account}:log-group:/aws/lambda/${lambda}:log-stream:*", + { + "region": { + "Ref": "AWS::Region" + }, + "account": { + "Ref": "AWS::AccountId" + }, + "lambda": { + "Ref": "LambdaFunction" + } + } + ] + } + } + ] + } + } + }, + "AmplifyResourcesPolicy": { + "DependsOn": [ + "LambdaExecutionRole" + ], + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyName": "amplify-lambda-execution-policy", + "Roles": [ + { + "Ref": "LambdaExecutionRole" + } + ], + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "dynamodb:Put*", + "dynamodb:Create*", + "dynamodb:BatchWriteItem", + "dynamodb:PartiQLInsert", + "dynamodb:Get*", + "dynamodb:BatchGetItem", + "dynamodb:List*", + "dynamodb:Describe*", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:PartiQLSelect", + "dynamodb:Update*", + "dynamodb:RestoreTable*", + "dynamodb:PartiQLUpdate", + "dynamodb:Delete*", + "dynamodb:PartiQLDelete" + ], + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:dynamodb:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":table/", + { + "Fn::ImportValue": { + "Fn::Sub": "${apifitnesstrackerGraphQLAPIIdOutput}:GetAtt:MealTable:Name" + } + } + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:dynamodb:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":table/", + { + "Fn::ImportValue": { + "Fn::Sub": "${apifitnesstrackerGraphQLAPIIdOutput}:GetAtt:MealTable:Name" + } + }, + "/index/*" + ] + ] + } + ] + } + ] + } + } + } + }, + "Outputs": { + "Name": { + "Value": { + "Ref": "LambdaFunction" + } + }, + "Arn": { + "Value": { + "Fn::GetAtt": [ + "LambdaFunction", + "Arn" + ] + } + }, + "Region": { + "Value": { + "Ref": "AWS::Region" + } + }, + "LambdaExecutionRole": { + "Value": { + "Ref": "LambdaExecutionRole" + } + }, + "LambdaExecutionRoleArn": { + "Value": { + "Fn::GetAtt": [ + "LambdaExecutionRole", + "Arn" + ] + } + } + } +} diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x.description.txt b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x.description.txt new file mode 100644 index 00000000000..6e1d8ff2351 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x.description.txt @@ -0,0 +1 @@ +Root Stack for AWS Amplify CLI diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x.outputs.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x.outputs.json new file mode 100644 index 00000000000..8636e23ceb6 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x.outputs.json @@ -0,0 +1,42 @@ +[ + { + "OutputKey": "AuthRoleName", + "OutputValue": "amplify-fitnesstracker-x-x-authRole" + }, + { + "OutputKey": "UnauthRoleArn", + "OutputValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-x-x-unauthRole" + }, + { + "OutputKey": "AuthRoleArn", + "OutputValue": "arn:aws:iam::123456789012:role/amplify-fitnesstracker-x-x-authRole" + }, + { + "OutputKey": "Region", + "OutputValue": "us-east-1", + "Description": "CloudFormation provider root stack Region", + "ExportName": "amplify-fitnesstracker-x-x-Region" + }, + { + "OutputKey": "DeploymentBucketName", + "OutputValue": "amplify-fitnesstracker-x-x-deployment", + "Description": "CloudFormation provider root stack deployment bucket name", + "ExportName": "amplify-fitnesstracker-x-x-DeploymentBucketName" + }, + { + "OutputKey": "UnauthRoleName", + "OutputValue": "amplify-fitnesstracker-x-x-unauthRole" + }, + { + "OutputKey": "StackName", + "OutputValue": "amplify-fitnesstracker-x-x", + "Description": "CloudFormation provider root stack ID", + "ExportName": "amplify-fitnesstracker-x-x-StackName" + }, + { + "OutputKey": "StackId", + "OutputValue": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-fitnesstracker-x-x/05c223c0-387e-11f1-a0a5-0affda7b6827", + "Description": "CloudFormation provider root stack name", + "ExportName": "amplify-fitnesstracker-x-x-StackId" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x.parameters.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x.parameters.json new file mode 100644 index 00000000000..80546ac9266 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x.parameters.json @@ -0,0 +1,14 @@ +[ + { + "ParameterKey": "AuthRoleName", + "ParameterValue": "amplify-fitnesstracker-x-x-authRole" + }, + { + "ParameterKey": "DeploymentBucketName", + "ParameterValue": "amplify-fitnesstracker-x-x-deployment" + }, + { + "ParameterKey": "UnauthRoleName", + "ParameterValue": "amplify-fitnesstracker-x-x-unauthRole" + } +] diff --git a/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x.template.json b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x.template.json new file mode 100644 index 00000000000..e224f695608 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/_snapshot.pre.refactor/amplify-fitnesstracker-x-x.template.json @@ -0,0 +1,715 @@ +{ + "Description": "Root Stack for AWS Amplify CLI", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "DeploymentBucketName": { + "Type": "String", + "Default": "DeploymentBucket", + "Description": "Name of the common deployment bucket provided by the parent stack" + }, + "AuthRoleName": { + "Type": "String", + "Default": "AuthRoleName", + "Description": "Name of the common deployment bucket provided by the parent stack" + }, + "UnauthRoleName": { + "Type": "String", + "Default": "UnAuthRoleName", + "Description": "Name of the common deployment bucket provided by the parent stack" + } + }, + "Outputs": { + "Region": { + "Description": "CloudFormation provider root stack Region", + "Value": { + "Ref": "AWS::Region" + }, + "Export": { + "Name": { + "Fn::Sub": "${AWS::StackName}-Region" + } + } + }, + "StackName": { + "Description": "CloudFormation provider root stack ID", + "Value": { + "Ref": "AWS::StackName" + }, + "Export": { + "Name": { + "Fn::Sub": "${AWS::StackName}-StackName" + } + } + }, + "StackId": { + "Description": "CloudFormation provider root stack name", + "Value": { + "Ref": "AWS::StackId" + }, + "Export": { + "Name": { + "Fn::Sub": "${AWS::StackName}-StackId" + } + } + }, + "AuthRoleArn": { + "Value": { + "Fn::GetAtt": [ + "AuthRole", + "Arn" + ] + } + }, + "UnauthRoleArn": { + "Value": { + "Fn::GetAtt": [ + "UnauthRole", + "Arn" + ] + } + }, + "DeploymentBucketName": { + "Description": "CloudFormation provider root stack deployment bucket name", + "Value": { + "Ref": "DeploymentBucketName" + }, + "Export": { + "Name": { + "Fn::Sub": "${AWS::StackName}-DeploymentBucketName" + } + } + }, + "AuthRoleName": { + "Value": { + "Ref": "AuthRole" + } + }, + "UnauthRoleName": { + "Value": { + "Ref": "UnauthRole" + } + } + }, + "Resources": { + "DeploymentBucket": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketName": { + "Ref": "DeploymentBucketName" + }, + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + } + }, + "UpdateReplacePolicy": "Retain", + "DeletionPolicy": "Retain" + }, + "DeploymentBucketBlockHTTP": { + "Type": "AWS::S3::BucketPolicy", + "Properties": { + "Bucket": { + "Ref": "DeploymentBucketName" + }, + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:*", + "Effect": "Deny", + "Principal": "*", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "DeploymentBucketName" + }, + "/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "DeploymentBucketName" + } + ] + ] + } + ], + "Condition": { + "Bool": { + "aws:SecureTransport": false + } + } + } + ] + } + } + }, + "AuthRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Sid": "", + "Effect": "Deny", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + }, + "Action": "sts:AssumeRoleWithWebIdentity" + } + ] + }, + "RoleName": { + "Ref": "AuthRoleName" + } + } + }, + "UnauthRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Sid": "", + "Effect": "Deny", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + }, + "Action": "sts:AssumeRoleWithWebIdentity" + } + ] + }, + "RoleName": { + "Ref": "UnauthRoleName" + } + } + }, + "APIGatewayAuthStack": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/api/APIGatewayAuthStack.json", + "Parameters": { + "authRoleName": { + "Ref": "AuthRoleName" + }, + "unauthRoleName": { + "Ref": "UnauthRoleName" + }, + "env": "x", + "nutritionapi": { + "Fn::GetAtt": [ + "apinutritionapi", + "Outputs.ApiId" + ] + }, + "adminapi": { + "Fn::GetAtt": [ + "apiadminapi", + "Outputs.ApiId" + ] + } + } + } + }, + "AuthTriggerCustomLambdaStack": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json", + "Parameters": { + "env": "x", + "userpoolId": { + "Fn::GetAtt": [ + "authfitnesstracker33f5545533f55455", + "Outputs.UserPoolId" + ] + }, + "userpoolArn": { + "Fn::GetAtt": [ + "authfitnesstracker33f5545533f55455", + "Outputs.UserPoolArn" + ] + }, + "functionfitnesstracker33f5545533f55455PreSignupLambdaExecutionRole": { + "Fn::GetAtt": [ + "functionfitnesstracker33f5545533f55455PreSignup", + "Outputs.LambdaExecutionRoleArn" + ] + }, + "functionfitnesstracker33f5545533f55455PreSignupArn": { + "Fn::GetAtt": [ + "functionfitnesstracker33f5545533f55455PreSignup", + "Outputs.Arn" + ] + }, + "functionfitnesstracker33f5545533f55455PreSignupName": { + "Fn::GetAtt": [ + "functionfitnesstracker33f5545533f55455PreSignup", + "Outputs.Name" + ] + } + } + }, + "DependsOn": [ + "authfitnesstracker33f5545533f55455", + "functionfitnesstracker33f5545533f55455PreSignup" + ] + }, + "authuserPoolGroups": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", + "Parameters": { + "AuthRoleArn": { + "Fn::GetAtt": [ + "AuthRole", + "Arn" + ] + }, + "UnauthRoleArn": { + "Fn::GetAtt": [ + "UnauthRole", + "Arn" + ] + }, + "authfitnesstracker33f5545533f55455UserPoolId": { + "Fn::GetAtt": [ + "authfitnesstracker33f5545533f55455", + "Outputs.UserPoolId" + ] + }, + "authfitnesstracker33f5545533f55455AppClientIDWeb": { + "Fn::GetAtt": [ + "authfitnesstracker33f5545533f55455", + "Outputs.AppClientIDWeb" + ] + }, + "authfitnesstracker33f5545533f55455AppClientID": { + "Fn::GetAtt": [ + "authfitnesstracker33f5545533f55455", + "Outputs.AppClientID" + ] + }, + "authfitnesstracker33f5545533f55455IdentityPoolId": { + "Fn::GetAtt": [ + "authfitnesstracker33f5545533f55455", + "Outputs.IdentityPoolId" + ] + }, + "env": "x" + } + } + }, + "authfitnesstracker33f5545533f55455": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/auth/fitnesstracker33f5545533f55455-cloudformation-template.json", + "Parameters": { + "identityPoolName": "fitnesstracker33f55455_identitypool_33f55455", + "allowUnauthenticatedIdentities": false, + "resourceNameTruncated": "fitnes33f55455", + "userPoolName": "fitnesstracker33f55455_userpool_33f55455", + "autoVerifiedAttributes": "email", + "mfaConfiguration": "OFF", + "mfaTypes": "SMS Text Message", + "smsAuthenticationMessage": "Your authentication code is {####}", + "smsVerificationMessage": "Your verification code is {####}", + "emailVerificationSubject": "Your verification code", + "emailVerificationMessage": "Your verification code is {####}", + "defaultPasswordPolicy": false, + "passwordPolicyMinLength": 8, + "passwordPolicyCharacters": "", + "requiredAttributes": "email", + "aliasAttributes": "", + "userpoolClientGenerateSecret": false, + "userpoolClientRefreshTokenValidity": 30, + "userpoolClientWriteAttributes": "email", + "userpoolClientReadAttributes": "email", + "userpoolClientLambdaRole": "fitnes33f55455_userpoolclient_lambda_role", + "userpoolClientSetAttributes": false, + "sharedId": "33f55455", + "resourceName": "fitnesstracker33f5545533f55455", + "authSelections": "identityPoolAndUserPool", + "useDefault": "manual", + "thirdPartyAuth": false, + "userPoolGroups": true, + "adminQueries": false, + "triggers": "{\"PreSignup\":[\"email-filter-allowlist\"]}", + "hostedUI": false, + "userPoolGroupList": "Admin", + "serviceName": "Cognito", + "usernameCaseSensitive": false, + "useEnabledMfas": true, + "authRoleArn": { + "Fn::GetAtt": [ + "AuthRole", + "Arn" + ] + }, + "unauthRoleArn": { + "Fn::GetAtt": [ + "UnauthRole", + "Arn" + ] + }, + "breakCircularDependency": true, + "dependsOn": "[object Object]", + "permissions": "", + "authTriggerConnections": "{\"triggerType\":\"PreSignUp\",\"lambdaFunctionName\":\"fitnesstracker33f5545533f55455PreSignup\"}", + "env": "x" + } + } + }, + "functionfitnesstracker33f5545533f55455PreSignup": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/function/fitnesstracker33f5545533f55455PreSignup-cloudformation-template.json", + "Parameters": { + "modules": "email-filter-allowlist", + "resourceName": "fitnesstracker33f5545533f55455PreSignup", + "DOMAINALLOWLIST": "amazon.com", + "deploymentBucketName": "amplify-fitnesstracker-x-x-deployment", + "s3Key": "amplify-builds/fitnesstracker33f5545533f55455PreSignup-68374859444c45627749-build.zip", + "env": "x" + } + } + }, + "functionlognutrition": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/function/lognutrition-cloudformation-template.json", + "Parameters": { + "deploymentBucketName": "amplify-fitnesstracker-x-x-deployment", + "s3Key": "amplify-builds/lognutrition-4d67766f675761365161-build.zip", + "apifitnesstrackerGraphQLAPIIdOutput": { + "Fn::GetAtt": [ + "apifitnesstracker", + "Outputs.GraphQLAPIIdOutput" + ] + }, + "env": "x" + } + } + }, + "functionadmin": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/function/admin-cloudformation-template.json", + "Parameters": { + "deploymentBucketName": "amplify-fitnesstracker-x-x-deployment", + "s3Key": "amplify-builds/admin-2f397a7163426d447a6b-build.zip", + "authfitnesstracker33f5545533f55455UserPoolId": { + "Fn::GetAtt": [ + "authfitnesstracker33f5545533f55455", + "Outputs.UserPoolId" + ] + }, + "env": "x" + } + } + }, + "apifitnesstracker": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "Parameters": { + "AppSyncApiName": "fitnesstracker", + "DynamoDBBillingMode": "PAY_PER_REQUEST", + "DynamoDBEnableServerSideEncryption": false, + "AuthCognitoUserPoolId": { + "Fn::GetAtt": [ + "authfitnesstracker33f5545533f55455", + "Outputs.UserPoolId" + ] + }, + "S3DeploymentBucket": "amplify-fitnesstracker-x-x-deployment", + "S3DeploymentRootKey": "amplify-appsync-files/67310f5f0a68cc163f9cc58da56e1409a2c21b1d", + "env": "x" + } + } + }, + "apinutritionapi": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/api/nutritionapi-cloudformation-template.json", + "Parameters": { + "functionlognutritionName": { + "Fn::GetAtt": [ + "functionlognutrition", + "Outputs.Name" + ] + }, + "functionlognutritionArn": { + "Fn::GetAtt": [ + "functionlognutrition", + "Outputs.Arn" + ] + }, + "authfitnesstracker33f5545533f55455UserPoolId": { + "Fn::GetAtt": [ + "authfitnesstracker33f5545533f55455", + "Outputs.UserPoolId" + ] + }, + "authuserPoolGroupsAdminGroupRole": { + "Fn::GetAtt": [ + "authuserPoolGroups", + "Outputs.AdminGroupRole" + ] + }, + "env": "x" + } + } + }, + "apiadminapi": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-fitnesstracker-x-x-deployment/amplify-cfn-templates/api/adminapi-cloudformation-template.json", + "Parameters": { + "functionadminName": { + "Fn::GetAtt": [ + "functionadmin", + "Outputs.Name" + ] + }, + "functionadminArn": { + "Fn::GetAtt": [ + "functionadmin", + "Outputs.Arn" + ] + }, + "authfitnesstracker33f5545533f55455UserPoolId": { + "Fn::GetAtt": [ + "authfitnesstracker33f5545533f55455", + "Outputs.UserPoolId" + ] + }, + "authuserPoolGroupsAdminGroupRole": { + "Fn::GetAtt": [ + "authuserPoolGroups", + "Outputs.AdminGroupRole" + ] + }, + "env": "x" + } + } + }, + "UpdateRolesWithIDPFunction": { + "DependsOn": [ + "AuthRole", + "UnauthRole", + "authfitnesstracker33f5545533f55455" + ], + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "ZipFile": { + "Fn::Join": [ + "\n", + [ + "const response = require('cfn-response');", + "const { IAMClient, GetRoleCommand, UpdateAssumeRolePolicyCommand } = require('@aws-sdk/client-iam');", + "exports.handler = function(event, context) {", + " // Don't return promise, response.send() marks context as done internally", + " const ignoredPromise = handleEvent(event, context)", + "};", + "async function handleEvent(event, context) {", + " try {", + " let authRoleName = event.ResourceProperties.authRoleName;", + " let unauthRoleName = event.ResourceProperties.unauthRoleName;", + " let idpId = event.ResourceProperties.idpId;", + " let authParamsJson = {", + " 'Version': '2012-10-17',", + " 'Statement': [{", + " 'Effect': 'Allow',", + " 'Principal': {'Federated': 'cognito-identity.amazonaws.com'},", + " 'Action': 'sts:AssumeRoleWithWebIdentity',", + " 'Condition': {", + " 'StringEquals': {'cognito-identity.amazonaws.com:aud': idpId},", + " 'ForAnyValue:StringLike': {'cognito-identity.amazonaws.com:amr': 'authenticated'}", + " }", + " }]", + " };", + " let unauthParamsJson = {", + " 'Version': '2012-10-17',", + " 'Statement': [{", + " 'Effect': 'Allow',", + " 'Principal': {'Federated': 'cognito-identity.amazonaws.com'},", + " 'Action': 'sts:AssumeRoleWithWebIdentity',", + " 'Condition': {", + " 'StringEquals': {'cognito-identity.amazonaws.com:aud': idpId},", + " 'ForAnyValue:StringLike': {'cognito-identity.amazonaws.com:amr': 'unauthenticated'}", + " }", + " }]", + " };", + " if (event.RequestType === 'Delete') {", + " try {", + " delete authParamsJson.Statement[0].Condition;", + " delete unauthParamsJson.Statement[0].Condition;", + " authParamsJson.Statement[0].Effect = 'Deny'", + " unauthParamsJson.Statement[0].Effect = 'Deny'", + " let authParams = {PolicyDocument: JSON.stringify(authParamsJson), RoleName: authRoleName};", + " let unauthParams = {PolicyDocument: JSON.stringify(unauthParamsJson), RoleName: unauthRoleName};", + " const iam = new IAMClient({region: event.ResourceProperties.region});", + " let res = await Promise.all([", + " iam.send(new GetRoleCommand({RoleName: authParams.RoleName})),", + " iam.send(new GetRoleCommand({RoleName: unauthParams.RoleName}))", + " ]);", + " res = await Promise.all([", + " iam.send(new UpdateAssumeRolePolicyCommand(authParams)),", + " iam.send(new UpdateAssumeRolePolicyCommand(unauthParams))", + " ]);", + " response.send(event, context, response.SUCCESS, {});", + " } catch (err) {", + " console.log(err.stack);", + " response.send(event, context, response.SUCCESS, {Error: err});", + " }", + " } else if (event.RequestType === 'Update' || event.RequestType === 'Create') {", + " const iam = new IAMClient({region: event.ResourceProperties.region});", + " let authParams = {PolicyDocument: JSON.stringify(authParamsJson), RoleName: authRoleName};", + " let unauthParams = {PolicyDocument: JSON.stringify(unauthParamsJson), RoleName: unauthRoleName};", + " const res = await Promise.all([", + " iam.send(new UpdateAssumeRolePolicyCommand(authParams)),", + " iam.send(new UpdateAssumeRolePolicyCommand(unauthParams))", + " ]);", + " response.send(event, context, response.SUCCESS, {});", + " }", + " } catch (err) {", + " console.log(err.stack);", + " response.send(event, context, response.FAILED, {Error: err});", + " }", + "};" + ] + ] + } + }, + "Handler": "index.handler", + "Runtime": "nodejs22.x", + "Timeout": 300, + "Role": { + "Fn::GetAtt": [ + "UpdateRolesWithIDPFunctionRole", + "Arn" + ] + } + } + }, + "UpdateRolesWithIDPFunctionOutputs": { + "Type": "Custom::LambdaCallout", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "UpdateRolesWithIDPFunction", + "Arn" + ] + }, + "region": { + "Ref": "AWS::Region" + }, + "idpId": { + "Fn::GetAtt": [ + "authfitnesstracker33f5545533f55455", + "Outputs.IdentityPoolId" + ] + }, + "authRoleName": { + "Ref": "AuthRole" + }, + "unauthRoleName": { + "Ref": "UnauthRole" + } + } + }, + "UpdateRolesWithIDPFunctionRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "RoleName": { + "Fn::Join": [ + "", + [ + { + "Ref": "AuthRole" + }, + "-idp" + ] + ] + }, + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": [ + "lambda.amazonaws.com" + ] + }, + "Action": [ + "sts:AssumeRole" + ] + } + ] + }, + "Policies": [ + { + "PolicyName": "UpdateRolesWithIDPFunctionPolicy", + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "logs:CreateLogGroup", + "logs:CreateLogStream", + "logs:PutLogEvents" + ], + "Resource": "arn:aws:logs:*:*:*" + }, + { + "Effect": "Allow", + "Action": [ + "iam:UpdateAssumeRolePolicy", + "iam:GetRole" + ], + "Resource": { + "Fn::GetAtt": [ + "AuthRole", + "Arn" + ] + } + }, + { + "Effect": "Allow", + "Action": [ + "iam:UpdateAssumeRolePolicy", + "iam:GetRole" + ], + "Resource": { + "Fn::GetAtt": [ + "UnauthRole", + "Arn" + ] + } + } + ] + } + } + ] + } + } + } +} diff --git a/amplify-migration-apps/fitness-tracker/migration/post-push.ts b/amplify-migration-apps/fitness-tracker/migration/post-push.ts deleted file mode 100644 index 548a5ca346d..00000000000 --- a/amplify-migration-apps/fitness-tracker/migration/post-push.ts +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/env npx ts-node -/** - * Post-push script for fitness-tracker app. - * - * The PreSignUp trigger has a DOMAINALLOWLIST env var that defaults to "" - * in the CloudFormation template. After push, we update the Lambda's - * environment to include "amazon.com" so test user provisioning works. - */ - -import fs from 'fs'; -import path from 'path'; -import { - LambdaClient, - UpdateFunctionConfigurationCommand, - GetFunctionConfigurationCommand, -} from '@aws-sdk/client-lambda'; - -async function main(): Promise { - const [appPath = process.cwd()] = process.argv.slice(2); - - const metaPath = path.join(appPath, 'amplify', 'backend', 'amplify-meta.json'); - const meta = JSON.parse(fs.readFileSync(metaPath, 'utf-8')); - - const preSignupEntry = Object.entries(meta.function ?? {}) - .find(([name]) => name.includes('PreSignup')); - - if (!preSignupEntry) { - throw new Error('No PreSignup function found in amplify-meta.json'); - } - - const functionName = (preSignupEntry[1] as any).output?.Name as string; - if (!functionName) { - throw new Error(`PreSignup entry '${preSignupEntry[0]}' has no output.Name`); - } - - const lambda = new LambdaClient({}); - - const config = await lambda.send(new GetFunctionConfigurationCommand({ FunctionName: functionName })); - const env = config.Environment?.Variables ?? {}; - - await lambda.send(new UpdateFunctionConfigurationCommand({ - FunctionName: functionName, - Environment: { Variables: { ...env, DOMAINALLOWLIST: 'amazon.com' } }, - })); -} - -main().catch((error) => { - console.error('Fatal error:', error.message); - process.exit(1); -}); diff --git a/amplify-migration-apps/fitness-tracker/migration/pre-push.ts b/amplify-migration-apps/fitness-tracker/migration/pre-push.ts new file mode 100644 index 00000000000..63f1f667266 --- /dev/null +++ b/amplify-migration-apps/fitness-tracker/migration/pre-push.ts @@ -0,0 +1,39 @@ +#!/usr/bin/env npx ts-node +/** + * Pre-push script for fitness-tracker app. + * + * Sets the DOMAINALLOWLIST parameter for the PreSignup Lambda in + * team-provider-info.json so that `amplify push --yes` doesn't prompt + * for missing values and the Lambda allows test users from amazon.com. + */ + +import fs from 'fs'; +import path from 'path'; + +function readEnvName(appPath: string): string { + const tpiPath = path.join(appPath, 'amplify', 'team-provider-info.json'); + const tpi = JSON.parse(fs.readFileSync(tpiPath, 'utf-8')); + return Object.keys(tpi)[0]; +} + +function setFunctionParameters(appPath: string, envName: string): void { + const tpiPath = path.join(appPath, 'amplify', 'team-provider-info.json'); + const tpi = JSON.parse(fs.readFileSync(tpiPath, 'utf-8')); + + tpi[envName].categories ??= {}; + tpi[envName].categories.function ??= {}; + tpi[envName].categories.function.fitnesstracker33f5545533f55455PreSignup = { + ...tpi[envName].categories.function.fitnesstracker33f5545533f55455PreSignup, + DOMAINALLOWLIST: 'amazon.com', + }; + + fs.writeFileSync(tpiPath, JSON.stringify(tpi, null, 2), 'utf-8'); +} + +function main(): void { + const [appPath = process.cwd()] = process.argv.slice(2); + const envName = readEnvName(appPath); + setFunctionParameters(appPath, envName); +} + +main(); diff --git a/amplify-migration-apps/fitness-tracker/package.json b/amplify-migration-apps/fitness-tracker/package.json index 75c734e939e..8bbbb034656 100644 --- a/amplify-migration-apps/fitness-tracker/package.json +++ b/amplify-migration-apps/fitness-tracker/package.json @@ -15,18 +15,19 @@ "configure": "./backend/configure.sh", "configure-schema": "./backend/configure-schema.sh", "sanitize": "tsx ../sanitize.ts", + "normalize": "tsx ../normalize.ts", "typecheck": "cd _snapshot.post.generate/amplify && npx tsc --noEmit", "test:gen1": "APP_CONFIG_PATH=${APP_CONFIG_PATH:-src/amplifyconfiguration.json} NODE_OPTIONS='--experimental-vm-modules' jest --verbose", "test:gen2": "APP_CONFIG_PATH=${APP_CONFIG_PATH:-amplify_outputs.json} NODE_OPTIONS='--experimental-vm-modules' jest --verbose", "test:shared-data": "true", "test:e2e": "cd ../../packages/amplify-gen2-migration-e2e-system && npx tsx src/cli.ts --app fitness-tracker --profile ${AWS_PROFILE:-default}", "deploy": "cd ../../packages/amplify-gen2-migration-e2e-system && npx tsx src/cli.ts --app fitness-tracker --step deploy --profile ${AWS_PROFILE:-default}", - "pre-push": "true", + "pre-push": "npx tsx migration/pre-push.ts", "post-generate": "npx tsx migration/post-generate.ts", "post-refactor": "true", "post-sandbox": "true", "pre-sandbox": "true", - "post-push": "npx tsx migration/post-push.ts" + "post-push": "true" }, "dependencies": { "@aws-amplify/ui-react": "^6.13.1", diff --git a/amplify-migration-apps/imported-resources/_snapshot.post.generate/amplify.yml b/amplify-migration-apps/imported-resources/_snapshot.post.generate/amplify.yml index 52c312768f5..19475262460 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.post.generate/amplify.yml +++ b/amplify-migration-apps/imported-resources/_snapshot.post.generate/amplify.yml @@ -8,16 +8,11 @@ backend: - npx ampx pipeline-deploy --branch $AWS_BRANCH --app-id $AWS_APP_ID frontend: phases: - preBuild: - commands: - - npm install build: commands: - - npm run build + - mkdir dist + - touch dist/index.html artifacts: baseDirectory: dist files: - "**/*" - cache: - paths: - - node_modules/**/* diff --git a/amplify-migration-apps/imported-resources/_snapshot.post.refactor/refactor.__from__.amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.__to__.amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4-holding.mappings.json b/amplify-migration-apps/imported-resources/_snapshot.post.refactor/refactor.__from__.amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.__to__.amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4-holding.mappings.json index fbcfb184cfb..ec5bc75e4fe 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.post.refactor/refactor.__from__.amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.__to__.amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4-holding.mappings.json +++ b/amplify-migration-apps/imported-resources/_snapshot.post.refactor/refactor.__from__.amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.__to__.amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4-holding.mappings.json @@ -9,4 +9,4 @@ "LogicalResourceId": "importedresources8c81d8d7ede741f3b102b3e1686abe8a9e9gen2mainBucket7C2850AF" } } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/imported-resources/_snapshot.post.refactor/refactor.__from__.amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.__to__.amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4-holding.source.template.json b/amplify-migration-apps/imported-resources/_snapshot.post.refactor/refactor.__from__.amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.__to__.amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4-holding.source.template.json index e661dd4edeb..26d62f6434c 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.post.refactor/refactor.__from__.amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.__to__.amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4-holding.source.template.json +++ b/amplify-migration-apps/imported-resources/_snapshot.post.refactor/refactor.__from__.amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.__to__.amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4-holding.source.template.json @@ -606,4 +606,4 @@ "Value": "amplify-importedresources-ge-importedresources8c81d8d-j5w43nqek34u" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.post.refactor/refactor.__from__.amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.__to__.amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4-holding.target.template.json b/amplify-migration-apps/imported-resources/_snapshot.post.refactor/refactor.__from__.amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.__to__.amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4-holding.target.template.json index 548f889ed27..b94fe357527 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.post.refactor/refactor.__from__.amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.__to__.amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4-holding.target.template.json +++ b/amplify-migration-apps/imported-resources/_snapshot.post.refactor/refactor.__from__.amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.__to__.amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4-holding.target.template.json @@ -76,4 +76,4 @@ } }, "Outputs": {} -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.post.refactor/refactor.__from__.amplify-importedresources-main-8a9e9-storages34ebf8874-A0JYRTQFCRQ.__to__.amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.mappings.json b/amplify-migration-apps/imported-resources/_snapshot.post.refactor/refactor.__from__.amplify-importedresources-main-8a9e9-storages34ebf8874-A0JYRTQFCRQ.__to__.amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.mappings.json index 25e4628e09f..16a7be46aee 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.post.refactor/refactor.__from__.amplify-importedresources-main-8a9e9-storages34ebf8874-A0JYRTQFCRQ.__to__.amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.mappings.json +++ b/amplify-migration-apps/imported-resources/_snapshot.post.refactor/refactor.__from__.amplify-importedresources-main-8a9e9-storages34ebf8874-A0JYRTQFCRQ.__to__.amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.mappings.json @@ -9,4 +9,4 @@ "LogicalResourceId": "importedresources8c81d8d7ede741f3b102b3e1686abe8a9e9gen2mainBucket7C2850AF" } } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/imported-resources/_snapshot.post.refactor/refactor.__from__.amplify-importedresources-main-8a9e9-storages34ebf8874-A0JYRTQFCRQ.__to__.amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.source.template.json b/amplify-migration-apps/imported-resources/_snapshot.post.refactor/refactor.__from__.amplify-importedresources-main-8a9e9-storages34ebf8874-A0JYRTQFCRQ.__to__.amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.source.template.json index 5bd0c809837..361efece8b1 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.post.refactor/refactor.__from__.amplify-importedresources-main-8a9e9-storages34ebf8874-A0JYRTQFCRQ.__to__.amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.source.template.json +++ b/amplify-migration-apps/imported-resources/_snapshot.post.refactor/refactor.__from__.amplify-importedresources-main-8a9e9-storages34ebf8874-A0JYRTQFCRQ.__to__.amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.source.template.json @@ -466,4 +466,4 @@ "Condition": "GuestReadAndList" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.post.refactor/refactor.__from__.amplify-importedresources-main-8a9e9-storages34ebf8874-A0JYRTQFCRQ.__to__.amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.target.template.json b/amplify-migration-apps/imported-resources/_snapshot.post.refactor/refactor.__from__.amplify-importedresources-main-8a9e9-storages34ebf8874-A0JYRTQFCRQ.__to__.amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.target.template.json index f0e493648ec..40ddfebc735 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.post.refactor/refactor.__from__.amplify-importedresources-main-8a9e9-storages34ebf8874-A0JYRTQFCRQ.__to__.amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.target.template.json +++ b/amplify-migration-apps/imported-resources/_snapshot.post.refactor/refactor.__from__.amplify-importedresources-main-8a9e9-storages34ebf8874-A0JYRTQFCRQ.__to__.amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.target.template.json @@ -670,4 +670,4 @@ "Value": "amplify-importedresources-ge-importedresources8c81d8d-j5w43nqek34u" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.post.refactor/update.amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.parameters.json b/amplify-migration-apps/imported-resources/_snapshot.post.refactor/update.amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.parameters.json index 0637a088a01..fe51488c706 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.post.refactor/update.amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.parameters.json +++ b/amplify-migration-apps/imported-resources/_snapshot.post.refactor/update.amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.parameters.json @@ -1 +1 @@ -[] \ No newline at end of file +[] diff --git a/amplify-migration-apps/imported-resources/_snapshot.post.refactor/update.amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.template.json b/amplify-migration-apps/imported-resources/_snapshot.post.refactor/update.amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.template.json index 574417a1b25..23891742817 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.post.refactor/update.amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.template.json +++ b/amplify-migration-apps/imported-resources/_snapshot.post.refactor/update.amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.template.json @@ -678,4 +678,4 @@ "Value": "amplify-importedresources-ge-importedresources8c81d8d-j5w43nqek34u" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.post.refactor/update.amplify-importedresources-main-8a9e9-storages34ebf8874-A0JYRTQFCRQ.parameters.json b/amplify-migration-apps/imported-resources/_snapshot.post.refactor/update.amplify-importedresources-main-8a9e9-storages34ebf8874-A0JYRTQFCRQ.parameters.json index dcc8cdbfe60..c2e0331c661 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.post.refactor/update.amplify-importedresources-main-8a9e9-storages34ebf8874-A0JYRTQFCRQ.parameters.json +++ b/amplify-migration-apps/imported-resources/_snapshot.post.refactor/update.amplify-importedresources-main-8a9e9-storages34ebf8874-A0JYRTQFCRQ.parameters.json @@ -83,4 +83,4 @@ "ParameterKey": "selectedAuthenticatedPermissions", "ParameterValue": "s3:PutObject,s3:GetObject,s3:ListBucket,s3:DeleteObject" } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/imported-resources/_snapshot.post.refactor/update.amplify-importedresources-main-8a9e9-storages34ebf8874-A0JYRTQFCRQ.template.json b/amplify-migration-apps/imported-resources/_snapshot.post.refactor/update.amplify-importedresources-main-8a9e9-storages34ebf8874-A0JYRTQFCRQ.template.json index 720367e0096..0c1bccba8fc 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.post.refactor/update.amplify-importedresources-main-8a9e9-storages34ebf8874-A0JYRTQFCRQ.template.json +++ b/amplify-migration-apps/imported-resources/_snapshot.post.refactor/update.amplify-importedresources-main-8a9e9-storages34ebf8874-A0JYRTQFCRQ.template.json @@ -530,4 +530,4 @@ "Condition": "GuestReadAndList" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json index 550b2a506cf..04454292e69 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json @@ -135,4 +135,4 @@ "lastPushDirHash": "kMMjdXBOJoAlVxAgQJIqYD2PuGc=" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/cloudformation-template.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/cloudformation-template.json index 929b7a487aa..65da8c8fe25 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/cloudformation-template.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/cloudformation-template.json @@ -1049,4 +1049,4 @@ } }, "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.1.0\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/parameters.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/parameters.json index 2fb98e1ade6..d804421d74f 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/parameters.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/parameters.json @@ -10,4 +10,4 @@ }, "S3DeploymentBucket": "amplify-importedresources-main-8a9e9-deployment", "S3DeploymentRootKey": "amplify-appsync-files/a4738ed9c7ff62e5dda2f6697e1457a141ba078d" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/InvokeQuotegeneratorLambdaDataSource.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/InvokeQuotegeneratorLambdaDataSource.req.vtl index dd90b6f6376..01114f78993 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/InvokeQuotegeneratorLambdaDataSource.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/InvokeQuotegeneratorLambdaDataSource.req.vtl @@ -12,4 +12,4 @@ "prev": $util.toJson($ctx.prev) } } -## [End] Invoke AWS Lambda data source: QuotegeneratorLambdaDataSource. ** \ No newline at end of file +## [End] Invoke AWS Lambda data source: QuotegeneratorLambdaDataSource. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/InvokeQuotegeneratorLambdaDataSource.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/InvokeQuotegeneratorLambdaDataSource.res.vtl index e6b83d8b6ab..1316903313e 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/InvokeQuotegeneratorLambdaDataSource.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/InvokeQuotegeneratorLambdaDataSource.res.vtl @@ -3,4 +3,4 @@ $util.error($ctx.error.message, $ctx.error.type) #end $util.toJson($ctx.result) -## [End] Handle error or return result. ** \ No newline at end of file +## [End] Handle error or return result. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.createProject.auth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.createProject.auth.1.req.vtl index bd515ae3245..e49fc3223df 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.createProject.auth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.createProject.auth.1.req.vtl @@ -49,4 +49,4 @@ $util.unauthorized() #end #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.createProject.init.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.createProject.init.1.req.vtl index df6b4cbbc5c..407b5845fc2 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.createProject.init.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.createProject.init.1.req.vtl @@ -8,4 +8,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.createProject.postAuth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.createProject.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.createProject.postAuth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.createProject.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.createProject.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.createProject.req.vtl index 6ade2d502a3..c026957a16e 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.createProject.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.createProject.req.vtl @@ -63,4 +63,4 @@ $util.qr($mergedValues.put("__typename", "Project")) $util.qr($PutObject.put("key", $Key)) #end $util.toJson($PutObject) -## [End] Create Request template. ** \ No newline at end of file +## [End] Create Request template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.createProject.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.createProject.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.createProject.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.createProject.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.createTodo.auth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.createTodo.auth.1.req.vtl index b074fcd47a3..a13011bfca8 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.createTodo.auth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.createTodo.auth.1.req.vtl @@ -49,4 +49,4 @@ $util.unauthorized() #end #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.createTodo.init.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.createTodo.init.1.req.vtl index df6b4cbbc5c..407b5845fc2 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.createTodo.init.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.createTodo.init.1.req.vtl @@ -8,4 +8,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.createTodo.postAuth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.createTodo.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.createTodo.postAuth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.createTodo.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.createTodo.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.createTodo.req.vtl index f03395e5eaa..ba7382bb4e2 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.createTodo.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.createTodo.req.vtl @@ -63,4 +63,4 @@ $util.qr($mergedValues.put("__typename", "Todo")) $util.qr($PutObject.put("key", $Key)) #end $util.toJson($PutObject) -## [End] Create Request template. ** \ No newline at end of file +## [End] Create Request template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.createTodo.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.createTodo.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.createTodo.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.createTodo.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.deleteProject.auth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.deleteProject.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.deleteProject.auth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.deleteProject.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.deleteProject.auth.1.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.deleteProject.auth.1.res.vtl index d60b77ecdd7..a616f67a6c4 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.deleteProject.auth.1.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.deleteProject.auth.1.res.vtl @@ -24,4 +24,4 @@ $util.unauthorized() $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.deleteProject.postAuth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.deleteProject.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.deleteProject.postAuth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.deleteProject.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.deleteProject.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.deleteProject.req.vtl index ace459bd501..d2cb40cd15d 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.deleteProject.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.deleteProject.req.vtl @@ -55,4 +55,4 @@ $util.qr($DeleteRequest.put("key", $Key)) $util.qr($DeleteRequest.put("condition", $Conditions)) #end $util.toJson($DeleteRequest) -## [End] Delete Request template. ** \ No newline at end of file +## [End] Delete Request template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.deleteProject.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.deleteProject.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.deleteProject.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.deleteProject.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.deleteTodo.auth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.deleteTodo.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.deleteTodo.auth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.deleteTodo.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.deleteTodo.auth.1.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.deleteTodo.auth.1.res.vtl index d60b77ecdd7..a616f67a6c4 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.deleteTodo.auth.1.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.deleteTodo.auth.1.res.vtl @@ -24,4 +24,4 @@ $util.unauthorized() $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.deleteTodo.postAuth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.deleteTodo.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.deleteTodo.postAuth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.deleteTodo.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.deleteTodo.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.deleteTodo.req.vtl index ace459bd501..d2cb40cd15d 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.deleteTodo.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.deleteTodo.req.vtl @@ -55,4 +55,4 @@ $util.qr($DeleteRequest.put("key", $Key)) $util.qr($DeleteRequest.put("condition", $Conditions)) #end $util.toJson($DeleteRequest) -## [End] Delete Request template. ** \ No newline at end of file +## [End] Delete Request template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.deleteTodo.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.deleteTodo.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.deleteTodo.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.deleteTodo.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateProject.auth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateProject.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateProject.auth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateProject.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateProject.auth.1.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateProject.auth.1.res.vtl index f7af8a41604..dd719b0da67 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateProject.auth.1.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateProject.auth.1.res.vtl @@ -52,4 +52,4 @@ $util.unauthorized() $util.error("Unauthorized on ${deniedFields.keySet()}", "Unauthorized") #end $util.toJson({}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateProject.init.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateProject.init.1.req.vtl index ab5766fb051..dde2512aea8 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateProject.init.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateProject.init.1.req.vtl @@ -6,4 +6,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateProject.postAuth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateProject.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateProject.postAuth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateProject.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateProject.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateProject.req.vtl index a1bd67d21b6..648b67d7c57 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateProject.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateProject.req.vtl @@ -127,4 +127,4 @@ $util.qr($update.put("expression", "$expression")) $util.qr($UpdateItem.put("condition", $Conditions)) #end $util.toJson($UpdateItem) -## [End] Mutation Update resolver. ** \ No newline at end of file +## [End] Mutation Update resolver. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateProject.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateProject.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateProject.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateProject.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateTodo.auth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateTodo.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateTodo.auth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateTodo.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateTodo.auth.1.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateTodo.auth.1.res.vtl index e766d81e79e..aff2d1e083c 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateTodo.auth.1.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateTodo.auth.1.res.vtl @@ -52,4 +52,4 @@ $util.unauthorized() $util.error("Unauthorized on ${deniedFields.keySet()}", "Unauthorized") #end $util.toJson({}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateTodo.init.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateTodo.init.1.req.vtl index ab5766fb051..dde2512aea8 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateTodo.init.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateTodo.init.1.req.vtl @@ -6,4 +6,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateTodo.postAuth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateTodo.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateTodo.postAuth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateTodo.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateTodo.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateTodo.req.vtl index a1bd67d21b6..648b67d7c57 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateTodo.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateTodo.req.vtl @@ -127,4 +127,4 @@ $util.qr($update.put("expression", "$expression")) $util.qr($UpdateItem.put("condition", $Conditions)) #end $util.toJson($UpdateItem) -## [End] Mutation Update resolver. ** \ No newline at end of file +## [End] Mutation Update resolver. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateTodo.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateTodo.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateTodo.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Mutation.updateTodo.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Project.owner.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Project.owner.req.vtl index 1aae0961a3e..a9c5efa2bb8 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Project.owner.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Project.owner.req.vtl @@ -1 +1 @@ -$util.toJson({"version":"2018-05-29","payload":{}}) \ No newline at end of file +$util.toJson({"version":"2018-05-29","payload":{}}) diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Project.owner.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Project.owner.res.vtl index c6de7a4f2cf..0552e7005c8 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Project.owner.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Project.owner.res.vtl @@ -17,4 +17,4 @@ $util.qr($ctx.source.put("owner", $ownerEntitiesLast)) $util.toJson($ctx.source.owner) #end -## [End] Parse owner field auth for Get. ** \ No newline at end of file +## [End] Parse owner field auth for Get. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Project.todos.auth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Project.todos.auth.1.req.vtl index 58516f2d3ba..e83ccb93117 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Project.todos.auth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Project.todos.auth.1.req.vtl @@ -37,4 +37,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Project.todos.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Project.todos.req.vtl index d0c5ca01dba..40dbad4a712 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Project.todos.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Project.todos.req.vtl @@ -69,4 +69,4 @@ null #end, "index": "gsi-Project.todos" } -#end \ No newline at end of file +#end diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Project.todos.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Project.todos.res.vtl index 922c4ce53d0..ae420dbf03f 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Project.todos.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Project.todos.res.vtl @@ -10,4 +10,4 @@ $util.error($ctx.error.message, $ctx.error.type) #end #end $util.toJson($result) -#end \ No newline at end of file +#end diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.getProject.auth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.getProject.auth.1.req.vtl index c25f744430b..da78f5423e7 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.getProject.auth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.getProject.auth.1.req.vtl @@ -33,4 +33,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.getProject.postAuth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.getProject.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.getProject.postAuth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.getProject.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.getProject.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.getProject.req.vtl index a8d7811a021..fd7fbfc8013 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.getProject.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.getProject.req.vtl @@ -31,4 +31,4 @@ $util.qr($GetRequest.put("query", $query)) $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) #end $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.getProject.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.getProject.res.vtl index e9ef1436bdd..92e05f99816 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.getProject.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.getProject.res.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson(null) #end -## [End] Get Response template. ** \ No newline at end of file +## [End] Get Response template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.getRandomQuote.auth.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.getRandomQuote.auth.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.getRandomQuote.auth.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.getRandomQuote.auth.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.getRandomQuote.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.getRandomQuote.res.vtl index 634741579ce..c37b82e4a30 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.getRandomQuote.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.getRandomQuote.res.vtl @@ -1 +1 @@ -$util.toJson($ctx.prev.result) \ No newline at end of file +$util.toJson($ctx.prev.result) diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.getTodo.auth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.getTodo.auth.1.req.vtl index c25f744430b..da78f5423e7 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.getTodo.auth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.getTodo.auth.1.req.vtl @@ -33,4 +33,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.getTodo.postAuth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.getTodo.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.getTodo.postAuth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.getTodo.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.getTodo.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.getTodo.req.vtl index a8d7811a021..fd7fbfc8013 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.getTodo.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.getTodo.req.vtl @@ -31,4 +31,4 @@ $util.qr($GetRequest.put("query", $query)) $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) #end $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.getTodo.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.getTodo.res.vtl index e9ef1436bdd..92e05f99816 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.getTodo.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.getTodo.res.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson(null) #end -## [End] Get Response template. ** \ No newline at end of file +## [End] Get Response template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.listProjects.auth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.listProjects.auth.1.req.vtl index c25f744430b..da78f5423e7 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.listProjects.auth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.listProjects.auth.1.req.vtl @@ -33,4 +33,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.listProjects.postAuth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.listProjects.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.listProjects.postAuth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.listProjects.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.listProjects.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.listProjects.req.vtl index 014213710e8..ef976126825 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.listProjects.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.listProjects.req.vtl @@ -47,4 +47,4 @@ #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) #end $util.toJson($ListRequest) -## [End] List Request. ** \ No newline at end of file +## [End] List Request. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.listProjects.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.listProjects.res.vtl index ee8b6670cbc..aab9983954e 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.listProjects.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.listProjects.res.vtl @@ -4,4 +4,4 @@ #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.listTodos.auth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.listTodos.auth.1.req.vtl index c25f744430b..da78f5423e7 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.listTodos.auth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.listTodos.auth.1.req.vtl @@ -33,4 +33,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.listTodos.postAuth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.listTodos.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.listTodos.postAuth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.listTodos.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.listTodos.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.listTodos.req.vtl index 014213710e8..ef976126825 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.listTodos.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.listTodos.req.vtl @@ -47,4 +47,4 @@ #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) #end $util.toJson($ListRequest) -## [End] List Request. ** \ No newline at end of file +## [End] List Request. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.listTodos.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.listTodos.res.vtl index ee8b6670cbc..aab9983954e 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.listTodos.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Query.listTodos.res.vtl @@ -4,4 +4,4 @@ #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/QuoteResponse.author.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/QuoteResponse.author.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/QuoteResponse.author.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/QuoteResponse.author.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/QuoteResponse.author.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/QuoteResponse.author.res.vtl index f935ef45b0b..7641a22fda9 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/QuoteResponse.author.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/QuoteResponse.author.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["author"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/QuoteResponse.message.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/QuoteResponse.message.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/QuoteResponse.message.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/QuoteResponse.message.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/QuoteResponse.message.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/QuoteResponse.message.res.vtl index 16ec362ea79..7c27c12d67a 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/QuoteResponse.message.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/QuoteResponse.message.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["message"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/QuoteResponse.quote.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/QuoteResponse.quote.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/QuoteResponse.quote.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/QuoteResponse.quote.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/QuoteResponse.quote.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/QuoteResponse.quote.res.vtl index 3f2d91b1b36..d872575dc9e 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/QuoteResponse.quote.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/QuoteResponse.quote.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["quote"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/QuoteResponse.timestamp.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/QuoteResponse.timestamp.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/QuoteResponse.timestamp.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/QuoteResponse.timestamp.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/QuoteResponse.timestamp.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/QuoteResponse.timestamp.res.vtl index 5123c52c5aa..76a126983d6 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/QuoteResponse.timestamp.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/QuoteResponse.timestamp.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["timestamp"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/QuoteResponse.totalQuotes.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/QuoteResponse.totalQuotes.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/QuoteResponse.totalQuotes.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/QuoteResponse.totalQuotes.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/QuoteResponse.totalQuotes.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/QuoteResponse.totalQuotes.res.vtl index de3d42f8713..07afe2a2c90 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/QuoteResponse.totalQuotes.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/QuoteResponse.totalQuotes.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["totalQuotes"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onCreateProject.auth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onCreateProject.auth.1.req.vtl index ca6973a44ed..0d61efbb69c 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onCreateProject.auth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onCreateProject.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onCreateProject.postAuth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onCreateProject.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onCreateProject.postAuth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onCreateProject.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onCreateProject.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onCreateProject.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onCreateProject.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onCreateProject.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onCreateProject.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onCreateProject.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onCreateProject.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onCreateProject.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onCreateTodo.auth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onCreateTodo.auth.1.req.vtl index ca6973a44ed..0d61efbb69c 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onCreateTodo.auth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onCreateTodo.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onCreateTodo.postAuth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onCreateTodo.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onCreateTodo.postAuth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onCreateTodo.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onCreateTodo.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onCreateTodo.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onCreateTodo.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onCreateTodo.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onCreateTodo.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onCreateTodo.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onCreateTodo.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onCreateTodo.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onDeleteProject.auth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onDeleteProject.auth.1.req.vtl index ca6973a44ed..0d61efbb69c 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onDeleteProject.auth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onDeleteProject.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onDeleteProject.postAuth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onDeleteProject.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onDeleteProject.postAuth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onDeleteProject.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onDeleteProject.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onDeleteProject.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onDeleteProject.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onDeleteProject.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onDeleteProject.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onDeleteProject.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onDeleteProject.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onDeleteProject.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onDeleteTodo.auth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onDeleteTodo.auth.1.req.vtl index ca6973a44ed..0d61efbb69c 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onDeleteTodo.auth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onDeleteTodo.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onDeleteTodo.postAuth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onDeleteTodo.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onDeleteTodo.postAuth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onDeleteTodo.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onDeleteTodo.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onDeleteTodo.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onDeleteTodo.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onDeleteTodo.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onDeleteTodo.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onDeleteTodo.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onDeleteTodo.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onDeleteTodo.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onUpdateProject.auth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onUpdateProject.auth.1.req.vtl index ca6973a44ed..0d61efbb69c 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onUpdateProject.auth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onUpdateProject.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onUpdateProject.postAuth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onUpdateProject.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onUpdateProject.postAuth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onUpdateProject.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onUpdateProject.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onUpdateProject.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onUpdateProject.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onUpdateProject.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onUpdateProject.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onUpdateProject.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onUpdateProject.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onUpdateProject.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onUpdateTodo.auth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onUpdateTodo.auth.1.req.vtl index ca6973a44ed..0d61efbb69c 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onUpdateTodo.auth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onUpdateTodo.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onUpdateTodo.postAuth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onUpdateTodo.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onUpdateTodo.postAuth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onUpdateTodo.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onUpdateTodo.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onUpdateTodo.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onUpdateTodo.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onUpdateTodo.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onUpdateTodo.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onUpdateTodo.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onUpdateTodo.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Subscription.onUpdateTodo.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Todo.owner.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Todo.owner.req.vtl index 1aae0961a3e..a9c5efa2bb8 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Todo.owner.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Todo.owner.req.vtl @@ -1 +1 @@ -$util.toJson({"version":"2018-05-29","payload":{}}) \ No newline at end of file +$util.toJson({"version":"2018-05-29","payload":{}}) diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Todo.owner.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Todo.owner.res.vtl index c6de7a4f2cf..0552e7005c8 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Todo.owner.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/resolvers/Todo.owner.res.vtl @@ -17,4 +17,4 @@ $util.qr($ctx.source.put("owner", $ownerEntitiesLast)) $util.toJson($ctx.source.owner) #end -## [End] Parse owner field auth for Get. ** \ No newline at end of file +## [End] Parse owner field auth for Get. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/stacks/ConnectionStack.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/stacks/ConnectionStack.json index ef02e60179e..5284770d951 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/stacks/ConnectionStack.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/stacks/ConnectionStack.json @@ -140,4 +140,4 @@ "Type": "String" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/stacks/CustomResources.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/stacks/CustomResources.json index 016991278d0..5fe357d6096 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/stacks/CustomResources.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/stacks/CustomResources.json @@ -58,4 +58,4 @@ "Value": "" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/stacks/FunctionDirectiveStack.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/stacks/FunctionDirectiveStack.json index 320e15cb1be..ebb69f88cb4 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/stacks/FunctionDirectiveStack.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/stacks/FunctionDirectiveStack.json @@ -278,4 +278,4 @@ "Type": "String" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/stacks/Project.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/stacks/Project.json index 682b3558af6..74d4aee5e34 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/stacks/Project.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/stacks/Project.json @@ -1533,4 +1533,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/stacks/Todo.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/stacks/Todo.json index c0ec80a05b3..1f00b7c59bd 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/stacks/Todo.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/build/stacks/Todo.json @@ -1259,4 +1259,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/cli-inputs.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/cli-inputs.json index 820017264a8..eda43dd14aa 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/cli-inputs.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/cli-inputs.json @@ -14,4 +14,4 @@ } ] } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/parameters.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/parameters.json index 99a0c61dc41..839302dff92 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/parameters.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/parameters.json @@ -8,4 +8,4 @@ "Outputs.UserPoolId" ] } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/resolvers/README.md b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/resolvers/README.md index 89e564c5b31..1634d295144 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/resolvers/README.md +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/resolvers/README.md @@ -1,2 +1,2 @@ Any resolvers that you add in this directory will override the ones automatically generated by Amplify CLI and will be directly copied to the cloud. -For more information, visit [https://docs.amplify.aws/cli/graphql-transformer/resolvers](https://docs.amplify.aws/cli/graphql-transformer/resolvers) \ No newline at end of file +For more information, visit [https://docs.amplify.aws/cli/graphql-transformer/resolvers](https://docs.amplify.aws/cli/graphql-transformer/resolvers) diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/transform.conf.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/transform.conf.json index 98e1e19f038..d0421b1df09 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/transform.conf.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/api/importedresources/transform.conf.json @@ -1,4 +1,4 @@ { "Version": 5, "ElasticsearchWarning": true -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/importedresources2c7c1c40/parameters.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/importedresources2c7c1c40/parameters.json index 1b6b2ebc241..58932d15896 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/importedresources2c7c1c40/parameters.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/importedresources2c7c1c40/parameters.json @@ -17,4 +17,4 @@ "email" ], "mfaTypes": [] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/importedresources/build/cloudformation-template.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/importedresources/build/cloudformation-template.json index 929b7a487aa..65da8c8fe25 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/importedresources/build/cloudformation-template.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/importedresources/build/cloudformation-template.json @@ -1049,4 +1049,4 @@ } }, "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.1.0\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json index 14de18827db..3b527956ba8 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json @@ -255,4 +255,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/importedresourcequotegenerator/importedresourcequotegenerator-cloudformation-template.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/importedresourcequotegenerator/importedresourcequotegenerator-cloudformation-template.json index c77cefb1714..757a09b0318 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/importedresourcequotegenerator/importedresourcequotegenerator-cloudformation-template.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/importedresourcequotegenerator/importedresourcequotegenerator-cloudformation-template.json @@ -199,4 +199,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json index 14de18827db..3b527956ba8 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json @@ -255,4 +255,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/storage/s34ebf8874/build/cloudformation-template.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/storage/s34ebf8874/build/cloudformation-template.json index de2595d8822..0d0ac3b4e6e 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/storage/s34ebf8874/build/cloudformation-template.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/storage/s34ebf8874/build/cloudformation-template.json @@ -643,4 +643,4 @@ "Condition": "GuestReadAndList" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json index e53b659c9eb..bb97ab305b7 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json @@ -161,4 +161,4 @@ "service": "S3" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/function/importedresourcequotegenerator/amplify.state b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/function/importedresourcequotegenerator/amplify.state index 0c3efe04706..ab8a6cc8046 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/function/importedresourcequotegenerator/amplify.state +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/function/importedresourcequotegenerator/amplify.state @@ -3,4 +3,4 @@ "functionRuntime": "nodejs", "useLegacyBuild": true, "defaultEditorFile": "src/index.js" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/function/importedresourcequotegenerator/custom-policies.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/function/importedresourcequotegenerator/custom-policies.json index 528c94f2f26..1f21c530082 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/function/importedresourcequotegenerator/custom-policies.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/function/importedresourcequotegenerator/custom-policies.json @@ -3,4 +3,4 @@ "Action": [], "Resource": [] } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/function/importedresourcequotegenerator/function-parameters.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/function/importedresourcequotegenerator/function-parameters.json index d5078776c21..481f6af97f7 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/function/importedresourcequotegenerator/function-parameters.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/function/importedresourcequotegenerator/function-parameters.json @@ -1,3 +1,3 @@ { "lambdaLayers": [] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/function/importedresourcequotegenerator/importedresourcequotegenerator-cloudformation-template.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/function/importedresourcequotegenerator/importedresourcequotegenerator-cloudformation-template.json index c77cefb1714..757a09b0318 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/function/importedresourcequotegenerator/importedresourcequotegenerator-cloudformation-template.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/function/importedresourcequotegenerator/importedresourcequotegenerator-cloudformation-template.json @@ -199,4 +199,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s34ebf8874/build/cloudformation-template.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s34ebf8874/build/cloudformation-template.json index 1b4e50f12bf..b822e1f750c 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s34ebf8874/build/cloudformation-template.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s34ebf8874/build/cloudformation-template.json @@ -634,4 +634,4 @@ "Condition": "GuestReadAndList" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s34ebf8874/build/parameters.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s34ebf8874/build/parameters.json index af4a9783fb4..e4bb4b73cd6 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s34ebf8874/build/parameters.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s34ebf8874/build/parameters.json @@ -31,4 +31,4 @@ "s3PermissionsAuthenticatedUploads": "s3:PutObject", "s3PermissionsGuestPublic": "s3:GetObject", "s3PermissionsGuestUploads": "DISALLOW" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s34ebf8874/cli-inputs.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s34ebf8874/cli-inputs.json index cfbc35d63c6..293c1e7d9aa 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s34ebf8874/cli-inputs.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s34ebf8874/cli-inputs.json @@ -13,4 +13,4 @@ ], "triggerFunction": "NONE", "groupAccess": {} -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/tags.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/tags.json index b9321d71b83..71f6abe11a6 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/tags.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/#current-cloud-backend/tags.json @@ -7,4 +7,4 @@ "Key": "user:Application", "Value": "{project-name}" } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/.config/project-config.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/.config/project-config.json index 746bbd029e2..48e5c05b678 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/.config/project-config.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/.config/project-config.json @@ -15,4 +15,4 @@ "providers": [ "awscloudformation" ] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/cloudformation-template.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/cloudformation-template.json index 929b7a487aa..65da8c8fe25 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/cloudformation-template.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/cloudformation-template.json @@ -1049,4 +1049,4 @@ } }, "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.1.0\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/parameters.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/parameters.json index 2fb98e1ade6..d804421d74f 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/parameters.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/parameters.json @@ -10,4 +10,4 @@ }, "S3DeploymentBucket": "amplify-importedresources-main-8a9e9-deployment", "S3DeploymentRootKey": "amplify-appsync-files/a4738ed9c7ff62e5dda2f6697e1457a141ba078d" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/InvokeQuotegeneratorLambdaDataSource.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/InvokeQuotegeneratorLambdaDataSource.req.vtl index dd90b6f6376..01114f78993 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/InvokeQuotegeneratorLambdaDataSource.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/InvokeQuotegeneratorLambdaDataSource.req.vtl @@ -12,4 +12,4 @@ "prev": $util.toJson($ctx.prev) } } -## [End] Invoke AWS Lambda data source: QuotegeneratorLambdaDataSource. ** \ No newline at end of file +## [End] Invoke AWS Lambda data source: QuotegeneratorLambdaDataSource. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/InvokeQuotegeneratorLambdaDataSource.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/InvokeQuotegeneratorLambdaDataSource.res.vtl index e6b83d8b6ab..1316903313e 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/InvokeQuotegeneratorLambdaDataSource.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/InvokeQuotegeneratorLambdaDataSource.res.vtl @@ -3,4 +3,4 @@ $util.error($ctx.error.message, $ctx.error.type) #end $util.toJson($ctx.result) -## [End] Handle error or return result. ** \ No newline at end of file +## [End] Handle error or return result. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.createProject.auth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.createProject.auth.1.req.vtl index bd515ae3245..e49fc3223df 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.createProject.auth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.createProject.auth.1.req.vtl @@ -49,4 +49,4 @@ $util.unauthorized() #end #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.createProject.init.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.createProject.init.1.req.vtl index df6b4cbbc5c..407b5845fc2 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.createProject.init.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.createProject.init.1.req.vtl @@ -8,4 +8,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.createProject.postAuth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.createProject.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.createProject.postAuth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.createProject.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.createProject.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.createProject.req.vtl index 6ade2d502a3..c026957a16e 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.createProject.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.createProject.req.vtl @@ -63,4 +63,4 @@ $util.qr($mergedValues.put("__typename", "Project")) $util.qr($PutObject.put("key", $Key)) #end $util.toJson($PutObject) -## [End] Create Request template. ** \ No newline at end of file +## [End] Create Request template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.createProject.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.createProject.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.createProject.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.createProject.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.createTodo.auth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.createTodo.auth.1.req.vtl index b074fcd47a3..a13011bfca8 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.createTodo.auth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.createTodo.auth.1.req.vtl @@ -49,4 +49,4 @@ $util.unauthorized() #end #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.createTodo.init.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.createTodo.init.1.req.vtl index df6b4cbbc5c..407b5845fc2 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.createTodo.init.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.createTodo.init.1.req.vtl @@ -8,4 +8,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.createTodo.postAuth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.createTodo.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.createTodo.postAuth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.createTodo.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.createTodo.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.createTodo.req.vtl index f03395e5eaa..ba7382bb4e2 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.createTodo.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.createTodo.req.vtl @@ -63,4 +63,4 @@ $util.qr($mergedValues.put("__typename", "Todo")) $util.qr($PutObject.put("key", $Key)) #end $util.toJson($PutObject) -## [End] Create Request template. ** \ No newline at end of file +## [End] Create Request template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.createTodo.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.createTodo.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.createTodo.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.createTodo.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.deleteProject.auth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.deleteProject.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.deleteProject.auth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.deleteProject.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.deleteProject.auth.1.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.deleteProject.auth.1.res.vtl index d60b77ecdd7..a616f67a6c4 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.deleteProject.auth.1.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.deleteProject.auth.1.res.vtl @@ -24,4 +24,4 @@ $util.unauthorized() $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.deleteProject.postAuth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.deleteProject.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.deleteProject.postAuth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.deleteProject.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.deleteProject.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.deleteProject.req.vtl index ace459bd501..d2cb40cd15d 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.deleteProject.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.deleteProject.req.vtl @@ -55,4 +55,4 @@ $util.qr($DeleteRequest.put("key", $Key)) $util.qr($DeleteRequest.put("condition", $Conditions)) #end $util.toJson($DeleteRequest) -## [End] Delete Request template. ** \ No newline at end of file +## [End] Delete Request template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.deleteProject.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.deleteProject.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.deleteProject.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.deleteProject.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.deleteTodo.auth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.deleteTodo.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.deleteTodo.auth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.deleteTodo.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.deleteTodo.auth.1.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.deleteTodo.auth.1.res.vtl index d60b77ecdd7..a616f67a6c4 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.deleteTodo.auth.1.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.deleteTodo.auth.1.res.vtl @@ -24,4 +24,4 @@ $util.unauthorized() $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.deleteTodo.postAuth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.deleteTodo.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.deleteTodo.postAuth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.deleteTodo.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.deleteTodo.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.deleteTodo.req.vtl index ace459bd501..d2cb40cd15d 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.deleteTodo.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.deleteTodo.req.vtl @@ -55,4 +55,4 @@ $util.qr($DeleteRequest.put("key", $Key)) $util.qr($DeleteRequest.put("condition", $Conditions)) #end $util.toJson($DeleteRequest) -## [End] Delete Request template. ** \ No newline at end of file +## [End] Delete Request template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.deleteTodo.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.deleteTodo.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.deleteTodo.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.deleteTodo.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateProject.auth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateProject.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateProject.auth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateProject.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateProject.auth.1.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateProject.auth.1.res.vtl index f7af8a41604..dd719b0da67 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateProject.auth.1.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateProject.auth.1.res.vtl @@ -52,4 +52,4 @@ $util.unauthorized() $util.error("Unauthorized on ${deniedFields.keySet()}", "Unauthorized") #end $util.toJson({}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateProject.init.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateProject.init.1.req.vtl index ab5766fb051..dde2512aea8 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateProject.init.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateProject.init.1.req.vtl @@ -6,4 +6,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateProject.postAuth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateProject.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateProject.postAuth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateProject.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateProject.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateProject.req.vtl index a1bd67d21b6..648b67d7c57 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateProject.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateProject.req.vtl @@ -127,4 +127,4 @@ $util.qr($update.put("expression", "$expression")) $util.qr($UpdateItem.put("condition", $Conditions)) #end $util.toJson($UpdateItem) -## [End] Mutation Update resolver. ** \ No newline at end of file +## [End] Mutation Update resolver. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateProject.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateProject.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateProject.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateProject.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateTodo.auth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateTodo.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateTodo.auth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateTodo.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateTodo.auth.1.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateTodo.auth.1.res.vtl index e766d81e79e..aff2d1e083c 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateTodo.auth.1.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateTodo.auth.1.res.vtl @@ -52,4 +52,4 @@ $util.unauthorized() $util.error("Unauthorized on ${deniedFields.keySet()}", "Unauthorized") #end $util.toJson({}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateTodo.init.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateTodo.init.1.req.vtl index ab5766fb051..dde2512aea8 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateTodo.init.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateTodo.init.1.req.vtl @@ -6,4 +6,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateTodo.postAuth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateTodo.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateTodo.postAuth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateTodo.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateTodo.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateTodo.req.vtl index a1bd67d21b6..648b67d7c57 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateTodo.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateTodo.req.vtl @@ -127,4 +127,4 @@ $util.qr($update.put("expression", "$expression")) $util.qr($UpdateItem.put("condition", $Conditions)) #end $util.toJson($UpdateItem) -## [End] Mutation Update resolver. ** \ No newline at end of file +## [End] Mutation Update resolver. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateTodo.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateTodo.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateTodo.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Mutation.updateTodo.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Project.owner.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Project.owner.req.vtl index 1aae0961a3e..a9c5efa2bb8 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Project.owner.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Project.owner.req.vtl @@ -1 +1 @@ -$util.toJson({"version":"2018-05-29","payload":{}}) \ No newline at end of file +$util.toJson({"version":"2018-05-29","payload":{}}) diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Project.owner.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Project.owner.res.vtl index c6de7a4f2cf..0552e7005c8 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Project.owner.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Project.owner.res.vtl @@ -17,4 +17,4 @@ $util.qr($ctx.source.put("owner", $ownerEntitiesLast)) $util.toJson($ctx.source.owner) #end -## [End] Parse owner field auth for Get. ** \ No newline at end of file +## [End] Parse owner field auth for Get. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Project.todos.auth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Project.todos.auth.1.req.vtl index 58516f2d3ba..e83ccb93117 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Project.todos.auth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Project.todos.auth.1.req.vtl @@ -37,4 +37,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Project.todos.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Project.todos.req.vtl index d0c5ca01dba..40dbad4a712 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Project.todos.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Project.todos.req.vtl @@ -69,4 +69,4 @@ null #end, "index": "gsi-Project.todos" } -#end \ No newline at end of file +#end diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Project.todos.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Project.todos.res.vtl index 922c4ce53d0..ae420dbf03f 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Project.todos.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Project.todos.res.vtl @@ -10,4 +10,4 @@ $util.error($ctx.error.message, $ctx.error.type) #end #end $util.toJson($result) -#end \ No newline at end of file +#end diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.getProject.auth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.getProject.auth.1.req.vtl index c25f744430b..da78f5423e7 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.getProject.auth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.getProject.auth.1.req.vtl @@ -33,4 +33,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.getProject.postAuth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.getProject.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.getProject.postAuth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.getProject.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.getProject.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.getProject.req.vtl index a8d7811a021..fd7fbfc8013 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.getProject.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.getProject.req.vtl @@ -31,4 +31,4 @@ $util.qr($GetRequest.put("query", $query)) $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) #end $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.getProject.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.getProject.res.vtl index e9ef1436bdd..92e05f99816 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.getProject.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.getProject.res.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson(null) #end -## [End] Get Response template. ** \ No newline at end of file +## [End] Get Response template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.getRandomQuote.auth.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.getRandomQuote.auth.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.getRandomQuote.auth.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.getRandomQuote.auth.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.getRandomQuote.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.getRandomQuote.res.vtl index 634741579ce..c37b82e4a30 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.getRandomQuote.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.getRandomQuote.res.vtl @@ -1 +1 @@ -$util.toJson($ctx.prev.result) \ No newline at end of file +$util.toJson($ctx.prev.result) diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.getTodo.auth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.getTodo.auth.1.req.vtl index c25f744430b..da78f5423e7 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.getTodo.auth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.getTodo.auth.1.req.vtl @@ -33,4 +33,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.getTodo.postAuth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.getTodo.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.getTodo.postAuth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.getTodo.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.getTodo.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.getTodo.req.vtl index a8d7811a021..fd7fbfc8013 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.getTodo.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.getTodo.req.vtl @@ -31,4 +31,4 @@ $util.qr($GetRequest.put("query", $query)) $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) #end $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.getTodo.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.getTodo.res.vtl index e9ef1436bdd..92e05f99816 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.getTodo.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.getTodo.res.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson(null) #end -## [End] Get Response template. ** \ No newline at end of file +## [End] Get Response template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.listProjects.auth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.listProjects.auth.1.req.vtl index c25f744430b..da78f5423e7 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.listProjects.auth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.listProjects.auth.1.req.vtl @@ -33,4 +33,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.listProjects.postAuth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.listProjects.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.listProjects.postAuth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.listProjects.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.listProjects.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.listProjects.req.vtl index 014213710e8..ef976126825 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.listProjects.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.listProjects.req.vtl @@ -47,4 +47,4 @@ #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) #end $util.toJson($ListRequest) -## [End] List Request. ** \ No newline at end of file +## [End] List Request. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.listProjects.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.listProjects.res.vtl index ee8b6670cbc..aab9983954e 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.listProjects.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.listProjects.res.vtl @@ -4,4 +4,4 @@ #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.listTodos.auth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.listTodos.auth.1.req.vtl index c25f744430b..da78f5423e7 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.listTodos.auth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.listTodos.auth.1.req.vtl @@ -33,4 +33,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.listTodos.postAuth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.listTodos.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.listTodos.postAuth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.listTodos.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.listTodos.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.listTodos.req.vtl index 014213710e8..ef976126825 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.listTodos.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.listTodos.req.vtl @@ -47,4 +47,4 @@ #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) #end $util.toJson($ListRequest) -## [End] List Request. ** \ No newline at end of file +## [End] List Request. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.listTodos.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.listTodos.res.vtl index ee8b6670cbc..aab9983954e 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.listTodos.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Query.listTodos.res.vtl @@ -4,4 +4,4 @@ #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/QuoteResponse.author.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/QuoteResponse.author.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/QuoteResponse.author.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/QuoteResponse.author.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/QuoteResponse.author.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/QuoteResponse.author.res.vtl index f935ef45b0b..7641a22fda9 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/QuoteResponse.author.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/QuoteResponse.author.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["author"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/QuoteResponse.message.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/QuoteResponse.message.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/QuoteResponse.message.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/QuoteResponse.message.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/QuoteResponse.message.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/QuoteResponse.message.res.vtl index 16ec362ea79..7c27c12d67a 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/QuoteResponse.message.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/QuoteResponse.message.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["message"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/QuoteResponse.quote.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/QuoteResponse.quote.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/QuoteResponse.quote.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/QuoteResponse.quote.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/QuoteResponse.quote.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/QuoteResponse.quote.res.vtl index 3f2d91b1b36..d872575dc9e 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/QuoteResponse.quote.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/QuoteResponse.quote.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["quote"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/QuoteResponse.timestamp.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/QuoteResponse.timestamp.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/QuoteResponse.timestamp.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/QuoteResponse.timestamp.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/QuoteResponse.timestamp.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/QuoteResponse.timestamp.res.vtl index 5123c52c5aa..76a126983d6 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/QuoteResponse.timestamp.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/QuoteResponse.timestamp.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["timestamp"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/QuoteResponse.totalQuotes.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/QuoteResponse.totalQuotes.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/QuoteResponse.totalQuotes.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/QuoteResponse.totalQuotes.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/QuoteResponse.totalQuotes.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/QuoteResponse.totalQuotes.res.vtl index de3d42f8713..07afe2a2c90 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/QuoteResponse.totalQuotes.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/QuoteResponse.totalQuotes.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["totalQuotes"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onCreateProject.auth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onCreateProject.auth.1.req.vtl index ca6973a44ed..0d61efbb69c 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onCreateProject.auth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onCreateProject.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onCreateProject.postAuth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onCreateProject.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onCreateProject.postAuth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onCreateProject.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onCreateProject.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onCreateProject.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onCreateProject.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onCreateProject.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onCreateProject.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onCreateProject.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onCreateProject.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onCreateProject.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onCreateTodo.auth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onCreateTodo.auth.1.req.vtl index ca6973a44ed..0d61efbb69c 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onCreateTodo.auth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onCreateTodo.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onCreateTodo.postAuth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onCreateTodo.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onCreateTodo.postAuth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onCreateTodo.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onCreateTodo.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onCreateTodo.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onCreateTodo.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onCreateTodo.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onCreateTodo.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onCreateTodo.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onCreateTodo.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onCreateTodo.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onDeleteProject.auth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onDeleteProject.auth.1.req.vtl index ca6973a44ed..0d61efbb69c 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onDeleteProject.auth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onDeleteProject.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onDeleteProject.postAuth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onDeleteProject.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onDeleteProject.postAuth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onDeleteProject.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onDeleteProject.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onDeleteProject.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onDeleteProject.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onDeleteProject.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onDeleteProject.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onDeleteProject.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onDeleteProject.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onDeleteProject.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onDeleteTodo.auth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onDeleteTodo.auth.1.req.vtl index ca6973a44ed..0d61efbb69c 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onDeleteTodo.auth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onDeleteTodo.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onDeleteTodo.postAuth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onDeleteTodo.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onDeleteTodo.postAuth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onDeleteTodo.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onDeleteTodo.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onDeleteTodo.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onDeleteTodo.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onDeleteTodo.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onDeleteTodo.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onDeleteTodo.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onDeleteTodo.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onDeleteTodo.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onUpdateProject.auth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onUpdateProject.auth.1.req.vtl index ca6973a44ed..0d61efbb69c 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onUpdateProject.auth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onUpdateProject.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onUpdateProject.postAuth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onUpdateProject.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onUpdateProject.postAuth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onUpdateProject.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onUpdateProject.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onUpdateProject.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onUpdateProject.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onUpdateProject.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onUpdateProject.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onUpdateProject.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onUpdateProject.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onUpdateProject.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onUpdateTodo.auth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onUpdateTodo.auth.1.req.vtl index ca6973a44ed..0d61efbb69c 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onUpdateTodo.auth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onUpdateTodo.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onUpdateTodo.postAuth.1.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onUpdateTodo.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onUpdateTodo.postAuth.1.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onUpdateTodo.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onUpdateTodo.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onUpdateTodo.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onUpdateTodo.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onUpdateTodo.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onUpdateTodo.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onUpdateTodo.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onUpdateTodo.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Subscription.onUpdateTodo.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Todo.owner.req.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Todo.owner.req.vtl index 1aae0961a3e..a9c5efa2bb8 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Todo.owner.req.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Todo.owner.req.vtl @@ -1 +1 @@ -$util.toJson({"version":"2018-05-29","payload":{}}) \ No newline at end of file +$util.toJson({"version":"2018-05-29","payload":{}}) diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Todo.owner.res.vtl b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Todo.owner.res.vtl index c6de7a4f2cf..0552e7005c8 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Todo.owner.res.vtl +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/resolvers/Todo.owner.res.vtl @@ -17,4 +17,4 @@ $util.qr($ctx.source.put("owner", $ownerEntitiesLast)) $util.toJson($ctx.source.owner) #end -## [End] Parse owner field auth for Get. ** \ No newline at end of file +## [End] Parse owner field auth for Get. ** diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/stacks/ConnectionStack.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/stacks/ConnectionStack.json index ef02e60179e..5284770d951 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/stacks/ConnectionStack.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/stacks/ConnectionStack.json @@ -140,4 +140,4 @@ "Type": "String" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/stacks/CustomResources.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/stacks/CustomResources.json index 016991278d0..5fe357d6096 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/stacks/CustomResources.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/stacks/CustomResources.json @@ -58,4 +58,4 @@ "Value": "" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/stacks/FunctionDirectiveStack.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/stacks/FunctionDirectiveStack.json index 320e15cb1be..ebb69f88cb4 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/stacks/FunctionDirectiveStack.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/stacks/FunctionDirectiveStack.json @@ -278,4 +278,4 @@ "Type": "String" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/stacks/Project.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/stacks/Project.json index 682b3558af6..74d4aee5e34 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/stacks/Project.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/stacks/Project.json @@ -1533,4 +1533,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/stacks/Todo.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/stacks/Todo.json index c0ec80a05b3..1f00b7c59bd 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/stacks/Todo.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/build/stacks/Todo.json @@ -1259,4 +1259,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/cli-inputs.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/cli-inputs.json index 820017264a8..eda43dd14aa 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/cli-inputs.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/cli-inputs.json @@ -14,4 +14,4 @@ } ] } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/parameters.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/parameters.json index 99a0c61dc41..839302dff92 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/parameters.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/parameters.json @@ -8,4 +8,4 @@ "Outputs.UserPoolId" ] } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/resolvers/README.md b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/resolvers/README.md index 89e564c5b31..1634d295144 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/resolvers/README.md +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/resolvers/README.md @@ -1,2 +1,2 @@ Any resolvers that you add in this directory will override the ones automatically generated by Amplify CLI and will be directly copied to the cloud. -For more information, visit [https://docs.amplify.aws/cli/graphql-transformer/resolvers](https://docs.amplify.aws/cli/graphql-transformer/resolvers) \ No newline at end of file +For more information, visit [https://docs.amplify.aws/cli/graphql-transformer/resolvers](https://docs.amplify.aws/cli/graphql-transformer/resolvers) diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/transform.conf.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/transform.conf.json index 98e1e19f038..d0421b1df09 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/transform.conf.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/api/importedresources/transform.conf.json @@ -1,4 +1,4 @@ { "Version": 5, "ElasticsearchWarning": true -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/auth/importedresources2c7c1c40/parameters.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/auth/importedresources2c7c1c40/parameters.json index 1b6b2ebc241..58932d15896 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/auth/importedresources2c7c1c40/parameters.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/auth/importedresources2c7c1c40/parameters.json @@ -17,4 +17,4 @@ "email" ], "mfaTypes": [] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/importedresources/build/cloudformation-template.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/importedresources/build/cloudformation-template.json index 929b7a487aa..65da8c8fe25 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/importedresources/build/cloudformation-template.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/importedresources/build/cloudformation-template.json @@ -1049,4 +1049,4 @@ } }, "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.1.0\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json index 14de18827db..3b527956ba8 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json @@ -255,4 +255,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/importedresourcequotegenerator/importedresourcequotegenerator-cloudformation-template.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/importedresourcequotegenerator/importedresourcequotegenerator-cloudformation-template.json index c77cefb1714..757a09b0318 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/importedresourcequotegenerator/importedresourcequotegenerator-cloudformation-template.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/importedresourcequotegenerator/importedresourcequotegenerator-cloudformation-template.json @@ -199,4 +199,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json index 14de18827db..3b527956ba8 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json @@ -255,4 +255,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/awscloudformation/build/storage/s34ebf8874/build/cloudformation-template.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/awscloudformation/build/storage/s34ebf8874/build/cloudformation-template.json index de2595d8822..0d0ac3b4e6e 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/awscloudformation/build/storage/s34ebf8874/build/cloudformation-template.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/awscloudformation/build/storage/s34ebf8874/build/cloudformation-template.json @@ -643,4 +643,4 @@ "Condition": "GuestReadAndList" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/backend-config.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/backend-config.json index e53b659c9eb..bb97ab305b7 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/backend-config.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/backend-config.json @@ -161,4 +161,4 @@ "service": "S3" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/function/importedresourcequotegenerator/amplify.state b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/function/importedresourcequotegenerator/amplify.state index 0c3efe04706..ab8a6cc8046 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/function/importedresourcequotegenerator/amplify.state +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/function/importedresourcequotegenerator/amplify.state @@ -3,4 +3,4 @@ "functionRuntime": "nodejs", "useLegacyBuild": true, "defaultEditorFile": "src/index.js" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/function/importedresourcequotegenerator/custom-policies.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/function/importedresourcequotegenerator/custom-policies.json index 528c94f2f26..1f21c530082 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/function/importedresourcequotegenerator/custom-policies.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/function/importedresourcequotegenerator/custom-policies.json @@ -3,4 +3,4 @@ "Action": [], "Resource": [] } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/function/importedresourcequotegenerator/function-parameters.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/function/importedresourcequotegenerator/function-parameters.json index d5078776c21..481f6af97f7 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/function/importedresourcequotegenerator/function-parameters.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/function/importedresourcequotegenerator/function-parameters.json @@ -1,3 +1,3 @@ { "lambdaLayers": [] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/function/importedresourcequotegenerator/importedresourcequotegenerator-cloudformation-template.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/function/importedresourcequotegenerator/importedresourcequotegenerator-cloudformation-template.json index c77cefb1714..757a09b0318 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/function/importedresourcequotegenerator/importedresourcequotegenerator-cloudformation-template.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/function/importedresourcequotegenerator/importedresourcequotegenerator-cloudformation-template.json @@ -199,4 +199,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/storage/s34ebf8874/build/cloudformation-template.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/storage/s34ebf8874/build/cloudformation-template.json index 1b4e50f12bf..b822e1f750c 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/storage/s34ebf8874/build/cloudformation-template.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/storage/s34ebf8874/build/cloudformation-template.json @@ -634,4 +634,4 @@ "Condition": "GuestReadAndList" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/storage/s34ebf8874/build/parameters.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/storage/s34ebf8874/build/parameters.json index af4a9783fb4..e4bb4b73cd6 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/storage/s34ebf8874/build/parameters.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/storage/s34ebf8874/build/parameters.json @@ -31,4 +31,4 @@ "s3PermissionsAuthenticatedUploads": "s3:PutObject", "s3PermissionsGuestPublic": "s3:GetObject", "s3PermissionsGuestUploads": "DISALLOW" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/storage/s34ebf8874/cli-inputs.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/storage/s34ebf8874/cli-inputs.json index cfbc35d63c6..293c1e7d9aa 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/storage/s34ebf8874/cli-inputs.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/storage/s34ebf8874/cli-inputs.json @@ -13,4 +13,4 @@ ], "triggerFunction": "NONE", "groupAccess": {} -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/tags.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/tags.json index b9321d71b83..71f6abe11a6 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/tags.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/tags.json @@ -7,4 +7,4 @@ "Key": "user:Application", "Value": "{project-name}" } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts index 99a3e2ba1f2..6cf629db936 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts @@ -21,4 +21,4 @@ export type AmplifyDependentResourcesAttributes = { "Region": "string" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/cli.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/cli.json index 11dc8ca0f7d..6991bfaca44 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/cli.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/cli.json @@ -62,4 +62,4 @@ "debug": { "shareProjectConfig": false } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/team-provider-info.json b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/team-provider-info.json index a3e827bb123..14c8343fad1 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/team-provider-info.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.generate/amplify/team-provider-info.json @@ -41,4 +41,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataAmplifyTableManagerNestedStackA-1F9YB7IWVZQX6.description.txt b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataAmplifyTableManagerNestedStackA-1F9YB7IWVZQX6.description.txt index e69de29bb2d..8b137891791 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataAmplifyTableManagerNestedStackA-1F9YB7IWVZQX6.description.txt +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataAmplifyTableManagerNestedStackA-1F9YB7IWVZQX6.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataAmplifyTableManagerNestedStackA-1F9YB7IWVZQX6.outputs.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataAmplifyTableManagerNestedStackA-1F9YB7IWVZQX6.outputs.json index 2a5bcd80815..a01f7239500 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataAmplifyTableManagerNestedStackA-1F9YB7IWVZQX6.outputs.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataAmplifyTableManagerNestedStackA-1F9YB7IWVZQX6.outputs.json @@ -3,4 +3,4 @@ "OutputKey": "amplifyimportedresourcesgen2mainbranch908544b6dddataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEventEB1D7325Arn", "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-importedresources-ge-TableManagerCustomProvid-Hm4FhFmwgqLs" } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataAmplifyTableManagerNestedStackA-1F9YB7IWVZQX6.parameters.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataAmplifyTableManagerNestedStackA-1F9YB7IWVZQX6.parameters.json index 284ce93e1ea..8db9f530c20 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataAmplifyTableManagerNestedStackA-1F9YB7IWVZQX6.parameters.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataAmplifyTableManagerNestedStackA-1F9YB7IWVZQX6.parameters.json @@ -3,4 +3,4 @@ "ParameterKey": "referencetoamplifyimportedresourcesgen2mainbranch908544b6dddataamplifyDataGraphQLAPI71E636C3ApiId", "ParameterValue": "wl2oasglxvbnza7q3obncdxijq" } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataAmplifyTableManagerNestedStackA-1F9YB7IWVZQX6.template.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataAmplifyTableManagerNestedStackA-1F9YB7IWVZQX6.template.json index c97807fc14f..944f48c8408 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataAmplifyTableManagerNestedStackA-1F9YB7IWVZQX6.template.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataAmplifyTableManagerNestedStackA-1F9YB7IWVZQX6.template.json @@ -792,4 +792,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataConnectionStackNestedStackConne-1RBLBB7L7NMD8.description.txt b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataConnectionStackNestedStackConne-1RBLBB7L7NMD8.description.txt index e69de29bb2d..8b137891791 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataConnectionStackNestedStackConne-1RBLBB7L7NMD8.description.txt +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataConnectionStackNestedStackConne-1RBLBB7L7NMD8.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataConnectionStackNestedStackConne-1RBLBB7L7NMD8.outputs.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataConnectionStackNestedStackConne-1RBLBB7L7NMD8.outputs.json index 0637a088a01..fe51488c706 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataConnectionStackNestedStackConne-1RBLBB7L7NMD8.outputs.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataConnectionStackNestedStackConne-1RBLBB7L7NMD8.outputs.json @@ -1 +1 @@ -[] \ No newline at end of file +[] diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataConnectionStackNestedStackConne-1RBLBB7L7NMD8.parameters.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataConnectionStackNestedStackConne-1RBLBB7L7NMD8.parameters.json index eb82d6fc58a..16bd9e72c21 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataConnectionStackNestedStackConne-1RBLBB7L7NMD8.parameters.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataConnectionStackNestedStackConne-1RBLBB7L7NMD8.parameters.json @@ -15,4 +15,4 @@ "ParameterKey": "referencetoamplifyimportedresourcesgen2mainbranch908544b6dddataamplifyDataTodoNestedStackTodoNestedStackResourceA317627EOutputsamplifyimportedresourcesgen2mainbranch908544b6dddataamplifyDataTodoTodoTable2DD94F95TableArn", "ParameterValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Todo-xzx4nj36zzemlloxzhpkicpa7i-main" } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataConnectionStackNestedStackConne-1RBLBB7L7NMD8.template.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataConnectionStackNestedStackConne-1RBLBB7L7NMD8.template.json index 4fee7339ebe..b04b02aaf81 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataConnectionStackNestedStackConne-1RBLBB7L7NMD8.template.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataConnectionStackNestedStackConne-1RBLBB7L7NMD8.template.json @@ -416,4 +416,4 @@ "Type": "String" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataFunctionDirectiveStackNestedSta-2SF0I2CMCGTQ.description.txt b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataFunctionDirectiveStackNestedSta-2SF0I2CMCGTQ.description.txt index 87d574fa42f..6b3d983ba60 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataFunctionDirectiveStackNestedSta-2SF0I2CMCGTQ.description.txt +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataFunctionDirectiveStackNestedSta-2SF0I2CMCGTQ.description.txt @@ -1 +1 @@ -An auto-generated nested stack for the @function directive. \ No newline at end of file +An auto-generated nested stack for the @function directive. diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataFunctionDirectiveStackNestedSta-2SF0I2CMCGTQ.outputs.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataFunctionDirectiveStackNestedSta-2SF0I2CMCGTQ.outputs.json index 0637a088a01..fe51488c706 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataFunctionDirectiveStackNestedSta-2SF0I2CMCGTQ.outputs.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataFunctionDirectiveStackNestedSta-2SF0I2CMCGTQ.outputs.json @@ -1 +1 @@ -[] \ No newline at end of file +[] diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataFunctionDirectiveStackNestedSta-2SF0I2CMCGTQ.parameters.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataFunctionDirectiveStackNestedSta-2SF0I2CMCGTQ.parameters.json index 85f607838a4..129cfad7caf 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataFunctionDirectiveStackNestedSta-2SF0I2CMCGTQ.parameters.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataFunctionDirectiveStackNestedSta-2SF0I2CMCGTQ.parameters.json @@ -7,4 +7,4 @@ "ParameterKey": "referencetoamplifyimportedresourcesgen2mainbranch908544b6dddataamplifyDataGraphQLAPINONEDSE0F1315CName", "ParameterValue": "NONE_DS" } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataFunctionDirectiveStackNestedSta-2SF0I2CMCGTQ.template.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataFunctionDirectiveStackNestedSta-2SF0I2CMCGTQ.template.json index 9bd97973c59..440e574ffba 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataFunctionDirectiveStackNestedSta-2SF0I2CMCGTQ.template.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataFunctionDirectiveStackNestedSta-2SF0I2CMCGTQ.template.json @@ -532,4 +532,4 @@ "Type": "String" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataProjectNestedStackProjectNested-1OP3PL1W2QT5B.description.txt b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataProjectNestedStackProjectNested-1OP3PL1W2QT5B.description.txt index e69de29bb2d..8b137891791 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataProjectNestedStackProjectNested-1OP3PL1W2QT5B.description.txt +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataProjectNestedStackProjectNested-1OP3PL1W2QT5B.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataProjectNestedStackProjectNested-1OP3PL1W2QT5B.outputs.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataProjectNestedStackProjectNested-1OP3PL1W2QT5B.outputs.json index 681cdeaac84..53f6008a21f 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataProjectNestedStackProjectNested-1OP3PL1W2QT5B.outputs.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataProjectNestedStackProjectNested-1OP3PL1W2QT5B.outputs.json @@ -11,4 +11,4 @@ "Description": "Your DynamoDB table name.", "ExportName": "wl2oasglxvbnza7q3obncdxijq:GetAtt:ProjectTable:Name" } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataProjectNestedStackProjectNested-1OP3PL1W2QT5B.parameters.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataProjectNestedStackProjectNested-1OP3PL1W2QT5B.parameters.json index bc03648cba3..54e298319c9 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataProjectNestedStackProjectNested-1OP3PL1W2QT5B.parameters.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataProjectNestedStackProjectNested-1OP3PL1W2QT5B.parameters.json @@ -31,4 +31,4 @@ "ParameterKey": "referencetoamplifyimportedresourcesgen2mainbranch908544b6dddataamplifyDataGraphQLAPINONEDSE0F1315CName", "ParameterValue": "NONE_DS" } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataProjectNestedStackProjectNested-1OP3PL1W2QT5B.template.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataProjectNestedStackProjectNested-1OP3PL1W2QT5B.template.json index a980a3a3bce..7404db996a9 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataProjectNestedStackProjectNested-1OP3PL1W2QT5B.template.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataProjectNestedStackProjectNested-1OP3PL1W2QT5B.template.json @@ -1940,4 +1940,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataTodoNestedStackTodoNestedStackR-1K7K4SZOVCWXN.description.txt b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataTodoNestedStackTodoNestedStackR-1K7K4SZOVCWXN.description.txt index e69de29bb2d..8b137891791 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataTodoNestedStackTodoNestedStackR-1K7K4SZOVCWXN.description.txt +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataTodoNestedStackTodoNestedStackR-1K7K4SZOVCWXN.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataTodoNestedStackTodoNestedStackR-1K7K4SZOVCWXN.outputs.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataTodoNestedStackTodoNestedStackR-1K7K4SZOVCWXN.outputs.json index 21fd42bf0fa..4db9e417c4b 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataTodoNestedStackTodoNestedStackR-1K7K4SZOVCWXN.outputs.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataTodoNestedStackTodoNestedStackR-1K7K4SZOVCWXN.outputs.json @@ -19,4 +19,4 @@ "Description": "Your DynamoDB table StreamArn.", "ExportName": "wl2oasglxvbnza7q3obncdxijq:GetAtt:TodoTable:StreamArn" } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataTodoNestedStackTodoNestedStackR-1K7K4SZOVCWXN.parameters.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataTodoNestedStackTodoNestedStackR-1K7K4SZOVCWXN.parameters.json index bc03648cba3..54e298319c9 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataTodoNestedStackTodoNestedStackR-1K7K4SZOVCWXN.parameters.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataTodoNestedStackTodoNestedStackR-1K7K4SZOVCWXN.parameters.json @@ -31,4 +31,4 @@ "ParameterKey": "referencetoamplifyimportedresourcesgen2mainbranch908544b6dddataamplifyDataGraphQLAPINONEDSE0F1315CName", "ParameterValue": "NONE_DS" } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataTodoNestedStackTodoNestedStackR-1K7K4SZOVCWXN.template.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataTodoNestedStackTodoNestedStackR-1K7K4SZOVCWXN.template.json index 94d6e16f4f7..39f4863fc84 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataTodoNestedStackTodoNestedStackR-1K7K4SZOVCWXN.template.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-9085-amplifyDataTodoNestedStackTodoNestedStackR-1K7K4SZOVCWXN.template.json @@ -1982,4 +1982,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-auth179371D7-1W8KBZXE8BPPR.description.txt b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-auth179371D7-1W8KBZXE8BPPR.description.txt index 5dbd1afa60e..51a41f55b32 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-auth179371D7-1W8KBZXE8BPPR.description.txt +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-auth179371D7-1W8KBZXE8BPPR.description.txt @@ -1 +1 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.9.3","stackType":"auth-Cognito","metadata":{}} \ No newline at end of file +{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.9.3","stackType":"auth-Cognito","metadata":{}} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-auth179371D7-1W8KBZXE8BPPR.outputs.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-auth179371D7-1W8KBZXE8BPPR.outputs.json index 4e2a7228365..b295dedd061 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-auth179371D7-1W8KBZXE8BPPR.outputs.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-auth179371D7-1W8KBZXE8BPPR.outputs.json @@ -59,4 +59,4 @@ "OutputKey": "amplifyimportedresourcesgen2mainbranch908544b6ddauthAmplifyRefAuthCustomResource4124D30CsignupAttributes", "OutputValue": "[\"sub\",\"email\"]" } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-auth179371D7-1W8KBZXE8BPPR.parameters.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-auth179371D7-1W8KBZXE8BPPR.parameters.json index 0637a088a01..fe51488c706 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-auth179371D7-1W8KBZXE8BPPR.parameters.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-auth179371D7-1W8KBZXE8BPPR.parameters.json @@ -1 +1 @@ -[] \ No newline at end of file +[] diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-auth179371D7-1W8KBZXE8BPPR.template.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-auth179371D7-1W8KBZXE8BPPR.template.json index ee9fbb156e6..873f5008d12 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-auth179371D7-1W8KBZXE8BPPR.template.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-auth179371D7-1W8KBZXE8BPPR.template.json @@ -767,4 +767,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-data7552DF31-13QVTSPQF4E8Z.description.txt b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-data7552DF31-13QVTSPQF4E8Z.description.txt index 44245937612..fd37ae8993e 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-data7552DF31-13QVTSPQF4E8Z.description.txt +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-data7552DF31-13QVTSPQF4E8Z.description.txt @@ -1 +1 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.21.1","stackType":"api-AppSync","metadata":{"dataSources":"dynamodb","authorizationModes":"amazon_cognito_identity_pools,amazon_cognito_user_pools,api_key,aws_iam","customOperations":"queries"}} \ No newline at end of file +{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.21.1","stackType":"api-AppSync","metadata":{"dataSources":"dynamodb","authorizationModes":"amazon_cognito_identity_pools,amazon_cognito_user_pools,api_key,aws_iam","customOperations":"queries"}} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-data7552DF31-13QVTSPQF4E8Z.parameters.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-data7552DF31-13QVTSPQF4E8Z.parameters.json index 68adb445e92..7a027b3f330 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-data7552DF31-13QVTSPQF4E8Z.parameters.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-data7552DF31-13QVTSPQF4E8Z.parameters.json @@ -19,4 +19,4 @@ "ParameterKey": "DynamoDBModelTableWriteIOPS", "ParameterValue": "5" } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-data7552DF31-13QVTSPQF4E8Z.template.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-data7552DF31-13QVTSPQF4E8Z.template.json index a4f84021987..009f706fc82 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-data7552DF31-13QVTSPQF4E8Z.template.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-data7552DF31-13QVTSPQF4E8Z.template.json @@ -2093,4 +2093,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-function1351588B-64KZW0AYILQ9.description.txt b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-function1351588B-64KZW0AYILQ9.description.txt index b7c22514337..7ab911a3ca1 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-function1351588B-64KZW0AYILQ9.description.txt +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-function1351588B-64KZW0AYILQ9.description.txt @@ -1 +1 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.18.0","stackType":"function-Lambda","metadata":{}} \ No newline at end of file +{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.18.0","stackType":"function-Lambda","metadata":{}} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-function1351588B-64KZW0AYILQ9.outputs.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-function1351588B-64KZW0AYILQ9.outputs.json index 1d3c8bdce46..40283d46162 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-function1351588B-64KZW0AYILQ9.outputs.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-function1351588B-64KZW0AYILQ9.outputs.json @@ -3,4 +3,4 @@ "OutputKey": "amplifyimportedresourcesgen2mainbranch908544b6ddfunctionimportedresourcequotegeneratorgen2mainlambda21A13354Ref", "OutputValue": "importedresourcequotegenerator-gen2-main" } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-function1351588B-64KZW0AYILQ9.parameters.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-function1351588B-64KZW0AYILQ9.parameters.json index 0637a088a01..fe51488c706 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-function1351588B-64KZW0AYILQ9.parameters.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-function1351588B-64KZW0AYILQ9.parameters.json @@ -1 +1 @@ -[] \ No newline at end of file +[] diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-function1351588B-64KZW0AYILQ9.template.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-function1351588B-64KZW0AYILQ9.template.json index 43f35962afc..500086805f1 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-function1351588B-64KZW0AYILQ9.template.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-function1351588B-64KZW0AYILQ9.template.json @@ -407,4 +407,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.description.txt b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.description.txt index 4600cb981f5..e244a305ab8 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.description.txt +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.description.txt @@ -1 +1 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.4.3","stackType":"storage-S3","metadata":{}} \ No newline at end of file +{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.4.3","stackType":"storage-S3","metadata":{}} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.outputs.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.outputs.json index 5736f15e453..f0126272046 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.outputs.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.outputs.json @@ -3,4 +3,4 @@ "OutputKey": "amplifyimportedresourcesgen2mainbranch908544b6ddstorageimportedresources8c81d8d7ede741f3b102b3e1686abe8a9e9gen2mainBucket2829DA26Ref", "OutputValue": "amplify-importedresources-ge-importedresources8c81d8d-j5w43nqek34u" } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.parameters.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.parameters.json index 0637a088a01..fe51488c706 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.parameters.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.parameters.json @@ -1 +1 @@ -[] \ No newline at end of file +[] diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.template.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.template.json index f2bc205485e..14d99b8f639 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.template.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd-storage0EC3F24A-Y3A4CP55I1Z4.template.json @@ -789,4 +789,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd.description.txt b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd.description.txt index 519b8481f88..3688f9e0071 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd.description.txt +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd.description.txt @@ -1 +1 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.22.0","stackType":"root","metadata":{}} \ No newline at end of file +{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.22.0","stackType":"root","metadata":{}} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd.parameters.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd.parameters.json index 74596fb6f32..9b7e2669975 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd.parameters.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd.parameters.json @@ -4,4 +4,4 @@ "ParameterValue": "/cdk-bootstrap/hnb659fds/version", "ResolvedValue": "30" } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd.template.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd.template.json index 191f22ba964..9a09d64086b 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd.template.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-gen2main-branch-908544b6dd.template.json @@ -1153,4 +1153,4 @@ ] } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRS-FunctionDirectiveStack-VDMS2G8LP29N.description.txt b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRS-FunctionDirectiveStack-VDMS2G8LP29N.description.txt index 87d574fa42f..6b3d983ba60 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRS-FunctionDirectiveStack-VDMS2G8LP29N.description.txt +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRS-FunctionDirectiveStack-VDMS2G8LP29N.description.txt @@ -1 +1 @@ -An auto-generated nested stack for the @function directive. \ No newline at end of file +An auto-generated nested stack for the @function directive. diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRS-FunctionDirectiveStack-VDMS2G8LP29N.outputs.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRS-FunctionDirectiveStack-VDMS2G8LP29N.outputs.json index 0637a088a01..fe51488c706 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRS-FunctionDirectiveStack-VDMS2G8LP29N.outputs.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRS-FunctionDirectiveStack-VDMS2G8LP29N.outputs.json @@ -1 +1 @@ -[] \ No newline at end of file +[] diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRS-FunctionDirectiveStack-VDMS2G8LP29N.parameters.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRS-FunctionDirectiveStack-VDMS2G8LP29N.parameters.json index d8f74b68127..dcbb9b97a6f 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRS-FunctionDirectiveStack-VDMS2G8LP29N.parameters.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRS-FunctionDirectiveStack-VDMS2G8LP29N.parameters.json @@ -19,4 +19,4 @@ "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", "ParameterValue": "main" } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRS-FunctionDirectiveStack-VDMS2G8LP29N.template.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRS-FunctionDirectiveStack-VDMS2G8LP29N.template.json index 320e15cb1be..ebb69f88cb4 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRS-FunctionDirectiveStack-VDMS2G8LP29N.template.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRS-FunctionDirectiveStack-VDMS2G8LP29N.template.json @@ -278,4 +278,4 @@ "Type": "String" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7-CustomResourcesjson-1X0Y3QDUGDPYI.description.txt b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7-CustomResourcesjson-1X0Y3QDUGDPYI.description.txt index 293dec5639e..21e1447423e 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7-CustomResourcesjson-1X0Y3QDUGDPYI.description.txt +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7-CustomResourcesjson-1X0Y3QDUGDPYI.description.txt @@ -1 +1 @@ -An auto-generated nested stack. \ No newline at end of file +An auto-generated nested stack. diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7-CustomResourcesjson-1X0Y3QDUGDPYI.outputs.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7-CustomResourcesjson-1X0Y3QDUGDPYI.outputs.json index 5e9753d822a..291e7aad7f7 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7-CustomResourcesjson-1X0Y3QDUGDPYI.outputs.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7-CustomResourcesjson-1X0Y3QDUGDPYI.outputs.json @@ -4,4 +4,4 @@ "OutputValue": "", "Description": "An empty output. You may delete this if you have at least one resource above." } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7-CustomResourcesjson-1X0Y3QDUGDPYI.parameters.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7-CustomResourcesjson-1X0Y3QDUGDPYI.parameters.json index d06c54430b2..f3fbf46c888 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7-CustomResourcesjson-1X0Y3QDUGDPYI.parameters.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7-CustomResourcesjson-1X0Y3QDUGDPYI.parameters.json @@ -19,4 +19,4 @@ "ParameterKey": "AppSyncApiName", "ParameterValue": "importedresources" } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7-CustomResourcesjson-1X0Y3QDUGDPYI.template.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7-CustomResourcesjson-1X0Y3QDUGDPYI.template.json index 016991278d0..5fe357d6096 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7-CustomResourcesjson-1X0Y3QDUGDPYI.template.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7-CustomResourcesjson-1X0Y3QDUGDPYI.template.json @@ -58,4 +58,4 @@ "Value": "" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-ConnectionStack-UXV3GSF7IEI4.description.txt b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-ConnectionStack-UXV3GSF7IEI4.description.txt index e69de29bb2d..8b137891791 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-ConnectionStack-UXV3GSF7IEI4.description.txt +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-ConnectionStack-UXV3GSF7IEI4.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-ConnectionStack-UXV3GSF7IEI4.outputs.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-ConnectionStack-UXV3GSF7IEI4.outputs.json index 0637a088a01..fe51488c706 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-ConnectionStack-UXV3GSF7IEI4.outputs.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-ConnectionStack-UXV3GSF7IEI4.outputs.json @@ -1 +1 @@ -[] \ No newline at end of file +[] diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-ConnectionStack-UXV3GSF7IEI4.parameters.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-ConnectionStack-UXV3GSF7IEI4.parameters.json index 06534731b9a..5a6b7c11aa4 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-ConnectionStack-UXV3GSF7IEI4.parameters.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-ConnectionStack-UXV3GSF7IEI4.parameters.json @@ -23,4 +23,4 @@ "ParameterKey": "referencetotransformerrootstackTodoNestedStackTodoNestedStackResource9AC126A3OutputstransformerrootstackTodoTodoDataSourceBD713D7DName", "ParameterValue": "TodoTable" } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-ConnectionStack-UXV3GSF7IEI4.template.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-ConnectionStack-UXV3GSF7IEI4.template.json index ef02e60179e..5284770d951 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-ConnectionStack-UXV3GSF7IEI4.template.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-ConnectionStack-UXV3GSF7IEI4.template.json @@ -140,4 +140,4 @@ "Type": "String" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-Project-BFA0BGM2YWZJ.description.txt b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-Project-BFA0BGM2YWZJ.description.txt index e69de29bb2d..8b137891791 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-Project-BFA0BGM2YWZJ.description.txt +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-Project-BFA0BGM2YWZJ.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-Project-BFA0BGM2YWZJ.outputs.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-Project-BFA0BGM2YWZJ.outputs.json index 2f22e3b5b5c..fe99ef6e273 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-Project-BFA0BGM2YWZJ.outputs.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-Project-BFA0BGM2YWZJ.outputs.json @@ -45,4 +45,4 @@ "Description": "Your DynamoDB table name.", "ExportName": "xzx4nj36zzemlloxzhpkicpa7i:GetAtt:ProjectTable:Name" } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-Project-BFA0BGM2YWZJ.parameters.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-Project-BFA0BGM2YWZJ.parameters.json index 11c61dd39d6..db833aabdbb 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-Project-BFA0BGM2YWZJ.parameters.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-Project-BFA0BGM2YWZJ.parameters.json @@ -39,4 +39,4 @@ "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", "ParameterValue": "main" } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-Project-BFA0BGM2YWZJ.template.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-Project-BFA0BGM2YWZJ.template.json index 682b3558af6..74d4aee5e34 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-Project-BFA0BGM2YWZJ.template.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-Project-BFA0BGM2YWZJ.template.json @@ -1533,4 +1533,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-Todo-185FWK3TNQ40O.description.txt b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-Todo-185FWK3TNQ40O.description.txt index e69de29bb2d..8b137891791 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-Todo-185FWK3TNQ40O.description.txt +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-Todo-185FWK3TNQ40O.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-Todo-185FWK3TNQ40O.outputs.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-Todo-185FWK3TNQ40O.outputs.json index 509fc018888..7b25b49f149 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-Todo-185FWK3TNQ40O.outputs.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-Todo-185FWK3TNQ40O.outputs.json @@ -25,4 +25,4 @@ "OutputKey": "transformerrootstackTodoTodoDataSourceBD713D7DName", "OutputValue": "TodoTable" } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-Todo-185FWK3TNQ40O.parameters.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-Todo-185FWK3TNQ40O.parameters.json index b61ed11e74b..a0d2a363626 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-Todo-185FWK3TNQ40O.parameters.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-Todo-185FWK3TNQ40O.parameters.json @@ -67,4 +67,4 @@ "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", "ParameterValue": "main" } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-Todo-185FWK3TNQ40O.template.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-Todo-185FWK3TNQ40O.template.json index c0ec80a05b3..1f00b7c59bd 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-Todo-185FWK3TNQ40O.template.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2-Todo-185FWK3TNQ40O.template.json @@ -1259,4 +1259,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2.description.txt b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2.description.txt index e69de29bb2d..8b137891791 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2.description.txt +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2.parameters.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2.parameters.json index 151adee2610..37462e36148 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2.parameters.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2.parameters.json @@ -39,4 +39,4 @@ "ParameterKey": "AuthCognitoUserPoolId", "ParameterValue": "us-east-1_8feoXFV6v" } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2.template.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2.template.json index ff0d7e49add..e374afb8d55 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2.template.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-apiimportedresources-5AQRSTZ7T6E2.template.json @@ -1048,4 +1048,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-functionimportedresourcequotegenerator-15E10YPEACVUM.description.txt b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-functionimportedresourcequotegenerator-15E10YPEACVUM.description.txt index 459e4294c98..2bb21435aad 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-functionimportedresourcequotegenerator-15E10YPEACVUM.description.txt +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-functionimportedresourcequotegenerator-15E10YPEACVUM.description.txt @@ -1 +1 @@ -{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.1.0","stackType":"function-Lambda","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} \ No newline at end of file +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.1.0","stackType":"function-Lambda","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-functionimportedresourcequotegenerator-15E10YPEACVUM.outputs.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-functionimportedresourcequotegenerator-15E10YPEACVUM.outputs.json index e245fd30f25..5474541480e 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-functionimportedresourcequotegenerator-15E10YPEACVUM.outputs.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-functionimportedresourcequotegenerator-15E10YPEACVUM.outputs.json @@ -19,4 +19,4 @@ "OutputKey": "LambdaExecutionRole", "OutputValue": "importedresourcesLambdaRole7bd99cfb-main" } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-functionimportedresourcequotegenerator-15E10YPEACVUM.parameters.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-functionimportedresourcequotegenerator-15E10YPEACVUM.parameters.json index ec5095d7c8c..15f257b0722 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-functionimportedresourcequotegenerator-15E10YPEACVUM.parameters.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-functionimportedresourcequotegenerator-15E10YPEACVUM.parameters.json @@ -15,4 +15,4 @@ "ParameterKey": "env", "ParameterValue": "main" } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-functionimportedresourcequotegenerator-15E10YPEACVUM.template.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-functionimportedresourcequotegenerator-15E10YPEACVUM.template.json index c77cefb1714..757a09b0318 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-functionimportedresourcequotegenerator-15E10YPEACVUM.template.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-functionimportedresourcequotegenerator-15E10YPEACVUM.template.json @@ -199,4 +199,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-storages34ebf8874-A0JYRTQFCRQ.description.txt b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-storages34ebf8874-A0JYRTQFCRQ.description.txt index 90e425c7d3c..96f600aff88 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-storages34ebf8874-A0JYRTQFCRQ.description.txt +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-storages34ebf8874-A0JYRTQFCRQ.description.txt @@ -1 +1 @@ -{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.1.0","stackType":"storage-S3","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} \ No newline at end of file +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.1.0","stackType":"storage-S3","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-storages34ebf8874-A0JYRTQFCRQ.outputs.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-storages34ebf8874-A0JYRTQFCRQ.outputs.json index d2747bbc57f..bc57c33bc28 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-storages34ebf8874-A0JYRTQFCRQ.outputs.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-storages34ebf8874-A0JYRTQFCRQ.outputs.json @@ -8,4 +8,4 @@ "OutputKey": "Region", "OutputValue": "us-east-1" } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-storages34ebf8874-A0JYRTQFCRQ.parameters.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-storages34ebf8874-A0JYRTQFCRQ.parameters.json index dcc8cdbfe60..c2e0331c661 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-storages34ebf8874-A0JYRTQFCRQ.parameters.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-storages34ebf8874-A0JYRTQFCRQ.parameters.json @@ -83,4 +83,4 @@ "ParameterKey": "selectedAuthenticatedPermissions", "ParameterValue": "s3:PutObject,s3:GetObject,s3:ListBucket,s3:DeleteObject" } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-storages34ebf8874-A0JYRTQFCRQ.template.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-storages34ebf8874-A0JYRTQFCRQ.template.json index de2595d8822..0d0ac3b4e6e 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-storages34ebf8874-A0JYRTQFCRQ.template.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9-storages34ebf8874-A0JYRTQFCRQ.template.json @@ -643,4 +643,4 @@ "Condition": "GuestReadAndList" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9.description.txt b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9.description.txt index daf66c0bc85..6e1d8ff2351 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9.description.txt +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9.description.txt @@ -1 +1 @@ -Root Stack for AWS Amplify CLI \ No newline at end of file +Root Stack for AWS Amplify CLI diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9.outputs.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9.outputs.json index 2850c73a176..ce35b514015 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9.outputs.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9.outputs.json @@ -39,4 +39,4 @@ "Description": "CloudFormation provider root stack name", "ExportName": "amplify-importedresources-main-8a9e9-StackId" } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9.parameters.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9.parameters.json index 0a5b26da4a1..82d2e1d8c0a 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9.parameters.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9.parameters.json @@ -11,4 +11,4 @@ "ParameterKey": "UnauthRoleName", "ParameterValue": "amplify-importedresources-main-8a9e9-unauthRole" } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9.template.json b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9.template.json index 4a7714990ae..e87c8cf6135 100644 --- a/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9.template.json +++ b/amplify-migration-apps/imported-resources/_snapshot.pre.refactor/amplify-importedresources-main-8a9e9.template.json @@ -255,4 +255,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/imported-resources/package.json b/amplify-migration-apps/imported-resources/package.json index ae0b0da6160..f63bbb1ff7e 100644 --- a/amplify-migration-apps/imported-resources/package.json +++ b/amplify-migration-apps/imported-resources/package.json @@ -14,6 +14,7 @@ "configure": "./backend/configure.sh", "create-auth": "tsx create-auth-resources.ts", "sanitize": "tsx ../sanitize.ts", + "normalize": "tsx ../normalize.ts", "typecheck": "cd _snapshot.post.generate/amplify && npx tsc --noEmit", "test:gen1": "APP_CONFIG_PATH=${APP_CONFIG_PATH:-src/amplifyconfiguration.json} NODE_OPTIONS='--experimental-vm-modules' jest --verbose", "test:gen2": "APP_CONFIG_PATH=${APP_CONFIG_PATH:-amplify_outputs.json} NODE_OPTIONS='--experimental-vm-modules' jest --verbose", diff --git a/amplify-migration-apps/media-vault/_snapshot.post.generate/amplify.yml b/amplify-migration-apps/media-vault/_snapshot.post.generate/amplify.yml index 52c312768f5..19475262460 100644 --- a/amplify-migration-apps/media-vault/_snapshot.post.generate/amplify.yml +++ b/amplify-migration-apps/media-vault/_snapshot.post.generate/amplify.yml @@ -8,16 +8,11 @@ backend: - npx ampx pipeline-deploy --branch $AWS_BRANCH --app-id $AWS_APP_ID frontend: phases: - preBuild: - commands: - - npm install build: commands: - - npm run build + - mkdir dist + - touch dist/index.html artifacts: baseDirectory: dist files: - "**/*" - cache: - paths: - - node_modules/**/* diff --git a/amplify-migration-apps/media-vault/_snapshot.post.generate/amplify/backend.ts b/amplify-migration-apps/media-vault/_snapshot.post.generate/amplify/backend.ts index 1c34596ad22..5e4249c0071 100644 --- a/amplify-migration-apps/media-vault/_snapshot.post.generate/amplify/backend.ts +++ b/amplify-migration-apps/media-vault/_snapshot.post.generate/amplify/backend.ts @@ -87,7 +87,7 @@ cfnGraphqlApi.additionalAuthenticationProviders = [ ]; const s3Bucket = backend.storage.resources.cfnResources.cfnBucket; // Use this bucket name post refactor -// s3Bucket.bucketName = 'mediavaultb574f210f1634e3a8d1934f263da5bed61114-main'; +// s3Bucket.bucketName = 'mediavaultb574f210f1634e3a8d1934f263da5bedx-x'; s3Bucket.bucketEncryption = { serverSideEncryptionConfiguration: [ { diff --git a/amplify-migration-apps/media-vault/_snapshot.post.generate/amplify/data/resource.ts b/amplify-migration-apps/media-vault/_snapshot.post.generate/amplify/data/resource.ts index 72ad2562ce5..6c830d8746e 100644 --- a/amplify-migration-apps/media-vault/_snapshot.post.generate/amplify/data/resource.ts +++ b/amplify-migration-apps/media-vault/_snapshot.post.generate/amplify/data/resource.ts @@ -33,9 +33,9 @@ export const data = defineData({ migratedAmplifyGen1DynamoDbTableMappings: [ { //The "branchname" variable needs to be the same as your deployment branch if you want to reuse your Gen1 app tables - branchName: 'main', + branchName: 'x', modelNameToTableNameMapping: { - Note: 'Note-5aahjbxypzan3jqab7lbquus4m-main', + Note: 'Note-m35dk4nrcna2hiz267tsvgu77y-x', }, }, ], diff --git a/amplify-migration-apps/media-vault/_snapshot.post.generate/amplify/storage/resource.ts b/amplify-migration-apps/media-vault/_snapshot.post.generate/amplify/storage/resource.ts index 885c225df7f..cf4418dda99 100644 --- a/amplify-migration-apps/media-vault/_snapshot.post.generate/amplify/storage/resource.ts +++ b/amplify-migration-apps/media-vault/_snapshot.post.generate/amplify/storage/resource.ts @@ -6,7 +6,7 @@ const branchName = process.env.AWS_BRANCH ?? 'sandbox'; * TODO: Your project uses group permissions. Group permissions have changed in Gen 2. In order to grant permissions to groups in Gen 2, please refer to https://docs.amplify.aws/react/build-a-backend/storage/authorization/#for-gen-1-public-protected-and-private-access-pattern. */ export const storage = defineStorage({ - name: `mediavaultb574f210f1634e3a8d1934f263da5bed61114-${branchName}`, + name: `mediavaultb574f210f1634e3a8d1934f263da5bedx-${branchName}`, access: (allow) => ({ 'public/*': [ allow.guest.to(['read']), diff --git a/amplify-migration-apps/media-vault/_snapshot.post.generate/package.json b/amplify-migration-apps/media-vault/_snapshot.post.generate/package.json index c0e794f4840..9b5b226a39a 100644 --- a/amplify-migration-apps/media-vault/_snapshot.post.generate/package.json +++ b/amplify-migration-apps/media-vault/_snapshot.post.generate/package.json @@ -11,9 +11,21 @@ "build": "tsc -b && vite build", "lint": "eslint .", "preview": "vite preview", - "configure": "./configure.sh", + "configure": "./backend/configure.sh", "sanitize": "tsx ../sanitize.ts", - "typecheck": "cd _snapshot.post.generate/amplify && npx tsc --noEmit" + "normalize": "tsx ../normalize.ts", + "typecheck": "cd _snapshot.post.generate/amplify && npx tsc --noEmit", + "test:gen1": "APP_CONFIG_PATH=${APP_CONFIG_PATH:-src/amplifyconfiguration.json} NODE_OPTIONS='--experimental-vm-modules' jest --verbose", + "test:gen2": "APP_CONFIG_PATH=${APP_CONFIG_PATH:-amplify_outputs.json} NODE_OPTIONS='--experimental-vm-modules' jest --verbose", + "test:shared-data": "true", + "test:e2e": "cd ../../packages/amplify-gen2-migration-e2e-system && npx tsx src/cli.ts --app media-vault --profile ${AWS_PROFILE:-default}", + "deploy": "cd ../../packages/amplify-gen2-migration-e2e-system && npx tsx src/cli.ts --app media-vault --step deploy --profile ${AWS_PROFILE:-default}", + "pre-push": "npx tsx migration/pre-push.ts", + "post-generate": "npx tsx migration/post-generate.ts", + "post-refactor": "true", + "post-sandbox": "true", + "pre-sandbox": "true", + "post-push": "true" }, "dependencies": { "@aws-amplify/storage": "^6.10.1", @@ -29,8 +41,10 @@ "@aws-amplify/backend": "^1.18.0", "@aws-amplify/backend-cli": "^1.8.0", "@aws-amplify/backend-data": "^1.6.2", + "@aws-sdk/client-cognito-identity-provider": "^3.936.0", "@eslint/js": "^9.39.1", "@types/aws-lambda": "^8.10.92", + "@types/jest": "^29.5.14", "@types/node": "*", "@types/react": "^19.2.5", "@types/react-dom": "^19.2.3", @@ -44,6 +58,8 @@ "eslint-plugin-react-hooks": "^7.0.1", "eslint-plugin-react-refresh": "^0.4.24", "globals": "^16.5.0", + "jest": "^29.7.0", + "ts-jest": "^29.3.4", "tsx": "^4.20.6", "typescript": "~5.9.3", "typescript-eslint": "^8.46.4", diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/.gitignore b/amplify-migration-apps/media-vault/_snapshot.pre.generate/.gitignore index 4a025af5313..8c9162f3547 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/.gitignore +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/.gitignore @@ -36,7 +36,6 @@ dist/ node_modules/ aws-exports.js awsconfiguration.json -amplifyconfiguration.json amplifyconfiguration.dart amplify-build-config.json amplify-gradle-config.json diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json index c811227e343..9ae03f933b2 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json @@ -1,14 +1,14 @@ { "providers": { "awscloudformation": { - "AuthRoleName": "amplify-mediavault-main-61114-authRole", - "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-mediavault-main-61114-unauthRole", - "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-mediavault-main-61114-authRole", + "AuthRoleName": "amplify-mediavault-x-x-authRole", + "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-mediavault-x-x-unauthRole", + "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-mediavault-x-x-authRole", "Region": "us-east-1", - "DeploymentBucketName": "amplify-mediavault-main-61114-deployment", - "UnauthRoleName": "amplify-mediavault-main-61114-unauthRole", - "StackName": "amplify-mediavault-main-61114", - "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-mediavault-main-61114/fdd16cb0-1afb-11f1-aa46-12a754d266f9", + "DeploymentBucketName": "amplify-mediavault-x-x-deployment", + "UnauthRoleName": "amplify-mediavault-x-x-unauthRole", + "StackName": "amplify-mediavault-x-x", + "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-mediavault-x-x/108480f0-387e-11f1-8e28-0ea5af7cf5ad", "AmplifyAppId": "mediavault" } }, @@ -42,23 +42,23 @@ "EMAIL" ] }, - "lastPushTimeStamp": "2026-03-08T14:56:48.425Z", + "lastPushTimeStamp": "2026-04-15T03:56:49.379Z", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/auth/mediavault1f08412d-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/auth/mediavault1f08412d-cloudformation-template.json", "logicalId": "authmediavault1f08412d" }, "output": { - "UserPoolId": "us-east-1_gekM9OHb7", - "AppClientIDWeb": "1hq2dgt1ct4f6b812o4ell2b4u", - "AppClientID": "74dj0ooish8us4g47hk169p8jq", - "HostedUIDomain": "mediavault1f08412d-1f08412d-main", - "IdentityPoolId": "us-east-1:f09a0373-df13-49a1-a865-247f1908a6a1", - "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_gekM9OHb7", - "IdentityPoolName": "mediavault1f08412d_identitypool_1f08412d__main", + "UserPoolId": "us-east-1_baREhKWox", + "AppClientIDWeb": "2pfv0bgj28j0f7mdi2u06kdggv", + "AppClientID": "60ue3s3252ikds42onj76mjnh4", + "HostedUIDomain": "mediavault1f08412d-1f08412d-x", + "IdentityPoolId": "us-east-1:7f08778b-539e-436f-aaed-39d08e6d137d", + "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_baREhKWox", + "IdentityPoolName": "mediavault1f08412d_identitypool_1f08412d__x", "OAuthMetadata": "{\"AllowedOAuthFlows\":[\"code\"],\"AllowedOAuthScopes\":[\"phone\",\"email\",\"openid\",\"profile\",\"aws.cognito.signin.user.admin\"],\"CallbackURLs\":[\"https://main.mediavault.amplifyapp.com/\"],\"LogoutURLs\":[\"https://main.mediavault.amplifyapp.com/\"]}", "UserPoolName": "mediavault1f08412d_userpool_1f08412d" }, - "lastPushDirHash": "AwgYGHx+9uNagQUFkaFFMHBwgGg=" + "lastPushDirHash": "Ma5IJfCl/E9H5S23vZFAwLGSH30=" }, "userPoolGroups": { "service": "Cognito-UserPool-Groups", @@ -75,14 +75,14 @@ ] } ], - "lastPushTimeStamp": "2026-03-08T14:56:48.425Z", + "lastPushTimeStamp": "2026-04-15T03:56:49.379Z", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", "logicalId": "authuserPoolGroups" }, "output": { - "BasicGroupRole": "arn:aws:iam::123456789012:role/us-east-1_gekM9OHb7-BasicGroupRole", - "AdminGroupRole": "arn:aws:iam::123456789012:role/us-east-1_gekM9OHb7-AdminGroupRole" + "BasicGroupRole": "arn:aws:iam::123456789012:role/us-east-1_baREhKWox-BasicGroupRole", + "AdminGroupRole": "arn:aws:iam::123456789012:role/us-east-1_baREhKWox-AdminGroupRole" }, "lastPushDirHash": "YX53bt9uz7MT/9eaBZUPoOBEDvI=" } @@ -119,15 +119,15 @@ } ] }, - "GraphQLAPIIdOutput": "5aahjbxypzan3jqab7lbquus4m", - "GraphQLAPIEndpointOutput": "https://xv5mtuvvgfayvlmjoe2b6zm2gq.appsync-api.us-east-1.amazonaws.com/graphql", + "GraphQLAPIIdOutput": "m35dk4nrcna2hiz267tsvgu77y", + "GraphQLAPIEndpointOutput": "https://g5z2setogbflfexkd3i54nriqi.appsync-api.us-east-1.amazonaws.com/graphql", "GraphQLAPIKeyOutput": "da2-fakeapikey00000000000000" }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", "logicalId": "apimediavault" }, - "lastPushTimeStamp": "2026-03-08T14:56:48.425Z", + "lastPushTimeStamp": "2026-04-15T03:56:49.379Z", "lastPushDirHash": "vzO8uBmw3cyRXSizS8VkfIw+/TI=" } }, @@ -158,13 +158,13 @@ ] } ], - "lastPushTimeStamp": "2026-03-08T14:56:48.425Z", + "lastPushTimeStamp": "2026-04-15T03:56:49.379Z", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/storage/cloudformation-template.json", "logicalId": "storagemediavault" }, "output": { - "BucketName": "mediavaultb574f210f1634e3a8d1934f263da5bed61114-main", + "BucketName": "mediavaultb574f210f1634e3a8d1934f263da5bedx-x", "Region": "us-east-1" }, "lastPushDirHash": "o0jh/VhjpuADeT4UovxNATt4O5k=" @@ -184,25 +184,25 @@ ] } ], - "lastBuildTimeStamp": "2026-03-08T14:51:17.150Z", + "lastBuildTimeStamp": "2026-04-15T03:50:30.602Z", "lastBuildType": "PROD", - "lastPackageTimeStamp": "2026-03-08T14:51:17.208Z", + "lastPackageTimeStamp": "2026-04-15T03:50:30.655Z", "distZipFilename": "thumbnailgen-714677357a74314e2b59-build.zip", "s3Bucket": { - "deploymentBucketName": "amplify-mediavault-main-61114-deployment", + "deploymentBucketName": "amplify-mediavault-x-x-deployment", "s3Key": "amplify-builds/thumbnailgen-714677357a74314e2b59-build.zip" }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/function/thumbnailgen-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/function/thumbnailgen-cloudformation-template.json", "logicalId": "functionthumbnailgen" }, - "lastPushTimeStamp": "2026-03-08T14:56:48.425Z", + "lastPushTimeStamp": "2026-04-15T03:56:49.379Z", "output": { - "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/mediavaultLambdaRolefe3fe5ce-main", + "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/mediavaultLambdaRolefe3fe5ce-x", "Region": "us-east-1", - "Arn": "arn:aws:lambda:us-east-1:123456789012:function:thumbnailgen-main", - "Name": "thumbnailgen-main", - "LambdaExecutionRole": "mediavaultLambdaRolefe3fe5ce-main" + "Arn": "arn:aws:lambda:us-east-1:123456789012:function:thumbnailgen-x", + "Name": "thumbnailgen-x", + "LambdaExecutionRole": "mediavaultLambdaRolefe3fe5ce-x" }, "lastPushDirHash": "MCIFtnBrU9B5/8k3oUOw3xcrIso=" }, @@ -219,27 +219,27 @@ ] } ], - "lastBuildTimeStamp": "2026-03-08T14:51:21.657Z", + "lastBuildTimeStamp": "2026-04-15T03:50:33.791Z", "lastBuildType": "PROD", - "lastPackageTimeStamp": "2026-03-08T14:51:33.331Z", - "distZipFilename": "addusertogroup-75335545303076734834-build.zip", + "lastPackageTimeStamp": "2026-04-15T03:50:38.085Z", + "distZipFilename": "addusertogroup-374b6158625065387750-build.zip", "s3Bucket": { - "deploymentBucketName": "amplify-mediavault-main-61114-deployment", - "s3Key": "amplify-builds/addusertogroup-75335545303076734834-build.zip" + "deploymentBucketName": "amplify-mediavault-x-x-deployment", + "s3Key": "amplify-builds/addusertogroup-374b6158625065387750-build.zip" }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/function/addusertogroup-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/function/addusertogroup-cloudformation-template.json", "logicalId": "functionaddusertogroup" }, - "lastPushTimeStamp": "2026-03-08T14:56:48.425Z", + "lastPushTimeStamp": "2026-04-15T03:56:49.379Z", "output": { - "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/mediavaultLambdaRole7cc84196-main", + "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/mediavaultLambdaRole7cc84196-x", "Region": "us-east-1", - "Arn": "arn:aws:lambda:us-east-1:123456789012:function:addusertogroup-main", - "Name": "addusertogroup-main", - "LambdaExecutionRole": "mediavaultLambdaRole7cc84196-main" + "Arn": "arn:aws:lambda:us-east-1:123456789012:function:addusertogroup-x", + "Name": "addusertogroup-x", + "LambdaExecutionRole": "mediavaultLambdaRole7cc84196-x" }, - "lastPushDirHash": "2cztNkTtJknQAlYwuF/tARdhsYw=" + "lastPushDirHash": "iuOLzVHpo7Av1g7rltPhPXjkl4c=" }, "removeuserfromgroup": { "build": true, @@ -254,27 +254,27 @@ ] } ], - "lastBuildTimeStamp": "2026-03-08T14:51:39.348Z", + "lastBuildTimeStamp": "2026-04-15T03:50:40.390Z", "lastBuildType": "PROD", - "lastPackageTimeStamp": "2026-03-08T14:51:46.566Z", - "distZipFilename": "removeuserfromgroup-7a4c47616747764e436c-build.zip", + "lastPackageTimeStamp": "2026-04-15T03:50:43.599Z", + "distZipFilename": "removeuserfromgroup-6d6f39557861676c6c56-build.zip", "s3Bucket": { - "deploymentBucketName": "amplify-mediavault-main-61114-deployment", - "s3Key": "amplify-builds/removeuserfromgroup-7a4c47616747764e436c-build.zip" + "deploymentBucketName": "amplify-mediavault-x-x-deployment", + "s3Key": "amplify-builds/removeuserfromgroup-6d6f39557861676c6c56-build.zip" }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/function/removeuserfromgroup-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/function/removeuserfromgroup-cloudformation-template.json", "logicalId": "functionremoveuserfromgroup" }, - "lastPushTimeStamp": "2026-03-08T14:56:48.425Z", + "lastPushTimeStamp": "2026-04-15T03:56:49.379Z", "output": { - "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/mediavaultLambdaRoleeab71492-main", + "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/mediavaultLambdaRoleeab71492-x", "Region": "us-east-1", - "Arn": "arn:aws:lambda:us-east-1:123456789012:function:removeuserfromgroup-main", - "Name": "removeuserfromgroup-main", - "LambdaExecutionRole": "mediavaultLambdaRoleeab71492-main" + "Arn": "arn:aws:lambda:us-east-1:123456789012:function:removeuserfromgroup-x", + "Name": "removeuserfromgroup-x", + "LambdaExecutionRole": "mediavaultLambdaRoleeab71492-x" }, - "lastPushDirHash": "pbsv/8VfvBGo0DKSDeXe4+eqw1Y=" + "lastPushDirHash": "sC7yPu5krTxqMy13Ym6CshNDJpM=" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/cloudformation-template.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/cloudformation-template.json index 5af2459308f..d73af6d1cb5 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/cloudformation-template.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/cloudformation-template.json @@ -129,7 +129,7 @@ ] }, "Description": "graphql", - "Expires": 1781621508 + "Expires": 1784865044 } }, "GraphQLAPINONEDS95A13CF0": { @@ -356,7 +356,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" ] ] }, @@ -453,7 +453,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" ] ] }, @@ -496,7 +496,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" ] ] }, @@ -539,7 +539,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" ] ] }, @@ -582,7 +582,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" ] ] }, @@ -625,7 +625,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" ] ] }, @@ -753,4 +753,4 @@ } }, "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/parameters.json index 1ddce01cd04..7c796090a32 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/parameters.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/parameters.json @@ -8,6 +8,6 @@ "Outputs.UserPoolId" ] }, - "S3DeploymentBucket": "amplify-mediavault-main-61114-deployment", + "S3DeploymentBucket": "amplify-mediavault-x-x-deployment", "S3DeploymentRootKey": "amplify-appsync-files/a9caa2a9280aa728b448533b4b7827dcc2cbf238" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/AddUserToGroupResponse.message.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/AddUserToGroupResponse.message.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/AddUserToGroupResponse.message.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/AddUserToGroupResponse.message.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/AddUserToGroupResponse.message.res.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/AddUserToGroupResponse.message.res.vtl index 16ec362ea79..7c27c12d67a 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/AddUserToGroupResponse.message.res.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/AddUserToGroupResponse.message.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["message"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/AddUserToGroupResponse.statusCode.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/AddUserToGroupResponse.statusCode.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/AddUserToGroupResponse.statusCode.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/AddUserToGroupResponse.statusCode.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/AddUserToGroupResponse.statusCode.res.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/AddUserToGroupResponse.statusCode.res.vtl index 3271bf40378..4476158414f 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/AddUserToGroupResponse.statusCode.res.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/AddUserToGroupResponse.statusCode.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["statusCode"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/GenerateThumbnailResponse.message.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/GenerateThumbnailResponse.message.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/GenerateThumbnailResponse.message.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/GenerateThumbnailResponse.message.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/GenerateThumbnailResponse.message.res.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/GenerateThumbnailResponse.message.res.vtl index 16ec362ea79..7c27c12d67a 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/GenerateThumbnailResponse.message.res.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/GenerateThumbnailResponse.message.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["message"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/GenerateThumbnailResponse.statusCode.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/GenerateThumbnailResponse.statusCode.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/GenerateThumbnailResponse.statusCode.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/GenerateThumbnailResponse.statusCode.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/GenerateThumbnailResponse.statusCode.res.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/GenerateThumbnailResponse.statusCode.res.vtl index 3271bf40378..4476158414f 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/GenerateThumbnailResponse.statusCode.res.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/GenerateThumbnailResponse.statusCode.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["statusCode"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/InvokeAddusertogroupLambdaDataSource.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/InvokeAddusertogroupLambdaDataSource.req.vtl index bf296aad032..aa778e9e6b4 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/InvokeAddusertogroupLambdaDataSource.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/InvokeAddusertogroupLambdaDataSource.req.vtl @@ -12,4 +12,4 @@ "prev": $util.toJson($ctx.prev) } } -## [End] Invoke AWS Lambda data source: AddusertogroupLambdaDataSource. ** \ No newline at end of file +## [End] Invoke AWS Lambda data source: AddusertogroupLambdaDataSource. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/InvokeAddusertogroupLambdaDataSource.res.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/InvokeAddusertogroupLambdaDataSource.res.vtl index e6b83d8b6ab..1316903313e 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/InvokeAddusertogroupLambdaDataSource.res.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/InvokeAddusertogroupLambdaDataSource.res.vtl @@ -3,4 +3,4 @@ $util.error($ctx.error.message, $ctx.error.type) #end $util.toJson($ctx.result) -## [End] Handle error or return result. ** \ No newline at end of file +## [End] Handle error or return result. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/InvokeRemoveuserfromgroupLambdaDataSource.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/InvokeRemoveuserfromgroupLambdaDataSource.req.vtl index 9795aa51490..36a38b07a68 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/InvokeRemoveuserfromgroupLambdaDataSource.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/InvokeRemoveuserfromgroupLambdaDataSource.req.vtl @@ -12,4 +12,4 @@ "prev": $util.toJson($ctx.prev) } } -## [End] Invoke AWS Lambda data source: RemoveuserfromgroupLambdaDataSource. ** \ No newline at end of file +## [End] Invoke AWS Lambda data source: RemoveuserfromgroupLambdaDataSource. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/InvokeRemoveuserfromgroupLambdaDataSource.res.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/InvokeRemoveuserfromgroupLambdaDataSource.res.vtl index e6b83d8b6ab..1316903313e 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/InvokeRemoveuserfromgroupLambdaDataSource.res.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/InvokeRemoveuserfromgroupLambdaDataSource.res.vtl @@ -3,4 +3,4 @@ $util.error($ctx.error.message, $ctx.error.type) #end $util.toJson($ctx.result) -## [End] Handle error or return result. ** \ No newline at end of file +## [End] Handle error or return result. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/InvokeThumbnailgenLambdaDataSource.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/InvokeThumbnailgenLambdaDataSource.req.vtl index 62b13728dce..fb9f4fd4133 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/InvokeThumbnailgenLambdaDataSource.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/InvokeThumbnailgenLambdaDataSource.req.vtl @@ -12,4 +12,4 @@ "prev": $util.toJson($ctx.prev) } } -## [End] Invoke AWS Lambda data source: ThumbnailgenLambdaDataSource. ** \ No newline at end of file +## [End] Invoke AWS Lambda data source: ThumbnailgenLambdaDataSource. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/InvokeThumbnailgenLambdaDataSource.res.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/InvokeThumbnailgenLambdaDataSource.res.vtl index e6b83d8b6ab..1316903313e 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/InvokeThumbnailgenLambdaDataSource.res.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/InvokeThumbnailgenLambdaDataSource.res.vtl @@ -3,4 +3,4 @@ $util.error($ctx.error.message, $ctx.error.type) #end $util.toJson($ctx.result) -## [End] Handle error or return result. ** \ No newline at end of file +## [End] Handle error or return result. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.createNote.auth.1.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.createNote.auth.1.req.vtl index 4b1f80356a1..5a1ab2d54fb 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.createNote.auth.1.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.createNote.auth.1.req.vtl @@ -63,4 +63,4 @@ $util.unauthorized() #end #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.createNote.init.1.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.createNote.init.1.req.vtl index df6b4cbbc5c..407b5845fc2 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.createNote.init.1.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.createNote.init.1.req.vtl @@ -8,4 +8,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.createNote.postAuth.1.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.createNote.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.createNote.postAuth.1.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.createNote.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.createNote.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.createNote.req.vtl index 3a3db31141d..0269b9a7ff3 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.createNote.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.createNote.req.vtl @@ -63,4 +63,4 @@ $util.qr($mergedValues.put("__typename", "Note")) $util.qr($PutObject.put("key", $Key)) #end $util.toJson($PutObject) -## [End] Create Request template. ** \ No newline at end of file +## [End] Create Request template. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.createNote.res.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.createNote.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.createNote.res.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.createNote.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.deleteNote.auth.1.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.deleteNote.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.deleteNote.auth.1.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.deleteNote.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.deleteNote.auth.1.res.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.deleteNote.auth.1.res.vtl index 6c6b9fc7057..f5071bf5fa2 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.deleteNote.auth.1.res.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.deleteNote.auth.1.res.vtl @@ -34,4 +34,4 @@ $util.unauthorized() $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.deleteNote.postAuth.1.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.deleteNote.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.deleteNote.postAuth.1.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.deleteNote.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.deleteNote.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.deleteNote.req.vtl index ace459bd501..d2cb40cd15d 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.deleteNote.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.deleteNote.req.vtl @@ -55,4 +55,4 @@ $util.qr($DeleteRequest.put("key", $Key)) $util.qr($DeleteRequest.put("condition", $Conditions)) #end $util.toJson($DeleteRequest) -## [End] Delete Request template. ** \ No newline at end of file +## [End] Delete Request template. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.deleteNote.res.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.deleteNote.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.deleteNote.res.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.deleteNote.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.updateNote.auth.1.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.updateNote.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.updateNote.auth.1.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.updateNote.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.updateNote.auth.1.res.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.updateNote.auth.1.res.vtl index 0792a9c4494..118d9a325a6 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.updateNote.auth.1.res.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.updateNote.auth.1.res.vtl @@ -67,4 +67,4 @@ $util.unauthorized() $util.error("Unauthorized on ${deniedFields.keySet()}", "Unauthorized") #end $util.toJson({}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.updateNote.init.1.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.updateNote.init.1.req.vtl index ab5766fb051..dde2512aea8 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.updateNote.init.1.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.updateNote.init.1.req.vtl @@ -6,4 +6,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.updateNote.postAuth.1.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.updateNote.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.updateNote.postAuth.1.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.updateNote.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.updateNote.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.updateNote.req.vtl index a1bd67d21b6..648b67d7c57 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.updateNote.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.updateNote.req.vtl @@ -127,4 +127,4 @@ $util.qr($update.put("expression", "$expression")) $util.qr($UpdateItem.put("condition", $Conditions)) #end $util.toJson($UpdateItem) -## [End] Mutation Update resolver. ** \ No newline at end of file +## [End] Mutation Update resolver. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.updateNote.res.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.updateNote.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.updateNote.res.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Mutation.updateNote.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Note.owner.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Note.owner.req.vtl index 1aae0961a3e..a9c5efa2bb8 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Note.owner.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Note.owner.req.vtl @@ -1 +1 @@ -$util.toJson({"version":"2018-05-29","payload":{}}) \ No newline at end of file +$util.toJson({"version":"2018-05-29","payload":{}}) diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Note.owner.res.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Note.owner.res.vtl index c6de7a4f2cf..0552e7005c8 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Note.owner.res.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Note.owner.res.vtl @@ -17,4 +17,4 @@ $util.qr($ctx.source.put("owner", $ownerEntitiesLast)) $util.toJson($ctx.source.owner) #end -## [End] Parse owner field auth for Get. ** \ No newline at end of file +## [End] Parse owner field auth for Get. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.addUserToGroup.auth.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.addUserToGroup.auth.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.addUserToGroup.auth.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.addUserToGroup.auth.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.addUserToGroup.res.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.addUserToGroup.res.vtl index 634741579ce..c37b82e4a30 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.addUserToGroup.res.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.addUserToGroup.res.vtl @@ -1 +1 @@ -$util.toJson($ctx.prev.result) \ No newline at end of file +$util.toJson($ctx.prev.result) diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.generateThumbnail.auth.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.generateThumbnail.auth.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.generateThumbnail.auth.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.generateThumbnail.auth.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.generateThumbnail.res.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.generateThumbnail.res.vtl index 634741579ce..c37b82e4a30 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.generateThumbnail.res.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.generateThumbnail.res.vtl @@ -1 +1 @@ -$util.toJson($ctx.prev.result) \ No newline at end of file +$util.toJson($ctx.prev.result) diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.getNote.auth.1.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.getNote.auth.1.req.vtl index 27bf183c353..32d5fe7fff7 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.getNote.auth.1.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.getNote.auth.1.req.vtl @@ -43,4 +43,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.getNote.postAuth.1.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.getNote.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.getNote.postAuth.1.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.getNote.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.getNote.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.getNote.req.vtl index a8d7811a021..fd7fbfc8013 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.getNote.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.getNote.req.vtl @@ -31,4 +31,4 @@ $util.qr($GetRequest.put("query", $query)) $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) #end $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.getNote.res.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.getNote.res.vtl index e9ef1436bdd..92e05f99816 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.getNote.res.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.getNote.res.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson(null) #end -## [End] Get Response template. ** \ No newline at end of file +## [End] Get Response template. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.listNotes.auth.1.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.listNotes.auth.1.req.vtl index 27bf183c353..32d5fe7fff7 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.listNotes.auth.1.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.listNotes.auth.1.req.vtl @@ -43,4 +43,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.listNotes.postAuth.1.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.listNotes.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.listNotes.postAuth.1.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.listNotes.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.listNotes.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.listNotes.req.vtl index 014213710e8..ef976126825 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.listNotes.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.listNotes.req.vtl @@ -47,4 +47,4 @@ #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) #end $util.toJson($ListRequest) -## [End] List Request. ** \ No newline at end of file +## [End] List Request. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.listNotes.res.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.listNotes.res.vtl index ee8b6670cbc..aab9983954e 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.listNotes.res.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.listNotes.res.vtl @@ -4,4 +4,4 @@ #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.removeUserFromGroup.auth.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.removeUserFromGroup.auth.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.removeUserFromGroup.auth.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.removeUserFromGroup.auth.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.removeUserFromGroup.res.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.removeUserFromGroup.res.vtl index 634741579ce..c37b82e4a30 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.removeUserFromGroup.res.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Query.removeUserFromGroup.res.vtl @@ -1 +1 @@ -$util.toJson($ctx.prev.result) \ No newline at end of file +$util.toJson($ctx.prev.result) diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/RemoveUserFromGroupResponse.message.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/RemoveUserFromGroupResponse.message.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/RemoveUserFromGroupResponse.message.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/RemoveUserFromGroupResponse.message.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/RemoveUserFromGroupResponse.message.res.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/RemoveUserFromGroupResponse.message.res.vtl index 16ec362ea79..7c27c12d67a 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/RemoveUserFromGroupResponse.message.res.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/RemoveUserFromGroupResponse.message.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["message"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/RemoveUserFromGroupResponse.statusCode.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/RemoveUserFromGroupResponse.statusCode.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/RemoveUserFromGroupResponse.statusCode.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/RemoveUserFromGroupResponse.statusCode.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/RemoveUserFromGroupResponse.statusCode.res.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/RemoveUserFromGroupResponse.statusCode.res.vtl index 3271bf40378..4476158414f 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/RemoveUserFromGroupResponse.statusCode.res.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/RemoveUserFromGroupResponse.statusCode.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["statusCode"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onCreateNote.auth.1.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onCreateNote.auth.1.req.vtl index eb409927469..34fab83a82f 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onCreateNote.auth.1.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onCreateNote.auth.1.req.vtl @@ -63,4 +63,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onCreateNote.postAuth.1.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onCreateNote.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onCreateNote.postAuth.1.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onCreateNote.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onCreateNote.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onCreateNote.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onCreateNote.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onCreateNote.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onCreateNote.res.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onCreateNote.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onCreateNote.res.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onCreateNote.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onDeleteNote.auth.1.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onDeleteNote.auth.1.req.vtl index eb409927469..34fab83a82f 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onDeleteNote.auth.1.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onDeleteNote.auth.1.req.vtl @@ -63,4 +63,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onDeleteNote.postAuth.1.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onDeleteNote.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onDeleteNote.postAuth.1.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onDeleteNote.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onDeleteNote.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onDeleteNote.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onDeleteNote.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onDeleteNote.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onDeleteNote.res.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onDeleteNote.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onDeleteNote.res.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onDeleteNote.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onUpdateNote.auth.1.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onUpdateNote.auth.1.req.vtl index eb409927469..34fab83a82f 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onUpdateNote.auth.1.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onUpdateNote.auth.1.req.vtl @@ -63,4 +63,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onUpdateNote.postAuth.1.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onUpdateNote.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onUpdateNote.postAuth.1.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onUpdateNote.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onUpdateNote.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onUpdateNote.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onUpdateNote.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onUpdateNote.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onUpdateNote.res.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onUpdateNote.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onUpdateNote.res.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/resolvers/Subscription.onUpdateNote.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/stacks/CustomResources.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/stacks/CustomResources.json index 016991278d0..5fe357d6096 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/stacks/CustomResources.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/stacks/CustomResources.json @@ -58,4 +58,4 @@ "Value": "" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/stacks/FunctionDirectiveStack.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/stacks/FunctionDirectiveStack.json index 0788f027e98..f9333ca14d3 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/stacks/FunctionDirectiveStack.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/stacks/FunctionDirectiveStack.json @@ -706,4 +706,4 @@ "Type": "String" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/stacks/Note.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/stacks/Note.json index ebc15356165..3e11eb03bab 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/stacks/Note.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/build/stacks/Note.json @@ -503,7 +503,7 @@ { "Ref": "NoteTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" ] ] }, @@ -604,7 +604,7 @@ { "Ref": "NoteTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" ] ] }, @@ -771,7 +771,7 @@ { "Ref": "NoteTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" ] ] }, @@ -959,7 +959,7 @@ { "Ref": "NoteTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" ] ] }, @@ -1111,7 +1111,7 @@ { "Ref": "NoteTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" ] ] }, @@ -1232,7 +1232,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" ] ] }, @@ -1278,7 +1278,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" ] ] }, @@ -1324,7 +1324,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" ] ] }, @@ -1403,7 +1403,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" ] ] }, @@ -1477,4 +1477,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/cli-inputs.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/cli-inputs.json index 534802ee8c5..808378c20f6 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/cli-inputs.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/cli-inputs.json @@ -16,4 +16,4 @@ } ] } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/parameters.json index 59e4587d272..d9b76a57cbf 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/parameters.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/parameters.json @@ -8,4 +8,4 @@ "Outputs.UserPoolId" ] } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/resolvers/README.md b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/resolvers/README.md index 89e564c5b31..1634d295144 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/resolvers/README.md +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/resolvers/README.md @@ -1,2 +1,2 @@ Any resolvers that you add in this directory will override the ones automatically generated by Amplify CLI and will be directly copied to the cloud. -For more information, visit [https://docs.amplify.aws/cli/graphql-transformer/resolvers](https://docs.amplify.aws/cli/graphql-transformer/resolvers) \ No newline at end of file +For more information, visit [https://docs.amplify.aws/cli/graphql-transformer/resolvers](https://docs.amplify.aws/cli/graphql-transformer/resolvers) diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/transform.conf.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/transform.conf.json index 98e1e19f038..d0421b1df09 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/transform.conf.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/api/mediavault/transform.conf.json @@ -1,4 +1,4 @@ { "Version": 5, "ElasticsearchWarning": true -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/mediavault1f08412d/build/mediavault1f08412d-cloudformation-template.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/mediavault1f08412d/build/mediavault1f08412d-cloudformation-template.json index 235d2d79e8e..9d767fca8a5 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/mediavault1f08412d/build/mediavault1f08412d-cloudformation-template.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/mediavault1f08412d/build/mediavault1f08412d-cloudformation-template.json @@ -861,4 +861,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/mediavault1f08412d/build/parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/mediavault1f08412d/build/parameters.json index 14367e2b588..03cf0498d07 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/mediavault1f08412d/build/parameters.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/mediavault1f08412d/build/parameters.json @@ -67,4 +67,4 @@ "breakCircularDependency": true, "dependsOn": [], "oAuthMetadata": "{\"AllowedOAuthFlows\":[\"code\"],\"AllowedOAuthScopes\":[\"phone\",\"email\",\"openid\",\"profile\",\"aws.cognito.signin.user.admin\"],\"CallbackURLs\":[\"https://main.mediavault.amplifyapp.com/\"],\"LogoutURLs\":[\"https://main.mediavault.amplifyapp.com/\"]}" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/mediavault1f08412d/cli-inputs.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/mediavault1f08412d/cli-inputs.json index ccbdb4c6c78..f7998d80947 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/mediavault1f08412d/cli-inputs.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/mediavault1f08412d/cli-inputs.json @@ -70,4 +70,4 @@ "dependsOn": [], "oAuthMetadata": "{\"AllowedOAuthFlows\":[\"code\"],\"AllowedOAuthScopes\":[\"phone\",\"email\",\"openid\",\"profile\",\"aws.cognito.signin.user.admin\"],\"CallbackURLs\":[\"https://main.mediavault.amplifyapp.com/\"],\"LogoutURLs\":[\"https://main.mediavault.amplifyapp.com/\"]}" } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/userPoolGroups/build/parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/userPoolGroups/build/parameters.json index 48115bd5cd6..2221b374f62 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/userPoolGroups/build/parameters.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/userPoolGroups/build/parameters.json @@ -11,4 +11,4 @@ "Arn" ] } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json index d045357747b..0476fd1c24a 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json @@ -170,4 +170,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/userPoolGroups/user-pool-group-precedence.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/userPoolGroups/user-pool-group-precedence.json index 2f0db950bfd..33dc94b23d3 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/userPoolGroups/user-pool-group-precedence.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/userPoolGroups/user-pool-group-precedence.json @@ -7,4 +7,4 @@ "groupName": "Basic", "precedence": 2 } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/mediavault/build/cloudformation-template.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/mediavault/build/cloudformation-template.json index 5af2459308f..d73af6d1cb5 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/mediavault/build/cloudformation-template.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/mediavault/build/cloudformation-template.json @@ -129,7 +129,7 @@ ] }, "Description": "graphql", - "Expires": 1781621508 + "Expires": 1784865044 } }, "GraphQLAPINONEDS95A13CF0": { @@ -356,7 +356,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" ] ] }, @@ -453,7 +453,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" ] ] }, @@ -496,7 +496,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" ] ] }, @@ -539,7 +539,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" ] ] }, @@ -582,7 +582,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" ] ] }, @@ -625,7 +625,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" ] ] }, @@ -753,4 +753,4 @@ } }, "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/mediavault1f08412d/build/mediavault1f08412d-cloudformation-template.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/mediavault1f08412d/build/mediavault1f08412d-cloudformation-template.json index 235d2d79e8e..9d767fca8a5 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/mediavault1f08412d/build/mediavault1f08412d-cloudformation-template.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/mediavault1f08412d/build/mediavault1f08412d-cloudformation-template.json @@ -861,4 +861,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json index d045357747b..0476fd1c24a 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json @@ -170,4 +170,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json index 8976e035f8b..7d3adea2b65 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json @@ -202,7 +202,7 @@ "authmediavault1f08412d": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/auth/mediavault1f08412d-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/auth/mediavault1f08412d-cloudformation-template.json", "Parameters": { "identityPoolName": "mediavault1f08412d_identitypool_1f08412d", "allowUnauthenticatedIdentities": true, @@ -254,15 +254,15 @@ "breakCircularDependency": true, "dependsOn": "", "oAuthMetadata": "{\"AllowedOAuthFlows\":[\"code\"],\"AllowedOAuthScopes\":[\"phone\",\"email\",\"openid\",\"profile\",\"aws.cognito.signin.user.admin\"],\"CallbackURLs\":[\"https://main.mediavault.amplifyapp.com/\"],\"LogoutURLs\":[\"https://main.mediavault.amplifyapp.com/\"]}", - "hostedUIProviderCreds": "[{\"ProviderName\":\"Facebook\",\"client_id\":\"SECRET\",\"client_secret\":\"SECRET\"},{\"ProviderName\":\"Google\",\"client_id\":\"SECRET\",\"client_secret\":\"SECRET\"}]", - "env": "main" + "hostedUIProviderCreds": "[{\"ProviderName\":\"Facebook\",\"client_id\":\"dummy-facebook-id\",\"client_secret\":\"dummy-facebook-secret\"},{\"ProviderName\":\"Google\",\"client_id\":\"dummy-google-id\",\"client_secret\":\"dummy-google-secret\"}]", + "env": "x" } } }, "authuserPoolGroups": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", "Parameters": { "AuthRoleArn": { "Fn::GetAtt": [ @@ -300,14 +300,14 @@ "Outputs.IdentityPoolId" ] }, - "env": "main" + "env": "x" } } }, "apimediavault": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", "Parameters": { "AppSyncApiName": "mediavault", "DynamoDBBillingMode": "PAY_PER_REQUEST", @@ -318,16 +318,16 @@ "Outputs.UserPoolId" ] }, - "S3DeploymentBucket": "amplify-mediavault-main-61114-deployment", + "S3DeploymentBucket": "amplify-mediavault-x-x-deployment", "S3DeploymentRootKey": "amplify-appsync-files/a9caa2a9280aa728b448533b4b7827dcc2cbf238", - "env": "main" + "env": "x" } } }, "storagemediavault": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/storage/cloudformation-template.json", "Parameters": { "bucketName": "mediavaultb574f210f1634e3a8d1934f263da5bed", "selectedGuestPermissions": "s3:GetObject,s3:ListBucket", @@ -371,16 +371,16 @@ "Outputs.BasicGroupRole" ] }, - "env": "main" + "env": "x" } } }, "functionthumbnailgen": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/function/thumbnailgen-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/function/thumbnailgen-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-mediavault-main-61114-deployment", + "deploymentBucketName": "amplify-mediavault-x-x-deployment", "s3Key": "amplify-builds/thumbnailgen-714677357a74314e2b59-build.zip", "storagemediavaultBucketName": { "Fn::GetAtt": [ @@ -388,41 +388,41 @@ "Outputs.BucketName" ] }, - "env": "main" + "env": "x" } } }, "functionaddusertogroup": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/function/addusertogroup-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/function/addusertogroup-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-mediavault-main-61114-deployment", - "s3Key": "amplify-builds/addusertogroup-75335545303076734834-build.zip", + "deploymentBucketName": "amplify-mediavault-x-x-deployment", + "s3Key": "amplify-builds/addusertogroup-374b6158625065387750-build.zip", "authmediavault1f08412dUserPoolId": { "Fn::GetAtt": [ "authmediavault1f08412d", "Outputs.UserPoolId" ] }, - "env": "main" + "env": "x" } } }, "functionremoveuserfromgroup": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/function/removeuserfromgroup-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/function/removeuserfromgroup-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-mediavault-main-61114-deployment", - "s3Key": "amplify-builds/removeuserfromgroup-7a4c47616747764e436c-build.zip", + "deploymentBucketName": "amplify-mediavault-x-x-deployment", + "s3Key": "amplify-builds/removeuserfromgroup-6d6f39557861676c6c56-build.zip", "authmediavault1f08412dUserPoolId": { "Fn::GetAtt": [ "authmediavault1f08412d", "Outputs.UserPoolId" ] }, - "env": "main" + "env": "x" } } }, @@ -630,4 +630,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/addusertogroup/addusertogroup-cloudformation-template.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/addusertogroup/addusertogroup-cloudformation-template.json index 8ab3b9d193f..b4b96ba02fb 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/addusertogroup/addusertogroup-cloudformation-template.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/addusertogroup/addusertogroup-cloudformation-template.json @@ -332,4 +332,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/removeuserfromgroup/removeuserfromgroup-cloudformation-template.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/removeuserfromgroup/removeuserfromgroup-cloudformation-template.json index 13cd802aa70..eae4e1d0ff8 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/removeuserfromgroup/removeuserfromgroup-cloudformation-template.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/removeuserfromgroup/removeuserfromgroup-cloudformation-template.json @@ -332,4 +332,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/thumbnailgen/thumbnailgen-cloudformation-template.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/thumbnailgen/thumbnailgen-cloudformation-template.json index f4328f59487..20b4ca8a188 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/thumbnailgen/thumbnailgen-cloudformation-template.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/thumbnailgen/thumbnailgen-cloudformation-template.json @@ -264,4 +264,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json index 8976e035f8b..7d3adea2b65 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json @@ -202,7 +202,7 @@ "authmediavault1f08412d": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/auth/mediavault1f08412d-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/auth/mediavault1f08412d-cloudformation-template.json", "Parameters": { "identityPoolName": "mediavault1f08412d_identitypool_1f08412d", "allowUnauthenticatedIdentities": true, @@ -254,15 +254,15 @@ "breakCircularDependency": true, "dependsOn": "", "oAuthMetadata": "{\"AllowedOAuthFlows\":[\"code\"],\"AllowedOAuthScopes\":[\"phone\",\"email\",\"openid\",\"profile\",\"aws.cognito.signin.user.admin\"],\"CallbackURLs\":[\"https://main.mediavault.amplifyapp.com/\"],\"LogoutURLs\":[\"https://main.mediavault.amplifyapp.com/\"]}", - "hostedUIProviderCreds": "[{\"ProviderName\":\"Facebook\",\"client_id\":\"SECRET\",\"client_secret\":\"SECRET\"},{\"ProviderName\":\"Google\",\"client_id\":\"SECRET\",\"client_secret\":\"SECRET\"}]", - "env": "main" + "hostedUIProviderCreds": "[{\"ProviderName\":\"Facebook\",\"client_id\":\"dummy-facebook-id\",\"client_secret\":\"dummy-facebook-secret\"},{\"ProviderName\":\"Google\",\"client_id\":\"dummy-google-id\",\"client_secret\":\"dummy-google-secret\"}]", + "env": "x" } } }, "authuserPoolGroups": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", "Parameters": { "AuthRoleArn": { "Fn::GetAtt": [ @@ -300,14 +300,14 @@ "Outputs.IdentityPoolId" ] }, - "env": "main" + "env": "x" } } }, "apimediavault": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", "Parameters": { "AppSyncApiName": "mediavault", "DynamoDBBillingMode": "PAY_PER_REQUEST", @@ -318,16 +318,16 @@ "Outputs.UserPoolId" ] }, - "S3DeploymentBucket": "amplify-mediavault-main-61114-deployment", + "S3DeploymentBucket": "amplify-mediavault-x-x-deployment", "S3DeploymentRootKey": "amplify-appsync-files/a9caa2a9280aa728b448533b4b7827dcc2cbf238", - "env": "main" + "env": "x" } } }, "storagemediavault": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/storage/cloudformation-template.json", "Parameters": { "bucketName": "mediavaultb574f210f1634e3a8d1934f263da5bed", "selectedGuestPermissions": "s3:GetObject,s3:ListBucket", @@ -371,16 +371,16 @@ "Outputs.BasicGroupRole" ] }, - "env": "main" + "env": "x" } } }, "functionthumbnailgen": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/function/thumbnailgen-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/function/thumbnailgen-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-mediavault-main-61114-deployment", + "deploymentBucketName": "amplify-mediavault-x-x-deployment", "s3Key": "amplify-builds/thumbnailgen-714677357a74314e2b59-build.zip", "storagemediavaultBucketName": { "Fn::GetAtt": [ @@ -388,41 +388,41 @@ "Outputs.BucketName" ] }, - "env": "main" + "env": "x" } } }, "functionaddusertogroup": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/function/addusertogroup-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/function/addusertogroup-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-mediavault-main-61114-deployment", - "s3Key": "amplify-builds/addusertogroup-75335545303076734834-build.zip", + "deploymentBucketName": "amplify-mediavault-x-x-deployment", + "s3Key": "amplify-builds/addusertogroup-374b6158625065387750-build.zip", "authmediavault1f08412dUserPoolId": { "Fn::GetAtt": [ "authmediavault1f08412d", "Outputs.UserPoolId" ] }, - "env": "main" + "env": "x" } } }, "functionremoveuserfromgroup": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/function/removeuserfromgroup-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/function/removeuserfromgroup-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-mediavault-main-61114-deployment", - "s3Key": "amplify-builds/removeuserfromgroup-7a4c47616747764e436c-build.zip", + "deploymentBucketName": "amplify-mediavault-x-x-deployment", + "s3Key": "amplify-builds/removeuserfromgroup-6d6f39557861676c6c56-build.zip", "authmediavault1f08412dUserPoolId": { "Fn::GetAtt": [ "authmediavault1f08412d", "Outputs.UserPoolId" ] }, - "env": "main" + "env": "x" } } }, @@ -630,4 +630,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/storage/mediavault/build/cloudformation-template.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/storage/mediavault/build/cloudformation-template.json index a3b0f956240..012547ef61b 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/storage/mediavault/build/cloudformation-template.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/storage/mediavault/build/cloudformation-template.json @@ -773,4 +773,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json index 1a1832671d5..64d36522b78 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json @@ -205,4 +205,4 @@ "service": "S3" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/addusertogroup/addusertogroup-cloudformation-template.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/addusertogroup/addusertogroup-cloudformation-template.json index 8ab3b9d193f..b4b96ba02fb 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/addusertogroup/addusertogroup-cloudformation-template.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/addusertogroup/addusertogroup-cloudformation-template.json @@ -332,4 +332,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/addusertogroup/amplify.state b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/addusertogroup/amplify.state index 045e649ff86..f4f664b5257 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/addusertogroup/amplify.state +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/addusertogroup/amplify.state @@ -6,4 +6,4 @@ "scripts": { "build": "npm install --no-bin-links --production" } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/addusertogroup/custom-policies.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/addusertogroup/custom-policies.json index 528c94f2f26..1f21c530082 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/addusertogroup/custom-policies.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/addusertogroup/custom-policies.json @@ -3,4 +3,4 @@ "Action": [], "Resource": [] } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/addusertogroup/function-parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/addusertogroup/function-parameters.json index b4c696e530b..1b781591637 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/addusertogroup/function-parameters.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/addusertogroup/function-parameters.json @@ -10,4 +10,4 @@ } }, "lambdaLayers": [] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/addusertogroup/parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/addusertogroup/parameters.json index 9e26dfeeb6e..0967ef424bc 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/addusertogroup/parameters.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/addusertogroup/parameters.json @@ -1 +1 @@ -{} \ No newline at end of file +{} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/removeuserfromgroup/amplify.state b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/removeuserfromgroup/amplify.state index 045e649ff86..f4f664b5257 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/removeuserfromgroup/amplify.state +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/removeuserfromgroup/amplify.state @@ -6,4 +6,4 @@ "scripts": { "build": "npm install --no-bin-links --production" } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/removeuserfromgroup/custom-policies.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/removeuserfromgroup/custom-policies.json index 528c94f2f26..1f21c530082 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/removeuserfromgroup/custom-policies.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/removeuserfromgroup/custom-policies.json @@ -3,4 +3,4 @@ "Action": [], "Resource": [] } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/removeuserfromgroup/function-parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/removeuserfromgroup/function-parameters.json index b4c696e530b..1b781591637 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/removeuserfromgroup/function-parameters.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/removeuserfromgroup/function-parameters.json @@ -10,4 +10,4 @@ } }, "lambdaLayers": [] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/removeuserfromgroup/parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/removeuserfromgroup/parameters.json index 9e26dfeeb6e..0967ef424bc 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/removeuserfromgroup/parameters.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/removeuserfromgroup/parameters.json @@ -1 +1 @@ -{} \ No newline at end of file +{} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/removeuserfromgroup/removeuserfromgroup-cloudformation-template.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/removeuserfromgroup/removeuserfromgroup-cloudformation-template.json index 13cd802aa70..eae4e1d0ff8 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/removeuserfromgroup/removeuserfromgroup-cloudformation-template.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/removeuserfromgroup/removeuserfromgroup-cloudformation-template.json @@ -332,4 +332,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/thumbnailgen/amplify.state b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/thumbnailgen/amplify.state index 045e649ff86..f4f664b5257 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/thumbnailgen/amplify.state +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/thumbnailgen/amplify.state @@ -6,4 +6,4 @@ "scripts": { "build": "npm install --no-bin-links --production" } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/thumbnailgen/custom-policies.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/thumbnailgen/custom-policies.json index 528c94f2f26..1f21c530082 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/thumbnailgen/custom-policies.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/thumbnailgen/custom-policies.json @@ -3,4 +3,4 @@ "Action": [], "Resource": [] } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/thumbnailgen/function-parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/thumbnailgen/function-parameters.json index 0d2f49db7df..e9104d17080 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/thumbnailgen/function-parameters.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/thumbnailgen/function-parameters.json @@ -10,4 +10,4 @@ } }, "lambdaLayers": [] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/thumbnailgen/parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/thumbnailgen/parameters.json index 9e26dfeeb6e..0967ef424bc 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/thumbnailgen/parameters.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/thumbnailgen/parameters.json @@ -1 +1 @@ -{} \ No newline at end of file +{} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/thumbnailgen/thumbnailgen-cloudformation-template.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/thumbnailgen/thumbnailgen-cloudformation-template.json index f4328f59487..20b4ca8a188 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/thumbnailgen/thumbnailgen-cloudformation-template.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/function/thumbnailgen/thumbnailgen-cloudformation-template.json @@ -264,4 +264,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/mediavault/build/cloudformation-template.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/mediavault/build/cloudformation-template.json index 1e9a99e9dfe..94abbcdd1c3 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/mediavault/build/cloudformation-template.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/mediavault/build/cloudformation-template.json @@ -764,4 +764,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/mediavault/build/parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/mediavault/build/parameters.json index 9ee8414461e..682df12098d 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/mediavault/build/parameters.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/mediavault/build/parameters.json @@ -31,4 +31,4 @@ "s3PermissionsAuthenticatedUploads": "s3:PutObject", "s3PermissionsGuestPublic": "s3:GetObject", "s3PermissionsGuestUploads": "DISALLOW" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/mediavault/cli-inputs.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/mediavault/cli-inputs.json index 8d147732780..cc909996496 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/mediavault/cli-inputs.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/mediavault/cli-inputs.json @@ -22,4 +22,4 @@ "READ" ] } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/tags.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/tags.json index b9321d71b83..71f6abe11a6 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/tags.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/#current-cloud-backend/tags.json @@ -7,4 +7,4 @@ "Key": "user:Application", "Value": "{project-name}" } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/.config/project-config.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/.config/project-config.json index 0d387e8f19b..b5f42a89346 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/.config/project-config.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/.config/project-config.json @@ -8,11 +8,11 @@ "config": { "SourceDir": "src", "DistributionDir": "dist", - "BuildCommand": "npm run-script build", + "BuildCommand": "npm run build", "StartCommand": "npm run-script start" } }, "providers": [ "awscloudformation" ] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/amplify-meta.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/amplify-meta.json index c811227e343..9ae03f933b2 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/amplify-meta.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/amplify-meta.json @@ -1,14 +1,14 @@ { "providers": { "awscloudformation": { - "AuthRoleName": "amplify-mediavault-main-61114-authRole", - "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-mediavault-main-61114-unauthRole", - "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-mediavault-main-61114-authRole", + "AuthRoleName": "amplify-mediavault-x-x-authRole", + "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-mediavault-x-x-unauthRole", + "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-mediavault-x-x-authRole", "Region": "us-east-1", - "DeploymentBucketName": "amplify-mediavault-main-61114-deployment", - "UnauthRoleName": "amplify-mediavault-main-61114-unauthRole", - "StackName": "amplify-mediavault-main-61114", - "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-mediavault-main-61114/fdd16cb0-1afb-11f1-aa46-12a754d266f9", + "DeploymentBucketName": "amplify-mediavault-x-x-deployment", + "UnauthRoleName": "amplify-mediavault-x-x-unauthRole", + "StackName": "amplify-mediavault-x-x", + "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-mediavault-x-x/108480f0-387e-11f1-8e28-0ea5af7cf5ad", "AmplifyAppId": "mediavault" } }, @@ -42,23 +42,23 @@ "EMAIL" ] }, - "lastPushTimeStamp": "2026-03-08T14:56:48.425Z", + "lastPushTimeStamp": "2026-04-15T03:56:49.379Z", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/auth/mediavault1f08412d-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/auth/mediavault1f08412d-cloudformation-template.json", "logicalId": "authmediavault1f08412d" }, "output": { - "UserPoolId": "us-east-1_gekM9OHb7", - "AppClientIDWeb": "1hq2dgt1ct4f6b812o4ell2b4u", - "AppClientID": "74dj0ooish8us4g47hk169p8jq", - "HostedUIDomain": "mediavault1f08412d-1f08412d-main", - "IdentityPoolId": "us-east-1:f09a0373-df13-49a1-a865-247f1908a6a1", - "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_gekM9OHb7", - "IdentityPoolName": "mediavault1f08412d_identitypool_1f08412d__main", + "UserPoolId": "us-east-1_baREhKWox", + "AppClientIDWeb": "2pfv0bgj28j0f7mdi2u06kdggv", + "AppClientID": "60ue3s3252ikds42onj76mjnh4", + "HostedUIDomain": "mediavault1f08412d-1f08412d-x", + "IdentityPoolId": "us-east-1:7f08778b-539e-436f-aaed-39d08e6d137d", + "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_baREhKWox", + "IdentityPoolName": "mediavault1f08412d_identitypool_1f08412d__x", "OAuthMetadata": "{\"AllowedOAuthFlows\":[\"code\"],\"AllowedOAuthScopes\":[\"phone\",\"email\",\"openid\",\"profile\",\"aws.cognito.signin.user.admin\"],\"CallbackURLs\":[\"https://main.mediavault.amplifyapp.com/\"],\"LogoutURLs\":[\"https://main.mediavault.amplifyapp.com/\"]}", "UserPoolName": "mediavault1f08412d_userpool_1f08412d" }, - "lastPushDirHash": "AwgYGHx+9uNagQUFkaFFMHBwgGg=" + "lastPushDirHash": "Ma5IJfCl/E9H5S23vZFAwLGSH30=" }, "userPoolGroups": { "service": "Cognito-UserPool-Groups", @@ -75,14 +75,14 @@ ] } ], - "lastPushTimeStamp": "2026-03-08T14:56:48.425Z", + "lastPushTimeStamp": "2026-04-15T03:56:49.379Z", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", "logicalId": "authuserPoolGroups" }, "output": { - "BasicGroupRole": "arn:aws:iam::123456789012:role/us-east-1_gekM9OHb7-BasicGroupRole", - "AdminGroupRole": "arn:aws:iam::123456789012:role/us-east-1_gekM9OHb7-AdminGroupRole" + "BasicGroupRole": "arn:aws:iam::123456789012:role/us-east-1_baREhKWox-BasicGroupRole", + "AdminGroupRole": "arn:aws:iam::123456789012:role/us-east-1_baREhKWox-AdminGroupRole" }, "lastPushDirHash": "YX53bt9uz7MT/9eaBZUPoOBEDvI=" } @@ -119,15 +119,15 @@ } ] }, - "GraphQLAPIIdOutput": "5aahjbxypzan3jqab7lbquus4m", - "GraphQLAPIEndpointOutput": "https://xv5mtuvvgfayvlmjoe2b6zm2gq.appsync-api.us-east-1.amazonaws.com/graphql", + "GraphQLAPIIdOutput": "m35dk4nrcna2hiz267tsvgu77y", + "GraphQLAPIEndpointOutput": "https://g5z2setogbflfexkd3i54nriqi.appsync-api.us-east-1.amazonaws.com/graphql", "GraphQLAPIKeyOutput": "da2-fakeapikey00000000000000" }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", "logicalId": "apimediavault" }, - "lastPushTimeStamp": "2026-03-08T14:56:48.425Z", + "lastPushTimeStamp": "2026-04-15T03:56:49.379Z", "lastPushDirHash": "vzO8uBmw3cyRXSizS8VkfIw+/TI=" } }, @@ -158,13 +158,13 @@ ] } ], - "lastPushTimeStamp": "2026-03-08T14:56:48.425Z", + "lastPushTimeStamp": "2026-04-15T03:56:49.379Z", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/storage/cloudformation-template.json", "logicalId": "storagemediavault" }, "output": { - "BucketName": "mediavaultb574f210f1634e3a8d1934f263da5bed61114-main", + "BucketName": "mediavaultb574f210f1634e3a8d1934f263da5bedx-x", "Region": "us-east-1" }, "lastPushDirHash": "o0jh/VhjpuADeT4UovxNATt4O5k=" @@ -184,25 +184,25 @@ ] } ], - "lastBuildTimeStamp": "2026-03-08T14:51:17.150Z", + "lastBuildTimeStamp": "2026-04-15T03:50:30.602Z", "lastBuildType": "PROD", - "lastPackageTimeStamp": "2026-03-08T14:51:17.208Z", + "lastPackageTimeStamp": "2026-04-15T03:50:30.655Z", "distZipFilename": "thumbnailgen-714677357a74314e2b59-build.zip", "s3Bucket": { - "deploymentBucketName": "amplify-mediavault-main-61114-deployment", + "deploymentBucketName": "amplify-mediavault-x-x-deployment", "s3Key": "amplify-builds/thumbnailgen-714677357a74314e2b59-build.zip" }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/function/thumbnailgen-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/function/thumbnailgen-cloudformation-template.json", "logicalId": "functionthumbnailgen" }, - "lastPushTimeStamp": "2026-03-08T14:56:48.425Z", + "lastPushTimeStamp": "2026-04-15T03:56:49.379Z", "output": { - "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/mediavaultLambdaRolefe3fe5ce-main", + "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/mediavaultLambdaRolefe3fe5ce-x", "Region": "us-east-1", - "Arn": "arn:aws:lambda:us-east-1:123456789012:function:thumbnailgen-main", - "Name": "thumbnailgen-main", - "LambdaExecutionRole": "mediavaultLambdaRolefe3fe5ce-main" + "Arn": "arn:aws:lambda:us-east-1:123456789012:function:thumbnailgen-x", + "Name": "thumbnailgen-x", + "LambdaExecutionRole": "mediavaultLambdaRolefe3fe5ce-x" }, "lastPushDirHash": "MCIFtnBrU9B5/8k3oUOw3xcrIso=" }, @@ -219,27 +219,27 @@ ] } ], - "lastBuildTimeStamp": "2026-03-08T14:51:21.657Z", + "lastBuildTimeStamp": "2026-04-15T03:50:33.791Z", "lastBuildType": "PROD", - "lastPackageTimeStamp": "2026-03-08T14:51:33.331Z", - "distZipFilename": "addusertogroup-75335545303076734834-build.zip", + "lastPackageTimeStamp": "2026-04-15T03:50:38.085Z", + "distZipFilename": "addusertogroup-374b6158625065387750-build.zip", "s3Bucket": { - "deploymentBucketName": "amplify-mediavault-main-61114-deployment", - "s3Key": "amplify-builds/addusertogroup-75335545303076734834-build.zip" + "deploymentBucketName": "amplify-mediavault-x-x-deployment", + "s3Key": "amplify-builds/addusertogroup-374b6158625065387750-build.zip" }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/function/addusertogroup-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/function/addusertogroup-cloudformation-template.json", "logicalId": "functionaddusertogroup" }, - "lastPushTimeStamp": "2026-03-08T14:56:48.425Z", + "lastPushTimeStamp": "2026-04-15T03:56:49.379Z", "output": { - "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/mediavaultLambdaRole7cc84196-main", + "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/mediavaultLambdaRole7cc84196-x", "Region": "us-east-1", - "Arn": "arn:aws:lambda:us-east-1:123456789012:function:addusertogroup-main", - "Name": "addusertogroup-main", - "LambdaExecutionRole": "mediavaultLambdaRole7cc84196-main" + "Arn": "arn:aws:lambda:us-east-1:123456789012:function:addusertogroup-x", + "Name": "addusertogroup-x", + "LambdaExecutionRole": "mediavaultLambdaRole7cc84196-x" }, - "lastPushDirHash": "2cztNkTtJknQAlYwuF/tARdhsYw=" + "lastPushDirHash": "iuOLzVHpo7Av1g7rltPhPXjkl4c=" }, "removeuserfromgroup": { "build": true, @@ -254,27 +254,27 @@ ] } ], - "lastBuildTimeStamp": "2026-03-08T14:51:39.348Z", + "lastBuildTimeStamp": "2026-04-15T03:50:40.390Z", "lastBuildType": "PROD", - "lastPackageTimeStamp": "2026-03-08T14:51:46.566Z", - "distZipFilename": "removeuserfromgroup-7a4c47616747764e436c-build.zip", + "lastPackageTimeStamp": "2026-04-15T03:50:43.599Z", + "distZipFilename": "removeuserfromgroup-6d6f39557861676c6c56-build.zip", "s3Bucket": { - "deploymentBucketName": "amplify-mediavault-main-61114-deployment", - "s3Key": "amplify-builds/removeuserfromgroup-7a4c47616747764e436c-build.zip" + "deploymentBucketName": "amplify-mediavault-x-x-deployment", + "s3Key": "amplify-builds/removeuserfromgroup-6d6f39557861676c6c56-build.zip" }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/function/removeuserfromgroup-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/function/removeuserfromgroup-cloudformation-template.json", "logicalId": "functionremoveuserfromgroup" }, - "lastPushTimeStamp": "2026-03-08T14:56:48.425Z", + "lastPushTimeStamp": "2026-04-15T03:56:49.379Z", "output": { - "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/mediavaultLambdaRoleeab71492-main", + "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/mediavaultLambdaRoleeab71492-x", "Region": "us-east-1", - "Arn": "arn:aws:lambda:us-east-1:123456789012:function:removeuserfromgroup-main", - "Name": "removeuserfromgroup-main", - "LambdaExecutionRole": "mediavaultLambdaRoleeab71492-main" + "Arn": "arn:aws:lambda:us-east-1:123456789012:function:removeuserfromgroup-x", + "Name": "removeuserfromgroup-x", + "LambdaExecutionRole": "mediavaultLambdaRoleeab71492-x" }, - "lastPushDirHash": "pbsv/8VfvBGo0DKSDeXe4+eqw1Y=" + "lastPushDirHash": "sC7yPu5krTxqMy13Ym6CshNDJpM=" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/cloudformation-template.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/cloudformation-template.json index 5af2459308f..d73af6d1cb5 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/cloudformation-template.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/cloudformation-template.json @@ -129,7 +129,7 @@ ] }, "Description": "graphql", - "Expires": 1781621508 + "Expires": 1784865044 } }, "GraphQLAPINONEDS95A13CF0": { @@ -356,7 +356,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" ] ] }, @@ -453,7 +453,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" ] ] }, @@ -496,7 +496,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" ] ] }, @@ -539,7 +539,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" ] ] }, @@ -582,7 +582,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" ] ] }, @@ -625,7 +625,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" ] ] }, @@ -753,4 +753,4 @@ } }, "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/parameters.json index 1ddce01cd04..7c796090a32 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/parameters.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/parameters.json @@ -8,6 +8,6 @@ "Outputs.UserPoolId" ] }, - "S3DeploymentBucket": "amplify-mediavault-main-61114-deployment", + "S3DeploymentBucket": "amplify-mediavault-x-x-deployment", "S3DeploymentRootKey": "amplify-appsync-files/a9caa2a9280aa728b448533b4b7827dcc2cbf238" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/AddUserToGroupResponse.message.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/AddUserToGroupResponse.message.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/AddUserToGroupResponse.message.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/AddUserToGroupResponse.message.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/AddUserToGroupResponse.message.res.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/AddUserToGroupResponse.message.res.vtl index 16ec362ea79..7c27c12d67a 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/AddUserToGroupResponse.message.res.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/AddUserToGroupResponse.message.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["message"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/AddUserToGroupResponse.statusCode.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/AddUserToGroupResponse.statusCode.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/AddUserToGroupResponse.statusCode.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/AddUserToGroupResponse.statusCode.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/AddUserToGroupResponse.statusCode.res.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/AddUserToGroupResponse.statusCode.res.vtl index 3271bf40378..4476158414f 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/AddUserToGroupResponse.statusCode.res.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/AddUserToGroupResponse.statusCode.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["statusCode"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/GenerateThumbnailResponse.message.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/GenerateThumbnailResponse.message.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/GenerateThumbnailResponse.message.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/GenerateThumbnailResponse.message.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/GenerateThumbnailResponse.message.res.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/GenerateThumbnailResponse.message.res.vtl index 16ec362ea79..7c27c12d67a 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/GenerateThumbnailResponse.message.res.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/GenerateThumbnailResponse.message.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["message"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/GenerateThumbnailResponse.statusCode.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/GenerateThumbnailResponse.statusCode.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/GenerateThumbnailResponse.statusCode.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/GenerateThumbnailResponse.statusCode.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/GenerateThumbnailResponse.statusCode.res.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/GenerateThumbnailResponse.statusCode.res.vtl index 3271bf40378..4476158414f 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/GenerateThumbnailResponse.statusCode.res.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/GenerateThumbnailResponse.statusCode.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["statusCode"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/InvokeAddusertogroupLambdaDataSource.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/InvokeAddusertogroupLambdaDataSource.req.vtl index bf296aad032..aa778e9e6b4 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/InvokeAddusertogroupLambdaDataSource.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/InvokeAddusertogroupLambdaDataSource.req.vtl @@ -12,4 +12,4 @@ "prev": $util.toJson($ctx.prev) } } -## [End] Invoke AWS Lambda data source: AddusertogroupLambdaDataSource. ** \ No newline at end of file +## [End] Invoke AWS Lambda data source: AddusertogroupLambdaDataSource. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/InvokeAddusertogroupLambdaDataSource.res.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/InvokeAddusertogroupLambdaDataSource.res.vtl index e6b83d8b6ab..1316903313e 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/InvokeAddusertogroupLambdaDataSource.res.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/InvokeAddusertogroupLambdaDataSource.res.vtl @@ -3,4 +3,4 @@ $util.error($ctx.error.message, $ctx.error.type) #end $util.toJson($ctx.result) -## [End] Handle error or return result. ** \ No newline at end of file +## [End] Handle error or return result. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/InvokeRemoveuserfromgroupLambdaDataSource.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/InvokeRemoveuserfromgroupLambdaDataSource.req.vtl index 9795aa51490..36a38b07a68 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/InvokeRemoveuserfromgroupLambdaDataSource.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/InvokeRemoveuserfromgroupLambdaDataSource.req.vtl @@ -12,4 +12,4 @@ "prev": $util.toJson($ctx.prev) } } -## [End] Invoke AWS Lambda data source: RemoveuserfromgroupLambdaDataSource. ** \ No newline at end of file +## [End] Invoke AWS Lambda data source: RemoveuserfromgroupLambdaDataSource. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/InvokeRemoveuserfromgroupLambdaDataSource.res.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/InvokeRemoveuserfromgroupLambdaDataSource.res.vtl index e6b83d8b6ab..1316903313e 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/InvokeRemoveuserfromgroupLambdaDataSource.res.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/InvokeRemoveuserfromgroupLambdaDataSource.res.vtl @@ -3,4 +3,4 @@ $util.error($ctx.error.message, $ctx.error.type) #end $util.toJson($ctx.result) -## [End] Handle error or return result. ** \ No newline at end of file +## [End] Handle error or return result. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/InvokeThumbnailgenLambdaDataSource.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/InvokeThumbnailgenLambdaDataSource.req.vtl index 62b13728dce..fb9f4fd4133 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/InvokeThumbnailgenLambdaDataSource.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/InvokeThumbnailgenLambdaDataSource.req.vtl @@ -12,4 +12,4 @@ "prev": $util.toJson($ctx.prev) } } -## [End] Invoke AWS Lambda data source: ThumbnailgenLambdaDataSource. ** \ No newline at end of file +## [End] Invoke AWS Lambda data source: ThumbnailgenLambdaDataSource. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/InvokeThumbnailgenLambdaDataSource.res.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/InvokeThumbnailgenLambdaDataSource.res.vtl index e6b83d8b6ab..1316903313e 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/InvokeThumbnailgenLambdaDataSource.res.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/InvokeThumbnailgenLambdaDataSource.res.vtl @@ -3,4 +3,4 @@ $util.error($ctx.error.message, $ctx.error.type) #end $util.toJson($ctx.result) -## [End] Handle error or return result. ** \ No newline at end of file +## [End] Handle error or return result. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.createNote.auth.1.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.createNote.auth.1.req.vtl index 4b1f80356a1..5a1ab2d54fb 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.createNote.auth.1.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.createNote.auth.1.req.vtl @@ -63,4 +63,4 @@ $util.unauthorized() #end #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.createNote.init.1.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.createNote.init.1.req.vtl index df6b4cbbc5c..407b5845fc2 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.createNote.init.1.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.createNote.init.1.req.vtl @@ -8,4 +8,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.createNote.postAuth.1.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.createNote.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.createNote.postAuth.1.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.createNote.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.createNote.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.createNote.req.vtl index 3a3db31141d..0269b9a7ff3 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.createNote.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.createNote.req.vtl @@ -63,4 +63,4 @@ $util.qr($mergedValues.put("__typename", "Note")) $util.qr($PutObject.put("key", $Key)) #end $util.toJson($PutObject) -## [End] Create Request template. ** \ No newline at end of file +## [End] Create Request template. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.createNote.res.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.createNote.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.createNote.res.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.createNote.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.deleteNote.auth.1.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.deleteNote.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.deleteNote.auth.1.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.deleteNote.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.deleteNote.auth.1.res.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.deleteNote.auth.1.res.vtl index 6c6b9fc7057..f5071bf5fa2 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.deleteNote.auth.1.res.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.deleteNote.auth.1.res.vtl @@ -34,4 +34,4 @@ $util.unauthorized() $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.deleteNote.postAuth.1.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.deleteNote.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.deleteNote.postAuth.1.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.deleteNote.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.deleteNote.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.deleteNote.req.vtl index ace459bd501..d2cb40cd15d 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.deleteNote.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.deleteNote.req.vtl @@ -55,4 +55,4 @@ $util.qr($DeleteRequest.put("key", $Key)) $util.qr($DeleteRequest.put("condition", $Conditions)) #end $util.toJson($DeleteRequest) -## [End] Delete Request template. ** \ No newline at end of file +## [End] Delete Request template. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.deleteNote.res.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.deleteNote.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.deleteNote.res.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.deleteNote.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.updateNote.auth.1.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.updateNote.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.updateNote.auth.1.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.updateNote.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.updateNote.auth.1.res.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.updateNote.auth.1.res.vtl index 0792a9c4494..118d9a325a6 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.updateNote.auth.1.res.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.updateNote.auth.1.res.vtl @@ -67,4 +67,4 @@ $util.unauthorized() $util.error("Unauthorized on ${deniedFields.keySet()}", "Unauthorized") #end $util.toJson({}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.updateNote.init.1.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.updateNote.init.1.req.vtl index ab5766fb051..dde2512aea8 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.updateNote.init.1.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.updateNote.init.1.req.vtl @@ -6,4 +6,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.updateNote.postAuth.1.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.updateNote.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.updateNote.postAuth.1.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.updateNote.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.updateNote.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.updateNote.req.vtl index a1bd67d21b6..648b67d7c57 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.updateNote.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.updateNote.req.vtl @@ -127,4 +127,4 @@ $util.qr($update.put("expression", "$expression")) $util.qr($UpdateItem.put("condition", $Conditions)) #end $util.toJson($UpdateItem) -## [End] Mutation Update resolver. ** \ No newline at end of file +## [End] Mutation Update resolver. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.updateNote.res.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.updateNote.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.updateNote.res.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Mutation.updateNote.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Note.owner.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Note.owner.req.vtl index 1aae0961a3e..a9c5efa2bb8 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Note.owner.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Note.owner.req.vtl @@ -1 +1 @@ -$util.toJson({"version":"2018-05-29","payload":{}}) \ No newline at end of file +$util.toJson({"version":"2018-05-29","payload":{}}) diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Note.owner.res.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Note.owner.res.vtl index c6de7a4f2cf..0552e7005c8 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Note.owner.res.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Note.owner.res.vtl @@ -17,4 +17,4 @@ $util.qr($ctx.source.put("owner", $ownerEntitiesLast)) $util.toJson($ctx.source.owner) #end -## [End] Parse owner field auth for Get. ** \ No newline at end of file +## [End] Parse owner field auth for Get. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.addUserToGroup.auth.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.addUserToGroup.auth.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.addUserToGroup.auth.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.addUserToGroup.auth.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.addUserToGroup.res.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.addUserToGroup.res.vtl index 634741579ce..c37b82e4a30 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.addUserToGroup.res.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.addUserToGroup.res.vtl @@ -1 +1 @@ -$util.toJson($ctx.prev.result) \ No newline at end of file +$util.toJson($ctx.prev.result) diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.generateThumbnail.auth.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.generateThumbnail.auth.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.generateThumbnail.auth.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.generateThumbnail.auth.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.generateThumbnail.res.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.generateThumbnail.res.vtl index 634741579ce..c37b82e4a30 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.generateThumbnail.res.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.generateThumbnail.res.vtl @@ -1 +1 @@ -$util.toJson($ctx.prev.result) \ No newline at end of file +$util.toJson($ctx.prev.result) diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.getNote.auth.1.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.getNote.auth.1.req.vtl index 27bf183c353..32d5fe7fff7 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.getNote.auth.1.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.getNote.auth.1.req.vtl @@ -43,4 +43,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.getNote.postAuth.1.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.getNote.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.getNote.postAuth.1.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.getNote.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.getNote.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.getNote.req.vtl index a8d7811a021..fd7fbfc8013 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.getNote.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.getNote.req.vtl @@ -31,4 +31,4 @@ $util.qr($GetRequest.put("query", $query)) $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) #end $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.getNote.res.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.getNote.res.vtl index e9ef1436bdd..92e05f99816 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.getNote.res.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.getNote.res.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson(null) #end -## [End] Get Response template. ** \ No newline at end of file +## [End] Get Response template. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.listNotes.auth.1.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.listNotes.auth.1.req.vtl index 27bf183c353..32d5fe7fff7 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.listNotes.auth.1.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.listNotes.auth.1.req.vtl @@ -43,4 +43,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.listNotes.postAuth.1.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.listNotes.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.listNotes.postAuth.1.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.listNotes.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.listNotes.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.listNotes.req.vtl index 014213710e8..ef976126825 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.listNotes.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.listNotes.req.vtl @@ -47,4 +47,4 @@ #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) #end $util.toJson($ListRequest) -## [End] List Request. ** \ No newline at end of file +## [End] List Request. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.listNotes.res.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.listNotes.res.vtl index ee8b6670cbc..aab9983954e 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.listNotes.res.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.listNotes.res.vtl @@ -4,4 +4,4 @@ #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.removeUserFromGroup.auth.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.removeUserFromGroup.auth.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.removeUserFromGroup.auth.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.removeUserFromGroup.auth.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.removeUserFromGroup.res.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.removeUserFromGroup.res.vtl index 634741579ce..c37b82e4a30 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.removeUserFromGroup.res.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Query.removeUserFromGroup.res.vtl @@ -1 +1 @@ -$util.toJson($ctx.prev.result) \ No newline at end of file +$util.toJson($ctx.prev.result) diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/RemoveUserFromGroupResponse.message.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/RemoveUserFromGroupResponse.message.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/RemoveUserFromGroupResponse.message.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/RemoveUserFromGroupResponse.message.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/RemoveUserFromGroupResponse.message.res.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/RemoveUserFromGroupResponse.message.res.vtl index 16ec362ea79..7c27c12d67a 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/RemoveUserFromGroupResponse.message.res.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/RemoveUserFromGroupResponse.message.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["message"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/RemoveUserFromGroupResponse.statusCode.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/RemoveUserFromGroupResponse.statusCode.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/RemoveUserFromGroupResponse.statusCode.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/RemoveUserFromGroupResponse.statusCode.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/RemoveUserFromGroupResponse.statusCode.res.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/RemoveUserFromGroupResponse.statusCode.res.vtl index 3271bf40378..4476158414f 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/RemoveUserFromGroupResponse.statusCode.res.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/RemoveUserFromGroupResponse.statusCode.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["statusCode"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onCreateNote.auth.1.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onCreateNote.auth.1.req.vtl index eb409927469..34fab83a82f 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onCreateNote.auth.1.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onCreateNote.auth.1.req.vtl @@ -63,4 +63,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onCreateNote.postAuth.1.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onCreateNote.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onCreateNote.postAuth.1.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onCreateNote.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onCreateNote.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onCreateNote.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onCreateNote.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onCreateNote.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onCreateNote.res.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onCreateNote.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onCreateNote.res.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onCreateNote.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onDeleteNote.auth.1.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onDeleteNote.auth.1.req.vtl index eb409927469..34fab83a82f 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onDeleteNote.auth.1.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onDeleteNote.auth.1.req.vtl @@ -63,4 +63,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onDeleteNote.postAuth.1.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onDeleteNote.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onDeleteNote.postAuth.1.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onDeleteNote.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onDeleteNote.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onDeleteNote.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onDeleteNote.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onDeleteNote.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onDeleteNote.res.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onDeleteNote.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onDeleteNote.res.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onDeleteNote.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onUpdateNote.auth.1.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onUpdateNote.auth.1.req.vtl index eb409927469..34fab83a82f 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onUpdateNote.auth.1.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onUpdateNote.auth.1.req.vtl @@ -63,4 +63,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onUpdateNote.postAuth.1.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onUpdateNote.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onUpdateNote.postAuth.1.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onUpdateNote.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onUpdateNote.req.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onUpdateNote.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onUpdateNote.req.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onUpdateNote.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onUpdateNote.res.vtl b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onUpdateNote.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onUpdateNote.res.vtl +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/resolvers/Subscription.onUpdateNote.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/stacks/CustomResources.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/stacks/CustomResources.json index 016991278d0..5fe357d6096 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/stacks/CustomResources.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/stacks/CustomResources.json @@ -58,4 +58,4 @@ "Value": "" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/stacks/FunctionDirectiveStack.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/stacks/FunctionDirectiveStack.json index 0788f027e98..f9333ca14d3 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/stacks/FunctionDirectiveStack.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/stacks/FunctionDirectiveStack.json @@ -706,4 +706,4 @@ "Type": "String" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/stacks/Note.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/stacks/Note.json index ebc15356165..3e11eb03bab 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/stacks/Note.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/build/stacks/Note.json @@ -503,7 +503,7 @@ { "Ref": "NoteTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" ] ] }, @@ -604,7 +604,7 @@ { "Ref": "NoteTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" ] ] }, @@ -771,7 +771,7 @@ { "Ref": "NoteTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" ] ] }, @@ -959,7 +959,7 @@ { "Ref": "NoteTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" ] ] }, @@ -1111,7 +1111,7 @@ { "Ref": "NoteTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" ] ] }, @@ -1232,7 +1232,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" ] ] }, @@ -1278,7 +1278,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" ] ] }, @@ -1324,7 +1324,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" ] ] }, @@ -1403,7 +1403,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" ] ] }, @@ -1477,4 +1477,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/cli-inputs.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/cli-inputs.json index 534802ee8c5..808378c20f6 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/cli-inputs.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/cli-inputs.json @@ -16,4 +16,4 @@ } ] } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/parameters.json index 59e4587d272..d9b76a57cbf 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/parameters.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/parameters.json @@ -8,4 +8,4 @@ "Outputs.UserPoolId" ] } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/resolvers/README.md b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/resolvers/README.md index 89e564c5b31..1634d295144 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/resolvers/README.md +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/resolvers/README.md @@ -1,2 +1,2 @@ Any resolvers that you add in this directory will override the ones automatically generated by Amplify CLI and will be directly copied to the cloud. -For more information, visit [https://docs.amplify.aws/cli/graphql-transformer/resolvers](https://docs.amplify.aws/cli/graphql-transformer/resolvers) \ No newline at end of file +For more information, visit [https://docs.amplify.aws/cli/graphql-transformer/resolvers](https://docs.amplify.aws/cli/graphql-transformer/resolvers) diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/transform.conf.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/transform.conf.json index 98e1e19f038..d0421b1df09 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/transform.conf.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/api/mediavault/transform.conf.json @@ -1,4 +1,4 @@ { "Version": 5, "ElasticsearchWarning": true -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/auth/mediavault1f08412d/build/mediavault1f08412d-cloudformation-template.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/auth/mediavault1f08412d/build/mediavault1f08412d-cloudformation-template.json index 235d2d79e8e..9d767fca8a5 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/auth/mediavault1f08412d/build/mediavault1f08412d-cloudformation-template.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/auth/mediavault1f08412d/build/mediavault1f08412d-cloudformation-template.json @@ -861,4 +861,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/auth/mediavault1f08412d/build/parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/auth/mediavault1f08412d/build/parameters.json index 14367e2b588..03cf0498d07 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/auth/mediavault1f08412d/build/parameters.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/auth/mediavault1f08412d/build/parameters.json @@ -67,4 +67,4 @@ "breakCircularDependency": true, "dependsOn": [], "oAuthMetadata": "{\"AllowedOAuthFlows\":[\"code\"],\"AllowedOAuthScopes\":[\"phone\",\"email\",\"openid\",\"profile\",\"aws.cognito.signin.user.admin\"],\"CallbackURLs\":[\"https://main.mediavault.amplifyapp.com/\"],\"LogoutURLs\":[\"https://main.mediavault.amplifyapp.com/\"]}" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/auth/mediavault1f08412d/cli-inputs.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/auth/mediavault1f08412d/cli-inputs.json index ccbdb4c6c78..f7998d80947 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/auth/mediavault1f08412d/cli-inputs.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/auth/mediavault1f08412d/cli-inputs.json @@ -70,4 +70,4 @@ "dependsOn": [], "oAuthMetadata": "{\"AllowedOAuthFlows\":[\"code\"],\"AllowedOAuthScopes\":[\"phone\",\"email\",\"openid\",\"profile\",\"aws.cognito.signin.user.admin\"],\"CallbackURLs\":[\"https://main.mediavault.amplifyapp.com/\"],\"LogoutURLs\":[\"https://main.mediavault.amplifyapp.com/\"]}" } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/auth/userPoolGroups/build/parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/auth/userPoolGroups/build/parameters.json index 48115bd5cd6..2221b374f62 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/auth/userPoolGroups/build/parameters.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/auth/userPoolGroups/build/parameters.json @@ -11,4 +11,4 @@ "Arn" ] } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json index d045357747b..0476fd1c24a 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json @@ -170,4 +170,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/auth/userPoolGroups/user-pool-group-precedence.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/auth/userPoolGroups/user-pool-group-precedence.json index 2f0db950bfd..33dc94b23d3 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/auth/userPoolGroups/user-pool-group-precedence.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/auth/userPoolGroups/user-pool-group-precedence.json @@ -7,4 +7,4 @@ "groupName": "Basic", "precedence": 2 } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/mediavault/build/cloudformation-template.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/mediavault/build/cloudformation-template.json index 5af2459308f..d73af6d1cb5 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/mediavault/build/cloudformation-template.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/mediavault/build/cloudformation-template.json @@ -129,7 +129,7 @@ ] }, "Description": "graphql", - "Expires": 1781621508 + "Expires": 1784865044 } }, "GraphQLAPINONEDS95A13CF0": { @@ -356,7 +356,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" ] ] }, @@ -453,7 +453,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" ] ] }, @@ -496,7 +496,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" ] ] }, @@ -539,7 +539,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" ] ] }, @@ -582,7 +582,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" ] ] }, @@ -625,7 +625,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" ] ] }, @@ -753,4 +753,4 @@ } }, "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/mediavault1f08412d/build/mediavault1f08412d-cloudformation-template.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/mediavault1f08412d/build/mediavault1f08412d-cloudformation-template.json index 235d2d79e8e..9d767fca8a5 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/mediavault1f08412d/build/mediavault1f08412d-cloudformation-template.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/mediavault1f08412d/build/mediavault1f08412d-cloudformation-template.json @@ -861,4 +861,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json index d045357747b..0476fd1c24a 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json @@ -170,4 +170,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json index 8976e035f8b..7d3adea2b65 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json @@ -202,7 +202,7 @@ "authmediavault1f08412d": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/auth/mediavault1f08412d-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/auth/mediavault1f08412d-cloudformation-template.json", "Parameters": { "identityPoolName": "mediavault1f08412d_identitypool_1f08412d", "allowUnauthenticatedIdentities": true, @@ -254,15 +254,15 @@ "breakCircularDependency": true, "dependsOn": "", "oAuthMetadata": "{\"AllowedOAuthFlows\":[\"code\"],\"AllowedOAuthScopes\":[\"phone\",\"email\",\"openid\",\"profile\",\"aws.cognito.signin.user.admin\"],\"CallbackURLs\":[\"https://main.mediavault.amplifyapp.com/\"],\"LogoutURLs\":[\"https://main.mediavault.amplifyapp.com/\"]}", - "hostedUIProviderCreds": "[{\"ProviderName\":\"Facebook\",\"client_id\":\"SECRET\",\"client_secret\":\"SECRET\"},{\"ProviderName\":\"Google\",\"client_id\":\"SECRET\",\"client_secret\":\"SECRET\"}]", - "env": "main" + "hostedUIProviderCreds": "[{\"ProviderName\":\"Facebook\",\"client_id\":\"dummy-facebook-id\",\"client_secret\":\"dummy-facebook-secret\"},{\"ProviderName\":\"Google\",\"client_id\":\"dummy-google-id\",\"client_secret\":\"dummy-google-secret\"}]", + "env": "x" } } }, "authuserPoolGroups": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", "Parameters": { "AuthRoleArn": { "Fn::GetAtt": [ @@ -300,14 +300,14 @@ "Outputs.IdentityPoolId" ] }, - "env": "main" + "env": "x" } } }, "apimediavault": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", "Parameters": { "AppSyncApiName": "mediavault", "DynamoDBBillingMode": "PAY_PER_REQUEST", @@ -318,16 +318,16 @@ "Outputs.UserPoolId" ] }, - "S3DeploymentBucket": "amplify-mediavault-main-61114-deployment", + "S3DeploymentBucket": "amplify-mediavault-x-x-deployment", "S3DeploymentRootKey": "amplify-appsync-files/a9caa2a9280aa728b448533b4b7827dcc2cbf238", - "env": "main" + "env": "x" } } }, "storagemediavault": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/storage/cloudformation-template.json", "Parameters": { "bucketName": "mediavaultb574f210f1634e3a8d1934f263da5bed", "selectedGuestPermissions": "s3:GetObject,s3:ListBucket", @@ -371,16 +371,16 @@ "Outputs.BasicGroupRole" ] }, - "env": "main" + "env": "x" } } }, "functionthumbnailgen": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/function/thumbnailgen-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/function/thumbnailgen-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-mediavault-main-61114-deployment", + "deploymentBucketName": "amplify-mediavault-x-x-deployment", "s3Key": "amplify-builds/thumbnailgen-714677357a74314e2b59-build.zip", "storagemediavaultBucketName": { "Fn::GetAtt": [ @@ -388,41 +388,41 @@ "Outputs.BucketName" ] }, - "env": "main" + "env": "x" } } }, "functionaddusertogroup": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/function/addusertogroup-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/function/addusertogroup-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-mediavault-main-61114-deployment", - "s3Key": "amplify-builds/addusertogroup-75335545303076734834-build.zip", + "deploymentBucketName": "amplify-mediavault-x-x-deployment", + "s3Key": "amplify-builds/addusertogroup-374b6158625065387750-build.zip", "authmediavault1f08412dUserPoolId": { "Fn::GetAtt": [ "authmediavault1f08412d", "Outputs.UserPoolId" ] }, - "env": "main" + "env": "x" } } }, "functionremoveuserfromgroup": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/function/removeuserfromgroup-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/function/removeuserfromgroup-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-mediavault-main-61114-deployment", - "s3Key": "amplify-builds/removeuserfromgroup-7a4c47616747764e436c-build.zip", + "deploymentBucketName": "amplify-mediavault-x-x-deployment", + "s3Key": "amplify-builds/removeuserfromgroup-6d6f39557861676c6c56-build.zip", "authmediavault1f08412dUserPoolId": { "Fn::GetAtt": [ "authmediavault1f08412d", "Outputs.UserPoolId" ] }, - "env": "main" + "env": "x" } } }, @@ -630,4 +630,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/addusertogroup/addusertogroup-cloudformation-template.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/addusertogroup/addusertogroup-cloudformation-template.json index 8ab3b9d193f..b4b96ba02fb 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/addusertogroup/addusertogroup-cloudformation-template.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/addusertogroup/addusertogroup-cloudformation-template.json @@ -332,4 +332,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/removeuserfromgroup/removeuserfromgroup-cloudformation-template.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/removeuserfromgroup/removeuserfromgroup-cloudformation-template.json index 13cd802aa70..eae4e1d0ff8 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/removeuserfromgroup/removeuserfromgroup-cloudformation-template.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/removeuserfromgroup/removeuserfromgroup-cloudformation-template.json @@ -332,4 +332,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/thumbnailgen/thumbnailgen-cloudformation-template.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/thumbnailgen/thumbnailgen-cloudformation-template.json index f4328f59487..20b4ca8a188 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/thumbnailgen/thumbnailgen-cloudformation-template.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/thumbnailgen/thumbnailgen-cloudformation-template.json @@ -264,4 +264,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json index 8976e035f8b..7d3adea2b65 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json @@ -202,7 +202,7 @@ "authmediavault1f08412d": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/auth/mediavault1f08412d-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/auth/mediavault1f08412d-cloudformation-template.json", "Parameters": { "identityPoolName": "mediavault1f08412d_identitypool_1f08412d", "allowUnauthenticatedIdentities": true, @@ -254,15 +254,15 @@ "breakCircularDependency": true, "dependsOn": "", "oAuthMetadata": "{\"AllowedOAuthFlows\":[\"code\"],\"AllowedOAuthScopes\":[\"phone\",\"email\",\"openid\",\"profile\",\"aws.cognito.signin.user.admin\"],\"CallbackURLs\":[\"https://main.mediavault.amplifyapp.com/\"],\"LogoutURLs\":[\"https://main.mediavault.amplifyapp.com/\"]}", - "hostedUIProviderCreds": "[{\"ProviderName\":\"Facebook\",\"client_id\":\"SECRET\",\"client_secret\":\"SECRET\"},{\"ProviderName\":\"Google\",\"client_id\":\"SECRET\",\"client_secret\":\"SECRET\"}]", - "env": "main" + "hostedUIProviderCreds": "[{\"ProviderName\":\"Facebook\",\"client_id\":\"dummy-facebook-id\",\"client_secret\":\"dummy-facebook-secret\"},{\"ProviderName\":\"Google\",\"client_id\":\"dummy-google-id\",\"client_secret\":\"dummy-google-secret\"}]", + "env": "x" } } }, "authuserPoolGroups": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", "Parameters": { "AuthRoleArn": { "Fn::GetAtt": [ @@ -300,14 +300,14 @@ "Outputs.IdentityPoolId" ] }, - "env": "main" + "env": "x" } } }, "apimediavault": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", "Parameters": { "AppSyncApiName": "mediavault", "DynamoDBBillingMode": "PAY_PER_REQUEST", @@ -318,16 +318,16 @@ "Outputs.UserPoolId" ] }, - "S3DeploymentBucket": "amplify-mediavault-main-61114-deployment", + "S3DeploymentBucket": "amplify-mediavault-x-x-deployment", "S3DeploymentRootKey": "amplify-appsync-files/a9caa2a9280aa728b448533b4b7827dcc2cbf238", - "env": "main" + "env": "x" } } }, "storagemediavault": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/storage/cloudformation-template.json", "Parameters": { "bucketName": "mediavaultb574f210f1634e3a8d1934f263da5bed", "selectedGuestPermissions": "s3:GetObject,s3:ListBucket", @@ -371,16 +371,16 @@ "Outputs.BasicGroupRole" ] }, - "env": "main" + "env": "x" } } }, "functionthumbnailgen": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/function/thumbnailgen-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/function/thumbnailgen-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-mediavault-main-61114-deployment", + "deploymentBucketName": "amplify-mediavault-x-x-deployment", "s3Key": "amplify-builds/thumbnailgen-714677357a74314e2b59-build.zip", "storagemediavaultBucketName": { "Fn::GetAtt": [ @@ -388,41 +388,41 @@ "Outputs.BucketName" ] }, - "env": "main" + "env": "x" } } }, "functionaddusertogroup": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/function/addusertogroup-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/function/addusertogroup-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-mediavault-main-61114-deployment", - "s3Key": "amplify-builds/addusertogroup-75335545303076734834-build.zip", + "deploymentBucketName": "amplify-mediavault-x-x-deployment", + "s3Key": "amplify-builds/addusertogroup-374b6158625065387750-build.zip", "authmediavault1f08412dUserPoolId": { "Fn::GetAtt": [ "authmediavault1f08412d", "Outputs.UserPoolId" ] }, - "env": "main" + "env": "x" } } }, "functionremoveuserfromgroup": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/function/removeuserfromgroup-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/function/removeuserfromgroup-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-mediavault-main-61114-deployment", - "s3Key": "amplify-builds/removeuserfromgroup-7a4c47616747764e436c-build.zip", + "deploymentBucketName": "amplify-mediavault-x-x-deployment", + "s3Key": "amplify-builds/removeuserfromgroup-6d6f39557861676c6c56-build.zip", "authmediavault1f08412dUserPoolId": { "Fn::GetAtt": [ "authmediavault1f08412d", "Outputs.UserPoolId" ] }, - "env": "main" + "env": "x" } } }, @@ -630,4 +630,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/awscloudformation/build/storage/mediavault/build/cloudformation-template.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/awscloudformation/build/storage/mediavault/build/cloudformation-template.json index a3b0f956240..012547ef61b 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/awscloudformation/build/storage/mediavault/build/cloudformation-template.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/awscloudformation/build/storage/mediavault/build/cloudformation-template.json @@ -773,4 +773,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/backend-config.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/backend-config.json index 1a1832671d5..64d36522b78 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/backend-config.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/backend-config.json @@ -205,4 +205,4 @@ "service": "S3" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/addusertogroup/addusertogroup-cloudformation-template.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/addusertogroup/addusertogroup-cloudformation-template.json index 8ab3b9d193f..b4b96ba02fb 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/addusertogroup/addusertogroup-cloudformation-template.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/addusertogroup/addusertogroup-cloudformation-template.json @@ -332,4 +332,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/addusertogroup/amplify.state b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/addusertogroup/amplify.state index 045e649ff86..f4f664b5257 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/addusertogroup/amplify.state +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/addusertogroup/amplify.state @@ -6,4 +6,4 @@ "scripts": { "build": "npm install --no-bin-links --production" } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/addusertogroup/custom-policies.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/addusertogroup/custom-policies.json index 528c94f2f26..1f21c530082 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/addusertogroup/custom-policies.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/addusertogroup/custom-policies.json @@ -3,4 +3,4 @@ "Action": [], "Resource": [] } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/addusertogroup/function-parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/addusertogroup/function-parameters.json index b4c696e530b..1b781591637 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/addusertogroup/function-parameters.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/addusertogroup/function-parameters.json @@ -10,4 +10,4 @@ } }, "lambdaLayers": [] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/addusertogroup/parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/addusertogroup/parameters.json index 9e26dfeeb6e..0967ef424bc 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/addusertogroup/parameters.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/addusertogroup/parameters.json @@ -1 +1 @@ -{} \ No newline at end of file +{} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/removeuserfromgroup/amplify.state b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/removeuserfromgroup/amplify.state index 045e649ff86..f4f664b5257 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/removeuserfromgroup/amplify.state +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/removeuserfromgroup/amplify.state @@ -6,4 +6,4 @@ "scripts": { "build": "npm install --no-bin-links --production" } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/removeuserfromgroup/custom-policies.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/removeuserfromgroup/custom-policies.json index 528c94f2f26..1f21c530082 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/removeuserfromgroup/custom-policies.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/removeuserfromgroup/custom-policies.json @@ -3,4 +3,4 @@ "Action": [], "Resource": [] } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/removeuserfromgroup/function-parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/removeuserfromgroup/function-parameters.json index b4c696e530b..1b781591637 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/removeuserfromgroup/function-parameters.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/removeuserfromgroup/function-parameters.json @@ -10,4 +10,4 @@ } }, "lambdaLayers": [] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/removeuserfromgroup/parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/removeuserfromgroup/parameters.json index 9e26dfeeb6e..0967ef424bc 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/removeuserfromgroup/parameters.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/removeuserfromgroup/parameters.json @@ -1 +1 @@ -{} \ No newline at end of file +{} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/removeuserfromgroup/removeuserfromgroup-cloudformation-template.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/removeuserfromgroup/removeuserfromgroup-cloudformation-template.json index 13cd802aa70..eae4e1d0ff8 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/removeuserfromgroup/removeuserfromgroup-cloudformation-template.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/removeuserfromgroup/removeuserfromgroup-cloudformation-template.json @@ -332,4 +332,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/thumbnailgen/amplify.state b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/thumbnailgen/amplify.state index 045e649ff86..f4f664b5257 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/thumbnailgen/amplify.state +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/thumbnailgen/amplify.state @@ -6,4 +6,4 @@ "scripts": { "build": "npm install --no-bin-links --production" } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/thumbnailgen/custom-policies.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/thumbnailgen/custom-policies.json index 528c94f2f26..1f21c530082 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/thumbnailgen/custom-policies.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/thumbnailgen/custom-policies.json @@ -3,4 +3,4 @@ "Action": [], "Resource": [] } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/thumbnailgen/function-parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/thumbnailgen/function-parameters.json index 0d2f49db7df..e9104d17080 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/thumbnailgen/function-parameters.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/thumbnailgen/function-parameters.json @@ -10,4 +10,4 @@ } }, "lambdaLayers": [] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/thumbnailgen/parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/thumbnailgen/parameters.json index 9e26dfeeb6e..0967ef424bc 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/thumbnailgen/parameters.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/thumbnailgen/parameters.json @@ -1 +1 @@ -{} \ No newline at end of file +{} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/thumbnailgen/thumbnailgen-cloudformation-template.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/thumbnailgen/thumbnailgen-cloudformation-template.json index f4328f59487..20b4ca8a188 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/thumbnailgen/thumbnailgen-cloudformation-template.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/function/thumbnailgen/thumbnailgen-cloudformation-template.json @@ -264,4 +264,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/storage/mediavault/build/cloudformation-template.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/storage/mediavault/build/cloudformation-template.json index 1e9a99e9dfe..94abbcdd1c3 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/storage/mediavault/build/cloudformation-template.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/storage/mediavault/build/cloudformation-template.json @@ -764,4 +764,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/storage/mediavault/build/parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/storage/mediavault/build/parameters.json index 9ee8414461e..682df12098d 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/storage/mediavault/build/parameters.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/storage/mediavault/build/parameters.json @@ -31,4 +31,4 @@ "s3PermissionsAuthenticatedUploads": "s3:PutObject", "s3PermissionsGuestPublic": "s3:GetObject", "s3PermissionsGuestUploads": "DISALLOW" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/storage/mediavault/cli-inputs.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/storage/mediavault/cli-inputs.json index 8d147732780..cc909996496 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/storage/mediavault/cli-inputs.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/storage/mediavault/cli-inputs.json @@ -22,4 +22,4 @@ "READ" ] } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/tags.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/tags.json index b9321d71b83..71f6abe11a6 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/tags.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/tags.json @@ -7,4 +7,4 @@ "Key": "user:Application", "Value": "{project-name}" } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts index b8d44b2a1fc..a178a642b97 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts @@ -52,4 +52,4 @@ export type AmplifyDependentResourcesAttributes = { "Region": "string" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/cli.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/cli.json index 11dc8ca0f7d..6991bfaca44 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/cli.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/cli.json @@ -62,4 +62,4 @@ "debug": { "shareProjectConfig": false } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/team-provider-info.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/team-provider-info.json index 68c6e17583d..ff93a2c51d0 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/team-provider-info.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/amplify/team-provider-info.json @@ -1,14 +1,14 @@ { - "main": { + "x": { "awscloudformation": { - "AuthRoleName": "amplify-mediavault-main-61114-authRole", - "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-mediavault-main-61114-unauthRole", - "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-mediavault-main-61114-authRole", + "AuthRoleName": "amplify-mediavault-x-x-authRole", + "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-mediavault-x-x-unauthRole", + "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-mediavault-x-x-authRole", "Region": "us-east-1", - "DeploymentBucketName": "amplify-mediavault-main-61114-deployment", - "UnauthRoleName": "amplify-mediavault-main-61114-unauthRole", - "StackName": "amplify-mediavault-main-61114", - "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-mediavault-main-61114/fdd16cb0-1afb-11f1-aa46-12a754d266f9", + "DeploymentBucketName": "amplify-mediavault-x-x-deployment", + "UnauthRoleName": "amplify-mediavault-x-x-unauthRole", + "StackName": "amplify-mediavault-x-x", + "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-mediavault-x-x/108480f0-387e-11f1-8e28-0ea5af7cf5ad", "AmplifyAppId": "mediavault" }, "categories": { @@ -17,17 +17,17 @@ "userPoolGroups": {} }, "function": { - "thumbnailgen": { - "deploymentBucketName": "amplify-mediavault-main-61114-deployment", - "s3Key": "amplify-builds/thumbnailgen-714677357a74314e2b59-build.zip" - }, "addusertogroup": { - "deploymentBucketName": "amplify-mediavault-main-61114-deployment", - "s3Key": "amplify-builds/addusertogroup-75335545303076734834-build.zip" + "deploymentBucketName": "amplify-mediavault-x-x-deployment", + "s3Key": "amplify-builds/addusertogroup-374b6158625065387750-build.zip" }, "removeuserfromgroup": { - "deploymentBucketName": "amplify-mediavault-main-61114-deployment", - "s3Key": "amplify-builds/removeuserfromgroup-7a4c47616747764e436c-build.zip" + "deploymentBucketName": "amplify-mediavault-x-x-deployment", + "s3Key": "amplify-builds/removeuserfromgroup-6d6f39557861676c6c56-build.zip" + }, + "thumbnailgen": { + "deploymentBucketName": "amplify-mediavault-x-x-deployment", + "s3Key": "amplify-builds/thumbnailgen-714677357a74314e2b59-build.zip" } }, "api": { @@ -38,4 +38,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.generate/package.json b/amplify-migration-apps/media-vault/_snapshot.pre.generate/package.json index 4c23d508f3d..de2dddb138b 100644 --- a/amplify-migration-apps/media-vault/_snapshot.pre.generate/package.json +++ b/amplify-migration-apps/media-vault/_snapshot.pre.generate/package.json @@ -11,9 +11,21 @@ "build": "tsc -b && vite build", "lint": "eslint .", "preview": "vite preview", - "configure": "./configure.sh", + "configure": "./backend/configure.sh", "sanitize": "tsx ../sanitize.ts", - "typecheck": "cd _snapshot.post.generate/amplify && npx tsc --noEmit" + "normalize": "tsx ../normalize.ts", + "typecheck": "cd _snapshot.post.generate/amplify && npx tsc --noEmit", + "test:gen1": "APP_CONFIG_PATH=${APP_CONFIG_PATH:-src/amplifyconfiguration.json} NODE_OPTIONS='--experimental-vm-modules' jest --verbose", + "test:gen2": "APP_CONFIG_PATH=${APP_CONFIG_PATH:-amplify_outputs.json} NODE_OPTIONS='--experimental-vm-modules' jest --verbose", + "test:shared-data": "true", + "test:e2e": "cd ../../packages/amplify-gen2-migration-e2e-system && npx tsx src/cli.ts --app media-vault --profile ${AWS_PROFILE:-default}", + "deploy": "cd ../../packages/amplify-gen2-migration-e2e-system && npx tsx src/cli.ts --app media-vault --step deploy --profile ${AWS_PROFILE:-default}", + "pre-push": "npx tsx migration/pre-push.ts", + "post-generate": "npx tsx migration/post-generate.ts", + "post-refactor": "true", + "post-sandbox": "true", + "pre-sandbox": "true", + "post-push": "true" }, "dependencies": { "@aws-amplify/storage": "^6.10.1", @@ -25,7 +37,9 @@ "sharp": "^0.34.5" }, "devDependencies": { + "@aws-sdk/client-cognito-identity-provider": "^3.936.0", "@eslint/js": "^9.39.1", + "@types/jest": "^29.5.14", "@types/node": "^24.10.1", "@types/react": "^19.2.5", "@types/react-dom": "^19.2.3", @@ -34,6 +48,8 @@ "eslint-plugin-react-hooks": "^7.0.1", "eslint-plugin-react-refresh": "^0.4.24", "globals": "^16.5.0", + "jest": "^29.7.0", + "ts-jest": "^29.3.4", "typescript": "~5.9.3", "typescript-eslint": "^8.46.4", "vite": "^7.2.4" diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.description.txt b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.outputs.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.outputs.json new file mode 100644 index 00000000000..4409c85d89a --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.outputs.json @@ -0,0 +1,6 @@ +[ + { + "OutputKey": "amplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEventB2AB9C44Arn", + "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-mediavault2604142-TableManagerCustomProvid-Vczsf4DkXFeF" + } +] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.parameters.json new file mode 100644 index 00000000000..9cb9f39c457 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.parameters.json @@ -0,0 +1,6 @@ +[ + { + "ParameterKey": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId", + "ParameterValue": "wxqxmfnao5dgtoc4j7tvafb4ti" + } +] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.template.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.template.json new file mode 100644 index 00000000000..5eedefc7a9f --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.template.json @@ -0,0 +1,755 @@ +{ + "Resources": { + "AmplifyManagedTableIsCompleteRoleF825222C": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:CreateTable", + "dynamodb:UpdateTable", + "dynamodb:DeleteTable", + "dynamodb:DescribeTable", + "dynamodb:DescribeContinuousBackups", + "dynamodb:DescribeTimeToLive", + "dynamodb:UpdateContinuousBackups", + "dynamodb:UpdateTimeToLive", + "dynamodb:TagResource", + "dynamodb:UntagResource", + "dynamodb:ListTagsOfResource" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/*-${apiId}-${envName}", + { + "apiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "envName": "NONE" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", + { + "tableName": "Note-m35dk4nrcna2hiz267tsvgu77y-x" + } + ] + } + ] + }, + { + "Action": "lambda:ListTags", + "Effect": "Allow", + "Resource": { + "Fn::Sub": [ + "arn:${AWS::Partition}:lambda:${AWS::Region}:${AWS::AccountId}:function:*TableManager*", + {} + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "CreateUpdateDeleteTablesPolicy" + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/AmplifyManagedTableIsCompleteRole/Resource" + } + }, + "AmplifyManagedTableOnEventRoleB4E71DEA": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:CreateTable", + "dynamodb:UpdateTable", + "dynamodb:DeleteTable", + "dynamodb:DescribeTable", + "dynamodb:DescribeContinuousBackups", + "dynamodb:DescribeTimeToLive", + "dynamodb:UpdateContinuousBackups", + "dynamodb:UpdateTimeToLive", + "dynamodb:TagResource", + "dynamodb:UntagResource", + "dynamodb:ListTagsOfResource" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/*-${apiId}-${envName}", + { + "apiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "envName": "NONE" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", + { + "tableName": "Note-m35dk4nrcna2hiz267tsvgu77y-x" + } + ] + } + ] + }, + { + "Action": "lambda:ListTags", + "Effect": "Allow", + "Resource": { + "Fn::Sub": [ + "arn:${AWS::Partition}:lambda:${AWS::Region}:${AWS::AccountId}:function:*TableManager*", + {} + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "CreateUpdateDeleteTablesPolicy" + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/AmplifyManagedTableOnEventRole/Resource" + } + }, + "AmplifyManagedTableOnEventRoleDefaultPolicyF6DABCB6": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "states:StartExecution", + "Effect": "Allow", + "Resource": { + "Ref": "AmplifyTableWaiterStateMachine060600BC" + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "AmplifyManagedTableOnEventRoleDefaultPolicyF6DABCB6", + "Roles": [ + { + "Ref": "AmplifyManagedTableOnEventRoleB4E71DEA" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/AmplifyManagedTableOnEventRole/DefaultPolicy/Resource" + } + }, + "TableManagerCustomProviderframeworkonEvent1DFC2ECC": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6.zip" + }, + "Description": "AmplifyManagedTable - onEvent (amplify-mediavault-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider)", + "Environment": { + "Variables": { + "WAITER_STATE_MACHINE_ARN": { + "Ref": "AmplifyTableWaiterStateMachine060600BC" + } + } + }, + "Handler": "amplify-table-manager-handler.onEvent", + "Role": { + "Fn::GetAtt": [ + "AmplifyManagedTableOnEventRoleB4E71DEA", + "Arn" + ] + }, + "Runtime": "nodejs24.x", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 840 + }, + "DependsOn": [ + "AmplifyManagedTableOnEventRoleDefaultPolicyF6DABCB6", + "AmplifyManagedTableOnEventRoleB4E71DEA" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider/framework-onEvent/Resource", + "aws:asset:path": "asset.f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6", + "aws:asset:is-bundled": false, + "aws:asset:property": "Code" + } + }, + "TableManagerCustomProviderframeworkisComplete2E51021B": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6.zip" + }, + "Description": "AmplifyManagedTable - isComplete (amplify-mediavault-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider)", + "Handler": "amplify-table-manager-handler.isComplete", + "Role": { + "Fn::GetAtt": [ + "AmplifyManagedTableIsCompleteRoleF825222C", + "Arn" + ] + }, + "Runtime": "nodejs24.x", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 840 + }, + "DependsOn": [ + "AmplifyManagedTableIsCompleteRoleF825222C" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider/framework-isComplete/Resource", + "aws:asset:path": "asset.f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6", + "aws:asset:is-bundled": false, + "aws:asset:property": "Code" + } + }, + "AmplifyTableWaiterStateMachineRole470BE899": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "states.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Role/Resource" + } + }, + "AmplifyTableWaiterStateMachineRoleDefaultPolicy89F3836A": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "TableManagerCustomProviderframeworkisComplete2E51021B", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "TableManagerCustomProviderframeworkisComplete2E51021B", + "Arn" + ] + }, + ":*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "AmplifyTableWaiterStateMachineRoleDefaultPolicy89F3836A", + "Roles": [ + { + "Ref": "AmplifyTableWaiterStateMachineRole470BE899" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Role/DefaultPolicy/Resource" + } + }, + "AmplifyTableWaiterStateMachine060600BC": { + "Type": "AWS::StepFunctions::StateMachine", + "Properties": { + "DefinitionString": { + "Fn::Join": [ + "", + [ + "{\"StartAt\":\"framework-isComplete-task\",\"States\":{\"framework-isComplete-task\":{\"End\":true,\"Retry\":[{\"ErrorEquals\":[\"States.ALL\"],\"IntervalSeconds\":10,\"MaxAttempts\":360,\"BackoffRate\":1}],\"Type\":\"Task\",\"Resource\":\"", + { + "Fn::GetAtt": [ + "TableManagerCustomProviderframeworkisComplete2E51021B", + "Arn" + ] + }, + "\"}}}" + ] + ] + }, + "RoleArn": { + "Fn::GetAtt": [ + "AmplifyTableWaiterStateMachineRole470BE899", + "Arn" + ] + } + }, + "DependsOn": [ + "AmplifyTableWaiterStateMachineRoleDefaultPolicy89F3836A", + "AmplifyTableWaiterStateMachineRole470BE899" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/zWNyw6CMBBFv8V9GbFE92Li0hj4ADK0IymPNmFaiWn67wbQ1Tk3Z3ElyHMO+QEXzpQestG0EB/EnnTtUQ0CF26iwQli5UYSt5fd+HSjUZ917pbEiFOrEeI9WOWNs2v7exJcNMhMnuG6QnABZVAD+RKZkqiIXZgVia3WHjtju+3sF5KwThP0fHxLCacL5IeejcnmYL2ZCKqdX3lj/13PAAAA" + }, + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId": { + "Type": "String" + } + }, + "Outputs": { + "amplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEventB2AB9C44Arn": { + "Value": { + "Fn::GetAtt": [ + "TableManagerCustomProviderframeworkonEvent1DFC2ECC", + "Arn" + ] + } + } + } +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.description.txt b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.description.txt new file mode 100644 index 00000000000..6b3d983ba60 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.description.txt @@ -0,0 +1 @@ +An auto-generated nested stack for the @function directive. diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.outputs.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.outputs.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.outputs.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.parameters.json new file mode 100644 index 00000000000..7532cc80175 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.parameters.json @@ -0,0 +1,22 @@ +[ + { + "ParameterKey": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthauthenticatedUserRoleE0CA9703Ref", + "ParameterValue": "amplify-mediavault2604142-amplifyAuthauthenticatedU-eE1RG94dAZFh" + }, + { + "ParameterKey": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId", + "ParameterValue": "wxqxmfnao5dgtoc4j7tvafb4ti" + }, + { + "ParameterKey": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthunauthenticatedUserRole88DA1FC1Ref", + "ParameterValue": "amplify-mediavault2604142-amplifyAuthunauthenticate-IXwU5AR0tJSE" + }, + { + "ParameterKey": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthIdentityPool0BF026A3Ref", + "ParameterValue": "us-east-1:7740513c-8837-4108-969d-d368bab19238" + }, + { + "ParameterKey": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPINONEDSFC51E2F6Name", + "ParameterValue": "NONE_DS" + } +] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.template.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.template.json new file mode 100644 index 00000000000..68275871529 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.template.json @@ -0,0 +1,1062 @@ +{ + "Description": "An auto-generated nested stack for the @function directive.", + "AWSTemplateFormatVersion": "2010-09-09", + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + "NONE", + "NONE" + ] + } + ] + }, + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Resources": { + "ThumbnailgenGen2IacemyemfbLambdaDataSourceServiceRole9090A4D5": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/ThumbnailgenGen2IacemyemfbLambdaDataSource/ServiceRole/Resource" + } + }, + "ThumbnailgenGen2IacemyemfbLambdaDataSourceServiceRoleDefaultPolicy855A3CB8": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:thumbnailgen-gen2-x", + {} + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:thumbnailgen-gen2-x" + } + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:thumbnailgen-gen2-x", + {} + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:thumbnailgen-gen2-x" + } + ] + }, + ":*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "ThumbnailgenGen2IacemyemfbLambdaDataSourceServiceRoleDefaultPolicy855A3CB8", + "Roles": [ + { + "Ref": "ThumbnailgenGen2IacemyemfbLambdaDataSourceServiceRole9090A4D5" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/ThumbnailgenGen2IacemyemfbLambdaDataSource/ServiceRole/DefaultPolicy/Resource" + } + }, + "ThumbnailgenGen2IacemyemfbLambdaDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "LambdaConfig": { + "LambdaFunctionArn": { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:thumbnailgen-gen2-x", + {} + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:thumbnailgen-gen2-x" + } + ] + } + }, + "Name": "ThumbnailgenGen2IacemyemfbLambdaDataSource", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "ThumbnailgenGen2IacemyemfbLambdaDataSourceServiceRole9090A4D5", + "Arn" + ] + }, + "Type": "AWS_LAMBDA" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/ThumbnailgenGen2IacemyemfbLambdaDataSource/Resource" + } + }, + "InvokeThumbnailgenGen2IacemyemfbLambdaDataSourceInvokeThumbnailgenGen2IacemyemfbLambdaDataSourceAppSyncFunction2DBB5737": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ThumbnailgenGen2IacemyemfbLambdaDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "InvokeThumbnailgenGen2IacemyemfbLambdaDataSource", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/5b3a3ee1b2a9096ab64f537cf0efb96361b6a7bc7b7478a331a2b753328664a3.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a20e304512b1fde77dc16ed9d5e0ed03817afcab629ce87ef11c99877b7b1e30.vtl" + } + }, + "DependsOn": [ + "ThumbnailgenGen2IacemyemfbLambdaDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/InvokeThumbnailgenGen2IacemyemfbLambdaDataSource/InvokeThumbnailgenGen2IacemyemfbLambdaDataSource.AppSyncFunction" + } + }, + "QuerygenerateThumbnailResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "FieldName": "generateThumbnail", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QueryGenerateThumbnailAuthFNQueryGenerateThumbnailAuthFNAppSyncFunction60C28AA7", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "InvokeThumbnailgenGen2IacemyemfbLambdaDataSourceInvokeThumbnailgenGen2IacemyemfbLambdaDataSourceAppSyncFunction2DBB5737", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"generateThumbnail\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthauthenticatedUserRoleE0CA9703Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthunauthenticatedUserRole88DA1FC1Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthIdentityPool0BF026A3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n{}\n## [End] Stash resolver specific context.. **" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/387d5992f5fc03d05de27289457dcc374a84c42a889acb504aff1031047dde00.vtl" + }, + "TypeName": "Query" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/queryGenerateThumbnailResolver" + } + }, + "AddusertogroupGen2IacemyemfbLambdaDataSourceServiceRole08F7C83E": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/AddusertogroupGen2IacemyemfbLambdaDataSource/ServiceRole/Resource" + } + }, + "AddusertogroupGen2IacemyemfbLambdaDataSourceServiceRoleDefaultPolicy9DBA1B87": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:addusertogroup-gen2-x", + {} + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:addusertogroup-gen2-x" + } + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:addusertogroup-gen2-x", + {} + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:addusertogroup-gen2-x" + } + ] + }, + ":*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "AddusertogroupGen2IacemyemfbLambdaDataSourceServiceRoleDefaultPolicy9DBA1B87", + "Roles": [ + { + "Ref": "AddusertogroupGen2IacemyemfbLambdaDataSourceServiceRole08F7C83E" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/AddusertogroupGen2IacemyemfbLambdaDataSource/ServiceRole/DefaultPolicy/Resource" + } + }, + "AddusertogroupGen2IacemyemfbLambdaDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "LambdaConfig": { + "LambdaFunctionArn": { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:addusertogroup-gen2-x", + {} + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:addusertogroup-gen2-x" + } + ] + } + }, + "Name": "AddusertogroupGen2IacemyemfbLambdaDataSource", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "AddusertogroupGen2IacemyemfbLambdaDataSourceServiceRole08F7C83E", + "Arn" + ] + }, + "Type": "AWS_LAMBDA" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/AddusertogroupGen2IacemyemfbLambdaDataSource/Resource" + } + }, + "InvokeAddusertogroupGen2IacemyemfbLambdaDataSourceInvokeAddusertogroupGen2IacemyemfbLambdaDataSourceAppSyncFunction5F88BC55": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "AddusertogroupGen2IacemyemfbLambdaDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "InvokeAddusertogroupGen2IacemyemfbLambdaDataSource", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/763c776bc396ef51c2ef613ecd3be5484b719b7c9ed680707a6e93c8a9536706.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a20e304512b1fde77dc16ed9d5e0ed03817afcab629ce87ef11c99877b7b1e30.vtl" + } + }, + "DependsOn": [ + "AddusertogroupGen2IacemyemfbLambdaDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/InvokeAddusertogroupGen2IacemyemfbLambdaDataSource/InvokeAddusertogroupGen2IacemyemfbLambdaDataSource.AppSyncFunction" + } + }, + "QueryaddUserToGroupResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "FieldName": "addUserToGroup", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QueryAddUserToGroupAuthFNQueryAddUserToGroupAuthFNAppSyncFunction960BE190", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "InvokeAddusertogroupGen2IacemyemfbLambdaDataSourceInvokeAddusertogroupGen2IacemyemfbLambdaDataSourceAppSyncFunction5F88BC55", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"addUserToGroup\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthauthenticatedUserRoleE0CA9703Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthunauthenticatedUserRole88DA1FC1Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthIdentityPool0BF026A3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n{}\n## [End] Stash resolver specific context.. **" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/387d5992f5fc03d05de27289457dcc374a84c42a889acb504aff1031047dde00.vtl" + }, + "TypeName": "Query" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/queryAddUserToGroupResolver" + } + }, + "RemoveuserfromgroupGen2IacemyemfbLambdaDataSourceServiceRole007F8166": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/RemoveuserfromgroupGen2IacemyemfbLambdaDataSource/ServiceRole/Resource" + } + }, + "RemoveuserfromgroupGen2IacemyemfbLambdaDataSourceServiceRoleDefaultPolicy0519B1AC": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:removeuserfromgroup-gen2-x", + {} + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:removeuserfromgroup-gen2-x" + } + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:removeuserfromgroup-gen2-x", + {} + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:removeuserfromgroup-gen2-x" + } + ] + }, + ":*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "RemoveuserfromgroupGen2IacemyemfbLambdaDataSourceServiceRoleDefaultPolicy0519B1AC", + "Roles": [ + { + "Ref": "RemoveuserfromgroupGen2IacemyemfbLambdaDataSourceServiceRole007F8166" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/RemoveuserfromgroupGen2IacemyemfbLambdaDataSource/ServiceRole/DefaultPolicy/Resource" + } + }, + "RemoveuserfromgroupGen2IacemyemfbLambdaDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "LambdaConfig": { + "LambdaFunctionArn": { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:removeuserfromgroup-gen2-x", + {} + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:removeuserfromgroup-gen2-x" + } + ] + } + }, + "Name": "RemoveuserfromgroupGen2IacemyemfbLambdaDataSource", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "RemoveuserfromgroupGen2IacemyemfbLambdaDataSourceServiceRole007F8166", + "Arn" + ] + }, + "Type": "AWS_LAMBDA" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/RemoveuserfromgroupGen2IacemyemfbLambdaDataSource/Resource" + } + }, + "InvokeRemoveuserfromgroupGen2IacemyemfbLambdaDataSourceInvokeRemoveuserfromgroupGen2IacemyemfbLambdaDataSourceAppSyncFunction20ED64FC": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "RemoveuserfromgroupGen2IacemyemfbLambdaDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "InvokeRemoveuserfromgroupGen2IacemyemfbLambdaDataSource", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/75f85c721974929ab875aa0c02098e3657dfdb94143a9f26f23bc07f491758b6.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a20e304512b1fde77dc16ed9d5e0ed03817afcab629ce87ef11c99877b7b1e30.vtl" + } + }, + "DependsOn": [ + "RemoveuserfromgroupGen2IacemyemfbLambdaDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/InvokeRemoveuserfromgroupGen2IacemyemfbLambdaDataSource/InvokeRemoveuserfromgroupGen2IacemyemfbLambdaDataSource.AppSyncFunction" + } + }, + "QueryremoveUserFromGroupResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "FieldName": "removeUserFromGroup", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QueryRemoveUserFromGroupAuthFNQueryRemoveUserFromGroupAuthFNAppSyncFunctionAAB567DE", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "InvokeRemoveuserfromgroupGen2IacemyemfbLambdaDataSourceInvokeRemoveuserfromgroupGen2IacemyemfbLambdaDataSourceAppSyncFunction20ED64FC", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"removeUserFromGroup\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthauthenticatedUserRoleE0CA9703Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthunauthenticatedUserRole88DA1FC1Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthIdentityPool0BF026A3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n{}\n## [End] Stash resolver specific context.. **" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/387d5992f5fc03d05de27289457dcc374a84c42a889acb504aff1031047dde00.vtl" + }, + "TypeName": "Query" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/queryRemoveUserFromGroupResolver" + } + }, + "QueryGenerateThumbnailAuthFNQueryGenerateThumbnailAuthFNAppSyncFunction60C28AA7": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPINONEDSFC51E2F6Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryGenerateThumbnailAuthFN", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/QueryGenerateThumbnailAuthFN/QueryGenerateThumbnailAuthFN.AppSyncFunction" + } + }, + "QueryAddUserToGroupAuthFNQueryAddUserToGroupAuthFNAppSyncFunction960BE190": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPINONEDSFC51E2F6Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryAddUserToGroupAuthFN", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/QueryAddUserToGroupAuthFN/QueryAddUserToGroupAuthFN.AppSyncFunction" + } + }, + "QueryRemoveUserFromGroupAuthFNQueryRemoveUserFromGroupAuthFNAppSyncFunctionAAB567DE": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPINONEDSFC51E2F6Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryRemoveUserFromGroupAuthFN", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/QueryRemoveUserFromGroupAuthFN/QueryRemoveUserFromGroupAuthFN.AppSyncFunction" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOQWvDMAyFf0vvjpalbPc1o6cxRvIDimorQY0jl8huKSH/fdhlh50+vSe9hxpo3mqod3jXyrqp8nyG9Zs0kusj2sm0g7RBHEcOYvCup9XjfHYIxyQ2mwdUMni96kMsrF9l+YkR+5AWSzn/X/3l2iADj2nB0twO0pEGf6NlM4wzrF3w5b7wJ3i2jyyf02Z0f0JVigofGUb3cEh2opj/2Uwx+4gjy7gZCY7goi+3poHXd6h3F2WuliSRZ4LuyV9Irx7YCwEAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Parameters": { + "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId": { + "Type": "String" + }, + "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthauthenticatedUserRoleE0CA9703Ref": { + "Type": "String" + }, + "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthunauthenticatedUserRole88DA1FC1Ref": { + "Type": "String" + }, + "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthIdentityPool0BF026A3Ref": { + "Type": "String" + }, + "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPINONEDSFC51E2F6Name": { + "Type": "String" + } + } +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-amplifyDataNoteNestedStackNoteNestedStackR-x.description.txt b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-amplifyDataNoteNestedStackNoteNestedStackR-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-amplifyDataNoteNestedStackNoteNestedStackR-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-amplifyDataNoteNestedStackNoteNestedStackR-x.outputs.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-amplifyDataNoteNestedStackNoteNestedStackR-x.outputs.json new file mode 100644 index 00000000000..3603b538973 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-amplifyDataNoteNestedStackNoteNestedStackR-x.outputs.json @@ -0,0 +1,14 @@ +[ + { + "OutputKey": "GetAttNoteTableStreamArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Note-m35dk4nrcna2hiz267tsvgu77y-x/stream/2026-04-15T03:52:49.047", + "Description": "Your DynamoDB table StreamArn.", + "ExportName": "wxqxmfnao5dgtoc4j7tvafb4ti:GetAtt:NoteTable:StreamArn" + }, + { + "OutputKey": "GetAttNoteTableName", + "OutputValue": "Note-m35dk4nrcna2hiz267tsvgu77y-x", + "Description": "Your DynamoDB table name.", + "ExportName": "wxqxmfnao5dgtoc4j7tvafb4ti:GetAtt:NoteTable:Name" + } +] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-amplifyDataNoteNestedStackNoteNestedStackR-x.parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-amplifyDataNoteNestedStackNoteNestedStackR-x.parameters.json new file mode 100644 index 00000000000..2b5584ae748 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-amplifyDataNoteNestedStackNoteNestedStackR-x.parameters.json @@ -0,0 +1,46 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource979F4AE1Outputsamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataAmplifyTableManagerTab3B37F2C7", + "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-mediavault2604142-TableManagerCustomProvid-Vczsf4DkXFeF" + }, + { + "ParameterKey": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthauthenticatedUserRoleE0CA9703Ref", + "ParameterValue": "amplify-mediavault2604142-amplifyAuthauthenticatedU-eE1RG94dAZFh" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "true" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId", + "ParameterValue": "wxqxmfnao5dgtoc4j7tvafb4ti" + }, + { + "ParameterKey": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthunauthenticatedUserRole88DA1FC1Ref", + "ParameterValue": "amplify-mediavault2604142-amplifyAuthunauthenticate-IXwU5AR0tJSE" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthIdentityPool0BF026A3Ref", + "ParameterValue": "us-east-1:7740513c-8837-4108-969d-d368bab19238" + }, + { + "ParameterKey": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPINONEDSFC51E2F6Name", + "ParameterValue": "NONE_DS" + } +] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-amplifyDataNoteNestedStackNoteNestedStackR-x.template.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-amplifyDataNoteNestedStackNoteNestedStackR-x.template.json new file mode 100644 index 00000000000..61facfa09c5 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-amplifyDataNoteNestedStackNoteNestedStackR-x.template.json @@ -0,0 +1,2128 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource979F4AE1Outputsamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataAmplifyTableManagerTab3B37F2C7": { + "Type": "String" + }, + "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId": { + "Type": "String" + }, + "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPINONEDSFC51E2F6Name": { + "Type": "String" + }, + "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthauthenticatedUserRoleE0CA9703Ref": { + "Type": "String" + }, + "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthunauthenticatedUserRole88DA1FC1Ref": { + "Type": "String" + }, + "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthIdentityPool0BF026A3Ref": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + "NONE", + "NONE" + ] + } + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + }, + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Resources": { + "NoteTable": { + "Type": "Custom::ImportedAmplifyDynamoDBTable", + "Properties": { + "ServiceToken": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource979F4AE1Outputsamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataAmplifyTableManagerTab3B37F2C7" + }, + "tableName": "Note-m35dk4nrcna2hiz267tsvgu77y-x", + "attributeDefinitions": [ + { + "attributeName": "id", + "attributeType": "S" + } + ], + "keySchema": [ + { + "attributeName": "id", + "keyType": "HASH" + } + ], + "provisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "sseSpecification": { + "sseEnabled": false + }, + "streamSpecification": { + "streamViewType": "NEW_AND_OLD_IMAGES" + }, + "deletionProtectionEnabled": true, + "allowDestructiveGraphqlSchemaUpdates": true, + "replaceTableUponGsiUpdate": false, + "isImported": true, + "pointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "billingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/Note/NoteTable/Default/Default" + } + }, + "NoteIAMRoleCA742F19": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem", + "dynamodb:ConditionCheckItem", + "dynamodb:DescribeTable", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": "Note-m35dk4nrcna2hiz267tsvgu77y-x" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": "Note-m35dk4nrcna2hiz267tsvgu77y-x" + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess" + } + ], + "RoleName": { + "Fn::Join": [ + "", + [ + "NoteIAMRoleee5963-", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "-NONE" + ] + ] + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/Note/NoteIAMRole/Resource" + } + }, + "NoteDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "NoteTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + } + }, + "Name": "NoteTable", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "NoteIAMRoleCA742F19", + "Arn" + ] + }, + "Type": "AMAZON_DYNAMODB" + }, + "DependsOn": [ + "NoteIAMRoleCA742F19" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/Note/NoteDataSource/Resource" + } + }, + "QuerygetNoteauth0FunctionQuerygetNoteauth0FunctionAppSyncFunction1125F54B": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPINONEDSFC51E2F6Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetNoteauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/7c906bdbe9733fd35b13e9dbed01e27b56ec33b5bffcc7f829f2f82bc94c0fd1.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/Note/QuerygetNoteauth0Function/QuerygetNoteauth0Function.AppSyncFunction" + } + }, + "QuerygetNotepostAuth0FunctionQuerygetNotepostAuth0FunctionAppSyncFunctionBC9940CA": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPINONEDSFC51E2F6Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetNotepostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/Note/QuerygetNotepostAuth0Function/QuerygetNotepostAuth0Function.AppSyncFunction" + } + }, + "QueryGetNoteDataResolverFnQueryGetNoteDataResolverFnAppSyncFunction2F346125": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "NoteDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryGetNoteDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/08f4d557693d96c1a4efba0f9dc91330e4b19772fd5477c156468843e3d9cb5e.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4c6a2d29f01c6091bd1d9afe16e5849d456c96f17c3b215938c8067399532719.vtl" + } + }, + "DependsOn": [ + "NoteDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/Note/QueryGetNoteDataResolverFn/QueryGetNoteDataResolverFn.AppSyncFunction" + } + }, + "GetNoteResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "FieldName": "getNote", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerygetNoteauth0FunctionQuerygetNoteauth0FunctionAppSyncFunction1125F54B", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetNotepostAuth0FunctionQuerygetNotepostAuth0FunctionAppSyncFunctionBC9940CA", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryGetNoteDataResolverFnQueryGetNoteDataResolverFnAppSyncFunction2F346125", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getNote\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "NoteTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthauthenticatedUserRoleE0CA9703Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthunauthenticatedUserRole88DA1FC1Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthIdentityPool0BF026A3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/Note/queryGetNoteResolver" + } + }, + "QuerylistNotesauth0FunctionQuerylistNotesauth0FunctionAppSyncFunction4C828F45": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPINONEDSFC51E2F6Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerylistNotesauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/7c906bdbe9733fd35b13e9dbed01e27b56ec33b5bffcc7f829f2f82bc94c0fd1.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/Note/QuerylistNotesauth0Function/QuerylistNotesauth0Function.AppSyncFunction" + } + }, + "QuerylistNotespostAuth0FunctionQuerylistNotespostAuth0FunctionAppSyncFunctionCEA378D3": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPINONEDSFC51E2F6Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerylistNotespostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/Note/QuerylistNotespostAuth0Function/QuerylistNotespostAuth0Function.AppSyncFunction" + } + }, + "QueryListNotesDataResolverFnQueryListNotesDataResolverFnAppSyncFunctionBD5C872B": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "NoteDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryListNotesDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9fcbe070ecd3023c5bf5b966fa9584757db9762eef123bad0820bd87591b2174.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/cc01911d0269d4080ea57505dc445dfc315ef7ad85d3d9d4ea1357858bff451d.vtl" + } + }, + "DependsOn": [ + "NoteDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/Note/QueryListNotesDataResolverFn/QueryListNotesDataResolverFn.AppSyncFunction" + } + }, + "ListNoteResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "FieldName": "listNotes", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerylistNotesauth0FunctionQuerylistNotesauth0FunctionAppSyncFunction4C828F45", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerylistNotespostAuth0FunctionQuerylistNotespostAuth0FunctionAppSyncFunctionCEA378D3", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryListNotesDataResolverFnQueryListNotesDataResolverFnAppSyncFunctionBD5C872B", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listNotes\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "NoteTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthauthenticatedUserRoleE0CA9703Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthunauthenticatedUserRole88DA1FC1Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthIdentityPool0BF026A3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/Note/queryListNotesResolver" + } + }, + "MutationcreateNoteinit0FunctionMutationcreateNoteinit0FunctionAppSyncFunction336343A0": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPINONEDSFC51E2F6Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateNoteinit0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a183ddccbd956316c38ef97177b8f088ef0826f62023323f5ae6053d348ccffc.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/Note/MutationcreateNoteinit0Function/MutationcreateNoteinit0Function.AppSyncFunction" + } + }, + "MutationcreateNoteauth0FunctionMutationcreateNoteauth0FunctionAppSyncFunction24439C2F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPINONEDSFC51E2F6Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateNoteauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/88436a6d0fcb5ee5145caf121805717562e647839b222d7cc14896999031440e.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/Note/MutationcreateNoteauth0Function/MutationcreateNoteauth0Function.AppSyncFunction" + } + }, + "MutationcreateNotepostAuth0FunctionMutationcreateNotepostAuth0FunctionAppSyncFunction6D427EC4": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPINONEDSFC51E2F6Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateNotepostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/Note/MutationcreateNotepostAuth0Function/MutationcreateNotepostAuth0Function.AppSyncFunction" + } + }, + "MutationCreateNoteDataResolverFnMutationCreateNoteDataResolverFnAppSyncFunction591F5456": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "NoteDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationCreateNoteDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/ff42c2d8afe8e56420aefff0e56c2c3cd9771e3c157baaf27f2d1ed779904aee.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "NoteDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/Note/MutationCreateNoteDataResolverFn/MutationCreateNoteDataResolverFn.AppSyncFunction" + } + }, + "CreateNoteResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "FieldName": "createNote", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationcreateNoteinit0FunctionMutationcreateNoteinit0FunctionAppSyncFunction336343A0", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationcreateNoteauth0FunctionMutationcreateNoteauth0FunctionAppSyncFunction24439C2F", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationcreateNotepostAuth0FunctionMutationcreateNotepostAuth0FunctionAppSyncFunction6D427EC4", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationCreateNoteDataResolverFnMutationCreateNoteDataResolverFnAppSyncFunction591F5456", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createNote\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "NoteTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthauthenticatedUserRoleE0CA9703Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthunauthenticatedUserRole88DA1FC1Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthIdentityPool0BF026A3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/Note/mutationCreateNoteResolver" + } + }, + "MutationupdateNoteinit0FunctionMutationupdateNoteinit0FunctionAppSyncFunction19D28B0F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPINONEDSFC51E2F6Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateNoteinit0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/06db846fd14e6fc371f22b12b5545ba8e2dbfeda85d8c8d586c71c282166657b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/Note/MutationupdateNoteinit0Function/MutationupdateNoteinit0Function.AppSyncFunction" + } + }, + "MutationupdateNoteauth0FunctionMutationupdateNoteauth0FunctionAppSyncFunction72CAF43F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "NoteDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateNoteauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/8d451c43284998d89ae093797f2fbc9863d7ddccb0bc8b9af0446e6cc8d53c10.vtl" + } + }, + "DependsOn": [ + "NoteDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/Note/MutationupdateNoteauth0Function/MutationupdateNoteauth0Function.AppSyncFunction" + } + }, + "MutationupdateNotepostAuth0FunctionMutationupdateNotepostAuth0FunctionAppSyncFunction7DBB904D": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPINONEDSFC51E2F6Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateNotepostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/Note/MutationupdateNotepostAuth0Function/MutationupdateNotepostAuth0Function.AppSyncFunction" + } + }, + "MutationUpdateNoteDataResolverFnMutationUpdateNoteDataResolverFnAppSyncFunctionBCC5D9E4": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "NoteDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationUpdateNoteDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/474bf0776ec2164a13191d1a0a9e057154931e4918fea5086f49850d02a5371b.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "NoteDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/Note/MutationUpdateNoteDataResolverFn/MutationUpdateNoteDataResolverFn.AppSyncFunction" + } + }, + "UpdateNoteResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "FieldName": "updateNote", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationupdateNoteinit0FunctionMutationupdateNoteinit0FunctionAppSyncFunction19D28B0F", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationupdateNoteauth0FunctionMutationupdateNoteauth0FunctionAppSyncFunction72CAF43F", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationupdateNotepostAuth0FunctionMutationupdateNotepostAuth0FunctionAppSyncFunction7DBB904D", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationUpdateNoteDataResolverFnMutationUpdateNoteDataResolverFnAppSyncFunctionBCC5D9E4", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateNote\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "NoteTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthauthenticatedUserRoleE0CA9703Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthunauthenticatedUserRole88DA1FC1Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthIdentityPool0BF026A3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/Note/mutationUpdateNoteResolver" + } + }, + "MutationdeleteNoteauth0FunctionMutationdeleteNoteauth0FunctionAppSyncFunction5FE2B4D0": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "NoteDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeleteNoteauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e14ac558dabdaf7eadc441e4330555d896e6a0114fc97f2870d5bd99be02e97b.vtl" + } + }, + "DependsOn": [ + "NoteDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/Note/MutationdeleteNoteauth0Function/MutationdeleteNoteauth0Function.AppSyncFunction" + } + }, + "MutationdeleteNotepostAuth0FunctionMutationdeleteNotepostAuth0FunctionAppSyncFunction5E0783EF": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPINONEDSFC51E2F6Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeleteNotepostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/Note/MutationdeleteNotepostAuth0Function/MutationdeleteNotepostAuth0Function.AppSyncFunction" + } + }, + "MutationDeleteNoteDataResolverFnMutationDeleteNoteDataResolverFnAppSyncFunction3FA3FDA0": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "NoteDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationDeleteNoteDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4f7907d1209a2c9953a0c053df402c634e359546d70c7cc5c2e8e21ea734880f.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "NoteDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/Note/MutationDeleteNoteDataResolverFn/MutationDeleteNoteDataResolverFn.AppSyncFunction" + } + }, + "DeleteNoteResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "FieldName": "deleteNote", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationdeleteNoteauth0FunctionMutationdeleteNoteauth0FunctionAppSyncFunction5FE2B4D0", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationdeleteNotepostAuth0FunctionMutationdeleteNotepostAuth0FunctionAppSyncFunction5E0783EF", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationDeleteNoteDataResolverFnMutationDeleteNoteDataResolverFnAppSyncFunction3FA3FDA0", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteNote\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "NoteTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthauthenticatedUserRoleE0CA9703Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthunauthenticatedUserRole88DA1FC1Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthIdentityPool0BF026A3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/Note/mutationDeleteNoteResolver" + } + }, + "SubscriptiononCreateNoteauth0FunctionSubscriptiononCreateNoteauth0FunctionAppSyncFunction853C832F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPINONEDSFC51E2F6Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononCreateNoteauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/b6b51e3fdd85f7304c336111bc64ff4866c3aa25dff1ad03e23e75c95c9eb367.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/Note/SubscriptiononCreateNoteauth0Function/SubscriptiononCreateNoteauth0Function.AppSyncFunction" + } + }, + "SubscriptiononCreateNotepostAuth0FunctionSubscriptiononCreateNotepostAuth0FunctionAppSyncFunction2FE4DC1E": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPINONEDSFC51E2F6Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononCreateNotepostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/Note/SubscriptiononCreateNotepostAuth0Function/SubscriptiononCreateNotepostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnCreateNoteDataResolverFnSubscriptionOnCreateNoteDataResolverFnAppSyncFunction37D6FFF2": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPINONEDSFC51E2F6Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnCreateNoteDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/Note/SubscriptionOnCreateNoteDataResolverFn/SubscriptionOnCreateNoteDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononCreateNoteResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "FieldName": "onCreateNote", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononCreateNoteauth0FunctionSubscriptiononCreateNoteauth0FunctionAppSyncFunction853C832F", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononCreateNotepostAuth0FunctionSubscriptiononCreateNotepostAuth0FunctionAppSyncFunction2FE4DC1E", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnCreateNoteDataResolverFnSubscriptionOnCreateNoteDataResolverFnAppSyncFunction37D6FFF2", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateNote\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthauthenticatedUserRoleE0CA9703Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthunauthenticatedUserRole88DA1FC1Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthIdentityPool0BF026A3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/Note/subscriptionOnCreateNoteResolver" + } + }, + "SubscriptiononUpdateNoteauth0FunctionSubscriptiononUpdateNoteauth0FunctionAppSyncFunction2413D644": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPINONEDSFC51E2F6Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononUpdateNoteauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/b6b51e3fdd85f7304c336111bc64ff4866c3aa25dff1ad03e23e75c95c9eb367.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/Note/SubscriptiononUpdateNoteauth0Function/SubscriptiononUpdateNoteauth0Function.AppSyncFunction" + } + }, + "SubscriptiononUpdateNotepostAuth0FunctionSubscriptiononUpdateNotepostAuth0FunctionAppSyncFunction30ABF2EE": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPINONEDSFC51E2F6Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononUpdateNotepostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/Note/SubscriptiononUpdateNotepostAuth0Function/SubscriptiononUpdateNotepostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnUpdateNoteDataResolverFnSubscriptionOnUpdateNoteDataResolverFnAppSyncFunctionE4137817": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPINONEDSFC51E2F6Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnUpdateNoteDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/Note/SubscriptionOnUpdateNoteDataResolverFn/SubscriptionOnUpdateNoteDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononUpdateNoteResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "FieldName": "onUpdateNote", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononUpdateNoteauth0FunctionSubscriptiononUpdateNoteauth0FunctionAppSyncFunction2413D644", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononUpdateNotepostAuth0FunctionSubscriptiononUpdateNotepostAuth0FunctionAppSyncFunction30ABF2EE", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnUpdateNoteDataResolverFnSubscriptionOnUpdateNoteDataResolverFnAppSyncFunctionE4137817", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateNote\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthauthenticatedUserRoleE0CA9703Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthunauthenticatedUserRole88DA1FC1Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthIdentityPool0BF026A3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/Note/subscriptionOnUpdateNoteResolver" + } + }, + "SubscriptiononDeleteNoteauth0FunctionSubscriptiononDeleteNoteauth0FunctionAppSyncFunction1B717F3B": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPINONEDSFC51E2F6Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononDeleteNoteauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/b6b51e3fdd85f7304c336111bc64ff4866c3aa25dff1ad03e23e75c95c9eb367.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/Note/SubscriptiononDeleteNoteauth0Function/SubscriptiononDeleteNoteauth0Function.AppSyncFunction" + } + }, + "SubscriptiononDeleteNotepostAuth0FunctionSubscriptiononDeleteNotepostAuth0FunctionAppSyncFunction7D4AF5B3": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPINONEDSFC51E2F6Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononDeleteNotepostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/Note/SubscriptiononDeleteNotepostAuth0Function/SubscriptiononDeleteNotepostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnDeleteNoteDataResolverFnSubscriptionOnDeleteNoteDataResolverFnAppSyncFunctionA1CED045": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPINONEDSFC51E2F6Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnDeleteNoteDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/Note/SubscriptionOnDeleteNoteDataResolverFn/SubscriptionOnDeleteNoteDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononDeleteNoteResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "FieldName": "onDeleteNote", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononDeleteNoteauth0FunctionSubscriptiononDeleteNoteauth0FunctionAppSyncFunction1B717F3B", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononDeleteNotepostAuth0FunctionSubscriptiononDeleteNotepostAuth0FunctionAppSyncFunction7D4AF5B3", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnDeleteNoteDataResolverFnSubscriptionOnDeleteNoteDataResolverFnAppSyncFunctionA1CED045", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteNote\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthauthenticatedUserRoleE0CA9703Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthunauthenticatedUserRole88DA1FC1Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthIdentityPool0BF026A3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/Note/subscriptionOnDeleteNoteResolver" + } + }, + "NoteOwnerDataResolverFnNoteOwnerDataResolverFnAppSyncFunction66A7C72C": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPINONEDSFC51E2F6Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "NoteOwnerDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/041534e5fd916595f752318f161512d7c7f83b9f2cf32d0f0be381c12253ff68.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/064303962e481067b44300212516363b99aaee539b6bafaf756fdd83ff0b60f0.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/Note/NoteOwnerDataResolverFn/NoteOwnerDataResolverFn.AppSyncFunction" + } + }, + "NoteownerResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "FieldName": "owner", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "NoteOwnerDataResolverFnNoteOwnerDataResolverFnAppSyncFunction66A7C72C", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Note\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"owner\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthauthenticatedUserRoleE0CA9703Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthunauthenticatedUserRole88DA1FC1Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthIdentityPool0BF026A3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Note" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/Note/noteOwnerResolver" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOwW6DMAyGn6X31GNU230F7bhNsHtlEoNSwEGx06pCvPsEnTrt9PuTP9l/DvlLBtkOr7K3rt8PvoH5g0TJ1Yq2N0XLXxhxJKW4QhHYefWBTUUSUrRkiiQaxj9s+THjVU6zuzGOwTXwjc1ARxQyHkeYqzDc7TDQYnCa5MYW5nLTy6ZExfpx8j+9J7ZriSJw67sUcWv0+3m4UFyMHE4oQirwtoaRAxyT7UnXAsvqfiadkpptXSt2nrvFcHAEZ3m65Dk8v0K2O4v3+5hY/UhQ3fMHIPwRXTYBAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/Note/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Outputs": { + "GetAttNoteTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "NoteTable", + "TableStreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "GetAtt:NoteTable:StreamArn" + ] + ] + } + } + }, + "GetAttNoteTableName": { + "Description": "Your DynamoDB table name.", + "Value": "Note-m35dk4nrcna2hiz267tsvgu77y-x", + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + }, + "GetAtt:NoteTable:Name" + ] + ] + } + } + } + } +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-auth179371D7-x.description.txt b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-auth179371D7-x.description.txt new file mode 100644 index 00000000000..b66e3e0b9e2 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-auth179371D7-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"AmplifySandbox","createdWith":"1.11.2","stackType":"auth-Cognito","metadata":{}} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-auth179371D7-x.outputs.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-auth179371D7-x.outputs.json new file mode 100644 index 00000000000..701057c95ab --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-auth179371D7-x.outputs.json @@ -0,0 +1,42 @@ +[ + { + "OutputKey": "amplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthunauthenticatedUserRole88DA1FC1Ref", + "OutputValue": "amplify-mediavault2604142-amplifyAuthunauthenticate-IXwU5AR0tJSE" + }, + { + "OutputKey": "amplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthBasicGroupRole5656CA64Ref", + "OutputValue": "amplify-mediavault2604142-amplifyAuthBasicGroupRole-iDzIZ8EOmyl8" + }, + { + "OutputKey": "amplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthUserPoolE48AF738Ref", + "OutputValue": "us-east-1_nyb6Y32aT" + }, + { + "OutputKey": "amplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthUserPoolAppClient3FF96D05Ref", + "OutputValue": "562qu1idhs87d7hbcs4srtstr6" + }, + { + "OutputKey": "amplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthIdentityPool0BF026A3Ref", + "OutputValue": "us-east-1:7740513c-8837-4108-969d-d368bab19238" + }, + { + "OutputKey": "amplifymediavaulte2esandbox0a7f7fcf5aauthremoveuserfromgroupgen2xlambda43B78CC4Ref", + "OutputValue": "removeuserfromgroup-gen2-x" + }, + { + "OutputKey": "amplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthauthenticatedUserRoleE0CA9703Ref", + "OutputValue": "amplify-mediavault2604142-amplifyAuthauthenticatedU-eE1RG94dAZFh" + }, + { + "OutputKey": "amplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthAdminGroupRole56853334Ref", + "OutputValue": "amplify-mediavault2604142-amplifyAuthAdminGroupRole-7ODIVGGdVIyj" + }, + { + "OutputKey": "amplifymediavaulte2esandbox0a7f7fcf5aauthaddusertogroupgen2xlambdaDF249790Ref", + "OutputValue": "addusertogroup-gen2-x" + }, + { + "OutputKey": "amplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthUserPoolUserPoolDomain2807DB2ARef", + "OutputValue": "fec61c1d19f794c9931e" + } +] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-auth179371D7-x.parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-auth179371D7-x.parameters.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-auth179371D7-x.parameters.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-auth179371D7-x.template.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-auth179371D7-x.template.json new file mode 100644 index 00000000000..74c8a19d1bc --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-auth179371D7-x.template.json @@ -0,0 +1,1951 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", + "Resources": { + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AccountRecoverySetting": { + "RecoveryMechanisms": [ + { + "Name": "verified_email", + "Priority": 1 + } + ] + }, + "AdminCreateUserConfig": { + "AllowAdminCreateUserOnly": false + }, + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": 8, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false, + "TemporaryPasswordValidityDays": 7 + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "SmsVerificationMessage": "The verification code to your new account is {####}", + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolTags": { + "amplify:deployment-type": "sandbox", + "amplify:friendly-name": "amplifyAuth", + "created-by": "amplify" + }, + "UsernameAttributes": [ + "email", + "phone_number" + ], + "UsernameConfiguration": { + "CaseSensitive": false + }, + "VerificationMessageTemplate": { + "DefaultEmailOption": "CONFIRM_WITH_CODE", + "EmailMessage": "Your verification code is {####}", + "EmailSubject": "Your verification code", + "SmsMessage": "The verification code to your new account is {####}" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/auth/amplifyAuth/UserPool/Resource" + } + }, + "amplifyAuthUserPoolUserPoolDomain1F688B5B": { + "Type": "AWS::Cognito::UserPoolDomain", + "Properties": { + "Domain": "fec61c1d19f794c9931e", + "UserPoolId": { + "Ref": "amplifyAuthUserPool4BA7F805" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/auth/amplifyAuth/UserPool/UserPoolDomain/Resource" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlows": [ + "code" + ], + "AllowedOAuthFlowsUserPoolClient": true, + "AllowedOAuthScopes": [ + "aws.cognito.signin.user.admin", + "email", + "openid", + "phone", + "profile" + ], + "AuthSessionValidity": 3, + "CallbackURLs": [ + "https://main.mediavault.amplifyapp.com/" + ], + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "LogoutURLs": [ + "https://main.mediavault.amplifyapp.com/" + ], + "RefreshTokenValidity": 43200, + "SupportedIdentityProviders": [ + "COGNITO", + "Facebook", + "Google" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": { + "Ref": "amplifyAuthUserPool4BA7F805" + } + }, + "DependsOn": [ + "amplifyAuthFacebookIDP7CB5B5CC", + "amplifyAuthGoogleIdPA9736819" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, + "amplifyAuthGoogleIdPA9736819": { + "Type": "AWS::Cognito::UserPoolIdentityProvider", + "Properties": { + "AttributeMapping": { + "email": "email" + }, + "ProviderDetails": { + "client_id": "local-GOOGLE_CLIENT_ID", + "client_secret": "local-GOOGLE_CLIENT_SECRET", + "authorize_scopes": "profile" + }, + "ProviderName": "Google", + "ProviderType": "Google", + "UserPoolId": { + "Ref": "amplifyAuthUserPool4BA7F805" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/auth/amplifyAuth/GoogleIdP/Resource" + } + }, + "amplifyAuthFacebookIDP7CB5B5CC": { + "Type": "AWS::Cognito::UserPoolIdentityProvider", + "Properties": { + "AttributeMapping": { + "email": "email" + }, + "ProviderDetails": { + "client_id": "local-FACEBOOK_CLIENT_ID", + "client_secret": "local-FACEBOOK_CLIENT_SECRET", + "authorize_scopes": "public_profile" + }, + "ProviderName": "Facebook", + "ProviderType": "Facebook", + "UserPoolId": { + "Ref": "amplifyAuthUserPool4BA7F805" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/auth/amplifyAuth/FacebookIDP/Resource" + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlows": [ + "code" + ], + "AllowedOAuthFlowsUserPoolClient": true, + "AllowedOAuthScopes": [ + "phone", + "email", + "openid", + "profile", + "aws.cognito.signin.user.admin" + ], + "CallbackURLs": [ + "https://main.mediavault.amplifyapp.com/" + ], + "ExplicitAuthFlows": [ + "ALLOW_CUSTOM_AUTH", + "ALLOW_USER_SRP_AUTH", + "ALLOW_REFRESH_TOKEN_AUTH" + ], + "LogoutURLs": [ + "https://main.mediavault.amplifyapp.com/" + ], + "PreventUserExistenceErrors": "ENABLED", + "SupportedIdentityProviders": [ + { + "Ref": "amplifyAuthGoogleIdPA9736819" + }, + { + "Ref": "amplifyAuthFacebookIDP7CB5B5CC" + }, + "COGNITO" + ], + "UserPoolId": { + "Ref": "amplifyAuthUserPool4BA7F805" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/auth/amplifyAuth/UserPoolAppClient/Resource" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": true, + "CognitoIdentityProviders": [ + { + "ClientId": { + "Ref": "amplifyAuthUserPoolAppClient2626C6F8" + }, + "ProviderName": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + { + "Ref": "amplifyAuthUserPool4BA7F805" + } + ] + ] + } + } + ], + "IdentityPoolTags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "SupportedLoginProviders": { + "accounts.google.com": "local-GOOGLE_CLIENT_ID", + "graph.facebook.com": "local-FACEBOOK_CLIENT_ID" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/auth/amplifyAuth/IdentityPool" + } + }, + "amplifyAuthauthenticatedUserRoleD8DA3689": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/auth/amplifyAuth/authenticatedUserRole/Resource" + } + }, + "amplifyAuthunauthenticatedUserRole2B524D9E": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "unauthenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/auth/amplifyAuth/unauthenticatedUserRole/Resource" + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + }, + "RoleMappings": { + "UserPoolWebClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + { + "Ref": "amplifyAuthUserPool4BA7F805" + }, + ":", + { + "Ref": "amplifyAuthUserPoolAppClient2626C6F8" + } + ] + ] + }, + "Type": "Token" + } + }, + "Roles": { + "unauthenticated": { + "Fn::GetAtt": [ + "amplifyAuthunauthenticatedUserRole2B524D9E", + "Arn" + ] + }, + "authenticated": { + "Fn::GetAtt": [ + "amplifyAuthauthenticatedUserRoleD8DA3689", + "Arn" + ] + } + } + }, + "DependsOn": [ + "amplifyAuthIdentityPool3FDE84CC", + "amplifyAuthUserPoolAppClient2626C6F8" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/auth/amplifyAuth/IdentityPoolRoleAttachment" + } + }, + "amplifyAuthAdminGroupRole766878DC": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/auth/amplifyAuth/AdminGroupRole/Resource" + } + }, + "amplifyAuthAdminGroupCC42FF04": { + "Type": "AWS::Cognito::UserPoolGroup", + "Properties": { + "GroupName": "Admin", + "Precedence": 0, + "RoleArn": { + "Fn::GetAtt": [ + "amplifyAuthAdminGroupRole766878DC", + "Arn" + ] + }, + "UserPoolId": { + "Ref": "amplifyAuthUserPool4BA7F805" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/auth/amplifyAuth/AdminGroup" + } + }, + "amplifyAuthBasicGroupRole77B9C0CB": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/auth/amplifyAuth/BasicGroupRole/Resource" + } + }, + "amplifyAuthBasicGroupC4A5D75D": { + "Type": "AWS::Cognito::UserPoolGroup", + "Properties": { + "GroupName": "Basic", + "Precedence": 1, + "RoleArn": { + "Fn::GetAtt": [ + "amplifyAuthBasicGroupRole77B9C0CB", + "Arn" + ] + }, + "UserPoolId": { + "Ref": "amplifyAuthUserPool4BA7F805" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/auth/amplifyAuth/BasicGroup" + } + }, + "AMPLIFYAUTHUSERPOOLIDParameterCC466CA3": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/mediavault/e2e-sandbox-x/AMPLIFY_AUTH_USERPOOL_ID", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": { + "Ref": "amplifyAuthUserPool4BA7F805" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/auth/AMPLIFY_AUTH_USERPOOL_IDParameter/Resource" + } + }, + "addusertogroupgen2xlambdaServiceRole24DD047C": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "addusertogroup-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/auth/addusertogroup-gen2-x-lambda/ServiceRole/Resource" + } + }, + "addusertogroupgen2xlambdaServiceRoleDefaultPolicyF6AD9718": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "ssm:GetParameters", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":ssm:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":parameter/amplify/resource_reference/mediavault/e2e-sandbox-x/AMPLIFY_AUTH_USERPOOL_ID" + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "addusertogroupgen2xlambdaServiceRoleDefaultPolicyF6AD9718", + "Roles": [ + { + "Ref": "addusertogroupgen2xlambdaServiceRole24DD047C" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/auth/addusertogroup-gen2-x-lambda/ServiceRole/DefaultPolicy/Resource" + } + }, + "addusertogroupgen2xlambda9842E1F9": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Architectures": [ + "x86_64" + ], + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "a5107918830e76efc284772bcf98dd4a9bfb2ad99293a543731512973a3c8d01.zip" + }, + "Environment": { + "Variables": { + "ENV": "gen2-x", + "REGION": "us-east-1", + "AMPLIFY_SSM_ENV_CONFIG": "{\"AMPLIFY_AUTH_USERPOOL_ID\":{\"path\":\"/amplify/resource_reference/mediavault/e2e-sandbox-x/AMPLIFY_AUTH_USERPOOL_ID\"}}", + "AMPLIFY_AUTH_USERPOOL_ID": "", + "AUTH_MEDIAVAULT1F08412D_USERPOOLID": { + "Ref": "amplifyAuthUserPool4BA7F805" + } + } + }, + "EphemeralStorage": { + "Size": 512 + }, + "FunctionName": "addusertogroup-gen2-x", + "Handler": "index.handler", + "MemorySize": 128, + "Role": { + "Fn::GetAtt": [ + "addusertogroupgen2xlambdaServiceRole24DD047C", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "addusertogroup-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 25 + }, + "DependsOn": [ + "addusertogroupgen2xlambdaServiceRole24DD047C" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/auth/addusertogroup-gen2-x-lambda/Resource", + "aws:asset:path": "asset.a5107918830e76efc284772bcf98dd4a9bfb2ad99293a543731512973a3c8d01", + "aws:asset:is-bundled": true, + "aws:asset:property": "Code" + } + }, + "userpoolAccess13FEE5419": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "cognito-idp:AdminConfirmSignUp", + "cognito-idp:AdminCreateUser", + "cognito-idp:AdminDeleteUser", + "cognito-idp:AdminDeleteUserAttributes", + "cognito-idp:AdminDisableUser", + "cognito-idp:AdminEnableUser", + "cognito-idp:AdminGetUser", + "cognito-idp:AdminListGroupsForUser", + "cognito-idp:AdminRespondToAuthChallenge", + "cognito-idp:AdminSetUserMFAPreference", + "cognito-idp:AdminSetUserSettings", + "cognito-idp:AdminUpdateUserAttributes", + "cognito-idp:AdminUserGlobalSignOut" + ], + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "amplifyAuthUserPool4BA7F805", + "Arn" + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess13FEE5419", + "Roles": [ + { + "Ref": "addusertogroupgen2xlambdaServiceRole24DD047C" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/auth/userpoolAccess1/Resource" + } + }, + "userpoolAccess268F187DB": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "cognito-idp:AdminAddUserToGroup", + "cognito-idp:AdminRemoveUserFromGroup" + ], + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "amplifyAuthUserPool4BA7F805", + "Arn" + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess268F187DB", + "Roles": [ + { + "Ref": "addusertogroupgen2xlambdaServiceRole24DD047C" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/auth/userpoolAccess2/Resource" + } + }, + "userpoolAccess3956C62F8": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "cognito-idp:AdminForgetDevice", + "cognito-idp:AdminGetDevice", + "cognito-idp:AdminListDevices", + "cognito-idp:AdminUpdateDeviceStatus" + ], + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "amplifyAuthUserPool4BA7F805", + "Arn" + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess3956C62F8", + "Roles": [ + { + "Ref": "addusertogroupgen2xlambdaServiceRole24DD047C" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/auth/userpoolAccess3/Resource" + } + }, + "userpoolAccess4A84025C3": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "cognito-idp:AdminResetUserPassword", + "cognito-idp:AdminSetUserPassword" + ], + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "amplifyAuthUserPool4BA7F805", + "Arn" + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess4A84025C3", + "Roles": [ + { + "Ref": "addusertogroupgen2xlambdaServiceRole24DD047C" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/auth/userpoolAccess4/Resource" + } + }, + "userpoolAccess585E2FB32": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:AdminSetUserMFAPreference", + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "amplifyAuthUserPool4BA7F805", + "Arn" + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess585E2FB32", + "Roles": [ + { + "Ref": "addusertogroupgen2xlambdaServiceRole24DD047C" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/auth/userpoolAccess5/Resource" + } + }, + "userpoolAccess600DA4CB0": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:AdminUpdateUserAttributes", + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "amplifyAuthUserPool4BA7F805", + "Arn" + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess600DA4CB0", + "Roles": [ + { + "Ref": "addusertogroupgen2xlambdaServiceRole24DD047C" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/auth/userpoolAccess6/Resource" + } + }, + "userpoolAccess76F9C91C1": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:AdminForgetDevice", + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "amplifyAuthUserPool4BA7F805", + "Arn" + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess76F9C91C1", + "Roles": [ + { + "Ref": "addusertogroupgen2xlambdaServiceRole24DD047C" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/auth/userpoolAccess7/Resource" + } + }, + "userpoolAccess85C1BE724": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:AdminSetUserSettings", + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "amplifyAuthUserPool4BA7F805", + "Arn" + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess85C1BE724", + "Roles": [ + { + "Ref": "addusertogroupgen2xlambdaServiceRole24DD047C" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/auth/userpoolAccess8/Resource" + } + }, + "userpoolAccess919BF17A1": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:ListUsers", + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "amplifyAuthUserPool4BA7F805", + "Arn" + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess919BF17A1", + "Roles": [ + { + "Ref": "addusertogroupgen2xlambdaServiceRole24DD047C" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/auth/userpoolAccess9/Resource" + } + }, + "userpoolAccess103DE3A3DA": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:ListUsersInGroup", + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "amplifyAuthUserPool4BA7F805", + "Arn" + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess103DE3A3DA", + "Roles": [ + { + "Ref": "addusertogroupgen2xlambdaServiceRole24DD047C" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/auth/userpoolAccess10/Resource" + } + }, + "userpoolAccess114E9EE2D5": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:ListGroups", + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "amplifyAuthUserPool4BA7F805", + "Arn" + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess114E9EE2D5", + "Roles": [ + { + "Ref": "addusertogroupgen2xlambdaServiceRole24DD047C" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/auth/userpoolAccess11/Resource" + } + }, + "removeuserfromgroupgen2xlambdaServiceRole672F6722": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "removeuserfromgroup-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/auth/removeuserfromgroup-gen2-x-lambda/ServiceRole/Resource" + } + }, + "removeuserfromgroupgen2xlambdaServiceRoleDefaultPolicyF6192CB1": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "ssm:GetParameters", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":ssm:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":parameter/amplify/resource_reference/mediavault/e2e-sandbox-x/AMPLIFY_AUTH_USERPOOL_ID" + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "removeuserfromgroupgen2xlambdaServiceRoleDefaultPolicyF6192CB1", + "Roles": [ + { + "Ref": "removeuserfromgroupgen2xlambdaServiceRole672F6722" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/auth/removeuserfromgroup-gen2-x-lambda/ServiceRole/DefaultPolicy/Resource" + } + }, + "removeuserfromgroupgen2xlambda099C180A": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Architectures": [ + "x86_64" + ], + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "23d12f18d4528f485b490136d4cb8c0e5b34cff43a92ce8fd96a357111320fff.zip" + }, + "Environment": { + "Variables": { + "ENV": "gen2-x", + "REGION": "us-east-1", + "AMPLIFY_SSM_ENV_CONFIG": "{\"AMPLIFY_AUTH_USERPOOL_ID\":{\"path\":\"/amplify/resource_reference/mediavault/e2e-sandbox-x/AMPLIFY_AUTH_USERPOOL_ID\"}}", + "AMPLIFY_AUTH_USERPOOL_ID": "", + "AUTH_MEDIAVAULT1F08412D_USERPOOLID": { + "Ref": "amplifyAuthUserPool4BA7F805" + } + } + }, + "EphemeralStorage": { + "Size": 512 + }, + "FunctionName": "removeuserfromgroup-gen2-x", + "Handler": "index.handler", + "MemorySize": 128, + "Role": { + "Fn::GetAtt": [ + "removeuserfromgroupgen2xlambdaServiceRole672F6722", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "removeuserfromgroup-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 25 + }, + "DependsOn": [ + "removeuserfromgroupgen2xlambdaServiceRole672F6722" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/auth/removeuserfromgroup-gen2-x-lambda/Resource", + "aws:asset:path": "asset.23d12f18d4528f485b490136d4cb8c0e5b34cff43a92ce8fd96a357111320fff", + "aws:asset:is-bundled": true, + "aws:asset:property": "Code" + } + }, + "userpoolAccess1268A998CE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "cognito-idp:AdminConfirmSignUp", + "cognito-idp:AdminCreateUser", + "cognito-idp:AdminDeleteUser", + "cognito-idp:AdminDeleteUserAttributes", + "cognito-idp:AdminDisableUser", + "cognito-idp:AdminEnableUser", + "cognito-idp:AdminGetUser", + "cognito-idp:AdminListGroupsForUser", + "cognito-idp:AdminRespondToAuthChallenge", + "cognito-idp:AdminSetUserMFAPreference", + "cognito-idp:AdminSetUserSettings", + "cognito-idp:AdminUpdateUserAttributes", + "cognito-idp:AdminUserGlobalSignOut" + ], + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "amplifyAuthUserPool4BA7F805", + "Arn" + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess1268A998CE", + "Roles": [ + { + "Ref": "removeuserfromgroupgen2xlambdaServiceRole672F6722" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/auth/userpoolAccess12/Resource" + } + }, + "userpoolAccess13BB9602E6": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "cognito-idp:AdminAddUserToGroup", + "cognito-idp:AdminRemoveUserFromGroup" + ], + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "amplifyAuthUserPool4BA7F805", + "Arn" + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess13BB9602E6", + "Roles": [ + { + "Ref": "removeuserfromgroupgen2xlambdaServiceRole672F6722" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/auth/userpoolAccess13/Resource" + } + }, + "userpoolAccess140CE1F2B0": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "cognito-idp:AdminForgetDevice", + "cognito-idp:AdminGetDevice", + "cognito-idp:AdminListDevices", + "cognito-idp:AdminUpdateDeviceStatus" + ], + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "amplifyAuthUserPool4BA7F805", + "Arn" + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess140CE1F2B0", + "Roles": [ + { + "Ref": "removeuserfromgroupgen2xlambdaServiceRole672F6722" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/auth/userpoolAccess14/Resource" + } + }, + "userpoolAccess1530C05CCB": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "cognito-idp:AdminResetUserPassword", + "cognito-idp:AdminSetUserPassword" + ], + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "amplifyAuthUserPool4BA7F805", + "Arn" + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess1530C05CCB", + "Roles": [ + { + "Ref": "removeuserfromgroupgen2xlambdaServiceRole672F6722" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/auth/userpoolAccess15/Resource" + } + }, + "userpoolAccess1676F22644": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:AdminSetUserMFAPreference", + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "amplifyAuthUserPool4BA7F805", + "Arn" + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess1676F22644", + "Roles": [ + { + "Ref": "removeuserfromgroupgen2xlambdaServiceRole672F6722" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/auth/userpoolAccess16/Resource" + } + }, + "userpoolAccess17CAC1A603": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:AdminUpdateUserAttributes", + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "amplifyAuthUserPool4BA7F805", + "Arn" + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess17CAC1A603", + "Roles": [ + { + "Ref": "removeuserfromgroupgen2xlambdaServiceRole672F6722" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/auth/userpoolAccess17/Resource" + } + }, + "userpoolAccess182B4CED9F": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:AdminForgetDevice", + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "amplifyAuthUserPool4BA7F805", + "Arn" + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess182B4CED9F", + "Roles": [ + { + "Ref": "removeuserfromgroupgen2xlambdaServiceRole672F6722" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/auth/userpoolAccess18/Resource" + } + }, + "userpoolAccess1965647B18": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:AdminSetUserSettings", + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "amplifyAuthUserPool4BA7F805", + "Arn" + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess1965647B18", + "Roles": [ + { + "Ref": "removeuserfromgroupgen2xlambdaServiceRole672F6722" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/auth/userpoolAccess19/Resource" + } + }, + "userpoolAccess20B9A60CFD": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:ListUsers", + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "amplifyAuthUserPool4BA7F805", + "Arn" + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess20B9A60CFD", + "Roles": [ + { + "Ref": "removeuserfromgroupgen2xlambdaServiceRole672F6722" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/auth/userpoolAccess20/Resource" + } + }, + "userpoolAccess2154951E65": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:ListUsersInGroup", + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "amplifyAuthUserPool4BA7F805", + "Arn" + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess2154951E65", + "Roles": [ + { + "Ref": "removeuserfromgroupgen2xlambdaServiceRole672F6722" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/auth/userpoolAccess21/Resource" + } + }, + "userpoolAccess226D8BB3D4": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "cognito-idp:ListGroups", + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "amplifyAuthUserPool4BA7F805", + "Arn" + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess226D8BB3D4", + "Roles": [ + { + "Ref": "removeuserfromgroupgen2xlambdaServiceRole672F6722" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/auth/userpoolAccess22/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/3VOzWrCQBB+Fu/r1kbau1qUXiQoPcu4GeOY7E7ZmSgS8u4lMZEg9PT9D5PY5GNmZxO4ydRlxbSko623KIrZXsEVBm5yqB3ngZRt/SMYU+bSrE7hyQfyxR4ojKPeGeSqJAw6LvTOIL8zDEp6TyNfKcO4Yc5LHA9eG/9O1+DwyFy042fWfz7WOy5xoQru7F9+20SufhtD4G3dttqsw5RLcvdWPlhjRLyt9xop5ClE8KgYu3wQjSnBHzM4BM7wInbbwboKTomDkfkBRFDFLlowMrfLyhWoSxDsp3Z1CsOgMV1vr5BTyBvTXrUXebsmiX3/tLPJRYimsQpKHu3ugX/puYyf6wEAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/auth/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthUserPoolE48AF738Ref": { + "Value": { + "Ref": "amplifyAuthUserPool4BA7F805" + } + }, + "amplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthUserPoolAppClient3FF96D05Ref": { + "Value": { + "Ref": "amplifyAuthUserPoolAppClient2626C6F8" + } + }, + "amplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthIdentityPool0BF026A3Ref": { + "Value": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } + }, + "amplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthUserPoolUserPoolDomain2807DB2ARef": { + "Value": { + "Ref": "amplifyAuthUserPoolUserPoolDomain1F688B5B" + } + }, + "amplifymediavaulte2esandbox0a7f7fcf5aauthaddusertogroupgen2xlambdaDF249790Ref": { + "Value": { + "Ref": "addusertogroupgen2xlambda9842E1F9" + } + }, + "amplifymediavaulte2esandbox0a7f7fcf5aauthremoveuserfromgroupgen2xlambda43B78CC4Ref": { + "Value": { + "Ref": "removeuserfromgroupgen2xlambda099C180A" + } + }, + "amplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthauthenticatedUserRoleE0CA9703Ref": { + "Value": { + "Ref": "amplifyAuthauthenticatedUserRoleD8DA3689" + } + }, + "amplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthunauthenticatedUserRole88DA1FC1Ref": { + "Value": { + "Ref": "amplifyAuthunauthenticatedUserRole2B524D9E" + } + }, + "amplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthAdminGroupRole56853334Ref": { + "Value": { + "Ref": "amplifyAuthAdminGroupRole766878DC" + } + }, + "amplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthBasicGroupRole5656CA64Ref": { + "Value": { + "Ref": "amplifyAuthBasicGroupRole77B9C0CB" + } + } + } +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-data7552DF31-x.description.txt b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-data7552DF31-x.description.txt new file mode 100644 index 00000000000..e1c50802cb1 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-data7552DF31-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"AmplifySandbox","createdWith":"1.21.2","stackType":"api-AppSync","metadata":{"dataSources":"dynamodb","authorizationModes":"amazon_cognito_identity_pools,amazon_cognito_user_pools,api_key,aws_iam","customOperations":"queries"}} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-data7552DF31-x.outputs.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-data7552DF31-x.outputs.json new file mode 100644 index 00000000000..36c5ee41156 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-data7552DF31-x.outputs.json @@ -0,0 +1,18 @@ +[ + { + "OutputKey": "amplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB7F964333DestinationBucketArn", + "OutputValue": "arn:aws:s3:::amplify-mediavault2604142-amplifydataamplifycodege-fz46uttmwbyd" + }, + { + "OutputKey": "amplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId", + "OutputValue": "wxqxmfnao5dgtoc4j7tvafb4ti" + }, + { + "OutputKey": "amplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIDefaultApiKeyA4DABB13ApiKey", + "OutputValue": "da2-fakeapikey00000000000000" + }, + { + "OutputKey": "amplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574GraphQLUrl", + "OutputValue": "https://r26utga6pnf6bebsk56unkjeta.appsync-api.us-east-1.amazonaws.com/graphql" + } +] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-data7552DF31-x.parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-data7552DF31-x.parameters.json new file mode 100644 index 00000000000..68082247436 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-data7552DF31-x.parameters.json @@ -0,0 +1,38 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthauthenticatedUserRoleE0CA9703Ref", + "ParameterValue": "amplify-mediavault2604142-amplifyAuthauthenticatedU-eE1RG94dAZFh" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "true" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthunauthenticatedUserRole88DA1FC1Ref", + "ParameterValue": "amplify-mediavault2604142-amplifyAuthunauthenticate-IXwU5AR0tJSE" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthIdentityPool0BF026A3Ref", + "ParameterValue": "us-east-1:7740513c-8837-4108-969d-d368bab19238" + }, + { + "ParameterKey": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthUserPoolE48AF738Ref", + "ParameterValue": "us-east-1_nyb6Y32aT" + } +] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-data7552DF31-x.template.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-data7552DF31-x.template.json new file mode 100644 index 00000000000..8a92696cf87 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-data7552DF31-x.template.json @@ -0,0 +1,2105 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.21.2\",\"stackType\":\"api-AppSync\",\"metadata\":{\"dataSources\":\"dynamodb\",\"authorizationModes\":\"amazon_cognito_identity_pools,amazon_cognito_user_pools,api_key,aws_iam\",\"customOperations\":\"queries\"}}", + "Resources": { + "amplifyDataGraphQLAPI42A6FA33": { + "Type": "AWS::AppSync::GraphQLApi", + "Properties": { + "AdditionalAuthenticationProviders": [ + { + "AuthenticationType": "API_KEY" + } + ], + "AuthenticationType": "AMAZON_COGNITO_USER_POOLS", + "Name": "amplifyData", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "UserPoolConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "DefaultAction": "ALLOW", + "UserPoolId": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthUserPoolE48AF738Ref" + } + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/GraphQLAPI/Resource" + } + }, + "amplifyDataGraphQLAPITransformerSchemaFF50A789": { + "Type": "AWS::AppSync::GraphQLSchema", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "DefinitionS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4f7a8f022556572c5da3d2d1ca7f22bf2e386d4e3d69b67708c6d2e264471faa.graphql" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/GraphQLAPI/TransformerSchema" + } + }, + "amplifyDataGraphQLAPIDefaultApiKey1C8ED374": { + "Type": "AWS::AppSync::ApiKey", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "Description": "graphql", + "Expires": 1784865770 + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/GraphQLAPI/DefaultApiKey" + } + }, + "amplifyDataGraphQLAPINONEDS684BF699": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "Name": "NONE_DS", + "Type": "NONE" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/GraphQLAPI/NONE_DS/Resource" + } + }, + "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/2cc52d294123c8665560e7140b0d1b7a9506bc81e116a5a63a9c6eba2cfc54f7.json" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/AmplifyTableManager.NestedStack/AmplifyTableManager.NestedStackResource", + "aws:asset:path": "amplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataAmplifyTableManagerCB9C56C1.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "amplifyDataNoteNestedStackNoteNestedStackResourceA19C7467": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource979F4AE1Outputsamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataAmplifyTableManagerTab3B37F2C7": { + "Fn::GetAtt": [ + "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833", + "Outputs.amplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEventB2AB9C44Arn" + ] + }, + "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPINONEDSFC51E2F6Name": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + }, + "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthauthenticatedUserRoleE0CA9703Ref": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthauthenticatedUserRoleE0CA9703Ref" + }, + "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthunauthenticatedUserRole88DA1FC1Ref": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthunauthenticatedUserRole88DA1FC1Ref" + }, + "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthIdentityPool0BF026A3Ref": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthIdentityPool0BF026A3Ref" + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/2d6ebd0d3bab19a3a0a44b64e6f7567c1e873b3678b096a12ff6a3b16a70603f.json" + ] + ] + } + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/Note.NestedStack/Note.NestedStackResource", + "aws:asset:path": "amplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataNoteFEB3964C.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "amplifyDataFunctionDirectiveStackNestedStackFunctionDirectiveStackNestedStackResource1246A302": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthauthenticatedUserRoleE0CA9703Ref": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthauthenticatedUserRoleE0CA9703Ref" + }, + "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthunauthenticatedUserRole88DA1FC1Ref": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthunauthenticatedUserRole88DA1FC1Ref" + }, + "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthIdentityPool0BF026A3Ref": { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthIdentityPool0BF026A3Ref" + }, + "referencetoamplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPINONEDSFC51E2F6Name": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/fd70ec50c58f63e64bfdc373cedf1d64b96b08031f6e0b87042fea6f5944b017.json" + ] + ] + } + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack.NestedStack/FunctionDirectiveStack.NestedStackResource", + "aws:asset:path": "amplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataFunctionDirectiveStackFFF8C987.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "amplifyDataGenerateThumbnailResponseStatusCodeDataResolverFnGenerateThumbnailResponseStatusCodeDataResolverFnAppSyncFunction6FCF5D3E": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "DataSourceName": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "GenerateThumbnailResponseStatusCodeDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/51a85507e183997593ea552e60839d397f7d5c4a142ea4bbd94ba699ae389e89.vtl" + } + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/GenerateThumbnailResponseStatusCodeDataResolverFn/GenerateThumbnailResponseStatusCodeDataResolverFn.AppSyncFunction" + } + }, + "GenerateThumbnailResponsestatusCodeResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "FieldName": "statusCode", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "amplifyDataGenerateThumbnailResponseStatusCodeDataResolverFnGenerateThumbnailResponseStatusCodeDataResolverFnAppSyncFunction6FCF5D3E", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"GenerateThumbnailResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"statusCode\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthauthenticatedUserRoleE0CA9703Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthunauthenticatedUserRole88DA1FC1Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthIdentityPool0BF026A3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "GenerateThumbnailResponse" + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/generateThumbnailResponseStatusCodeResolver" + } + }, + "amplifyDataGenerateThumbnailResponseMessageDataResolverFnGenerateThumbnailResponseMessageDataResolverFnAppSyncFunctionCE5F0E6D": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "DataSourceName": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "GenerateThumbnailResponseMessageDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e5ac72a83d18a0cb18ce60e30414111cc0d76e69bd8d494c413d5b55a20705f5.vtl" + } + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/GenerateThumbnailResponseMessageDataResolverFn/GenerateThumbnailResponseMessageDataResolverFn.AppSyncFunction" + } + }, + "GenerateThumbnailResponsemessageResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "FieldName": "message", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "amplifyDataGenerateThumbnailResponseMessageDataResolverFnGenerateThumbnailResponseMessageDataResolverFnAppSyncFunctionCE5F0E6D", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"GenerateThumbnailResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"message\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthauthenticatedUserRoleE0CA9703Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthunauthenticatedUserRole88DA1FC1Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthIdentityPool0BF026A3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "GenerateThumbnailResponse" + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/generateThumbnailResponseMessageResolver" + } + }, + "amplifyDataAddUserToGroupResponseStatusCodeDataResolverFnAddUserToGroupResponseStatusCodeDataResolverFnAppSyncFunctionD6514B24": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "DataSourceName": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "AddUserToGroupResponseStatusCodeDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/51a85507e183997593ea552e60839d397f7d5c4a142ea4bbd94ba699ae389e89.vtl" + } + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/AddUserToGroupResponseStatusCodeDataResolverFn/AddUserToGroupResponseStatusCodeDataResolverFn.AppSyncFunction" + } + }, + "AddUserToGroupResponsestatusCodeResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "FieldName": "statusCode", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "amplifyDataAddUserToGroupResponseStatusCodeDataResolverFnAddUserToGroupResponseStatusCodeDataResolverFnAppSyncFunctionD6514B24", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"AddUserToGroupResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"statusCode\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthauthenticatedUserRoleE0CA9703Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthunauthenticatedUserRole88DA1FC1Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthIdentityPool0BF026A3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "AddUserToGroupResponse" + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/addUserToGroupResponseStatusCodeResolver" + } + }, + "amplifyDataAddUserToGroupResponseMessageDataResolverFnAddUserToGroupResponseMessageDataResolverFnAppSyncFunction6FA5891E": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "DataSourceName": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "AddUserToGroupResponseMessageDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e5ac72a83d18a0cb18ce60e30414111cc0d76e69bd8d494c413d5b55a20705f5.vtl" + } + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/AddUserToGroupResponseMessageDataResolverFn/AddUserToGroupResponseMessageDataResolverFn.AppSyncFunction" + } + }, + "AddUserToGroupResponsemessageResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "FieldName": "message", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "amplifyDataAddUserToGroupResponseMessageDataResolverFnAddUserToGroupResponseMessageDataResolverFnAppSyncFunction6FA5891E", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"AddUserToGroupResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"message\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthauthenticatedUserRoleE0CA9703Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthunauthenticatedUserRole88DA1FC1Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthIdentityPool0BF026A3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "AddUserToGroupResponse" + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/addUserToGroupResponseMessageResolver" + } + }, + "amplifyDataRemoveUserFromGroupResponseStatusCodeDataResolverFnRemoveUserFromGroupResponseStatusCodeDataResolverFnAppSyncFunction6C006388": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "DataSourceName": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "RemoveUserFromGroupResponseStatusCodeDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/51a85507e183997593ea552e60839d397f7d5c4a142ea4bbd94ba699ae389e89.vtl" + } + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/RemoveUserFromGroupResponseStatusCodeDataResolverFn/RemoveUserFromGroupResponseStatusCodeDataResolverFn.AppSyncFunction" + } + }, + "RemoveUserFromGroupResponsestatusCodeResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "FieldName": "statusCode", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "amplifyDataRemoveUserFromGroupResponseStatusCodeDataResolverFnRemoveUserFromGroupResponseStatusCodeDataResolverFnAppSyncFunction6C006388", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"RemoveUserFromGroupResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"statusCode\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthauthenticatedUserRoleE0CA9703Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthunauthenticatedUserRole88DA1FC1Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthIdentityPool0BF026A3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "RemoveUserFromGroupResponse" + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/removeUserFromGroupResponseStatusCodeResolver" + } + }, + "amplifyDataRemoveUserFromGroupResponseMessageDataResolverFnRemoveUserFromGroupResponseMessageDataResolverFnAppSyncFunctionA9A75DA6": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "DataSourceName": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "RemoveUserFromGroupResponseMessageDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e5ac72a83d18a0cb18ce60e30414111cc0d76e69bd8d494c413d5b55a20705f5.vtl" + } + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/RemoveUserFromGroupResponseMessageDataResolverFn/RemoveUserFromGroupResponseMessageDataResolverFn.AppSyncFunction" + } + }, + "RemoveUserFromGroupResponsemessageResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "FieldName": "message", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "amplifyDataRemoveUserFromGroupResponseMessageDataResolverFnRemoveUserFromGroupResponseMessageDataResolverFnAppSyncFunctionA9A75DA6", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"RemoveUserFromGroupResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"message\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthauthenticatedUserRoleE0CA9703Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthunauthenticatedUserRole88DA1FC1Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthIdentityPool0BF026A3Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "RemoveUserFromGroupResponse" + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/removeUserFromGroupResponseMessageResolver" + } + }, + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA": { + "Type": "AWS::S3::Bucket", + "Properties": { + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD" + ], + "AllowedOrigins": [ + { + "Fn::Join": [ + "", + [ + "https://", + { + "Ref": "AWS::Region" + }, + ".console.aws.amazon.com/amplify" + ] + ] + } + ] + } + ] + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "aws-cdk:cr-owned:5fa2f04f", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/Resource" + } + }, + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucketPolicyF1C1C548": { + "Type": "AWS::S3::BucketPolicy", + "Properties": { + "Bucket": { + "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" + }, + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "s3:PutBucketPolicy", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*" + ], + "Effect": "Allow", + "Principal": { + "AWS": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + } + }, + "Resource": [ + { + "Fn::GetAtt": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/Policy/Resource" + } + }, + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucketAutoDeleteObjectsCustomResource437F26F5": { + "Type": "Custom::S3AutoDeleteObjects", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "Arn" + ] + }, + "BucketName": { + "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" + } + }, + "DependsOn": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucketPolicyF1C1C548" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/AutoDeleteObjectsCustomResource/Default" + } + }, + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentAwsCliLayerE322F905": { + "Type": "AWS::Lambda::LayerVersion", + "Properties": { + "Content": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "e2659170a0721541efa761a8d5d04d5e36cbbf691c4b15a9053002b7c825055d.zip" + }, + "Description": "/opt/awscli/aws" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsDeployment/AwsCliLayer/Resource", + "aws:asset:path": "asset.e2659170a0721541efa761a8d5d04d5e36cbbf691c4b15a9053002b7c825055d.zip", + "aws:asset:is-bundled": false, + "aws:asset:property": "Content" + } + }, + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB21775929": { + "Type": "Custom::CDKBucketDeployment", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBC5D8AB21", + "Arn" + ] + }, + "SourceBucketNames": [ + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + } + ], + "SourceObjectKeys": [ + "9d74b36005d11021e79736dc33999f69ffc49e9d728de41d0e66ef011e3ca2d9.zip" + ], + "SourceMarkers": [ + {} + ], + "DestinationBucketName": { + "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" + }, + "WaitForDistributionInvalidation": true, + "Prune": true, + "OutputObjectKeys": true, + "DestinationBucketArn": { + "Fn::GetAtt": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", + "Arn" + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsDeployment/CustomResource-1536MiB/Default" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ] + }, + "ManagedPolicyArns": [ + { + "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" + }, + "Timeout": 900, + "MemorySize": 128, + "Handler": "index.handler", + "Role": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Description": { + "Fn::Join": [ + "", + [ + "Lambda function for auto-deleting objects in ", + { + "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" + }, + " S3 bucket." + ] + ] + } + }, + "DependsOn": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", + "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", + "aws:asset:property": "Code" + } + }, + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/ServiceRole/Resource" + } + }, + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleDefaultPolicyFF1C635B": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "s3:GetObject*", + "s3:GetBucket*", + "s3:List*" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":s3:::", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + } + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":s3:::", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/*" + ] + ] + } + ] + }, + { + "Action": [ + "s3:GetObject*", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*", + "s3:PutObject", + "s3:PutObjectLegalHold", + "s3:PutObjectRetention", + "s3:PutObjectTagging", + "s3:PutObjectVersionTagging", + "s3:Abort*" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + }, + { + "Action": [ + "s3:GetObject*", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*", + "s3:PutObject", + "s3:PutObjectLegalHold", + "s3:PutObjectRetention", + "s3:PutObjectTagging", + "s3:PutObjectVersionTagging", + "s3:Abort*" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "modelIntrospectionSchemaBucketF566B665", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "modelIntrospectionSchemaBucketF566B665", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleDefaultPolicyFF1C635B", + "Roles": [ + { + "Ref": "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/ServiceRole/DefaultPolicy/Resource" + } + }, + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBC5D8AB21": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "3423a042b818e31c1e34a19d6689ab2e5f9b70fcbe9e71df66f241b20a200bd9.zip" + }, + "Environment": { + "Variables": { + "AWS_CA_BUNDLE": "/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem" + } + }, + "Handler": "index.handler", + "Layers": [ + { + "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentAwsCliLayerE322F905" + } + ], + "MemorySize": 1536, + "Role": { + "Fn::GetAtt": [ + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2", + "Arn" + ] + }, + "Runtime": "python3.13", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 900 + }, + "DependsOn": [ + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleDefaultPolicyFF1C635B", + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/Resource", + "aws:asset:path": "asset.3423a042b818e31c1e34a19d6689ab2e5f9b70fcbe9e71df66f241b20a200bd9", + "aws:asset:is-bundled": false, + "aws:asset:property": "Code" + } + }, + "modelIntrospectionSchemaBucketF566B665": { + "Type": "AWS::S3::Bucket", + "Properties": { + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "aws-cdk:cr-owned:20e619a8", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/modelIntrospectionSchemaBucket/Resource" + } + }, + "modelIntrospectionSchemaBucketPolicy4DAB0D15": { + "Type": "AWS::S3::BucketPolicy", + "Properties": { + "Bucket": { + "Ref": "modelIntrospectionSchemaBucketF566B665" + }, + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:*", + "Condition": { + "Bool": { + "aws:SecureTransport": "false" + } + }, + "Effect": "Deny", + "Principal": { + "AWS": "*" + }, + "Resource": [ + { + "Fn::GetAtt": [ + "modelIntrospectionSchemaBucketF566B665", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "modelIntrospectionSchemaBucketF566B665", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + }, + { + "Action": [ + "s3:PutBucketPolicy", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*" + ], + "Effect": "Allow", + "Principal": { + "AWS": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + } + }, + "Resource": [ + { + "Fn::GetAtt": [ + "modelIntrospectionSchemaBucketF566B665", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "modelIntrospectionSchemaBucketF566B665", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/modelIntrospectionSchemaBucket/Policy/Resource" + } + }, + "modelIntrospectionSchemaBucketAutoDeleteObjectsCustomResourceFE57309F": { + "Type": "Custom::S3AutoDeleteObjects", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "Arn" + ] + }, + "BucketName": { + "Ref": "modelIntrospectionSchemaBucketF566B665" + } + }, + "DependsOn": [ + "modelIntrospectionSchemaBucketPolicy4DAB0D15" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/modelIntrospectionSchemaBucket/AutoDeleteObjectsCustomResource/Default" + } + }, + "modelIntrospectionSchemaBucketDeploymentAwsCliLayer13C432F7": { + "Type": "AWS::Lambda::LayerVersion", + "Properties": { + "Content": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "e2659170a0721541efa761a8d5d04d5e36cbbf691c4b15a9053002b7c825055d.zip" + }, + "Description": "/opt/awscli/aws" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/modelIntrospectionSchemaBucketDeployment/AwsCliLayer/Resource", + "aws:asset:path": "asset.e2659170a0721541efa761a8d5d04d5e36cbbf691c4b15a9053002b7c825055d.zip", + "aws:asset:is-bundled": false, + "aws:asset:property": "Content" + } + }, + "modelIntrospectionSchemaBucketDeploymentCustomResource1536MiB104B97EC": { + "Type": "Custom::CDKBucketDeployment", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBC5D8AB21", + "Arn" + ] + }, + "SourceBucketNames": [ + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + } + ], + "SourceObjectKeys": [ + "eb67078cf36196f6b722e08bdac5ad4e7f40b7086e686f40a61b7a5e91a8a98c.zip" + ], + "SourceMarkers": [ + {} + ], + "DestinationBucketName": { + "Ref": "modelIntrospectionSchemaBucketF566B665" + }, + "WaitForDistributionInvalidation": true, + "Prune": true, + "OutputObjectKeys": true + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/modelIntrospectionSchemaBucketDeployment/CustomResource-1536MiB/Default" + } + }, + "AMPLIFYDATAGRAPHQLENDPOINTParameter1C2CBB16": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/mediavault/e2e-sandbox-x/AMPLIFY_DATA_GRAPHQL_ENDPOINT", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "GraphQLUrl" + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/AMPLIFY_DATA_GRAPHQL_ENDPOINTParameter/Resource" + } + }, + "AMPLIFYDATAMODELINTROSPECTIONSCHEMABUCKETNAMEParameter47BF4F44": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/mediavault/e2e-sandbox-x/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_BUCKET_NAME", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": { + "Ref": "modelIntrospectionSchemaBucketF566B665" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_BUCKET_NAMEParameter/Resource" + } + }, + "AMPLIFYDATAMODELINTROSPECTIONSCHEMAKEYParameterB6AEAE8A": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/mediavault/e2e-sandbox-x/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_KEY", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": "modelIntrospectionSchema.json" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_KEYParameter/Resource" + } + }, + "AMPLIFYDATADEFAULTNAMEParameterE7C23CC4": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/mediavault/e2e-sandbox-x/AMPLIFY_DATA_DEFAULT_NAME", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": "amplifyData" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/AMPLIFY_DATA_DEFAULT_NAMEParameter/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/6VSTW/bMAz9Lc1ZUbMU3WE318F2WNFlMdDLUASMzLhM9OGKcjLD8H8fJKVpup2KnchHig+PepzL+e1Mzq7gyFNV76eaNnJ4QA5YVwHUXqyQXecVCjjyeoC25d4qOXzz0D6/6KKlO2AU5damys/7oqULVKlnNBALRUvfsRcPzuICAlSZtNza9+hrZ1UgZ0tnt9R0HiKIjahDH9CPgm/WAzBjYFnEIGpstesN2iDvOrXHsDgX4ms55GoSmtNImLNfw8TQb7KTL5PLL4jL8o1MLT6xFl1wC9QY8MdmhyrwZBT/Nf10UrN0mlT/pinjDyjLA1WAgHHpjwn7d/hpFBrMpgY5lFt7Dz36R/QcjajINhqDO/skzsmFeaMgMHJYOZ08TfFtyZyNgtnIoQqebLMEDwYD+tR/BeMoksFVgIZsE3v5JsuOgzPnyzxdR8qz8LWOotdwZKVJFkcuNaU93vH/xbP07kA1+ngno7CuRrnj68N8Lj99lrOrHRNNfWcDGZSrHP8Akcz7fT4DAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthUserPoolE48AF738Ref": { + "Type": "String" + }, + "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthauthenticatedUserRoleE0CA9703Ref": { + "Type": "String" + }, + "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthunauthenticatedUserRole88DA1FC1Ref": { + "Type": "String" + }, + "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthIdentityPool0BF026A3Ref": { + "Type": "String" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId": { + "Value": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + } + }, + "amplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574GraphQLUrl": { + "Value": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "GraphQLUrl" + ] + } + }, + "amplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB7F964333DestinationBucketArn": { + "Value": { + "Fn::GetAtt": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB21775929", + "DestinationBucketArn" + ] + } + }, + "amplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIDefaultApiKeyA4DABB13ApiKey": { + "Value": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPIDefaultApiKey1C8ED374", + "ApiKey" + ] + } + } + } +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-storage0EC3F24A-x.description.txt b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-storage0EC3F24A-x.description.txt new file mode 100644 index 00000000000..950d1c3cb96 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-storage0EC3F24A-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"AmplifySandbox","createdWith":"1.4.3","stackType":"storage-S3","metadata":{}} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-storage0EC3F24A-x.outputs.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-storage0EC3F24A-x.outputs.json new file mode 100644 index 00000000000..9334b076914 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-storage0EC3F24A-x.outputs.json @@ -0,0 +1,10 @@ +[ + { + "OutputKey": "amplifymediavaulte2esandbox0a7f7fcf5astoragethumbnailgengen2xlambda6A64994ARef", + "OutputValue": "thumbnailgen-gen2-x" + }, + { + "OutputKey": "amplifymediavaulte2esandbox0a7f7fcf5astoragemediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket5F632A44Ref", + "OutputValue": "amplify-mediavault2604142-mediavaultb574f210f1634e-zzsmtyv3upd0" + } +] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-storage0EC3F24A-x.parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-storage0EC3F24A-x.parameters.json new file mode 100644 index 00000000000..617dfcc3a5d --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-storage0EC3F24A-x.parameters.json @@ -0,0 +1,18 @@ +[ + { + "ParameterKey": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthauthenticatedUserRoleE0CA9703Ref", + "ParameterValue": "amplify-mediavault2604142-amplifyAuthauthenticatedU-eE1RG94dAZFh" + }, + { + "ParameterKey": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthAdminGroupRole56853334Ref", + "ParameterValue": "amplify-mediavault2604142-amplifyAuthAdminGroupRole-7ODIVGGdVIyj" + }, + { + "ParameterKey": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthunauthenticatedUserRole88DA1FC1Ref", + "ParameterValue": "amplify-mediavault2604142-amplifyAuthunauthenticate-IXwU5AR0tJSE" + }, + { + "ParameterKey": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthBasicGroupRole5656CA64Ref", + "ParameterValue": "amplify-mediavault2604142-amplifyAuthBasicGroupRole-iDzIZ8EOmyl8" + } +] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-storage0EC3F24A-x.template.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-storage0EC3F24A-x.template.json new file mode 100644 index 00000000000..7804fde8c2d --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x-storage0EC3F24A-x.template.json @@ -0,0 +1,1439 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", + "Resources": { + "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "BucketKeyEnabled": false, + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "MaxAge": 3000 + } + ] + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "mediavaultb574f210f1634e3a8d1934f263da5bedx-gen2-x" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/storage/mediavaultb574f210f1634e3a8d1934f263da5bedx-gen2-x/Bucket/Resource" + } + }, + "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucketPolicyD7BD0DE2": { + "Type": "AWS::S3::BucketPolicy", + "Properties": { + "Bucket": { + "Ref": "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C" + }, + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:*", + "Condition": { + "Bool": { + "aws:SecureTransport": "false" + } + }, + "Effect": "Deny", + "Principal": { + "AWS": "*" + }, + "Resource": [ + { + "Fn::GetAtt": [ + "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + }, + { + "Action": [ + "s3:PutBucketPolicy", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*" + ], + "Effect": "Allow", + "Principal": { + "AWS": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + } + }, + "Resource": [ + { + "Fn::GetAtt": [ + "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/storage/mediavaultb574f210f1634e3a8d1934f263da5bedx-gen2-x/Bucket/Policy/Resource" + } + }, + "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucketAutoDeleteObjectsCustomResource22BC50E0": { + "Type": "Custom::S3AutoDeleteObjects", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "Arn" + ] + }, + "BucketName": { + "Ref": "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C" + } + }, + "DependsOn": [ + "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucketPolicyD7BD0DE2" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/storage/mediavaultb574f210f1634e3a8d1934f263da5bedx-gen2-x/Bucket/AutoDeleteObjectsCustomResource/Default" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ] + }, + "ManagedPolicyArns": [ + { + "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" + }, + "Timeout": 900, + "MemorySize": 128, + "Handler": "index.handler", + "Role": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Description": { + "Fn::Join": [ + "", + [ + "Lambda function for auto-deleting objects in ", + { + "Ref": "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C" + }, + " S3 bucket." + ] + ] + } + }, + "DependsOn": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", + "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", + "aws:asset:property": "Code" + } + }, + "MEDIAVAULTB574F210F1634E3A8D1934F263DA5BED4CF71GEN2IACEMYEMFBBUCKETNAMEParameterD042A590": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/mediavault/e2e-sandbox-x/MEDIAVAULTB_574_F_210_F_1634_E_3_A_8_D_1934_F_263_DA_5_BED_4_CF_71_GEN_2_IACEMYEMFB_BUCKET_NAME", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": { + "Ref": "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/storage/MEDIAVAULTB_574_F_210_F_1634_E_3_A_8_D_1934_F_263_DA_5_BED_4_CF_71_GEN_2_IACEMYEMFB_BUCKET_NAMEParameter/Resource" + } + }, + "thumbnailgengen2xlambdaServiceRole19C11316": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "thumbnailgen-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/storage/thumbnailgen-gen2-x-lambda/ServiceRole/Resource" + } + }, + "thumbnailgengen2xlambdaServiceRoleDefaultPolicyFFAF5F06": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "ssm:GetParameters", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":ssm:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":parameter/amplify/resource_reference/mediavault/e2e-sandbox-x/MEDIAVAULTB_574_F_210_F_1634_E_3_A_8_D_1934_F_263_DA_5_BED_4_CF_71_GEN_2_IACEMYEMFB_BUCKET_NAME" + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "thumbnailgengen2xlambdaServiceRoleDefaultPolicyFFAF5F06", + "Roles": [ + { + "Ref": "thumbnailgengen2xlambdaServiceRole19C11316" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/storage/thumbnailgen-gen2-x-lambda/ServiceRole/DefaultPolicy/Resource" + } + }, + "thumbnailgengen2xlambdaD80B35AF": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Architectures": [ + "x86_64" + ], + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "c58dbd5561089b6980a71917af7086867587b41a7657c1ef33109378e90e319c.zip" + }, + "Environment": { + "Variables": { + "ENV": "gen2-x", + "REGION": "us-east-1", + "AMPLIFY_SSM_ENV_CONFIG": "{\"MEDIAVAULTB_574_F_210_F_1634_E_3_A_8_D_1934_F_263_DA_5_BED_4_CF_71_GEN_2_IACEMYEMFB_BUCKET_NAME\":{\"path\":\"/amplify/resource_reference/mediavault/e2e-sandbox-x/MEDIAVAULTB_574_F_210_F_1634_E_3_A_8_D_1934_F_263_DA_5_BED_4_CF_71_GEN_2_IACEMYEMFB_BUCKET_NAME\"}}", + "MEDIAVAULTB_574_F_210_F_1634_E_3_A_8_D_1934_F_263_DA_5_BED_4_CF_71_GEN_2_IACEMYEMFB_BUCKET_NAME": "", + "STORAGE_MEDIAVAULT_BUCKETNAME": { + "Ref": "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C" + } + } + }, + "EphemeralStorage": { + "Size": 512 + }, + "FunctionName": "thumbnailgen-gen2-x", + "Handler": "index.handler", + "MemorySize": 128, + "Role": { + "Fn::GetAtt": [ + "thumbnailgengen2xlambdaServiceRole19C11316", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "thumbnailgen-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 25 + }, + "DependsOn": [ + "thumbnailgengen2xlambdaServiceRole19C11316" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/storage/thumbnailgen-gen2-x-lambda/Resource", + "aws:asset:path": "asset.c58dbd5561089b6980a71917af7086867587b41a7657c1ef33109378e90e319c", + "aws:asset:is-bundled": true, + "aws:asset:property": "Code" + } + }, + "amplifymediavaulte2esandbox0a7f7fcf5astorageAccess558CF62AC": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C", + "Arn" + ] + }, + "/public/*" + ] + ] + } + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/*", + "public/" + ] + } + }, + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C", + "Arn" + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "amplifymediavaulte2esandbox0a7f7fcf5astorageAccess558CF62AC", + "Roles": [ + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthunauthenticatedUserRole88DA1FC1Ref" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/storage/amplify-mediavault-e2e-sandbox-x--storageAccess5/Resource" + } + }, + "amplifymediavaulte2esandbox0a7f7fcf5astorageAccess68C0D8198": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:PutObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C", + "Arn" + ] + }, + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C", + "Arn" + ] + }, + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C", + "Arn" + ] + }, + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C", + "Arn" + ] + }, + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C", + "Arn" + ] + }, + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C", + "Arn" + ] + }, + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/*", + "public/", + "protected/*", + "protected/", + "private/*", + "private/" + ] + } + }, + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C", + "Arn" + ] + } + }, + { + "Action": "s3:DeleteObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C", + "Arn" + ] + }, + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C", + "Arn" + ] + }, + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C", + "Arn" + ] + }, + "/private/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "amplifymediavaulte2esandbox0a7f7fcf5astorageAccess68C0D8198", + "Roles": [ + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthauthenticatedUserRoleE0CA9703Ref" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/storage/amplify-mediavault-e2e-sandbox-x--storageAccess6/Resource" + } + }, + "amplifymediavaulte2esandbox0a7f7fcf5astorageAccess783432ECC": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:PutObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C", + "Arn" + ] + }, + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C", + "Arn" + ] + }, + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C", + "Arn" + ] + }, + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C", + "Arn" + ] + }, + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C", + "Arn" + ] + }, + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C", + "Arn" + ] + }, + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/*", + "public/", + "protected/*", + "protected/", + "private/*", + "private/" + ] + } + }, + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C", + "Arn" + ] + } + }, + { + "Action": "s3:DeleteObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C", + "Arn" + ] + }, + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C", + "Arn" + ] + }, + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C", + "Arn" + ] + }, + "/private/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "amplifymediavaulte2esandbox0a7f7fcf5astorageAccess783432ECC", + "Roles": [ + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthAdminGroupRole56853334Ref" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/storage/amplify-mediavault-e2e-sandbox-x--storageAccess7/Resource" + } + }, + "amplifymediavaulte2esandbox0a7f7fcf5astorageAccess83CB8B160": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C", + "Arn" + ] + }, + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C", + "Arn" + ] + }, + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C", + "Arn" + ] + }, + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/*", + "public/", + "protected/*", + "protected/", + "private/*", + "private/" + ] + } + }, + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C", + "Arn" + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "amplifymediavaulte2esandbox0a7f7fcf5astorageAccess83CB8B160", + "Roles": [ + { + "Ref": "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthBasicGroupRole5656CA64Ref" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/storage/amplify-mediavault-e2e-sandbox-x--storageAccess8/Resource" + } + }, + "amplifymediavaulte2esandbox0a7f7fcf5astorageAccess93FA3622E": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C", + "Arn" + ] + }, + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C", + "Arn" + ] + }, + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C", + "Arn" + ] + }, + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/*", + "public/", + "protected/*", + "protected/", + "private/*", + "private/" + ] + } + }, + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C", + "Arn" + ] + } + }, + { + "Action": "s3:PutObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C", + "Arn" + ] + }, + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C", + "Arn" + ] + }, + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C", + "Arn" + ] + }, + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:DeleteObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C", + "Arn" + ] + }, + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C", + "Arn" + ] + }, + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C", + "Arn" + ] + }, + "/private/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "amplifymediavaulte2esandbox0a7f7fcf5astorageAccess93FA3622E", + "Roles": [ + { + "Ref": "thumbnailgengen2xlambdaServiceRole19C11316" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/storage/amplify-mediavault-e2e-sandbox-x--storageAccess9/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/5WOQW+DMAyFf0s5B68DbYfdWqodOwTHaUIhuChAEik27SbEf58gW9sdd3rPen6fnUDytIXtRl4oVk0fD7qG6YjE2JQsVS/khaqJUpj2o+qRRXaywb1PkdGf2kYv0X152acU1oggrO5GdgcckPGt7lAxRfOHCFHuBq2+btQw/4MdCiVLRoP2Hr2XhLMgMjCV7LVtc+mlQUa/nLsOsxikqRtZWddgR3Bc5XW0irWzQksDU+EGXEqr3l4ObhaUVpIImWC3yA8QspP9xcwiG4mdKZDc6FWAXf2fKPfurBv0y/ti5ZUsW23bWSwfQkcP5ySBx2fYbjrSOvajZW0QiqDfE9AqW9IBAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/storage/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifymediavaulte2esandbox0a7f7fcf5astoragethumbnailgengen2xlambda6A64994ARef": { + "Value": { + "Ref": "thumbnailgengen2xlambdaD80B35AF" + } + }, + "amplifymediavaulte2esandbox0a7f7fcf5astoragemediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket5F632A44Ref": { + "Value": { + "Ref": "mediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket13898F0C" + } + } + }, + "Parameters": { + "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthunauthenticatedUserRole88DA1FC1Ref": { + "Type": "String" + }, + "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthauthenticatedUserRoleE0CA9703Ref": { + "Type": "String" + }, + "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthAdminGroupRole56853334Ref": { + "Type": "String" + }, + "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthBasicGroupRole5656CA64Ref": { + "Type": "String" + } + } +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x.description.txt b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x.description.txt new file mode 100644 index 00000000000..d1c87f28683 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"AmplifySandbox","createdWith":"1.22.0","stackType":"root","metadata":{}} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x.outputs.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x.outputs.json new file mode 100644 index 00000000000..b6aea855b49 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x.outputs.json @@ -0,0 +1,138 @@ +[ + { + "OutputKey": "webClientId", + "OutputValue": "562qu1idhs87d7hbcs4srtstr6" + }, + { + "OutputKey": "socialProviders", + "OutputValue": "[\"GOOGLE\",\"FACEBOOK\"]" + }, + { + "OutputKey": "usernameAttributes", + "OutputValue": "[\"email\",\"phone_number\"]" + }, + { + "OutputKey": "bucketName", + "OutputValue": "amplify-mediavault2604142-mediavaultb574f210f1634e-zzsmtyv3upd0" + }, + { + "OutputKey": "signupAttributes", + "OutputValue": "[\"email\"]" + }, + { + "OutputKey": "oauthClientId", + "OutputValue": "562qu1idhs87d7hbcs4srtstr6" + }, + { + "OutputKey": "allowUnauthenticatedIdentities", + "OutputValue": "true" + }, + { + "OutputKey": "oauthCognitoDomain", + "OutputValue": "fec61c1d19f794c9931e.auth.us-east-1.amazoncognito.com" + }, + { + "OutputKey": "oauthScope", + "OutputValue": "[\"phone\",\"email\",\"openid\",\"profile\",\"aws.cognito.signin.user.admin\"]" + }, + { + "OutputKey": "oauthRedirectSignOut", + "OutputValue": "https://main.mediavault.amplifyapp.com/" + }, + { + "OutputKey": "awsAppsyncAdditionalAuthenticationTypes", + "OutputValue": "API_KEY,AWS_IAM" + }, + { + "OutputKey": "mfaTypes", + "OutputValue": "[]" + }, + { + "OutputKey": "mfaConfiguration", + "OutputValue": "OFF" + }, + { + "OutputKey": "storageRegion", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "oauthResponseType", + "OutputValue": "code" + }, + { + "OutputKey": "awsAppsyncApiKey", + "OutputValue": "da2-fakeapikey00000000000000" + }, + { + "OutputKey": "awsAppsyncAuthenticationType", + "OutputValue": "AMAZON_COGNITO_USER_POOLS" + }, + { + "OutputKey": "oauthRedirectSignIn", + "OutputValue": "https://main.mediavault.amplifyapp.com/" + }, + { + "OutputKey": "passwordPolicyMinLength", + "OutputValue": "8" + }, + { + "OutputKey": "awsAppsyncApiEndpoint", + "OutputValue": "https://r26utga6pnf6bebsk56unkjeta.appsync-api.us-east-1.amazonaws.com/graphql" + }, + { + "OutputKey": "awsAppsyncApiId", + "OutputValue": "wxqxmfnao5dgtoc4j7tvafb4ti" + }, + { + "OutputKey": "authRegion", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "buckets", + "OutputValue": "[\"{\\\"name\\\":\\\"mediavaultb574f210f1634e3a8d1934f263da5bedx-gen2-x\\\",\\\"bucketName\\\":\\\"amplify-mediavault2604142-mediavaultb574f210f1634e-zzsmtyv3upd0\\\",\\\"storageRegion\\\":\\\"us-east-1\\\",\\\"paths\\\":{\\\"public/*\\\":{\\\"guest\\\":[\\\"get\\\",\\\"list\\\"],\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"],\\\"groupsAdmin\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"],\\\"groupsBasic\\\":[\\\"get\\\",\\\"list\\\"]},\\\"protected/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"],\\\"groupsAdmin\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"],\\\"groupsBasic\\\":[\\\"get\\\",\\\"list\\\"]},\\\"private/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"],\\\"groupsAdmin\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"],\\\"groupsBasic\\\":[\\\"get\\\",\\\"list\\\"]}}}\"]" + }, + { + "OutputKey": "amplifyApiModelSchemaS3Uri", + "OutputValue": "s3://amplify-mediavault2604142-amplifydataamplifycodege-fz46uttmwbyd/model-schema.graphql" + }, + { + "OutputKey": "groups", + "OutputValue": "[{\"Admin\":{\"precedence\":0}},{\"Basic\":{\"precedence\":1}}]" + }, + { + "OutputKey": "definedFunctions", + "OutputValue": "[\"addusertogroup-gen2-x\",\"removeuserfromgroup-gen2-x\",\"thumbnailgen-gen2-x\"]" + }, + { + "OutputKey": "passwordlessOptions", + "OutputValue": "" + }, + { + "OutputKey": "awsAppsyncRegion", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "deploymentType", + "OutputValue": "sandbox" + }, + { + "OutputKey": "passwordPolicyRequirements", + "OutputValue": "[]" + }, + { + "OutputKey": "region", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "userPoolId", + "OutputValue": "us-east-1_nyb6Y32aT" + }, + { + "OutputKey": "identityPoolId", + "OutputValue": "us-east-1:7740513c-8837-4108-969d-d368bab19238" + }, + { + "OutputKey": "verificationMechanisms", + "OutputValue": "[\"email\"]" + } +] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x.parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x.parameters.json new file mode 100644 index 00000000000..9b7e2669975 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x.parameters.json @@ -0,0 +1,7 @@ +[ + { + "ParameterKey": "BootstrapVersion", + "ParameterValue": "/cdk-bootstrap/hnb659fds/version", + "ResolvedValue": "30" + } +] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x.template.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x.template.json new file mode 100644 index 00000000000..7005ba4cdee --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-e2e-sandbox-x.template.json @@ -0,0 +1,803 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.22.0\",\"stackType\":\"root\",\"metadata\":{}}", + "Metadata": { + "AWS::Amplify::Platform": { + "version": "1", + "stackOutputs": [ + "deploymentType", + "region" + ] + }, + "AWS::Amplify::Auth": { + "version": "1", + "stackOutputs": [ + "userPoolId", + "webClientId", + "identityPoolId", + "authRegion", + "allowUnauthenticatedIdentities", + "signupAttributes", + "usernameAttributes", + "verificationMechanisms", + "passwordPolicyMinLength", + "passwordPolicyRequirements", + "mfaConfiguration", + "mfaTypes", + "passwordlessOptions", + "socialProviders", + "oauthCognitoDomain", + "oauthScope", + "oauthRedirectSignIn", + "oauthRedirectSignOut", + "oauthResponseType", + "oauthClientId", + "groups" + ] + }, + "AWS::Amplify::Function": { + "version": "1", + "stackOutputs": [ + "definedFunctions" + ] + }, + "AWS::Amplify::GraphQL": { + "version": "1", + "stackOutputs": [ + "awsAppsyncApiId", + "awsAppsyncApiEndpoint", + "awsAppsyncAuthenticationType", + "awsAppsyncRegion", + "amplifyApiModelSchemaS3Uri", + "awsAppsyncApiKey", + "awsAppsyncAdditionalAuthenticationTypes" + ] + }, + "AWS::Amplify::Storage": { + "version": "1", + "stackOutputs": [ + "buckets", + "storageRegion", + "bucketName" + ] + } + }, + "Outputs": { + "deploymentType": { + "Value": "sandbox" + }, + "region": { + "Value": { + "Ref": "AWS::Region" + } + }, + "userPoolId": { + "Value": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthUserPoolE48AF738Ref" + ] + } + }, + "webClientId": { + "Value": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthUserPoolAppClient3FF96D05Ref" + ] + } + }, + "identityPoolId": { + "Value": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthIdentityPool0BF026A3Ref" + ] + } + }, + "authRegion": { + "Value": { + "Ref": "AWS::Region" + } + }, + "allowUnauthenticatedIdentities": { + "Value": "true" + }, + "signupAttributes": { + "Value": "[\"email\"]" + }, + "usernameAttributes": { + "Value": "[\"email\",\"phone_number\"]" + }, + "verificationMechanisms": { + "Value": "[\"email\"]" + }, + "passwordPolicyMinLength": { + "Value": "8" + }, + "passwordPolicyRequirements": { + "Value": "[]" + }, + "mfaConfiguration": { + "Value": "OFF" + }, + "mfaTypes": { + "Value": "[]" + }, + "passwordlessOptions": { + "Value": "" + }, + "socialProviders": { + "Value": "[\"GOOGLE\",\"FACEBOOK\"]" + }, + "oauthCognitoDomain": { + "Value": { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthUserPoolUserPoolDomain2807DB2ARef" + ] + }, + ".auth.", + { + "Ref": "AWS::Region" + }, + ".amazoncognito.com" + ] + ] + } + }, + "oauthScope": { + "Value": "[\"phone\",\"email\",\"openid\",\"profile\",\"aws.cognito.signin.user.admin\"]" + }, + "oauthRedirectSignIn": { + "Value": "https://main.mediavault.amplifyapp.com/" + }, + "oauthRedirectSignOut": { + "Value": "https://main.mediavault.amplifyapp.com/" + }, + "oauthResponseType": { + "Value": "code" + }, + "oauthClientId": { + "Value": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthUserPoolAppClient3FF96D05Ref" + ] + } + }, + "groups": { + "Value": "[{\"Admin\":{\"precedence\":0}},{\"Basic\":{\"precedence\":1}}]" + }, + "definedFunctions": { + "Value": { + "Fn::Join": [ + "", + [ + "[\"", + { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifymediavaulte2esandbox0a7f7fcf5aauthaddusertogroupgen2xlambdaDF249790Ref" + ] + }, + "\",\"", + { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifymediavaulte2esandbox0a7f7fcf5aauthremoveuserfromgroupgen2xlambda43B78CC4Ref" + ] + }, + "\",\"", + { + "Fn::GetAtt": [ + "storage0EC3F24A", + "Outputs.amplifymediavaulte2esandbox0a7f7fcf5astoragethumbnailgengen2xlambda6A64994ARef" + ] + }, + "\"]" + ] + ] + } + }, + "awsAppsyncApiId": { + "Value": { + "Fn::GetAtt": [ + "data7552DF31", + "Outputs.amplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574ApiId" + ] + } + }, + "awsAppsyncApiEndpoint": { + "Value": { + "Fn::GetAtt": [ + "data7552DF31", + "Outputs.amplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIC1298574GraphQLUrl" + ] + } + }, + "awsAppsyncAuthenticationType": { + "Value": "AMAZON_COGNITO_USER_POOLS" + }, + "awsAppsyncRegion": { + "Value": { + "Ref": "AWS::Region" + } + }, + "amplifyApiModelSchemaS3Uri": { + "Value": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Fn::Select": [ + 0, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "data7552DF31", + "Outputs.amplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB7F964333DestinationBucketArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "/model-schema.graphql" + ] + ] + } + }, + "awsAppsyncApiKey": { + "Value": { + "Fn::GetAtt": [ + "data7552DF31", + "Outputs.amplifymediavaulte2esandbox0a7f7fcf5adataamplifyDataGraphQLAPIDefaultApiKeyA4DABB13ApiKey" + ] + } + }, + "awsAppsyncAdditionalAuthenticationTypes": { + "Value": "API_KEY,AWS_IAM" + }, + "storageRegion": { + "Value": { + "Ref": "AWS::Region" + } + }, + "bucketName": { + "Value": { + "Fn::GetAtt": [ + "storage0EC3F24A", + "Outputs.amplifymediavaulte2esandbox0a7f7fcf5astoragemediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket5F632A44Ref" + ] + } + }, + "buckets": { + "Value": { + "Fn::Join": [ + "", + [ + "[\"{\\\"name\\\":\\\"mediavaultb574f210f1634e3a8d1934f263da5bedx-gen2-x\\\",\\\"bucketName\\\":\\\"", + { + "Fn::GetAtt": [ + "storage0EC3F24A", + "Outputs.amplifymediavaulte2esandbox0a7f7fcf5astoragemediavaultb574f210f1634e3a8d1934f263da5bedxgen2xBucket5F632A44Ref" + ] + }, + "\\\",\\\"storageRegion\\\":\\\"", + { + "Ref": "AWS::Region" + }, + "\\\",\\\"paths\\\":{\\\"public/*\\\":{\\\"guest\\\":[\\\"get\\\",\\\"list\\\"],\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"],\\\"groupsAdmin\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"],\\\"groupsBasic\\\":[\\\"get\\\",\\\"list\\\"]},\\\"protected/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"],\\\"groupsAdmin\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"],\\\"groupsBasic\\\":[\\\"get\\\",\\\"list\\\"]},\\\"private/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"],\\\"groupsAdmin\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"],\\\"groupsBasic\\\":[\\\"get\\\",\\\"list\\\"]}}}\"]" + ] + ] + } + } + }, + "Resources": { + "auth179371D7": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/ad440f7e02e86359a1f6adb6947c075fb18c375b9ab406e8e54fb8e7d3ab86b7.json" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/auth.NestedStack/auth.NestedStackResource", + "aws:asset:path": "amplifymediavaulte2esandbox0a7f7fcf5aauth46E49D5A.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "data7552DF31": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthUserPoolE48AF738Ref": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthUserPoolE48AF738Ref" + ] + }, + "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthauthenticatedUserRoleE0CA9703Ref": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthauthenticatedUserRoleE0CA9703Ref" + ] + }, + "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthunauthenticatedUserRole88DA1FC1Ref": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthunauthenticatedUserRole88DA1FC1Ref" + ] + }, + "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthIdentityPool0BF026A3Ref": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthIdentityPool0BF026A3Ref" + ] + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/f976ee51d67b1a27cbf5eb33468564e3e0ae7e5e119985e3e0685828577f90d5.json" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/data.NestedStack/data.NestedStackResource", + "aws:asset:path": "amplifymediavaulte2esandbox0a7f7fcf5adataCB7F46FB.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "storage0EC3F24A": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthunauthenticatedUserRole88DA1FC1Ref": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthunauthenticatedUserRole88DA1FC1Ref" + ] + }, + "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthauthenticatedUserRoleE0CA9703Ref": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthauthenticatedUserRoleE0CA9703Ref" + ] + }, + "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthAdminGroupRole56853334Ref": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthAdminGroupRole56853334Ref" + ] + }, + "referencetoamplifymediavaulte2esandbox0a7f7fcf5aauthNestedStackauthNestedStackResource655CB183Outputsamplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthBasicGroupRole5656CA64Ref": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifymediavaulte2esandbox0a7f7fcf5aauthamplifyAuthBasicGroupRole5656CA64Ref" + ] + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/ec63f59a989a25f3eb7b54fb8da75c5ce07e14a8345ca5973908059cdfc6bc4f.json" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/storage.NestedStack/storage.NestedStackResource", + "aws:asset:path": "amplifymediavaulte2esandbox0a7f7fcf5astorageBF9EC452.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/zPSMzI10DNQTCwv1k1OydbNyUzSqw4uSUzO1nFOy/MvLSkoLQGxwEK1Onn5Kal6WcX6ZUZGeoZmegaKWcWZmbpFpXklmbmpekEQGgAGekjOVAAAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-mediavault-e2e-sandbox-x/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "BootstrapVersion": { + "Type": "AWS::SSM::Parameter::Value", + "Default": "/cdk-bootstrap/hnb659fds/version", + "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]" + } + }, + "Rules": { + "CheckBootstrapVersion": { + "Assertions": [ + { + "Assert": { + "Fn::Not": [ + { + "Fn::Contains": [ + [ + "1", + "2", + "3", + "4", + "5" + ], + { + "Ref": "BootstrapVersion" + } + ] + } + ] + }, + "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI." + } + ] + } + } +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5e-amplifyDataAmplifyTableManagerNestedStackA-71HRJ804RDKR.description.txt b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5e-amplifyDataAmplifyTableManagerNestedStackA-71HRJ804RDKR.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5e-amplifyDataAmplifyTableManagerNestedStackA-71HRJ804RDKR.outputs.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5e-amplifyDataAmplifyTableManagerNestedStackA-71HRJ804RDKR.outputs.json deleted file mode 100644 index 8bae6d24029..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5e-amplifyDataAmplifyTableManagerNestedStackA-71HRJ804RDKR.outputs.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - { - "OutputKey": "amplifymediavaultgen2mainbranched5eb897f9dataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEventB15C54B2Arn", - "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-mediavault-ge-TableManagerCustomProvid-wtgatGRcG6Wl" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5e-amplifyDataAmplifyTableManagerNestedStackA-71HRJ804RDKR.parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5e-amplifyDataAmplifyTableManagerNestedStackA-71HRJ804RDKR.parameters.json deleted file mode 100644 index b3ac3db3cd7..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5e-amplifyDataAmplifyTableManagerNestedStackA-71HRJ804RDKR.parameters.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId", - "ParameterValue": "lrahqddacbde5pc3etoruofrzu" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5e-amplifyDataAmplifyTableManagerNestedStackA-71HRJ804RDKR.template.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5e-amplifyDataAmplifyTableManagerNestedStackA-71HRJ804RDKR.template.json deleted file mode 100644 index 5289d945783..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5e-amplifyDataAmplifyTableManagerNestedStackA-71HRJ804RDKR.template.json +++ /dev/null @@ -1,779 +0,0 @@ -{ - "Resources": { - "AmplifyManagedTableIsCompleteRoleF825222C": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:CreateTable", - "dynamodb:UpdateTable", - "dynamodb:DeleteTable", - "dynamodb:DescribeTable", - "dynamodb:DescribeContinuousBackups", - "dynamodb:DescribeTimeToLive", - "dynamodb:UpdateContinuousBackups", - "dynamodb:UpdateTimeToLive", - "dynamodb:TagResource", - "dynamodb:UntagResource", - "dynamodb:ListTagsOfResource" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/*-${apiId}-${envName}", - { - "apiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "envName": "NONE" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", - { - "tableName": "Note-5aahjbxypzan3jqab7lbquus4m-main" - } - ] - } - ] - }, - { - "Action": "lambda:ListTags", - "Effect": "Allow", - "Resource": { - "Fn::Sub": [ - "arn:${AWS::Partition}:lambda:${AWS::Region}:${AWS::AccountId}:function:*TableManager*", - {} - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "CreateUpdateDeleteTablesPolicy" - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "mediavault" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/AmplifyTableManager/AmplifyManagedTableIsCompleteRole/Resource" - } - }, - "AmplifyManagedTableOnEventRoleB4E71DEA": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:CreateTable", - "dynamodb:UpdateTable", - "dynamodb:DeleteTable", - "dynamodb:DescribeTable", - "dynamodb:DescribeContinuousBackups", - "dynamodb:DescribeTimeToLive", - "dynamodb:UpdateContinuousBackups", - "dynamodb:UpdateTimeToLive", - "dynamodb:TagResource", - "dynamodb:UntagResource", - "dynamodb:ListTagsOfResource" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/*-${apiId}-${envName}", - { - "apiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "envName": "NONE" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", - { - "tableName": "Note-5aahjbxypzan3jqab7lbquus4m-main" - } - ] - } - ] - }, - { - "Action": "lambda:ListTags", - "Effect": "Allow", - "Resource": { - "Fn::Sub": [ - "arn:${AWS::Partition}:lambda:${AWS::Region}:${AWS::AccountId}:function:*TableManager*", - {} - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "CreateUpdateDeleteTablesPolicy" - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "mediavault" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/AmplifyTableManager/AmplifyManagedTableOnEventRole/Resource" - } - }, - "AmplifyManagedTableOnEventRoleDefaultPolicyF6DABCB6": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "states:StartExecution", - "Effect": "Allow", - "Resource": { - "Ref": "AmplifyTableWaiterStateMachine060600BC" - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "AmplifyManagedTableOnEventRoleDefaultPolicyF6DABCB6", - "Roles": [ - { - "Ref": "AmplifyManagedTableOnEventRoleB4E71DEA" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/AmplifyTableManager/AmplifyManagedTableOnEventRole/DefaultPolicy/Resource" - } - }, - "TableManagerCustomProviderframeworkonEvent1DFC2ECC": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6.zip" - }, - "Description": "AmplifyManagedTable - onEvent (amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider)", - "Environment": { - "Variables": { - "WAITER_STATE_MACHINE_ARN": { - "Ref": "AmplifyTableWaiterStateMachine060600BC" - } - } - }, - "Handler": "amplify-table-manager-handler.onEvent", - "Role": { - "Fn::GetAtt": [ - "AmplifyManagedTableOnEventRoleB4E71DEA", - "Arn" - ] - }, - "Runtime": "nodejs24.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "mediavault" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 840 - }, - "DependsOn": [ - "AmplifyManagedTableOnEventRoleDefaultPolicyF6DABCB6", - "AmplifyManagedTableOnEventRoleB4E71DEA" - ], - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider/framework-onEvent/Resource", - "aws:asset:path": "asset.f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6", - "aws:asset:is-bundled": false, - "aws:asset:property": "Code" - } - }, - "TableManagerCustomProviderframeworkisComplete2E51021B": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6.zip" - }, - "Description": "AmplifyManagedTable - isComplete (amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider)", - "Handler": "amplify-table-manager-handler.isComplete", - "Role": { - "Fn::GetAtt": [ - "AmplifyManagedTableIsCompleteRoleF825222C", - "Arn" - ] - }, - "Runtime": "nodejs24.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "mediavault" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 840 - }, - "DependsOn": [ - "AmplifyManagedTableIsCompleteRoleF825222C" - ], - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider/framework-isComplete/Resource", - "aws:asset:path": "asset.f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6", - "aws:asset:is-bundled": false, - "aws:asset:property": "Code" - } - }, - "AmplifyTableWaiterStateMachineRole470BE899": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "states.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "mediavault" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Role/Resource" - } - }, - "AmplifyTableWaiterStateMachineRoleDefaultPolicy89F3836A": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "lambda:InvokeFunction", - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "TableManagerCustomProviderframeworkisComplete2E51021B", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "TableManagerCustomProviderframeworkisComplete2E51021B", - "Arn" - ] - }, - ":*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "AmplifyTableWaiterStateMachineRoleDefaultPolicy89F3836A", - "Roles": [ - { - "Ref": "AmplifyTableWaiterStateMachineRole470BE899" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Role/DefaultPolicy/Resource" - } - }, - "AmplifyTableWaiterStateMachine060600BC": { - "Type": "AWS::StepFunctions::StateMachine", - "Properties": { - "DefinitionString": { - "Fn::Join": [ - "", - [ - "{\"StartAt\":\"framework-isComplete-task\",\"States\":{\"framework-isComplete-task\":{\"End\":true,\"Retry\":[{\"ErrorEquals\":[\"States.ALL\"],\"IntervalSeconds\":10,\"MaxAttempts\":360,\"BackoffRate\":1}],\"Type\":\"Task\",\"Resource\":\"", - { - "Fn::GetAtt": [ - "TableManagerCustomProviderframeworkisComplete2E51021B", - "Arn" - ] - }, - "\"}}}" - ] - ] - }, - "RoleArn": { - "Fn::GetAtt": [ - "AmplifyTableWaiterStateMachineRole470BE899", - "Arn" - ] - } - }, - "DependsOn": [ - "AmplifyTableWaiterStateMachineRoleDefaultPolicy89F3836A", - "AmplifyTableWaiterStateMachineRole470BE899" - ], - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/zWNyw6CMBBFv4V9GXm4cCsmLo2BDyBDGclAaROmSEzDvxtAV+fcnMXNIDunkES4SKzbITbcQHiQeGorj3pQuEgdGEcIpTOkbi+78+kM6882D1uVwbFpEcJ9ttqzs1v7+6okr1GEvMB1g5IcilkP5AsUWlVJ4uZJk9pr5bFj2+1nv7Aq61qCXk7vLIP0AknUC3M8zdbzSFAe/ALgt1g4zwAAAA==" - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/AmplifyTableManager/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId": { - "Type": "String" - } - }, - "Outputs": { - "amplifymediavaultgen2mainbranched5eb897f9dataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEventB15C54B2Arn": { - "Value": { - "Fn::GetAtt": [ - "TableManagerCustomProviderframeworkonEvent1DFC2ECC", - "Arn" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5e-amplifyDataFunctionDirectiveStackNestedSta-56BZQVYS3BQW.description.txt b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5e-amplifyDataFunctionDirectiveStackNestedSta-56BZQVYS3BQW.description.txt deleted file mode 100644 index 87d574fa42f..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5e-amplifyDataFunctionDirectiveStackNestedSta-56BZQVYS3BQW.description.txt +++ /dev/null @@ -1 +0,0 @@ -An auto-generated nested stack for the @function directive. \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5e-amplifyDataFunctionDirectiveStackNestedSta-56BZQVYS3BQW.outputs.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5e-amplifyDataFunctionDirectiveStackNestedSta-56BZQVYS3BQW.outputs.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5e-amplifyDataFunctionDirectiveStackNestedSta-56BZQVYS3BQW.outputs.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5e-amplifyDataFunctionDirectiveStackNestedSta-56BZQVYS3BQW.parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5e-amplifyDataFunctionDirectiveStackNestedSta-56BZQVYS3BQW.parameters.json deleted file mode 100644 index 2bf837f30ad..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5e-amplifyDataFunctionDirectiveStackNestedSta-56BZQVYS3BQW.parameters.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthauthenticatedUserRoleC20A3134Ref", - "ParameterValue": "amplify-mediavault-ge-amplifyAuthauthenticatedU-slnshFMVHHTk" - }, - { - "ParameterKey": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthIdentityPoolB6C3F181Ref", - "ParameterValue": "us-east-1:bed96618-da8d-4017-b873-fdff1744397a" - }, - { - "ParameterKey": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthunauthenticatedUserRoleEF69FE43Ref", - "ParameterValue": "amplify-mediavault-ge-amplifyAuthunauthenticate-vTKBs153l45R" - }, - { - "ParameterKey": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId", - "ParameterValue": "lrahqddacbde5pc3etoruofrzu" - }, - { - "ParameterKey": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPINONEDS72CA46E4Name", - "ParameterValue": "NONE_DS" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5e-amplifyDataFunctionDirectiveStackNestedSta-56BZQVYS3BQW.template.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5e-amplifyDataFunctionDirectiveStackNestedSta-56BZQVYS3BQW.template.json deleted file mode 100644 index 955abbe4eff..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5e-amplifyDataFunctionDirectiveStackNestedSta-56BZQVYS3BQW.template.json +++ /dev/null @@ -1,1050 +0,0 @@ -{ - "Description": "An auto-generated nested stack for the @function directive.", - "AWSTemplateFormatVersion": "2010-09-09", - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - "NONE", - "NONE" - ] - } - ] - }, - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Resources": { - "ThumbnailgenGen2MainLambdaDataSourceServiceRoleD637BE0A": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "mediavault" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/FunctionDirectiveStack/ThumbnailgenGen2MainLambdaDataSource/ServiceRole/Resource" - } - }, - "ThumbnailgenGen2MainLambdaDataSourceServiceRoleDefaultPolicy56A9B612": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "lambda:InvokeFunction", - "Effect": "Allow", - "Resource": [ - { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:thumbnailgen-gen2-main", - {} - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:thumbnailgen-gen2-main" - } - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:thumbnailgen-gen2-main", - {} - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:thumbnailgen-gen2-main" - } - ] - }, - ":*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "ThumbnailgenGen2MainLambdaDataSourceServiceRoleDefaultPolicy56A9B612", - "Roles": [ - { - "Ref": "ThumbnailgenGen2MainLambdaDataSourceServiceRoleD637BE0A" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/FunctionDirectiveStack/ThumbnailgenGen2MainLambdaDataSource/ServiceRole/DefaultPolicy/Resource" - } - }, - "ThumbnailgenGen2MainLambdaDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "LambdaConfig": { - "LambdaFunctionArn": { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:thumbnailgen-gen2-main", - {} - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:thumbnailgen-gen2-main" - } - ] - } - }, - "Name": "ThumbnailgenGen2MainLambdaDataSource", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "ThumbnailgenGen2MainLambdaDataSourceServiceRoleD637BE0A", - "Arn" - ] - }, - "Type": "AWS_LAMBDA" - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/FunctionDirectiveStack/ThumbnailgenGen2MainLambdaDataSource/Resource" - } - }, - "InvokeThumbnailgenGen2MainLambdaDataSourceInvokeThumbnailgenGen2MainLambdaDataSourceAppSyncFunctionE2DDEE91": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ThumbnailgenGen2MainLambdaDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "InvokeThumbnailgenGen2MainLambdaDataSource", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/5736351ae50b856edda3d68d94db53da1d8ff442470af550a290c29df443b572.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a20e304512b1fde77dc16ed9d5e0ed03817afcab629ce87ef11c99877b7b1e30.vtl" - } - }, - "DependsOn": [ - "ThumbnailgenGen2MainLambdaDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/FunctionDirectiveStack/InvokeThumbnailgenGen2MainLambdaDataSource/InvokeThumbnailgenGen2MainLambdaDataSource.AppSyncFunction" - } - }, - "QuerygenerateThumbnailResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "FieldName": "generateThumbnail", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QueryGenerateThumbnailAuthFNQueryGenerateThumbnailAuthFNAppSyncFunction60C28AA7", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "InvokeThumbnailgenGen2MainLambdaDataSourceInvokeThumbnailgenGen2MainLambdaDataSourceAppSyncFunctionE2DDEE91", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"generateThumbnail\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthauthenticatedUserRoleC20A3134Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthunauthenticatedUserRoleEF69FE43Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthIdentityPoolB6C3F181Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n{}\n## [End] Stash resolver specific context.. **" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/387d5992f5fc03d05de27289457dcc374a84c42a889acb504aff1031047dde00.vtl" - }, - "TypeName": "Query" - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/FunctionDirectiveStack/queryGenerateThumbnailResolver" - } - }, - "AddusertogroupGen2MainLambdaDataSourceServiceRoleEDF6D158": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "mediavault" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/FunctionDirectiveStack/AddusertogroupGen2MainLambdaDataSource/ServiceRole/Resource" - } - }, - "AddusertogroupGen2MainLambdaDataSourceServiceRoleDefaultPolicy8B6C284F": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "lambda:InvokeFunction", - "Effect": "Allow", - "Resource": [ - { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:addusertogroup-gen2-main", - {} - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:addusertogroup-gen2-main" - } - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:addusertogroup-gen2-main", - {} - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:addusertogroup-gen2-main" - } - ] - }, - ":*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "AddusertogroupGen2MainLambdaDataSourceServiceRoleDefaultPolicy8B6C284F", - "Roles": [ - { - "Ref": "AddusertogroupGen2MainLambdaDataSourceServiceRoleEDF6D158" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/FunctionDirectiveStack/AddusertogroupGen2MainLambdaDataSource/ServiceRole/DefaultPolicy/Resource" - } - }, - "AddusertogroupGen2MainLambdaDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "LambdaConfig": { - "LambdaFunctionArn": { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:addusertogroup-gen2-main", - {} - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:addusertogroup-gen2-main" - } - ] - } - }, - "Name": "AddusertogroupGen2MainLambdaDataSource", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "AddusertogroupGen2MainLambdaDataSourceServiceRoleEDF6D158", - "Arn" - ] - }, - "Type": "AWS_LAMBDA" - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/FunctionDirectiveStack/AddusertogroupGen2MainLambdaDataSource/Resource" - } - }, - "InvokeAddusertogroupGen2MainLambdaDataSourceInvokeAddusertogroupGen2MainLambdaDataSourceAppSyncFunction0524E535": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "AddusertogroupGen2MainLambdaDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "InvokeAddusertogroupGen2MainLambdaDataSource", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/6c64d01abb851d44db0db567def1ada57c0fa2b9b1be30ee49c7df4b4b00d3d9.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a20e304512b1fde77dc16ed9d5e0ed03817afcab629ce87ef11c99877b7b1e30.vtl" - } - }, - "DependsOn": [ - "AddusertogroupGen2MainLambdaDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/FunctionDirectiveStack/InvokeAddusertogroupGen2MainLambdaDataSource/InvokeAddusertogroupGen2MainLambdaDataSource.AppSyncFunction" - } - }, - "QueryaddUserToGroupResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "FieldName": "addUserToGroup", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QueryAddUserToGroupAuthFNQueryAddUserToGroupAuthFNAppSyncFunction960BE190", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "InvokeAddusertogroupGen2MainLambdaDataSourceInvokeAddusertogroupGen2MainLambdaDataSourceAppSyncFunction0524E535", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"addUserToGroup\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthauthenticatedUserRoleC20A3134Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthunauthenticatedUserRoleEF69FE43Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthIdentityPoolB6C3F181Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n{}\n## [End] Stash resolver specific context.. **" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/387d5992f5fc03d05de27289457dcc374a84c42a889acb504aff1031047dde00.vtl" - }, - "TypeName": "Query" - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/FunctionDirectiveStack/queryAddUserToGroupResolver" - } - }, - "RemoveuserfromgroupGen2MainLambdaDataSourceServiceRole39F9CA64": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "mediavault" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/FunctionDirectiveStack/RemoveuserfromgroupGen2MainLambdaDataSource/ServiceRole/Resource" - } - }, - "RemoveuserfromgroupGen2MainLambdaDataSourceServiceRoleDefaultPolicy4F16685D": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "lambda:InvokeFunction", - "Effect": "Allow", - "Resource": [ - { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:removeuserfromgroup-gen2-main", - {} - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:removeuserfromgroup-gen2-main" - } - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:removeuserfromgroup-gen2-main", - {} - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:removeuserfromgroup-gen2-main" - } - ] - }, - ":*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "RemoveuserfromgroupGen2MainLambdaDataSourceServiceRoleDefaultPolicy4F16685D", - "Roles": [ - { - "Ref": "RemoveuserfromgroupGen2MainLambdaDataSourceServiceRole39F9CA64" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/FunctionDirectiveStack/RemoveuserfromgroupGen2MainLambdaDataSource/ServiceRole/DefaultPolicy/Resource" - } - }, - "RemoveuserfromgroupGen2MainLambdaDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "LambdaConfig": { - "LambdaFunctionArn": { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:removeuserfromgroup-gen2-main", - {} - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:removeuserfromgroup-gen2-main" - } - ] - } - }, - "Name": "RemoveuserfromgroupGen2MainLambdaDataSource", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "RemoveuserfromgroupGen2MainLambdaDataSourceServiceRole39F9CA64", - "Arn" - ] - }, - "Type": "AWS_LAMBDA" - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/FunctionDirectiveStack/RemoveuserfromgroupGen2MainLambdaDataSource/Resource" - } - }, - "InvokeRemoveuserfromgroupGen2MainLambdaDataSourceInvokeRemoveuserfromgroupGen2MainLambdaDataSourceAppSyncFunction3BA735CF": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "RemoveuserfromgroupGen2MainLambdaDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "InvokeRemoveuserfromgroupGen2MainLambdaDataSource", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4d8c1afe4a45401ae3f11fcdf02892834bb89a81eb03bda8c1e925fa1615df5e.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a20e304512b1fde77dc16ed9d5e0ed03817afcab629ce87ef11c99877b7b1e30.vtl" - } - }, - "DependsOn": [ - "RemoveuserfromgroupGen2MainLambdaDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/FunctionDirectiveStack/InvokeRemoveuserfromgroupGen2MainLambdaDataSource/InvokeRemoveuserfromgroupGen2MainLambdaDataSource.AppSyncFunction" - } - }, - "QueryremoveUserFromGroupResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "FieldName": "removeUserFromGroup", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QueryRemoveUserFromGroupAuthFNQueryRemoveUserFromGroupAuthFNAppSyncFunctionAAB567DE", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "InvokeRemoveuserfromgroupGen2MainLambdaDataSourceInvokeRemoveuserfromgroupGen2MainLambdaDataSourceAppSyncFunction3BA735CF", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"removeUserFromGroup\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthauthenticatedUserRoleC20A3134Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthunauthenticatedUserRoleEF69FE43Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthIdentityPoolB6C3F181Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n{}\n## [End] Stash resolver specific context.. **" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/387d5992f5fc03d05de27289457dcc374a84c42a889acb504aff1031047dde00.vtl" - }, - "TypeName": "Query" - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/FunctionDirectiveStack/queryRemoveUserFromGroupResolver" - } - }, - "QueryGenerateThumbnailAuthFNQueryGenerateThumbnailAuthFNAppSyncFunction60C28AA7": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPINONEDS72CA46E4Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryGenerateThumbnailAuthFN", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/FunctionDirectiveStack/QueryGenerateThumbnailAuthFN/QueryGenerateThumbnailAuthFN.AppSyncFunction" - } - }, - "QueryAddUserToGroupAuthFNQueryAddUserToGroupAuthFNAppSyncFunction960BE190": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPINONEDS72CA46E4Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryAddUserToGroupAuthFN", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/FunctionDirectiveStack/QueryAddUserToGroupAuthFN/QueryAddUserToGroupAuthFN.AppSyncFunction" - } - }, - "QueryRemoveUserFromGroupAuthFNQueryRemoveUserFromGroupAuthFNAppSyncFunctionAAB567DE": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPINONEDS72CA46E4Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryRemoveUserFromGroupAuthFN", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/FunctionDirectiveStack/QueryRemoveUserFromGroupAuthFN/QueryRemoveUserFromGroupAuthFN.AppSyncFunction" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOQW/CMAyFfwv31IPCYdfRaadpmtofgEziVqapg+oEhKr+d5SgHXb6/J79nlxDfdjBdoN3rawbK89nWH5II7kuoh1N00sTxHHkIAbvelo8TmeH8JXEZvOISgavV32IheW7LD8xYhfSbCnn/6u/XBOk5yHNWJqbXlrS4G80r4ZxgqUNvtwX/gbP9pHla1qN7k+oSlHhI8PoHo7JjhTzP6spZhdxYBlWI8ERXPTtVtewe4ft5qLM1Zwk8kTQvvgElyxBfQsBAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/FunctionDirectiveStack/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Parameters": { - "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId": { - "Type": "String" - }, - "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthauthenticatedUserRoleC20A3134Ref": { - "Type": "String" - }, - "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthunauthenticatedUserRoleEF69FE43Ref": { - "Type": "String" - }, - "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthIdentityPoolB6C3F181Ref": { - "Type": "String" - }, - "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPINONEDS72CA46E4Name": { - "Type": "String" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5e-amplifyDataNoteNestedStackNoteNestedStackR-BYDI1VXRVLDL.description.txt b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5e-amplifyDataNoteNestedStackNoteNestedStackR-BYDI1VXRVLDL.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5e-amplifyDataNoteNestedStackNoteNestedStackR-BYDI1VXRVLDL.outputs.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5e-amplifyDataNoteNestedStackNoteNestedStackR-BYDI1VXRVLDL.outputs.json deleted file mode 100644 index f617335fb43..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5e-amplifyDataNoteNestedStackNoteNestedStackR-BYDI1VXRVLDL.outputs.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "OutputKey": "GetAttNoteTableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Note-5aahjbxypzan3jqab7lbquus4m-main/stream/2026-03-08T14:53:56.204", - "Description": "Your DynamoDB table StreamArn.", - "ExportName": "lrahqddacbde5pc3etoruofrzu:GetAtt:NoteTable:StreamArn" - }, - { - "OutputKey": "GetAttNoteTableName", - "OutputValue": "Note-5aahjbxypzan3jqab7lbquus4m-main", - "Description": "Your DynamoDB table name.", - "ExportName": "lrahqddacbde5pc3etoruofrzu:GetAtt:NoteTable:Name" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5e-amplifyDataNoteNestedStackNoteNestedStackR-BYDI1VXRVLDL.parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5e-amplifyDataNoteNestedStackNoteNestedStackR-BYDI1VXRVLDL.parameters.json deleted file mode 100644 index 12b2dc0c8be..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5e-amplifyDataNoteNestedStackNoteNestedStackR-BYDI1VXRVLDL.parameters.json +++ /dev/null @@ -1,46 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthauthenticatedUserRoleC20A3134Ref", - "ParameterValue": "amplify-mediavault-ge-amplifyAuthauthenticatedU-slnshFMVHHTk" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "true" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceB4D1B84FOutputsamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataAmplifyTableManagerTableMa7AAB1CB8", - "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-mediavault-ge-TableManagerCustomProvid-wtgatGRcG6Wl" - }, - { - "ParameterKey": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthIdentityPoolB6C3F181Ref", - "ParameterValue": "us-east-1:bed96618-da8d-4017-b873-fdff1744397a" - }, - { - "ParameterKey": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthunauthenticatedUserRoleEF69FE43Ref", - "ParameterValue": "amplify-mediavault-ge-amplifyAuthunauthenticate-vTKBs153l45R" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId", - "ParameterValue": "lrahqddacbde5pc3etoruofrzu" - }, - { - "ParameterKey": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPINONEDS72CA46E4Name", - "ParameterValue": "NONE_DS" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5e-amplifyDataNoteNestedStackNoteNestedStackR-BYDI1VXRVLDL.template.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5e-amplifyDataNoteNestedStackNoteNestedStackR-BYDI1VXRVLDL.template.json deleted file mode 100644 index ba9d54b69f3..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5e-amplifyDataNoteNestedStackNoteNestedStackR-BYDI1VXRVLDL.template.json +++ /dev/null @@ -1,2060 +0,0 @@ -{ - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceB4D1B84FOutputsamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataAmplifyTableManagerTableMa7AAB1CB8": { - "Type": "String" - }, - "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId": { - "Type": "String" - }, - "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPINONEDS72CA46E4Name": { - "Type": "String" - }, - "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthauthenticatedUserRoleC20A3134Ref": { - "Type": "String" - }, - "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthunauthenticatedUserRoleEF69FE43Ref": { - "Type": "String" - }, - "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthIdentityPoolB6C3F181Ref": { - "Type": "String" - } - }, - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - "NONE", - "NONE" - ] - } - ] - }, - "ShouldUsePayPerRequestBilling": { - "Fn::Equals": [ - { - "Ref": "DynamoDBBillingMode" - }, - "PAY_PER_REQUEST" - ] - }, - "ShouldUsePointInTimeRecovery": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "true" - ] - }, - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Resources": { - "NoteTable": { - "Type": "Custom::ImportedAmplifyDynamoDBTable", - "Properties": { - "ServiceToken": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceB4D1B84FOutputsamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataAmplifyTableManagerTableMa7AAB1CB8" - }, - "tableName": "Note-5aahjbxypzan3jqab7lbquus4m-main", - "attributeDefinitions": [ - { - "attributeName": "id", - "attributeType": "S" - } - ], - "keySchema": [ - { - "attributeName": "id", - "keyType": "HASH" - } - ], - "provisionedThroughput": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - { - "Ref": "AWS::NoValue" - }, - { - "ReadCapacityUnits": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "WriteCapacityUnits": { - "Ref": "DynamoDBModelTableWriteIOPS" - } - } - ] - }, - "sseSpecification": { - "sseEnabled": false - }, - "streamSpecification": { - "streamViewType": "NEW_AND_OLD_IMAGES" - }, - "deletionProtectionEnabled": true, - "allowDestructiveGraphqlSchemaUpdates": true, - "replaceTableUponGsiUpdate": false, - "isImported": true, - "pointInTimeRecoverySpecification": { - "Fn::If": [ - "ShouldUsePointInTimeRecovery", - { - "PointInTimeRecoveryEnabled": true - }, - { - "Ref": "AWS::NoValue" - } - ] - }, - "billingMode": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - "PAY_PER_REQUEST", - { - "Ref": "AWS::NoValue" - } - ] - } - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain", - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/Note/NoteTable/Default/Default" - } - }, - "NoteIAMRoleCA742F19": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:DeleteItem", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:Query", - "dynamodb:UpdateItem", - "dynamodb:ConditionCheckItem", - "dynamodb:DescribeTable", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", - { - "tablename": "Note-5aahjbxypzan3jqab7lbquus4m-main" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", - { - "tablename": "Note-5aahjbxypzan3jqab7lbquus4m-main" - } - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "DynamoDBAccess" - } - ], - "RoleName": { - "Fn::Join": [ - "", - [ - "NoteIAMRoleee5963-", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "-NONE" - ] - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "mediavault" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/Note/NoteIAMRole/Resource" - } - }, - "NoteDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "DynamoDBConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "TableName": { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "NoteTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - } - }, - "Name": "NoteTable", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "NoteIAMRoleCA742F19", - "Arn" - ] - }, - "Type": "AMAZON_DYNAMODB" - }, - "DependsOn": [ - "NoteIAMRoleCA742F19" - ], - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/Note/NoteDataSource/Resource" - } - }, - "QuerygetNoteauth0FunctionQuerygetNoteauth0FunctionAppSyncFunction1125F54B": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPINONEDS72CA46E4Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetNoteauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/7c906bdbe9733fd35b13e9dbed01e27b56ec33b5bffcc7f829f2f82bc94c0fd1.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/Note/QuerygetNoteauth0Function/QuerygetNoteauth0Function.AppSyncFunction" - } - }, - "QuerygetNotepostAuth0FunctionQuerygetNotepostAuth0FunctionAppSyncFunctionBC9940CA": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPINONEDS72CA46E4Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetNotepostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/Note/QuerygetNotepostAuth0Function/QuerygetNotepostAuth0Function.AppSyncFunction" - } - }, - "QueryGetNoteDataResolverFnQueryGetNoteDataResolverFnAppSyncFunction2F346125": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "NoteDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryGetNoteDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/08f4d557693d96c1a4efba0f9dc91330e4b19772fd5477c156468843e3d9cb5e.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4c6a2d29f01c6091bd1d9afe16e5849d456c96f17c3b215938c8067399532719.vtl" - } - }, - "DependsOn": [ - "NoteDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/Note/QueryGetNoteDataResolverFn/QueryGetNoteDataResolverFn.AppSyncFunction" - } - }, - "GetNoteResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "FieldName": "getNote", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerygetNoteauth0FunctionQuerygetNoteauth0FunctionAppSyncFunction1125F54B", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetNotepostAuth0FunctionQuerygetNotepostAuth0FunctionAppSyncFunctionBC9940CA", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryGetNoteDataResolverFnQueryGetNoteDataResolverFnAppSyncFunction2F346125", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getNote\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "NoteTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthauthenticatedUserRoleC20A3134Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthunauthenticatedUserRoleEF69FE43Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthIdentityPoolB6C3F181Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/Note/queryGetNoteResolver" - } - }, - "QuerylistNotesauth0FunctionQuerylistNotesauth0FunctionAppSyncFunction4C828F45": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPINONEDS72CA46E4Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerylistNotesauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/7c906bdbe9733fd35b13e9dbed01e27b56ec33b5bffcc7f829f2f82bc94c0fd1.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/Note/QuerylistNotesauth0Function/QuerylistNotesauth0Function.AppSyncFunction" - } - }, - "QuerylistNotespostAuth0FunctionQuerylistNotespostAuth0FunctionAppSyncFunctionCEA378D3": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPINONEDS72CA46E4Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerylistNotespostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/Note/QuerylistNotespostAuth0Function/QuerylistNotespostAuth0Function.AppSyncFunction" - } - }, - "QueryListNotesDataResolverFnQueryListNotesDataResolverFnAppSyncFunctionBD5C872B": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "NoteDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryListNotesDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9fcbe070ecd3023c5bf5b966fa9584757db9762eef123bad0820bd87591b2174.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/cc01911d0269d4080ea57505dc445dfc315ef7ad85d3d9d4ea1357858bff451d.vtl" - } - }, - "DependsOn": [ - "NoteDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/Note/QueryListNotesDataResolverFn/QueryListNotesDataResolverFn.AppSyncFunction" - } - }, - "ListNoteResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "FieldName": "listNotes", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerylistNotesauth0FunctionQuerylistNotesauth0FunctionAppSyncFunction4C828F45", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerylistNotespostAuth0FunctionQuerylistNotespostAuth0FunctionAppSyncFunctionCEA378D3", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryListNotesDataResolverFnQueryListNotesDataResolverFnAppSyncFunctionBD5C872B", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listNotes\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "NoteTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthauthenticatedUserRoleC20A3134Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthunauthenticatedUserRoleEF69FE43Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthIdentityPoolB6C3F181Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/Note/queryListNotesResolver" - } - }, - "MutationcreateNoteinit0FunctionMutationcreateNoteinit0FunctionAppSyncFunction336343A0": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPINONEDS72CA46E4Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateNoteinit0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a183ddccbd956316c38ef97177b8f088ef0826f62023323f5ae6053d348ccffc.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/Note/MutationcreateNoteinit0Function/MutationcreateNoteinit0Function.AppSyncFunction" - } - }, - "MutationcreateNoteauth0FunctionMutationcreateNoteauth0FunctionAppSyncFunction24439C2F": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPINONEDS72CA46E4Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateNoteauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/88436a6d0fcb5ee5145caf121805717562e647839b222d7cc14896999031440e.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/Note/MutationcreateNoteauth0Function/MutationcreateNoteauth0Function.AppSyncFunction" - } - }, - "MutationcreateNotepostAuth0FunctionMutationcreateNotepostAuth0FunctionAppSyncFunction6D427EC4": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPINONEDS72CA46E4Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateNotepostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/Note/MutationcreateNotepostAuth0Function/MutationcreateNotepostAuth0Function.AppSyncFunction" - } - }, - "MutationCreateNoteDataResolverFnMutationCreateNoteDataResolverFnAppSyncFunction591F5456": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "NoteDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationCreateNoteDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/ff42c2d8afe8e56420aefff0e56c2c3cd9771e3c157baaf27f2d1ed779904aee.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "NoteDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/Note/MutationCreateNoteDataResolverFn/MutationCreateNoteDataResolverFn.AppSyncFunction" - } - }, - "CreateNoteResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "FieldName": "createNote", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationcreateNoteinit0FunctionMutationcreateNoteinit0FunctionAppSyncFunction336343A0", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationcreateNoteauth0FunctionMutationcreateNoteauth0FunctionAppSyncFunction24439C2F", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationcreateNotepostAuth0FunctionMutationcreateNotepostAuth0FunctionAppSyncFunction6D427EC4", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationCreateNoteDataResolverFnMutationCreateNoteDataResolverFnAppSyncFunction591F5456", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createNote\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "NoteTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthauthenticatedUserRoleC20A3134Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthunauthenticatedUserRoleEF69FE43Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthIdentityPoolB6C3F181Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/Note/mutationCreateNoteResolver" - } - }, - "MutationupdateNoteinit0FunctionMutationupdateNoteinit0FunctionAppSyncFunction19D28B0F": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPINONEDS72CA46E4Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateNoteinit0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/06db846fd14e6fc371f22b12b5545ba8e2dbfeda85d8c8d586c71c282166657b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/Note/MutationupdateNoteinit0Function/MutationupdateNoteinit0Function.AppSyncFunction" - } - }, - "MutationupdateNoteauth0FunctionMutationupdateNoteauth0FunctionAppSyncFunction72CAF43F": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "NoteDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateNoteauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/8d451c43284998d89ae093797f2fbc9863d7ddccb0bc8b9af0446e6cc8d53c10.vtl" - } - }, - "DependsOn": [ - "NoteDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/Note/MutationupdateNoteauth0Function/MutationupdateNoteauth0Function.AppSyncFunction" - } - }, - "MutationupdateNotepostAuth0FunctionMutationupdateNotepostAuth0FunctionAppSyncFunction7DBB904D": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPINONEDS72CA46E4Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateNotepostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/Note/MutationupdateNotepostAuth0Function/MutationupdateNotepostAuth0Function.AppSyncFunction" - } - }, - "MutationUpdateNoteDataResolverFnMutationUpdateNoteDataResolverFnAppSyncFunctionBCC5D9E4": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "NoteDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationUpdateNoteDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/474bf0776ec2164a13191d1a0a9e057154931e4918fea5086f49850d02a5371b.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "NoteDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/Note/MutationUpdateNoteDataResolverFn/MutationUpdateNoteDataResolverFn.AppSyncFunction" - } - }, - "UpdateNoteResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "FieldName": "updateNote", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationupdateNoteinit0FunctionMutationupdateNoteinit0FunctionAppSyncFunction19D28B0F", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationupdateNoteauth0FunctionMutationupdateNoteauth0FunctionAppSyncFunction72CAF43F", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationupdateNotepostAuth0FunctionMutationupdateNotepostAuth0FunctionAppSyncFunction7DBB904D", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationUpdateNoteDataResolverFnMutationUpdateNoteDataResolverFnAppSyncFunctionBCC5D9E4", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateNote\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "NoteTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthauthenticatedUserRoleC20A3134Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthunauthenticatedUserRoleEF69FE43Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthIdentityPoolB6C3F181Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/Note/mutationUpdateNoteResolver" - } - }, - "MutationdeleteNoteauth0FunctionMutationdeleteNoteauth0FunctionAppSyncFunction5FE2B4D0": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "NoteDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeleteNoteauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e14ac558dabdaf7eadc441e4330555d896e6a0114fc97f2870d5bd99be02e97b.vtl" - } - }, - "DependsOn": [ - "NoteDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/Note/MutationdeleteNoteauth0Function/MutationdeleteNoteauth0Function.AppSyncFunction" - } - }, - "MutationdeleteNotepostAuth0FunctionMutationdeleteNotepostAuth0FunctionAppSyncFunction5E0783EF": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPINONEDS72CA46E4Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeleteNotepostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/Note/MutationdeleteNotepostAuth0Function/MutationdeleteNotepostAuth0Function.AppSyncFunction" - } - }, - "MutationDeleteNoteDataResolverFnMutationDeleteNoteDataResolverFnAppSyncFunction3FA3FDA0": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "NoteDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationDeleteNoteDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4f7907d1209a2c9953a0c053df402c634e359546d70c7cc5c2e8e21ea734880f.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "NoteDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/Note/MutationDeleteNoteDataResolverFn/MutationDeleteNoteDataResolverFn.AppSyncFunction" - } - }, - "DeleteNoteResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "FieldName": "deleteNote", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationdeleteNoteauth0FunctionMutationdeleteNoteauth0FunctionAppSyncFunction5FE2B4D0", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationdeleteNotepostAuth0FunctionMutationdeleteNotepostAuth0FunctionAppSyncFunction5E0783EF", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationDeleteNoteDataResolverFnMutationDeleteNoteDataResolverFnAppSyncFunction3FA3FDA0", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteNote\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "NoteTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthauthenticatedUserRoleC20A3134Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthunauthenticatedUserRoleEF69FE43Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthIdentityPoolB6C3F181Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/Note/mutationDeleteNoteResolver" - } - }, - "SubscriptiononCreateNoteauth0FunctionSubscriptiononCreateNoteauth0FunctionAppSyncFunction853C832F": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPINONEDS72CA46E4Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononCreateNoteauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/b6b51e3fdd85f7304c336111bc64ff4866c3aa25dff1ad03e23e75c95c9eb367.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/Note/SubscriptiononCreateNoteauth0Function/SubscriptiononCreateNoteauth0Function.AppSyncFunction" - } - }, - "SubscriptiononCreateNotepostAuth0FunctionSubscriptiononCreateNotepostAuth0FunctionAppSyncFunction2FE4DC1E": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPINONEDS72CA46E4Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononCreateNotepostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/Note/SubscriptiononCreateNotepostAuth0Function/SubscriptiononCreateNotepostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnCreateNoteDataResolverFnSubscriptionOnCreateNoteDataResolverFnAppSyncFunction37D6FFF2": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPINONEDS72CA46E4Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnCreateNoteDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/Note/SubscriptionOnCreateNoteDataResolverFn/SubscriptionOnCreateNoteDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononCreateNoteResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "FieldName": "onCreateNote", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononCreateNoteauth0FunctionSubscriptiononCreateNoteauth0FunctionAppSyncFunction853C832F", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononCreateNotepostAuth0FunctionSubscriptiononCreateNotepostAuth0FunctionAppSyncFunction2FE4DC1E", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnCreateNoteDataResolverFnSubscriptionOnCreateNoteDataResolverFnAppSyncFunction37D6FFF2", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateNote\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthauthenticatedUserRoleC20A3134Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthunauthenticatedUserRoleEF69FE43Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthIdentityPoolB6C3F181Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/Note/subscriptionOnCreateNoteResolver" - } - }, - "SubscriptiononUpdateNoteauth0FunctionSubscriptiononUpdateNoteauth0FunctionAppSyncFunction2413D644": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPINONEDS72CA46E4Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononUpdateNoteauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/b6b51e3fdd85f7304c336111bc64ff4866c3aa25dff1ad03e23e75c95c9eb367.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/Note/SubscriptiononUpdateNoteauth0Function/SubscriptiononUpdateNoteauth0Function.AppSyncFunction" - } - }, - "SubscriptiononUpdateNotepostAuth0FunctionSubscriptiononUpdateNotepostAuth0FunctionAppSyncFunction30ABF2EE": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPINONEDS72CA46E4Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononUpdateNotepostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/Note/SubscriptiononUpdateNotepostAuth0Function/SubscriptiononUpdateNotepostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnUpdateNoteDataResolverFnSubscriptionOnUpdateNoteDataResolverFnAppSyncFunctionE4137817": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPINONEDS72CA46E4Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnUpdateNoteDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/Note/SubscriptionOnUpdateNoteDataResolverFn/SubscriptionOnUpdateNoteDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononUpdateNoteResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "FieldName": "onUpdateNote", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononUpdateNoteauth0FunctionSubscriptiononUpdateNoteauth0FunctionAppSyncFunction2413D644", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononUpdateNotepostAuth0FunctionSubscriptiononUpdateNotepostAuth0FunctionAppSyncFunction30ABF2EE", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnUpdateNoteDataResolverFnSubscriptionOnUpdateNoteDataResolverFnAppSyncFunctionE4137817", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateNote\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthauthenticatedUserRoleC20A3134Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthunauthenticatedUserRoleEF69FE43Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthIdentityPoolB6C3F181Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/Note/subscriptionOnUpdateNoteResolver" - } - }, - "SubscriptiononDeleteNoteauth0FunctionSubscriptiononDeleteNoteauth0FunctionAppSyncFunction1B717F3B": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPINONEDS72CA46E4Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononDeleteNoteauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/b6b51e3fdd85f7304c336111bc64ff4866c3aa25dff1ad03e23e75c95c9eb367.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/Note/SubscriptiononDeleteNoteauth0Function/SubscriptiononDeleteNoteauth0Function.AppSyncFunction" - } - }, - "SubscriptiononDeleteNotepostAuth0FunctionSubscriptiononDeleteNotepostAuth0FunctionAppSyncFunction7D4AF5B3": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPINONEDS72CA46E4Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononDeleteNotepostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/Note/SubscriptiononDeleteNotepostAuth0Function/SubscriptiononDeleteNotepostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnDeleteNoteDataResolverFnSubscriptionOnDeleteNoteDataResolverFnAppSyncFunctionA1CED045": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPINONEDS72CA46E4Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnDeleteNoteDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/Note/SubscriptionOnDeleteNoteDataResolverFn/SubscriptionOnDeleteNoteDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononDeleteNoteResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "FieldName": "onDeleteNote", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononDeleteNoteauth0FunctionSubscriptiononDeleteNoteauth0FunctionAppSyncFunction1B717F3B", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononDeleteNotepostAuth0FunctionSubscriptiononDeleteNotepostAuth0FunctionAppSyncFunction7D4AF5B3", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnDeleteNoteDataResolverFnSubscriptionOnDeleteNoteDataResolverFnAppSyncFunctionA1CED045", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteNote\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthauthenticatedUserRoleC20A3134Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthunauthenticatedUserRoleEF69FE43Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthIdentityPoolB6C3F181Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/Note/subscriptionOnDeleteNoteResolver" - } - }, - "NoteOwnerDataResolverFnNoteOwnerDataResolverFnAppSyncFunction66A7C72C": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPINONEDS72CA46E4Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "NoteOwnerDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/041534e5fd916595f752318f161512d7c7f83b9f2cf32d0f0be381c12253ff68.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/064303962e481067b44300212516363b99aaee539b6bafaf756fdd83ff0b60f0.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/Note/NoteOwnerDataResolverFn/NoteOwnerDataResolverFn.AppSyncFunction" - } - }, - "NoteownerResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "FieldName": "owner", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "NoteOwnerDataResolverFnNoteOwnerDataResolverFnAppSyncFunction66A7C72C", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Note\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"owner\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthauthenticatedUserRoleC20A3134Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthunauthenticatedUserRoleEF69FE43Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthIdentityPoolB6C3F181Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Note" - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/Note/noteOwnerResolver" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOwW6DMAyGn6X34LV0h11Xqh63CXavTGJQCjgodlpViHefoFOnnX5/8if7zyF/3cF2gzfJrOuy3tcwfZAouUrRdqZo+AsjDqQUFygCO68+sClJQoqWTJFEw/CHDT9nvMl5cnfGIbgavrHu6YBCxuMAUxn6hx16mg2Oo9zZwnRc9WN9RMXqefI/nRLbpUQRuPFtirg2+v3cXynORvZnFCEVeF/CyB4OyXakS4F5cT+TjknNuq4UW8/tbDg4gou8XPMcdm+w3VzE+ywmVj8QlI/8AXh83Gc2AQAA" - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/Note/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Outputs": { - "GetAttNoteTableStreamArn": { - "Description": "Your DynamoDB table StreamArn.", - "Value": { - "Fn::GetAtt": [ - "NoteTable", - "TableStreamArn" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "GetAtt:NoteTable:StreamArn" - ] - ] - } - } - }, - "GetAttNoteTableName": { - "Description": "Your DynamoDB table name.", - "Value": "Note-5aahjbxypzan3jqab7lbquus4m-main", - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - }, - "GetAtt:NoteTable:Name" - ] - ] - } - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9-auth179371D7-CUVK2KFUFY0M.description.txt b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9-auth179371D7-CUVK2KFUFY0M.description.txt deleted file mode 100644 index 813452072ac..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9-auth179371D7-CUVK2KFUFY0M.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.11.1","stackType":"auth-Cognito","metadata":{}} \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9-auth179371D7-CUVK2KFUFY0M.outputs.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9-auth179371D7-CUVK2KFUFY0M.outputs.json deleted file mode 100644 index ef9ace519c6..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9-auth179371D7-CUVK2KFUFY0M.outputs.json +++ /dev/null @@ -1,42 +0,0 @@ -[ - { - "OutputKey": "amplifymediavaultgen2mainbranched5eb897f9authamplifyAuthauthenticatedUserRoleC20A3134Ref", - "OutputValue": "amplify-mediavault-ge-amplifyAuthauthenticatedU-slnshFMVHHTk" - }, - { - "OutputKey": "amplifymediavaultgen2mainbranched5eb897f9authamplifyAuthUserPool9F5CB443Ref", - "OutputValue": "us-east-1_Pwn7i486a" - }, - { - "OutputKey": "amplifymediavaultgen2mainbranched5eb897f9authamplifyAuthUserPoolUserPoolDomainAC114943Ref", - "OutputValue": "deddd8c1d0c4f5cbeefe" - }, - { - "OutputKey": "amplifymediavaultgen2mainbranched5eb897f9authamplifyAuthAdminGroupRoleD3CE4EF4Ref", - "OutputValue": "amplify-mediavault-ge-amplifyAuthAdminGroupRole-iQTk2vzwHVQa" - }, - { - "OutputKey": "amplifymediavaultgen2mainbranched5eb897f9authamplifyAuthUserPoolAppClient20072DD5Ref", - "OutputValue": "427n07aeulhlev4cen3qs6kf17" - }, - { - "OutputKey": "amplifymediavaultgen2mainbranched5eb897f9authamplifyAuthIdentityPoolB6C3F181Ref", - "OutputValue": "us-east-1:bed96618-da8d-4017-b873-fdff1744397a" - }, - { - "OutputKey": "amplifymediavaultgen2mainbranched5eb897f9authremoveuserfromgroupgen2mainlambda5610FB1BRef", - "OutputValue": "removeuserfromgroup-gen2-main" - }, - { - "OutputKey": "amplifymediavaultgen2mainbranched5eb897f9authamplifyAuthunauthenticatedUserRoleEF69FE43Ref", - "OutputValue": "amplify-mediavault-ge-amplifyAuthunauthenticate-vTKBs153l45R" - }, - { - "OutputKey": "amplifymediavaultgen2mainbranched5eb897f9authamplifyAuthBasicGroupRole000D5775Ref", - "OutputValue": "amplify-mediavault-ge-amplifyAuthBasicGroupRole-pQ0ZAig6LwnK" - }, - { - "OutputKey": "amplifymediavaultgen2mainbranched5eb897f9authaddusertogroupgen2mainlambdaFE5FDFFARef", - "OutputValue": "addusertogroup-gen2-main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9-auth179371D7-CUVK2KFUFY0M.parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9-auth179371D7-CUVK2KFUFY0M.parameters.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9-auth179371D7-CUVK2KFUFY0M.parameters.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9-auth179371D7-CUVK2KFUFY0M.template.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9-auth179371D7-CUVK2KFUFY0M.template.json deleted file mode 100644 index 7761c21fd02..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9-auth179371D7-CUVK2KFUFY0M.template.json +++ /dev/null @@ -1,2304 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.11.1\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", - "Resources": { - "AmplifySecretFetcherResourceProviderLambdaServiceRole3F02FB0D": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "mediavault" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/AmplifySecretFetcherResourceProviderLambda/ServiceRole/Resource" - } - }, - "AmplifySecretFetcherResourceProviderLambdaServiceRoleDefaultPolicy080657DD": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "ssm:GetParameter", - "Effect": "Allow", - "Resource": [ - "arn:aws:ssm:*:*:parameter/amplify/mediavault/gen2main-branch-ed5eb897f9/*", - "arn:aws:ssm:*:*:parameter/amplify/shared/mediavault/*" - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "AmplifySecretFetcherResourceProviderLambdaServiceRoleDefaultPolicy080657DD", - "Roles": [ - { - "Ref": "AmplifySecretFetcherResourceProviderLambdaServiceRole3F02FB0D" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/AmplifySecretFetcherResourceProviderLambda/ServiceRole/DefaultPolicy/Resource" - } - }, - "AmplifySecretFetcherResourceProviderLambda27823B35": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "cbc871f9994501d577afec677a17c58ac66b0af419676a949b7099959682a3a0.zip" - }, - "Handler": "index.handler", - "Role": { - "Fn::GetAtt": [ - "AmplifySecretFetcherResourceProviderLambdaServiceRole3F02FB0D", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "mediavault" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 10 - }, - "DependsOn": [ - "AmplifySecretFetcherResourceProviderLambdaServiceRoleDefaultPolicy080657DD", - "AmplifySecretFetcherResourceProviderLambdaServiceRole3F02FB0D" - ], - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/AmplifySecretFetcherResourceProviderLambda/Resource", - "aws:asset:path": "asset.cbc871f9994501d577afec677a17c58ac66b0af419676a949b7099959682a3a0", - "aws:asset:is-bundled": true, - "aws:asset:property": "Code" - } - }, - "AmplifySecretFetcherResourceProviderframeworkonEventServiceRole0941C6B4": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "mediavault" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/AmplifySecretFetcherResourceProvider/framework-onEvent/ServiceRole/Resource" - } - }, - "AmplifySecretFetcherResourceProviderframeworkonEventServiceRoleDefaultPolicy749EBE05": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "lambda:InvokeFunction", - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "AmplifySecretFetcherResourceProviderLambda27823B35", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "AmplifySecretFetcherResourceProviderLambda27823B35", - "Arn" - ] - }, - ":*" - ] - ] - } - ] - }, - { - "Action": "lambda:GetFunction", - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "AmplifySecretFetcherResourceProviderLambda27823B35", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "AmplifySecretFetcherResourceProviderframeworkonEventServiceRoleDefaultPolicy749EBE05", - "Roles": [ - { - "Ref": "AmplifySecretFetcherResourceProviderframeworkonEventServiceRole0941C6B4" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/AmplifySecretFetcherResourceProvider/framework-onEvent/ServiceRole/DefaultPolicy/Resource" - } - }, - "AmplifySecretFetcherResourceProviderframeworkonEventA62AE3A8": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "07a90cc3efdfc34da22208dcd9d211f06f5b0e01b21e778edc7c3966b1f61d57.zip" - }, - "Description": "AWS CDK resource provider framework - onEvent (amplify-mediavault-gen2main-branch-ed5eb897f9/auth/AmplifySecretFetcherResourceProvider)", - "Environment": { - "Variables": { - "USER_ON_EVENT_FUNCTION_ARN": { - "Fn::GetAtt": [ - "AmplifySecretFetcherResourceProviderLambda27823B35", - "Arn" - ] - } - } - }, - "Handler": "framework.onEvent", - "LoggingConfig": { - "ApplicationLogLevel": "FATAL", - "LogFormat": "JSON" - }, - "Role": { - "Fn::GetAtt": [ - "AmplifySecretFetcherResourceProviderframeworkonEventServiceRole0941C6B4", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "mediavault" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 900 - }, - "DependsOn": [ - "AmplifySecretFetcherResourceProviderframeworkonEventServiceRoleDefaultPolicy749EBE05", - "AmplifySecretFetcherResourceProviderframeworkonEventServiceRole0941C6B4" - ], - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/AmplifySecretFetcherResourceProvider/framework-onEvent/Resource", - "aws:asset:path": "asset.07a90cc3efdfc34da22208dcd9d211f06f5b0e01b21e778edc7c3966b1f61d57", - "aws:asset:is-bundled": false, - "aws:asset:property": "Code" - } - }, - "AmplifySecretFetcherResource": { - "Type": "Custom::AmplifySecretFetcherResource", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "AmplifySecretFetcherResourceProviderframeworkonEventA62AE3A8", - "Arn" - ] - }, - "namespace": "mediavault", - "name": "gen2-main", - "type": "branch", - "secretNames": [ - "FACEBOOK_CLIENT_ID", - "FACEBOOK_CLIENT_SECRET", - "GOOGLE_CLIENT_ID", - "GOOGLE_CLIENT_SECRET" - ], - "secretLastUpdated": 1772984792941 - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/AmplifySecretFetcherResource/Default" - } - }, - "amplifyAuthUserPool4BA7F805": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AccountRecoverySetting": { - "RecoveryMechanisms": [ - { - "Name": "verified_email", - "Priority": 1 - } - ] - }, - "AdminCreateUserConfig": { - "AllowAdminCreateUserOnly": false - }, - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": "Your verification code is {####}", - "EmailVerificationSubject": "Your verification code", - "MfaConfiguration": "OFF", - "Policies": { - "PasswordPolicy": { - "MinimumLength": 8, - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false, - "TemporaryPasswordValidityDays": 7 - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "SmsVerificationMessage": "The verification code to your new account is {####}", - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolTags": { - "amplify:app-id": "mediavault", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "amplify:friendly-name": "amplifyAuth", - "created-by": "amplify" - }, - "UsernameAttributes": [ - "email", - "phone_number" - ], - "UsernameConfiguration": { - "CaseSensitive": false - }, - "VerificationMessageTemplate": { - "DefaultEmailOption": "CONFIRM_WITH_CODE", - "EmailMessage": "Your verification code is {####}", - "EmailSubject": "Your verification code", - "SmsMessage": "The verification code to your new account is {####}" - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/amplifyAuth/UserPool/Resource" - } - }, - "amplifyAuthUserPoolUserPoolDomain1F688B5B": { - "Type": "AWS::Cognito::UserPoolDomain", - "Properties": { - "Domain": "deddd8c1d0c4f5cbeefe", - "UserPoolId": { - "Ref": "amplifyAuthUserPool4BA7F805" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/amplifyAuth/UserPool/UserPoolDomain/Resource" - } - }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlows": [ - "code" - ], - "AllowedOAuthFlowsUserPoolClient": true, - "AllowedOAuthScopes": [ - "aws.cognito.signin.user.admin", - "email", - "openid", - "phone", - "profile" - ], - "AuthSessionValidity": 3, - "CallbackURLs": [ - "https://main.d1086iitvfyy6.amplifyapp.com/", - "https://gen2-main.d1086iitvfyy6.amplifyapp.com/" - ], - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "LogoutURLs": [ - "https://main.d1086iitvfyy6.amplifyapp.com/", - "https://gen2-main.d1086iitvfyy6.amplifyapp.com/" - ], - "RefreshTokenValidity": 43200, - "SupportedIdentityProviders": [ - "COGNITO", - "Facebook", - "Google" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": { - "Ref": "amplifyAuthUserPool4BA7F805" - } - }, - "DependsOn": [ - "amplifyAuthFacebookIDP7CB5B5CC", - "amplifyAuthGoogleIdPA9736819" - ], - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, - "amplifyAuthGoogleIdPA9736819": { - "Type": "AWS::Cognito::UserPoolIdentityProvider", - "Properties": { - "AttributeMapping": { - "email": "email" - }, - "ProviderDetails": { - "client_id": { - "Fn::GetAtt": [ - "AmplifySecretFetcherResource", - "GOOGLE_CLIENT_ID" - ] - }, - "client_secret": { - "Fn::GetAtt": [ - "AmplifySecretFetcherResource", - "GOOGLE_CLIENT_SECRET" - ] - }, - "authorize_scopes": "profile" - }, - "ProviderName": "Google", - "ProviderType": "Google", - "UserPoolId": { - "Ref": "amplifyAuthUserPool4BA7F805" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/amplifyAuth/GoogleIdP/Resource" - } - }, - "amplifyAuthFacebookIDP7CB5B5CC": { - "Type": "AWS::Cognito::UserPoolIdentityProvider", - "Properties": { - "AttributeMapping": { - "email": "email" - }, - "ProviderDetails": { - "client_id": { - "Fn::GetAtt": [ - "AmplifySecretFetcherResource", - "FACEBOOK_CLIENT_ID" - ] - }, - "client_secret": { - "Fn::GetAtt": [ - "AmplifySecretFetcherResource", - "FACEBOOK_CLIENT_SECRET" - ] - }, - "authorize_scopes": "public_profile" - }, - "ProviderName": "Facebook", - "ProviderType": "Facebook", - "UserPoolId": { - "Ref": "amplifyAuthUserPool4BA7F805" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/amplifyAuth/FacebookIDP/Resource" - } - }, - "amplifyAuthUserPoolAppClient2626C6F8": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlows": [ - "code" - ], - "AllowedOAuthFlowsUserPoolClient": true, - "AllowedOAuthScopes": [ - "phone", - "email", - "openid", - "profile", - "aws.cognito.signin.user.admin" - ], - "CallbackURLs": [ - "https://main.d1086iitvfyy6.amplifyapp.com/", - "https://gen2-main.d1086iitvfyy6.amplifyapp.com/" - ], - "ExplicitAuthFlows": [ - "ALLOW_CUSTOM_AUTH", - "ALLOW_USER_SRP_AUTH", - "ALLOW_REFRESH_TOKEN_AUTH" - ], - "LogoutURLs": [ - "https://main.d1086iitvfyy6.amplifyapp.com/", - "https://gen2-main.d1086iitvfyy6.amplifyapp.com/" - ], - "PreventUserExistenceErrors": "ENABLED", - "SupportedIdentityProviders": [ - { - "Ref": "amplifyAuthGoogleIdPA9736819" - }, - { - "Ref": "amplifyAuthFacebookIDP7CB5B5CC" - }, - "COGNITO" - ], - "UserPoolId": { - "Ref": "amplifyAuthUserPool4BA7F805" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/amplifyAuth/UserPoolAppClient/Resource" - } - }, - "amplifyAuthIdentityPool3FDE84CC": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": true, - "CognitoIdentityProviders": [ - { - "ClientId": { - "Ref": "amplifyAuthUserPoolAppClient2626C6F8" - }, - "ProviderName": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - { - "Ref": "amplifyAuthUserPool4BA7F805" - } - ] - ] - } - } - ], - "IdentityPoolTags": [ - { - "Key": "amplify:app-id", - "Value": "mediavault" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "SupportedLoginProviders": { - "accounts.google.com": { - "Fn::GetAtt": [ - "AmplifySecretFetcherResource", - "GOOGLE_CLIENT_ID" - ] - }, - "graph.facebook.com": { - "Fn::GetAtt": [ - "AmplifySecretFetcherResource", - "FACEBOOK_CLIENT_ID" - ] - } - } - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/amplifyAuth/IdentityPool" - } - }, - "amplifyAuthauthenticatedUserRoleD8DA3689": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "authenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "mediavault" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/amplifyAuth/authenticatedUserRole/Resource" - } - }, - "amplifyAuthunauthenticatedUserRole2B524D9E": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "unauthenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "mediavault" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/amplifyAuth/unauthenticatedUserRole/Resource" - } - }, - "amplifyAuthIdentityPoolRoleAttachment045F17C8": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - }, - "RoleMappings": { - "UserPoolWebClientRoleMapping": { - "AmbiguousRoleResolution": "AuthenticatedRole", - "IdentityProvider": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - { - "Ref": "amplifyAuthUserPool4BA7F805" - }, - ":", - { - "Ref": "amplifyAuthUserPoolAppClient2626C6F8" - } - ] - ] - }, - "Type": "Token" - } - }, - "Roles": { - "unauthenticated": { - "Fn::GetAtt": [ - "amplifyAuthunauthenticatedUserRole2B524D9E", - "Arn" - ] - }, - "authenticated": { - "Fn::GetAtt": [ - "amplifyAuthauthenticatedUserRoleD8DA3689", - "Arn" - ] - } - } - }, - "DependsOn": [ - "amplifyAuthIdentityPool3FDE84CC", - "amplifyAuthUserPoolAppClient2626C6F8" - ], - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/amplifyAuth/IdentityPoolRoleAttachment" - } - }, - "amplifyAuthAdminGroupRole766878DC": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "authenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "mediavault" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/amplifyAuth/AdminGroupRole/Resource" - } - }, - "amplifyAuthAdminGroupCC42FF04": { - "Type": "AWS::Cognito::UserPoolGroup", - "Properties": { - "GroupName": "Admin", - "Precedence": 0, - "RoleArn": { - "Fn::GetAtt": [ - "amplifyAuthAdminGroupRole766878DC", - "Arn" - ] - }, - "UserPoolId": { - "Ref": "amplifyAuthUserPool4BA7F805" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/amplifyAuth/AdminGroup" - } - }, - "amplifyAuthBasicGroupRole77B9C0CB": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "authenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "mediavault" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/amplifyAuth/BasicGroupRole/Resource" - } - }, - "amplifyAuthBasicGroupC4A5D75D": { - "Type": "AWS::Cognito::UserPoolGroup", - "Properties": { - "GroupName": "Basic", - "Precedence": 1, - "RoleArn": { - "Fn::GetAtt": [ - "amplifyAuthBasicGroupRole77B9C0CB", - "Arn" - ] - }, - "UserPoolId": { - "Ref": "amplifyAuthUserPool4BA7F805" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/amplifyAuth/BasicGroup" - } - }, - "AMPLIFYAUTHUSERPOOLIDParameterCC466CA3": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/mediavault/gen2main-branch-ed5eb897f9/AMPLIFY_AUTH_USERPOOL_ID", - "Tags": { - "amplify:app-id": "mediavault", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": { - "Ref": "amplifyAuthUserPool4BA7F805" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/AMPLIFY_AUTH_USERPOOL_IDParameter/Resource" - } - }, - "addusertogroupgen2mainlambdaServiceRole4A2A7791": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "mediavault" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "addusertogroup-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/addusertogroup-gen2-main-lambda/ServiceRole/Resource" - } - }, - "addusertogroupgen2mainlambdaServiceRoleDefaultPolicyD04702E8": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "ssm:GetParameters", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":ssm:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":parameter/amplify/resource_reference/mediavault/gen2main-branch-ed5eb897f9/AMPLIFY_AUTH_USERPOOL_ID" - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "addusertogroupgen2mainlambdaServiceRoleDefaultPolicyD04702E8", - "Roles": [ - { - "Ref": "addusertogroupgen2mainlambdaServiceRole4A2A7791" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/addusertogroup-gen2-main-lambda/ServiceRole/DefaultPolicy/Resource" - } - }, - "addusertogroupgen2mainlambda7F8E1802": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Architectures": [ - "x86_64" - ], - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "b20dad15a01528de3551381673b2f34553d7b9f1d51812175c3e50ca13f91e00.zip" - }, - "Environment": { - "Variables": { - "ENV": "gen2-main", - "REGION": "us-east-1", - "AMPLIFY_SSM_ENV_CONFIG": "{\"AMPLIFY_AUTH_USERPOOL_ID\":{\"path\":\"/amplify/resource_reference/mediavault/gen2main-branch-ed5eb897f9/AMPLIFY_AUTH_USERPOOL_ID\"}}", - "AMPLIFY_AUTH_USERPOOL_ID": "", - "AUTH_MEDIAVAULT1F08412D_USERPOOLID": { - "Ref": "amplifyAuthUserPool4BA7F805" - } - } - }, - "EphemeralStorage": { - "Size": 512 - }, - "FunctionName": "addusertogroup-gen2-main", - "Handler": "index.handler", - "MemorySize": 128, - "Role": { - "Fn::GetAtt": [ - "addusertogroupgen2mainlambdaServiceRole4A2A7791", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "mediavault" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "addusertogroup-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 25 - }, - "DependsOn": [ - "addusertogroupgen2mainlambdaServiceRole4A2A7791" - ], - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/addusertogroup-gen2-main-lambda/Resource", - "aws:asset:path": "asset.b20dad15a01528de3551381673b2f34553d7b9f1d51812175c3e50ca13f91e00", - "aws:asset:is-bundled": true, - "aws:asset:property": "Code" - } - }, - "userpoolAccess13FEE5419": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "cognito-idp:AdminConfirmSignUp", - "cognito-idp:AdminCreateUser", - "cognito-idp:AdminDeleteUser", - "cognito-idp:AdminDeleteUserAttributes", - "cognito-idp:AdminDisableUser", - "cognito-idp:AdminEnableUser", - "cognito-idp:AdminGetUser", - "cognito-idp:AdminListGroupsForUser", - "cognito-idp:AdminRespondToAuthChallenge", - "cognito-idp:AdminSetUserMFAPreference", - "cognito-idp:AdminSetUserSettings", - "cognito-idp:AdminUpdateUserAttributes", - "cognito-idp:AdminUserGlobalSignOut" - ], - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "amplifyAuthUserPool4BA7F805", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess13FEE5419", - "Roles": [ - { - "Ref": "addusertogroupgen2mainlambdaServiceRole4A2A7791" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/userpoolAccess1/Resource" - } - }, - "userpoolAccess268F187DB": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "cognito-idp:AdminAddUserToGroup", - "cognito-idp:AdminRemoveUserFromGroup" - ], - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "amplifyAuthUserPool4BA7F805", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess268F187DB", - "Roles": [ - { - "Ref": "addusertogroupgen2mainlambdaServiceRole4A2A7791" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/userpoolAccess2/Resource" - } - }, - "userpoolAccess3956C62F8": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "cognito-idp:AdminForgetDevice", - "cognito-idp:AdminGetDevice", - "cognito-idp:AdminListDevices", - "cognito-idp:AdminUpdateDeviceStatus" - ], - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "amplifyAuthUserPool4BA7F805", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess3956C62F8", - "Roles": [ - { - "Ref": "addusertogroupgen2mainlambdaServiceRole4A2A7791" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/userpoolAccess3/Resource" - } - }, - "userpoolAccess4A84025C3": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "cognito-idp:AdminResetUserPassword", - "cognito-idp:AdminSetUserPassword" - ], - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "amplifyAuthUserPool4BA7F805", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess4A84025C3", - "Roles": [ - { - "Ref": "addusertogroupgen2mainlambdaServiceRole4A2A7791" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/userpoolAccess4/Resource" - } - }, - "userpoolAccess585E2FB32": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:AdminSetUserMFAPreference", - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "amplifyAuthUserPool4BA7F805", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess585E2FB32", - "Roles": [ - { - "Ref": "addusertogroupgen2mainlambdaServiceRole4A2A7791" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/userpoolAccess5/Resource" - } - }, - "userpoolAccess600DA4CB0": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:AdminUpdateUserAttributes", - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "amplifyAuthUserPool4BA7F805", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess600DA4CB0", - "Roles": [ - { - "Ref": "addusertogroupgen2mainlambdaServiceRole4A2A7791" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/userpoolAccess6/Resource" - } - }, - "userpoolAccess76F9C91C1": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:AdminForgetDevice", - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "amplifyAuthUserPool4BA7F805", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess76F9C91C1", - "Roles": [ - { - "Ref": "addusertogroupgen2mainlambdaServiceRole4A2A7791" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/userpoolAccess7/Resource" - } - }, - "userpoolAccess85C1BE724": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:AdminSetUserSettings", - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "amplifyAuthUserPool4BA7F805", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess85C1BE724", - "Roles": [ - { - "Ref": "addusertogroupgen2mainlambdaServiceRole4A2A7791" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/userpoolAccess8/Resource" - } - }, - "userpoolAccess919BF17A1": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:ListUsers", - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "amplifyAuthUserPool4BA7F805", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess919BF17A1", - "Roles": [ - { - "Ref": "addusertogroupgen2mainlambdaServiceRole4A2A7791" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/userpoolAccess9/Resource" - } - }, - "userpoolAccess103DE3A3DA": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:ListUsersInGroup", - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "amplifyAuthUserPool4BA7F805", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess103DE3A3DA", - "Roles": [ - { - "Ref": "addusertogroupgen2mainlambdaServiceRole4A2A7791" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/userpoolAccess10/Resource" - } - }, - "userpoolAccess114E9EE2D5": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:ListGroups", - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "amplifyAuthUserPool4BA7F805", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess114E9EE2D5", - "Roles": [ - { - "Ref": "addusertogroupgen2mainlambdaServiceRole4A2A7791" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/userpoolAccess11/Resource" - } - }, - "removeuserfromgroupgen2mainlambdaServiceRoleA777F6E0": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "mediavault" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "removeuserfromgroup-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/removeuserfromgroup-gen2-main-lambda/ServiceRole/Resource" - } - }, - "removeuserfromgroupgen2mainlambdaServiceRoleDefaultPolicyB0663B17": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "ssm:GetParameters", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":ssm:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":parameter/amplify/resource_reference/mediavault/gen2main-branch-ed5eb897f9/AMPLIFY_AUTH_USERPOOL_ID" - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "removeuserfromgroupgen2mainlambdaServiceRoleDefaultPolicyB0663B17", - "Roles": [ - { - "Ref": "removeuserfromgroupgen2mainlambdaServiceRoleA777F6E0" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/removeuserfromgroup-gen2-main-lambda/ServiceRole/DefaultPolicy/Resource" - } - }, - "removeuserfromgroupgen2mainlambda8AC70B81": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Architectures": [ - "x86_64" - ], - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "4c58c6e2b19db91f667460f1c9f6968820acc85ab879e83237d3b70007ea95fb.zip" - }, - "Environment": { - "Variables": { - "ENV": "gen2-main", - "REGION": "us-east-1", - "AMPLIFY_SSM_ENV_CONFIG": "{\"AMPLIFY_AUTH_USERPOOL_ID\":{\"path\":\"/amplify/resource_reference/mediavault/gen2main-branch-ed5eb897f9/AMPLIFY_AUTH_USERPOOL_ID\"}}", - "AMPLIFY_AUTH_USERPOOL_ID": "", - "AUTH_MEDIAVAULT1F08412D_USERPOOLID": { - "Ref": "amplifyAuthUserPool4BA7F805" - } - } - }, - "EphemeralStorage": { - "Size": 512 - }, - "FunctionName": "removeuserfromgroup-gen2-main", - "Handler": "index.handler", - "MemorySize": 128, - "Role": { - "Fn::GetAtt": [ - "removeuserfromgroupgen2mainlambdaServiceRoleA777F6E0", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "mediavault" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "removeuserfromgroup-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 25 - }, - "DependsOn": [ - "removeuserfromgroupgen2mainlambdaServiceRoleA777F6E0" - ], - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/removeuserfromgroup-gen2-main-lambda/Resource", - "aws:asset:path": "asset.4c58c6e2b19db91f667460f1c9f6968820acc85ab879e83237d3b70007ea95fb", - "aws:asset:is-bundled": true, - "aws:asset:property": "Code" - } - }, - "userpoolAccess1268A998CE": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "cognito-idp:AdminConfirmSignUp", - "cognito-idp:AdminCreateUser", - "cognito-idp:AdminDeleteUser", - "cognito-idp:AdminDeleteUserAttributes", - "cognito-idp:AdminDisableUser", - "cognito-idp:AdminEnableUser", - "cognito-idp:AdminGetUser", - "cognito-idp:AdminListGroupsForUser", - "cognito-idp:AdminRespondToAuthChallenge", - "cognito-idp:AdminSetUserMFAPreference", - "cognito-idp:AdminSetUserSettings", - "cognito-idp:AdminUpdateUserAttributes", - "cognito-idp:AdminUserGlobalSignOut" - ], - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "amplifyAuthUserPool4BA7F805", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess1268A998CE", - "Roles": [ - { - "Ref": "removeuserfromgroupgen2mainlambdaServiceRoleA777F6E0" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/userpoolAccess12/Resource" - } - }, - "userpoolAccess13BB9602E6": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "cognito-idp:AdminAddUserToGroup", - "cognito-idp:AdminRemoveUserFromGroup" - ], - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "amplifyAuthUserPool4BA7F805", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess13BB9602E6", - "Roles": [ - { - "Ref": "removeuserfromgroupgen2mainlambdaServiceRoleA777F6E0" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/userpoolAccess13/Resource" - } - }, - "userpoolAccess140CE1F2B0": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "cognito-idp:AdminForgetDevice", - "cognito-idp:AdminGetDevice", - "cognito-idp:AdminListDevices", - "cognito-idp:AdminUpdateDeviceStatus" - ], - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "amplifyAuthUserPool4BA7F805", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess140CE1F2B0", - "Roles": [ - { - "Ref": "removeuserfromgroupgen2mainlambdaServiceRoleA777F6E0" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/userpoolAccess14/Resource" - } - }, - "userpoolAccess1530C05CCB": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "cognito-idp:AdminResetUserPassword", - "cognito-idp:AdminSetUserPassword" - ], - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "amplifyAuthUserPool4BA7F805", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess1530C05CCB", - "Roles": [ - { - "Ref": "removeuserfromgroupgen2mainlambdaServiceRoleA777F6E0" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/userpoolAccess15/Resource" - } - }, - "userpoolAccess1676F22644": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:AdminSetUserMFAPreference", - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "amplifyAuthUserPool4BA7F805", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess1676F22644", - "Roles": [ - { - "Ref": "removeuserfromgroupgen2mainlambdaServiceRoleA777F6E0" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/userpoolAccess16/Resource" - } - }, - "userpoolAccess17CAC1A603": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:AdminUpdateUserAttributes", - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "amplifyAuthUserPool4BA7F805", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess17CAC1A603", - "Roles": [ - { - "Ref": "removeuserfromgroupgen2mainlambdaServiceRoleA777F6E0" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/userpoolAccess17/Resource" - } - }, - "userpoolAccess182B4CED9F": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:AdminForgetDevice", - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "amplifyAuthUserPool4BA7F805", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess182B4CED9F", - "Roles": [ - { - "Ref": "removeuserfromgroupgen2mainlambdaServiceRoleA777F6E0" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/userpoolAccess18/Resource" - } - }, - "userpoolAccess1965647B18": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:AdminSetUserSettings", - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "amplifyAuthUserPool4BA7F805", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess1965647B18", - "Roles": [ - { - "Ref": "removeuserfromgroupgen2mainlambdaServiceRoleA777F6E0" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/userpoolAccess19/Resource" - } - }, - "userpoolAccess20B9A60CFD": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:ListUsers", - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "amplifyAuthUserPool4BA7F805", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess20B9A60CFD", - "Roles": [ - { - "Ref": "removeuserfromgroupgen2mainlambdaServiceRoleA777F6E0" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/userpoolAccess20/Resource" - } - }, - "userpoolAccess2154951E65": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:ListUsersInGroup", - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "amplifyAuthUserPool4BA7F805", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess2154951E65", - "Roles": [ - { - "Ref": "removeuserfromgroupgen2mainlambdaServiceRoleA777F6E0" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/userpoolAccess21/Resource" - } - }, - "userpoolAccess226D8BB3D4": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "cognito-idp:ListGroups", - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "amplifyAuthUserPool4BA7F805", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess226D8BB3D4", - "Roles": [ - { - "Ref": "removeuserfromgroupgen2mainlambdaServiceRoleA777F6E0" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/userpoolAccess22/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/3VRy27CQAz8Fu6LC6GHXiEVqBcUgXqOlo1JN8muq7UDQlH+vcpTqBKnmfHYlh8RRO9rWC30nZcmK5eVvUBzRBbMzqJNqfSd06bS7pLp1FOGBcOxh33tjVjyymoHzYkqVPHV95hQZc2jkwNrFW9SzYzCsO1A8QZ2tSlRdppRDe2hia9+7jqRVhnKvRWC5psxJERV13jmE/kkp61/tsbIJOPKopfnhDEyya8MvVh5JIFuNsNwIMqHpV5lvCzda4MXorIrnr1x8mfdXWsros2P+zfbIVD92ypmB81ZgvV5ooN2KBj6u06ibVV/0bPo3PpcmZqFXBqQqQ4GGeZZ4945jUb/q5G3qnssFPx2iyJYf8BqUbC1y1B7sQ7hNOAfCm+bzSsCAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Outputs": { - "amplifymediavaultgen2mainbranched5eb897f9authamplifyAuthUserPool9F5CB443Ref": { - "Value": { - "Ref": "amplifyAuthUserPool4BA7F805" - } - }, - "amplifymediavaultgen2mainbranched5eb897f9authamplifyAuthUserPoolAppClient20072DD5Ref": { - "Value": { - "Ref": "amplifyAuthUserPoolAppClient2626C6F8" - } - }, - "amplifymediavaultgen2mainbranched5eb897f9authamplifyAuthIdentityPoolB6C3F181Ref": { - "Value": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } - }, - "amplifymediavaultgen2mainbranched5eb897f9authamplifyAuthUserPoolUserPoolDomainAC114943Ref": { - "Value": { - "Ref": "amplifyAuthUserPoolUserPoolDomain1F688B5B" - } - }, - "amplifymediavaultgen2mainbranched5eb897f9authaddusertogroupgen2mainlambdaFE5FDFFARef": { - "Value": { - "Ref": "addusertogroupgen2mainlambda7F8E1802" - } - }, - "amplifymediavaultgen2mainbranched5eb897f9authremoveuserfromgroupgen2mainlambda5610FB1BRef": { - "Value": { - "Ref": "removeuserfromgroupgen2mainlambda8AC70B81" - } - }, - "amplifymediavaultgen2mainbranched5eb897f9authamplifyAuthauthenticatedUserRoleC20A3134Ref": { - "Value": { - "Ref": "amplifyAuthauthenticatedUserRoleD8DA3689" - } - }, - "amplifymediavaultgen2mainbranched5eb897f9authamplifyAuthunauthenticatedUserRoleEF69FE43Ref": { - "Value": { - "Ref": "amplifyAuthunauthenticatedUserRole2B524D9E" - } - }, - "amplifymediavaultgen2mainbranched5eb897f9authamplifyAuthAdminGroupRoleD3CE4EF4Ref": { - "Value": { - "Ref": "amplifyAuthAdminGroupRole766878DC" - } - }, - "amplifymediavaultgen2mainbranched5eb897f9authamplifyAuthBasicGroupRole000D5775Ref": { - "Value": { - "Ref": "amplifyAuthBasicGroupRole77B9C0CB" - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9-data7552DF31-1VI15FH41KNPG.description.txt b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9-data7552DF31-1VI15FH41KNPG.description.txt deleted file mode 100644 index e0c9e600428..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9-data7552DF31-1VI15FH41KNPG.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.21.0","stackType":"api-AppSync","metadata":{"dataSources":"dynamodb","authorizationModes":"amazon_cognito_identity_pools,amazon_cognito_user_pools,api_key,aws_iam","customOperations":"queries"}} \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9-data7552DF31-1VI15FH41KNPG.outputs.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9-data7552DF31-1VI15FH41KNPG.outputs.json deleted file mode 100644 index 1dc7bc0c2f8..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9-data7552DF31-1VI15FH41KNPG.outputs.json +++ /dev/null @@ -1,18 +0,0 @@ -[ - { - "OutputKey": "amplifymediavaultgen2mainbranched5eb897f9dataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB79B5379DDestinationBucketArn", - "OutputValue": "arn:aws:s3:::amplify-mediavault-ge-amplifydataamplifycodege-gek2tu7zd4au" - }, - { - "OutputKey": "amplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId", - "OutputValue": "lrahqddacbde5pc3etoruofrzu" - }, - { - "OutputKey": "amplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833GraphQLUrl", - "OutputValue": "https://kwrtotqfmjhqdkjn3sy5stjrt4.appsync-api.us-east-1.amazonaws.com/graphql" - }, - { - "OutputKey": "amplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPIDefaultApiKey6A29A072ApiKey", - "OutputValue": "da2-fakeapikey00000000000000" - } -] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9-data7552DF31-1VI15FH41KNPG.parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9-data7552DF31-1VI15FH41KNPG.parameters.json deleted file mode 100644 index 8afe3affd6b..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9-data7552DF31-1VI15FH41KNPG.parameters.json +++ /dev/null @@ -1,38 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthUserPool9F5CB443Ref", - "ParameterValue": "us-east-1_Pwn7i486a" - }, - { - "ParameterKey": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthauthenticatedUserRoleC20A3134Ref", - "ParameterValue": "amplify-mediavault-ge-amplifyAuthauthenticatedU-slnshFMVHHTk" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "true" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthIdentityPoolB6C3F181Ref", - "ParameterValue": "us-east-1:bed96618-da8d-4017-b873-fdff1744397a" - }, - { - "ParameterKey": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthunauthenticatedUserRoleEF69FE43Ref", - "ParameterValue": "amplify-mediavault-ge-amplifyAuthunauthenticate-vTKBs153l45R" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9-data7552DF31-1VI15FH41KNPG.template.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9-data7552DF31-1VI15FH41KNPG.template.json deleted file mode 100644 index 7f170ec0513..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9-data7552DF31-1VI15FH41KNPG.template.json +++ /dev/null @@ -1,2119 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.21.0\",\"stackType\":\"api-AppSync\",\"metadata\":{\"dataSources\":\"dynamodb\",\"authorizationModes\":\"amazon_cognito_identity_pools,amazon_cognito_user_pools,api_key,aws_iam\",\"customOperations\":\"queries\"}}", - "Resources": { - "amplifyDataGraphQLAPI42A6FA33": { - "Type": "AWS::AppSync::GraphQLApi", - "Properties": { - "AdditionalAuthenticationProviders": [ - { - "AuthenticationType": "API_KEY" - } - ], - "AuthenticationType": "AMAZON_COGNITO_USER_POOLS", - "Name": "amplifyData", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "mediavault" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "UserPoolConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "DefaultAction": "ALLOW", - "UserPoolId": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthUserPool9F5CB443Ref" - } - } - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/GraphQLAPI/Resource" - } - }, - "amplifyDataGraphQLAPITransformerSchemaFF50A789": { - "Type": "AWS::AppSync::GraphQLSchema", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "DefinitionS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4f7a8f022556572c5da3d2d1ca7f22bf2e386d4e3d69b67708c6d2e264471faa.graphql" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/GraphQLAPI/TransformerSchema" - } - }, - "amplifyDataGraphQLAPIDefaultApiKey1C8ED374": { - "Type": "AWS::AppSync::ApiKey", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "Description": "graphql", - "Expires": 1781624794 - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/GraphQLAPI/DefaultApiKey" - } - }, - "amplifyDataGraphQLAPINONEDS684BF699": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "Name": "NONE_DS", - "Type": "NONE" - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/GraphQLAPI/NONE_DS/Resource" - } - }, - "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "mediavault" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/4e598f8df5adb03a8e7b2bfb9348af849ce456fe5c3471ddd1ed396c33185550.json" - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/AmplifyTableManager.NestedStack/AmplifyTableManager.NestedStackResource", - "aws:asset:path": "amplifymediavaultgen2mainbranched5eb897f9dataamplifyDataAmplifyTableManager99200A39.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "amplifyDataNoteNestedStackNoteNestedStackResourceA19C7467": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "DynamoDBModelTableWriteIOPS": { - "Ref": "DynamoDBModelTableWriteIOPS" - }, - "DynamoDBBillingMode": { - "Ref": "DynamoDBBillingMode" - }, - "DynamoDBEnablePointInTimeRecovery": { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "DynamoDBEnableServerSideEncryption": { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceB4D1B84FOutputsamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataAmplifyTableManagerTableMa7AAB1CB8": { - "Fn::GetAtt": [ - "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833", - "Outputs.amplifymediavaultgen2mainbranched5eb897f9dataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEventB15C54B2Arn" - ] - }, - "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPINONEDS72CA46E4Name": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - }, - "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthauthenticatedUserRoleC20A3134Ref": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthauthenticatedUserRoleC20A3134Ref" - }, - "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthunauthenticatedUserRoleEF69FE43Ref": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthunauthenticatedUserRoleEF69FE43Ref" - }, - "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthIdentityPoolB6C3F181Ref": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthIdentityPoolB6C3F181Ref" - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "mediavault" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/879920696fa1a7f2863bbe467fe9c8bf069506e761f805735662819f67b659bc.json" - ] - ] - } - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/Note.NestedStack/Note.NestedStackResource", - "aws:asset:path": "amplifymediavaultgen2mainbranched5eb897f9dataamplifyDataNoteBBC63F1D.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "amplifyDataFunctionDirectiveStackNestedStackFunctionDirectiveStackNestedStackResource1246A302": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthauthenticatedUserRoleC20A3134Ref": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthauthenticatedUserRoleC20A3134Ref" - }, - "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthunauthenticatedUserRoleEF69FE43Ref": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthunauthenticatedUserRoleEF69FE43Ref" - }, - "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthIdentityPoolB6C3F181Ref": { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthIdentityPoolB6C3F181Ref" - }, - "referencetoamplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPINONEDS72CA46E4Name": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "mediavault" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/bad0f0529e89a02a8d92c04f622eb08aa89a55a64dee32be9ff8efa08257fa2c.json" - ] - ] - } - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/FunctionDirectiveStack.NestedStack/FunctionDirectiveStack.NestedStackResource", - "aws:asset:path": "amplifymediavaultgen2mainbranched5eb897f9dataamplifyDataFunctionDirectiveStack6CD2250B.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "amplifyDataGenerateThumbnailResponseStatusCodeDataResolverFnGenerateThumbnailResponseStatusCodeDataResolverFnAppSyncFunction6FCF5D3E": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "DataSourceName": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "GenerateThumbnailResponseStatusCodeDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/51a85507e183997593ea552e60839d397f7d5c4a142ea4bbd94ba699ae389e89.vtl" - } - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/GenerateThumbnailResponseStatusCodeDataResolverFn/GenerateThumbnailResponseStatusCodeDataResolverFn.AppSyncFunction" - } - }, - "GenerateThumbnailResponsestatusCodeResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "FieldName": "statusCode", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "amplifyDataGenerateThumbnailResponseStatusCodeDataResolverFnGenerateThumbnailResponseStatusCodeDataResolverFnAppSyncFunction6FCF5D3E", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"GenerateThumbnailResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"statusCode\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthauthenticatedUserRoleC20A3134Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthunauthenticatedUserRoleEF69FE43Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthIdentityPoolB6C3F181Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "GenerateThumbnailResponse" - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/generateThumbnailResponseStatusCodeResolver" - } - }, - "amplifyDataGenerateThumbnailResponseMessageDataResolverFnGenerateThumbnailResponseMessageDataResolverFnAppSyncFunctionCE5F0E6D": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "DataSourceName": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "GenerateThumbnailResponseMessageDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e5ac72a83d18a0cb18ce60e30414111cc0d76e69bd8d494c413d5b55a20705f5.vtl" - } - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/GenerateThumbnailResponseMessageDataResolverFn/GenerateThumbnailResponseMessageDataResolverFn.AppSyncFunction" - } - }, - "GenerateThumbnailResponsemessageResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "FieldName": "message", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "amplifyDataGenerateThumbnailResponseMessageDataResolverFnGenerateThumbnailResponseMessageDataResolverFnAppSyncFunctionCE5F0E6D", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"GenerateThumbnailResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"message\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthauthenticatedUserRoleC20A3134Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthunauthenticatedUserRoleEF69FE43Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthIdentityPoolB6C3F181Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "GenerateThumbnailResponse" - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/generateThumbnailResponseMessageResolver" - } - }, - "amplifyDataAddUserToGroupResponseStatusCodeDataResolverFnAddUserToGroupResponseStatusCodeDataResolverFnAppSyncFunctionD6514B24": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "DataSourceName": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "AddUserToGroupResponseStatusCodeDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/51a85507e183997593ea552e60839d397f7d5c4a142ea4bbd94ba699ae389e89.vtl" - } - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/AddUserToGroupResponseStatusCodeDataResolverFn/AddUserToGroupResponseStatusCodeDataResolverFn.AppSyncFunction" - } - }, - "AddUserToGroupResponsestatusCodeResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "FieldName": "statusCode", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "amplifyDataAddUserToGroupResponseStatusCodeDataResolverFnAddUserToGroupResponseStatusCodeDataResolverFnAppSyncFunctionD6514B24", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"AddUserToGroupResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"statusCode\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthauthenticatedUserRoleC20A3134Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthunauthenticatedUserRoleEF69FE43Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthIdentityPoolB6C3F181Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "AddUserToGroupResponse" - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/addUserToGroupResponseStatusCodeResolver" - } - }, - "amplifyDataAddUserToGroupResponseMessageDataResolverFnAddUserToGroupResponseMessageDataResolverFnAppSyncFunction6FA5891E": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "DataSourceName": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "AddUserToGroupResponseMessageDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e5ac72a83d18a0cb18ce60e30414111cc0d76e69bd8d494c413d5b55a20705f5.vtl" - } - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/AddUserToGroupResponseMessageDataResolverFn/AddUserToGroupResponseMessageDataResolverFn.AppSyncFunction" - } - }, - "AddUserToGroupResponsemessageResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "FieldName": "message", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "amplifyDataAddUserToGroupResponseMessageDataResolverFnAddUserToGroupResponseMessageDataResolverFnAppSyncFunction6FA5891E", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"AddUserToGroupResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"message\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthauthenticatedUserRoleC20A3134Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthunauthenticatedUserRoleEF69FE43Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthIdentityPoolB6C3F181Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "AddUserToGroupResponse" - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/addUserToGroupResponseMessageResolver" - } - }, - "amplifyDataRemoveUserFromGroupResponseStatusCodeDataResolverFnRemoveUserFromGroupResponseStatusCodeDataResolverFnAppSyncFunction6C006388": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "DataSourceName": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "RemoveUserFromGroupResponseStatusCodeDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/51a85507e183997593ea552e60839d397f7d5c4a142ea4bbd94ba699ae389e89.vtl" - } - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/RemoveUserFromGroupResponseStatusCodeDataResolverFn/RemoveUserFromGroupResponseStatusCodeDataResolverFn.AppSyncFunction" - } - }, - "RemoveUserFromGroupResponsestatusCodeResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "FieldName": "statusCode", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "amplifyDataRemoveUserFromGroupResponseStatusCodeDataResolverFnRemoveUserFromGroupResponseStatusCodeDataResolverFnAppSyncFunction6C006388", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"RemoveUserFromGroupResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"statusCode\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthauthenticatedUserRoleC20A3134Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthunauthenticatedUserRoleEF69FE43Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthIdentityPoolB6C3F181Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "RemoveUserFromGroupResponse" - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/removeUserFromGroupResponseStatusCodeResolver" - } - }, - "amplifyDataRemoveUserFromGroupResponseMessageDataResolverFnRemoveUserFromGroupResponseMessageDataResolverFnAppSyncFunctionA9A75DA6": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "DataSourceName": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "RemoveUserFromGroupResponseMessageDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e5ac72a83d18a0cb18ce60e30414111cc0d76e69bd8d494c413d5b55a20705f5.vtl" - } - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/RemoveUserFromGroupResponseMessageDataResolverFn/RemoveUserFromGroupResponseMessageDataResolverFn.AppSyncFunction" - } - }, - "RemoveUserFromGroupResponsemessageResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "FieldName": "message", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "amplifyDataRemoveUserFromGroupResponseMessageDataResolverFnRemoveUserFromGroupResponseMessageDataResolverFnAppSyncFunctionA9A75DA6", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"RemoveUserFromGroupResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"message\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthauthenticatedUserRoleC20A3134Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthunauthenticatedUserRoleEF69FE43Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthIdentityPoolB6C3F181Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "RemoveUserFromGroupResponse" - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/removeUserFromGroupResponseMessageResolver" - } - }, - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA": { - "Type": "AWS::S3::Bucket", - "Properties": { - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD" - ], - "AllowedOrigins": [ - { - "Fn::Join": [ - "", - [ - "https://", - { - "Ref": "AWS::Region" - }, - ".console.aws.amazon.com/amplify" - ] - ] - } - ] - } - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "mediavault" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "aws-cdk:cr-owned:fd1bd247", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/Resource" - } - }, - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucketPolicyF1C1C548": { - "Type": "AWS::S3::BucketPolicy", - "Properties": { - "Bucket": { - "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" - }, - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "s3:PutBucketPolicy", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*" - ], - "Effect": "Allow", - "Principal": { - "AWS": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - } - }, - "Resource": [ - { - "Fn::GetAtt": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/Policy/Resource" - } - }, - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucketAutoDeleteObjectsCustomResource437F26F5": { - "Type": "Custom::S3AutoDeleteObjects", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "Arn" - ] - }, - "BucketName": { - "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" - } - }, - "DependsOn": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucketPolicyF1C1C548" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/AutoDeleteObjectsCustomResource/Default" - } - }, - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentAwsCliLayerE322F905": { - "Type": "AWS::Lambda::LayerVersion", - "Properties": { - "Content": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "0cfdecad2260a3a84ad0c2d08a77e03c9d25e26c7b52f26b1e1faf97aef92f18.zip" - }, - "Description": "/opt/awscli/aws" - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsDeployment/AwsCliLayer/Resource", - "aws:asset:path": "asset.0cfdecad2260a3a84ad0c2d08a77e03c9d25e26c7b52f26b1e1faf97aef92f18.zip", - "aws:asset:is-bundled": false, - "aws:asset:property": "Content" - } - }, - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB21775929": { - "Type": "Custom::CDKBucketDeployment", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBC5D8AB21", - "Arn" - ] - }, - "SourceBucketNames": [ - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - } - ], - "SourceObjectKeys": [ - "a90a1c4dbbd3dd232474c9c8d1b396fc623e9cf4f57e402b80891642c74ddc70.zip" - ], - "SourceMarkers": [ - {} - ], - "DestinationBucketName": { - "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" - }, - "WaitForDistributionInvalidation": true, - "Prune": true, - "OutputObjectKeys": true, - "DestinationBucketArn": { - "Fn::GetAtt": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", - "Arn" - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsDeployment/CustomResource-1536MiB/Default" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ] - }, - "ManagedPolicyArns": [ - { - "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" - }, - "Timeout": 900, - "MemorySize": 128, - "Handler": "index.handler", - "Role": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Description": { - "Fn::Join": [ - "", - [ - "Lambda function for auto-deleting objects in ", - { - "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" - }, - " S3 bucket." - ] - ] - } - }, - "DependsOn": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - ], - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", - "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", - "aws:asset:property": "Code" - } - }, - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "mediavault" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/ServiceRole/Resource" - } - }, - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleDefaultPolicyFF1C635B": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "s3:GetObject*", - "s3:GetBucket*", - "s3:List*" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":s3:::", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - } - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":s3:::", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/*" - ] - ] - } - ] - }, - { - "Action": [ - "s3:GetObject*", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*", - "s3:PutObject", - "s3:PutObjectLegalHold", - "s3:PutObjectRetention", - "s3:PutObjectTagging", - "s3:PutObjectVersionTagging", - "s3:Abort*" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - }, - { - "Action": [ - "s3:GetObject*", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*", - "s3:PutObject", - "s3:PutObjectLegalHold", - "s3:PutObjectRetention", - "s3:PutObjectTagging", - "s3:PutObjectVersionTagging", - "s3:Abort*" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "modelIntrospectionSchemaBucketF566B665", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "modelIntrospectionSchemaBucketF566B665", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleDefaultPolicyFF1C635B", - "Roles": [ - { - "Ref": "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/ServiceRole/DefaultPolicy/Resource" - } - }, - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBC5D8AB21": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "3423a042b818e31c1e34a19d6689ab2e5f9b70fcbe9e71df66f241b20a200bd9.zip" - }, - "Environment": { - "Variables": { - "AWS_CA_BUNDLE": "/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem" - } - }, - "Handler": "index.handler", - "Layers": [ - { - "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentAwsCliLayerE322F905" - } - ], - "MemorySize": 1536, - "Role": { - "Fn::GetAtt": [ - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2", - "Arn" - ] - }, - "Runtime": "python3.13", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "mediavault" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 900 - }, - "DependsOn": [ - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleDefaultPolicyFF1C635B", - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2" - ], - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/Resource", - "aws:asset:path": "asset.3423a042b818e31c1e34a19d6689ab2e5f9b70fcbe9e71df66f241b20a200bd9", - "aws:asset:is-bundled": false, - "aws:asset:property": "Code" - } - }, - "modelIntrospectionSchemaBucketF566B665": { - "Type": "AWS::S3::Bucket", - "Properties": { - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "mediavault" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "aws-cdk:cr-owned:a85eec5e", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/modelIntrospectionSchemaBucket/Resource" - } - }, - "modelIntrospectionSchemaBucketPolicy4DAB0D15": { - "Type": "AWS::S3::BucketPolicy", - "Properties": { - "Bucket": { - "Ref": "modelIntrospectionSchemaBucketF566B665" - }, - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:*", - "Condition": { - "Bool": { - "aws:SecureTransport": "false" - } - }, - "Effect": "Deny", - "Principal": { - "AWS": "*" - }, - "Resource": [ - { - "Fn::GetAtt": [ - "modelIntrospectionSchemaBucketF566B665", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "modelIntrospectionSchemaBucketF566B665", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - }, - { - "Action": [ - "s3:PutBucketPolicy", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*" - ], - "Effect": "Allow", - "Principal": { - "AWS": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - } - }, - "Resource": [ - { - "Fn::GetAtt": [ - "modelIntrospectionSchemaBucketF566B665", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "modelIntrospectionSchemaBucketF566B665", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/modelIntrospectionSchemaBucket/Policy/Resource" - } - }, - "modelIntrospectionSchemaBucketAutoDeleteObjectsCustomResourceFE57309F": { - "Type": "Custom::S3AutoDeleteObjects", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "Arn" - ] - }, - "BucketName": { - "Ref": "modelIntrospectionSchemaBucketF566B665" - } - }, - "DependsOn": [ - "modelIntrospectionSchemaBucketPolicy4DAB0D15" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/modelIntrospectionSchemaBucket/AutoDeleteObjectsCustomResource/Default" - } - }, - "modelIntrospectionSchemaBucketDeploymentAwsCliLayer13C432F7": { - "Type": "AWS::Lambda::LayerVersion", - "Properties": { - "Content": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "0cfdecad2260a3a84ad0c2d08a77e03c9d25e26c7b52f26b1e1faf97aef92f18.zip" - }, - "Description": "/opt/awscli/aws" - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/modelIntrospectionSchemaBucketDeployment/AwsCliLayer/Resource", - "aws:asset:path": "asset.0cfdecad2260a3a84ad0c2d08a77e03c9d25e26c7b52f26b1e1faf97aef92f18.zip", - "aws:asset:is-bundled": false, - "aws:asset:property": "Content" - } - }, - "modelIntrospectionSchemaBucketDeploymentCustomResource1536MiB104B97EC": { - "Type": "Custom::CDKBucketDeployment", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBC5D8AB21", - "Arn" - ] - }, - "SourceBucketNames": [ - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - } - ], - "SourceObjectKeys": [ - "eb67078cf36196f6b722e08bdac5ad4e7f40b7086e686f40a61b7a5e91a8a98c.zip" - ], - "SourceMarkers": [ - {} - ], - "DestinationBucketName": { - "Ref": "modelIntrospectionSchemaBucketF566B665" - }, - "WaitForDistributionInvalidation": true, - "Prune": true, - "OutputObjectKeys": true - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/modelIntrospectionSchemaBucketDeployment/CustomResource-1536MiB/Default" - } - }, - "AMPLIFYDATAGRAPHQLENDPOINTParameter1C2CBB16": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/mediavault/gen2main-branch-ed5eb897f9/AMPLIFY_DATA_GRAPHQL_ENDPOINT", - "Tags": { - "amplify:app-id": "mediavault", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "GraphQLUrl" - ] - } - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/AMPLIFY_DATA_GRAPHQL_ENDPOINTParameter/Resource" - } - }, - "AMPLIFYDATAMODELINTROSPECTIONSCHEMABUCKETNAMEParameter47BF4F44": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/mediavault/gen2main-branch-ed5eb897f9/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_BUCKET_NAME", - "Tags": { - "amplify:app-id": "mediavault", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": { - "Ref": "modelIntrospectionSchemaBucketF566B665" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_BUCKET_NAMEParameter/Resource" - } - }, - "AMPLIFYDATAMODELINTROSPECTIONSCHEMAKEYParameterB6AEAE8A": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/mediavault/gen2main-branch-ed5eb897f9/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_KEY", - "Tags": { - "amplify:app-id": "mediavault", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": "modelIntrospectionSchema.json" - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_KEYParameter/Resource" - } - }, - "AMPLIFYDATADEFAULTNAMEParameterE7C23CC4": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/mediavault/gen2main-branch-ed5eb897f9/AMPLIFY_DATA_DEFAULT_NAME", - "Tags": { - "amplify:app-id": "mediavault", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": "amplifyData" - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/AMPLIFY_DATA_DEFAULT_NAMEParameter/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/11RTW/CMAz9LdxDBt0Ou5ai7TCEGJV2RSZ1iyFNujilqqr+9yktnzv5vefIfs+JZPQ2l7MJNDxV2WmqaS+7NbLHLPWgTmKLbGunUEDDuw6qilujZPfpoDr86riiBTCKJDeD8r2KK3pgqTpgCUGIK/rCVqytwSV4SMehSW6e2UdtlCdrEmtyKmoHgYRG8KHP6HrBr7sOmNGzjEMRGVbatiUaLxe1OqFf3oTwWnajOhgdYRh4QWPZWE2qvcsj74WGcp+B7JLcrKBF94OOg6GUTKHR25tfcQMPIXpBUMpua/WQbaj3TdcdzKXsUu/IFBtwUKJHN/SvpO/FEDT1UJApQm/8m6Rmb8vbD12uNODR+E4H0ztoWGmSccOJpiHH0/x/czbOnilDF+7VC2MzlEd+OUeRnL/L2eTIRFNXG08lyu1Y/wC0BiClRgIAAA==" - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthUserPool9F5CB443Ref": { - "Type": "String" - }, - "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthauthenticatedUserRoleC20A3134Ref": { - "Type": "String" - }, - "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthunauthenticatedUserRoleEF69FE43Ref": { - "Type": "String" - }, - "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthIdentityPoolB6C3F181Ref": { - "Type": "String" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Outputs": { - "amplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId": { - "Value": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - } - }, - "amplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833GraphQLUrl": { - "Value": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "GraphQLUrl" - ] - } - }, - "amplifymediavaultgen2mainbranched5eb897f9dataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB79B5379DDestinationBucketArn": { - "Value": { - "Fn::GetAtt": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB21775929", - "DestinationBucketArn" - ] - } - }, - "amplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPIDefaultApiKey6A29A072ApiKey": { - "Value": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPIDefaultApiKey1C8ED374", - "ApiKey" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9-storage0EC3F24A-MT2R5F2IA14L.description.txt b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9-storage0EC3F24A-MT2R5F2IA14L.description.txt deleted file mode 100644 index 4600cb981f5..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9-storage0EC3F24A-MT2R5F2IA14L.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.4.3","stackType":"storage-S3","metadata":{}} \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9-storage0EC3F24A-MT2R5F2IA14L.outputs.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9-storage0EC3F24A-MT2R5F2IA14L.outputs.json deleted file mode 100644 index 9c57c397b9c..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9-storage0EC3F24A-MT2R5F2IA14L.outputs.json +++ /dev/null @@ -1,10 +0,0 @@ -[ - { - "OutputKey": "amplifymediavaultgen2mainbranched5eb897f9storagemediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket9A1D406DRef", - "OutputValue": "amplify-mediavault-ge-mediavaultb574f210f1634e-5dlrd30ro5u0" - }, - { - "OutputKey": "amplifymediavaultgen2mainbranched5eb897f9storagethumbnailgengen2mainlambda45CDCFCARef", - "OutputValue": "thumbnailgen-gen2-main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9-storage0EC3F24A-MT2R5F2IA14L.parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9-storage0EC3F24A-MT2R5F2IA14L.parameters.json deleted file mode 100644 index 5dc21014ca9..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9-storage0EC3F24A-MT2R5F2IA14L.parameters.json +++ /dev/null @@ -1,18 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthBasicGroupRole000D5775Ref", - "ParameterValue": "amplify-mediavault-ge-amplifyAuthBasicGroupRole-pQ0ZAig6LwnK" - }, - { - "ParameterKey": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthauthenticatedUserRoleC20A3134Ref", - "ParameterValue": "amplify-mediavault-ge-amplifyAuthauthenticatedU-slnshFMVHHTk" - }, - { - "ParameterKey": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthunauthenticatedUserRoleEF69FE43Ref", - "ParameterValue": "amplify-mediavault-ge-amplifyAuthunauthenticate-vTKBs153l45R" - }, - { - "ParameterKey": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthAdminGroupRoleD3CE4EF4Ref", - "ParameterValue": "amplify-mediavault-ge-amplifyAuthAdminGroupRole-iQTk2vzwHVQa" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9-storage0EC3F24A-MT2R5F2IA14L.template.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9-storage0EC3F24A-MT2R5F2IA14L.template.json deleted file mode 100644 index fa75b7ae1f4..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9-storage0EC3F24A-MT2R5F2IA14L.template.json +++ /dev/null @@ -1,1443 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", - "Resources": { - "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "BucketKeyEnabled": false, - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "MaxAge": 3000 - } - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "mediavault" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "mediavaultb574f210f1634e3a8d1934f263da5bed61114-gen2-main" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/storage/mediavaultb574f210f1634e3a8d1934f263da5bed61114-gen2-main/Bucket/Resource" - } - }, - "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucketPolicy9F1C0E39": { - "Type": "AWS::S3::BucketPolicy", - "Properties": { - "Bucket": { - "Ref": "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA" - }, - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:*", - "Condition": { - "Bool": { - "aws:SecureTransport": "false" - } - }, - "Effect": "Deny", - "Principal": { - "AWS": "*" - }, - "Resource": [ - { - "Fn::GetAtt": [ - "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - }, - { - "Action": [ - "s3:PutBucketPolicy", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*" - ], - "Effect": "Allow", - "Principal": { - "AWS": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - } - }, - "Resource": [ - { - "Fn::GetAtt": [ - "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/storage/mediavaultb574f210f1634e3a8d1934f263da5bed61114-gen2-main/Bucket/Policy/Resource" - } - }, - "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucketAutoDeleteObjectsCustomResource9FE792C3": { - "Type": "Custom::S3AutoDeleteObjects", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "Arn" - ] - }, - "BucketName": { - "Ref": "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA" - } - }, - "DependsOn": [ - "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucketPolicy9F1C0E39" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/storage/mediavaultb574f210f1634e3a8d1934f263da5bed61114-gen2-main/Bucket/AutoDeleteObjectsCustomResource/Default" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ] - }, - "ManagedPolicyArns": [ - { - "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" - }, - "Timeout": 900, - "MemorySize": 128, - "Handler": "index.handler", - "Role": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Description": { - "Fn::Join": [ - "", - [ - "Lambda function for auto-deleting objects in ", - { - "Ref": "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA" - }, - " S3 bucket." - ] - ] - } - }, - "DependsOn": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - ], - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", - "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", - "aws:asset:property": "Code" - } - }, - "MEDIAVAULTB574F210F1634E3A8D1934F263DA5BED61114GEN2MAINBUCKETNAMEParameterAA138399": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/mediavault/gen2main-branch-ed5eb897f9/MEDIAVAULTB_574_F_210_F_1634_E_3_A_8_D_1934_F_263_DA_5_BED_61114_GEN_2_MAIN_BUCKET_NAME", - "Tags": { - "amplify:app-id": "mediavault", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": { - "Ref": "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/storage/MEDIAVAULTB_574_F_210_F_1634_E_3_A_8_D_1934_F_263_DA_5_BED_61114_GEN_2_MAIN_BUCKET_NAMEParameter/Resource" - } - }, - "thumbnailgengen2mainlambdaServiceRole39A68ECC": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "mediavault" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "thumbnailgen-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/storage/thumbnailgen-gen2-main-lambda/ServiceRole/Resource" - } - }, - "thumbnailgengen2mainlambdaServiceRoleDefaultPolicyBD042915": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "ssm:GetParameters", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":ssm:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":parameter/amplify/resource_reference/mediavault/gen2main-branch-ed5eb897f9/MEDIAVAULTB_574_F_210_F_1634_E_3_A_8_D_1934_F_263_DA_5_BED_61114_GEN_2_MAIN_BUCKET_NAME" - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "thumbnailgengen2mainlambdaServiceRoleDefaultPolicyBD042915", - "Roles": [ - { - "Ref": "thumbnailgengen2mainlambdaServiceRole39A68ECC" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/storage/thumbnailgen-gen2-main-lambda/ServiceRole/DefaultPolicy/Resource" - } - }, - "thumbnailgengen2mainlambda5B675D96": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Architectures": [ - "x86_64" - ], - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "e7e706e5d5e976200f0e1990040ec5369468c4cd2f2aedafc5ba5dc698db04e9.zip" - }, - "Environment": { - "Variables": { - "ENV": "gen2-main", - "REGION": "us-east-1", - "AMPLIFY_SSM_ENV_CONFIG": "{\"MEDIAVAULTB_574_F_210_F_1634_E_3_A_8_D_1934_F_263_DA_5_BED_61114_GEN_2_MAIN_BUCKET_NAME\":{\"path\":\"/amplify/resource_reference/mediavault/gen2main-branch-ed5eb897f9/MEDIAVAULTB_574_F_210_F_1634_E_3_A_8_D_1934_F_263_DA_5_BED_61114_GEN_2_MAIN_BUCKET_NAME\"}}", - "MEDIAVAULTB_574_F_210_F_1634_E_3_A_8_D_1934_F_263_DA_5_BED_61114_GEN_2_MAIN_BUCKET_NAME": "", - "STORAGE_MEDIAVAULT_BUCKETNAME": { - "Ref": "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA" - } - } - }, - "EphemeralStorage": { - "Size": 512 - }, - "FunctionName": "thumbnailgen-gen2-main", - "Handler": "index.handler", - "MemorySize": 128, - "Role": { - "Fn::GetAtt": [ - "thumbnailgengen2mainlambdaServiceRole39A68ECC", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "mediavault" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "thumbnailgen-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 25 - }, - "DependsOn": [ - "thumbnailgengen2mainlambdaServiceRole39A68ECC" - ], - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/storage/thumbnailgen-gen2-main-lambda/Resource", - "aws:asset:path": "asset.e7e706e5d5e976200f0e1990040ec5369468c4cd2f2aedafc5ba5dc698db04e9", - "aws:asset:is-bundled": true, - "aws:asset:property": "Code" - } - }, - "amplifymediavaultgen2mainbranched5eb897f9storageAccess5F5646D39": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA", - "Arn" - ] - }, - "/public/*" - ] - ] - } - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/*", - "public/" - ] - } - }, - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "amplifymediavaultgen2mainbranched5eb897f9storageAccess5F5646D39", - "Roles": [ - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthunauthenticatedUserRoleEF69FE43Ref" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/storage/amplify-mediavault-gen2main-branch-ed5eb897f9--storageAccess5/Resource" - } - }, - "amplifymediavaultgen2mainbranched5eb897f9storageAccess6D6A2D82F": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:PutObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA", - "Arn" - ] - }, - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA", - "Arn" - ] - }, - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA", - "Arn" - ] - }, - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA", - "Arn" - ] - }, - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA", - "Arn" - ] - }, - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA", - "Arn" - ] - }, - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/*", - "public/", - "protected/*", - "protected/", - "private/*", - "private/" - ] - } - }, - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA", - "Arn" - ] - } - }, - { - "Action": "s3:DeleteObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA", - "Arn" - ] - }, - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA", - "Arn" - ] - }, - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA", - "Arn" - ] - }, - "/private/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "amplifymediavaultgen2mainbranched5eb897f9storageAccess6D6A2D82F", - "Roles": [ - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthauthenticatedUserRoleC20A3134Ref" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/storage/amplify-mediavault-gen2main-branch-ed5eb897f9--storageAccess6/Resource" - } - }, - "amplifymediavaultgen2mainbranched5eb897f9storageAccess7B4F024D5": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:PutObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA", - "Arn" - ] - }, - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA", - "Arn" - ] - }, - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA", - "Arn" - ] - }, - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA", - "Arn" - ] - }, - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA", - "Arn" - ] - }, - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA", - "Arn" - ] - }, - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/*", - "public/", - "protected/*", - "protected/", - "private/*", - "private/" - ] - } - }, - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA", - "Arn" - ] - } - }, - { - "Action": "s3:DeleteObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA", - "Arn" - ] - }, - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA", - "Arn" - ] - }, - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA", - "Arn" - ] - }, - "/private/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "amplifymediavaultgen2mainbranched5eb897f9storageAccess7B4F024D5", - "Roles": [ - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthAdminGroupRoleD3CE4EF4Ref" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/storage/amplify-mediavault-gen2main-branch-ed5eb897f9--storageAccess7/Resource" - } - }, - "amplifymediavaultgen2mainbranched5eb897f9storageAccess82A1F08C7": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA", - "Arn" - ] - }, - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA", - "Arn" - ] - }, - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA", - "Arn" - ] - }, - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/*", - "public/", - "protected/*", - "protected/", - "private/*", - "private/" - ] - } - }, - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "amplifymediavaultgen2mainbranched5eb897f9storageAccess82A1F08C7", - "Roles": [ - { - "Ref": "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthBasicGroupRole000D5775Ref" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/storage/amplify-mediavault-gen2main-branch-ed5eb897f9--storageAccess8/Resource" - } - }, - "amplifymediavaultgen2mainbranched5eb897f9storageAccess94C250161": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA", - "Arn" - ] - }, - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA", - "Arn" - ] - }, - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA", - "Arn" - ] - }, - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/*", - "public/", - "protected/*", - "protected/", - "private/*", - "private/" - ] - } - }, - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA", - "Arn" - ] - } - }, - { - "Action": "s3:PutObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA", - "Arn" - ] - }, - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA", - "Arn" - ] - }, - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA", - "Arn" - ] - }, - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:DeleteObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA", - "Arn" - ] - }, - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA", - "Arn" - ] - }, - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA", - "Arn" - ] - }, - "/private/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "amplifymediavaultgen2mainbranched5eb897f9storageAccess94C250161", - "Roles": [ - { - "Ref": "thumbnailgengen2mainlambdaServiceRole39A68ECC" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/storage/amplify-mediavault-gen2main-branch-ed5eb897f9--storageAccess9/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOwY7CMAxEv4V7aqDsgetSaY+oaj+gMomp0jaJFCcgVOXfV226oD29GVseTwnl1xEOO3xyIdVYTPoG85U4kGoDylHgk7uZTzBfohwpiOpuN5VRu0nL12e8+WwuyJQEs4G5DV7bvkaPhgL55eBtkpjQ3BR21ikaGK4rfqKVQTsrNBqYGzfRcrTy8zSrJPjUITMFhu8FWyBUd/sXk0QVOTjTELvoZQ5763+r2ruHVuSX+mLNawP22vZJLA1h4P2jLOF4hsNuYK0LH23QhqDJ/AXbc7LRVQEAAA==" - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/storage/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Outputs": { - "amplifymediavaultgen2mainbranched5eb897f9storagethumbnailgengen2mainlambda45CDCFCARef": { - "Value": { - "Ref": "thumbnailgengen2mainlambda5B675D96" - } - }, - "amplifymediavaultgen2mainbranched5eb897f9storagemediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket9A1D406DRef": { - "Value": { - "Ref": "mediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket30C540BA" - } - } - }, - "Parameters": { - "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthunauthenticatedUserRoleEF69FE43Ref": { - "Type": "String" - }, - "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthauthenticatedUserRoleC20A3134Ref": { - "Type": "String" - }, - "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthAdminGroupRoleD3CE4EF4Ref": { - "Type": "String" - }, - "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthBasicGroupRole000D5775Ref": { - "Type": "String" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9.description.txt b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9.description.txt deleted file mode 100644 index b40731368ef..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.21.0","stackType":"root","metadata":{}} \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9.outputs.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9.outputs.json deleted file mode 100644 index a6f91a47505..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9.outputs.json +++ /dev/null @@ -1,138 +0,0 @@ -[ - { - "OutputKey": "webClientId", - "OutputValue": "427n07aeulhlev4cen3qs6kf17" - }, - { - "OutputKey": "socialProviders", - "OutputValue": "[\"GOOGLE\",\"FACEBOOK\"]" - }, - { - "OutputKey": "usernameAttributes", - "OutputValue": "[\"email\",\"phone_number\"]" - }, - { - "OutputKey": "bucketName", - "OutputValue": "amplify-mediavault-ge-mediavaultb574f210f1634e-5dlrd30ro5u0" - }, - { - "OutputKey": "signupAttributes", - "OutputValue": "[\"email\"]" - }, - { - "OutputKey": "oauthClientId", - "OutputValue": "427n07aeulhlev4cen3qs6kf17" - }, - { - "OutputKey": "allowUnauthenticatedIdentities", - "OutputValue": "true" - }, - { - "OutputKey": "oauthCognitoDomain", - "OutputValue": "deddd8c1d0c4f5cbeefe.auth.us-east-1.amazoncognito.com" - }, - { - "OutputKey": "oauthScope", - "OutputValue": "[\"phone\",\"email\",\"openid\",\"profile\",\"aws.cognito.signin.user.admin\"]" - }, - { - "OutputKey": "oauthRedirectSignOut", - "OutputValue": "https://main.d1086iitvfyy6.amplifyapp.com/,https://gen2-main.d1086iitvfyy6.amplifyapp.com/" - }, - { - "OutputKey": "awsAppsyncAdditionalAuthenticationTypes", - "OutputValue": "API_KEY,AWS_IAM" - }, - { - "OutputKey": "mfaTypes", - "OutputValue": "[]" - }, - { - "OutputKey": "mfaConfiguration", - "OutputValue": "OFF" - }, - { - "OutputKey": "storageRegion", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "oauthResponseType", - "OutputValue": "code" - }, - { - "OutputKey": "awsAppsyncApiKey", - "OutputValue": "da2-fakeapikey00000000000000" - }, - { - "OutputKey": "awsAppsyncAuthenticationType", - "OutputValue": "AMAZON_COGNITO_USER_POOLS" - }, - { - "OutputKey": "oauthRedirectSignIn", - "OutputValue": "https://main.d1086iitvfyy6.amplifyapp.com/,https://gen2-main.d1086iitvfyy6.amplifyapp.com/" - }, - { - "OutputKey": "passwordPolicyMinLength", - "OutputValue": "8" - }, - { - "OutputKey": "awsAppsyncApiEndpoint", - "OutputValue": "https://kwrtotqfmjhqdkjn3sy5stjrt4.appsync-api.us-east-1.amazonaws.com/graphql" - }, - { - "OutputKey": "awsAppsyncApiId", - "OutputValue": "lrahqddacbde5pc3etoruofrzu" - }, - { - "OutputKey": "authRegion", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "buckets", - "OutputValue": "[\"{\\\"name\\\":\\\"mediavaultb574f210f1634e3a8d1934f263da5bed61114-gen2-main\\\",\\\"bucketName\\\":\\\"amplify-mediavault-ge-mediavaultb574f210f1634e-5dlrd30ro5u0\\\",\\\"storageRegion\\\":\\\"us-east-1\\\",\\\"paths\\\":{\\\"public/*\\\":{\\\"guest\\\":[\\\"get\\\",\\\"list\\\"],\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"],\\\"groupsAdmin\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"],\\\"groupsBasic\\\":[\\\"get\\\",\\\"list\\\"]},\\\"protected/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"],\\\"groupsAdmin\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"],\\\"groupsBasic\\\":[\\\"get\\\",\\\"list\\\"]},\\\"private/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"],\\\"groupsAdmin\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"],\\\"groupsBasic\\\":[\\\"get\\\",\\\"list\\\"]}}}\"]" - }, - { - "OutputKey": "amplifyApiModelSchemaS3Uri", - "OutputValue": "s3://amplify-mediavault-ge-amplifydataamplifycodege-gek2tu7zd4au/model-schema.graphql" - }, - { - "OutputKey": "groups", - "OutputValue": "[{\"Admin\":{\"precedence\":0}},{\"Basic\":{\"precedence\":1}}]" - }, - { - "OutputKey": "definedFunctions", - "OutputValue": "[\"addusertogroup-gen2-main\",\"removeuserfromgroup-gen2-main\",\"thumbnailgen-gen2-main\"]" - }, - { - "OutputKey": "passwordlessOptions", - "OutputValue": "" - }, - { - "OutputKey": "awsAppsyncRegion", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "deploymentType", - "OutputValue": "branch" - }, - { - "OutputKey": "passwordPolicyRequirements", - "OutputValue": "[]" - }, - { - "OutputKey": "region", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "userPoolId", - "OutputValue": "us-east-1_Pwn7i486a" - }, - { - "OutputKey": "identityPoolId", - "OutputValue": "us-east-1:bed96618-da8d-4017-b873-fdff1744397a" - }, - { - "OutputKey": "verificationMechanisms", - "OutputValue": "[\"email\"]" - } -] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9.parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9.parameters.json deleted file mode 100644 index 74596fb6f32..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9.parameters.json +++ /dev/null @@ -1,7 +0,0 @@ -[ - { - "ParameterKey": "BootstrapVersion", - "ParameterValue": "/cdk-bootstrap/hnb659fds/version", - "ResolvedValue": "30" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9.template.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9.template.json deleted file mode 100644 index f0915eabe9e..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-gen2main-branch-ed5eb897f9.template.json +++ /dev/null @@ -1,1142 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.21.0\",\"stackType\":\"root\",\"metadata\":{}}", - "Metadata": { - "AWS::Amplify::Platform": { - "version": "1", - "stackOutputs": [ - "deploymentType", - "region" - ] - }, - "AWS::Amplify::Auth": { - "version": "1", - "stackOutputs": [ - "userPoolId", - "webClientId", - "identityPoolId", - "authRegion", - "allowUnauthenticatedIdentities", - "signupAttributes", - "usernameAttributes", - "verificationMechanisms", - "passwordPolicyMinLength", - "passwordPolicyRequirements", - "mfaConfiguration", - "mfaTypes", - "passwordlessOptions", - "socialProviders", - "oauthCognitoDomain", - "oauthScope", - "oauthRedirectSignIn", - "oauthRedirectSignOut", - "oauthResponseType", - "oauthClientId", - "groups" - ] - }, - "AWS::Amplify::Function": { - "version": "1", - "stackOutputs": [ - "definedFunctions" - ] - }, - "AWS::Amplify::GraphQL": { - "version": "1", - "stackOutputs": [ - "awsAppsyncApiId", - "awsAppsyncApiEndpoint", - "awsAppsyncAuthenticationType", - "awsAppsyncRegion", - "amplifyApiModelSchemaS3Uri", - "awsAppsyncApiKey", - "awsAppsyncAdditionalAuthenticationTypes" - ] - }, - "AWS::Amplify::Storage": { - "version": "1", - "stackOutputs": [ - "buckets", - "storageRegion", - "bucketName" - ] - } - }, - "Outputs": { - "deploymentType": { - "Value": "branch" - }, - "region": { - "Value": { - "Ref": "AWS::Region" - } - }, - "userPoolId": { - "Value": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifymediavaultgen2mainbranched5eb897f9authamplifyAuthUserPool9F5CB443Ref" - ] - } - }, - "webClientId": { - "Value": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifymediavaultgen2mainbranched5eb897f9authamplifyAuthUserPoolAppClient20072DD5Ref" - ] - } - }, - "identityPoolId": { - "Value": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifymediavaultgen2mainbranched5eb897f9authamplifyAuthIdentityPoolB6C3F181Ref" - ] - } - }, - "authRegion": { - "Value": { - "Ref": "AWS::Region" - } - }, - "allowUnauthenticatedIdentities": { - "Value": "true" - }, - "signupAttributes": { - "Value": "[\"email\"]" - }, - "usernameAttributes": { - "Value": "[\"email\",\"phone_number\"]" - }, - "verificationMechanisms": { - "Value": "[\"email\"]" - }, - "passwordPolicyMinLength": { - "Value": "8" - }, - "passwordPolicyRequirements": { - "Value": "[]" - }, - "mfaConfiguration": { - "Value": "OFF" - }, - "mfaTypes": { - "Value": "[]" - }, - "passwordlessOptions": { - "Value": "" - }, - "socialProviders": { - "Value": "[\"GOOGLE\",\"FACEBOOK\"]" - }, - "oauthCognitoDomain": { - "Value": { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifymediavaultgen2mainbranched5eb897f9authamplifyAuthUserPoolUserPoolDomainAC114943Ref" - ] - }, - ".auth.", - { - "Ref": "AWS::Region" - }, - ".amazoncognito.com" - ] - ] - } - }, - "oauthScope": { - "Value": "[\"phone\",\"email\",\"openid\",\"profile\",\"aws.cognito.signin.user.admin\"]" - }, - "oauthRedirectSignIn": { - "Value": "https://main.d1086iitvfyy6.amplifyapp.com/,https://gen2-main.d1086iitvfyy6.amplifyapp.com/" - }, - "oauthRedirectSignOut": { - "Value": "https://main.d1086iitvfyy6.amplifyapp.com/,https://gen2-main.d1086iitvfyy6.amplifyapp.com/" - }, - "oauthResponseType": { - "Value": "code" - }, - "oauthClientId": { - "Value": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifymediavaultgen2mainbranched5eb897f9authamplifyAuthUserPoolAppClient20072DD5Ref" - ] - } - }, - "groups": { - "Value": "[{\"Admin\":{\"precedence\":0}},{\"Basic\":{\"precedence\":1}}]" - }, - "definedFunctions": { - "Value": { - "Fn::Join": [ - "", - [ - "[\"", - { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifymediavaultgen2mainbranched5eb897f9authaddusertogroupgen2mainlambdaFE5FDFFARef" - ] - }, - "\",\"", - { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifymediavaultgen2mainbranched5eb897f9authremoveuserfromgroupgen2mainlambda5610FB1BRef" - ] - }, - "\",\"", - { - "Fn::GetAtt": [ - "storage0EC3F24A", - "Outputs.amplifymediavaultgen2mainbranched5eb897f9storagethumbnailgengen2mainlambda45CDCFCARef" - ] - }, - "\"]" - ] - ] - } - }, - "awsAppsyncApiId": { - "Value": { - "Fn::GetAtt": [ - "data7552DF31", - "Outputs.amplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833ApiId" - ] - } - }, - "awsAppsyncApiEndpoint": { - "Value": { - "Fn::GetAtt": [ - "data7552DF31", - "Outputs.amplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPID9F44833GraphQLUrl" - ] - } - }, - "awsAppsyncAuthenticationType": { - "Value": "AMAZON_COGNITO_USER_POOLS" - }, - "awsAppsyncRegion": { - "Value": { - "Ref": "AWS::Region" - } - }, - "amplifyApiModelSchemaS3Uri": { - "Value": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Fn::Select": [ - 0, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "data7552DF31", - "Outputs.amplifymediavaultgen2mainbranched5eb897f9dataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB79B5379DDestinationBucketArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "/model-schema.graphql" - ] - ] - } - }, - "awsAppsyncApiKey": { - "Value": { - "Fn::GetAtt": [ - "data7552DF31", - "Outputs.amplifymediavaultgen2mainbranched5eb897f9dataamplifyDataGraphQLAPIDefaultApiKey6A29A072ApiKey" - ] - } - }, - "awsAppsyncAdditionalAuthenticationTypes": { - "Value": "API_KEY,AWS_IAM" - }, - "storageRegion": { - "Value": { - "Ref": "AWS::Region" - } - }, - "bucketName": { - "Value": { - "Fn::GetAtt": [ - "storage0EC3F24A", - "Outputs.amplifymediavaultgen2mainbranched5eb897f9storagemediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket9A1D406DRef" - ] - } - }, - "buckets": { - "Value": { - "Fn::Join": [ - "", - [ - "[\"{\\\"name\\\":\\\"mediavaultb574f210f1634e3a8d1934f263da5bed61114-gen2-main\\\",\\\"bucketName\\\":\\\"", - { - "Fn::GetAtt": [ - "storage0EC3F24A", - "Outputs.amplifymediavaultgen2mainbranched5eb897f9storagemediavaultb574f210f1634e3a8d1934f263da5bed61114gen2mainBucket9A1D406DRef" - ] - }, - "\\\",\\\"storageRegion\\\":\\\"", - { - "Ref": "AWS::Region" - }, - "\\\",\\\"paths\\\":{\\\"public/*\\\":{\\\"guest\\\":[\\\"get\\\",\\\"list\\\"],\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"],\\\"groupsAdmin\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"],\\\"groupsBasic\\\":[\\\"get\\\",\\\"list\\\"]},\\\"protected/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"],\\\"groupsAdmin\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"],\\\"groupsBasic\\\":[\\\"get\\\",\\\"list\\\"]},\\\"private/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"],\\\"groupsAdmin\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"],\\\"groupsBasic\\\":[\\\"get\\\",\\\"list\\\"]}}}\"]" - ] - ] - } - } - }, - "Resources": { - "AmplifyBranchLinkerCustomResourceLambdaServiceRole3DDCBC03": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "mediavault" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/AmplifyBranchLinker/CustomResourceLambda/ServiceRole/Resource" - } - }, - "AmplifyBranchLinkerCustomResourceLambdaServiceRoleDefaultPolicy86099CA1": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "amplify:GetBranch", - "amplify:UpdateBranch" - ], - "Effect": "Allow", - "Resource": "arn:aws:amplify:*:*:apps/mediavault/branches/gen2-main" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "AmplifyBranchLinkerCustomResourceLambdaServiceRoleDefaultPolicy86099CA1", - "Roles": [ - { - "Ref": "AmplifyBranchLinkerCustomResourceLambdaServiceRole3DDCBC03" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/AmplifyBranchLinker/CustomResourceLambda/ServiceRole/DefaultPolicy/Resource" - } - }, - "AmplifyBranchLinkerCustomResourceLambda582AC093": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "751e3ee59971fcc23899a5adefb325c4c20f3e0f3b705e8cd510d3b96030c283.zip" - }, - "Handler": "index.handler", - "Role": { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceLambdaServiceRole3DDCBC03", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "mediavault" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 10 - }, - "DependsOn": [ - "AmplifyBranchLinkerCustomResourceLambdaServiceRoleDefaultPolicy86099CA1", - "AmplifyBranchLinkerCustomResourceLambdaServiceRole3DDCBC03" - ], - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/AmplifyBranchLinker/CustomResourceLambda/Resource", - "aws:asset:path": "asset.751e3ee59971fcc23899a5adefb325c4c20f3e0f3b705e8cd510d3b96030c283", - "aws:asset:is-bundled": true, - "aws:asset:property": "Code" - } - }, - "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRole92A035EB": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "mediavault" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/AmplifyBranchLinker/CustomResourceProvider/framework-onEvent/ServiceRole/Resource" - } - }, - "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRoleDefaultPolicy38AAE412": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "lambda:InvokeFunction", - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceLambda582AC093", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceLambda582AC093", - "Arn" - ] - }, - ":*" - ] - ] - } - ] - }, - { - "Action": "lambda:GetFunction", - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceLambda582AC093", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRoleDefaultPolicy38AAE412", - "Roles": [ - { - "Ref": "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRole92A035EB" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/AmplifyBranchLinker/CustomResourceProvider/framework-onEvent/ServiceRole/DefaultPolicy/Resource" - } - }, - "AmplifyBranchLinkerCustomResourceProviderframeworkonEvent3B23F900": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "07a90cc3efdfc34da22208dcd9d211f06f5b0e01b21e778edc7c3966b1f61d57.zip" - }, - "Description": "AWS CDK resource provider framework - onEvent (amplify-mediavault-gen2main-branch-ed5eb897f9/AmplifyBranchLinker/CustomResourceProvider)", - "Environment": { - "Variables": { - "USER_ON_EVENT_FUNCTION_ARN": { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceLambda582AC093", - "Arn" - ] - } - } - }, - "Handler": "framework.onEvent", - "LoggingConfig": { - "ApplicationLogLevel": "FATAL", - "LogFormat": "JSON" - }, - "Role": { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRole92A035EB", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "mediavault" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 900 - }, - "DependsOn": [ - "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRoleDefaultPolicy38AAE412", - "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRole92A035EB" - ], - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/AmplifyBranchLinker/CustomResourceProvider/framework-onEvent/Resource", - "aws:asset:path": "asset.07a90cc3efdfc34da22208dcd9d211f06f5b0e01b21e778edc7c3966b1f61d57", - "aws:asset:is-bundled": false, - "aws:asset:property": "Code" - } - }, - "AmplifyBranchLinkerCustomResource96E36FC1": { - "Type": "Custom::AmplifyBranchLinkerResource", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceProviderframeworkonEvent3B23F900", - "Arn" - ] - }, - "appId": "mediavault", - "branchName": "gen2-main" - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/AmplifyBranchLinker/CustomResource/Default" - } - }, - "auth179371D7": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "mediavault" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/4ef382904c4a382cfeb1d034ba022b9de6edc8cec58be5b2998cff992f79cdb3.json" - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/auth.NestedStack/auth.NestedStackResource", - "aws:asset:path": "amplifymediavaultgen2mainbranched5eb897f9auth5341184F.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "data7552DF31": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthUserPool9F5CB443Ref": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifymediavaultgen2mainbranched5eb897f9authamplifyAuthUserPool9F5CB443Ref" - ] - }, - "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthauthenticatedUserRoleC20A3134Ref": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifymediavaultgen2mainbranched5eb897f9authamplifyAuthauthenticatedUserRoleC20A3134Ref" - ] - }, - "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthunauthenticatedUserRoleEF69FE43Ref": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifymediavaultgen2mainbranched5eb897f9authamplifyAuthunauthenticatedUserRoleEF69FE43Ref" - ] - }, - "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthIdentityPoolB6C3F181Ref": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifymediavaultgen2mainbranched5eb897f9authamplifyAuthIdentityPoolB6C3F181Ref" - ] - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "mediavault" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/15e7728c9e9c2daa215b6e1c9ba9ffa45419c5c0d974e9d3880d4fca5af3e4ef.json" - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/data.NestedStack/data.NestedStackResource", - "aws:asset:path": "amplifymediavaultgen2mainbranched5eb897f9data901CE14E.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "storage0EC3F24A": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthunauthenticatedUserRoleEF69FE43Ref": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifymediavaultgen2mainbranched5eb897f9authamplifyAuthunauthenticatedUserRoleEF69FE43Ref" - ] - }, - "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthauthenticatedUserRoleC20A3134Ref": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifymediavaultgen2mainbranched5eb897f9authamplifyAuthauthenticatedUserRoleC20A3134Ref" - ] - }, - "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthAdminGroupRoleD3CE4EF4Ref": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifymediavaultgen2mainbranched5eb897f9authamplifyAuthAdminGroupRoleD3CE4EF4Ref" - ] - }, - "referencetoamplifymediavaultgen2mainbranched5eb897f9authNestedStackauthNestedStackResource88E75484Outputsamplifymediavaultgen2mainbranched5eb897f9authamplifyAuthBasicGroupRole000D5775Ref": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifymediavaultgen2mainbranched5eb897f9authamplifyAuthBasicGroupRole000D5775Ref" - ] - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "mediavault" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/c93a4e79137447eb766ab7486a3d078820a23fe6cbc7ce39626783b8f1064f7b.json" - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/storage.NestedStack/storage.NestedStackResource", - "aws:asset:path": "amplifymediavaultgen2mainbranched5eb897f9storageD1BE896E.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/02PzWrDQAyEnyV3WU2cHHptDD22wXkAo6yVIP/slpU2oRi/e/C6LT19I4YZNCWWhx1uN/TQwrV9McgFp7OR66G6+s9kX8mAHtpMA42XlhofWu4UPzLek3cmwYPQiFMdBl5SmacwiPtezlXNoPuGVNkU3xaA7vGYXM92JGVY63Gqrv6v9VfMM+TI2egm/gYuqYWxiawhRceKpxju0nKEKjv1j5Gf+afzrhmWCdjpy70scfeK202nIkVM3mRkrFc+AUTtSG0ZAQAA" - }, - "Metadata": { - "aws:cdk:path": "amplify-mediavault-gen2main-branch-ed5eb897f9/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "BootstrapVersion": { - "Type": "AWS::SSM::Parameter::Value", - "Default": "/cdk-bootstrap/hnb659fds/version", - "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]" - } - }, - "Rules": { - "CheckBootstrapVersion": { - "Assertions": [ - { - "Assert": { - "Fn::Not": [ - { - "Fn::Contains": [ - [ - "1", - "2", - "3", - "4", - "5" - ], - { - "Ref": "BootstrapVersion" - } - ] - } - ] - }, - "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI." - } - ] - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ-CustomResourcesjson-1J0UK1IFA0YSU.description.txt b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ-CustomResourcesjson-1J0UK1IFA0YSU.description.txt deleted file mode 100644 index 293dec5639e..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ-CustomResourcesjson-1J0UK1IFA0YSU.description.txt +++ /dev/null @@ -1 +0,0 @@ -An auto-generated nested stack. \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ-CustomResourcesjson-1J0UK1IFA0YSU.outputs.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ-CustomResourcesjson-1J0UK1IFA0YSU.outputs.json deleted file mode 100644 index 5e9753d822a..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ-CustomResourcesjson-1J0UK1IFA0YSU.outputs.json +++ /dev/null @@ -1,7 +0,0 @@ -[ - { - "OutputKey": "EmptyOutput", - "OutputValue": "", - "Description": "An empty output. You may delete this if you have at least one resource above." - } -] \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ-CustomResourcesjson-1J0UK1IFA0YSU.parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ-CustomResourcesjson-1J0UK1IFA0YSU.parameters.json deleted file mode 100644 index ec54b07eebc..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ-CustomResourcesjson-1J0UK1IFA0YSU.parameters.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "ParameterKey": "S3DeploymentBucket", - "ParameterValue": "amplify-mediavault-main-61114-deployment" - }, - { - "ParameterKey": "AppSyncApiId", - "ParameterValue": "5aahjbxypzan3jqab7lbquus4m" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "S3DeploymentRootKey", - "ParameterValue": "amplify-appsync-files/a9caa2a9280aa728b448533b4b7827dcc2cbf238" - }, - { - "ParameterKey": "AppSyncApiName", - "ParameterValue": "mediavault" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ-CustomResourcesjson-1J0UK1IFA0YSU.template.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ-CustomResourcesjson-1J0UK1IFA0YSU.template.json deleted file mode 100644 index 016991278d0..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ-CustomResourcesjson-1J0UK1IFA0YSU.template.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "An auto-generated nested stack.", - "Metadata": {}, - "Parameters": { - "AppSyncApiId": { - "Type": "String", - "Description": "The id of the AppSync API associated with this project." - }, - "AppSyncApiName": { - "Type": "String", - "Description": "The name of the AppSync API", - "Default": "AppSyncSimpleTransform" - }, - "env": { - "Type": "String", - "Description": "The environment name. e.g. Dev, Test, or Production", - "Default": "NONE" - }, - "S3DeploymentBucket": { - "Type": "String", - "Description": "The S3 bucket containing all deployment assets for the project." - }, - "S3DeploymentRootKey": { - "Type": "String", - "Description": "An S3 key relative to the S3DeploymentBucket that points to the root\nof the deployment directory." - } - }, - "Resources": { - "EmptyResource": { - "Type": "Custom::EmptyResource", - "Condition": "AlwaysFalse" - } - }, - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - ] - }, - "AlwaysFalse": { - "Fn::Equals": [ - "true", - "false" - ] - } - }, - "Outputs": { - "EmptyOutput": { - "Description": "An empty output. You may delete this if you have at least one resource above.", - "Value": "" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ-FunctionDirectiveStack-SJ1WVPZSXNB7.description.txt b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ-FunctionDirectiveStack-SJ1WVPZSXNB7.description.txt deleted file mode 100644 index 87d574fa42f..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ-FunctionDirectiveStack-SJ1WVPZSXNB7.description.txt +++ /dev/null @@ -1 +0,0 @@ -An auto-generated nested stack for the @function directive. \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ-FunctionDirectiveStack-SJ1WVPZSXNB7.outputs.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ-FunctionDirectiveStack-SJ1WVPZSXNB7.outputs.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ-FunctionDirectiveStack-SJ1WVPZSXNB7.outputs.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ-FunctionDirectiveStack-SJ1WVPZSXNB7.parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ-FunctionDirectiveStack-SJ1WVPZSXNB7.parameters.json deleted file mode 100644 index a9fe57f0352..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ-FunctionDirectiveStack-SJ1WVPZSXNB7.parameters.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", - "ParameterValue": "amplify-appsync-files/a9caa2a9280aa728b448533b4b7827dcc2cbf238" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", - "ParameterValue": "5aahjbxypzan3jqab7lbquus4m" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", - "ParameterValue": "amplify-mediavault-main-61114-deployment" - }, - { - "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", - "ParameterValue": "main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ-FunctionDirectiveStack-SJ1WVPZSXNB7.template.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ-FunctionDirectiveStack-SJ1WVPZSXNB7.template.json deleted file mode 100644 index 0788f027e98..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ-FunctionDirectiveStack-SJ1WVPZSXNB7.template.json +++ /dev/null @@ -1,709 +0,0 @@ -{ - "Description": "An auto-generated nested stack for the @function directive.", - "AWSTemplateFormatVersion": "2010-09-09", - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - }, - "NONE" - ] - } - ] - } - }, - "Resources": { - "ThumbnailgenLambdaDataSourceServiceRoleCD7268C7": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - } - } - }, - "ThumbnailgenLambdaDataSourceServiceRoleDefaultPolicy3F2A9BDB": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "lambda:InvokeFunction", - "Effect": "Allow", - "Resource": [ - { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:thumbnailgen-${env}", - { - "env": { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - } - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:thumbnailgen" - } - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:thumbnailgen-${env}", - { - "env": { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - } - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:thumbnailgen" - } - ] - }, - ":*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "ThumbnailgenLambdaDataSourceServiceRoleDefaultPolicy3F2A9BDB", - "Roles": [ - { - "Ref": "ThumbnailgenLambdaDataSourceServiceRoleCD7268C7" - } - ] - } - }, - "ThumbnailgenLambdaDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "LambdaConfig": { - "LambdaFunctionArn": { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:thumbnailgen-${env}", - { - "env": { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - } - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:thumbnailgen" - } - ] - } - }, - "Name": "ThumbnailgenLambdaDataSource", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "ThumbnailgenLambdaDataSourceServiceRoleCD7268C7", - "Arn" - ] - }, - "Type": "AWS_LAMBDA" - } - }, - "InvokeThumbnailgenLambdaDataSourceInvokeThumbnailgenLambdaDataSourceAppSyncFunctionB070F690": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ThumbnailgenLambdaDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "InvokeThumbnailgenLambdaDataSource", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/InvokeThumbnailgenLambdaDataSource.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/InvokeThumbnailgenLambdaDataSource.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "ThumbnailgenLambdaDataSource" - ] - }, - "QuerygenerateThumbnailResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "generateThumbnail", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QueryGenerateThumbnailAuthFNQueryGenerateThumbnailAuthFNAppSyncFunction60C28AA7", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "InvokeThumbnailgenLambdaDataSourceInvokeThumbnailgenLambdaDataSourceAppSyncFunctionB070F690", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"generateThumbnail\"))\n{}\n## [End] Stash resolver specific context.. **", - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.generateThumbnail.res.vtl" - ] - ] - }, - "TypeName": "Query" - } - }, - "AddusertogroupLambdaDataSourceServiceRoleB2786AA5": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - } - } - }, - "AddusertogroupLambdaDataSourceServiceRoleDefaultPolicy9971B812": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "lambda:InvokeFunction", - "Effect": "Allow", - "Resource": [ - { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:addusertogroup-${env}", - { - "env": { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - } - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:addusertogroup" - } - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:addusertogroup-${env}", - { - "env": { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - } - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:addusertogroup" - } - ] - }, - ":*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "AddusertogroupLambdaDataSourceServiceRoleDefaultPolicy9971B812", - "Roles": [ - { - "Ref": "AddusertogroupLambdaDataSourceServiceRoleB2786AA5" - } - ] - } - }, - "AddusertogroupLambdaDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "LambdaConfig": { - "LambdaFunctionArn": { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:addusertogroup-${env}", - { - "env": { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - } - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:addusertogroup" - } - ] - } - }, - "Name": "AddusertogroupLambdaDataSource", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "AddusertogroupLambdaDataSourceServiceRoleB2786AA5", - "Arn" - ] - }, - "Type": "AWS_LAMBDA" - } - }, - "InvokeAddusertogroupLambdaDataSourceInvokeAddusertogroupLambdaDataSourceAppSyncFunctionB9DCEFE8": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "AddusertogroupLambdaDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "InvokeAddusertogroupLambdaDataSource", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/InvokeAddusertogroupLambdaDataSource.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/InvokeAddusertogroupLambdaDataSource.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "AddusertogroupLambdaDataSource" - ] - }, - "QueryaddUserToGroupResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "addUserToGroup", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QueryGenerateThumbnailAuthFNQueryGenerateThumbnailAuthFNAppSyncFunction60C28AA7", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "InvokeAddusertogroupLambdaDataSourceInvokeAddusertogroupLambdaDataSourceAppSyncFunctionB9DCEFE8", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"addUserToGroup\"))\n{}\n## [End] Stash resolver specific context.. **", - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.addUserToGroup.res.vtl" - ] - ] - }, - "TypeName": "Query" - } - }, - "RemoveuserfromgroupLambdaDataSourceServiceRole2801970C": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - } - } - }, - "RemoveuserfromgroupLambdaDataSourceServiceRoleDefaultPolicyB82CCCCC": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "lambda:InvokeFunction", - "Effect": "Allow", - "Resource": [ - { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:removeuserfromgroup-${env}", - { - "env": { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - } - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:removeuserfromgroup" - } - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:removeuserfromgroup-${env}", - { - "env": { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - } - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:removeuserfromgroup" - } - ] - }, - ":*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "RemoveuserfromgroupLambdaDataSourceServiceRoleDefaultPolicyB82CCCCC", - "Roles": [ - { - "Ref": "RemoveuserfromgroupLambdaDataSourceServiceRole2801970C" - } - ] - } - }, - "RemoveuserfromgroupLambdaDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "LambdaConfig": { - "LambdaFunctionArn": { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:removeuserfromgroup-${env}", - { - "env": { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - } - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:removeuserfromgroup" - } - ] - } - }, - "Name": "RemoveuserfromgroupLambdaDataSource", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "RemoveuserfromgroupLambdaDataSourceServiceRole2801970C", - "Arn" - ] - }, - "Type": "AWS_LAMBDA" - } - }, - "InvokeRemoveuserfromgroupLambdaDataSourceInvokeRemoveuserfromgroupLambdaDataSourceAppSyncFunction3C57F651": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "RemoveuserfromgroupLambdaDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "InvokeRemoveuserfromgroupLambdaDataSource", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/InvokeRemoveuserfromgroupLambdaDataSource.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/InvokeRemoveuserfromgroupLambdaDataSource.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "RemoveuserfromgroupLambdaDataSource" - ] - }, - "QueryremoveUserFromGroupResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "removeUserFromGroup", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QueryGenerateThumbnailAuthFNQueryGenerateThumbnailAuthFNAppSyncFunction60C28AA7", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "InvokeRemoveuserfromgroupLambdaDataSourceInvokeRemoveuserfromgroupLambdaDataSourceAppSyncFunction3C57F651", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"removeUserFromGroup\"))\n{}\n## [End] Stash resolver specific context.. **", - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.removeUserFromGroup.res.vtl" - ] - ] - }, - "TypeName": "Query" - } - }, - "QueryGenerateThumbnailAuthFNQueryGenerateThumbnailAuthFNAppSyncFunction60C28AA7": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryGenerateThumbnailAuthFN", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.generateThumbnail.auth.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - } - }, - "Parameters": { - "referencetotransformerrootstackenv10C5A902Ref": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Type": "String" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ-Note-6S4QFWOCCKPA.description.txt b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ-Note-6S4QFWOCCKPA.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ-Note-6S4QFWOCCKPA.outputs.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ-Note-6S4QFWOCCKPA.outputs.json deleted file mode 100644 index 5585072e138..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ-Note-6S4QFWOCCKPA.outputs.json +++ /dev/null @@ -1,20 +0,0 @@ -[ - { - "OutputKey": "GetAttNoteTableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Note-5aahjbxypzan3jqab7lbquus4m-main/stream/2026-03-08T14:53:56.204", - "Description": "Your DynamoDB table StreamArn.", - "ExportName": "5aahjbxypzan3jqab7lbquus4m:GetAtt:NoteTable:StreamArn" - }, - { - "OutputKey": "GetAttNoteDataSourceName", - "OutputValue": "NoteTable", - "Description": "Your model DataSource name.", - "ExportName": "5aahjbxypzan3jqab7lbquus4m:GetAtt:NoteDataSource:Name" - }, - { - "OutputKey": "GetAttNoteTableName", - "OutputValue": "Note-5aahjbxypzan3jqab7lbquus4m-main", - "Description": "Your DynamoDB table name.", - "ExportName": "5aahjbxypzan3jqab7lbquus4m:GetAtt:NoteTable:Name" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ-Note-6S4QFWOCCKPA.parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ-Note-6S4QFWOCCKPA.parameters.json deleted file mode 100644 index d6fa406fb8f..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ-Note-6S4QFWOCCKPA.parameters.json +++ /dev/null @@ -1,42 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", - "ParameterValue": "amplify-appsync-files/a9caa2a9280aa728b448533b4b7827dcc2cbf238" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "false" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", - "ParameterValue": "5aahjbxypzan3jqab7lbquus4m" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", - "ParameterValue": "amplify-mediavault-main-61114-deployment" - }, - { - "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", - "ParameterValue": "main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ-Note-6S4QFWOCCKPA.template.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ-Note-6S4QFWOCCKPA.template.json deleted file mode 100644 index 4c9c5ca6bec..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ-Note-6S4QFWOCCKPA.template.json +++ /dev/null @@ -1,1480 +0,0 @@ -{ - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "referencetotransformerrootstackenv10C5A902Ref": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Type": "String" - } - }, - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - }, - "NONE" - ] - } - ] - }, - "ShouldUseServerSideEncryption": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "true" - ] - }, - "ShouldUsePayPerRequestBilling": { - "Fn::Equals": [ - { - "Ref": "DynamoDBBillingMode" - }, - "PAY_PER_REQUEST" - ] - }, - "ShouldUsePointInTimeRecovery": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "true" - ] - } - }, - "Resources": { - "NoteTable": { - "Type": "AWS::DynamoDB::Table", - "Properties": { - "AttributeDefinitions": [ - { - "AttributeName": "id", - "AttributeType": "S" - } - ], - "BillingMode": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - "PAY_PER_REQUEST", - { - "Ref": "AWS::NoValue" - } - ] - }, - "KeySchema": [ - { - "AttributeName": "id", - "KeyType": "HASH" - } - ], - "PointInTimeRecoverySpecification": { - "Fn::If": [ - "ShouldUsePointInTimeRecovery", - { - "PointInTimeRecoveryEnabled": true - }, - { - "Ref": "AWS::NoValue" - } - ] - }, - "ProvisionedThroughput": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - { - "Ref": "AWS::NoValue" - }, - { - "ReadCapacityUnits": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "WriteCapacityUnits": { - "Ref": "DynamoDBModelTableWriteIOPS" - } - } - ] - }, - "SSESpecification": { - "SSEEnabled": { - "Fn::If": [ - "ShouldUseServerSideEncryption", - true, - false - ] - } - }, - "StreamSpecification": { - "StreamViewType": "NEW_AND_OLD_IMAGES" - }, - "TableName": { - "Fn::Join": [ - "", - [ - "Note-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete" - }, - "NoteIAMRoleCA742F19": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:DeleteItem", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:Query", - "dynamodb:UpdateItem", - "dynamodb:ConditionCheckItem", - "dynamodb:DescribeTable", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", - { - "tablename": { - "Fn::Join": [ - "", - [ - "Note-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - ] - }, - { - "Fn::Sub": [ - "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", - { - "tablename": { - "Fn::Join": [ - "", - [ - "Note-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "DynamoDBAccess" - } - ], - "RoleName": { - "Fn::Join": [ - "", - [ - "NoteIAMRoleee5963-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - }, - "NoteIAMRoleDefaultPolicy3A8345BC": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator", - "dynamodb:Query", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:ConditionCheckItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:UpdateItem", - "dynamodb:DeleteItem", - "dynamodb:DescribeTable" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "NoteTable", - "Arn" - ] - }, - { - "Ref": "AWS::NoValue" - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "NoteIAMRoleDefaultPolicy3A8345BC", - "Roles": [ - { - "Ref": "NoteIAMRoleCA742F19" - } - ] - } - }, - "NoteDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DynamoDBConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "TableName": { - "Ref": "NoteTable" - } - }, - "Name": "NoteTable", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "NoteIAMRoleCA742F19", - "Arn" - ] - }, - "Type": "AMAZON_DYNAMODB" - }, - "DependsOn": [ - "NoteIAMRoleCA742F19" - ] - }, - "QuerygetNoteauth0FunctionQuerygetNoteauth0FunctionAppSyncFunction1125F54B": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetNoteauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getNote.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "QuerygetNotepostAuth0FunctionQuerygetNotepostAuth0FunctionAppSyncFunctionBC9940CA": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetNotepostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getNote.postAuth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "QueryGetNoteDataResolverFnQueryGetNoteDataResolverFnAppSyncFunction2F346125": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "NoteDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryGetNoteDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getNote.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getNote.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "NoteDataSource" - ] - }, - "GetNoteResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "getNote", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerygetNoteauth0FunctionQuerygetNoteauth0FunctionAppSyncFunction1125F54B", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetNotepostAuth0FunctionQuerygetNotepostAuth0FunctionAppSyncFunctionBC9940CA", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryGetNoteDataResolverFnQueryGetNoteDataResolverFnAppSyncFunction2F346125", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getNote\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "NoteTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:f09a0373-df13-49a1-a865-247f1908a6a1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - } - }, - "QueryListNotesDataResolverFnQueryListNotesDataResolverFnAppSyncFunctionBD5C872B": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "NoteDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryListNotesDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.listNotes.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.listNotes.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "NoteDataSource" - ] - }, - "ListNoteResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "listNotes", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerygetNoteauth0FunctionQuerygetNoteauth0FunctionAppSyncFunction1125F54B", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetNotepostAuth0FunctionQuerygetNotepostAuth0FunctionAppSyncFunctionBC9940CA", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryListNotesDataResolverFnQueryListNotesDataResolverFnAppSyncFunctionBD5C872B", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listNotes\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "NoteTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:f09a0373-df13-49a1-a865-247f1908a6a1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - } - }, - "MutationcreateNoteinit0FunctionMutationcreateNoteinit0FunctionAppSyncFunction336343A0": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateNoteinit0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createNote.init.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "MutationcreateNoteauth0FunctionMutationcreateNoteauth0FunctionAppSyncFunction24439C2F": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateNoteauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createNote.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "MutationCreateNoteDataResolverFnMutationCreateNoteDataResolverFnAppSyncFunction591F5456": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "NoteDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationCreateNoteDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createNote.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createNote.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "NoteDataSource" - ] - }, - "CreateNoteResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "createNote", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationcreateNoteinit0FunctionMutationcreateNoteinit0FunctionAppSyncFunction336343A0", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationcreateNoteauth0FunctionMutationcreateNoteauth0FunctionAppSyncFunction24439C2F", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetNotepostAuth0FunctionQuerygetNotepostAuth0FunctionAppSyncFunctionBC9940CA", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationCreateNoteDataResolverFnMutationCreateNoteDataResolverFnAppSyncFunction591F5456", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createNote\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "NoteTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:f09a0373-df13-49a1-a865-247f1908a6a1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "MutationupdateNoteinit0FunctionMutationupdateNoteinit0FunctionAppSyncFunction19D28B0F": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateNoteinit0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateNote.init.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "MutationupdateNoteauth0FunctionMutationupdateNoteauth0FunctionAppSyncFunction72CAF43F": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "NoteDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateNoteauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateNote.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateNote.auth.1.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "NoteDataSource" - ] - }, - "MutationUpdateNoteDataResolverFnMutationUpdateNoteDataResolverFnAppSyncFunctionBCC5D9E4": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "NoteDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationUpdateNoteDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateNote.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateNote.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "NoteDataSource" - ] - }, - "UpdateNoteResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "updateNote", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationupdateNoteinit0FunctionMutationupdateNoteinit0FunctionAppSyncFunction19D28B0F", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationupdateNoteauth0FunctionMutationupdateNoteauth0FunctionAppSyncFunction72CAF43F", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetNotepostAuth0FunctionQuerygetNotepostAuth0FunctionAppSyncFunctionBC9940CA", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationUpdateNoteDataResolverFnMutationUpdateNoteDataResolverFnAppSyncFunctionBCC5D9E4", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateNote\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "NoteTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:f09a0373-df13-49a1-a865-247f1908a6a1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "MutationdeleteNoteauth0FunctionMutationdeleteNoteauth0FunctionAppSyncFunction5FE2B4D0": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "NoteDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeleteNoteauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteNote.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteNote.auth.1.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "NoteDataSource" - ] - }, - "MutationDeleteNoteDataResolverFnMutationDeleteNoteDataResolverFnAppSyncFunction3FA3FDA0": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "NoteDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationDeleteNoteDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteNote.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteNote.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "NoteDataSource" - ] - }, - "DeleteNoteResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "deleteNote", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationdeleteNoteauth0FunctionMutationdeleteNoteauth0FunctionAppSyncFunction5FE2B4D0", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetNotepostAuth0FunctionQuerygetNotepostAuth0FunctionAppSyncFunctionBC9940CA", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationDeleteNoteDataResolverFnMutationDeleteNoteDataResolverFnAppSyncFunction3FA3FDA0", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteNote\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "NoteTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:f09a0373-df13-49a1-a865-247f1908a6a1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "SubscriptiononCreateNoteauth0FunctionSubscriptiononCreateNoteauth0FunctionAppSyncFunction853C832F": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononCreateNoteauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Subscription.onCreateNote.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "SubscriptionOnCreateNoteDataResolverFnSubscriptionOnCreateNoteDataResolverFnAppSyncFunction37D6FFF2": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnCreateNoteDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Subscription.onCreateNote.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Subscription.onCreateNote.res.vtl" - ] - ] - } - } - }, - "SubscriptiononCreateNoteResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onCreateNote", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononCreateNoteauth0FunctionSubscriptiononCreateNoteauth0FunctionAppSyncFunction853C832F", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetNotepostAuth0FunctionQuerygetNotepostAuth0FunctionAppSyncFunctionBC9940CA", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnCreateNoteDataResolverFnSubscriptionOnCreateNoteDataResolverFnAppSyncFunction37D6FFF2", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateNote\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:f09a0373-df13-49a1-a865-247f1908a6a1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - }, - "SubscriptiononUpdateNoteResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onUpdateNote", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononCreateNoteauth0FunctionSubscriptiononCreateNoteauth0FunctionAppSyncFunction853C832F", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetNotepostAuth0FunctionQuerygetNotepostAuth0FunctionAppSyncFunctionBC9940CA", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnCreateNoteDataResolverFnSubscriptionOnCreateNoteDataResolverFnAppSyncFunction37D6FFF2", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateNote\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:f09a0373-df13-49a1-a865-247f1908a6a1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - }, - "SubscriptiononDeleteNoteResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onDeleteNote", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononCreateNoteauth0FunctionSubscriptiononCreateNoteauth0FunctionAppSyncFunction853C832F", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetNotepostAuth0FunctionQuerygetNotepostAuth0FunctionAppSyncFunctionBC9940CA", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnCreateNoteDataResolverFnSubscriptionOnCreateNoteDataResolverFnAppSyncFunction37D6FFF2", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteNote\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:f09a0373-df13-49a1-a865-247f1908a6a1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - }, - "NoteOwnerDataResolverFnNoteOwnerDataResolverFnAppSyncFunction66A7C72C": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "NoteOwnerDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Note.owner.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Note.owner.res.vtl" - ] - ] - } - } - }, - "NoteownerResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "owner", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "NoteOwnerDataResolverFnNoteOwnerDataResolverFnAppSyncFunction66A7C72C", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Note\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"owner\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:f09a0373-df13-49a1-a865-247f1908a6a1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Note" - } - } - }, - "Outputs": { - "GetAttNoteTableStreamArn": { - "Description": "Your DynamoDB table StreamArn.", - "Value": { - "Fn::GetAtt": [ - "NoteTable", - "StreamArn" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:NoteTable:StreamArn" - ] - ] - } - } - }, - "GetAttNoteTableName": { - "Description": "Your DynamoDB table name.", - "Value": { - "Ref": "NoteTable" - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:NoteTable:Name" - ] - ] - } - } - }, - "GetAttNoteDataSourceName": { - "Description": "Your model DataSource name.", - "Value": { - "Fn::GetAtt": [ - "NoteDataSource", - "Name" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:NoteDataSource:Name" - ] - ] - } - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ.description.txt b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ.outputs.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ.outputs.json deleted file mode 100644 index 00e9b70439a..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ.outputs.json +++ /dev/null @@ -1,20 +0,0 @@ -[ - { - "OutputKey": "GraphQLAPIIdOutput", - "OutputValue": "5aahjbxypzan3jqab7lbquus4m", - "Description": "Your GraphQL API ID.", - "ExportName": "amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ:GraphQLApiId" - }, - { - "OutputKey": "GraphQLAPIEndpointOutput", - "OutputValue": "https://xv5mtuvvgfayvlmjoe2b6zm2gq.appsync-api.us-east-1.amazonaws.com/graphql", - "Description": "Your GraphQL API endpoint.", - "ExportName": "amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ:GraphQLApiEndpoint" - }, - { - "OutputKey": "GraphQLAPIKeyOutput", - "OutputValue": "da2-fakeapikey00000000000000", - "Description": "Your GraphQL API ID.", - "ExportName": "amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ:GraphQLApiKey" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ.parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ.parameters.json deleted file mode 100644 index dd7d75dfc70..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ.parameters.json +++ /dev/null @@ -1,42 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "false" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "S3DeploymentBucket", - "ParameterValue": "amplify-mediavault-main-61114-deployment" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "S3DeploymentRootKey", - "ParameterValue": "amplify-appsync-files/a9caa2a9280aa728b448533b4b7827dcc2cbf238" - }, - { - "ParameterKey": "AppSyncApiName", - "ParameterValue": "mediavault" - }, - { - "ParameterKey": "AuthCognitoUserPoolId", - "ParameterValue": "us-east-1_gekM9OHb7" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ.template.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ.template.json deleted file mode 100644 index 05ec32c0681..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-apimediavault-1TUXJXQAF7FUZ.template.json +++ /dev/null @@ -1,755 +0,0 @@ -{ - "Parameters": { - "env": { - "Type": "String", - "Default": "NONE" - }, - "AppSyncApiName": { - "Type": "String", - "Default": "AppSyncSimpleTransform" - }, - "AuthCognitoUserPoolId": { - "Type": "String" - }, - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "S3DeploymentBucket": { - "Type": "String", - "Description": "An S3 Bucket name where assets are deployed" - }, - "S3DeploymentRootKey": { - "Type": "String", - "Description": "An S3 key relative to the S3DeploymentBucket that points to the root of the deployment directory." - } - }, - "Resources": { - "GraphQLAPI": { - "Type": "AWS::AppSync::GraphQLApi", - "Properties": { - "AdditionalAuthenticationProviders": [ - { - "AuthenticationType": "API_KEY" - } - ], - "AuthenticationType": "AMAZON_COGNITO_USER_POOLS", - "Name": { - "Fn::Join": [ - "", - [ - { - "Ref": "AppSyncApiName" - }, - "-", - { - "Ref": "env" - } - ] - ] - }, - "UserPoolConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "DefaultAction": "ALLOW", - "UserPoolId": { - "Ref": "AuthCognitoUserPoolId" - } - } - } - }, - "GraphQLAPITransformerSchema3CB2AE18": { - "Type": "AWS::AppSync::GraphQLSchema", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "DefinitionS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/schema.graphql" - ] - ] - } - } - }, - "GraphQLAPIDefaultApiKey215A6DD7": { - "Type": "AWS::AppSync::ApiKey", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "Description": "graphql", - "Expires": 1781623261 - } - }, - "GraphQLAPINONEDS95A13CF0": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "Name": "NONE_DS", - "Type": "NONE" - } - }, - "Note": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "DynamoDBModelTableWriteIOPS": { - "Ref": "DynamoDBModelTableWriteIOPS" - }, - "DynamoDBBillingMode": { - "Ref": "DynamoDBBillingMode" - }, - "DynamoDBEnablePointInTimeRecovery": { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "DynamoDBEnableServerSideEncryption": { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "referencetotransformerrootstackenv10C5A902Ref": { - "Ref": "env" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Ref": "S3DeploymentBucket" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Ref": "S3DeploymentRootKey" - } - }, - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/stacks/Note.json" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "FunctionDirectiveStack": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetotransformerrootstackenv10C5A902Ref": { - "Ref": "env" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Ref": "S3DeploymentBucket" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Ref": "S3DeploymentRootKey" - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - } - }, - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/stacks/FunctionDirectiveStack.json" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "GenerateThumbnailResponseStatusCodeDataResolverFnGenerateThumbnailResponseStatusCodeDataResolverFnAppSyncFunction87220DF2": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "DataSourceName": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "GenerateThumbnailResponseStatusCodeDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/resolvers/GenerateThumbnailResponse.statusCode.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/resolvers/GenerateThumbnailResponse.statusCode.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "GenerateThumbnailResponsestatusCodeResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "FieldName": "statusCode", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "GenerateThumbnailResponseStatusCodeDataResolverFnGenerateThumbnailResponseStatusCodeDataResolverFnAppSyncFunction87220DF2", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"GenerateThumbnailResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"statusCode\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:f09a0373-df13-49a1-a865-247f1908a6a1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "GenerateThumbnailResponse" - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "GenerateThumbnailResponseMessageDataResolverFnGenerateThumbnailResponseMessageDataResolverFnAppSyncFunction46CEA7CB": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "DataSourceName": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "GenerateThumbnailResponseMessageDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/resolvers/GenerateThumbnailResponse.message.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/resolvers/GenerateThumbnailResponse.message.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "GenerateThumbnailResponsemessageResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "FieldName": "message", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "GenerateThumbnailResponseMessageDataResolverFnGenerateThumbnailResponseMessageDataResolverFnAppSyncFunction46CEA7CB", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"GenerateThumbnailResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"message\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:f09a0373-df13-49a1-a865-247f1908a6a1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "GenerateThumbnailResponse" - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "AddUserToGroupResponsestatusCodeResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "FieldName": "statusCode", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "GenerateThumbnailResponseStatusCodeDataResolverFnGenerateThumbnailResponseStatusCodeDataResolverFnAppSyncFunction87220DF2", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"AddUserToGroupResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"statusCode\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:f09a0373-df13-49a1-a865-247f1908a6a1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "AddUserToGroupResponse" - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "AddUserToGroupResponsemessageResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "FieldName": "message", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "GenerateThumbnailResponseMessageDataResolverFnGenerateThumbnailResponseMessageDataResolverFnAppSyncFunction46CEA7CB", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"AddUserToGroupResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"message\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:f09a0373-df13-49a1-a865-247f1908a6a1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "AddUserToGroupResponse" - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "RemoveUserFromGroupResponsestatusCodeResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "FieldName": "statusCode", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "GenerateThumbnailResponseStatusCodeDataResolverFnGenerateThumbnailResponseStatusCodeDataResolverFnAppSyncFunction87220DF2", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"RemoveUserFromGroupResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"statusCode\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:f09a0373-df13-49a1-a865-247f1908a6a1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "RemoveUserFromGroupResponse" - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "RemoveUserFromGroupResponsemessageResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "FieldName": "message", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "GenerateThumbnailResponseMessageDataResolverFnGenerateThumbnailResponseMessageDataResolverFnAppSyncFunction46CEA7CB", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"RemoveUserFromGroupResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"message\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:f09a0373-df13-49a1-a865-247f1908a6a1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-main\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "RemoveUserFromGroupResponse" - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "CustomResourcesjson": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "AppSyncApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "AppSyncApiName": { - "Ref": "AppSyncApiName" - }, - "env": { - "Ref": "env" - }, - "S3DeploymentBucket": { - "Ref": "S3DeploymentBucket" - }, - "S3DeploymentRootKey": { - "Ref": "S3DeploymentRootKey" - } - }, - "TemplateURL": { - "Fn::Join": [ - "/", - [ - "https://s3.amazonaws.com", - { - "Ref": "S3DeploymentBucket" - }, - { - "Ref": "S3DeploymentRootKey" - }, - "stacks", - "CustomResources.json" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPI", - "GraphQLAPITransformerSchema3CB2AE18", - "Note", - "FunctionDirectiveStack" - ] - } - }, - "Outputs": { - "GraphQLAPIKeyOutput": { - "Description": "Your GraphQL API ID.", - "Value": { - "Fn::GetAtt": [ - "GraphQLAPIDefaultApiKey215A6DD7", - "ApiKey" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "AWS::StackName" - }, - "GraphQLApiKey" - ] - ] - } - } - }, - "GraphQLAPIIdOutput": { - "Description": "Your GraphQL API ID.", - "Value": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "AWS::StackName" - }, - "GraphQLApiId" - ] - ] - } - } - }, - "GraphQLAPIEndpointOutput": { - "Description": "Your GraphQL API endpoint.", - "Value": { - "Fn::GetAtt": [ - "GraphQLAPI", - "GraphQLUrl" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "AWS::StackName" - }, - "GraphQLApiEndpoint" - ] - ] - } - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-authmediavault1f08412d-16ZOUXD7JWQKQ.description.txt b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-authmediavault1f08412d-16ZOUXD7JWQKQ.description.txt deleted file mode 100644 index be81ecbcfe2..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-authmediavault1f08412d-16ZOUXD7JWQKQ.description.txt +++ /dev/null @@ -1 +0,0 @@ -Amplify Cognito Stack for AWS Amplify CLI \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-authmediavault1f08412d-16ZOUXD7JWQKQ.outputs.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-authmediavault1f08412d-16ZOUXD7JWQKQ.outputs.json deleted file mode 100644 index ce35469de8a..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-authmediavault1f08412d-16ZOUXD7JWQKQ.outputs.json +++ /dev/null @@ -1,43 +0,0 @@ -[ - { - "OutputKey": "UserPoolId", - "OutputValue": "us-east-1_gekM9OHb7", - "Description": "Id for the user pool" - }, - { - "OutputKey": "AppClientIDWeb", - "OutputValue": "1hq2dgt1ct4f6b812o4ell2b4u", - "Description": "The user pool app client id for web" - }, - { - "OutputKey": "AppClientID", - "OutputValue": "74dj0ooish8us4g47hk169p8jq", - "Description": "The user pool app client id" - }, - { - "OutputKey": "HostedUIDomain", - "OutputValue": "mediavault1f08412d-1f08412d-main" - }, - { - "OutputKey": "IdentityPoolId", - "OutputValue": "us-east-1:f09a0373-df13-49a1-a865-247f1908a6a1", - "Description": "Id for the identity pool" - }, - { - "OutputKey": "UserPoolArn", - "OutputValue": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_gekM9OHb7", - "Description": "Arn for the user pool" - }, - { - "OutputKey": "IdentityPoolName", - "OutputValue": "mediavault1f08412d_identitypool_1f08412d__main" - }, - { - "OutputKey": "OAuthMetadata", - "OutputValue": "{\"AllowedOAuthFlows\":[\"code\"],\"AllowedOAuthScopes\":[\"phone\",\"email\",\"openid\",\"profile\",\"aws.cognito.signin.user.admin\"],\"CallbackURLs\":[\"https://main.mediavault.amplifyapp.com/\"],\"LogoutURLs\":[\"https://main.mediavault.amplifyapp.com/\"]}" - }, - { - "OutputKey": "UserPoolName", - "OutputValue": "mediavault1f08412d_userpool_1f08412d" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-authmediavault1f08412d-16ZOUXD7JWQKQ.parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-authmediavault1f08412d-16ZOUXD7JWQKQ.parameters.json deleted file mode 100644 index a7b80bb98a9..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-authmediavault1f08412d-16ZOUXD7JWQKQ.parameters.json +++ /dev/null @@ -1,170 +0,0 @@ -[ - { - "ParameterKey": "hostedUIDomainName", - "ParameterValue": "mediavault1f08412d-1f08412d" - }, - { - "ParameterKey": "usernameAttributes", - "ParameterValue": "email,phone_number" - }, - { - "ParameterKey": "authRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-mediavault-main-61114-authRole" - }, - { - "ParameterKey": "autoVerifiedAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "allowUnauthenticatedIdentities", - "ParameterValue": "true" - }, - { - "ParameterKey": "hostedUI", - "ParameterValue": "true" - }, - { - "ParameterKey": "smsVerificationMessage", - "ParameterValue": "Your verification code is {####}" - }, - { - "ParameterKey": "userpoolClientReadAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "breakCircularDependency", - "ParameterValue": "true" - }, - { - "ParameterKey": "oAuthMetadata", - "ParameterValue": "{\"AllowedOAuthFlows\":[\"code\"],\"AllowedOAuthScopes\":[\"phone\",\"email\",\"openid\",\"profile\",\"aws.cognito.signin.user.admin\"],\"CallbackURLs\":[\"https://main.mediavault.amplifyapp.com/\"],\"LogoutURLs\":[\"https://main.mediavault.amplifyapp.com/\"]}" - }, - { - "ParameterKey": "mfaTypes", - "ParameterValue": "SMS Text Message" - }, - { - "ParameterKey": "emailVerificationSubject", - "ParameterValue": "Your verification code" - }, - { - "ParameterKey": "sharedId", - "ParameterValue": "1f08412d" - }, - { - "ParameterKey": "useDefault", - "ParameterValue": "defaultSocial" - }, - { - "ParameterKey": "userpoolClientGenerateSecret", - "ParameterValue": "false" - }, - { - "ParameterKey": "mfaConfiguration", - "ParameterValue": "OFF" - }, - { - "ParameterKey": "identityPoolName", - "ParameterValue": "mediavault1f08412d_identitypool_1f08412d" - }, - { - "ParameterKey": "authProvidersUserPool", - "ParameterValue": "Facebook,Google" - }, - { - "ParameterKey": "userPoolGroupList", - "ParameterValue": "Admin,Basic" - }, - { - "ParameterKey": "authSelections", - "ParameterValue": "identityPoolAndUserPool" - }, - { - "ParameterKey": "resourceNameTruncated", - "ParameterValue": "mediav1f08412d" - }, - { - "ParameterKey": "smsAuthenticationMessage", - "ParameterValue": "Your authentication code is {####}" - }, - { - "ParameterKey": "passwordPolicyMinLength", - "ParameterValue": "8" - }, - { - "ParameterKey": "userPoolName", - "ParameterValue": "mediavault1f08412d_userpool_1f08412d" - }, - { - "ParameterKey": "hostedUIProviderMeta", - "ParameterValue": "[{\"ProviderName\":\"Facebook\",\"authorize_scopes\":\"email,public_profile\",\"AttributeMapping\":{\"email\":\"email\",\"username\":\"id\"}},{\"ProviderName\":\"Google\",\"authorize_scopes\":\"openid email profile\",\"AttributeMapping\":{\"email\":\"email\",\"username\":\"sub\"}}]" - }, - { - "ParameterKey": "userpoolClientWriteAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "dependsOn", - "ParameterValue": "" - }, - { - "ParameterKey": "useEnabledMfas", - "ParameterValue": "true" - }, - { - "ParameterKey": "usernameCaseSensitive", - "ParameterValue": "false" - }, - { - "ParameterKey": "resourceName", - "ParameterValue": "mediavault1f08412d" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "serviceName", - "ParameterValue": "Cognito" - }, - { - "ParameterKey": "emailVerificationMessage", - "ParameterValue": "Your verification code is {####}" - }, - { - "ParameterKey": "userpoolClientRefreshTokenValidity", - "ParameterValue": "30" - }, - { - "ParameterKey": "userpoolClientSetAttributes", - "ParameterValue": "false" - }, - { - "ParameterKey": "unauthRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-mediavault-main-61114-unauthRole" - }, - { - "ParameterKey": "requiredAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "passwordPolicyCharacters", - "ParameterValue": "" - }, - { - "ParameterKey": "aliasAttributes", - "ParameterValue": "" - }, - { - "ParameterKey": "userpoolClientLambdaRole", - "ParameterValue": "mediav1f08412d_userpoolclient_lambda_role" - }, - { - "ParameterKey": "defaultPasswordPolicy", - "ParameterValue": "false" - }, - { - "ParameterKey": "hostedUIProviderCreds", - "ParameterValue": "****" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-authmediavault1f08412d-16ZOUXD7JWQKQ.template.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-authmediavault1f08412d-16ZOUXD7JWQKQ.template.json deleted file mode 100644 index d36a1bda100..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-authmediavault1f08412d-16ZOUXD7JWQKQ.template.json +++ /dev/null @@ -1,864 +0,0 @@ -{ - "Description": "Amplify Cognito Stack for AWS Amplify CLI", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "env": { - "Type": "String" - }, - "identityPoolName": { - "Type": "String" - }, - "allowUnauthenticatedIdentities": { - "Type": "String" - }, - "resourceNameTruncated": { - "Type": "String" - }, - "userPoolName": { - "Type": "String" - }, - "autoVerifiedAttributes": { - "Type": "CommaDelimitedList" - }, - "mfaConfiguration": { - "Type": "String" - }, - "mfaTypes": { - "Type": "CommaDelimitedList" - }, - "smsAuthenticationMessage": { - "Type": "String" - }, - "smsVerificationMessage": { - "Type": "String" - }, - "emailVerificationSubject": { - "Type": "String" - }, - "emailVerificationMessage": { - "Type": "String" - }, - "defaultPasswordPolicy": { - "Type": "String" - }, - "passwordPolicyMinLength": { - "Type": "String" - }, - "passwordPolicyCharacters": { - "Type": "CommaDelimitedList" - }, - "requiredAttributes": { - "Type": "CommaDelimitedList" - }, - "aliasAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientGenerateSecret": { - "Type": "String" - }, - "userpoolClientRefreshTokenValidity": { - "Type": "String" - }, - "userpoolClientWriteAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientReadAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientLambdaRole": { - "Type": "String" - }, - "userpoolClientSetAttributes": { - "Type": "String" - }, - "sharedId": { - "Type": "String" - }, - "resourceName": { - "Type": "String" - }, - "authSelections": { - "Type": "String" - }, - "useDefault": { - "Type": "String" - }, - "hostedUI": { - "Type": "String" - }, - "usernameAttributes": { - "Type": "CommaDelimitedList" - }, - "hostedUIDomainName": { - "Type": "String" - }, - "authProvidersUserPool": { - "Type": "CommaDelimitedList" - }, - "hostedUIProviderMeta": { - "Type": "String" - }, - "userPoolGroupList": { - "Type": "CommaDelimitedList" - }, - "serviceName": { - "Type": "String" - }, - "usernameCaseSensitive": { - "Type": "String" - }, - "useEnabledMfas": { - "Type": "String" - }, - "authRoleArn": { - "Type": "String" - }, - "unauthRoleArn": { - "Type": "String" - }, - "breakCircularDependency": { - "Type": "String" - }, - "dependsOn": { - "Type": "CommaDelimitedList" - }, - "oAuthMetadata": { - "Type": "String" - }, - "hostedUIProviderCreds": { - "Type": "String", - "NoEcho": true - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - }, - "Resources": { - "UserPool": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": { - "Ref": "emailVerificationMessage" - }, - "EmailVerificationSubject": { - "Ref": "emailVerificationSubject" - }, - "MfaConfiguration": { - "Ref": "mfaConfiguration" - }, - "Policies": { - "PasswordPolicy": { - "MinimumLength": { - "Ref": "passwordPolicyMinLength" - }, - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "userPoolName" - }, - { - "Fn::Join": [ - "", - [ - { - "Ref": "userPoolName" - }, - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "UsernameAttributes": { - "Ref": "usernameAttributes" - }, - "UsernameConfiguration": { - "CaseSensitive": false - } - } - }, - "UserPoolClientWeb": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlows": [ - "code" - ], - "AllowedOAuthFlowsUserPoolClient": true, - "AllowedOAuthScopes": [ - "phone", - "email", - "openid", - "profile", - "aws.cognito.signin.user.admin" - ], - "CallbackURLs": [ - "https://main.mediavault.amplifyapp.com/" - ], - "ClientName": "mediav1f08412d_app_clientWeb", - "LogoutURLs": [ - "https://main.mediavault.amplifyapp.com/" - ], - "RefreshTokenValidity": { - "Ref": "userpoolClientRefreshTokenValidity" - }, - "SupportedIdentityProviders": [ - "Facebook", - "Google", - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": { - "Ref": "UserPool" - } - }, - "DependsOn": [ - "HostedUIProvidersCustomResourceInputs", - "UserPool" - ] - }, - "UserPoolClient": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlows": [ - "code" - ], - "AllowedOAuthFlowsUserPoolClient": true, - "AllowedOAuthScopes": [ - "phone", - "email", - "openid", - "profile", - "aws.cognito.signin.user.admin" - ], - "CallbackURLs": [ - "https://main.mediavault.amplifyapp.com/" - ], - "ClientName": "mediav1f08412d_app_client", - "GenerateSecret": { - "Ref": "userpoolClientGenerateSecret" - }, - "LogoutURLs": [ - "https://main.mediavault.amplifyapp.com/" - ], - "RefreshTokenValidity": { - "Ref": "userpoolClientRefreshTokenValidity" - }, - "SupportedIdentityProviders": [ - "Facebook", - "Google", - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": { - "Ref": "UserPool" - } - }, - "DependsOn": [ - "HostedUIProvidersCustomResourceInputs", - "UserPool" - ] - }, - "UserPoolClientRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - }, - "Action": "sts:AssumeRole" - } - ] - }, - "RoleName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "userpoolClientLambdaRole" - }, - { - "Fn::Join": [ - "", - [ - "upClientLambdaRole1f08412d", - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - { - "Ref": "AWS::StackName" - } - ] - } - ] - }, - "-", - { - "Ref": "env" - } - ] - ] - } - ] - } - } - }, - "HostedUICustomResource": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "ZipFile": "const response = require('cfn-response');\nconst {\n CognitoIdentityProviderClient,\n CreateUserPoolDomainCommand,\n DeleteUserPoolDomainCommand,\n DescribeUserPoolCommand,\n DescribeUserPoolDomainCommand,\n} = require('@aws-sdk/client-cognito-identity-provider');\nconst identity = new CognitoIdentityProviderClient({});\n\nexports.handler = (event, context) => {\n // Don't return promise, response.send() marks context as done internally\n void tryHandleEvent(event, context);\n};\n\nasync function tryHandleEvent(event, context) {\n try {\n await handleEvent(event);\n response.send(event, context, response.SUCCESS, {});\n } catch (err) {\n console.log(err);\n response.send(event, context, response.FAILED, { err });\n }\n}\n\nasync function handleEvent(event) {\n const userPoolId = event.ResourceProperties.userPoolId;\n const inputDomainName = event.ResourceProperties.hostedUIDomainName;\n if (event.RequestType === 'Delete') {\n await deleteUserPoolDomain(inputDomainName, userPoolId);\n } else if (event.RequestType === 'Update' || event.RequestType === 'Create') {\n await createOrUpdateDomain(inputDomainName, userPoolId);\n }\n}\n\nasync function checkDomainAvailability(domainName) {\n const params = { Domain: domainName };\n try {\n const res = await identity.send(new DescribeUserPoolDomainCommand(params));\n return !(res.DomainDescription && res.DomainDescription.UserPoolId);\n } catch (err) {\n return false;\n }\n}\n\nasync function deleteUserPoolDomain(domainName, userPoolId) {\n const params = { Domain: domainName, UserPoolId: userPoolId };\n await identity.send(new DeleteUserPoolDomainCommand(params));\n}\n\nasync function createUserPoolDomain(domainName, userPoolId) {\n const params = {\n Domain: domainName,\n UserPoolId: userPoolId,\n };\n await identity.send(new CreateUserPoolDomainCommand(params));\n}\n\nasync function createOrUpdateDomain(inputDomainName, userPoolId) {\n const result = await identity.send(new DescribeUserPoolCommand({ UserPoolId: userPoolId }));\n if (result.UserPool.Domain === inputDomainName) {\n // if existing domain is same as input domain do nothing.\n return;\n }\n if (inputDomainName) {\n // create new or replace existing domain.\n const isDomainAvailable = await checkDomainAvailability(inputDomainName);\n if (isDomainAvailable) {\n if (result.UserPool.Domain) {\n await deleteUserPoolDomain(result.UserPool.Domain, userPoolId);\n }\n await createUserPoolDomain(inputDomainName, userPoolId);\n } else {\n throw new Error('Domain not available');\n }\n } else if (result.UserPool.Domain) {\n // if input domain is undefined delete existing domain if exists.\n await deleteUserPoolDomain(result.UserPool.Domain, userPoolId);\n }\n}\n" - }, - "Handler": "index.handler", - "Role": { - "Fn::GetAtt": [ - "UserPoolClientRole", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Timeout": 300 - }, - "DependsOn": [ - "UserPoolClientRole" - ] - }, - "HostedUICustomResourcePolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "cognito-idp:CreateUserPoolDomain", - "cognito-idp:DescribeUserPool", - "cognito-idp:DeleteUserPoolDomain" - ], - "Resource": { - "Fn::GetAtt": [ - "UserPool", - "Arn" - ] - } - }, - { - "Effect": "Allow", - "Action": [ - "cognito-idp:DescribeUserPoolDomain" - ], - "Resource": "*" - } - ] - }, - "PolicyName": { - "Fn::Join": [ - "-", - [ - { - "Ref": "UserPool" - }, - { - "Ref": "hostedUI" - } - ] - ] - }, - "Roles": [ - { - "Ref": "UserPoolClientRole" - } - ] - }, - "DependsOn": [ - "HostedUICustomResource" - ] - }, - "HostedUICustomResourceLogPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "logs:CreateLogGroup", - "logs:CreateLogStream", - "logs:PutLogEvents" - ], - "Resource": { - "Fn::Sub": [ - "arn:aws:logs:${region}:${account}:log-group:/aws/lambda/${lambda}:log-stream:*", - { - "region": { - "Ref": "AWS::Region" - }, - "account": { - "Ref": "AWS::AccountId" - }, - "lambda": { - "Ref": "HostedUICustomResource" - } - } - ] - } - } - ] - }, - "PolicyName": { - "Fn::Join": [ - "-", - [ - { - "Ref": "UserPool" - }, - "hostedUILogPolicy" - ] - ] - }, - "Roles": [ - { - "Ref": "UserPoolClientRole" - } - ] - }, - "DependsOn": [ - "HostedUICustomResourcePolicy" - ] - }, - "HostedUICustomResourceInputs": { - "Type": "Custom::LambdaCallout", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "HostedUICustomResource", - "Arn" - ] - }, - "hostedUIDomainName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "hostedUIDomainName" - }, - { - "Fn::Join": [ - "-", - [ - { - "Ref": "hostedUIDomainName" - }, - { - "Ref": "env" - } - ] - ] - } - ] - }, - "userPoolId": { - "Ref": "UserPool" - } - }, - "DependsOn": [ - "HostedUICustomResourceLogPolicy" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete" - }, - "HostedUIProvidersCustomResource": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "ZipFile": "const response = require('cfn-response');\nconst {\n CognitoIdentityProviderClient,\n CreateIdentityProviderCommand,\n DeleteIdentityProviderCommand,\n ListIdentityProvidersCommand,\n UpdateIdentityProviderCommand,\n} = require('@aws-sdk/client-cognito-identity-provider');\nconst identity = new CognitoIdentityProviderClient({});\n\nexports.handler = (event, context) => {\n // Don't return promise, response.send() marks context as done internally\n void tryHandleEvent(event, context);\n};\n\nasync function tryHandleEvent(event, context) {\n try {\n await handleEvent(event);\n response.send(event, context, response.SUCCESS, {});\n } catch (err) {\n console.log(err.stack);\n response.send(event, context, response.FAILED, { err });\n }\n}\n\nasync function handleEvent(event) {\n const userPoolId = event.ResourceProperties.userPoolId;\n const hostedUIProviderMeta = JSON.parse(event.ResourceProperties.hostedUIProviderMeta);\n const hostedUIProviderCreds = JSON.parse(event.ResourceProperties.hostedUIProviderCreds);\n const hasHostedUIProviderCreds = hostedUIProviderCreds.length && hostedUIProviderCreds.length > 0;\n if (hasHostedUIProviderCreds && (event.RequestType === 'Update' || event.RequestType === 'Create')) {\n const listIdentityProvidersResponse = await identity.send(\n new ListIdentityProvidersCommand({\n UserPoolId: userPoolId,\n MaxResults: 60,\n }),\n );\n console.log(listIdentityProvidersResponse);\n const providerList = listIdentityProvidersResponse.Providers.map((provider) => provider.ProviderName);\n const providerListInParameters = hostedUIProviderMeta.map((provider) => provider.ProviderName);\n for (const providerMetadata of hostedUIProviderMeta) {\n if (providerList.indexOf(providerMetadata.ProviderName) > -1) {\n await updateIdentityProvider(providerMetadata.ProviderName, hostedUIProviderMeta, hostedUIProviderCreds, userPoolId);\n } else {\n await createIdentityProvider(providerMetadata.ProviderName, hostedUIProviderMeta, hostedUIProviderCreds, userPoolId);\n }\n }\n for (const provider of providerList) {\n if (providerListInParameters.indexOf(provider) < 0) {\n await deleteIdentityProvider(provider, userPoolId);\n }\n }\n }\n}\n\nfunction getRequestParams(providerName, hostedUIProviderMeta, hostedUIProviderCreds, userPoolId) {\n const providerMeta = hostedUIProviderMeta.find((provider) => provider.ProviderName === providerName);\n const providerCreds = hostedUIProviderCreds.find((provider) => provider.ProviderName === providerName);\n let requestParams = {\n ProviderName: providerMeta.ProviderName,\n UserPoolId: userPoolId,\n AttributeMapping: providerMeta.AttributeMapping,\n };\n if (providerMeta.ProviderName === 'SignInWithApple') {\n if (providerCreds.client_id && providerCreds.team_id && providerCreds.key_id && providerCreds.private_key) {\n requestParams.ProviderDetails = {\n client_id: providerCreds.client_id,\n team_id: providerCreds.team_id,\n key_id: providerCreds.key_id,\n private_key: providerCreds.private_key,\n authorize_scopes: providerMeta.authorize_scopes,\n };\n } else {\n requestParams = null;\n }\n } else {\n if (providerCreds.client_id && providerCreds.client_secret) {\n requestParams.ProviderDetails = {\n client_id: providerCreds.client_id,\n client_secret: providerCreds.client_secret,\n authorize_scopes: providerMeta.authorize_scopes,\n };\n } else {\n requestParams = null;\n }\n }\n return requestParams;\n}\n\nasync function createIdentityProvider(providerName, hostedUIProviderMeta, hostedUIProviderCreds, userPoolId) {\n const requestParams = getRequestParams(providerName, hostedUIProviderMeta, hostedUIProviderCreds, userPoolId);\n if (!requestParams) {\n return;\n }\n requestParams.ProviderType = requestParams.ProviderName;\n await identity.send(new CreateIdentityProviderCommand(requestParams));\n}\n\nasync function updateIdentityProvider(providerName, hostedUIProviderMeta, hostedUIProviderCreds, userPoolId) {\n const requestParams = getRequestParams(providerName, hostedUIProviderMeta, hostedUIProviderCreds, userPoolId);\n if (!requestParams) {\n return;\n }\n await identity.send(new UpdateIdentityProviderCommand(requestParams));\n}\n\nasync function deleteIdentityProvider(providerName, userPoolId) {\n const params = { ProviderName: providerName, UserPoolId: userPoolId };\n await identity.send(new DeleteIdentityProviderCommand(params));\n}\n" - }, - "Handler": "index.handler", - "Role": { - "Fn::GetAtt": [ - "UserPoolClientRole", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Timeout": 300 - }, - "DependsOn": [ - "UserPoolClientRole" - ] - }, - "HostedUIProvidersCustomResourcePolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "cognito-idp:CreateIdentityProvider", - "cognito-idp:UpdateIdentityProvider", - "cognito-idp:ListIdentityProviders", - "cognito-idp:DeleteIdentityProvider" - ], - "Resource": { - "Fn::GetAtt": [ - "UserPool", - "Arn" - ] - } - }, - { - "Effect": "Allow", - "Action": [ - "cognito-idp:DescribeUserPoolDomain" - ], - "Resource": "*" - } - ] - }, - "PolicyName": { - "Fn::Join": [ - "-", - [ - { - "Ref": "UserPool" - }, - "hostedUIProvider" - ] - ] - }, - "Roles": [ - { - "Ref": "UserPoolClientRole" - } - ] - }, - "DependsOn": [ - "HostedUIProvidersCustomResource" - ] - }, - "HostedUIProvidersCustomResourceLogPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "logs:CreateLogGroup", - "logs:CreateLogStream", - "logs:PutLogEvents" - ], - "Resource": { - "Fn::Sub": [ - "arn:aws:logs:${region}:${account}:log-group:/aws/lambda/${lambda}:log-stream:*", - { - "region": { - "Ref": "AWS::Region" - }, - "account": { - "Ref": "AWS::AccountId" - }, - "lambda": { - "Ref": "HostedUIProvidersCustomResource" - } - } - ] - } - } - ] - }, - "PolicyName": { - "Fn::Join": [ - "-", - [ - { - "Ref": "UserPool" - }, - "hostedUIProviderLogPolicy" - ] - ] - }, - "Roles": [ - { - "Ref": "UserPoolClientRole" - } - ] - }, - "DependsOn": [ - "HostedUIProvidersCustomResourcePolicy" - ] - }, - "HostedUIProvidersCustomResourceInputs": { - "Type": "Custom::LambdaCallout", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "HostedUIProvidersCustomResource", - "Arn" - ] - }, - "hostedUIProviderMeta": { - "Ref": "hostedUIProviderMeta" - }, - "hostedUIProviderCreds": { - "Ref": "hostedUIProviderCreds" - }, - "userPoolId": { - "Ref": "UserPool" - } - }, - "DependsOn": [ - "HostedUIProvidersCustomResourceLogPolicy" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete" - }, - "IdentityPool": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": { - "Ref": "allowUnauthenticatedIdentities" - }, - "CognitoIdentityProviders": [ - { - "ClientId": { - "Ref": "UserPoolClient" - }, - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": { - "Ref": "UserPool" - } - } - ] - } - }, - { - "ClientId": { - "Ref": "UserPoolClientWeb" - }, - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": { - "Ref": "UserPool" - } - } - ] - } - } - ], - "IdentityPoolName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "mediavault1f08412d_identitypool_1f08412d", - { - "Fn::Join": [ - "", - [ - "mediavault1f08412d_identitypool_1f08412d__", - { - "Ref": "env" - } - ] - ] - } - ] - } - } - }, - "IdentityPoolRoleMap": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": { - "Ref": "IdentityPool" - }, - "RoleMappings": { - "UserPoolClientRoleMapping": { - "AmbiguousRoleResolution": "AuthenticatedRole", - "IdentityProvider": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${userPool}:${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "userPool": { - "Ref": "UserPool" - }, - "client": { - "Ref": "UserPoolClient" - } - } - ] - }, - "Type": "Token" - }, - "UserPoolWebClientRoleMapping": { - "AmbiguousRoleResolution": "AuthenticatedRole", - "IdentityProvider": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${userPool}:${webClient}", - { - "region": { - "Ref": "AWS::Region" - }, - "userPool": { - "Ref": "UserPool" - }, - "webClient": { - "Ref": "UserPoolClientWeb" - } - } - ] - }, - "Type": "Token" - } - }, - "Roles": { - "unauthenticated": { - "Ref": "unauthRoleArn" - }, - "authenticated": { - "Ref": "authRoleArn" - } - } - }, - "DependsOn": [ - "IdentityPool", - "UserPoolClient", - "UserPoolClientWeb" - ] - } - }, - "Outputs": { - "IdentityPoolId": { - "Description": "Id for the identity pool", - "Value": { - "Ref": "IdentityPool" - } - }, - "IdentityPoolName": { - "Value": { - "Fn::GetAtt": [ - "IdentityPool", - "Name" - ] - } - }, - "HostedUIDomain": { - "Value": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "hostedUIDomainName" - }, - { - "Fn::Join": [ - "-", - [ - { - "Ref": "hostedUIDomainName" - }, - { - "Ref": "env" - } - ] - ] - } - ] - } - }, - "OAuthMetadata": { - "Value": { - "Ref": "oAuthMetadata" - } - }, - "UserPoolId": { - "Description": "Id for the user pool", - "Value": { - "Ref": "UserPool" - } - }, - "UserPoolArn": { - "Description": "Arn for the user pool", - "Value": { - "Fn::GetAtt": [ - "UserPool", - "Arn" - ] - } - }, - "UserPoolName": { - "Value": { - "Ref": "userPoolName" - } - }, - "AppClientIDWeb": { - "Description": "The user pool app client id for web", - "Value": { - "Ref": "UserPoolClientWeb" - } - }, - "AppClientID": { - "Description": "The user pool app client id", - "Value": { - "Ref": "UserPoolClient" - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-authuserPoolGroups-CEW6WP7XSVTP.description.txt b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-authuserPoolGroups-CEW6WP7XSVTP.description.txt deleted file mode 100644 index aa91c019d71..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-authuserPoolGroups-CEW6WP7XSVTP.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"auth-Cognito-UserPool-Groups","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-authuserPoolGroups-CEW6WP7XSVTP.outputs.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-authuserPoolGroups-CEW6WP7XSVTP.outputs.json deleted file mode 100644 index cebd7fb48ac..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-authuserPoolGroups-CEW6WP7XSVTP.outputs.json +++ /dev/null @@ -1,10 +0,0 @@ -[ - { - "OutputKey": "BasicGroupRole", - "OutputValue": "arn:aws:iam::123456789012:role/us-east-1_gekM9OHb7-BasicGroupRole" - }, - { - "OutputKey": "AdminGroupRole", - "OutputValue": "arn:aws:iam::123456789012:role/us-east-1_gekM9OHb7-AdminGroupRole" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-authuserPoolGroups-CEW6WP7XSVTP.parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-authuserPoolGroups-CEW6WP7XSVTP.parameters.json deleted file mode 100644 index a6e77df36fd..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-authuserPoolGroups-CEW6WP7XSVTP.parameters.json +++ /dev/null @@ -1,30 +0,0 @@ -[ - { - "ParameterKey": "UnauthRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-mediavault-main-61114-unauthRole" - }, - { - "ParameterKey": "authmediavault1f08412dIdentityPoolId", - "ParameterValue": "us-east-1:f09a0373-df13-49a1-a865-247f1908a6a1" - }, - { - "ParameterKey": "authmediavault1f08412dAppClientID", - "ParameterValue": "74dj0ooish8us4g47hk169p8jq" - }, - { - "ParameterKey": "AuthRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-mediavault-main-61114-authRole" - }, - { - "ParameterKey": "authmediavault1f08412dUserPoolId", - "ParameterValue": "us-east-1_gekM9OHb7" - }, - { - "ParameterKey": "authmediavault1f08412dAppClientIDWeb", - "ParameterValue": "1hq2dgt1ct4f6b812o4ell2b4u" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-authuserPoolGroups-CEW6WP7XSVTP.template.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-authuserPoolGroups-CEW6WP7XSVTP.template.json deleted file mode 100644 index d045357747b..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-authuserPoolGroups-CEW6WP7XSVTP.template.json +++ /dev/null @@ -1,173 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito-UserPool-Groups\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "env": { - "Type": "String" - }, - "AuthRoleArn": { - "Type": "String" - }, - "UnauthRoleArn": { - "Type": "String" - }, - "authmediavault1f08412dUserPoolId": { - "Type": "String", - "Default": "authmediavault1f08412dUserPoolId" - }, - "authmediavault1f08412dIdentityPoolId": { - "Type": "String", - "Default": "authmediavault1f08412dIdentityPoolId" - }, - "authmediavault1f08412dAppClientID": { - "Type": "String", - "Default": "authmediavault1f08412dAppClientID" - }, - "authmediavault1f08412dAppClientIDWeb": { - "Type": "String", - "Default": "authmediavault1f08412dAppClientIDWeb" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - }, - "Resources": { - "AdminGroup": { - "Type": "AWS::Cognito::UserPoolGroup", - "Properties": { - "Description": "override success", - "GroupName": "Admin", - "Precedence": 1, - "RoleArn": { - "Fn::GetAtt": [ - "AdminGroupRole", - "Arn" - ] - }, - "UserPoolId": { - "Ref": "authmediavault1f08412dUserPoolId" - } - } - }, - "AdminGroupRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Sid": "", - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - }, - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": { - "Ref": "authmediavault1f08412dIdentityPoolId" - } - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "authenticated" - } - } - } - ] - }, - "RoleName": { - "Fn::Join": [ - "", - [ - { - "Ref": "authmediavault1f08412dUserPoolId" - }, - "-AdminGroupRole" - ] - ] - } - } - }, - "BasicGroup": { - "Type": "AWS::Cognito::UserPoolGroup", - "Properties": { - "Description": "override success", - "GroupName": "Basic", - "Precedence": 2, - "RoleArn": { - "Fn::GetAtt": [ - "BasicGroupRole", - "Arn" - ] - }, - "UserPoolId": { - "Ref": "authmediavault1f08412dUserPoolId" - } - } - }, - "BasicGroupRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Sid": "", - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - }, - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": { - "Ref": "authmediavault1f08412dIdentityPoolId" - } - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "authenticated" - } - } - } - ] - }, - "RoleName": { - "Fn::Join": [ - "", - [ - { - "Ref": "authmediavault1f08412dUserPoolId" - }, - "-BasicGroupRole" - ] - ] - } - } - } - }, - "Outputs": { - "AdminGroupRole": { - "Value": { - "Fn::GetAtt": [ - "AdminGroupRole", - "Arn" - ] - } - }, - "BasicGroupRole": { - "Value": { - "Fn::GetAtt": [ - "BasicGroupRole", - "Arn" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-functionaddusertogroup-1DFW0FRN74694.description.txt b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-functionaddusertogroup-1DFW0FRN74694.description.txt deleted file mode 100644 index 445081e4df1..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-functionaddusertogroup-1DFW0FRN74694.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"function-Lambda","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-functionaddusertogroup-1DFW0FRN74694.outputs.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-functionaddusertogroup-1DFW0FRN74694.outputs.json deleted file mode 100644 index a39a5871b64..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-functionaddusertogroup-1DFW0FRN74694.outputs.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "OutputKey": "LambdaExecutionRoleArn", - "OutputValue": "arn:aws:iam::123456789012:role/mediavaultLambdaRole7cc84196-main" - }, - { - "OutputKey": "Region", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "Arn", - "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:addusertogroup-main" - }, - { - "OutputKey": "Name", - "OutputValue": "addusertogroup-main" - }, - { - "OutputKey": "LambdaExecutionRole", - "OutputValue": "mediavaultLambdaRole7cc84196-main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-functionaddusertogroup-1DFW0FRN74694.parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-functionaddusertogroup-1DFW0FRN74694.parameters.json deleted file mode 100644 index 5644097b192..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-functionaddusertogroup-1DFW0FRN74694.parameters.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "ParameterKey": "CloudWatchRule", - "ParameterValue": "NONE" - }, - { - "ParameterKey": "s3Key", - "ParameterValue": "amplify-builds/addusertogroup-75335545303076734834-build.zip" - }, - { - "ParameterKey": "deploymentBucketName", - "ParameterValue": "amplify-mediavault-main-61114-deployment" - }, - { - "ParameterKey": "authmediavault1f08412dUserPoolId", - "ParameterValue": "us-east-1_gekM9OHb7" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-functionaddusertogroup-1DFW0FRN74694.template.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-functionaddusertogroup-1DFW0FRN74694.template.json deleted file mode 100644 index 8ab3b9d193f..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-functionaddusertogroup-1DFW0FRN74694.template.json +++ /dev/null @@ -1,335 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "Parameters": { - "CloudWatchRule": { - "Type": "String", - "Default": "NONE", - "Description": " Schedule Expression" - }, - "deploymentBucketName": { - "Type": "String" - }, - "env": { - "Type": "String" - }, - "s3Key": { - "Type": "String" - }, - "authmediavault1f08412dUserPoolId": { - "Type": "String", - "Default": "authmediavault1f08412dUserPoolId" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - }, - "Resources": { - "LambdaFunction": { - "Type": "AWS::Lambda::Function", - "Metadata": { - "aws:asset:path": "./src", - "aws:asset:property": "Code" - }, - "Properties": { - "Code": { - "S3Bucket": { - "Ref": "deploymentBucketName" - }, - "S3Key": { - "Ref": "s3Key" - } - }, - "Handler": "index.handler", - "FunctionName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "addusertogroup", - { - "Fn::Join": [ - "", - [ - "addusertogroup", - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "Environment": { - "Variables": { - "ENV": { - "Ref": "env" - }, - "REGION": { - "Ref": "AWS::Region" - }, - "AUTH_MEDIAVAULT1F08412D_USERPOOLID": { - "Ref": "authmediavault1f08412dUserPoolId" - } - } - }, - "Role": { - "Fn::GetAtt": [ - "LambdaExecutionRole", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Layers": [], - "Timeout": 25 - } - }, - "LambdaExecutionRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "RoleName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "mediavaultLambdaRole7cc84196", - { - "Fn::Join": [ - "", - [ - "mediavaultLambdaRole7cc84196", - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": [ - "lambda.amazonaws.com" - ] - }, - "Action": [ - "sts:AssumeRole" - ] - } - ] - } - } - }, - "lambdaexecutionpolicy": { - "DependsOn": [ - "LambdaExecutionRole" - ], - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyName": "lambda-execution-policy", - "Roles": [ - { - "Ref": "LambdaExecutionRole" - } - ], - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "logs:CreateLogGroup", - "logs:CreateLogStream", - "logs:PutLogEvents" - ], - "Resource": { - "Fn::Sub": [ - "arn:aws:logs:${region}:${account}:log-group:/aws/lambda/${lambda}:log-stream:*", - { - "region": { - "Ref": "AWS::Region" - }, - "account": { - "Ref": "AWS::AccountId" - }, - "lambda": { - "Ref": "LambdaFunction" - } - } - ] - } - } - ] - } - } - }, - "AmplifyResourcesPolicy": { - "DependsOn": [ - "LambdaExecutionRole" - ], - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyName": "amplify-lambda-execution-policy", - "Roles": [ - { - "Ref": "LambdaExecutionRole" - } - ], - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "cognito-idp:ConfirmSignUp", - "cognito-idp:AdminCreateUser", - "cognito-idp:CreateUserImportJob", - "cognito-idp:AdminSetUserSettings", - "cognito-idp:AdminLinkProviderForUser", - "cognito-idp:CreateIdentityProvider", - "cognito-idp:AdminConfirmSignUp", - "cognito-idp:AdminDisableUser", - "cognito-idp:AdminRemoveUserFromGroup", - "cognito-idp:SetUserMFAPreference", - "cognito-idp:SetUICustomization", - "cognito-idp:SignUp", - "cognito-idp:VerifyUserAttribute", - "cognito-idp:SetRiskConfiguration", - "cognito-idp:StartUserImportJob", - "cognito-idp:AdminSetUserPassword", - "cognito-idp:AssociateSoftwareToken", - "cognito-idp:CreateResourceServer", - "cognito-idp:RespondToAuthChallenge", - "cognito-idp:CreateUserPoolClient", - "cognito-idp:AdminUserGlobalSignOut", - "cognito-idp:GlobalSignOut", - "cognito-idp:AddCustomAttributes", - "cognito-idp:CreateGroup", - "cognito-idp:CreateUserPool", - "cognito-idp:AdminForgetDevice", - "cognito-idp:AdminAddUserToGroup", - "cognito-idp:AdminRespondToAuthChallenge", - "cognito-idp:ForgetDevice", - "cognito-idp:CreateUserPoolDomain", - "cognito-idp:AdminEnableUser", - "cognito-idp:AdminUpdateDeviceStatus", - "cognito-idp:StopUserImportJob", - "cognito-idp:InitiateAuth", - "cognito-idp:AdminInitiateAuth", - "cognito-idp:AdminSetUserMFAPreference", - "cognito-idp:ConfirmForgotPassword", - "cognito-idp:SetUserSettings", - "cognito-idp:VerifySoftwareToken", - "cognito-idp:AdminDisableProviderForUser", - "cognito-idp:SetUserPoolMfaConfig", - "cognito-idp:ChangePassword", - "cognito-idp:ConfirmDevice", - "cognito-idp:AdminResetUserPassword", - "cognito-idp:ResendConfirmationCode", - "cognito-identity:Describe*", - "cognito-identity:Get*", - "cognito-identity:List*", - "cognito-idp:Describe*", - "cognito-idp:AdminGetDevice", - "cognito-idp:AdminGetUser", - "cognito-idp:AdminList*", - "cognito-idp:List*", - "cognito-sync:Describe*", - "cognito-sync:Get*", - "cognito-sync:List*", - "iam:ListOpenIdConnectProviders", - "iam:ListRoles", - "sns:ListPlatformApplications", - "cognito-idp:ForgotPassword", - "cognito-idp:UpdateAuthEventFeedback", - "cognito-idp:UpdateResourceServer", - "cognito-idp:UpdateUserPoolClient", - "cognito-idp:AdminUpdateUserAttributes", - "cognito-idp:UpdateUserAttributes", - "cognito-idp:UpdateUserPoolDomain", - "cognito-idp:UpdateIdentityProvider", - "cognito-idp:UpdateGroup", - "cognito-idp:AdminUpdateAuthEventFeedback", - "cognito-idp:UpdateDeviceStatus", - "cognito-idp:UpdateUserPool", - "cognito-idp:DeleteUserPoolDomain", - "cognito-idp:DeleteResourceServer", - "cognito-idp:DeleteGroup", - "cognito-idp:AdminDeleteUserAttributes", - "cognito-idp:DeleteUserPoolClient", - "cognito-idp:DeleteUserAttributes", - "cognito-idp:DeleteUserPool", - "cognito-idp:AdminDeleteUser", - "cognito-idp:DeleteIdentityProvider", - "cognito-idp:DeleteUser" - ], - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:cognito-idp:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":userpool/", - { - "Ref": "authmediavault1f08412dUserPoolId" - } - ] - ] - } - ] - } - ] - } - } - } - }, - "Outputs": { - "Name": { - "Value": { - "Ref": "LambdaFunction" - } - }, - "Arn": { - "Value": { - "Fn::GetAtt": [ - "LambdaFunction", - "Arn" - ] - } - }, - "Region": { - "Value": { - "Ref": "AWS::Region" - } - }, - "LambdaExecutionRole": { - "Value": { - "Ref": "LambdaExecutionRole" - } - }, - "LambdaExecutionRoleArn": { - "Value": { - "Fn::GetAtt": [ - "LambdaExecutionRole", - "Arn" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-functionremoveuserfromgroup-CVP3F8QLNESB.description.txt b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-functionremoveuserfromgroup-CVP3F8QLNESB.description.txt deleted file mode 100644 index 445081e4df1..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-functionremoveuserfromgroup-CVP3F8QLNESB.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"function-Lambda","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-functionremoveuserfromgroup-CVP3F8QLNESB.outputs.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-functionremoveuserfromgroup-CVP3F8QLNESB.outputs.json deleted file mode 100644 index 47aa2593399..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-functionremoveuserfromgroup-CVP3F8QLNESB.outputs.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "OutputKey": "LambdaExecutionRoleArn", - "OutputValue": "arn:aws:iam::123456789012:role/mediavaultLambdaRoleeab71492-main" - }, - { - "OutputKey": "Region", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "Arn", - "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:removeuserfromgroup-main" - }, - { - "OutputKey": "Name", - "OutputValue": "removeuserfromgroup-main" - }, - { - "OutputKey": "LambdaExecutionRole", - "OutputValue": "mediavaultLambdaRoleeab71492-main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-functionremoveuserfromgroup-CVP3F8QLNESB.parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-functionremoveuserfromgroup-CVP3F8QLNESB.parameters.json deleted file mode 100644 index 9d59616ebea..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-functionremoveuserfromgroup-CVP3F8QLNESB.parameters.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "ParameterKey": "CloudWatchRule", - "ParameterValue": "NONE" - }, - { - "ParameterKey": "s3Key", - "ParameterValue": "amplify-builds/removeuserfromgroup-7a4c47616747764e436c-build.zip" - }, - { - "ParameterKey": "deploymentBucketName", - "ParameterValue": "amplify-mediavault-main-61114-deployment" - }, - { - "ParameterKey": "authmediavault1f08412dUserPoolId", - "ParameterValue": "us-east-1_gekM9OHb7" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-functionremoveuserfromgroup-CVP3F8QLNESB.template.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-functionremoveuserfromgroup-CVP3F8QLNESB.template.json deleted file mode 100644 index 13cd802aa70..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-functionremoveuserfromgroup-CVP3F8QLNESB.template.json +++ /dev/null @@ -1,335 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "Parameters": { - "CloudWatchRule": { - "Type": "String", - "Default": "NONE", - "Description": " Schedule Expression" - }, - "deploymentBucketName": { - "Type": "String" - }, - "env": { - "Type": "String" - }, - "s3Key": { - "Type": "String" - }, - "authmediavault1f08412dUserPoolId": { - "Type": "String", - "Default": "authmediavault1f08412dUserPoolId" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - }, - "Resources": { - "LambdaFunction": { - "Type": "AWS::Lambda::Function", - "Metadata": { - "aws:asset:path": "./src", - "aws:asset:property": "Code" - }, - "Properties": { - "Code": { - "S3Bucket": { - "Ref": "deploymentBucketName" - }, - "S3Key": { - "Ref": "s3Key" - } - }, - "Handler": "index.handler", - "FunctionName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "removeuserfromgroup", - { - "Fn::Join": [ - "", - [ - "removeuserfromgroup", - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "Environment": { - "Variables": { - "ENV": { - "Ref": "env" - }, - "REGION": { - "Ref": "AWS::Region" - }, - "AUTH_MEDIAVAULT1F08412D_USERPOOLID": { - "Ref": "authmediavault1f08412dUserPoolId" - } - } - }, - "Role": { - "Fn::GetAtt": [ - "LambdaExecutionRole", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Layers": [], - "Timeout": 25 - } - }, - "LambdaExecutionRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "RoleName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "mediavaultLambdaRoleeab71492", - { - "Fn::Join": [ - "", - [ - "mediavaultLambdaRoleeab71492", - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": [ - "lambda.amazonaws.com" - ] - }, - "Action": [ - "sts:AssumeRole" - ] - } - ] - } - } - }, - "lambdaexecutionpolicy": { - "DependsOn": [ - "LambdaExecutionRole" - ], - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyName": "lambda-execution-policy", - "Roles": [ - { - "Ref": "LambdaExecutionRole" - } - ], - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "logs:CreateLogGroup", - "logs:CreateLogStream", - "logs:PutLogEvents" - ], - "Resource": { - "Fn::Sub": [ - "arn:aws:logs:${region}:${account}:log-group:/aws/lambda/${lambda}:log-stream:*", - { - "region": { - "Ref": "AWS::Region" - }, - "account": { - "Ref": "AWS::AccountId" - }, - "lambda": { - "Ref": "LambdaFunction" - } - } - ] - } - } - ] - } - } - }, - "AmplifyResourcesPolicy": { - "DependsOn": [ - "LambdaExecutionRole" - ], - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyName": "amplify-lambda-execution-policy", - "Roles": [ - { - "Ref": "LambdaExecutionRole" - } - ], - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "cognito-idp:ConfirmSignUp", - "cognito-idp:AdminCreateUser", - "cognito-idp:CreateUserImportJob", - "cognito-idp:AdminSetUserSettings", - "cognito-idp:AdminLinkProviderForUser", - "cognito-idp:CreateIdentityProvider", - "cognito-idp:AdminConfirmSignUp", - "cognito-idp:AdminDisableUser", - "cognito-idp:AdminRemoveUserFromGroup", - "cognito-idp:SetUserMFAPreference", - "cognito-idp:SetUICustomization", - "cognito-idp:SignUp", - "cognito-idp:VerifyUserAttribute", - "cognito-idp:SetRiskConfiguration", - "cognito-idp:StartUserImportJob", - "cognito-idp:AdminSetUserPassword", - "cognito-idp:AssociateSoftwareToken", - "cognito-idp:CreateResourceServer", - "cognito-idp:RespondToAuthChallenge", - "cognito-idp:CreateUserPoolClient", - "cognito-idp:AdminUserGlobalSignOut", - "cognito-idp:GlobalSignOut", - "cognito-idp:AddCustomAttributes", - "cognito-idp:CreateGroup", - "cognito-idp:CreateUserPool", - "cognito-idp:AdminForgetDevice", - "cognito-idp:AdminAddUserToGroup", - "cognito-idp:AdminRespondToAuthChallenge", - "cognito-idp:ForgetDevice", - "cognito-idp:CreateUserPoolDomain", - "cognito-idp:AdminEnableUser", - "cognito-idp:AdminUpdateDeviceStatus", - "cognito-idp:StopUserImportJob", - "cognito-idp:InitiateAuth", - "cognito-idp:AdminInitiateAuth", - "cognito-idp:AdminSetUserMFAPreference", - "cognito-idp:ConfirmForgotPassword", - "cognito-idp:SetUserSettings", - "cognito-idp:VerifySoftwareToken", - "cognito-idp:AdminDisableProviderForUser", - "cognito-idp:SetUserPoolMfaConfig", - "cognito-idp:ChangePassword", - "cognito-idp:ConfirmDevice", - "cognito-idp:AdminResetUserPassword", - "cognito-idp:ResendConfirmationCode", - "cognito-identity:Describe*", - "cognito-identity:Get*", - "cognito-identity:List*", - "cognito-idp:Describe*", - "cognito-idp:AdminGetDevice", - "cognito-idp:AdminGetUser", - "cognito-idp:AdminList*", - "cognito-idp:List*", - "cognito-sync:Describe*", - "cognito-sync:Get*", - "cognito-sync:List*", - "iam:ListOpenIdConnectProviders", - "iam:ListRoles", - "sns:ListPlatformApplications", - "cognito-idp:ForgotPassword", - "cognito-idp:UpdateAuthEventFeedback", - "cognito-idp:UpdateResourceServer", - "cognito-idp:UpdateUserPoolClient", - "cognito-idp:AdminUpdateUserAttributes", - "cognito-idp:UpdateUserAttributes", - "cognito-idp:UpdateUserPoolDomain", - "cognito-idp:UpdateIdentityProvider", - "cognito-idp:UpdateGroup", - "cognito-idp:AdminUpdateAuthEventFeedback", - "cognito-idp:UpdateDeviceStatus", - "cognito-idp:UpdateUserPool", - "cognito-idp:DeleteUserPoolDomain", - "cognito-idp:DeleteResourceServer", - "cognito-idp:DeleteGroup", - "cognito-idp:AdminDeleteUserAttributes", - "cognito-idp:DeleteUserPoolClient", - "cognito-idp:DeleteUserAttributes", - "cognito-idp:DeleteUserPool", - "cognito-idp:AdminDeleteUser", - "cognito-idp:DeleteIdentityProvider", - "cognito-idp:DeleteUser" - ], - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:cognito-idp:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":userpool/", - { - "Ref": "authmediavault1f08412dUserPoolId" - } - ] - ] - } - ] - } - ] - } - } - } - }, - "Outputs": { - "Name": { - "Value": { - "Ref": "LambdaFunction" - } - }, - "Arn": { - "Value": { - "Fn::GetAtt": [ - "LambdaFunction", - "Arn" - ] - } - }, - "Region": { - "Value": { - "Ref": "AWS::Region" - } - }, - "LambdaExecutionRole": { - "Value": { - "Ref": "LambdaExecutionRole" - } - }, - "LambdaExecutionRoleArn": { - "Value": { - "Fn::GetAtt": [ - "LambdaExecutionRole", - "Arn" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-functionthumbnailgen-NK8XQ01R3CJ9.description.txt b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-functionthumbnailgen-NK8XQ01R3CJ9.description.txt deleted file mode 100644 index 445081e4df1..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-functionthumbnailgen-NK8XQ01R3CJ9.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"function-Lambda","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-functionthumbnailgen-NK8XQ01R3CJ9.outputs.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-functionthumbnailgen-NK8XQ01R3CJ9.outputs.json deleted file mode 100644 index da6e3fed55b..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-functionthumbnailgen-NK8XQ01R3CJ9.outputs.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "OutputKey": "LambdaExecutionRoleArn", - "OutputValue": "arn:aws:iam::123456789012:role/mediavaultLambdaRolefe3fe5ce-main" - }, - { - "OutputKey": "Region", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "Arn", - "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:thumbnailgen-main" - }, - { - "OutputKey": "Name", - "OutputValue": "thumbnailgen-main" - }, - { - "OutputKey": "LambdaExecutionRole", - "OutputValue": "mediavaultLambdaRolefe3fe5ce-main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-functionthumbnailgen-NK8XQ01R3CJ9.parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-functionthumbnailgen-NK8XQ01R3CJ9.parameters.json deleted file mode 100644 index cc2ee15e206..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-functionthumbnailgen-NK8XQ01R3CJ9.parameters.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "ParameterKey": "CloudWatchRule", - "ParameterValue": "NONE" - }, - { - "ParameterKey": "storagemediavaultBucketName", - "ParameterValue": "mediavaultb574f210f1634e3a8d1934f263da5bed61114-main" - }, - { - "ParameterKey": "s3Key", - "ParameterValue": "amplify-builds/thumbnailgen-714677357a74314e2b59-build.zip" - }, - { - "ParameterKey": "deploymentBucketName", - "ParameterValue": "amplify-mediavault-main-61114-deployment" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-functionthumbnailgen-NK8XQ01R3CJ9.template.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-functionthumbnailgen-NK8XQ01R3CJ9.template.json deleted file mode 100644 index f4328f59487..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-functionthumbnailgen-NK8XQ01R3CJ9.template.json +++ /dev/null @@ -1,267 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "Parameters": { - "CloudWatchRule": { - "Type": "String", - "Default": "NONE", - "Description": " Schedule Expression" - }, - "deploymentBucketName": { - "Type": "String" - }, - "env": { - "Type": "String" - }, - "s3Key": { - "Type": "String" - }, - "storagemediavaultBucketName": { - "Type": "String", - "Default": "storagemediavaultBucketName" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - }, - "Resources": { - "LambdaFunction": { - "Type": "AWS::Lambda::Function", - "Metadata": { - "aws:asset:path": "./src", - "aws:asset:property": "Code" - }, - "Properties": { - "Code": { - "S3Bucket": { - "Ref": "deploymentBucketName" - }, - "S3Key": { - "Ref": "s3Key" - } - }, - "Handler": "index.handler", - "FunctionName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "thumbnailgen", - { - "Fn::Join": [ - "", - [ - "thumbnailgen", - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "Environment": { - "Variables": { - "ENV": { - "Ref": "env" - }, - "REGION": { - "Ref": "AWS::Region" - }, - "STORAGE_MEDIAVAULT_BUCKETNAME": { - "Ref": "storagemediavaultBucketName" - } - } - }, - "Role": { - "Fn::GetAtt": [ - "LambdaExecutionRole", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Layers": [], - "Timeout": 25 - } - }, - "LambdaExecutionRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "RoleName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "mediavaultLambdaRolefe3fe5ce", - { - "Fn::Join": [ - "", - [ - "mediavaultLambdaRolefe3fe5ce", - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": [ - "lambda.amazonaws.com" - ] - }, - "Action": [ - "sts:AssumeRole" - ] - } - ] - } - } - }, - "lambdaexecutionpolicy": { - "DependsOn": [ - "LambdaExecutionRole" - ], - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyName": "lambda-execution-policy", - "Roles": [ - { - "Ref": "LambdaExecutionRole" - } - ], - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "logs:CreateLogGroup", - "logs:CreateLogStream", - "logs:PutLogEvents" - ], - "Resource": { - "Fn::Sub": [ - "arn:aws:logs:${region}:${account}:log-group:/aws/lambda/${lambda}:log-stream:*", - { - "region": { - "Ref": "AWS::Region" - }, - "account": { - "Ref": "AWS::AccountId" - }, - "lambda": { - "Ref": "LambdaFunction" - } - } - ] - } - } - ] - } - } - }, - "AmplifyResourcesPolicy": { - "DependsOn": [ - "LambdaExecutionRole" - ], - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyName": "amplify-lambda-execution-policy", - "Roles": [ - { - "Ref": "LambdaExecutionRole" - } - ], - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": "s3:ListBucket", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "storagemediavaultBucketName" - } - ] - ] - } - ] - }, - { - "Effect": "Allow", - "Action": [ - "s3:PutObject", - "s3:GetObject", - "s3:DeleteObject" - ], - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "storagemediavaultBucketName" - }, - "/*" - ] - ] - } - ] - } - ] - } - } - } - }, - "Outputs": { - "Name": { - "Value": { - "Ref": "LambdaFunction" - } - }, - "Arn": { - "Value": { - "Fn::GetAtt": [ - "LambdaFunction", - "Arn" - ] - } - }, - "Region": { - "Value": { - "Ref": "AWS::Region" - } - }, - "LambdaExecutionRole": { - "Value": { - "Ref": "LambdaExecutionRole" - } - }, - "LambdaExecutionRoleArn": { - "Value": { - "Fn::GetAtt": [ - "LambdaExecutionRole", - "Arn" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-storagemediavault-S1PP9XH759GN.description.txt b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-storagemediavault-S1PP9XH759GN.description.txt deleted file mode 100644 index f0c7a6514ea..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-storagemediavault-S1PP9XH759GN.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"storage-S3","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-storagemediavault-S1PP9XH759GN.outputs.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-storagemediavault-S1PP9XH759GN.outputs.json deleted file mode 100644 index 710ab0559ce..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-storagemediavault-S1PP9XH759GN.outputs.json +++ /dev/null @@ -1,11 +0,0 @@ -[ - { - "OutputKey": "BucketName", - "OutputValue": "mediavaultb574f210f1634e3a8d1934f263da5bed61114-main", - "Description": "Bucket name for the S3 bucket" - }, - { - "OutputKey": "Region", - "OutputValue": "us-east-1" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-storagemediavault-S1PP9XH759GN.parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-storagemediavault-S1PP9XH759GN.parameters.json deleted file mode 100644 index fde4414e4bd..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-storagemediavault-S1PP9XH759GN.parameters.json +++ /dev/null @@ -1,98 +0,0 @@ -[ - { - "ParameterKey": "s3PermissionsGuestPublic", - "ParameterValue": "s3:GetObject" - }, - { - "ParameterKey": "bucketName", - "ParameterValue": "mediavaultb574f210f1634e3a8d1934f263da5bed" - }, - { - "ParameterKey": "s3PublicPolicy", - "ParameterValue": "Public_policy_d399ab0f" - }, - { - "ParameterKey": "AuthenticatedAllowList", - "ParameterValue": "ALLOW" - }, - { - "ParameterKey": "unauthRoleName", - "ParameterValue": "amplify-mediavault-main-61114-unauthRole" - }, - { - "ParameterKey": "s3PrivatePolicy", - "ParameterValue": "Private_policy_d399ab0f" - }, - { - "ParameterKey": "selectedGuestPermissions", - "ParameterValue": "s3:GetObject,s3:ListBucket" - }, - { - "ParameterKey": "s3PermissionsAuthenticatedPublic", - "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" - }, - { - "ParameterKey": "s3PermissionsAuthenticatedUploads", - "ParameterValue": "s3:PutObject" - }, - { - "ParameterKey": "s3PermissionsAuthenticatedPrivate", - "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" - }, - { - "ParameterKey": "s3UploadsPolicy", - "ParameterValue": "Uploads_policy_d399ab0f" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "authuserPoolGroupsAdminGroupRole", - "ParameterValue": "arn:aws:iam::123456789012:role/us-east-1_gekM9OHb7-AdminGroupRole" - }, - { - "ParameterKey": "unauthPolicyName", - "ParameterValue": "s3_amplify_d399ab0f" - }, - { - "ParameterKey": "authuserPoolGroupsBasicGroupRole", - "ParameterValue": "arn:aws:iam::123456789012:role/us-east-1_gekM9OHb7-BasicGroupRole" - }, - { - "ParameterKey": "authRoleName", - "ParameterValue": "amplify-mediavault-main-61114-authRole" - }, - { - "ParameterKey": "GuestAllowList", - "ParameterValue": "ALLOW" - }, - { - "ParameterKey": "authPolicyName", - "ParameterValue": "s3_amplify_d399ab0f" - }, - { - "ParameterKey": "authmediavault1f08412dUserPoolId", - "ParameterValue": "us-east-1_gekM9OHb7" - }, - { - "ParameterKey": "s3PermissionsAuthenticatedProtected", - "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" - }, - { - "ParameterKey": "s3PermissionsGuestUploads", - "ParameterValue": "DISALLOW" - }, - { - "ParameterKey": "s3ProtectedPolicy", - "ParameterValue": "Protected_policy_d399ab0f" - }, - { - "ParameterKey": "s3ReadPolicy", - "ParameterValue": "read_policy_d399ab0f" - }, - { - "ParameterKey": "selectedAuthenticatedPermissions", - "ParameterValue": "s3:PutObject,s3:GetObject,s3:ListBucket,s3:DeleteObject" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-storagemediavault-S1PP9XH759GN.template.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-storagemediavault-S1PP9XH759GN.template.json deleted file mode 100644 index a3b0f956240..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114-storagemediavault-S1PP9XH759GN.template.json +++ /dev/null @@ -1,776 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-S3\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "env": { - "Type": "String" - }, - "bucketName": { - "Type": "String" - }, - "authRoleName": { - "Type": "String" - }, - "unauthRoleName": { - "Type": "String" - }, - "authPolicyName": { - "Type": "String" - }, - "unauthPolicyName": { - "Type": "String" - }, - "s3PublicPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3PrivatePolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3ProtectedPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3UploadsPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3ReadPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3PermissionsAuthenticatedPublic": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedProtected": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedPrivate": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedUploads": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsGuestPublic": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsGuestUploads": { - "Type": "String", - "Default": "DISALLOW" - }, - "AuthenticatedAllowList": { - "Type": "String", - "Default": "DISALLOW" - }, - "GuestAllowList": { - "Type": "String", - "Default": "DISALLOW" - }, - "selectedGuestPermissions": { - "Type": "CommaDelimitedList", - "Default": "NONE" - }, - "selectedAuthenticatedPermissions": { - "Type": "CommaDelimitedList", - "Default": "NONE" - }, - "authmediavault1f08412dUserPoolId": { - "Type": "String", - "Default": "authmediavault1f08412dUserPoolId" - }, - "authuserPoolGroupsAdminGroupRole": { - "Type": "String", - "Default": "authuserPoolGroupsAdminGroupRole" - }, - "authuserPoolGroupsBasicGroupRole": { - "Type": "String", - "Default": "authuserPoolGroupsBasicGroupRole" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - }, - "CreateAuthPublic": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "s3PermissionsAuthenticatedPublic" - }, - "DISALLOW" - ] - } - ] - }, - "CreateAuthProtected": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "s3PermissionsAuthenticatedProtected" - }, - "DISALLOW" - ] - } - ] - }, - "CreateAuthPrivate": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "s3PermissionsAuthenticatedPrivate" - }, - "DISALLOW" - ] - } - ] - }, - "CreateAuthUploads": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "s3PermissionsAuthenticatedUploads" - }, - "DISALLOW" - ] - } - ] - }, - "CreateGuestPublic": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "s3PermissionsGuestPublic" - }, - "DISALLOW" - ] - } - ] - }, - "CreateGuestUploads": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "s3PermissionsGuestUploads" - }, - "DISALLOW" - ] - } - ] - }, - "AuthReadAndList": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "AuthenticatedAllowList" - }, - "DISALLOW" - ] - } - ] - }, - "GuestReadAndList": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "GuestAllowList" - }, - "DISALLOW" - ] - } - ] - } - }, - "Outputs": { - "BucketName": { - "Description": "Bucket name for the S3 bucket", - "Value": { - "Ref": "S3Bucket" - } - }, - "Region": { - "Value": { - "Ref": "AWS::Region" - } - } - }, - "Resources": { - "S3Bucket": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "bucketName" - }, - { - "Fn::Join": [ - "", - [ - { - "Ref": "bucketName" - }, - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - { - "Ref": "AWS::StackName" - } - ] - } - ] - }, - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "Id": "S3CORSRuleId1", - "MaxAge": 3000 - } - ] - }, - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - } - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain" - }, - "S3AuthPublicPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - { - "Ref": "s3PermissionsAuthenticatedPublic" - } - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, - "/public/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": { - "Ref": "s3PublicPolicy" - }, - "Roles": [ - { - "Ref": "authRoleName" - } - ] - }, - "DependsOn": [ - "S3Bucket" - ], - "Condition": "CreateAuthPublic" - }, - "S3AuthProtectedPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - { - "Ref": "s3PermissionsAuthenticatedProtected" - } - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, - "/protected/${cognito-identity.amazonaws.com:sub}/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": { - "Ref": "s3ProtectedPolicy" - }, - "Roles": [ - { - "Ref": "authRoleName" - } - ] - }, - "DependsOn": [ - "S3Bucket" - ], - "Condition": "CreateAuthProtected" - }, - "S3AuthPrivatePolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - { - "Ref": "s3PermissionsAuthenticatedPrivate" - } - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, - "/private/${cognito-identity.amazonaws.com:sub}/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": { - "Ref": "s3PrivatePolicy" - }, - "Roles": [ - { - "Ref": "authRoleName" - } - ] - }, - "DependsOn": [ - "S3Bucket" - ], - "Condition": "CreateAuthPrivate" - }, - "S3AuthUploadPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - { - "Ref": "s3PermissionsAuthenticatedUploads" - } - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, - "/uploads/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": { - "Ref": "s3UploadsPolicy" - }, - "Roles": [ - { - "Ref": "authRoleName" - } - ] - }, - "DependsOn": [ - "S3Bucket" - ], - "Condition": "CreateAuthUploads" - }, - "S3GuestPublicPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - { - "Ref": "s3PermissionsGuestPublic" - } - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, - "/public/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": { - "Ref": "s3PublicPolicy" - }, - "Roles": [ - { - "Ref": "unauthRoleName" - } - ] - }, - "DependsOn": [ - "S3Bucket" - ], - "Condition": "CreateGuestPublic" - }, - "S3AuthReadPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, - "/protected/*" - ] - ] - } - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/", - "public/*", - "protected/", - "protected/*", - "private/${cognito-identity.amazonaws.com:sub}/", - "private/${cognito-identity.amazonaws.com:sub}/*" - ] - } - }, - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - } - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": { - "Ref": "s3ReadPolicy" - }, - "Roles": [ - { - "Ref": "authRoleName" - } - ] - }, - "DependsOn": [ - "S3Bucket" - ], - "Condition": "AuthReadAndList" - }, - "S3GuestReadPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, - "/protected/*" - ] - ] - } - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/", - "public/*", - "protected/", - "protected/*" - ] - } - }, - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - } - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": { - "Ref": "s3ReadPolicy" - }, - "Roles": [ - { - "Ref": "unauthRoleName" - } - ] - }, - "DependsOn": [ - "S3Bucket" - ], - "Condition": "GuestReadAndList" - }, - "AdminGroupPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "s3:PutObject", - "s3:GetObject", - "s3:ListBucket", - "s3:DeleteObject" - ], - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, - "/*" - ] - ] - } - }, - { - "Action": "s3:ListBucket", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - } - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "Admin-group-s3-policy", - "Roles": [ - { - "Fn::Join": [ - "", - [ - { - "Ref": "authmediavault1f08412dUserPoolId" - }, - "-AdminGroupRole" - ] - ] - } - ] - } - }, - "BasicGroupPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "s3:GetObject", - "s3:ListBucket" - ], - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, - "/*" - ] - ] - } - }, - { - "Action": "s3:ListBucket", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - } - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "Basic-group-s3-policy", - "Roles": [ - { - "Fn::Join": [ - "", - [ - { - "Ref": "authmediavault1f08412dUserPoolId" - }, - "-BasicGroupRole" - ] - ] - } - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114.description.txt b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114.description.txt deleted file mode 100644 index daf66c0bc85..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114.description.txt +++ /dev/null @@ -1 +0,0 @@ -Root Stack for AWS Amplify CLI \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114.outputs.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114.outputs.json deleted file mode 100644 index 7e264aa8984..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114.outputs.json +++ /dev/null @@ -1,42 +0,0 @@ -[ - { - "OutputKey": "AuthRoleName", - "OutputValue": "amplify-mediavault-main-61114-authRole" - }, - { - "OutputKey": "UnauthRoleArn", - "OutputValue": "arn:aws:iam::123456789012:role/amplify-mediavault-main-61114-unauthRole" - }, - { - "OutputKey": "AuthRoleArn", - "OutputValue": "arn:aws:iam::123456789012:role/amplify-mediavault-main-61114-authRole" - }, - { - "OutputKey": "Region", - "OutputValue": "us-east-1", - "Description": "CloudFormation provider root stack Region", - "ExportName": "amplify-mediavault-main-61114-Region" - }, - { - "OutputKey": "DeploymentBucketName", - "OutputValue": "amplify-mediavault-main-61114-deployment", - "Description": "CloudFormation provider root stack deployment bucket name", - "ExportName": "amplify-mediavault-main-61114-DeploymentBucketName" - }, - { - "OutputKey": "UnauthRoleName", - "OutputValue": "amplify-mediavault-main-61114-unauthRole" - }, - { - "OutputKey": "StackName", - "OutputValue": "amplify-mediavault-main-61114", - "Description": "CloudFormation provider root stack ID", - "ExportName": "amplify-mediavault-main-61114-StackName" - }, - { - "OutputKey": "StackId", - "OutputValue": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-mediavault-main-61114/fdd16cb0-1afb-11f1-aa46-12a754d266f9", - "Description": "CloudFormation provider root stack name", - "ExportName": "amplify-mediavault-main-61114-StackId" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114.parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114.parameters.json deleted file mode 100644 index 91ab468ba21..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114.parameters.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "ParameterKey": "AuthRoleName", - "ParameterValue": "amplify-mediavault-main-61114-authRole" - }, - { - "ParameterKey": "DeploymentBucketName", - "ParameterValue": "amplify-mediavault-main-61114-deployment" - }, - { - "ParameterKey": "UnauthRoleName", - "ParameterValue": "amplify-mediavault-main-61114-unauthRole" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114.template.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114.template.json deleted file mode 100644 index 5a04c0b5dae..00000000000 --- a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-main-61114.template.json +++ /dev/null @@ -1,633 +0,0 @@ -{ - "Description": "Root Stack for AWS Amplify CLI", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "DeploymentBucketName": { - "Type": "String", - "Default": "DeploymentBucket", - "Description": "Name of the common deployment bucket provided by the parent stack" - }, - "AuthRoleName": { - "Type": "String", - "Default": "AuthRoleName", - "Description": "Name of the common deployment bucket provided by the parent stack" - }, - "UnauthRoleName": { - "Type": "String", - "Default": "UnAuthRoleName", - "Description": "Name of the common deployment bucket provided by the parent stack" - } - }, - "Outputs": { - "Region": { - "Description": "CloudFormation provider root stack Region", - "Value": { - "Ref": "AWS::Region" - }, - "Export": { - "Name": { - "Fn::Sub": "${AWS::StackName}-Region" - } - } - }, - "StackName": { - "Description": "CloudFormation provider root stack ID", - "Value": { - "Ref": "AWS::StackName" - }, - "Export": { - "Name": { - "Fn::Sub": "${AWS::StackName}-StackName" - } - } - }, - "StackId": { - "Description": "CloudFormation provider root stack name", - "Value": { - "Ref": "AWS::StackId" - }, - "Export": { - "Name": { - "Fn::Sub": "${AWS::StackName}-StackId" - } - } - }, - "AuthRoleArn": { - "Value": { - "Fn::GetAtt": [ - "AuthRole", - "Arn" - ] - } - }, - "UnauthRoleArn": { - "Value": { - "Fn::GetAtt": [ - "UnauthRole", - "Arn" - ] - } - }, - "DeploymentBucketName": { - "Description": "CloudFormation provider root stack deployment bucket name", - "Value": { - "Ref": "DeploymentBucketName" - }, - "Export": { - "Name": { - "Fn::Sub": "${AWS::StackName}-DeploymentBucketName" - } - } - }, - "AuthRoleName": { - "Value": { - "Ref": "AuthRole" - } - }, - "UnauthRoleName": { - "Value": { - "Ref": "UnauthRole" - } - } - }, - "Resources": { - "DeploymentBucket": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketName": { - "Ref": "DeploymentBucketName" - }, - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - } - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain" - }, - "DeploymentBucketBlockHTTP": { - "Type": "AWS::S3::BucketPolicy", - "Properties": { - "Bucket": { - "Ref": "DeploymentBucketName" - }, - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:*", - "Effect": "Deny", - "Principal": "*", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "DeploymentBucketName" - }, - "/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "DeploymentBucketName" - } - ] - ] - } - ], - "Condition": { - "Bool": { - "aws:SecureTransport": false - } - } - } - ] - } - } - }, - "AuthRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Sid": "", - "Effect": "Deny", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - }, - "Action": "sts:AssumeRoleWithWebIdentity" - } - ] - }, - "RoleName": { - "Ref": "AuthRoleName" - } - } - }, - "UnauthRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Sid": "", - "Effect": "Deny", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - }, - "Action": "sts:AssumeRoleWithWebIdentity" - } - ] - }, - "RoleName": { - "Ref": "UnauthRoleName" - } - } - }, - "apimediavault": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/api/cloudformation-template.json", - "Parameters": { - "AppSyncApiName": "mediavault", - "DynamoDBBillingMode": "PAY_PER_REQUEST", - "DynamoDBEnableServerSideEncryption": false, - "AuthCognitoUserPoolId": { - "Fn::GetAtt": [ - "authmediavault1f08412d", - "Outputs.UserPoolId" - ] - }, - "S3DeploymentBucket": "amplify-mediavault-main-61114-deployment", - "S3DeploymentRootKey": "amplify-appsync-files/a9caa2a9280aa728b448533b4b7827dcc2cbf238", - "env": "main" - } - } - }, - "authmediavault1f08412d": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/auth/mediavault1f08412d-cloudformation-template.json", - "Parameters": { - "identityPoolName": "mediavault1f08412d_identitypool_1f08412d", - "allowUnauthenticatedIdentities": true, - "resourceNameTruncated": "mediav1f08412d", - "userPoolName": "mediavault1f08412d_userpool_1f08412d", - "autoVerifiedAttributes": "email", - "mfaConfiguration": "OFF", - "mfaTypes": "SMS Text Message", - "smsAuthenticationMessage": "Your authentication code is {####}", - "smsVerificationMessage": "Your verification code is {####}", - "emailVerificationSubject": "Your verification code", - "emailVerificationMessage": "Your verification code is {####}", - "defaultPasswordPolicy": false, - "passwordPolicyMinLength": 8, - "passwordPolicyCharacters": "", - "requiredAttributes": "email", - "aliasAttributes": "", - "userpoolClientGenerateSecret": false, - "userpoolClientRefreshTokenValidity": 30, - "userpoolClientWriteAttributes": "email", - "userpoolClientReadAttributes": "email", - "userpoolClientLambdaRole": "mediav1f08412d_userpoolclient_lambda_role", - "userpoolClientSetAttributes": false, - "sharedId": "1f08412d", - "resourceName": "mediavault1f08412d", - "authSelections": "identityPoolAndUserPool", - "useDefault": "defaultSocial", - "hostedUI": true, - "usernameAttributes": "email, phone_number", - "hostedUIDomainName": "mediavault1f08412d-1f08412d", - "authProvidersUserPool": "Facebook,Google", - "hostedUIProviderMeta": "[{\"ProviderName\":\"Facebook\",\"authorize_scopes\":\"email,public_profile\",\"AttributeMapping\":{\"email\":\"email\",\"username\":\"id\"}},{\"ProviderName\":\"Google\",\"authorize_scopes\":\"openid email profile\",\"AttributeMapping\":{\"email\":\"email\",\"username\":\"sub\"}}]", - "userPoolGroupList": "Admin,Basic", - "serviceName": "Cognito", - "usernameCaseSensitive": false, - "useEnabledMfas": true, - "authRoleArn": { - "Fn::GetAtt": [ - "AuthRole", - "Arn" - ] - }, - "unauthRoleArn": { - "Fn::GetAtt": [ - "UnauthRole", - "Arn" - ] - }, - "breakCircularDependency": true, - "dependsOn": "", - "oAuthMetadata": "{\"AllowedOAuthFlows\":[\"code\"],\"AllowedOAuthScopes\":[\"phone\",\"email\",\"openid\",\"profile\",\"aws.cognito.signin.user.admin\"],\"CallbackURLs\":[\"https://main.mediavault.amplifyapp.com/\"],\"LogoutURLs\":[\"https://main.mediavault.amplifyapp.com/\"]}", - "hostedUIProviderCreds": "[{\"ProviderName\":\"Facebook\"},{\"ProviderName\":\"Google\"}]", - "env": "main" - } - } - }, - "authuserPoolGroups": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", - "Parameters": { - "AuthRoleArn": { - "Fn::GetAtt": [ - "AuthRole", - "Arn" - ] - }, - "UnauthRoleArn": { - "Fn::GetAtt": [ - "UnauthRole", - "Arn" - ] - }, - "authmediavault1f08412dUserPoolId": { - "Fn::GetAtt": [ - "authmediavault1f08412d", - "Outputs.UserPoolId" - ] - }, - "authmediavault1f08412dAppClientIDWeb": { - "Fn::GetAtt": [ - "authmediavault1f08412d", - "Outputs.AppClientIDWeb" - ] - }, - "authmediavault1f08412dAppClientID": { - "Fn::GetAtt": [ - "authmediavault1f08412d", - "Outputs.AppClientID" - ] - }, - "authmediavault1f08412dIdentityPoolId": { - "Fn::GetAtt": [ - "authmediavault1f08412d", - "Outputs.IdentityPoolId" - ] - }, - "env": "main" - } - } - }, - "functionaddusertogroup": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/function/addusertogroup-cloudformation-template.json", - "Parameters": { - "deploymentBucketName": "amplify-mediavault-main-61114-deployment", - "s3Key": "amplify-builds/addusertogroup-75335545303076734834-build.zip", - "authmediavault1f08412dUserPoolId": { - "Fn::GetAtt": [ - "authmediavault1f08412d", - "Outputs.UserPoolId" - ] - }, - "env": "main" - } - } - }, - "functionremoveuserfromgroup": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/function/removeuserfromgroup-cloudformation-template.json", - "Parameters": { - "deploymentBucketName": "amplify-mediavault-main-61114-deployment", - "s3Key": "amplify-builds/removeuserfromgroup-7a4c47616747764e436c-build.zip", - "authmediavault1f08412dUserPoolId": { - "Fn::GetAtt": [ - "authmediavault1f08412d", - "Outputs.UserPoolId" - ] - }, - "env": "main" - } - } - }, - "functionthumbnailgen": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/function/thumbnailgen-cloudformation-template.json", - "Parameters": { - "deploymentBucketName": "amplify-mediavault-main-61114-deployment", - "s3Key": "amplify-builds/thumbnailgen-714677357a74314e2b59-build.zip", - "storagemediavaultBucketName": { - "Fn::GetAtt": [ - "storagemediavault", - "Outputs.BucketName" - ] - }, - "env": "main" - } - } - }, - "storagemediavault": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-main-61114-deployment/amplify-cfn-templates/storage/cloudformation-template.json", - "Parameters": { - "bucketName": "mediavaultb574f210f1634e3a8d1934f263da5bed", - "selectedGuestPermissions": "s3:GetObject,s3:ListBucket", - "selectedAuthenticatedPermissions": "s3:PutObject,s3:GetObject,s3:ListBucket,s3:DeleteObject", - "unauthRoleName": { - "Ref": "UnauthRoleName" - }, - "authRoleName": { - "Ref": "AuthRoleName" - }, - "s3PrivatePolicy": "Private_policy_d399ab0f", - "s3ProtectedPolicy": "Protected_policy_d399ab0f", - "s3PublicPolicy": "Public_policy_d399ab0f", - "s3ReadPolicy": "read_policy_d399ab0f", - "s3UploadsPolicy": "Uploads_policy_d399ab0f", - "authPolicyName": "s3_amplify_d399ab0f", - "unauthPolicyName": "s3_amplify_d399ab0f", - "AuthenticatedAllowList": "ALLOW", - "GuestAllowList": "ALLOW", - "s3PermissionsAuthenticatedPrivate": "s3:PutObject,s3:GetObject,s3:DeleteObject", - "s3PermissionsAuthenticatedProtected": "s3:PutObject,s3:GetObject,s3:DeleteObject", - "s3PermissionsAuthenticatedPublic": "s3:PutObject,s3:GetObject,s3:DeleteObject", - "s3PermissionsAuthenticatedUploads": "s3:PutObject", - "s3PermissionsGuestPublic": "s3:GetObject", - "s3PermissionsGuestUploads": "DISALLOW", - "authmediavault1f08412dUserPoolId": { - "Fn::GetAtt": [ - "authmediavault1f08412d", - "Outputs.UserPoolId" - ] - }, - "authuserPoolGroupsAdminGroupRole": { - "Fn::GetAtt": [ - "authuserPoolGroups", - "Outputs.AdminGroupRole" - ] - }, - "authuserPoolGroupsBasicGroupRole": { - "Fn::GetAtt": [ - "authuserPoolGroups", - "Outputs.BasicGroupRole" - ] - }, - "env": "main" - } - } - }, - "UpdateRolesWithIDPFunction": { - "DependsOn": [ - "AuthRole", - "UnauthRole", - "authmediavault1f08412d" - ], - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "ZipFile": { - "Fn::Join": [ - "\n", - [ - "const response = require('cfn-response');", - "const { IAMClient, GetRoleCommand, UpdateAssumeRolePolicyCommand } = require('@aws-sdk/client-iam');", - "exports.handler = function(event, context) {", - " // Don't return promise, response.send() marks context as done internally", - " const ignoredPromise = handleEvent(event, context)", - "};", - "async function handleEvent(event, context) {", - " try {", - " let authRoleName = event.ResourceProperties.authRoleName;", - " let unauthRoleName = event.ResourceProperties.unauthRoleName;", - " let idpId = event.ResourceProperties.idpId;", - " let authParamsJson = {", - " 'Version': '2012-10-17',", - " 'Statement': [{", - " 'Effect': 'Allow',", - " 'Principal': {'Federated': 'cognito-identity.amazonaws.com'},", - " 'Action': 'sts:AssumeRoleWithWebIdentity',", - " 'Condition': {", - " 'StringEquals': {'cognito-identity.amazonaws.com:aud': idpId},", - " 'ForAnyValue:StringLike': {'cognito-identity.amazonaws.com:amr': 'authenticated'}", - " }", - " }]", - " };", - " let unauthParamsJson = {", - " 'Version': '2012-10-17',", - " 'Statement': [{", - " 'Effect': 'Allow',", - " 'Principal': {'Federated': 'cognito-identity.amazonaws.com'},", - " 'Action': 'sts:AssumeRoleWithWebIdentity',", - " 'Condition': {", - " 'StringEquals': {'cognito-identity.amazonaws.com:aud': idpId},", - " 'ForAnyValue:StringLike': {'cognito-identity.amazonaws.com:amr': 'unauthenticated'}", - " }", - " }]", - " };", - " if (event.RequestType === 'Delete') {", - " try {", - " delete authParamsJson.Statement[0].Condition;", - " delete unauthParamsJson.Statement[0].Condition;", - " authParamsJson.Statement[0].Effect = 'Deny'", - " unauthParamsJson.Statement[0].Effect = 'Deny'", - " let authParams = {PolicyDocument: JSON.stringify(authParamsJson), RoleName: authRoleName};", - " let unauthParams = {PolicyDocument: JSON.stringify(unauthParamsJson), RoleName: unauthRoleName};", - " const iam = new IAMClient({region: event.ResourceProperties.region});", - " let res = await Promise.all([", - " iam.send(new GetRoleCommand({RoleName: authParams.RoleName})),", - " iam.send(new GetRoleCommand({RoleName: unauthParams.RoleName}))", - " ]);", - " res = await Promise.all([", - " iam.send(new UpdateAssumeRolePolicyCommand(authParams)),", - " iam.send(new UpdateAssumeRolePolicyCommand(unauthParams))", - " ]);", - " response.send(event, context, response.SUCCESS, {});", - " } catch (err) {", - " console.log(err.stack);", - " response.send(event, context, response.SUCCESS, {Error: err});", - " }", - " } else if (event.RequestType === 'Update' || event.RequestType === 'Create') {", - " const iam = new IAMClient({region: event.ResourceProperties.region});", - " let authParams = {PolicyDocument: JSON.stringify(authParamsJson), RoleName: authRoleName};", - " let unauthParams = {PolicyDocument: JSON.stringify(unauthParamsJson), RoleName: unauthRoleName};", - " const res = await Promise.all([", - " iam.send(new UpdateAssumeRolePolicyCommand(authParams)),", - " iam.send(new UpdateAssumeRolePolicyCommand(unauthParams))", - " ]);", - " response.send(event, context, response.SUCCESS, {});", - " }", - " } catch (err) {", - " console.log(err.stack);", - " response.send(event, context, response.FAILED, {Error: err});", - " }", - "};" - ] - ] - } - }, - "Handler": "index.handler", - "Runtime": "nodejs22.x", - "Timeout": 300, - "Role": { - "Fn::GetAtt": [ - "UpdateRolesWithIDPFunctionRole", - "Arn" - ] - } - } - }, - "UpdateRolesWithIDPFunctionOutputs": { - "Type": "Custom::LambdaCallout", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "UpdateRolesWithIDPFunction", - "Arn" - ] - }, - "region": { - "Ref": "AWS::Region" - }, - "idpId": { - "Fn::GetAtt": [ - "authmediavault1f08412d", - "Outputs.IdentityPoolId" - ] - }, - "authRoleName": { - "Ref": "AuthRole" - }, - "unauthRoleName": { - "Ref": "UnauthRole" - } - } - }, - "UpdateRolesWithIDPFunctionRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "RoleName": { - "Fn::Join": [ - "", - [ - { - "Ref": "AuthRole" - }, - "-idp" - ] - ] - }, - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": [ - "lambda.amazonaws.com" - ] - }, - "Action": [ - "sts:AssumeRole" - ] - } - ] - }, - "Policies": [ - { - "PolicyName": "UpdateRolesWithIDPFunctionPolicy", - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "logs:CreateLogGroup", - "logs:CreateLogStream", - "logs:PutLogEvents" - ], - "Resource": "arn:aws:logs:*:*:*" - }, - { - "Effect": "Allow", - "Action": [ - "iam:UpdateAssumeRolePolicy", - "iam:GetRole" - ], - "Resource": { - "Fn::GetAtt": [ - "AuthRole", - "Arn" - ] - } - }, - { - "Effect": "Allow", - "Action": [ - "iam:UpdateAssumeRolePolicy", - "iam:GetRole" - ], - "Resource": { - "Fn::GetAtt": [ - "UnauthRole", - "Arn" - ] - } - } - ] - } - } - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x-CustomResourcesjson-x.description.txt b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x-CustomResourcesjson-x.description.txt new file mode 100644 index 00000000000..21e1447423e --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x-CustomResourcesjson-x.description.txt @@ -0,0 +1 @@ +An auto-generated nested stack. diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x-CustomResourcesjson-x.outputs.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x-CustomResourcesjson-x.outputs.json new file mode 100644 index 00000000000..291e7aad7f7 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x-CustomResourcesjson-x.outputs.json @@ -0,0 +1,7 @@ +[ + { + "OutputKey": "EmptyOutput", + "OutputValue": "", + "Description": "An empty output. You may delete this if you have at least one resource above." + } +] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x-CustomResourcesjson-x.parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x-CustomResourcesjson-x.parameters.json new file mode 100644 index 00000000000..8da3c3698d1 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x-CustomResourcesjson-x.parameters.json @@ -0,0 +1,22 @@ +[ + { + "ParameterKey": "S3DeploymentBucket", + "ParameterValue": "amplify-mediavault-x-x-deployment" + }, + { + "ParameterKey": "AppSyncApiId", + "ParameterValue": "m35dk4nrcna2hiz267tsvgu77y" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "S3DeploymentRootKey", + "ParameterValue": "amplify-appsync-files/a9caa2a9280aa728b448533b4b7827dcc2cbf238" + }, + { + "ParameterKey": "AppSyncApiName", + "ParameterValue": "mediavault" + } +] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x-CustomResourcesjson-x.template.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x-CustomResourcesjson-x.template.json new file mode 100644 index 00000000000..5fe357d6096 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x-CustomResourcesjson-x.template.json @@ -0,0 +1,61 @@ +{ + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "An auto-generated nested stack.", + "Metadata": {}, + "Parameters": { + "AppSyncApiId": { + "Type": "String", + "Description": "The id of the AppSync API associated with this project." + }, + "AppSyncApiName": { + "Type": "String", + "Description": "The name of the AppSync API", + "Default": "AppSyncSimpleTransform" + }, + "env": { + "Type": "String", + "Description": "The environment name. e.g. Dev, Test, or Production", + "Default": "NONE" + }, + "S3DeploymentBucket": { + "Type": "String", + "Description": "The S3 bucket containing all deployment assets for the project." + }, + "S3DeploymentRootKey": { + "Type": "String", + "Description": "An S3 key relative to the S3DeploymentBucket that points to the root\nof the deployment directory." + } + }, + "Resources": { + "EmptyResource": { + "Type": "Custom::EmptyResource", + "Condition": "AlwaysFalse" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + } + ] + }, + "AlwaysFalse": { + "Fn::Equals": [ + "true", + "false" + ] + } + }, + "Outputs": { + "EmptyOutput": { + "Description": "An empty output. You may delete this if you have at least one resource above.", + "Value": "" + } + } +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x-FunctionDirectiveStack-x.description.txt b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x-FunctionDirectiveStack-x.description.txt new file mode 100644 index 00000000000..6b3d983ba60 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x-FunctionDirectiveStack-x.description.txt @@ -0,0 +1 @@ +An auto-generated nested stack for the @function directive. diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x-FunctionDirectiveStack-x.outputs.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x-FunctionDirectiveStack-x.outputs.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x-FunctionDirectiveStack-x.outputs.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x-FunctionDirectiveStack-x.parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x-FunctionDirectiveStack-x.parameters.json new file mode 100644 index 00000000000..ebdeb875bb7 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x-FunctionDirectiveStack-x.parameters.json @@ -0,0 +1,22 @@ +[ + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", + "ParameterValue": "amplify-appsync-files/a9caa2a9280aa728b448533b4b7827dcc2cbf238" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", + "ParameterValue": "m35dk4nrcna2hiz267tsvgu77y" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", + "ParameterValue": "amplify-mediavault-x-x-deployment" + }, + { + "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", + "ParameterValue": "x" + } +] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x-FunctionDirectiveStack-x.template.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x-FunctionDirectiveStack-x.template.json new file mode 100644 index 00000000000..f9333ca14d3 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x-FunctionDirectiveStack-x.template.json @@ -0,0 +1,709 @@ +{ + "Description": "An auto-generated nested stack for the @function directive.", + "AWSTemplateFormatVersion": "2010-09-09", + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + } + }, + "Resources": { + "ThumbnailgenLambdaDataSourceServiceRoleCD7268C7": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + } + } + }, + "ThumbnailgenLambdaDataSourceServiceRoleDefaultPolicy3F2A9BDB": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:thumbnailgen-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:thumbnailgen" + } + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:thumbnailgen-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:thumbnailgen" + } + ] + }, + ":*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "ThumbnailgenLambdaDataSourceServiceRoleDefaultPolicy3F2A9BDB", + "Roles": [ + { + "Ref": "ThumbnailgenLambdaDataSourceServiceRoleCD7268C7" + } + ] + } + }, + "ThumbnailgenLambdaDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "LambdaConfig": { + "LambdaFunctionArn": { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:thumbnailgen-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:thumbnailgen" + } + ] + } + }, + "Name": "ThumbnailgenLambdaDataSource", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "ThumbnailgenLambdaDataSourceServiceRoleCD7268C7", + "Arn" + ] + }, + "Type": "AWS_LAMBDA" + } + }, + "InvokeThumbnailgenLambdaDataSourceInvokeThumbnailgenLambdaDataSourceAppSyncFunctionB070F690": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ThumbnailgenLambdaDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "InvokeThumbnailgenLambdaDataSource", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeThumbnailgenLambdaDataSource.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeThumbnailgenLambdaDataSource.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ThumbnailgenLambdaDataSource" + ] + }, + "QuerygenerateThumbnailResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "generateThumbnail", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QueryGenerateThumbnailAuthFNQueryGenerateThumbnailAuthFNAppSyncFunction60C28AA7", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "InvokeThumbnailgenLambdaDataSourceInvokeThumbnailgenLambdaDataSourceAppSyncFunctionB070F690", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"generateThumbnail\"))\n{}\n## [End] Stash resolver specific context.. **", + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.generateThumbnail.res.vtl" + ] + ] + }, + "TypeName": "Query" + } + }, + "AddusertogroupLambdaDataSourceServiceRoleB2786AA5": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + } + } + }, + "AddusertogroupLambdaDataSourceServiceRoleDefaultPolicy9971B812": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:addusertogroup-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:addusertogroup" + } + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:addusertogroup-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:addusertogroup" + } + ] + }, + ":*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "AddusertogroupLambdaDataSourceServiceRoleDefaultPolicy9971B812", + "Roles": [ + { + "Ref": "AddusertogroupLambdaDataSourceServiceRoleB2786AA5" + } + ] + } + }, + "AddusertogroupLambdaDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "LambdaConfig": { + "LambdaFunctionArn": { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:addusertogroup-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:addusertogroup" + } + ] + } + }, + "Name": "AddusertogroupLambdaDataSource", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "AddusertogroupLambdaDataSourceServiceRoleB2786AA5", + "Arn" + ] + }, + "Type": "AWS_LAMBDA" + } + }, + "InvokeAddusertogroupLambdaDataSourceInvokeAddusertogroupLambdaDataSourceAppSyncFunctionB9DCEFE8": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "AddusertogroupLambdaDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "InvokeAddusertogroupLambdaDataSource", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeAddusertogroupLambdaDataSource.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeAddusertogroupLambdaDataSource.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "AddusertogroupLambdaDataSource" + ] + }, + "QueryaddUserToGroupResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "addUserToGroup", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QueryGenerateThumbnailAuthFNQueryGenerateThumbnailAuthFNAppSyncFunction60C28AA7", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "InvokeAddusertogroupLambdaDataSourceInvokeAddusertogroupLambdaDataSourceAppSyncFunctionB9DCEFE8", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"addUserToGroup\"))\n{}\n## [End] Stash resolver specific context.. **", + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.addUserToGroup.res.vtl" + ] + ] + }, + "TypeName": "Query" + } + }, + "RemoveuserfromgroupLambdaDataSourceServiceRole2801970C": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + } + } + }, + "RemoveuserfromgroupLambdaDataSourceServiceRoleDefaultPolicyB82CCCCC": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:removeuserfromgroup-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:removeuserfromgroup" + } + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:removeuserfromgroup-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:removeuserfromgroup" + } + ] + }, + ":*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "RemoveuserfromgroupLambdaDataSourceServiceRoleDefaultPolicyB82CCCCC", + "Roles": [ + { + "Ref": "RemoveuserfromgroupLambdaDataSourceServiceRole2801970C" + } + ] + } + }, + "RemoveuserfromgroupLambdaDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "LambdaConfig": { + "LambdaFunctionArn": { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:removeuserfromgroup-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:removeuserfromgroup" + } + ] + } + }, + "Name": "RemoveuserfromgroupLambdaDataSource", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "RemoveuserfromgroupLambdaDataSourceServiceRole2801970C", + "Arn" + ] + }, + "Type": "AWS_LAMBDA" + } + }, + "InvokeRemoveuserfromgroupLambdaDataSourceInvokeRemoveuserfromgroupLambdaDataSourceAppSyncFunction3C57F651": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "RemoveuserfromgroupLambdaDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "InvokeRemoveuserfromgroupLambdaDataSource", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeRemoveuserfromgroupLambdaDataSource.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeRemoveuserfromgroupLambdaDataSource.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "RemoveuserfromgroupLambdaDataSource" + ] + }, + "QueryremoveUserFromGroupResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "removeUserFromGroup", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QueryGenerateThumbnailAuthFNQueryGenerateThumbnailAuthFNAppSyncFunction60C28AA7", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "InvokeRemoveuserfromgroupLambdaDataSourceInvokeRemoveuserfromgroupLambdaDataSourceAppSyncFunction3C57F651", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"removeUserFromGroup\"))\n{}\n## [End] Stash resolver specific context.. **", + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.removeUserFromGroup.res.vtl" + ] + ] + }, + "TypeName": "Query" + } + }, + "QueryGenerateThumbnailAuthFNQueryGenerateThumbnailAuthFNAppSyncFunction60C28AA7": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryGenerateThumbnailAuthFN", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.generateThumbnail.auth.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + } + }, + "Parameters": { + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Type": "String" + } + } +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x-Note-x.description.txt b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x-Note-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x-Note-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x-Note-x.outputs.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x-Note-x.outputs.json new file mode 100644 index 00000000000..cb4c738ab0a --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x-Note-x.outputs.json @@ -0,0 +1,20 @@ +[ + { + "OutputKey": "GetAttNoteTableStreamArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Note-m35dk4nrcna2hiz267tsvgu77y-x/stream/2026-04-15T03:52:49.047", + "Description": "Your DynamoDB table StreamArn.", + "ExportName": "m35dk4nrcna2hiz267tsvgu77y:GetAtt:NoteTable:StreamArn" + }, + { + "OutputKey": "GetAttNoteDataSourceName", + "OutputValue": "NoteTable", + "Description": "Your model DataSource name.", + "ExportName": "m35dk4nrcna2hiz267tsvgu77y:GetAtt:NoteDataSource:Name" + }, + { + "OutputKey": "GetAttNoteTableName", + "OutputValue": "Note-m35dk4nrcna2hiz267tsvgu77y-x", + "Description": "Your DynamoDB table name.", + "ExportName": "m35dk4nrcna2hiz267tsvgu77y:GetAtt:NoteTable:Name" + } +] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x-Note-x.parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x-Note-x.parameters.json new file mode 100644 index 00000000000..4cbb5484ed1 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x-Note-x.parameters.json @@ -0,0 +1,42 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", + "ParameterValue": "amplify-appsync-files/a9caa2a9280aa728b448533b4b7827dcc2cbf238" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", + "ParameterValue": "m35dk4nrcna2hiz267tsvgu77y" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", + "ParameterValue": "amplify-mediavault-x-x-deployment" + }, + { + "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", + "ParameterValue": "x" + } +] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x-Note-x.template.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x-Note-x.template.json new file mode 100644 index 00000000000..c838375b43b --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x-Note-x.template.json @@ -0,0 +1,1480 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "NoteTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "Note-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Retain" + }, + "NoteIAMRoleCA742F19": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem", + "dynamodb:ConditionCheckItem", + "dynamodb:DescribeTable", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "Note-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "Note-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess" + } + ], + "RoleName": { + "Fn::Join": [ + "", + [ + "NoteIAMRoleee5963-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "NoteIAMRoleDefaultPolicy3A8345BC": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "NoteTable", + "Arn" + ] + }, + { + "Ref": "AWS::NoValue" + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "NoteIAMRoleDefaultPolicy3A8345BC", + "Roles": [ + { + "Ref": "NoteIAMRoleCA742F19" + } + ] + } + }, + "NoteDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "NoteTable" + } + }, + "Name": "NoteTable", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "NoteIAMRoleCA742F19", + "Arn" + ] + }, + "Type": "AMAZON_DYNAMODB" + }, + "DependsOn": [ + "NoteIAMRoleCA742F19" + ] + }, + "QuerygetNoteauth0FunctionQuerygetNoteauth0FunctionAppSyncFunction1125F54B": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetNoteauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getNote.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "QuerygetNotepostAuth0FunctionQuerygetNotepostAuth0FunctionAppSyncFunctionBC9940CA": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetNotepostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getNote.postAuth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "QueryGetNoteDataResolverFnQueryGetNoteDataResolverFnAppSyncFunction2F346125": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "NoteDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryGetNoteDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getNote.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getNote.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "NoteDataSource" + ] + }, + "GetNoteResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getNote", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerygetNoteauth0FunctionQuerygetNoteauth0FunctionAppSyncFunction1125F54B", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetNotepostAuth0FunctionQuerygetNotepostAuth0FunctionAppSyncFunctionBC9940CA", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryGetNoteDataResolverFnQueryGetNoteDataResolverFnAppSyncFunction2F346125", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getNote\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "NoteTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + } + }, + "QueryListNotesDataResolverFnQueryListNotesDataResolverFnAppSyncFunctionBD5C872B": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "NoteDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryListNotesDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listNotes.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listNotes.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "NoteDataSource" + ] + }, + "ListNoteResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listNotes", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerygetNoteauth0FunctionQuerygetNoteauth0FunctionAppSyncFunction1125F54B", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetNotepostAuth0FunctionQuerygetNotepostAuth0FunctionAppSyncFunctionBC9940CA", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryListNotesDataResolverFnQueryListNotesDataResolverFnAppSyncFunctionBD5C872B", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listNotes\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "NoteTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + } + }, + "MutationcreateNoteinit0FunctionMutationcreateNoteinit0FunctionAppSyncFunction336343A0": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateNoteinit0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createNote.init.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "MutationcreateNoteauth0FunctionMutationcreateNoteauth0FunctionAppSyncFunction24439C2F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateNoteauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createNote.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "MutationCreateNoteDataResolverFnMutationCreateNoteDataResolverFnAppSyncFunction591F5456": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "NoteDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationCreateNoteDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createNote.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createNote.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "NoteDataSource" + ] + }, + "CreateNoteResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createNote", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationcreateNoteinit0FunctionMutationcreateNoteinit0FunctionAppSyncFunction336343A0", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationcreateNoteauth0FunctionMutationcreateNoteauth0FunctionAppSyncFunction24439C2F", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetNotepostAuth0FunctionQuerygetNotepostAuth0FunctionAppSyncFunctionBC9940CA", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationCreateNoteDataResolverFnMutationCreateNoteDataResolverFnAppSyncFunction591F5456", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createNote\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "NoteTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "MutationupdateNoteinit0FunctionMutationupdateNoteinit0FunctionAppSyncFunction19D28B0F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateNoteinit0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateNote.init.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "MutationupdateNoteauth0FunctionMutationupdateNoteauth0FunctionAppSyncFunction72CAF43F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "NoteDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateNoteauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateNote.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateNote.auth.1.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "NoteDataSource" + ] + }, + "MutationUpdateNoteDataResolverFnMutationUpdateNoteDataResolverFnAppSyncFunctionBCC5D9E4": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "NoteDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationUpdateNoteDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateNote.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateNote.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "NoteDataSource" + ] + }, + "UpdateNoteResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateNote", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationupdateNoteinit0FunctionMutationupdateNoteinit0FunctionAppSyncFunction19D28B0F", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationupdateNoteauth0FunctionMutationupdateNoteauth0FunctionAppSyncFunction72CAF43F", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetNotepostAuth0FunctionQuerygetNotepostAuth0FunctionAppSyncFunctionBC9940CA", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationUpdateNoteDataResolverFnMutationUpdateNoteDataResolverFnAppSyncFunctionBCC5D9E4", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateNote\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "NoteTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "MutationdeleteNoteauth0FunctionMutationdeleteNoteauth0FunctionAppSyncFunction5FE2B4D0": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "NoteDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeleteNoteauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteNote.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteNote.auth.1.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "NoteDataSource" + ] + }, + "MutationDeleteNoteDataResolverFnMutationDeleteNoteDataResolverFnAppSyncFunction3FA3FDA0": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "NoteDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationDeleteNoteDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteNote.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteNote.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "NoteDataSource" + ] + }, + "DeleteNoteResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteNote", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationdeleteNoteauth0FunctionMutationdeleteNoteauth0FunctionAppSyncFunction5FE2B4D0", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetNotepostAuth0FunctionQuerygetNotepostAuth0FunctionAppSyncFunctionBC9940CA", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationDeleteNoteDataResolverFnMutationDeleteNoteDataResolverFnAppSyncFunction3FA3FDA0", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteNote\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "NoteTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "SubscriptiononCreateNoteauth0FunctionSubscriptiononCreateNoteauth0FunctionAppSyncFunction853C832F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononCreateNoteauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Subscription.onCreateNote.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "SubscriptionOnCreateNoteDataResolverFnSubscriptionOnCreateNoteDataResolverFnAppSyncFunction37D6FFF2": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnCreateNoteDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Subscription.onCreateNote.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Subscription.onCreateNote.res.vtl" + ] + ] + } + } + }, + "SubscriptiononCreateNoteResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateNote", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononCreateNoteauth0FunctionSubscriptiononCreateNoteauth0FunctionAppSyncFunction853C832F", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetNotepostAuth0FunctionQuerygetNotepostAuth0FunctionAppSyncFunctionBC9940CA", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnCreateNoteDataResolverFnSubscriptionOnCreateNoteDataResolverFnAppSyncFunction37D6FFF2", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateNote\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + }, + "SubscriptiononUpdateNoteResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateNote", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononCreateNoteauth0FunctionSubscriptiononCreateNoteauth0FunctionAppSyncFunction853C832F", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetNotepostAuth0FunctionQuerygetNotepostAuth0FunctionAppSyncFunctionBC9940CA", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnCreateNoteDataResolverFnSubscriptionOnCreateNoteDataResolverFnAppSyncFunction37D6FFF2", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateNote\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + }, + "SubscriptiononDeleteNoteResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteNote", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononCreateNoteauth0FunctionSubscriptiononCreateNoteauth0FunctionAppSyncFunction853C832F", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetNotepostAuth0FunctionQuerygetNotepostAuth0FunctionAppSyncFunctionBC9940CA", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnCreateNoteDataResolverFnSubscriptionOnCreateNoteDataResolverFnAppSyncFunction37D6FFF2", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteNote\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + }, + "NoteOwnerDataResolverFnNoteOwnerDataResolverFnAppSyncFunction66A7C72C": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "NoteOwnerDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Note.owner.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Note.owner.res.vtl" + ] + ] + } + } + }, + "NoteownerResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "owner", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "NoteOwnerDataResolverFnNoteOwnerDataResolverFnAppSyncFunction66A7C72C", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Note\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"owner\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Note" + } + } + }, + "Outputs": { + "GetAttNoteTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "NoteTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:NoteTable:StreamArn" + ] + ] + } + } + }, + "GetAttNoteTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "NoteTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:NoteTable:Name" + ] + ] + } + } + }, + "GetAttNoteDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "NoteDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:NoteDataSource:Name" + ] + ] + } + } + } + } +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x.description.txt b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x.description.txt new file mode 100644 index 00000000000..f9e13281dee --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"api-AppSync","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x.outputs.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x.outputs.json new file mode 100644 index 00000000000..3bee9bf6196 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x.outputs.json @@ -0,0 +1,20 @@ +[ + { + "OutputKey": "GraphQLAPIIdOutput", + "OutputValue": "m35dk4nrcna2hiz267tsvgu77y", + "Description": "Your GraphQL API ID.", + "ExportName": "amplify-mediavault-x-x-apimediavault-x:GraphQLApiId" + }, + { + "OutputKey": "GraphQLAPIEndpointOutput", + "OutputValue": "https://g5z2setogbflfexkd3i54nriqi.appsync-api.us-east-1.amazonaws.com/graphql", + "Description": "Your GraphQL API endpoint.", + "ExportName": "amplify-mediavault-x-x-apimediavault-x:GraphQLApiEndpoint" + }, + { + "OutputKey": "GraphQLAPIKeyOutput", + "OutputValue": "da2-fakeapikey00000000000000", + "Description": "Your GraphQL API ID.", + "ExportName": "amplify-mediavault-x-x-apimediavault-x:GraphQLApiKey" + } +] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x.parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x.parameters.json new file mode 100644 index 00000000000..a0ceb896cf4 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x.parameters.json @@ -0,0 +1,42 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "S3DeploymentBucket", + "ParameterValue": "amplify-mediavault-x-x-deployment" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "S3DeploymentRootKey", + "ParameterValue": "amplify-appsync-files/a9caa2a9280aa728b448533b4b7827dcc2cbf238" + }, + { + "ParameterKey": "AppSyncApiName", + "ParameterValue": "mediavault" + }, + { + "ParameterKey": "AuthCognitoUserPoolId", + "ParameterValue": "us-east-1_baREhKWox" + } +] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x.template.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x.template.json new file mode 100644 index 00000000000..d73af6d1cb5 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-apimediavault-x.template.json @@ -0,0 +1,756 @@ +{ + "Parameters": { + "env": { + "Type": "String", + "Default": "NONE" + }, + "AppSyncApiName": { + "Type": "String", + "Default": "AppSyncSimpleTransform" + }, + "AuthCognitoUserPoolId": { + "Type": "String" + }, + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "S3DeploymentBucket": { + "Type": "String", + "Description": "An S3 Bucket name where assets are deployed" + }, + "S3DeploymentRootKey": { + "Type": "String", + "Description": "An S3 key relative to the S3DeploymentBucket that points to the root of the deployment directory." + } + }, + "Resources": { + "GraphQLAPI": { + "Type": "AWS::AppSync::GraphQLApi", + "Properties": { + "AdditionalAuthenticationProviders": [ + { + "AuthenticationType": "API_KEY" + } + ], + "AuthenticationType": "AMAZON_COGNITO_USER_POOLS", + "Name": { + "Fn::Join": [ + "", + [ + { + "Ref": "AppSyncApiName" + }, + "-", + { + "Ref": "env" + } + ] + ] + }, + "UserPoolConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "DefaultAction": "ALLOW", + "UserPoolId": { + "Ref": "AuthCognitoUserPoolId" + } + } + } + }, + "GraphQLAPITransformerSchema3CB2AE18": { + "Type": "AWS::AppSync::GraphQLSchema", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "DefinitionS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/schema.graphql" + ] + ] + } + } + }, + "GraphQLAPIDefaultApiKey215A6DD7": { + "Type": "AWS::AppSync::ApiKey", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "Description": "graphql", + "Expires": 1784865044 + } + }, + "GraphQLAPINONEDS95A13CF0": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "Name": "NONE_DS", + "Type": "NONE" + } + }, + "Note": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + } + }, + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/Note.json" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "FunctionDirectiveStack": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + } + }, + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/FunctionDirectiveStack.json" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "GenerateThumbnailResponseStatusCodeDataResolverFnGenerateThumbnailResponseStatusCodeDataResolverFnAppSyncFunction87220DF2": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "DataSourceName": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "GenerateThumbnailResponseStatusCodeDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/resolvers/GenerateThumbnailResponse.statusCode.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/resolvers/GenerateThumbnailResponse.statusCode.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "GenerateThumbnailResponsestatusCodeResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "FieldName": "statusCode", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "GenerateThumbnailResponseStatusCodeDataResolverFnGenerateThumbnailResponseStatusCodeDataResolverFnAppSyncFunction87220DF2", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"GenerateThumbnailResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"statusCode\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "GenerateThumbnailResponse" + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "GenerateThumbnailResponseMessageDataResolverFnGenerateThumbnailResponseMessageDataResolverFnAppSyncFunction46CEA7CB": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "DataSourceName": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "GenerateThumbnailResponseMessageDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/resolvers/GenerateThumbnailResponse.message.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/resolvers/GenerateThumbnailResponse.message.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "GenerateThumbnailResponsemessageResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "FieldName": "message", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "GenerateThumbnailResponseMessageDataResolverFnGenerateThumbnailResponseMessageDataResolverFnAppSyncFunction46CEA7CB", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"GenerateThumbnailResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"message\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "GenerateThumbnailResponse" + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "AddUserToGroupResponsestatusCodeResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "FieldName": "statusCode", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "GenerateThumbnailResponseStatusCodeDataResolverFnGenerateThumbnailResponseStatusCodeDataResolverFnAppSyncFunction87220DF2", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"AddUserToGroupResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"statusCode\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "AddUserToGroupResponse" + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "AddUserToGroupResponsemessageResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "FieldName": "message", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "GenerateThumbnailResponseMessageDataResolverFnGenerateThumbnailResponseMessageDataResolverFnAppSyncFunction46CEA7CB", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"AddUserToGroupResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"message\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "AddUserToGroupResponse" + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "RemoveUserFromGroupResponsestatusCodeResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "FieldName": "statusCode", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "GenerateThumbnailResponseStatusCodeDataResolverFnGenerateThumbnailResponseStatusCodeDataResolverFnAppSyncFunction87220DF2", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"RemoveUserFromGroupResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"statusCode\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "RemoveUserFromGroupResponse" + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "RemoveUserFromGroupResponsemessageResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "FieldName": "message", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "GenerateThumbnailResponseMessageDataResolverFnGenerateThumbnailResponseMessageDataResolverFnAppSyncFunction46CEA7CB", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"RemoveUserFromGroupResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"message\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:8bf64a9c-6534-43dc-a6a9-a7bc0b8eec51\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"thumbnailgen-x\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "RemoveUserFromGroupResponse" + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "CustomResourcesjson": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "AppSyncApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "AppSyncApiName": { + "Ref": "AppSyncApiName" + }, + "env": { + "Ref": "env" + }, + "S3DeploymentBucket": { + "Ref": "S3DeploymentBucket" + }, + "S3DeploymentRootKey": { + "Ref": "S3DeploymentRootKey" + } + }, + "TemplateURL": { + "Fn::Join": [ + "/", + [ + "https://s3.amazonaws.com", + { + "Ref": "S3DeploymentBucket" + }, + { + "Ref": "S3DeploymentRootKey" + }, + "stacks", + "CustomResources.json" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPI", + "GraphQLAPITransformerSchema3CB2AE18", + "Note", + "FunctionDirectiveStack" + ] + } + }, + "Outputs": { + "GraphQLAPIKeyOutput": { + "Description": "Your GraphQL API ID.", + "Value": { + "Fn::GetAtt": [ + "GraphQLAPIDefaultApiKey215A6DD7", + "ApiKey" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "AWS::StackName" + }, + "GraphQLApiKey" + ] + ] + } + } + }, + "GraphQLAPIIdOutput": { + "Description": "Your GraphQL API ID.", + "Value": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "AWS::StackName" + }, + "GraphQLApiId" + ] + ] + } + } + }, + "GraphQLAPIEndpointOutput": { + "Description": "Your GraphQL API endpoint.", + "Value": { + "Fn::GetAtt": [ + "GraphQLAPI", + "GraphQLUrl" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "AWS::StackName" + }, + "GraphQLApiEndpoint" + ] + ] + } + } + } + }, + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-authmediavault1f08412d-x.description.txt b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-authmediavault1f08412d-x.description.txt new file mode 100644 index 00000000000..348d1236678 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-authmediavault1f08412d-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"auth-Cognito","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-authmediavault1f08412d-x.outputs.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-authmediavault1f08412d-x.outputs.json new file mode 100644 index 00000000000..f119a26b152 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-authmediavault1f08412d-x.outputs.json @@ -0,0 +1,43 @@ +[ + { + "OutputKey": "UserPoolId", + "OutputValue": "us-east-1_baREhKWox", + "Description": "Id for the user pool" + }, + { + "OutputKey": "AppClientIDWeb", + "OutputValue": "2pfv0bgj28j0f7mdi2u06kdggv", + "Description": "The user pool app client id for web" + }, + { + "OutputKey": "AppClientID", + "OutputValue": "60ue3s3252ikds42onj76mjnh4", + "Description": "The user pool app client id" + }, + { + "OutputKey": "HostedUIDomain", + "OutputValue": "mediavault1f08412d-1f08412d-x" + }, + { + "OutputKey": "IdentityPoolId", + "OutputValue": "us-east-1:7f08778b-539e-436f-aaed-39d08e6d137d", + "Description": "Id for the identity pool" + }, + { + "OutputKey": "UserPoolArn", + "OutputValue": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_baREhKWox", + "Description": "Arn for the user pool" + }, + { + "OutputKey": "IdentityPoolName", + "OutputValue": "mediavault1f08412d_identitypool_1f08412d__x" + }, + { + "OutputKey": "OAuthMetadata", + "OutputValue": "{\"AllowedOAuthFlows\":[\"code\"],\"AllowedOAuthScopes\":[\"phone\",\"email\",\"openid\",\"profile\",\"aws.cognito.signin.user.admin\"],\"CallbackURLs\":[\"https://main.mediavault.amplifyapp.com/\"],\"LogoutURLs\":[\"https://main.mediavault.amplifyapp.com/\"]}" + }, + { + "OutputKey": "UserPoolName", + "OutputValue": "mediavault1f08412d_userpool_1f08412d" + } +] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-authmediavault1f08412d-x.parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-authmediavault1f08412d-x.parameters.json new file mode 100644 index 00000000000..ab698136644 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-authmediavault1f08412d-x.parameters.json @@ -0,0 +1,170 @@ +[ + { + "ParameterKey": "hostedUIDomainName", + "ParameterValue": "mediavault1f08412d-1f08412d" + }, + { + "ParameterKey": "usernameAttributes", + "ParameterValue": "email,phone_number" + }, + { + "ParameterKey": "authRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-mediavault-x-x-authRole" + }, + { + "ParameterKey": "autoVerifiedAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "allowUnauthenticatedIdentities", + "ParameterValue": "true" + }, + { + "ParameterKey": "hostedUI", + "ParameterValue": "true" + }, + { + "ParameterKey": "smsVerificationMessage", + "ParameterValue": "Your verification code is {####}" + }, + { + "ParameterKey": "userpoolClientReadAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "breakCircularDependency", + "ParameterValue": "true" + }, + { + "ParameterKey": "oAuthMetadata", + "ParameterValue": "{\"AllowedOAuthFlows\":[\"code\"],\"AllowedOAuthScopes\":[\"phone\",\"email\",\"openid\",\"profile\",\"aws.cognito.signin.user.admin\"],\"CallbackURLs\":[\"https://main.mediavault.amplifyapp.com/\"],\"LogoutURLs\":[\"https://main.mediavault.amplifyapp.com/\"]}" + }, + { + "ParameterKey": "mfaTypes", + "ParameterValue": "SMS Text Message" + }, + { + "ParameterKey": "emailVerificationSubject", + "ParameterValue": "Your verification code" + }, + { + "ParameterKey": "sharedId", + "ParameterValue": "1f08412d" + }, + { + "ParameterKey": "useDefault", + "ParameterValue": "defaultSocial" + }, + { + "ParameterKey": "userpoolClientGenerateSecret", + "ParameterValue": "false" + }, + { + "ParameterKey": "mfaConfiguration", + "ParameterValue": "OFF" + }, + { + "ParameterKey": "identityPoolName", + "ParameterValue": "mediavault1f08412d_identitypool_1f08412d" + }, + { + "ParameterKey": "authProvidersUserPool", + "ParameterValue": "Facebook,Google" + }, + { + "ParameterKey": "userPoolGroupList", + "ParameterValue": "Admin,Basic" + }, + { + "ParameterKey": "authSelections", + "ParameterValue": "identityPoolAndUserPool" + }, + { + "ParameterKey": "resourceNameTruncated", + "ParameterValue": "mediav1f08412d" + }, + { + "ParameterKey": "smsAuthenticationMessage", + "ParameterValue": "Your authentication code is {####}" + }, + { + "ParameterKey": "passwordPolicyMinLength", + "ParameterValue": "8" + }, + { + "ParameterKey": "userPoolName", + "ParameterValue": "mediavault1f08412d_userpool_1f08412d" + }, + { + "ParameterKey": "hostedUIProviderMeta", + "ParameterValue": "[{\"ProviderName\":\"Facebook\",\"authorize_scopes\":\"email,public_profile\",\"AttributeMapping\":{\"email\":\"email\",\"username\":\"id\"}},{\"ProviderName\":\"Google\",\"authorize_scopes\":\"openid email profile\",\"AttributeMapping\":{\"email\":\"email\",\"username\":\"sub\"}}]" + }, + { + "ParameterKey": "userpoolClientWriteAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "dependsOn", + "ParameterValue": "" + }, + { + "ParameterKey": "useEnabledMfas", + "ParameterValue": "true" + }, + { + "ParameterKey": "usernameCaseSensitive", + "ParameterValue": "false" + }, + { + "ParameterKey": "resourceName", + "ParameterValue": "mediavault1f08412d" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "serviceName", + "ParameterValue": "Cognito" + }, + { + "ParameterKey": "emailVerificationMessage", + "ParameterValue": "Your verification code is {####}" + }, + { + "ParameterKey": "userpoolClientRefreshTokenValidity", + "ParameterValue": "30" + }, + { + "ParameterKey": "userpoolClientSetAttributes", + "ParameterValue": "false" + }, + { + "ParameterKey": "unauthRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-mediavault-x-x-unauthRole" + }, + { + "ParameterKey": "requiredAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "passwordPolicyCharacters", + "ParameterValue": "" + }, + { + "ParameterKey": "aliasAttributes", + "ParameterValue": "" + }, + { + "ParameterKey": "userpoolClientLambdaRole", + "ParameterValue": "mediav1f08412d_userpoolclient_lambda_role" + }, + { + "ParameterKey": "defaultPasswordPolicy", + "ParameterValue": "false" + }, + { + "ParameterKey": "hostedUIProviderCreds", + "ParameterValue": "****" + } +] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-authmediavault1f08412d-x.template.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-authmediavault1f08412d-x.template.json new file mode 100644 index 00000000000..9d767fca8a5 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-authmediavault1f08412d-x.template.json @@ -0,0 +1,864 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "identityPoolName": { + "Type": "String" + }, + "allowUnauthenticatedIdentities": { + "Type": "String" + }, + "resourceNameTruncated": { + "Type": "String" + }, + "userPoolName": { + "Type": "String" + }, + "autoVerifiedAttributes": { + "Type": "CommaDelimitedList" + }, + "mfaConfiguration": { + "Type": "String" + }, + "mfaTypes": { + "Type": "CommaDelimitedList" + }, + "smsAuthenticationMessage": { + "Type": "String" + }, + "smsVerificationMessage": { + "Type": "String" + }, + "emailVerificationSubject": { + "Type": "String" + }, + "emailVerificationMessage": { + "Type": "String" + }, + "defaultPasswordPolicy": { + "Type": "String" + }, + "passwordPolicyMinLength": { + "Type": "String" + }, + "passwordPolicyCharacters": { + "Type": "CommaDelimitedList" + }, + "requiredAttributes": { + "Type": "CommaDelimitedList" + }, + "aliasAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientGenerateSecret": { + "Type": "String" + }, + "userpoolClientRefreshTokenValidity": { + "Type": "String" + }, + "userpoolClientWriteAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientReadAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientLambdaRole": { + "Type": "String" + }, + "userpoolClientSetAttributes": { + "Type": "String" + }, + "sharedId": { + "Type": "String" + }, + "resourceName": { + "Type": "String" + }, + "authSelections": { + "Type": "String" + }, + "useDefault": { + "Type": "String" + }, + "hostedUI": { + "Type": "String" + }, + "usernameAttributes": { + "Type": "CommaDelimitedList" + }, + "hostedUIDomainName": { + "Type": "String" + }, + "authProvidersUserPool": { + "Type": "CommaDelimitedList" + }, + "hostedUIProviderMeta": { + "Type": "String" + }, + "userPoolGroupList": { + "Type": "CommaDelimitedList" + }, + "serviceName": { + "Type": "String" + }, + "usernameCaseSensitive": { + "Type": "String" + }, + "useEnabledMfas": { + "Type": "String" + }, + "authRoleArn": { + "Type": "String" + }, + "unauthRoleArn": { + "Type": "String" + }, + "breakCircularDependency": { + "Type": "String" + }, + "dependsOn": { + "Type": "CommaDelimitedList" + }, + "oAuthMetadata": { + "Type": "String" + }, + "hostedUIProviderCreds": { + "Type": "String", + "NoEcho": true + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + } + }, + "Resources": { + "UserPool": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": { + "Ref": "emailVerificationMessage" + }, + "EmailVerificationSubject": { + "Ref": "emailVerificationSubject" + }, + "MfaConfiguration": { + "Ref": "mfaConfiguration" + }, + "Policies": { + "PasswordPolicy": { + "MinimumLength": { + "Ref": "passwordPolicyMinLength" + }, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + { + "Ref": "userPoolName" + }, + { + "Fn::Join": [ + "", + [ + { + "Ref": "userPoolName" + }, + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "UsernameAttributes": { + "Ref": "usernameAttributes" + }, + "UsernameConfiguration": { + "CaseSensitive": false + } + } + }, + "UserPoolClientWeb": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlows": [ + "code" + ], + "AllowedOAuthFlowsUserPoolClient": true, + "AllowedOAuthScopes": [ + "phone", + "email", + "openid", + "profile", + "aws.cognito.signin.user.admin" + ], + "CallbackURLs": [ + "https://main.mediavault.amplifyapp.com/" + ], + "ClientName": "mediav1f08412d_app_clientWeb", + "LogoutURLs": [ + "https://main.mediavault.amplifyapp.com/" + ], + "RefreshTokenValidity": { + "Ref": "userpoolClientRefreshTokenValidity" + }, + "SupportedIdentityProviders": [ + "Facebook", + "Google", + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": { + "Ref": "UserPool" + } + }, + "DependsOn": [ + "HostedUIProvidersCustomResourceInputs", + "UserPool" + ] + }, + "UserPoolClient": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlows": [ + "code" + ], + "AllowedOAuthFlowsUserPoolClient": true, + "AllowedOAuthScopes": [ + "phone", + "email", + "openid", + "profile", + "aws.cognito.signin.user.admin" + ], + "CallbackURLs": [ + "https://main.mediavault.amplifyapp.com/" + ], + "ClientName": "mediav1f08412d_app_client", + "GenerateSecret": { + "Ref": "userpoolClientGenerateSecret" + }, + "LogoutURLs": [ + "https://main.mediavault.amplifyapp.com/" + ], + "RefreshTokenValidity": { + "Ref": "userpoolClientRefreshTokenValidity" + }, + "SupportedIdentityProviders": [ + "Facebook", + "Google", + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": { + "Ref": "UserPool" + } + }, + "DependsOn": [ + "HostedUIProvidersCustomResourceInputs", + "UserPool" + ] + }, + "UserPoolClientRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + }, + "Action": "sts:AssumeRole" + } + ] + }, + "RoleName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + { + "Ref": "userpoolClientLambdaRole" + }, + { + "Fn::Join": [ + "", + [ + "upClientLambdaRole1f08412d", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + { + "Ref": "AWS::StackName" + } + ] + } + ] + }, + "-", + { + "Ref": "env" + } + ] + ] + } + ] + } + } + }, + "HostedUICustomResource": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "ZipFile": "const response = require('cfn-response');\nconst {\n CognitoIdentityProviderClient,\n CreateUserPoolDomainCommand,\n DeleteUserPoolDomainCommand,\n DescribeUserPoolCommand,\n DescribeUserPoolDomainCommand,\n} = require('@aws-sdk/client-cognito-identity-provider');\nconst identity = new CognitoIdentityProviderClient({});\n\nexports.handler = (event, context) => {\n // Don't return promise, response.send() marks context as done internally\n void tryHandleEvent(event, context);\n};\n\nasync function tryHandleEvent(event, context) {\n try {\n await handleEvent(event);\n response.send(event, context, response.SUCCESS, {});\n } catch (err) {\n console.log(err);\n response.send(event, context, response.FAILED, { err });\n }\n}\n\nasync function handleEvent(event) {\n const userPoolId = event.ResourceProperties.userPoolId;\n const inputDomainName = event.ResourceProperties.hostedUIDomainName;\n if (event.RequestType === 'Delete') {\n await deleteUserPoolDomain(inputDomainName, userPoolId);\n } else if (event.RequestType === 'Update' || event.RequestType === 'Create') {\n await createOrUpdateDomain(inputDomainName, userPoolId);\n }\n}\n\nasync function checkDomainAvailability(domainName) {\n const params = { Domain: domainName };\n try {\n const res = await identity.send(new DescribeUserPoolDomainCommand(params));\n return !(res.DomainDescription && res.DomainDescription.UserPoolId);\n } catch (err) {\n return false;\n }\n}\n\nasync function deleteUserPoolDomain(domainName, userPoolId) {\n const params = { Domain: domainName, UserPoolId: userPoolId };\n await identity.send(new DeleteUserPoolDomainCommand(params));\n}\n\nasync function createUserPoolDomain(domainName, userPoolId) {\n const params = {\n Domain: domainName,\n UserPoolId: userPoolId,\n };\n await identity.send(new CreateUserPoolDomainCommand(params));\n}\n\nasync function createOrUpdateDomain(inputDomainName, userPoolId) {\n const result = await identity.send(new DescribeUserPoolCommand({ UserPoolId: userPoolId }));\n if (result.UserPool.Domain === inputDomainName) {\n // if existing domain is same as input domain do nothing.\n return;\n }\n if (inputDomainName) {\n // create new or replace existing domain.\n const isDomainAvailable = await checkDomainAvailability(inputDomainName);\n if (isDomainAvailable) {\n if (result.UserPool.Domain) {\n await deleteUserPoolDomain(result.UserPool.Domain, userPoolId);\n }\n await createUserPoolDomain(inputDomainName, userPoolId);\n } else {\n throw new Error('Domain not available');\n }\n } else if (result.UserPool.Domain) {\n // if input domain is undefined delete existing domain if exists.\n await deleteUserPoolDomain(result.UserPool.Domain, userPoolId);\n }\n}\n" + }, + "Handler": "index.handler", + "Role": { + "Fn::GetAtt": [ + "UserPoolClientRole", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Timeout": 300 + }, + "DependsOn": [ + "UserPoolClientRole" + ] + }, + "HostedUICustomResourcePolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "cognito-idp:CreateUserPoolDomain", + "cognito-idp:DescribeUserPool", + "cognito-idp:DeleteUserPoolDomain" + ], + "Resource": { + "Fn::GetAtt": [ + "UserPool", + "Arn" + ] + } + }, + { + "Effect": "Allow", + "Action": [ + "cognito-idp:DescribeUserPoolDomain" + ], + "Resource": "*" + } + ] + }, + "PolicyName": { + "Fn::Join": [ + "-", + [ + { + "Ref": "UserPool" + }, + { + "Ref": "hostedUI" + } + ] + ] + }, + "Roles": [ + { + "Ref": "UserPoolClientRole" + } + ] + }, + "DependsOn": [ + "HostedUICustomResource" + ] + }, + "HostedUICustomResourceLogPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "logs:CreateLogGroup", + "logs:CreateLogStream", + "logs:PutLogEvents" + ], + "Resource": { + "Fn::Sub": [ + "arn:aws:logs:${region}:${account}:log-group:/aws/lambda/${lambda}:log-stream:*", + { + "region": { + "Ref": "AWS::Region" + }, + "account": { + "Ref": "AWS::AccountId" + }, + "lambda": { + "Ref": "HostedUICustomResource" + } + } + ] + } + } + ] + }, + "PolicyName": { + "Fn::Join": [ + "-", + [ + { + "Ref": "UserPool" + }, + "hostedUILogPolicy" + ] + ] + }, + "Roles": [ + { + "Ref": "UserPoolClientRole" + } + ] + }, + "DependsOn": [ + "HostedUICustomResourcePolicy" + ] + }, + "HostedUICustomResourceInputs": { + "Type": "Custom::LambdaCallout", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "HostedUICustomResource", + "Arn" + ] + }, + "hostedUIDomainName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + { + "Ref": "hostedUIDomainName" + }, + { + "Fn::Join": [ + "-", + [ + { + "Ref": "hostedUIDomainName" + }, + { + "Ref": "env" + } + ] + ] + } + ] + }, + "userPoolId": { + "Ref": "UserPool" + } + }, + "DependsOn": [ + "HostedUICustomResourceLogPolicy" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "HostedUIProvidersCustomResource": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "ZipFile": "const response = require('cfn-response');\nconst {\n CognitoIdentityProviderClient,\n CreateIdentityProviderCommand,\n DeleteIdentityProviderCommand,\n ListIdentityProvidersCommand,\n UpdateIdentityProviderCommand,\n} = require('@aws-sdk/client-cognito-identity-provider');\nconst identity = new CognitoIdentityProviderClient({});\n\nexports.handler = (event, context) => {\n // Don't return promise, response.send() marks context as done internally\n void tryHandleEvent(event, context);\n};\n\nasync function tryHandleEvent(event, context) {\n try {\n await handleEvent(event);\n response.send(event, context, response.SUCCESS, {});\n } catch (err) {\n console.log(err.stack);\n response.send(event, context, response.FAILED, { err });\n }\n}\n\nasync function handleEvent(event) {\n const userPoolId = event.ResourceProperties.userPoolId;\n const hostedUIProviderMeta = JSON.parse(event.ResourceProperties.hostedUIProviderMeta);\n const hostedUIProviderCreds = JSON.parse(event.ResourceProperties.hostedUIProviderCreds);\n const hasHostedUIProviderCreds = hostedUIProviderCreds.length && hostedUIProviderCreds.length > 0;\n if (hasHostedUIProviderCreds && (event.RequestType === 'Update' || event.RequestType === 'Create')) {\n const listIdentityProvidersResponse = await identity.send(\n new ListIdentityProvidersCommand({\n UserPoolId: userPoolId,\n MaxResults: 60,\n }),\n );\n console.log(listIdentityProvidersResponse);\n const providerList = listIdentityProvidersResponse.Providers.map((provider) => provider.ProviderName);\n const providerListInParameters = hostedUIProviderMeta.map((provider) => provider.ProviderName);\n for (const providerMetadata of hostedUIProviderMeta) {\n if (providerList.indexOf(providerMetadata.ProviderName) > -1) {\n await updateIdentityProvider(providerMetadata.ProviderName, hostedUIProviderMeta, hostedUIProviderCreds, userPoolId);\n } else {\n await createIdentityProvider(providerMetadata.ProviderName, hostedUIProviderMeta, hostedUIProviderCreds, userPoolId);\n }\n }\n for (const provider of providerList) {\n if (providerListInParameters.indexOf(provider) < 0) {\n await deleteIdentityProvider(provider, userPoolId);\n }\n }\n }\n}\n\nfunction getRequestParams(providerName, hostedUIProviderMeta, hostedUIProviderCreds, userPoolId) {\n const providerMeta = hostedUIProviderMeta.find((provider) => provider.ProviderName === providerName);\n const providerCreds = hostedUIProviderCreds.find((provider) => provider.ProviderName === providerName);\n let requestParams = {\n ProviderName: providerMeta.ProviderName,\n UserPoolId: userPoolId,\n AttributeMapping: providerMeta.AttributeMapping,\n };\n if (providerMeta.ProviderName === 'SignInWithApple') {\n if (providerCreds.client_id && providerCreds.team_id && providerCreds.key_id && providerCreds.private_key) {\n requestParams.ProviderDetails = {\n client_id: providerCreds.client_id,\n team_id: providerCreds.team_id,\n key_id: providerCreds.key_id,\n private_key: providerCreds.private_key,\n authorize_scopes: providerMeta.authorize_scopes,\n };\n } else {\n requestParams = null;\n }\n } else {\n if (providerCreds.client_id && providerCreds.client_secret) {\n requestParams.ProviderDetails = {\n client_id: providerCreds.client_id,\n client_secret: providerCreds.client_secret,\n authorize_scopes: providerMeta.authorize_scopes,\n };\n } else {\n requestParams = null;\n }\n }\n return requestParams;\n}\n\nasync function createIdentityProvider(providerName, hostedUIProviderMeta, hostedUIProviderCreds, userPoolId) {\n const requestParams = getRequestParams(providerName, hostedUIProviderMeta, hostedUIProviderCreds, userPoolId);\n if (!requestParams) {\n return;\n }\n requestParams.ProviderType = requestParams.ProviderName;\n await identity.send(new CreateIdentityProviderCommand(requestParams));\n}\n\nasync function updateIdentityProvider(providerName, hostedUIProviderMeta, hostedUIProviderCreds, userPoolId) {\n const requestParams = getRequestParams(providerName, hostedUIProviderMeta, hostedUIProviderCreds, userPoolId);\n if (!requestParams) {\n return;\n }\n await identity.send(new UpdateIdentityProviderCommand(requestParams));\n}\n\nasync function deleteIdentityProvider(providerName, userPoolId) {\n const params = { ProviderName: providerName, UserPoolId: userPoolId };\n await identity.send(new DeleteIdentityProviderCommand(params));\n}\n" + }, + "Handler": "index.handler", + "Role": { + "Fn::GetAtt": [ + "UserPoolClientRole", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Timeout": 300 + }, + "DependsOn": [ + "UserPoolClientRole" + ] + }, + "HostedUIProvidersCustomResourcePolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "cognito-idp:CreateIdentityProvider", + "cognito-idp:UpdateIdentityProvider", + "cognito-idp:ListIdentityProviders", + "cognito-idp:DeleteIdentityProvider" + ], + "Resource": { + "Fn::GetAtt": [ + "UserPool", + "Arn" + ] + } + }, + { + "Effect": "Allow", + "Action": [ + "cognito-idp:DescribeUserPoolDomain" + ], + "Resource": "*" + } + ] + }, + "PolicyName": { + "Fn::Join": [ + "-", + [ + { + "Ref": "UserPool" + }, + "hostedUIProvider" + ] + ] + }, + "Roles": [ + { + "Ref": "UserPoolClientRole" + } + ] + }, + "DependsOn": [ + "HostedUIProvidersCustomResource" + ] + }, + "HostedUIProvidersCustomResourceLogPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "logs:CreateLogGroup", + "logs:CreateLogStream", + "logs:PutLogEvents" + ], + "Resource": { + "Fn::Sub": [ + "arn:aws:logs:${region}:${account}:log-group:/aws/lambda/${lambda}:log-stream:*", + { + "region": { + "Ref": "AWS::Region" + }, + "account": { + "Ref": "AWS::AccountId" + }, + "lambda": { + "Ref": "HostedUIProvidersCustomResource" + } + } + ] + } + } + ] + }, + "PolicyName": { + "Fn::Join": [ + "-", + [ + { + "Ref": "UserPool" + }, + "hostedUIProviderLogPolicy" + ] + ] + }, + "Roles": [ + { + "Ref": "UserPoolClientRole" + } + ] + }, + "DependsOn": [ + "HostedUIProvidersCustomResourcePolicy" + ] + }, + "HostedUIProvidersCustomResourceInputs": { + "Type": "Custom::LambdaCallout", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "HostedUIProvidersCustomResource", + "Arn" + ] + }, + "hostedUIProviderMeta": { + "Ref": "hostedUIProviderMeta" + }, + "hostedUIProviderCreds": { + "Ref": "hostedUIProviderCreds" + }, + "userPoolId": { + "Ref": "UserPool" + } + }, + "DependsOn": [ + "HostedUIProvidersCustomResourceLogPolicy" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "IdentityPool": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": { + "Ref": "allowUnauthenticatedIdentities" + }, + "CognitoIdentityProviders": [ + { + "ClientId": { + "Ref": "UserPoolClient" + }, + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": { + "Ref": "UserPool" + } + } + ] + } + }, + { + "ClientId": { + "Ref": "UserPoolClientWeb" + }, + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": { + "Ref": "UserPool" + } + } + ] + } + } + ], + "IdentityPoolName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "mediavault1f08412d_identitypool_1f08412d", + { + "Fn::Join": [ + "", + [ + "mediavault1f08412d_identitypool_1f08412d__", + { + "Ref": "env" + } + ] + ] + } + ] + } + } + }, + "IdentityPoolRoleMap": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": { + "Ref": "IdentityPool" + }, + "RoleMappings": { + "UserPoolClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${userPool}:${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "userPool": { + "Ref": "UserPool" + }, + "client": { + "Ref": "UserPoolClient" + } + } + ] + }, + "Type": "Token" + }, + "UserPoolWebClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${userPool}:${webClient}", + { + "region": { + "Ref": "AWS::Region" + }, + "userPool": { + "Ref": "UserPool" + }, + "webClient": { + "Ref": "UserPoolClientWeb" + } + } + ] + }, + "Type": "Token" + } + }, + "Roles": { + "unauthenticated": { + "Ref": "unauthRoleArn" + }, + "authenticated": { + "Ref": "authRoleArn" + } + } + }, + "DependsOn": [ + "IdentityPool", + "UserPoolClient", + "UserPoolClientWeb" + ] + } + }, + "Outputs": { + "IdentityPoolId": { + "Description": "Id for the identity pool", + "Value": { + "Ref": "IdentityPool" + } + }, + "IdentityPoolName": { + "Value": { + "Fn::GetAtt": [ + "IdentityPool", + "Name" + ] + } + }, + "HostedUIDomain": { + "Value": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + { + "Ref": "hostedUIDomainName" + }, + { + "Fn::Join": [ + "-", + [ + { + "Ref": "hostedUIDomainName" + }, + { + "Ref": "env" + } + ] + ] + } + ] + } + }, + "OAuthMetadata": { + "Value": { + "Ref": "oAuthMetadata" + } + }, + "UserPoolId": { + "Description": "Id for the user pool", + "Value": { + "Ref": "UserPool" + } + }, + "UserPoolArn": { + "Description": "Arn for the user pool", + "Value": { + "Fn::GetAtt": [ + "UserPool", + "Arn" + ] + } + }, + "UserPoolName": { + "Value": { + "Ref": "userPoolName" + } + }, + "AppClientIDWeb": { + "Description": "The user pool app client id for web", + "Value": { + "Ref": "UserPoolClientWeb" + } + }, + "AppClientID": { + "Description": "The user pool app client id", + "Value": { + "Ref": "UserPoolClient" + } + } + } +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-authuserPoolGroups-x.description.txt b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-authuserPoolGroups-x.description.txt new file mode 100644 index 00000000000..7bbda7a42c1 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-authuserPoolGroups-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"auth-Cognito-UserPool-Groups","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-authuserPoolGroups-x.outputs.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-authuserPoolGroups-x.outputs.json new file mode 100644 index 00000000000..31d1c728186 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-authuserPoolGroups-x.outputs.json @@ -0,0 +1,10 @@ +[ + { + "OutputKey": "BasicGroupRole", + "OutputValue": "arn:aws:iam::123456789012:role/us-east-1_baREhKWox-BasicGroupRole" + }, + { + "OutputKey": "AdminGroupRole", + "OutputValue": "arn:aws:iam::123456789012:role/us-east-1_baREhKWox-AdminGroupRole" + } +] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-authuserPoolGroups-x.parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-authuserPoolGroups-x.parameters.json new file mode 100644 index 00000000000..4dc6acaaa71 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-authuserPoolGroups-x.parameters.json @@ -0,0 +1,30 @@ +[ + { + "ParameterKey": "UnauthRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-mediavault-x-x-unauthRole" + }, + { + "ParameterKey": "authmediavault1f08412dIdentityPoolId", + "ParameterValue": "us-east-1:7f08778b-539e-436f-aaed-39d08e6d137d" + }, + { + "ParameterKey": "authmediavault1f08412dAppClientID", + "ParameterValue": "60ue3s3252ikds42onj76mjnh4" + }, + { + "ParameterKey": "AuthRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-mediavault-x-x-authRole" + }, + { + "ParameterKey": "authmediavault1f08412dUserPoolId", + "ParameterValue": "us-east-1_baREhKWox" + }, + { + "ParameterKey": "authmediavault1f08412dAppClientIDWeb", + "ParameterValue": "2pfv0bgj28j0f7mdi2u06kdggv" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + } +] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-authuserPoolGroups-x.template.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-authuserPoolGroups-x.template.json new file mode 100644 index 00000000000..0476fd1c24a --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-authuserPoolGroups-x.template.json @@ -0,0 +1,173 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito-UserPool-Groups\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "AuthRoleArn": { + "Type": "String" + }, + "UnauthRoleArn": { + "Type": "String" + }, + "authmediavault1f08412dUserPoolId": { + "Type": "String", + "Default": "authmediavault1f08412dUserPoolId" + }, + "authmediavault1f08412dIdentityPoolId": { + "Type": "String", + "Default": "authmediavault1f08412dIdentityPoolId" + }, + "authmediavault1f08412dAppClientID": { + "Type": "String", + "Default": "authmediavault1f08412dAppClientID" + }, + "authmediavault1f08412dAppClientIDWeb": { + "Type": "String", + "Default": "authmediavault1f08412dAppClientIDWeb" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + } + }, + "Resources": { + "AdminGroup": { + "Type": "AWS::Cognito::UserPoolGroup", + "Properties": { + "Description": "override success", + "GroupName": "Admin", + "Precedence": 1, + "RoleArn": { + "Fn::GetAtt": [ + "AdminGroupRole", + "Arn" + ] + }, + "UserPoolId": { + "Ref": "authmediavault1f08412dUserPoolId" + } + } + }, + "AdminGroupRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Sid": "", + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + }, + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": { + "Ref": "authmediavault1f08412dIdentityPoolId" + } + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + } + } + ] + }, + "RoleName": { + "Fn::Join": [ + "", + [ + { + "Ref": "authmediavault1f08412dUserPoolId" + }, + "-AdminGroupRole" + ] + ] + } + } + }, + "BasicGroup": { + "Type": "AWS::Cognito::UserPoolGroup", + "Properties": { + "Description": "override success", + "GroupName": "Basic", + "Precedence": 2, + "RoleArn": { + "Fn::GetAtt": [ + "BasicGroupRole", + "Arn" + ] + }, + "UserPoolId": { + "Ref": "authmediavault1f08412dUserPoolId" + } + } + }, + "BasicGroupRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Sid": "", + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + }, + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": { + "Ref": "authmediavault1f08412dIdentityPoolId" + } + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + } + } + ] + }, + "RoleName": { + "Fn::Join": [ + "", + [ + { + "Ref": "authmediavault1f08412dUserPoolId" + }, + "-BasicGroupRole" + ] + ] + } + } + } + }, + "Outputs": { + "AdminGroupRole": { + "Value": { + "Fn::GetAtt": [ + "AdminGroupRole", + "Arn" + ] + } + }, + "BasicGroupRole": { + "Value": { + "Fn::GetAtt": [ + "BasicGroupRole", + "Arn" + ] + } + } + } +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-functionaddusertogroup-x.description.txt b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-functionaddusertogroup-x.description.txt new file mode 100644 index 00000000000..6cc2b5048c0 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-functionaddusertogroup-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"function-Lambda","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-functionaddusertogroup-x.outputs.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-functionaddusertogroup-x.outputs.json new file mode 100644 index 00000000000..e7ee1d277ce --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-functionaddusertogroup-x.outputs.json @@ -0,0 +1,22 @@ +[ + { + "OutputKey": "LambdaExecutionRoleArn", + "OutputValue": "arn:aws:iam::123456789012:role/mediavaultLambdaRole7cc84196-x" + }, + { + "OutputKey": "Region", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "Arn", + "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:addusertogroup-x" + }, + { + "OutputKey": "Name", + "OutputValue": "addusertogroup-x" + }, + { + "OutputKey": "LambdaExecutionRole", + "OutputValue": "mediavaultLambdaRole7cc84196-x" + } +] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-functionaddusertogroup-x.parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-functionaddusertogroup-x.parameters.json new file mode 100644 index 00000000000..46eeaa4dda7 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-functionaddusertogroup-x.parameters.json @@ -0,0 +1,22 @@ +[ + { + "ParameterKey": "CloudWatchRule", + "ParameterValue": "NONE" + }, + { + "ParameterKey": "s3Key", + "ParameterValue": "amplify-builds/addusertogroup-374b6158625065387750-build.zip" + }, + { + "ParameterKey": "deploymentBucketName", + "ParameterValue": "amplify-mediavault-x-x-deployment" + }, + { + "ParameterKey": "authmediavault1f08412dUserPoolId", + "ParameterValue": "us-east-1_baREhKWox" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + } +] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-functionaddusertogroup-x.template.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-functionaddusertogroup-x.template.json new file mode 100644 index 00000000000..b4b96ba02fb --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-functionaddusertogroup-x.template.json @@ -0,0 +1,335 @@ +{ + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Parameters": { + "CloudWatchRule": { + "Type": "String", + "Default": "NONE", + "Description": " Schedule Expression" + }, + "deploymentBucketName": { + "Type": "String" + }, + "env": { + "Type": "String" + }, + "s3Key": { + "Type": "String" + }, + "authmediavault1f08412dUserPoolId": { + "Type": "String", + "Default": "authmediavault1f08412dUserPoolId" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + } + }, + "Resources": { + "LambdaFunction": { + "Type": "AWS::Lambda::Function", + "Metadata": { + "aws:asset:path": "./src", + "aws:asset:property": "Code" + }, + "Properties": { + "Code": { + "S3Bucket": { + "Ref": "deploymentBucketName" + }, + "S3Key": { + "Ref": "s3Key" + } + }, + "Handler": "index.handler", + "FunctionName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "addusertogroup", + { + "Fn::Join": [ + "", + [ + "addusertogroup", + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "Environment": { + "Variables": { + "ENV": { + "Ref": "env" + }, + "REGION": { + "Ref": "AWS::Region" + }, + "AUTH_MEDIAVAULT1F08412D_USERPOOLID": { + "Ref": "authmediavault1f08412dUserPoolId" + } + } + }, + "Role": { + "Fn::GetAtt": [ + "LambdaExecutionRole", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Layers": [], + "Timeout": 25 + } + }, + "LambdaExecutionRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "RoleName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "mediavaultLambdaRole7cc84196", + { + "Fn::Join": [ + "", + [ + "mediavaultLambdaRole7cc84196", + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": [ + "lambda.amazonaws.com" + ] + }, + "Action": [ + "sts:AssumeRole" + ] + } + ] + } + } + }, + "lambdaexecutionpolicy": { + "DependsOn": [ + "LambdaExecutionRole" + ], + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyName": "lambda-execution-policy", + "Roles": [ + { + "Ref": "LambdaExecutionRole" + } + ], + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "logs:CreateLogGroup", + "logs:CreateLogStream", + "logs:PutLogEvents" + ], + "Resource": { + "Fn::Sub": [ + "arn:aws:logs:${region}:${account}:log-group:/aws/lambda/${lambda}:log-stream:*", + { + "region": { + "Ref": "AWS::Region" + }, + "account": { + "Ref": "AWS::AccountId" + }, + "lambda": { + "Ref": "LambdaFunction" + } + } + ] + } + } + ] + } + } + }, + "AmplifyResourcesPolicy": { + "DependsOn": [ + "LambdaExecutionRole" + ], + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyName": "amplify-lambda-execution-policy", + "Roles": [ + { + "Ref": "LambdaExecutionRole" + } + ], + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "cognito-idp:ConfirmSignUp", + "cognito-idp:AdminCreateUser", + "cognito-idp:CreateUserImportJob", + "cognito-idp:AdminSetUserSettings", + "cognito-idp:AdminLinkProviderForUser", + "cognito-idp:CreateIdentityProvider", + "cognito-idp:AdminConfirmSignUp", + "cognito-idp:AdminDisableUser", + "cognito-idp:AdminRemoveUserFromGroup", + "cognito-idp:SetUserMFAPreference", + "cognito-idp:SetUICustomization", + "cognito-idp:SignUp", + "cognito-idp:VerifyUserAttribute", + "cognito-idp:SetRiskConfiguration", + "cognito-idp:StartUserImportJob", + "cognito-idp:AdminSetUserPassword", + "cognito-idp:AssociateSoftwareToken", + "cognito-idp:CreateResourceServer", + "cognito-idp:RespondToAuthChallenge", + "cognito-idp:CreateUserPoolClient", + "cognito-idp:AdminUserGlobalSignOut", + "cognito-idp:GlobalSignOut", + "cognito-idp:AddCustomAttributes", + "cognito-idp:CreateGroup", + "cognito-idp:CreateUserPool", + "cognito-idp:AdminForgetDevice", + "cognito-idp:AdminAddUserToGroup", + "cognito-idp:AdminRespondToAuthChallenge", + "cognito-idp:ForgetDevice", + "cognito-idp:CreateUserPoolDomain", + "cognito-idp:AdminEnableUser", + "cognito-idp:AdminUpdateDeviceStatus", + "cognito-idp:StopUserImportJob", + "cognito-idp:InitiateAuth", + "cognito-idp:AdminInitiateAuth", + "cognito-idp:AdminSetUserMFAPreference", + "cognito-idp:ConfirmForgotPassword", + "cognito-idp:SetUserSettings", + "cognito-idp:VerifySoftwareToken", + "cognito-idp:AdminDisableProviderForUser", + "cognito-idp:SetUserPoolMfaConfig", + "cognito-idp:ChangePassword", + "cognito-idp:ConfirmDevice", + "cognito-idp:AdminResetUserPassword", + "cognito-idp:ResendConfirmationCode", + "cognito-identity:Describe*", + "cognito-identity:Get*", + "cognito-identity:List*", + "cognito-idp:Describe*", + "cognito-idp:AdminGetDevice", + "cognito-idp:AdminGetUser", + "cognito-idp:AdminList*", + "cognito-idp:List*", + "cognito-sync:Describe*", + "cognito-sync:Get*", + "cognito-sync:List*", + "iam:ListOpenIdConnectProviders", + "iam:ListRoles", + "sns:ListPlatformApplications", + "cognito-idp:ForgotPassword", + "cognito-idp:UpdateAuthEventFeedback", + "cognito-idp:UpdateResourceServer", + "cognito-idp:UpdateUserPoolClient", + "cognito-idp:AdminUpdateUserAttributes", + "cognito-idp:UpdateUserAttributes", + "cognito-idp:UpdateUserPoolDomain", + "cognito-idp:UpdateIdentityProvider", + "cognito-idp:UpdateGroup", + "cognito-idp:AdminUpdateAuthEventFeedback", + "cognito-idp:UpdateDeviceStatus", + "cognito-idp:UpdateUserPool", + "cognito-idp:DeleteUserPoolDomain", + "cognito-idp:DeleteResourceServer", + "cognito-idp:DeleteGroup", + "cognito-idp:AdminDeleteUserAttributes", + "cognito-idp:DeleteUserPoolClient", + "cognito-idp:DeleteUserAttributes", + "cognito-idp:DeleteUserPool", + "cognito-idp:AdminDeleteUser", + "cognito-idp:DeleteIdentityProvider", + "cognito-idp:DeleteUser" + ], + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:cognito-idp:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":userpool/", + { + "Ref": "authmediavault1f08412dUserPoolId" + } + ] + ] + } + ] + } + ] + } + } + } + }, + "Outputs": { + "Name": { + "Value": { + "Ref": "LambdaFunction" + } + }, + "Arn": { + "Value": { + "Fn::GetAtt": [ + "LambdaFunction", + "Arn" + ] + } + }, + "Region": { + "Value": { + "Ref": "AWS::Region" + } + }, + "LambdaExecutionRole": { + "Value": { + "Ref": "LambdaExecutionRole" + } + }, + "LambdaExecutionRoleArn": { + "Value": { + "Fn::GetAtt": [ + "LambdaExecutionRole", + "Arn" + ] + } + } + } +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-functionremoveuserfromgroup-x.description.txt b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-functionremoveuserfromgroup-x.description.txt new file mode 100644 index 00000000000..6cc2b5048c0 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-functionremoveuserfromgroup-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"function-Lambda","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-functionremoveuserfromgroup-x.outputs.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-functionremoveuserfromgroup-x.outputs.json new file mode 100644 index 00000000000..c54c95288ea --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-functionremoveuserfromgroup-x.outputs.json @@ -0,0 +1,22 @@ +[ + { + "OutputKey": "LambdaExecutionRoleArn", + "OutputValue": "arn:aws:iam::123456789012:role/mediavaultLambdaRoleeab71492-x" + }, + { + "OutputKey": "Region", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "Arn", + "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:removeuserfromgroup-x" + }, + { + "OutputKey": "Name", + "OutputValue": "removeuserfromgroup-x" + }, + { + "OutputKey": "LambdaExecutionRole", + "OutputValue": "mediavaultLambdaRoleeab71492-x" + } +] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-functionremoveuserfromgroup-x.parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-functionremoveuserfromgroup-x.parameters.json new file mode 100644 index 00000000000..33488dd5979 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-functionremoveuserfromgroup-x.parameters.json @@ -0,0 +1,22 @@ +[ + { + "ParameterKey": "CloudWatchRule", + "ParameterValue": "NONE" + }, + { + "ParameterKey": "s3Key", + "ParameterValue": "amplify-builds/removeuserfromgroup-6d6f39557861676c6c56-build.zip" + }, + { + "ParameterKey": "deploymentBucketName", + "ParameterValue": "amplify-mediavault-x-x-deployment" + }, + { + "ParameterKey": "authmediavault1f08412dUserPoolId", + "ParameterValue": "us-east-1_baREhKWox" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + } +] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-functionremoveuserfromgroup-x.template.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-functionremoveuserfromgroup-x.template.json new file mode 100644 index 00000000000..eae4e1d0ff8 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-functionremoveuserfromgroup-x.template.json @@ -0,0 +1,335 @@ +{ + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Parameters": { + "CloudWatchRule": { + "Type": "String", + "Default": "NONE", + "Description": " Schedule Expression" + }, + "deploymentBucketName": { + "Type": "String" + }, + "env": { + "Type": "String" + }, + "s3Key": { + "Type": "String" + }, + "authmediavault1f08412dUserPoolId": { + "Type": "String", + "Default": "authmediavault1f08412dUserPoolId" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + } + }, + "Resources": { + "LambdaFunction": { + "Type": "AWS::Lambda::Function", + "Metadata": { + "aws:asset:path": "./src", + "aws:asset:property": "Code" + }, + "Properties": { + "Code": { + "S3Bucket": { + "Ref": "deploymentBucketName" + }, + "S3Key": { + "Ref": "s3Key" + } + }, + "Handler": "index.handler", + "FunctionName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "removeuserfromgroup", + { + "Fn::Join": [ + "", + [ + "removeuserfromgroup", + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "Environment": { + "Variables": { + "ENV": { + "Ref": "env" + }, + "REGION": { + "Ref": "AWS::Region" + }, + "AUTH_MEDIAVAULT1F08412D_USERPOOLID": { + "Ref": "authmediavault1f08412dUserPoolId" + } + } + }, + "Role": { + "Fn::GetAtt": [ + "LambdaExecutionRole", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Layers": [], + "Timeout": 25 + } + }, + "LambdaExecutionRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "RoleName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "mediavaultLambdaRoleeab71492", + { + "Fn::Join": [ + "", + [ + "mediavaultLambdaRoleeab71492", + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": [ + "lambda.amazonaws.com" + ] + }, + "Action": [ + "sts:AssumeRole" + ] + } + ] + } + } + }, + "lambdaexecutionpolicy": { + "DependsOn": [ + "LambdaExecutionRole" + ], + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyName": "lambda-execution-policy", + "Roles": [ + { + "Ref": "LambdaExecutionRole" + } + ], + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "logs:CreateLogGroup", + "logs:CreateLogStream", + "logs:PutLogEvents" + ], + "Resource": { + "Fn::Sub": [ + "arn:aws:logs:${region}:${account}:log-group:/aws/lambda/${lambda}:log-stream:*", + { + "region": { + "Ref": "AWS::Region" + }, + "account": { + "Ref": "AWS::AccountId" + }, + "lambda": { + "Ref": "LambdaFunction" + } + } + ] + } + } + ] + } + } + }, + "AmplifyResourcesPolicy": { + "DependsOn": [ + "LambdaExecutionRole" + ], + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyName": "amplify-lambda-execution-policy", + "Roles": [ + { + "Ref": "LambdaExecutionRole" + } + ], + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "cognito-idp:ConfirmSignUp", + "cognito-idp:AdminCreateUser", + "cognito-idp:CreateUserImportJob", + "cognito-idp:AdminSetUserSettings", + "cognito-idp:AdminLinkProviderForUser", + "cognito-idp:CreateIdentityProvider", + "cognito-idp:AdminConfirmSignUp", + "cognito-idp:AdminDisableUser", + "cognito-idp:AdminRemoveUserFromGroup", + "cognito-idp:SetUserMFAPreference", + "cognito-idp:SetUICustomization", + "cognito-idp:SignUp", + "cognito-idp:VerifyUserAttribute", + "cognito-idp:SetRiskConfiguration", + "cognito-idp:StartUserImportJob", + "cognito-idp:AdminSetUserPassword", + "cognito-idp:AssociateSoftwareToken", + "cognito-idp:CreateResourceServer", + "cognito-idp:RespondToAuthChallenge", + "cognito-idp:CreateUserPoolClient", + "cognito-idp:AdminUserGlobalSignOut", + "cognito-idp:GlobalSignOut", + "cognito-idp:AddCustomAttributes", + "cognito-idp:CreateGroup", + "cognito-idp:CreateUserPool", + "cognito-idp:AdminForgetDevice", + "cognito-idp:AdminAddUserToGroup", + "cognito-idp:AdminRespondToAuthChallenge", + "cognito-idp:ForgetDevice", + "cognito-idp:CreateUserPoolDomain", + "cognito-idp:AdminEnableUser", + "cognito-idp:AdminUpdateDeviceStatus", + "cognito-idp:StopUserImportJob", + "cognito-idp:InitiateAuth", + "cognito-idp:AdminInitiateAuth", + "cognito-idp:AdminSetUserMFAPreference", + "cognito-idp:ConfirmForgotPassword", + "cognito-idp:SetUserSettings", + "cognito-idp:VerifySoftwareToken", + "cognito-idp:AdminDisableProviderForUser", + "cognito-idp:SetUserPoolMfaConfig", + "cognito-idp:ChangePassword", + "cognito-idp:ConfirmDevice", + "cognito-idp:AdminResetUserPassword", + "cognito-idp:ResendConfirmationCode", + "cognito-identity:Describe*", + "cognito-identity:Get*", + "cognito-identity:List*", + "cognito-idp:Describe*", + "cognito-idp:AdminGetDevice", + "cognito-idp:AdminGetUser", + "cognito-idp:AdminList*", + "cognito-idp:List*", + "cognito-sync:Describe*", + "cognito-sync:Get*", + "cognito-sync:List*", + "iam:ListOpenIdConnectProviders", + "iam:ListRoles", + "sns:ListPlatformApplications", + "cognito-idp:ForgotPassword", + "cognito-idp:UpdateAuthEventFeedback", + "cognito-idp:UpdateResourceServer", + "cognito-idp:UpdateUserPoolClient", + "cognito-idp:AdminUpdateUserAttributes", + "cognito-idp:UpdateUserAttributes", + "cognito-idp:UpdateUserPoolDomain", + "cognito-idp:UpdateIdentityProvider", + "cognito-idp:UpdateGroup", + "cognito-idp:AdminUpdateAuthEventFeedback", + "cognito-idp:UpdateDeviceStatus", + "cognito-idp:UpdateUserPool", + "cognito-idp:DeleteUserPoolDomain", + "cognito-idp:DeleteResourceServer", + "cognito-idp:DeleteGroup", + "cognito-idp:AdminDeleteUserAttributes", + "cognito-idp:DeleteUserPoolClient", + "cognito-idp:DeleteUserAttributes", + "cognito-idp:DeleteUserPool", + "cognito-idp:AdminDeleteUser", + "cognito-idp:DeleteIdentityProvider", + "cognito-idp:DeleteUser" + ], + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:cognito-idp:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":userpool/", + { + "Ref": "authmediavault1f08412dUserPoolId" + } + ] + ] + } + ] + } + ] + } + } + } + }, + "Outputs": { + "Name": { + "Value": { + "Ref": "LambdaFunction" + } + }, + "Arn": { + "Value": { + "Fn::GetAtt": [ + "LambdaFunction", + "Arn" + ] + } + }, + "Region": { + "Value": { + "Ref": "AWS::Region" + } + }, + "LambdaExecutionRole": { + "Value": { + "Ref": "LambdaExecutionRole" + } + }, + "LambdaExecutionRoleArn": { + "Value": { + "Fn::GetAtt": [ + "LambdaExecutionRole", + "Arn" + ] + } + } + } +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-functionthumbnailgen-x.description.txt b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-functionthumbnailgen-x.description.txt new file mode 100644 index 00000000000..6cc2b5048c0 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-functionthumbnailgen-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"function-Lambda","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-functionthumbnailgen-x.outputs.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-functionthumbnailgen-x.outputs.json new file mode 100644 index 00000000000..9a44682083a --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-functionthumbnailgen-x.outputs.json @@ -0,0 +1,22 @@ +[ + { + "OutputKey": "LambdaExecutionRoleArn", + "OutputValue": "arn:aws:iam::123456789012:role/mediavaultLambdaRolefe3fe5ce-x" + }, + { + "OutputKey": "Region", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "Arn", + "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:thumbnailgen-x" + }, + { + "OutputKey": "Name", + "OutputValue": "thumbnailgen-x" + }, + { + "OutputKey": "LambdaExecutionRole", + "OutputValue": "mediavaultLambdaRolefe3fe5ce-x" + } +] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-functionthumbnailgen-x.parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-functionthumbnailgen-x.parameters.json new file mode 100644 index 00000000000..f2c00189ff5 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-functionthumbnailgen-x.parameters.json @@ -0,0 +1,22 @@ +[ + { + "ParameterKey": "CloudWatchRule", + "ParameterValue": "NONE" + }, + { + "ParameterKey": "storagemediavaultBucketName", + "ParameterValue": "mediavaultb574f210f1634e3a8d1934f263da5bedx-x" + }, + { + "ParameterKey": "s3Key", + "ParameterValue": "amplify-builds/thumbnailgen-714677357a74314e2b59-build.zip" + }, + { + "ParameterKey": "deploymentBucketName", + "ParameterValue": "amplify-mediavault-x-x-deployment" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + } +] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-functionthumbnailgen-x.template.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-functionthumbnailgen-x.template.json new file mode 100644 index 00000000000..20b4ca8a188 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-functionthumbnailgen-x.template.json @@ -0,0 +1,267 @@ +{ + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Parameters": { + "CloudWatchRule": { + "Type": "String", + "Default": "NONE", + "Description": " Schedule Expression" + }, + "deploymentBucketName": { + "Type": "String" + }, + "env": { + "Type": "String" + }, + "s3Key": { + "Type": "String" + }, + "storagemediavaultBucketName": { + "Type": "String", + "Default": "storagemediavaultBucketName" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + } + }, + "Resources": { + "LambdaFunction": { + "Type": "AWS::Lambda::Function", + "Metadata": { + "aws:asset:path": "./src", + "aws:asset:property": "Code" + }, + "Properties": { + "Code": { + "S3Bucket": { + "Ref": "deploymentBucketName" + }, + "S3Key": { + "Ref": "s3Key" + } + }, + "Handler": "index.handler", + "FunctionName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "thumbnailgen", + { + "Fn::Join": [ + "", + [ + "thumbnailgen", + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "Environment": { + "Variables": { + "ENV": { + "Ref": "env" + }, + "REGION": { + "Ref": "AWS::Region" + }, + "STORAGE_MEDIAVAULT_BUCKETNAME": { + "Ref": "storagemediavaultBucketName" + } + } + }, + "Role": { + "Fn::GetAtt": [ + "LambdaExecutionRole", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Layers": [], + "Timeout": 25 + } + }, + "LambdaExecutionRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "RoleName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "mediavaultLambdaRolefe3fe5ce", + { + "Fn::Join": [ + "", + [ + "mediavaultLambdaRolefe3fe5ce", + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": [ + "lambda.amazonaws.com" + ] + }, + "Action": [ + "sts:AssumeRole" + ] + } + ] + } + } + }, + "lambdaexecutionpolicy": { + "DependsOn": [ + "LambdaExecutionRole" + ], + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyName": "lambda-execution-policy", + "Roles": [ + { + "Ref": "LambdaExecutionRole" + } + ], + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "logs:CreateLogGroup", + "logs:CreateLogStream", + "logs:PutLogEvents" + ], + "Resource": { + "Fn::Sub": [ + "arn:aws:logs:${region}:${account}:log-group:/aws/lambda/${lambda}:log-stream:*", + { + "region": { + "Ref": "AWS::Region" + }, + "account": { + "Ref": "AWS::AccountId" + }, + "lambda": { + "Ref": "LambdaFunction" + } + } + ] + } + } + ] + } + } + }, + "AmplifyResourcesPolicy": { + "DependsOn": [ + "LambdaExecutionRole" + ], + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyName": "amplify-lambda-execution-policy", + "Roles": [ + { + "Ref": "LambdaExecutionRole" + } + ], + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": "s3:ListBucket", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "storagemediavaultBucketName" + } + ] + ] + } + ] + }, + { + "Effect": "Allow", + "Action": [ + "s3:PutObject", + "s3:GetObject", + "s3:DeleteObject" + ], + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "storagemediavaultBucketName" + }, + "/*" + ] + ] + } + ] + } + ] + } + } + } + }, + "Outputs": { + "Name": { + "Value": { + "Ref": "LambdaFunction" + } + }, + "Arn": { + "Value": { + "Fn::GetAtt": [ + "LambdaFunction", + "Arn" + ] + } + }, + "Region": { + "Value": { + "Ref": "AWS::Region" + } + }, + "LambdaExecutionRole": { + "Value": { + "Ref": "LambdaExecutionRole" + } + }, + "LambdaExecutionRoleArn": { + "Value": { + "Fn::GetAtt": [ + "LambdaExecutionRole", + "Arn" + ] + } + } + } +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-storagemediavault-x.description.txt b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-storagemediavault-x.description.txt new file mode 100644 index 00000000000..e01eac85f24 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-storagemediavault-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"storage-S3","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-storagemediavault-x.outputs.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-storagemediavault-x.outputs.json new file mode 100644 index 00000000000..ea9cb6b76d4 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-storagemediavault-x.outputs.json @@ -0,0 +1,11 @@ +[ + { + "OutputKey": "BucketName", + "OutputValue": "mediavaultb574f210f1634e3a8d1934f263da5bedx-x", + "Description": "Bucket name for the S3 bucket" + }, + { + "OutputKey": "Region", + "OutputValue": "us-east-1" + } +] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-storagemediavault-x.parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-storagemediavault-x.parameters.json new file mode 100644 index 00000000000..3f5df88bccb --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-storagemediavault-x.parameters.json @@ -0,0 +1,98 @@ +[ + { + "ParameterKey": "s3PermissionsGuestPublic", + "ParameterValue": "s3:GetObject" + }, + { + "ParameterKey": "bucketName", + "ParameterValue": "mediavaultb574f210f1634e3a8d1934f263da5bed" + }, + { + "ParameterKey": "s3PublicPolicy", + "ParameterValue": "Public_policy_d399ab0f" + }, + { + "ParameterKey": "AuthenticatedAllowList", + "ParameterValue": "ALLOW" + }, + { + "ParameterKey": "unauthRoleName", + "ParameterValue": "amplify-mediavault-x-x-unauthRole" + }, + { + "ParameterKey": "s3PrivatePolicy", + "ParameterValue": "Private_policy_d399ab0f" + }, + { + "ParameterKey": "selectedGuestPermissions", + "ParameterValue": "s3:GetObject,s3:ListBucket" + }, + { + "ParameterKey": "s3PermissionsAuthenticatedPublic", + "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" + }, + { + "ParameterKey": "s3PermissionsAuthenticatedUploads", + "ParameterValue": "s3:PutObject" + }, + { + "ParameterKey": "s3PermissionsAuthenticatedPrivate", + "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" + }, + { + "ParameterKey": "s3UploadsPolicy", + "ParameterValue": "Uploads_policy_d399ab0f" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "authuserPoolGroupsAdminGroupRole", + "ParameterValue": "arn:aws:iam::123456789012:role/us-east-1_baREhKWox-AdminGroupRole" + }, + { + "ParameterKey": "unauthPolicyName", + "ParameterValue": "s3_amplify_d399ab0f" + }, + { + "ParameterKey": "authuserPoolGroupsBasicGroupRole", + "ParameterValue": "arn:aws:iam::123456789012:role/us-east-1_baREhKWox-BasicGroupRole" + }, + { + "ParameterKey": "authRoleName", + "ParameterValue": "amplify-mediavault-x-x-authRole" + }, + { + "ParameterKey": "GuestAllowList", + "ParameterValue": "ALLOW" + }, + { + "ParameterKey": "authPolicyName", + "ParameterValue": "s3_amplify_d399ab0f" + }, + { + "ParameterKey": "authmediavault1f08412dUserPoolId", + "ParameterValue": "us-east-1_baREhKWox" + }, + { + "ParameterKey": "s3PermissionsAuthenticatedProtected", + "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" + }, + { + "ParameterKey": "s3PermissionsGuestUploads", + "ParameterValue": "DISALLOW" + }, + { + "ParameterKey": "s3ProtectedPolicy", + "ParameterValue": "Protected_policy_d399ab0f" + }, + { + "ParameterKey": "s3ReadPolicy", + "ParameterValue": "read_policy_d399ab0f" + }, + { + "ParameterKey": "selectedAuthenticatedPermissions", + "ParameterValue": "s3:PutObject,s3:GetObject,s3:ListBucket,s3:DeleteObject" + } +] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-storagemediavault-x.template.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-storagemediavault-x.template.json new file mode 100644 index 00000000000..012547ef61b --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x-storagemediavault-x.template.json @@ -0,0 +1,776 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-S3\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "bucketName": { + "Type": "String" + }, + "authRoleName": { + "Type": "String" + }, + "unauthRoleName": { + "Type": "String" + }, + "authPolicyName": { + "Type": "String" + }, + "unauthPolicyName": { + "Type": "String" + }, + "s3PublicPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3PrivatePolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3ProtectedPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3UploadsPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3ReadPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3PermissionsAuthenticatedPublic": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedProtected": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedPrivate": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedUploads": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsGuestPublic": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsGuestUploads": { + "Type": "String", + "Default": "DISALLOW" + }, + "AuthenticatedAllowList": { + "Type": "String", + "Default": "DISALLOW" + }, + "GuestAllowList": { + "Type": "String", + "Default": "DISALLOW" + }, + "selectedGuestPermissions": { + "Type": "CommaDelimitedList", + "Default": "NONE" + }, + "selectedAuthenticatedPermissions": { + "Type": "CommaDelimitedList", + "Default": "NONE" + }, + "authmediavault1f08412dUserPoolId": { + "Type": "String", + "Default": "authmediavault1f08412dUserPoolId" + }, + "authuserPoolGroupsAdminGroupRole": { + "Type": "String", + "Default": "authuserPoolGroupsAdminGroupRole" + }, + "authuserPoolGroupsBasicGroupRole": { + "Type": "String", + "Default": "authuserPoolGroupsBasicGroupRole" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + }, + "CreateAuthPublic": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "s3PermissionsAuthenticatedPublic" + }, + "DISALLOW" + ] + } + ] + }, + "CreateAuthProtected": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "s3PermissionsAuthenticatedProtected" + }, + "DISALLOW" + ] + } + ] + }, + "CreateAuthPrivate": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "s3PermissionsAuthenticatedPrivate" + }, + "DISALLOW" + ] + } + ] + }, + "CreateAuthUploads": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "s3PermissionsAuthenticatedUploads" + }, + "DISALLOW" + ] + } + ] + }, + "CreateGuestPublic": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "s3PermissionsGuestPublic" + }, + "DISALLOW" + ] + } + ] + }, + "CreateGuestUploads": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "s3PermissionsGuestUploads" + }, + "DISALLOW" + ] + } + ] + }, + "AuthReadAndList": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "AuthenticatedAllowList" + }, + "DISALLOW" + ] + } + ] + }, + "GuestReadAndList": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "GuestAllowList" + }, + "DISALLOW" + ] + } + ] + } + }, + "Outputs": { + "BucketName": { + "Description": "Bucket name for the S3 bucket", + "Value": { + "Ref": "S3Bucket" + } + }, + "Region": { + "Value": { + "Ref": "AWS::Region" + } + } + }, + "Resources": { + "S3Bucket": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + { + "Ref": "bucketName" + }, + { + "Fn::Join": [ + "", + [ + { + "Ref": "bucketName" + }, + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + { + "Ref": "AWS::StackName" + } + ] + } + ] + }, + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "Id": "S3CORSRuleId1", + "MaxAge": 3000 + } + ] + }, + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + } + }, + "UpdateReplacePolicy": "Retain", + "DeletionPolicy": "Retain" + }, + "S3AuthPublicPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + { + "Ref": "s3PermissionsAuthenticatedPublic" + } + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + }, + "/public/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": { + "Ref": "s3PublicPolicy" + }, + "Roles": [ + { + "Ref": "authRoleName" + } + ] + }, + "DependsOn": [ + "S3Bucket" + ], + "Condition": "CreateAuthPublic" + }, + "S3AuthProtectedPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + { + "Ref": "s3PermissionsAuthenticatedProtected" + } + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + }, + "/protected/${cognito-identity.amazonaws.com:sub}/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": { + "Ref": "s3ProtectedPolicy" + }, + "Roles": [ + { + "Ref": "authRoleName" + } + ] + }, + "DependsOn": [ + "S3Bucket" + ], + "Condition": "CreateAuthProtected" + }, + "S3AuthPrivatePolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + { + "Ref": "s3PermissionsAuthenticatedPrivate" + } + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + }, + "/private/${cognito-identity.amazonaws.com:sub}/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": { + "Ref": "s3PrivatePolicy" + }, + "Roles": [ + { + "Ref": "authRoleName" + } + ] + }, + "DependsOn": [ + "S3Bucket" + ], + "Condition": "CreateAuthPrivate" + }, + "S3AuthUploadPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + { + "Ref": "s3PermissionsAuthenticatedUploads" + } + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + }, + "/uploads/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": { + "Ref": "s3UploadsPolicy" + }, + "Roles": [ + { + "Ref": "authRoleName" + } + ] + }, + "DependsOn": [ + "S3Bucket" + ], + "Condition": "CreateAuthUploads" + }, + "S3GuestPublicPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + { + "Ref": "s3PermissionsGuestPublic" + } + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + }, + "/public/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": { + "Ref": "s3PublicPolicy" + }, + "Roles": [ + { + "Ref": "unauthRoleName" + } + ] + }, + "DependsOn": [ + "S3Bucket" + ], + "Condition": "CreateGuestPublic" + }, + "S3AuthReadPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + }, + "/protected/*" + ] + ] + } + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/", + "public/*", + "protected/", + "protected/*", + "private/${cognito-identity.amazonaws.com:sub}/", + "private/${cognito-identity.amazonaws.com:sub}/*" + ] + } + }, + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + } + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": { + "Ref": "s3ReadPolicy" + }, + "Roles": [ + { + "Ref": "authRoleName" + } + ] + }, + "DependsOn": [ + "S3Bucket" + ], + "Condition": "AuthReadAndList" + }, + "S3GuestReadPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + }, + "/protected/*" + ] + ] + } + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/", + "public/*", + "protected/", + "protected/*" + ] + } + }, + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + } + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": { + "Ref": "s3ReadPolicy" + }, + "Roles": [ + { + "Ref": "unauthRoleName" + } + ] + }, + "DependsOn": [ + "S3Bucket" + ], + "Condition": "GuestReadAndList" + }, + "AdminGroupPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "s3:PutObject", + "s3:GetObject", + "s3:ListBucket", + "s3:DeleteObject" + ], + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + }, + "/*" + ] + ] + } + }, + { + "Action": "s3:ListBucket", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + } + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "Admin-group-s3-policy", + "Roles": [ + { + "Fn::Join": [ + "", + [ + { + "Ref": "authmediavault1f08412dUserPoolId" + }, + "-AdminGroupRole" + ] + ] + } + ] + } + }, + "BasicGroupPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "s3:GetObject", + "s3:ListBucket" + ], + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + }, + "/*" + ] + ] + } + }, + { + "Action": "s3:ListBucket", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + } + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "Basic-group-s3-policy", + "Roles": [ + { + "Fn::Join": [ + "", + [ + { + "Ref": "authmediavault1f08412dUserPoolId" + }, + "-BasicGroupRole" + ] + ] + } + ] + } + } + } +} diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x.description.txt b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x.description.txt new file mode 100644 index 00000000000..6e1d8ff2351 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x.description.txt @@ -0,0 +1 @@ +Root Stack for AWS Amplify CLI diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x.outputs.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x.outputs.json new file mode 100644 index 00000000000..eb446cd570a --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x.outputs.json @@ -0,0 +1,42 @@ +[ + { + "OutputKey": "AuthRoleName", + "OutputValue": "amplify-mediavault-x-x-authRole" + }, + { + "OutputKey": "UnauthRoleArn", + "OutputValue": "arn:aws:iam::123456789012:role/amplify-mediavault-x-x-unauthRole" + }, + { + "OutputKey": "AuthRoleArn", + "OutputValue": "arn:aws:iam::123456789012:role/amplify-mediavault-x-x-authRole" + }, + { + "OutputKey": "Region", + "OutputValue": "us-east-1", + "Description": "CloudFormation provider root stack Region", + "ExportName": "amplify-mediavault-x-x-Region" + }, + { + "OutputKey": "DeploymentBucketName", + "OutputValue": "amplify-mediavault-x-x-deployment", + "Description": "CloudFormation provider root stack deployment bucket name", + "ExportName": "amplify-mediavault-x-x-DeploymentBucketName" + }, + { + "OutputKey": "UnauthRoleName", + "OutputValue": "amplify-mediavault-x-x-unauthRole" + }, + { + "OutputKey": "StackName", + "OutputValue": "amplify-mediavault-x-x", + "Description": "CloudFormation provider root stack ID", + "ExportName": "amplify-mediavault-x-x-StackName" + }, + { + "OutputKey": "StackId", + "OutputValue": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-mediavault-x-x/108480f0-387e-11f1-8e28-0ea5af7cf5ad", + "Description": "CloudFormation provider root stack name", + "ExportName": "amplify-mediavault-x-x-StackId" + } +] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x.parameters.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x.parameters.json new file mode 100644 index 00000000000..15921f23e85 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x.parameters.json @@ -0,0 +1,14 @@ +[ + { + "ParameterKey": "AuthRoleName", + "ParameterValue": "amplify-mediavault-x-x-authRole" + }, + { + "ParameterKey": "DeploymentBucketName", + "ParameterValue": "amplify-mediavault-x-x-deployment" + }, + { + "ParameterKey": "UnauthRoleName", + "ParameterValue": "amplify-mediavault-x-x-unauthRole" + } +] diff --git a/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x.template.json b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x.template.json new file mode 100644 index 00000000000..7d3adea2b65 --- /dev/null +++ b/amplify-migration-apps/media-vault/_snapshot.pre.refactor/amplify-mediavault-x-x.template.json @@ -0,0 +1,633 @@ +{ + "Description": "Root Stack for AWS Amplify CLI", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "DeploymentBucketName": { + "Type": "String", + "Default": "DeploymentBucket", + "Description": "Name of the common deployment bucket provided by the parent stack" + }, + "AuthRoleName": { + "Type": "String", + "Default": "AuthRoleName", + "Description": "Name of the common deployment bucket provided by the parent stack" + }, + "UnauthRoleName": { + "Type": "String", + "Default": "UnAuthRoleName", + "Description": "Name of the common deployment bucket provided by the parent stack" + } + }, + "Outputs": { + "Region": { + "Description": "CloudFormation provider root stack Region", + "Value": { + "Ref": "AWS::Region" + }, + "Export": { + "Name": { + "Fn::Sub": "${AWS::StackName}-Region" + } + } + }, + "StackName": { + "Description": "CloudFormation provider root stack ID", + "Value": { + "Ref": "AWS::StackName" + }, + "Export": { + "Name": { + "Fn::Sub": "${AWS::StackName}-StackName" + } + } + }, + "StackId": { + "Description": "CloudFormation provider root stack name", + "Value": { + "Ref": "AWS::StackId" + }, + "Export": { + "Name": { + "Fn::Sub": "${AWS::StackName}-StackId" + } + } + }, + "AuthRoleArn": { + "Value": { + "Fn::GetAtt": [ + "AuthRole", + "Arn" + ] + } + }, + "UnauthRoleArn": { + "Value": { + "Fn::GetAtt": [ + "UnauthRole", + "Arn" + ] + } + }, + "DeploymentBucketName": { + "Description": "CloudFormation provider root stack deployment bucket name", + "Value": { + "Ref": "DeploymentBucketName" + }, + "Export": { + "Name": { + "Fn::Sub": "${AWS::StackName}-DeploymentBucketName" + } + } + }, + "AuthRoleName": { + "Value": { + "Ref": "AuthRole" + } + }, + "UnauthRoleName": { + "Value": { + "Ref": "UnauthRole" + } + } + }, + "Resources": { + "DeploymentBucket": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketName": { + "Ref": "DeploymentBucketName" + }, + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + } + }, + "UpdateReplacePolicy": "Retain", + "DeletionPolicy": "Retain" + }, + "DeploymentBucketBlockHTTP": { + "Type": "AWS::S3::BucketPolicy", + "Properties": { + "Bucket": { + "Ref": "DeploymentBucketName" + }, + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:*", + "Effect": "Deny", + "Principal": "*", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "DeploymentBucketName" + }, + "/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "DeploymentBucketName" + } + ] + ] + } + ], + "Condition": { + "Bool": { + "aws:SecureTransport": false + } + } + } + ] + } + } + }, + "AuthRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Sid": "", + "Effect": "Deny", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + }, + "Action": "sts:AssumeRoleWithWebIdentity" + } + ] + }, + "RoleName": { + "Ref": "AuthRoleName" + } + } + }, + "UnauthRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Sid": "", + "Effect": "Deny", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + }, + "Action": "sts:AssumeRoleWithWebIdentity" + } + ] + }, + "RoleName": { + "Ref": "UnauthRoleName" + } + } + }, + "authmediavault1f08412d": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/auth/mediavault1f08412d-cloudformation-template.json", + "Parameters": { + "identityPoolName": "mediavault1f08412d_identitypool_1f08412d", + "allowUnauthenticatedIdentities": true, + "resourceNameTruncated": "mediav1f08412d", + "userPoolName": "mediavault1f08412d_userpool_1f08412d", + "autoVerifiedAttributes": "email", + "mfaConfiguration": "OFF", + "mfaTypes": "SMS Text Message", + "smsAuthenticationMessage": "Your authentication code is {####}", + "smsVerificationMessage": "Your verification code is {####}", + "emailVerificationSubject": "Your verification code", + "emailVerificationMessage": "Your verification code is {####}", + "defaultPasswordPolicy": false, + "passwordPolicyMinLength": 8, + "passwordPolicyCharacters": "", + "requiredAttributes": "email", + "aliasAttributes": "", + "userpoolClientGenerateSecret": false, + "userpoolClientRefreshTokenValidity": 30, + "userpoolClientWriteAttributes": "email", + "userpoolClientReadAttributes": "email", + "userpoolClientLambdaRole": "mediav1f08412d_userpoolclient_lambda_role", + "userpoolClientSetAttributes": false, + "sharedId": "1f08412d", + "resourceName": "mediavault1f08412d", + "authSelections": "identityPoolAndUserPool", + "useDefault": "defaultSocial", + "hostedUI": true, + "usernameAttributes": "email, phone_number", + "hostedUIDomainName": "mediavault1f08412d-1f08412d", + "authProvidersUserPool": "Facebook,Google", + "hostedUIProviderMeta": "[{\"ProviderName\":\"Facebook\",\"authorize_scopes\":\"email,public_profile\",\"AttributeMapping\":{\"email\":\"email\",\"username\":\"id\"}},{\"ProviderName\":\"Google\",\"authorize_scopes\":\"openid email profile\",\"AttributeMapping\":{\"email\":\"email\",\"username\":\"sub\"}}]", + "userPoolGroupList": "Admin,Basic", + "serviceName": "Cognito", + "usernameCaseSensitive": false, + "useEnabledMfas": true, + "authRoleArn": { + "Fn::GetAtt": [ + "AuthRole", + "Arn" + ] + }, + "unauthRoleArn": { + "Fn::GetAtt": [ + "UnauthRole", + "Arn" + ] + }, + "breakCircularDependency": true, + "dependsOn": "", + "oAuthMetadata": "{\"AllowedOAuthFlows\":[\"code\"],\"AllowedOAuthScopes\":[\"phone\",\"email\",\"openid\",\"profile\",\"aws.cognito.signin.user.admin\"],\"CallbackURLs\":[\"https://main.mediavault.amplifyapp.com/\"],\"LogoutURLs\":[\"https://main.mediavault.amplifyapp.com/\"]}", + "hostedUIProviderCreds": "[{\"ProviderName\":\"Facebook\",\"client_id\":\"dummy-facebook-id\",\"client_secret\":\"dummy-facebook-secret\"},{\"ProviderName\":\"Google\",\"client_id\":\"dummy-google-id\",\"client_secret\":\"dummy-google-secret\"}]", + "env": "x" + } + } + }, + "authuserPoolGroups": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", + "Parameters": { + "AuthRoleArn": { + "Fn::GetAtt": [ + "AuthRole", + "Arn" + ] + }, + "UnauthRoleArn": { + "Fn::GetAtt": [ + "UnauthRole", + "Arn" + ] + }, + "authmediavault1f08412dUserPoolId": { + "Fn::GetAtt": [ + "authmediavault1f08412d", + "Outputs.UserPoolId" + ] + }, + "authmediavault1f08412dAppClientIDWeb": { + "Fn::GetAtt": [ + "authmediavault1f08412d", + "Outputs.AppClientIDWeb" + ] + }, + "authmediavault1f08412dAppClientID": { + "Fn::GetAtt": [ + "authmediavault1f08412d", + "Outputs.AppClientID" + ] + }, + "authmediavault1f08412dIdentityPoolId": { + "Fn::GetAtt": [ + "authmediavault1f08412d", + "Outputs.IdentityPoolId" + ] + }, + "env": "x" + } + } + }, + "apimediavault": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "Parameters": { + "AppSyncApiName": "mediavault", + "DynamoDBBillingMode": "PAY_PER_REQUEST", + "DynamoDBEnableServerSideEncryption": false, + "AuthCognitoUserPoolId": { + "Fn::GetAtt": [ + "authmediavault1f08412d", + "Outputs.UserPoolId" + ] + }, + "S3DeploymentBucket": "amplify-mediavault-x-x-deployment", + "S3DeploymentRootKey": "amplify-appsync-files/a9caa2a9280aa728b448533b4b7827dcc2cbf238", + "env": "x" + } + } + }, + "storagemediavault": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "Parameters": { + "bucketName": "mediavaultb574f210f1634e3a8d1934f263da5bed", + "selectedGuestPermissions": "s3:GetObject,s3:ListBucket", + "selectedAuthenticatedPermissions": "s3:PutObject,s3:GetObject,s3:ListBucket,s3:DeleteObject", + "unauthRoleName": { + "Ref": "UnauthRoleName" + }, + "authRoleName": { + "Ref": "AuthRoleName" + }, + "s3PrivatePolicy": "Private_policy_d399ab0f", + "s3ProtectedPolicy": "Protected_policy_d399ab0f", + "s3PublicPolicy": "Public_policy_d399ab0f", + "s3ReadPolicy": "read_policy_d399ab0f", + "s3UploadsPolicy": "Uploads_policy_d399ab0f", + "authPolicyName": "s3_amplify_d399ab0f", + "unauthPolicyName": "s3_amplify_d399ab0f", + "AuthenticatedAllowList": "ALLOW", + "GuestAllowList": "ALLOW", + "s3PermissionsAuthenticatedPrivate": "s3:PutObject,s3:GetObject,s3:DeleteObject", + "s3PermissionsAuthenticatedProtected": "s3:PutObject,s3:GetObject,s3:DeleteObject", + "s3PermissionsAuthenticatedPublic": "s3:PutObject,s3:GetObject,s3:DeleteObject", + "s3PermissionsAuthenticatedUploads": "s3:PutObject", + "s3PermissionsGuestPublic": "s3:GetObject", + "s3PermissionsGuestUploads": "DISALLOW", + "authmediavault1f08412dUserPoolId": { + "Fn::GetAtt": [ + "authmediavault1f08412d", + "Outputs.UserPoolId" + ] + }, + "authuserPoolGroupsAdminGroupRole": { + "Fn::GetAtt": [ + "authuserPoolGroups", + "Outputs.AdminGroupRole" + ] + }, + "authuserPoolGroupsBasicGroupRole": { + "Fn::GetAtt": [ + "authuserPoolGroups", + "Outputs.BasicGroupRole" + ] + }, + "env": "x" + } + } + }, + "functionthumbnailgen": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/function/thumbnailgen-cloudformation-template.json", + "Parameters": { + "deploymentBucketName": "amplify-mediavault-x-x-deployment", + "s3Key": "amplify-builds/thumbnailgen-714677357a74314e2b59-build.zip", + "storagemediavaultBucketName": { + "Fn::GetAtt": [ + "storagemediavault", + "Outputs.BucketName" + ] + }, + "env": "x" + } + } + }, + "functionaddusertogroup": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/function/addusertogroup-cloudformation-template.json", + "Parameters": { + "deploymentBucketName": "amplify-mediavault-x-x-deployment", + "s3Key": "amplify-builds/addusertogroup-374b6158625065387750-build.zip", + "authmediavault1f08412dUserPoolId": { + "Fn::GetAtt": [ + "authmediavault1f08412d", + "Outputs.UserPoolId" + ] + }, + "env": "x" + } + } + }, + "functionremoveuserfromgroup": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-mediavault-x-x-deployment/amplify-cfn-templates/function/removeuserfromgroup-cloudformation-template.json", + "Parameters": { + "deploymentBucketName": "amplify-mediavault-x-x-deployment", + "s3Key": "amplify-builds/removeuserfromgroup-6d6f39557861676c6c56-build.zip", + "authmediavault1f08412dUserPoolId": { + "Fn::GetAtt": [ + "authmediavault1f08412d", + "Outputs.UserPoolId" + ] + }, + "env": "x" + } + } + }, + "UpdateRolesWithIDPFunction": { + "DependsOn": [ + "AuthRole", + "UnauthRole", + "authmediavault1f08412d" + ], + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "ZipFile": { + "Fn::Join": [ + "\n", + [ + "const response = require('cfn-response');", + "const { IAMClient, GetRoleCommand, UpdateAssumeRolePolicyCommand } = require('@aws-sdk/client-iam');", + "exports.handler = function(event, context) {", + " // Don't return promise, response.send() marks context as done internally", + " const ignoredPromise = handleEvent(event, context)", + "};", + "async function handleEvent(event, context) {", + " try {", + " let authRoleName = event.ResourceProperties.authRoleName;", + " let unauthRoleName = event.ResourceProperties.unauthRoleName;", + " let idpId = event.ResourceProperties.idpId;", + " let authParamsJson = {", + " 'Version': '2012-10-17',", + " 'Statement': [{", + " 'Effect': 'Allow',", + " 'Principal': {'Federated': 'cognito-identity.amazonaws.com'},", + " 'Action': 'sts:AssumeRoleWithWebIdentity',", + " 'Condition': {", + " 'StringEquals': {'cognito-identity.amazonaws.com:aud': idpId},", + " 'ForAnyValue:StringLike': {'cognito-identity.amazonaws.com:amr': 'authenticated'}", + " }", + " }]", + " };", + " let unauthParamsJson = {", + " 'Version': '2012-10-17',", + " 'Statement': [{", + " 'Effect': 'Allow',", + " 'Principal': {'Federated': 'cognito-identity.amazonaws.com'},", + " 'Action': 'sts:AssumeRoleWithWebIdentity',", + " 'Condition': {", + " 'StringEquals': {'cognito-identity.amazonaws.com:aud': idpId},", + " 'ForAnyValue:StringLike': {'cognito-identity.amazonaws.com:amr': 'unauthenticated'}", + " }", + " }]", + " };", + " if (event.RequestType === 'Delete') {", + " try {", + " delete authParamsJson.Statement[0].Condition;", + " delete unauthParamsJson.Statement[0].Condition;", + " authParamsJson.Statement[0].Effect = 'Deny'", + " unauthParamsJson.Statement[0].Effect = 'Deny'", + " let authParams = {PolicyDocument: JSON.stringify(authParamsJson), RoleName: authRoleName};", + " let unauthParams = {PolicyDocument: JSON.stringify(unauthParamsJson), RoleName: unauthRoleName};", + " const iam = new IAMClient({region: event.ResourceProperties.region});", + " let res = await Promise.all([", + " iam.send(new GetRoleCommand({RoleName: authParams.RoleName})),", + " iam.send(new GetRoleCommand({RoleName: unauthParams.RoleName}))", + " ]);", + " res = await Promise.all([", + " iam.send(new UpdateAssumeRolePolicyCommand(authParams)),", + " iam.send(new UpdateAssumeRolePolicyCommand(unauthParams))", + " ]);", + " response.send(event, context, response.SUCCESS, {});", + " } catch (err) {", + " console.log(err.stack);", + " response.send(event, context, response.SUCCESS, {Error: err});", + " }", + " } else if (event.RequestType === 'Update' || event.RequestType === 'Create') {", + " const iam = new IAMClient({region: event.ResourceProperties.region});", + " let authParams = {PolicyDocument: JSON.stringify(authParamsJson), RoleName: authRoleName};", + " let unauthParams = {PolicyDocument: JSON.stringify(unauthParamsJson), RoleName: unauthRoleName};", + " const res = await Promise.all([", + " iam.send(new UpdateAssumeRolePolicyCommand(authParams)),", + " iam.send(new UpdateAssumeRolePolicyCommand(unauthParams))", + " ]);", + " response.send(event, context, response.SUCCESS, {});", + " }", + " } catch (err) {", + " console.log(err.stack);", + " response.send(event, context, response.FAILED, {Error: err});", + " }", + "};" + ] + ] + } + }, + "Handler": "index.handler", + "Runtime": "nodejs22.x", + "Timeout": 300, + "Role": { + "Fn::GetAtt": [ + "UpdateRolesWithIDPFunctionRole", + "Arn" + ] + } + } + }, + "UpdateRolesWithIDPFunctionOutputs": { + "Type": "Custom::LambdaCallout", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "UpdateRolesWithIDPFunction", + "Arn" + ] + }, + "region": { + "Ref": "AWS::Region" + }, + "idpId": { + "Fn::GetAtt": [ + "authmediavault1f08412d", + "Outputs.IdentityPoolId" + ] + }, + "authRoleName": { + "Ref": "AuthRole" + }, + "unauthRoleName": { + "Ref": "UnauthRole" + } + } + }, + "UpdateRolesWithIDPFunctionRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "RoleName": { + "Fn::Join": [ + "", + [ + { + "Ref": "AuthRole" + }, + "-idp" + ] + ] + }, + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": [ + "lambda.amazonaws.com" + ] + }, + "Action": [ + "sts:AssumeRole" + ] + } + ] + }, + "Policies": [ + { + "PolicyName": "UpdateRolesWithIDPFunctionPolicy", + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "logs:CreateLogGroup", + "logs:CreateLogStream", + "logs:PutLogEvents" + ], + "Resource": "arn:aws:logs:*:*:*" + }, + { + "Effect": "Allow", + "Action": [ + "iam:UpdateAssumeRolePolicy", + "iam:GetRole" + ], + "Resource": { + "Fn::GetAtt": [ + "AuthRole", + "Arn" + ] + } + }, + { + "Effect": "Allow", + "Action": [ + "iam:UpdateAssumeRolePolicy", + "iam:GetRole" + ], + "Resource": { + "Fn::GetAtt": [ + "UnauthRole", + "Arn" + ] + } + } + ] + } + } + ] + } + } + } +} diff --git a/amplify-migration-apps/media-vault/package.json b/amplify-migration-apps/media-vault/package.json index c3ba12e72a6..ead8a3b60e5 100644 --- a/amplify-migration-apps/media-vault/package.json +++ b/amplify-migration-apps/media-vault/package.json @@ -13,6 +13,7 @@ "preview": "vite preview", "configure": "./backend/configure.sh", "sanitize": "tsx ../sanitize.ts", + "normalize": "tsx ../normalize.ts", "typecheck": "cd _snapshot.post.generate/amplify && npx tsc --noEmit", "test:gen1": "APP_CONFIG_PATH=${APP_CONFIG_PATH:-src/amplifyconfiguration.json} NODE_OPTIONS='--experimental-vm-modules' jest --verbose", "test:gen2": "APP_CONFIG_PATH=${APP_CONFIG_PATH:-amplify_outputs.json} NODE_OPTIONS='--experimental-vm-modules' jest --verbose", diff --git a/amplify-migration-apps/mood-board/_snapshot.post.generate/amplify.yml b/amplify-migration-apps/mood-board/_snapshot.post.generate/amplify.yml index 52c312768f5..19475262460 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.generate/amplify.yml +++ b/amplify-migration-apps/mood-board/_snapshot.post.generate/amplify.yml @@ -8,16 +8,11 @@ backend: - npx ampx pipeline-deploy --branch $AWS_BRANCH --app-id $AWS_APP_ID frontend: phases: - preBuild: - commands: - - npm install build: commands: - - npm run build + - mkdir dist + - touch dist/index.html artifacts: baseDirectory: dist files: - "**/*" - cache: - paths: - - node_modules/**/* diff --git a/amplify-migration-apps/mood-board/_snapshot.post.generate/amplify/analytics/resource.ts b/amplify-migration-apps/mood-board/_snapshot.post.generate/amplify/analytics/resource.ts index 7948bd3918c..4703fd57403 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.generate/amplify/analytics/resource.ts +++ b/amplify-migration-apps/mood-board/_snapshot.post.generate/amplify/analytics/resource.ts @@ -21,6 +21,6 @@ export const defineAnalytics = (backend: Backend) => { } ); //Use this kinesis stream name post-refactor - //(analytics.node.findChild('KinesisStream') as CfnStream).name = "moodboardKinesis-main" + //(analytics.node.findChild('KinesisStream') as CfnStream).name = "moodboardKinesis-x" return analytics; }; diff --git a/amplify-migration-apps/mood-board/_snapshot.post.generate/amplify/backend.ts b/amplify-migration-apps/mood-board/_snapshot.post.generate/amplify/backend.ts index 7ffc7ba479a..55b6f1a27eb 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.generate/amplify/backend.ts +++ b/amplify-migration-apps/mood-board/_snapshot.post.generate/amplify/backend.ts @@ -48,7 +48,7 @@ cfnGraphqlApi.additionalAuthenticationProviders = [ ]; const s3Bucket = backend.storage.resources.cfnResources.cfnBucket; // Use this bucket name post refactor -// s3Bucket.bucketName = 'moodboard20e29595008142e3ad16f01c4066e1c41959a-main'; +// s3Bucket.bucketName = 'moodboard20e29595008142e3ad16f01c4066e1c4x-x'; s3Bucket.bucketEncryption = { serverSideEncryptionConfiguration: [ { diff --git a/amplify-migration-apps/mood-board/_snapshot.post.generate/amplify/data/resource.ts b/amplify-migration-apps/mood-board/_snapshot.post.generate/amplify/data/resource.ts index 4ed996d4efc..f6cff1efad3 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.generate/amplify/data/resource.ts +++ b/amplify-migration-apps/mood-board/_snapshot.post.generate/amplify/data/resource.ts @@ -26,10 +26,10 @@ export const data = defineData({ migratedAmplifyGen1DynamoDbTableMappings: [ { //The "branchname" variable needs to be the same as your deployment branch if you want to reuse your Gen1 app tables - branchName: 'main', + branchName: 'x', modelNameToTableNameMapping: { - MoodItem: 'MoodItem-vsozkn3hbzdjppzyf7xtf2f4sy-main', - Board: 'Board-vsozkn3hbzdjppzyf7xtf2f4sy-main', + MoodItem: 'MoodItem-pd6mhagtyveltorgdvv7movvqq-x', + Board: 'Board-pd6mhagtyveltorgdvv7movvqq-x', }, }, ], diff --git a/amplify-migration-apps/mood-board/_snapshot.post.generate/amplify/storage/resource.ts b/amplify-migration-apps/mood-board/_snapshot.post.generate/amplify/storage/resource.ts index 4c79716b34f..520b49f7ad0 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.generate/amplify/storage/resource.ts +++ b/amplify-migration-apps/mood-board/_snapshot.post.generate/amplify/storage/resource.ts @@ -3,7 +3,7 @@ import { defineStorage } from '@aws-amplify/backend'; const branchName = process.env.AWS_BRANCH ?? 'sandbox'; export const storage = defineStorage({ - name: `moodboard20e29595008142e3ad16f01c4066e1c41959a-${branchName}`, + name: `moodboard20e29595008142e3ad16f01c4066e1c4x-${branchName}`, access: (allow) => ({ 'public/*': [ allow.guest.to(['read']), diff --git a/amplify-migration-apps/mood-board/_snapshot.post.generate/package.json b/amplify-migration-apps/mood-board/_snapshot.post.generate/package.json index 5a612d1e146..e65e6e97996 100644 --- a/amplify-migration-apps/mood-board/_snapshot.post.generate/package.json +++ b/amplify-migration-apps/mood-board/_snapshot.post.generate/package.json @@ -1,5 +1,5 @@ { - "name": "@amplify-migration-apps/mood-board-app-snapshot", + "name": "@amplify-migration-apps/mood-board-snapshot", "private": true, "version": "0.0.1", "type": "module", @@ -10,9 +10,21 @@ "dev": "vite", "build": "tsc && vite build", "preview": "vite preview", - "configure": "./configure.sh", + "configure": "./backend/configure.sh", "sanitize": "tsx ../sanitize.ts", - "typecheck": "cd _snapshot.post.generate/amplify && npx tsc --noEmit" + "normalize": "tsx ../normalize.ts", + "typecheck": "cd _snapshot.post.generate/amplify && npx tsc --noEmit", + "test:gen1": "APP_CONFIG_PATH=${APP_CONFIG_PATH:-src/amplifyconfiguration.json} NODE_OPTIONS='--experimental-vm-modules' jest --verbose", + "test:gen2": "APP_CONFIG_PATH=${APP_CONFIG_PATH:-amplify_outputs.json} NODE_OPTIONS='--experimental-vm-modules' jest --verbose", + "test:shared-data": "true", + "test:e2e": "cd ../../packages/amplify-gen2-migration-e2e-system && npx tsx src/cli.ts --app mood-board --profile ${AWS_PROFILE:-default}", + "deploy": "cd ../../packages/amplify-gen2-migration-e2e-system && npx tsx src/cli.ts --app mood-board --step deploy --profile ${AWS_PROFILE:-default}", + "pre-push": "true", + "post-generate": "npx tsx migration/post-generate.ts", + "post-refactor": "npx tsx migration/post-refactor.ts", + "post-sandbox": "true", + "pre-sandbox": "true", + "post-push": "npx tsx migration/post-push.ts" }, "dependencies": { "@aws-amplify/ui-react": "^6.10.1", @@ -24,7 +36,9 @@ "@aws-amplify/backend": "^1.18.0", "@aws-amplify/backend-cli": "^1.8.0", "@aws-amplify/backend-data": "^1.6.2", + "@aws-sdk/client-cognito-identity-provider": "^3.936.0", "@types/aws-lambda": "^8.10.92", + "@types/jest": "^29.5.14", "@types/node": "*", "@types/react": "^18.3.3", "@types/react-dom": "^18.3.0", @@ -34,6 +48,8 @@ "ci-info": "^4.3.1", "constructs": "^10.0.0", "esbuild": "^0.27.0", + "jest": "^29.7.0", + "ts-jest": "^29.3.4", "tsx": "^4.20.6", "typescript": "^5.5.3", "vite": "^5.4.2" diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x.__to__.amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x-holding.mappings.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x.__to__.amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x-holding.mappings.json new file mode 100644 index 00000000000..7b0ae14339f --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x.__to__.amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x-holding.mappings.json @@ -0,0 +1,12 @@ +[ + { + "Source": { + "StackName": "amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x", + "LogicalResourceId": "moodboardKinesisKinesisStreamD5E97047" + }, + "Destination": { + "StackName": "amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x-holding", + "LogicalResourceId": "moodboardKinesisKinesisStreamD5E97047" + } + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x.__to__.amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x-holding.source.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x.__to__.amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x-holding.source.template.json new file mode 100644 index 00000000000..7f6d4fc9acd --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x.__to__.amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x-holding.source.template.json @@ -0,0 +1,361 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.22.0\",\"stackType\":\"custom\",\"metadata\":{}}", + "Resources": { + "moodboardKinesisCognitoAuthPolicyB69F4FA6": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "kinesis:PutRecord", + "kinesis:PutRecords" + ], + "Resource": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-gen2-x" + } + ] + }, + "PolicyName": "moodboardKinesis-auth-policy-gen2-x", + "Roles": [ + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/analytics/moodboardKinesis/CognitoAuthPolicy" + } + }, + "moodboardKinesisCognitoUnauthPolicyC4CE1D44": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "kinesis:PutRecord", + "kinesis:PutRecords" + ], + "Resource": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-gen2-x" + } + ] + }, + "PolicyName": "moodboardKinesis-unauth-policy-gen2-x", + "Roles": [ + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/analytics/moodboardKinesis/CognitoUnauthPolicy" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXHUQrCMAwA0LPsv421MC+wfxV3AIltBlnXTpbUIWN3H+LX43nwrQPX4Co2xGQnfsF2JVGKvWJIBld5bokLCQt0Q+l1IcyGMf92nycO3910Q7lVfVfdTZkjwSinj/dwvoBrRmG2Sy3KmeDx9wDnXMcSdwAAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/analytics/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Outputs": { + "kinesisStreamArn": { + "Value": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-gen2-x" + }, + "kinesisStreamId": { + "Value": "moodboardKinesis-gen2-x" + }, + "kinesisStreamShardCount": { + "Value": "1" + }, + "amplifymoodboarde2esandbox799a4d1a84analyticsmoodboardKinesisKinesisStream1161343BArn": { + "Value": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-gen2-x" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref": { + "Type": "String" + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef": { + "Type": "String" + } + } +} diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x.__to__.amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x-holding.target.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x.__to__.amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x-holding.target.template.json new file mode 100644 index 00000000000..d33c91a0bf5 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x.__to__.amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x-holding.target.template.json @@ -0,0 +1,29 @@ +{ + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "Temporary holding stack for Gen2 migration", + "Resources": { + "moodboardKinesisKinesisStreamD5E97047": { + "Type": "AWS::Kinesis::Stream", + "Properties": { + "Name": "moodboardKinesis-gen2-x", + "ShardCount": 1, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/analytics/moodboardKinesis/KinesisStream" + } + } + }, + "Outputs": {} +} diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-e2e-sandbox-x-auth179371D7-x.__to__.amplify-moodboard-e2e-sandbox-x-auth179371D7-x-holding.mappings.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-e2e-sandbox-x-auth179371D7-x.__to__.amplify-moodboard-e2e-sandbox-x-auth179371D7-x-holding.mappings.json new file mode 100644 index 00000000000..1c8f704da54 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-e2e-sandbox-x-auth179371D7-x.__to__.amplify-moodboard-e2e-sandbox-x-auth179371D7-x-holding.mappings.json @@ -0,0 +1,52 @@ +[ + { + "Source": { + "StackName": "amplify-moodboard-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + }, + "Destination": { + "StackName": "amplify-moodboard-e2e-sandbox-x-auth179371D7-x-holding", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + } + }, + { + "Source": { + "StackName": "amplify-moodboard-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + }, + "Destination": { + "StackName": "amplify-moodboard-e2e-sandbox-x-auth179371D7-x-holding", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + } + }, + { + "Source": { + "StackName": "amplify-moodboard-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + }, + "Destination": { + "StackName": "amplify-moodboard-e2e-sandbox-x-auth179371D7-x-holding", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + } + }, + { + "Source": { + "StackName": "amplify-moodboard-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + }, + "Destination": { + "StackName": "amplify-moodboard-e2e-sandbox-x-auth179371D7-x-holding", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + } + }, + { + "Source": { + "StackName": "amplify-moodboard-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + }, + "Destination": { + "StackName": "amplify-moodboard-e2e-sandbox-x-auth179371D7-x-holding", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + } + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-e2e-sandbox-x-auth179371D7-x.__to__.amplify-moodboard-e2e-sandbox-x-auth179371D7-x-holding.source.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-e2e-sandbox-x-auth179371D7-x.__to__.amplify-moodboard-e2e-sandbox-x-auth179371D7-x-holding.source.template.json new file mode 100644 index 00000000000..89fc21bb500 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-e2e-sandbox-x-auth179371D7-x.__to__.amplify-moodboard-e2e-sandbox-x-auth179371D7-x-holding.source.template.json @@ -0,0 +1,386 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", + "Resources": { + "amplifyAuthauthenticatedUserRoleD8DA3689": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:edbce570-5f19-4755-9803-52e7b3e0c56d" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/auth/amplifyAuth/authenticatedUserRole/Resource" + } + }, + "amplifyAuthunauthenticatedUserRole2B524D9E": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:edbce570-5f19-4755-9803-52e7b3e0c56d" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "unauthenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/auth/amplifyAuth/unauthenticatedUserRole/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/02LwQrCMBBEv6X3dK0BvUtPXkQqniUmq26bbqBZLRLy71Kk2tPMvJnRoDcVVIUZY2ldV3q6QjpgFHQnMbZTZoyXZMOdSQKkc8ThGIJX9Y1/fja1J2RZVn+yd8hC8p7Py9wEjzsRYx89smRFpoc0wWk4ac5ZcXAIbVy9tIb1FqqijUTl8GShHqH56gf10GUazgAAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/auth/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifymoodboarde2esandbox799a4d1a84authamplifyAuthUserPoolC3F32E8CRef": { + "Value": "us-east-1_K3ZcFPo5Q" + }, + "amplifymoodboarde2esandbox799a4d1a84authamplifyAuthUserPoolAppClientFBE59DFARef": { + "Value": "7jnfsfml09seoak5857srhn920" + }, + "amplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref": { + "Value": "us-east-1:edbce570-5f19-4755-9803-52e7b3e0c56d" + }, + "amplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref": { + "Value": "amplify-moodboard26041500-amplifyAuthauthenticatedU-inPzqwEs0wDw" + }, + "amplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef": { + "Value": "amplify-moodboard26041500-amplifyAuthunauthenticate-2CR87a5ajww1" + } + } +} diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-e2e-sandbox-x-auth179371D7-x.__to__.amplify-moodboard-e2e-sandbox-x-auth179371D7-x-holding.target.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-e2e-sandbox-x-auth179371D7-x.__to__.amplify-moodboard-e2e-sandbox-x-auth179371D7-x-holding.target.template.json new file mode 100644 index 00000000000..eab6b1acf19 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-e2e-sandbox-x-auth179371D7-x.__to__.amplify-moodboard-e2e-sandbox-x-auth179371D7-x-holding.target.template.json @@ -0,0 +1,211 @@ +{ + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "Temporary holding stack for Gen2 migration", + "Resources": { + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AccountRecoverySetting": { + "RecoveryMechanisms": [ + { + "Name": "verified_email", + "Priority": 1 + } + ] + }, + "AdminCreateUserConfig": { + "AllowAdminCreateUserOnly": false + }, + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": 8, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false, + "TemporaryPasswordValidityDays": 7 + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "SmsVerificationMessage": "The verification code to your new account is {####}", + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolTags": { + "amplify:deployment-type": "sandbox", + "amplify:friendly-name": "amplifyAuth", + "created-by": "amplify" + }, + "UsernameAttributes": [ + "email" + ], + "UsernameConfiguration": { + "CaseSensitive": false + }, + "VerificationMessageTemplate": { + "DefaultEmailOption": "CONFIRM_WITH_CODE", + "EmailMessage": "Your verification code is {####}", + "EmailSubject": "Your verification code", + "SmsMessage": "The verification code to your new account is {####}" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/auth/amplifyAuth/UserPool/Resource" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 43200, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": "us-east-1_K3ZcFPo5Q" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlows": [ + "code" + ], + "AllowedOAuthFlowsUserPoolClient": true, + "AllowedOAuthScopes": [ + "profile", + "phone", + "email", + "openid", + "aws.cognito.signin.user.admin" + ], + "CallbackURLs": [ + "https://example.com" + ], + "ExplicitAuthFlows": [ + "ALLOW_CUSTOM_AUTH", + "ALLOW_USER_SRP_AUTH", + "ALLOW_REFRESH_TOKEN_AUTH" + ], + "PreventUserExistenceErrors": "ENABLED", + "SupportedIdentityProviders": [ + "COGNITO" + ], + "UserPoolId": "us-east-1_K3ZcFPo5Q" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/auth/amplifyAuth/UserPoolAppClient/Resource" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": true, + "CognitoIdentityProviders": [ + { + "ClientId": "7jnfsfml09seoak5857srhn920", + "ProviderName": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_K3ZcFPo5Q" + ] + ] + } + } + ], + "IdentityPoolTags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "SupportedLoginProviders": {} + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/auth/amplifyAuth/IdentityPool" + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:edbce570-5f19-4755-9803-52e7b3e0c56d", + "RoleMappings": { + "UserPoolWebClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_K3ZcFPo5Q", + ":", + "7jnfsfml09seoak5857srhn920" + ] + ] + }, + "Type": "Token" + } + }, + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-moodboard26041500-amplifyAuthunauthenticate-2CR87a5ajww1", + "authenticated": "arn:aws:iam::123456789012:role/amplify-moodboard26041500-amplifyAuthauthenticatedU-inPzqwEs0wDw" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/auth/amplifyAuth/IdentityPoolRoleAttachment" + } + } + }, + "Outputs": {} +} diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x.__to__.amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x-holding.mappings.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x.__to__.amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x-holding.mappings.json new file mode 100644 index 00000000000..1fcbe3e8572 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x.__to__.amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x-holding.mappings.json @@ -0,0 +1,12 @@ +[ + { + "Source": { + "StackName": "amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x", + "LogicalResourceId": "moodboard20e29595008142e3ad16f01c4066e1c4xgen2xBucketF509CA7A" + }, + "Destination": { + "StackName": "amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x-holding", + "LogicalResourceId": "moodboard20e29595008142e3ad16f01c4066e1c4xgen2xBucketF509CA7A" + } + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x.__to__.amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x-holding.source.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x.__to__.amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x-holding.source.template.json new file mode 100644 index 00000000000..c9a86db675c --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x.__to__.amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x-holding.source.template.json @@ -0,0 +1,631 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", + "Resources": { + "moodboard20e29595008142e3ad16f01c4066e1c4xgen2xBucketPolicyD45A1F02": { + "Type": "AWS::S3::BucketPolicy", + "Properties": { + "Bucket": "amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:*", + "Condition": { + "Bool": { + "aws:SecureTransport": "false" + } + }, + "Effect": "Deny", + "Principal": { + "AWS": "*" + }, + "Resource": [ + "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + "/*" + ] + ] + } + ] + }, + { + "Action": [ + "s3:PutBucketPolicy", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*" + ], + "Effect": "Allow", + "Principal": { + "AWS": "arn:aws:iam::123456789012:role/amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + }, + "Resource": [ + "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/storage/moodboard20e29595008142e3ad16f01c4066e1c4x-gen2-x/Bucket/Policy/Resource" + } + }, + "moodboard20e29595008142e3ad16f01c4066e1c4xgen2xBucketAutoDeleteObjectsCustomResourceB49F1B54": { + "Type": "Custom::S3AutoDeleteObjects", + "Properties": { + "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "BucketName": "amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/storage/moodboard20e29595008142e3ad16f01c4066e1c4x-gen2-x/Bucket/AutoDeleteObjectsCustomResource/Default" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ] + }, + "ManagedPolicyArns": [ + { + "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" + }, + "Timeout": 900, + "MemorySize": 128, + "Handler": "index.handler", + "Role": "arn:aws:iam::123456789012:role/amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Runtime": "nodejs22.x", + "Description": { + "Fn::Join": [ + "", + [ + "Lambda function for auto-deleting objects in ", + "amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + " S3 bucket." + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", + "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", + "aws:asset:property": "Code" + } + }, + "MOODBOARD20E29595008142E3AD16F01C4066E1C417DCAGEN2VDTWFPNEGXBUCKETNAMEParameter5A0015D7": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/moodboard/e2e-sandbox-x/MOODBOARD_20_E_29595008142_E_3_AD_16_F_01_C_4066_E_1_C_417_DCA_GEN_2_VDTWFPNEGX_BUCKET_NAME", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": "amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/storage/MOODBOARD_20_E_29595008142_E_3_AD_16_F_01_C_4066_E_1_C_417_DCA_GEN_2_VDTWFPNEGX_BUCKET_NAMEParameter/Resource" + } + }, + "amplifymoodboarde2esandbox799a4d1a84storageAccess35BE57E89": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + "/public/*" + ] + ] + } + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/*", + "public/" + ] + } + }, + "Effect": "Allow", + "Resource": "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "amplifymoodboarde2esandbox799a4d1a84storageAccess35BE57E89", + "Roles": [ + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/storage/amplify-moodboard-e2e-sandbox-x--storageAccess3/Resource" + } + }, + "amplifymoodboarde2esandbox799a4d1a84storageAccess45ABD2020": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:PutObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/*", + "public/", + "protected/*", + "protected/", + "private/*", + "private/" + ] + } + }, + "Effect": "Allow", + "Resource": "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb" + }, + { + "Action": "s3:DeleteObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + "/private/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "amplifymoodboarde2esandbox799a4d1a84storageAccess45ABD2020", + "Roles": [ + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/storage/amplify-moodboard-e2e-sandbox-x--storageAccess4/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/5WNy07DMBBFv6VZO0NIBQt2fawhapYIIdcZokliW/JMWpDlf0epJQJLVnNH5z5qqB8qqDb6yqXpxnKiM8RnZMGuFW1Gpa/8HnkLcT+bEUUdPlxWr7Gw9EmueCp+hxc/b+GGGLJ1N4s/4oSCL+cBjXCR3lRGjZ/IfK2t+f9Hdw60ogUtult1UswWYiuBXN/ooC0KhmXj50mKtIW4rmeVkjrMLN6ekP0cDC5o1X9QE/yFOgx7zah2zCit6J5cn5TzHcLAd5e6hvtHqDYDE5VhdkIW4ZTvN8L1/x56AQAA" + }, + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/storage/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef": { + "Type": "String" + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref": { + "Type": "String" + } + }, + "Outputs": { + "amplifymoodboarde2esandbox799a4d1a84storagemoodboard20e29595008142e3ad16f01c4066e1c4xgen2xBucket9D2A4CC7Ref": { + "Value": "amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb" + } + } +} diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x.__to__.amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x-holding.target.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x.__to__.amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x-holding.target.template.json new file mode 100644 index 00000000000..f72ae0b02ce --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x.__to__.amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x-holding.target.template.json @@ -0,0 +1,71 @@ +{ + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "Temporary holding stack for Gen2 migration", + "Resources": { + "moodboard20e29595008142e3ad16f01c4066e1c4xgen2xBucketF509CA7A": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "BucketKeyEnabled": false, + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "MaxAge": 3000 + } + ] + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "moodboard20e29595008142e3ad16f01c4066e1c4x-gen2-x" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/storage/moodboard20e29595008142e3ad16f01c4066e1c4x-gen2-x/Bucket/Resource" + } + } + }, + "Outputs": {} +} diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding.mappings.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding.mappings.json deleted file mode 100644 index 18fe4e64dc6..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding.mappings.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "Source": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW", - "LogicalResourceId": "moodboardKinesisKinesisStreamD5E97047" - }, - "Destination": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding", - "LogicalResourceId": "moodboardKinesisKinesisStreamD5E97047" - } - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding.source.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding.source.template.json deleted file mode 100644 index e689d3fe4c5..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding.source.template.json +++ /dev/null @@ -1,357 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.21.0\",\"stackType\":\"custom\",\"metadata\":{}}", - "Resources": { - "moodboardKinesisCognitoAuthPolicyB69F4FA6": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "kinesis:PutRecord", - "kinesis:PutRecords" - ], - "Resource": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-gen2-main" - } - ] - }, - "PolicyName": "moodboardKinesis-auth-policy-gen2-main", - "Roles": [ - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/analytics/moodboardKinesis/CognitoAuthPolicy" - } - }, - "moodboardKinesisCognitoUnauthPolicyC4CE1D44": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "kinesis:PutRecord", - "kinesis:PutRecords" - ], - "Resource": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-gen2-main" - } - ] - }, - "PolicyName": "moodboardKinesis-unauth-policy-gen2-main", - "Roles": [ - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/analytics/moodboardKinesis/CognitoUnauthPolicy" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXHwQqDMAwA0G/x3mZadtjd+zbmB0jWRoi1dZh0MsR/F9np8Ry4awN1hatYH6Kd+A3bnUQpdIo+Glyl3yJnEhZoh9zpQpgMYzr3nCf2v920Q34U/RTdTZ4DwSiXr3PQ3KCuRmG2S8nKieD19wCgungydwAAAA==" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/analytics/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Outputs": { - "kinesisStreamArn": { - "Value": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-gen2-main" - }, - "kinesisStreamId": { - "Value": "moodboardKinesis-gen2-main" - }, - "kinesisStreamShardCount": { - "Value": "1" - }, - "amplifymoodboardgen2mainbranchf7e4caeabbanalyticsmoodboardKinesisKinesisStreamBD82380AArn": { - "Value": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-gen2-main" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref": { - "Type": "String" - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef": { - "Type": "String" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding.target.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding.target.template.json deleted file mode 100644 index 0e5ee0af9e1..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW-holding.target.template.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "Temporary holding stack for Gen2 migration", - "Resources": { - "moodboardKinesisKinesisStreamD5E97047": { - "Type": "AWS::Kinesis::Stream", - "Properties": { - "Name": "moodboardKinesis-gen2-main", - "ShardCount": 1, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/analytics/moodboardKinesis/KinesisStream" - } - } - }, - "Outputs": {} -} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.mappings.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.mappings.json deleted file mode 100644 index 1c699ef3e6d..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.mappings.json +++ /dev/null @@ -1,52 +0,0 @@ -[ - { - "Source": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" - }, - "Destination": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" - } - }, - { - "Source": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" - }, - "Destination": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" - } - }, - { - "Source": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" - }, - "Destination": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" - } - }, - { - "Source": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" - }, - "Destination": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" - } - }, - { - "Source": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" - }, - "Destination": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" - } - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.source.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.source.template.json deleted file mode 100644 index ec18192c664..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.source.template.json +++ /dev/null @@ -1,398 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.11.1\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", - "Resources": { - "amplifyAuthauthenticatedUserRoleD8DA3689": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:820c5910-56e0-4010-b0c4-b457a728acfb" - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "authenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/authenticatedUserRole/Resource" - } - }, - "amplifyAuthunauthenticatedUserRole2B524D9E": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:820c5910-56e0-4010-b0c4-b457a728acfb" - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "unauthenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/unauthenticatedUserRole/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/02LwQrCMBBEv8V7urbBg1fpyYtIxbPEZNVt0w00q0VC/l2KVHuamTczGvSmgnJlxlhY1xWerpAOGAXdSYztlBnjJdlwZ5IA6RxxOIbgVX3jn59N7QlZltWf7B2ykLzn8zI3weNOxNhHjyxZkekhTXAaTppzVhwcQhvXL62h2kK5aiNRMTxZqEdovvoBH9Args4AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Outputs": { - "amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthUserPoolAE38F854Ref": { - "Value": "us-east-1_1A4RMvPNr" - }, - "amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthUserPoolAppClientA69935A4Ref": { - "Value": "2otm0qh3fj270k5tdn95cgjlm5" - }, - "amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef": { - "Value": "us-east-1:820c5910-56e0-4010-b0c4-b457a728acfb" - }, - "amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref": { - "Value": "amplify-moodboard-ge-amplifyAuthauthenticatedU-UANJImTyKZ7p" - }, - "amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef": { - "Value": "amplify-moodboard-ge-amplifyAuthunauthenticate-rp3r1qUbAKVV" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.target.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.target.template.json deleted file mode 100644 index f9691d6822f..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10-holding.target.template.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "Temporary holding stack for Gen2 migration", - "Resources": { - "amplifyAuthUserPool4BA7F805": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AccountRecoverySetting": { - "RecoveryMechanisms": [ - { - "Name": "verified_email", - "Priority": 1 - } - ] - }, - "AdminCreateUserConfig": { - "AllowAdminCreateUserOnly": false - }, - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": "Your verification code is {####}", - "EmailVerificationSubject": "Your verification code", - "MfaConfiguration": "OFF", - "Policies": { - "PasswordPolicy": { - "MinimumLength": 8, - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false, - "TemporaryPasswordValidityDays": 7 - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "SmsVerificationMessage": "The verification code to your new account is {####}", - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolTags": { - "amplify:app-id": "moodboard", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "amplify:friendly-name": "amplifyAuth", - "created-by": "amplify" - }, - "UsernameAttributes": [ - "email" - ], - "UsernameConfiguration": { - "CaseSensitive": false - }, - "VerificationMessageTemplate": { - "DefaultEmailOption": "CONFIRM_WITH_CODE", - "EmailMessage": "Your verification code is {####}", - "EmailSubject": "Your verification code", - "SmsMessage": "The verification code to your new account is {####}" - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/UserPool/Resource" - } - }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 43200, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": "us-east-1_1A4RMvPNr" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, - "amplifyAuthUserPoolAppClient2626C6F8": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlows": [ - "code" - ], - "AllowedOAuthFlowsUserPoolClient": true, - "AllowedOAuthScopes": [ - "profile", - "phone", - "email", - "openid", - "aws.cognito.signin.user.admin" - ], - "CallbackURLs": [ - "https://example.com" - ], - "ExplicitAuthFlows": [ - "ALLOW_CUSTOM_AUTH", - "ALLOW_USER_SRP_AUTH", - "ALLOW_REFRESH_TOKEN_AUTH" - ], - "PreventUserExistenceErrors": "ENABLED", - "SupportedIdentityProviders": [ - "COGNITO" - ], - "UserPoolId": "us-east-1_1A4RMvPNr" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/UserPoolAppClient/Resource" - } - }, - "amplifyAuthIdentityPool3FDE84CC": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": true, - "CognitoIdentityProviders": [ - { - "ClientId": "2otm0qh3fj270k5tdn95cgjlm5", - "ProviderName": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - "us-east-1_1A4RMvPNr" - ] - ] - } - } - ], - "IdentityPoolTags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "SupportedLoginProviders": {} - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/IdentityPool" - } - }, - "amplifyAuthIdentityPoolRoleAttachment045F17C8": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": "us-east-1:820c5910-56e0-4010-b0c4-b457a728acfb", - "RoleMappings": { - "UserPoolWebClientRoleMapping": { - "AmbiguousRoleResolution": "AuthenticatedRole", - "IdentityProvider": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - "us-east-1_1A4RMvPNr", - ":", - "2otm0qh3fj270k5tdn95cgjlm5" - ] - ] - }, - "Type": "Token" - } - }, - "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-moodboard-ge-amplifyAuthunauthenticate-rp3r1qUbAKVV", - "authenticated": "arn:aws:iam::123456789012:role/amplify-moodboard-ge-amplifyAuthauthenticatedU-UANJImTyKZ7p" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/IdentityPoolRoleAttachment" - } - } - }, - "Outputs": {} -} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.mappings.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.mappings.json deleted file mode 100644 index 48bd336abd1..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.mappings.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "Source": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP", - "LogicalResourceId": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65" - }, - "Destination": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding", - "LogicalResourceId": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65" - } - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.source.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.source.template.json deleted file mode 100644 index 3a7e2136339..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.source.template.json +++ /dev/null @@ -1,621 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", - "Resources": { - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucketPolicy9A17D834": { - "Type": "AWS::S3::BucketPolicy", - "Properties": { - "Bucket": "amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:*", - "Condition": { - "Bool": { - "aws:SecureTransport": "false" - } - }, - "Effect": "Deny", - "Principal": { - "AWS": "*" - }, - "Resource": [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - "/*" - ] - ] - } - ] - }, - { - "Action": [ - "s3:PutBucketPolicy", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*" - ], - "Effect": "Allow", - "Principal": { - "AWS": "arn:aws:iam::123456789012:role/amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - }, - "Resource": [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - "/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/moodboard20e29595008142e3ad16f01c4066e1c41959a-gen2-main/Bucket/Policy/Resource" - } - }, - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucketAutoDeleteObjectsCustomResource6C820EA7": { - "Type": "Custom::S3AutoDeleteObjects", - "Properties": { - "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "BucketName": "amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z" - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/moodboard20e29595008142e3ad16f01c4066e1c41959a-gen2-main/Bucket/AutoDeleteObjectsCustomResource/Default" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ] - }, - "ManagedPolicyArns": [ - { - "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" - }, - "Timeout": 900, - "MemorySize": 128, - "Handler": "index.handler", - "Role": "arn:aws:iam::123456789012:role/amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Runtime": "nodejs22.x", - "Description": { - "Fn::Join": [ - "", - [ - "Lambda function for auto-deleting objects in ", - "amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - " S3 bucket." - ] - ] - } - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", - "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", - "aws:asset:property": "Code" - } - }, - "MOODBOARD20E29595008142E3AD16F01C4066E1C41959AGEN2MAINBUCKETNAMEParameter8092E674": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/moodboard/gen2main-branch-f7e4caeabb/MOODBOARD_20_E_29595008142_E_3_AD_16_F_01_C_4066_E_1_C_41959_A_GEN_2_MAIN_BUCKET_NAME", - "Tags": { - "amplify:app-id": "moodboard", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": "amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/MOODBOARD_20_E_29595008142_E_3_AD_16_F_01_C_4066_E_1_C_41959_A_GEN_2_MAIN_BUCKET_NAMEParameter/Resource" - } - }, - "amplifymoodboardgen2mainbranchf7e4caeabbstorageAccess390737D54": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - "/public/*" - ] - ] - } - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/*", - "public/" - ] - } - }, - "Effect": "Allow", - "Resource": "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "amplifymoodboardgen2mainbranchf7e4caeabbstorageAccess390737D54", - "Roles": [ - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/amplify-moodboard-gen2main-branch-f7e4caeabb--storageAccess3/Resource" - } - }, - "amplifymoodboardgen2mainbranchf7e4caeabbstorageAccess48AB6518A": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:PutObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/*", - "public/", - "protected/*", - "protected/", - "private/*", - "private/" - ] - } - }, - "Effect": "Allow", - "Resource": "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z" - }, - { - "Action": "s3:DeleteObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - "/private/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "amplifymoodboardgen2mainbranchf7e4caeabbstorageAccess48AB6518A", - "Roles": [ - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/amplify-moodboard-gen2main-branch-f7e4caeabb--storageAccess4/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WLTQ6CMBCFz8K+jIgu3Cp7Q+AAppaRjNA26QwQ03B3QyASV+97fznk5yNkiZ44NU2X9vSEeEcWbGrRplN64kfkE8TbYDoUVbzcRquUvifz2ePVz4rZQqwlkGtLHbRFwbCsfmZWpC3E/b89Z1UMLN5WyH4IBpdq57+qDH6kBsNNM6orM0otuiXXzsr5BuHNhzHP4XiBLHkzURoGJ2QRqlW/LyyDFv0AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef": { - "Type": "String" - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref": { - "Type": "String" - } - }, - "Outputs": { - "amplifymoodboardgen2mainbranchf7e4caeabbstoragemoodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket352A7A47Ref": { - "Value": "amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.target.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.target.template.json deleted file mode 100644 index d40a0c67f7d..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP-holding.target.template.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "Temporary holding stack for Gen2 migration", - "Resources": { - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "BucketKeyEnabled": false, - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "MaxAge": 3000 - } - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "moodboard20e29595008142e3ad16f01c4066e1c41959a-gen2-main" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/moodboard20e29595008142e3ad16f01c4066e1c41959a-gen2-main/Bucket/Resource" - } - } - }, - "Outputs": {} -} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.mappings.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.mappings.json deleted file mode 100644 index 2f3cfeed033..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.mappings.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "Source": { - "StackName": "amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S", - "LogicalResourceId": "KinesisStream" - }, - "Destination": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW", - "LogicalResourceId": "moodboardKinesisKinesisStreamD5E97047" - } - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.source.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.source.template.json deleted file mode 100644 index 0133af0ad57..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.source.template.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"analytics-Kinesis\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "Parameters": { - "env": { - "Type": "String" - }, - "kinesisStreamName": { - "Type": "String" - }, - "kinesisStreamShardCount": { - "Type": "Number", - "Default": 1 - }, - "authPolicyName": { - "Type": "String" - }, - "unauthPolicyName": { - "Type": "String" - }, - "authRoleName": { - "Type": "String" - }, - "unauthRoleName": { - "Type": "String" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - "main", - "NONE" - ] - } - }, - "Resources": { - "CognitoUnauthPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyName": "kinesis_amplify_bca5ce95", - "Roles": [ - "amplify-moodboard-main-1959a-unauthRole" - ], - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "kinesis:PutRecord", - "kinesis:PutRecords" - ], - "Resource": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-main" - } - ] - } - } - }, - "CognitoAuthPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyName": "kinesis_amplify_bca5ce95", - "Roles": [ - "amplify-moodboard-main-1959a-authRole" - ], - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "kinesis:PutRecord", - "kinesis:PutRecords" - ], - "Resource": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-main" - } - ] - } - } - } - }, - "Outputs": { - "kinesisStreamArn": { - "Value": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-main" - }, - "kinesisStreamId": { - "Value": "moodboardKinesis-main" - }, - "kinesisStreamShardCount": { - "Value": "1" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.target.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.target.template.json deleted file mode 100644 index 838bc149392..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.target.template.json +++ /dev/null @@ -1,372 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.21.0\",\"stackType\":\"custom\",\"metadata\":{}}", - "Resources": { - "moodboardKinesisCognitoAuthPolicyB69F4FA6": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "kinesis:PutRecord", - "kinesis:PutRecords" - ], - "Resource": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-gen2-main" - } - ] - }, - "PolicyName": "moodboardKinesis-auth-policy-gen2-main", - "Roles": [ - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/analytics/moodboardKinesis/CognitoAuthPolicy" - } - }, - "moodboardKinesisCognitoUnauthPolicyC4CE1D44": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "kinesis:PutRecord", - "kinesis:PutRecords" - ], - "Resource": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-gen2-main" - } - ] - }, - "PolicyName": "moodboardKinesis-unauth-policy-gen2-main", - "Roles": [ - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/analytics/moodboardKinesis/CognitoUnauthPolicy" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXHwQqDMAwA0G/x3mZadtjd+zbmB0jWRoi1dZh0MsR/F9np8Ry4awN1hatYH6Kd+A3bnUQpdIo+Glyl3yJnEhZoh9zpQpgMYzr3nCf2v920Q34U/RTdTZ4DwSiXr3PQ3KCuRmG2S8nKieD19wCgungydwAAAA==" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/analytics/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - }, - "moodboardKinesisKinesisStreamD5E97047": { - "Type": "AWS::Kinesis::Stream", - "Properties": { - "Name": { - "Fn::Join": [ - "-", - [ - "moodboardKinesis", - "main" - ] - ] - }, - "ShardCount": "1" - } - } - }, - "Outputs": { - "kinesisStreamArn": { - "Value": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-gen2-main" - }, - "kinesisStreamId": { - "Value": "moodboardKinesis-gen2-main" - }, - "kinesisStreamShardCount": { - "Value": "1" - }, - "amplifymoodboardgen2mainbranchf7e4caeabbanalyticsmoodboardKinesisKinesisStreamBD82380AArn": { - "Value": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-gen2-main" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref": { - "Type": "String" - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef": { - "Type": "String" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.mappings.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.mappings.json deleted file mode 100644 index cc0780fc7cc..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.mappings.json +++ /dev/null @@ -1,52 +0,0 @@ -[ - { - "Source": { - "StackName": "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM", - "LogicalResourceId": "UserPool" - }, - "Destination": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" - } - }, - { - "Source": { - "StackName": "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM", - "LogicalResourceId": "UserPoolClientWeb" - }, - "Destination": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" - } - }, - { - "Source": { - "StackName": "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM", - "LogicalResourceId": "UserPoolClient" - }, - "Destination": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" - } - }, - { - "Source": { - "StackName": "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM", - "LogicalResourceId": "IdentityPool" - }, - "Destination": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" - } - }, - { - "Source": { - "StackName": "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM", - "LogicalResourceId": "IdentityPoolRoleMap" - }, - "Destination": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" - } - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.source.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.source.template.json deleted file mode 100644 index 82f9fd72f24..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.source.template.json +++ /dev/null @@ -1,190 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "env": { - "Type": "String" - }, - "identityPoolName": { - "Type": "String" - }, - "allowUnauthenticatedIdentities": { - "Type": "String" - }, - "resourceNameTruncated": { - "Type": "String" - }, - "userPoolName": { - "Type": "String" - }, - "autoVerifiedAttributes": { - "Type": "CommaDelimitedList" - }, - "mfaConfiguration": { - "Type": "String" - }, - "mfaTypes": { - "Type": "CommaDelimitedList" - }, - "smsAuthenticationMessage": { - "Type": "String" - }, - "smsVerificationMessage": { - "Type": "String" - }, - "emailVerificationSubject": { - "Type": "String" - }, - "emailVerificationMessage": { - "Type": "String" - }, - "defaultPasswordPolicy": { - "Type": "String" - }, - "passwordPolicyMinLength": { - "Type": "String" - }, - "passwordPolicyCharacters": { - "Type": "CommaDelimitedList" - }, - "requiredAttributes": { - "Type": "CommaDelimitedList" - }, - "aliasAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientGenerateSecret": { - "Type": "String" - }, - "userpoolClientRefreshTokenValidity": { - "Type": "String" - }, - "userpoolClientWriteAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientReadAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientLambdaRole": { - "Type": "String" - }, - "userpoolClientSetAttributes": { - "Type": "String" - }, - "sharedId": { - "Type": "String" - }, - "resourceName": { - "Type": "String" - }, - "authSelections": { - "Type": "String" - }, - "useDefault": { - "Type": "String" - }, - "usernameAttributes": { - "Type": "CommaDelimitedList" - }, - "userPoolGroupList": { - "Type": "CommaDelimitedList" - }, - "serviceName": { - "Type": "String" - }, - "usernameCaseSensitive": { - "Type": "String" - }, - "useEnabledMfas": { - "Type": "String" - }, - "authRoleArn": { - "Type": "String" - }, - "unauthRoleArn": { - "Type": "String" - }, - "breakCircularDependency": { - "Type": "String" - }, - "dependsOn": { - "Type": "CommaDelimitedList" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - "main", - "NONE" - ] - } - }, - "Resources": { - "UserPoolClientRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - }, - "Action": "sts:AssumeRole" - } - ] - }, - "RoleName": { - "Fn::Join": [ - "", - [ - "upClientLambdaRole759ae00a", - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM" - ] - } - ] - }, - "-", - "main" - ] - ] - } - } - } - }, - "Outputs": { - "IdentityPoolId": { - "Description": "Id for the identity pool", - "Value": "us-east-1:a39e734d-ac34-43c7-8303-67512f010f0d" - }, - "IdentityPoolName": { - "Value": "moodboard759ae00a_identitypool_759ae00a__main" - }, - "UserPoolId": { - "Description": "Id for the user pool", - "Value": "us-east-1_Cwvqs93Nc" - }, - "UserPoolArn": { - "Description": "Arn for the user pool", - "Value": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_Cwvqs93Nc" - }, - "UserPoolName": { - "Value": "moodboard759ae00a_userpool_759ae00a" - }, - "AppClientIDWeb": { - "Description": "The user pool app client id for web", - "Value": "5t2df7ru217mr5ar6r44r61uqg" - }, - "AppClientID": { - "Description": "The user pool app client id", - "Value": "1ssdipb0d8rfa77rq3o7u8t16c" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.target.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.target.template.json deleted file mode 100644 index 75f291f8426..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.target.template.json +++ /dev/null @@ -1,524 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.11.1\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", - "Resources": { - "amplifyAuthauthenticatedUserRoleD8DA3689": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:820c5910-56e0-4010-b0c4-b457a728acfb" - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "authenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/authenticatedUserRole/Resource" - } - }, - "amplifyAuthunauthenticatedUserRole2B524D9E": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:820c5910-56e0-4010-b0c4-b457a728acfb" - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "unauthenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/unauthenticatedUserRole/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/02LwQrCMBBEv8V7urbBg1fpyYtIxbPEZNVt0w00q0VC/l2KVHuamTczGvSmgnJlxlhY1xWerpAOGAXdSYztlBnjJdlwZ5IA6RxxOIbgVX3jn59N7QlZltWf7B2ykLzn8zI3weNOxNhHjyxZkekhTXAaTppzVhwcQhvXL62h2kK5aiNRMTxZqEdovvoBH9Args4AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - }, - "amplifyAuthUserPool4BA7F805": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": "Your verification code is {####}", - "EmailVerificationSubject": "Your verification code", - "MfaConfiguration": "OFF", - "Policies": { - "PasswordPolicy": { - "MinimumLength": "8", - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolName": { - "Fn::Join": [ - "", - [ - "moodboard759ae00a_userpool_759ae00a", - "-", - "main" - ] - ] - }, - "UsernameAttributes": [ - "email" - ], - "UsernameConfiguration": { - "CaseSensitive": false - } - } - }, - "amplifyAuthUserPoolAppClient2626C6F8": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "moodbo759ae00a_app_clientWeb", - "RefreshTokenValidity": "30", - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": "us-east-1_Cwvqs93Nc" - } - }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "moodbo759ae00a_app_client", - "GenerateSecret": "false", - "RefreshTokenValidity": "30", - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": "us-east-1_Cwvqs93Nc" - } - }, - "amplifyAuthIdentityPool3FDE84CC": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": "true", - "CognitoIdentityProviders": [ - { - "ClientId": "1ssdipb0d8rfa77rq3o7u8t16c", - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": "us-east-1_Cwvqs93Nc" - } - ] - } - }, - { - "ClientId": "5t2df7ru217mr5ar6r44r61uqg", - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": "us-east-1_Cwvqs93Nc" - } - ] - } - } - ], - "IdentityPoolName": { - "Fn::Join": [ - "", - [ - "moodboard759ae00a_identitypool_759ae00a__", - "main" - ] - ] - } - } - }, - "amplifyAuthIdentityPoolRoleAttachment045F17C8": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": "us-east-1:a39e734d-ac34-43c7-8303-67512f010f0d", - "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-moodboard-main-1959a-unauthRole", - "authenticated": "arn:aws:iam::123456789012:role/amplify-moodboard-main-1959a-authRole" - } - } - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Outputs": { - "amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthUserPoolAE38F854Ref": { - "Value": "us-east-1_1A4RMvPNr" - }, - "amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthUserPoolAppClientA69935A4Ref": { - "Value": "2otm0qh3fj270k5tdn95cgjlm5" - }, - "amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef": { - "Value": "us-east-1:820c5910-56e0-4010-b0c4-b457a728acfb" - }, - "amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref": { - "Value": "amplify-moodboard-ge-amplifyAuthauthenticatedU-UANJImTyKZ7p" - }, - "amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef": { - "Value": "amplify-moodboard-ge-amplifyAuthunauthenticate-rp3r1qUbAKVV" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.mappings.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.mappings.json deleted file mode 100644 index 7300a23d4f8..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.mappings.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "Source": { - "StackName": "amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA", - "LogicalResourceId": "S3Bucket" - }, - "Destination": { - "StackName": "amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP", - "LogicalResourceId": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65" - } - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.source.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.source.template.json deleted file mode 100644 index 91330cd6b72..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.source.template.json +++ /dev/null @@ -1,469 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-S3\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "env": { - "Type": "String" - }, - "bucketName": { - "Type": "String" - }, - "authRoleName": { - "Type": "String" - }, - "unauthRoleName": { - "Type": "String" - }, - "authPolicyName": { - "Type": "String" - }, - "unauthPolicyName": { - "Type": "String" - }, - "s3PublicPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3PrivatePolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3ProtectedPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3UploadsPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3ReadPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3PermissionsAuthenticatedPublic": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedProtected": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedPrivate": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedUploads": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsGuestPublic": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsGuestUploads": { - "Type": "String", - "Default": "DISALLOW" - }, - "AuthenticatedAllowList": { - "Type": "String", - "Default": "DISALLOW" - }, - "GuestAllowList": { - "Type": "String", - "Default": "DISALLOW" - }, - "selectedGuestPermissions": { - "Type": "CommaDelimitedList", - "Default": "NONE" - }, - "selectedAuthenticatedPermissions": { - "Type": "CommaDelimitedList", - "Default": "NONE" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - "main", - "NONE" - ] - }, - "CreateAuthPublic": { - "Fn::Not": [ - { - "Fn::Equals": [ - "s3:PutObject,s3:GetObject,s3:DeleteObject", - "DISALLOW" - ] - } - ] - }, - "CreateAuthProtected": { - "Fn::Not": [ - { - "Fn::Equals": [ - "s3:PutObject,s3:GetObject,s3:DeleteObject", - "DISALLOW" - ] - } - ] - }, - "CreateAuthPrivate": { - "Fn::Not": [ - { - "Fn::Equals": [ - "s3:PutObject,s3:GetObject,s3:DeleteObject", - "DISALLOW" - ] - } - ] - }, - "CreateAuthUploads": { - "Fn::Not": [ - { - "Fn::Equals": [ - "s3:PutObject", - "DISALLOW" - ] - } - ] - }, - "CreateGuestPublic": { - "Fn::Not": [ - { - "Fn::Equals": [ - "s3:GetObject", - "DISALLOW" - ] - } - ] - }, - "CreateGuestUploads": { - "Fn::Not": [ - { - "Fn::Equals": [ - "DISALLOW", - "DISALLOW" - ] - } - ] - }, - "AuthReadAndList": { - "Fn::Not": [ - { - "Fn::Equals": [ - "ALLOW", - "DISALLOW" - ] - } - ] - }, - "GuestReadAndList": { - "Fn::Not": [ - { - "Fn::Equals": [ - "ALLOW", - "DISALLOW" - ] - } - ] - } - }, - "Outputs": { - "BucketName": { - "Description": "Bucket name for the S3 bucket", - "Value": "moodboard20e29595008142e3ad16f01c4066e1c41959a-main" - }, - "Region": { - "Value": "us-east-1" - } - }, - "Resources": { - "S3AuthPublicPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - "s3:PutObject,s3:GetObject,s3:DeleteObject" - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "moodboard20e29595008142e3ad16f01c4066e1c41959a-main", - "/public/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "Public_policy_206c638b", - "Roles": [ - "amplify-moodboard-main-1959a-authRole" - ] - }, - "Condition": "CreateAuthPublic" - }, - "S3AuthProtectedPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - "s3:PutObject,s3:GetObject,s3:DeleteObject" - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "moodboard20e29595008142e3ad16f01c4066e1c41959a-main", - "/protected/${cognito-identity.amazonaws.com:sub}/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "Protected_policy_206c638b", - "Roles": [ - "amplify-moodboard-main-1959a-authRole" - ] - }, - "Condition": "CreateAuthProtected" - }, - "S3AuthPrivatePolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - "s3:PutObject,s3:GetObject,s3:DeleteObject" - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "moodboard20e29595008142e3ad16f01c4066e1c41959a-main", - "/private/${cognito-identity.amazonaws.com:sub}/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "Private_policy_206c638b", - "Roles": [ - "amplify-moodboard-main-1959a-authRole" - ] - }, - "Condition": "CreateAuthPrivate" - }, - "S3AuthUploadPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - "s3:PutObject" - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "moodboard20e29595008142e3ad16f01c4066e1c41959a-main", - "/uploads/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "Uploads_policy_206c638b", - "Roles": [ - "amplify-moodboard-main-1959a-authRole" - ] - }, - "Condition": "CreateAuthUploads" - }, - "S3GuestPublicPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - "s3:GetObject" - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "moodboard20e29595008142e3ad16f01c4066e1c41959a-main", - "/public/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "Public_policy_206c638b", - "Roles": [ - "amplify-moodboard-main-1959a-unauthRole" - ] - }, - "Condition": "CreateGuestPublic" - }, - "S3AuthReadPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "moodboard20e29595008142e3ad16f01c4066e1c41959a-main", - "/protected/*" - ] - ] - } - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/", - "public/*", - "protected/", - "protected/*", - "private/${cognito-identity.amazonaws.com:sub}/", - "private/${cognito-identity.amazonaws.com:sub}/*" - ] - } - }, - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "moodboard20e29595008142e3ad16f01c4066e1c41959a-main" - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "read_policy_206c638b", - "Roles": [ - "amplify-moodboard-main-1959a-authRole" - ] - }, - "Condition": "AuthReadAndList" - }, - "S3GuestReadPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "moodboard20e29595008142e3ad16f01c4066e1c41959a-main", - "/protected/*" - ] - ] - } - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/", - "public/*", - "protected/", - "protected/*" - ] - } - }, - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "moodboard20e29595008142e3ad16f01c4066e1c41959a-main" - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "read_policy_206c638b", - "Roles": [ - "amplify-moodboard-main-1959a-unauthRole" - ] - }, - "Condition": "GuestReadAndList" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.target.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.target.template.json deleted file mode 100644 index b5962a18290..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.__to__.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.target.template.json +++ /dev/null @@ -1,685 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", - "Resources": { - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucketPolicy9A17D834": { - "Type": "AWS::S3::BucketPolicy", - "Properties": { - "Bucket": "amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:*", - "Condition": { - "Bool": { - "aws:SecureTransport": "false" - } - }, - "Effect": "Deny", - "Principal": { - "AWS": "*" - }, - "Resource": [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - "/*" - ] - ] - } - ] - }, - { - "Action": [ - "s3:PutBucketPolicy", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*" - ], - "Effect": "Allow", - "Principal": { - "AWS": "arn:aws:iam::123456789012:role/amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - }, - "Resource": [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - "/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/moodboard20e29595008142e3ad16f01c4066e1c41959a-gen2-main/Bucket/Policy/Resource" - } - }, - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucketAutoDeleteObjectsCustomResource6C820EA7": { - "Type": "Custom::S3AutoDeleteObjects", - "Properties": { - "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "BucketName": "amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z" - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/moodboard20e29595008142e3ad16f01c4066e1c41959a-gen2-main/Bucket/AutoDeleteObjectsCustomResource/Default" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ] - }, - "ManagedPolicyArns": [ - { - "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" - }, - "Timeout": 900, - "MemorySize": 128, - "Handler": "index.handler", - "Role": "arn:aws:iam::123456789012:role/amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Runtime": "nodejs22.x", - "Description": { - "Fn::Join": [ - "", - [ - "Lambda function for auto-deleting objects in ", - "amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - " S3 bucket." - ] - ] - } - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", - "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", - "aws:asset:property": "Code" - } - }, - "MOODBOARD20E29595008142E3AD16F01C4066E1C41959AGEN2MAINBUCKETNAMEParameter8092E674": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/moodboard/gen2main-branch-f7e4caeabb/MOODBOARD_20_E_29595008142_E_3_AD_16_F_01_C_4066_E_1_C_41959_A_GEN_2_MAIN_BUCKET_NAME", - "Tags": { - "amplify:app-id": "moodboard", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": "amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/MOODBOARD_20_E_29595008142_E_3_AD_16_F_01_C_4066_E_1_C_41959_A_GEN_2_MAIN_BUCKET_NAMEParameter/Resource" - } - }, - "amplifymoodboardgen2mainbranchf7e4caeabbstorageAccess390737D54": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - "/public/*" - ] - ] - } - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/*", - "public/" - ] - } - }, - "Effect": "Allow", - "Resource": "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "amplifymoodboardgen2mainbranchf7e4caeabbstorageAccess390737D54", - "Roles": [ - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/amplify-moodboard-gen2main-branch-f7e4caeabb--storageAccess3/Resource" - } - }, - "amplifymoodboardgen2mainbranchf7e4caeabbstorageAccess48AB6518A": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:PutObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/*", - "public/", - "protected/*", - "protected/", - "private/*", - "private/" - ] - } - }, - "Effect": "Allow", - "Resource": "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z" - }, - { - "Action": "s3:DeleteObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - "/private/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "amplifymoodboardgen2mainbranchf7e4caeabbstorageAccess48AB6518A", - "Roles": [ - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/amplify-moodboard-gen2main-branch-f7e4caeabb--storageAccess4/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WLTQ6CMBCFz8K+jIgu3Cp7Q+AAppaRjNA26QwQ03B3QyASV+97fznk5yNkiZ44NU2X9vSEeEcWbGrRplN64kfkE8TbYDoUVbzcRquUvifz2ePVz4rZQqwlkGtLHbRFwbCsfmZWpC3E/b89Z1UMLN5WyH4IBpdq57+qDH6kBsNNM6orM0otuiXXzsr5BuHNhzHP4XiBLHkzURoGJ2QRqlW/LyyDFv0AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - }, - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketName": { - "Fn::Join": [ - "", - [ - "moodboard20e29595008142e3ad16f01c4066e1c4", - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - "amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA" - ] - } - ] - }, - "-", - "main" - ] - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "Id": "S3CORSRuleId1", - "MaxAge": 3000 - } - ] - }, - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - } - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef": { - "Type": "String" - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref": { - "Type": "String" - } - }, - "Outputs": { - "amplifymoodboardgen2mainbranchf7e4caeabbstoragemoodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket352A7A47Ref": { - "Value": "amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-x-x-analyticsmoodboardKinesis-x.__to__.amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x.mappings.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-x-x-analyticsmoodboardKinesis-x.__to__.amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x.mappings.json new file mode 100644 index 00000000000..e8888721cbf --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-x-x-analyticsmoodboardKinesis-x.__to__.amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x.mappings.json @@ -0,0 +1,12 @@ +[ + { + "Source": { + "StackName": "amplify-moodboard-x-x-analyticsmoodboardKinesis-x", + "LogicalResourceId": "KinesisStream" + }, + "Destination": { + "StackName": "amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x", + "LogicalResourceId": "moodboardKinesisKinesisStreamD5E97047" + } + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-x-x-analyticsmoodboardKinesis-x.__to__.amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x.source.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-x-x-analyticsmoodboardKinesis-x.__to__.amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x.source.template.json new file mode 100644 index 00000000000..dcef3ce521e --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-x-x-analyticsmoodboardKinesis-x.__to__.amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x.source.template.json @@ -0,0 +1,93 @@ +{ + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"analytics-Kinesis\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Parameters": { + "env": { + "Type": "String" + }, + "kinesisStreamName": { + "Type": "String" + }, + "kinesisStreamShardCount": { + "Type": "Number", + "Default": 1 + }, + "authPolicyName": { + "Type": "String" + }, + "unauthPolicyName": { + "Type": "String" + }, + "authRoleName": { + "Type": "String" + }, + "unauthRoleName": { + "Type": "String" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + "x", + "NONE" + ] + } + }, + "Resources": { + "CognitoUnauthPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyName": "kinesis_amplify_bca5ce95", + "Roles": [ + "amplify-moodboard-x-x-unauthRole" + ], + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "kinesis:PutRecord", + "kinesis:PutRecords" + ], + "Resource": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-x" + } + ] + } + } + }, + "CognitoAuthPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyName": "kinesis_amplify_bca5ce95", + "Roles": [ + "amplify-moodboard-x-x-authRole" + ], + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "kinesis:PutRecord", + "kinesis:PutRecords" + ], + "Resource": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-x" + } + ] + } + } + } + }, + "Outputs": { + "kinesisStreamArn": { + "Value": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-x" + }, + "kinesisStreamId": { + "Value": "moodboardKinesis-x" + }, + "kinesisStreamShardCount": { + "Value": "1" + } + } +} diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-x-x-analyticsmoodboardKinesis-x.__to__.amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x.target.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-x-x-analyticsmoodboardKinesis-x.__to__.amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x.target.template.json new file mode 100644 index 00000000000..5dd6385bb34 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-x-x-analyticsmoodboardKinesis-x.__to__.amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x.target.template.json @@ -0,0 +1,376 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.22.0\",\"stackType\":\"custom\",\"metadata\":{}}", + "Resources": { + "moodboardKinesisCognitoAuthPolicyB69F4FA6": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "kinesis:PutRecord", + "kinesis:PutRecords" + ], + "Resource": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-gen2-x" + } + ] + }, + "PolicyName": "moodboardKinesis-auth-policy-gen2-x", + "Roles": [ + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/analytics/moodboardKinesis/CognitoAuthPolicy" + } + }, + "moodboardKinesisCognitoUnauthPolicyC4CE1D44": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "kinesis:PutRecord", + "kinesis:PutRecords" + ], + "Resource": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-gen2-x" + } + ] + }, + "PolicyName": "moodboardKinesis-unauth-policy-gen2-x", + "Roles": [ + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/analytics/moodboardKinesis/CognitoUnauthPolicy" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXHUQrCMAwA0LPsv421MC+wfxV3AIltBlnXTpbUIWN3H+LX43nwrQPX4Co2xGQnfsF2JVGKvWJIBld5bokLCQt0Q+l1IcyGMf92nycO3910Q7lVfVfdTZkjwSinj/dwvoBrRmG2Sy3KmeDx9wDnXMcSdwAAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/analytics/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + }, + "moodboardKinesisKinesisStreamD5E97047": { + "Type": "AWS::Kinesis::Stream", + "Properties": { + "Name": { + "Fn::Join": [ + "-", + [ + "moodboardKinesis", + "x" + ] + ] + }, + "ShardCount": "1" + } + } + }, + "Outputs": { + "kinesisStreamArn": { + "Value": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-gen2-x" + }, + "kinesisStreamId": { + "Value": "moodboardKinesis-gen2-x" + }, + "kinesisStreamShardCount": { + "Value": "1" + }, + "amplifymoodboarde2esandbox799a4d1a84analyticsmoodboardKinesisKinesisStream1161343BArn": { + "Value": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-gen2-x" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref": { + "Type": "String" + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef": { + "Type": "String" + } + } +} diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-x-x-authmoodboard759ae00a-x.__to__.amplify-moodboard-e2e-sandbox-x-auth179371D7-x.mappings.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-x-x-authmoodboard759ae00a-x.__to__.amplify-moodboard-e2e-sandbox-x-auth179371D7-x.mappings.json new file mode 100644 index 00000000000..a3fc7a9ab3f --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-x-x-authmoodboard759ae00a-x.__to__.amplify-moodboard-e2e-sandbox-x-auth179371D7-x.mappings.json @@ -0,0 +1,52 @@ +[ + { + "Source": { + "StackName": "amplify-moodboard-x-x-authmoodboard759ae00a-x", + "LogicalResourceId": "UserPool" + }, + "Destination": { + "StackName": "amplify-moodboard-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + } + }, + { + "Source": { + "StackName": "amplify-moodboard-x-x-authmoodboard759ae00a-x", + "LogicalResourceId": "UserPoolClientWeb" + }, + "Destination": { + "StackName": "amplify-moodboard-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + } + }, + { + "Source": { + "StackName": "amplify-moodboard-x-x-authmoodboard759ae00a-x", + "LogicalResourceId": "UserPoolClient" + }, + "Destination": { + "StackName": "amplify-moodboard-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + } + }, + { + "Source": { + "StackName": "amplify-moodboard-x-x-authmoodboard759ae00a-x", + "LogicalResourceId": "IdentityPool" + }, + "Destination": { + "StackName": "amplify-moodboard-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + } + }, + { + "Source": { + "StackName": "amplify-moodboard-x-x-authmoodboard759ae00a-x", + "LogicalResourceId": "IdentityPoolRoleMap" + }, + "Destination": { + "StackName": "amplify-moodboard-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + } + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-x-x-authmoodboard759ae00a-x.__to__.amplify-moodboard-e2e-sandbox-x-auth179371D7-x.source.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-x-x-authmoodboard759ae00a-x.__to__.amplify-moodboard-e2e-sandbox-x-auth179371D7-x.source.template.json new file mode 100644 index 00000000000..1c3bf87ca88 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-x-x-authmoodboard759ae00a-x.__to__.amplify-moodboard-e2e-sandbox-x-auth179371D7-x.source.template.json @@ -0,0 +1,190 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "identityPoolName": { + "Type": "String" + }, + "allowUnauthenticatedIdentities": { + "Type": "String" + }, + "resourceNameTruncated": { + "Type": "String" + }, + "userPoolName": { + "Type": "String" + }, + "autoVerifiedAttributes": { + "Type": "CommaDelimitedList" + }, + "mfaConfiguration": { + "Type": "String" + }, + "mfaTypes": { + "Type": "CommaDelimitedList" + }, + "smsAuthenticationMessage": { + "Type": "String" + }, + "smsVerificationMessage": { + "Type": "String" + }, + "emailVerificationSubject": { + "Type": "String" + }, + "emailVerificationMessage": { + "Type": "String" + }, + "defaultPasswordPolicy": { + "Type": "String" + }, + "passwordPolicyMinLength": { + "Type": "String" + }, + "passwordPolicyCharacters": { + "Type": "CommaDelimitedList" + }, + "requiredAttributes": { + "Type": "CommaDelimitedList" + }, + "aliasAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientGenerateSecret": { + "Type": "String" + }, + "userpoolClientRefreshTokenValidity": { + "Type": "String" + }, + "userpoolClientWriteAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientReadAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientLambdaRole": { + "Type": "String" + }, + "userpoolClientSetAttributes": { + "Type": "String" + }, + "sharedId": { + "Type": "String" + }, + "resourceName": { + "Type": "String" + }, + "authSelections": { + "Type": "String" + }, + "useDefault": { + "Type": "String" + }, + "usernameAttributes": { + "Type": "CommaDelimitedList" + }, + "userPoolGroupList": { + "Type": "CommaDelimitedList" + }, + "serviceName": { + "Type": "String" + }, + "usernameCaseSensitive": { + "Type": "String" + }, + "useEnabledMfas": { + "Type": "String" + }, + "authRoleArn": { + "Type": "String" + }, + "unauthRoleArn": { + "Type": "String" + }, + "breakCircularDependency": { + "Type": "String" + }, + "dependsOn": { + "Type": "CommaDelimitedList" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + "x", + "NONE" + ] + } + }, + "Resources": { + "UserPoolClientRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + }, + "Action": "sts:AssumeRole" + } + ] + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "upClientLambdaRole759ae00a", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + "amplify-moodboard-x-x-authmoodboard759ae00a-x" + ] + } + ] + }, + "-", + "x" + ] + ] + } + } + } + }, + "Outputs": { + "IdentityPoolId": { + "Description": "Id for the identity pool", + "Value": "us-east-1:b4ae1cf8-c548-4712-a947-1738d119032f" + }, + "IdentityPoolName": { + "Value": "moodboard759ae00a_identitypool_759ae00a__x" + }, + "UserPoolId": { + "Description": "Id for the user pool", + "Value": "us-east-1_wDScdYiSe" + }, + "UserPoolArn": { + "Description": "Arn for the user pool", + "Value": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_wDScdYiSe" + }, + "UserPoolName": { + "Value": "moodboard759ae00a_userpool_759ae00a" + }, + "AppClientIDWeb": { + "Description": "The user pool app client id for web", + "Value": "34sh75m6c73hj9t6cs8a3pf2sq" + }, + "AppClientID": { + "Description": "The user pool app client id", + "Value": "5it3jnls1mnjbe8a9sit31e6ep" + } + } +} diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-x-x-authmoodboard759ae00a-x.__to__.amplify-moodboard-e2e-sandbox-x-auth179371D7-x.target.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-x-x-authmoodboard759ae00a-x.__to__.amplify-moodboard-e2e-sandbox-x-auth179371D7-x.target.template.json new file mode 100644 index 00000000000..5e887d6e012 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-x-x-authmoodboard759ae00a-x.__to__.amplify-moodboard-e2e-sandbox-x-auth179371D7-x.target.template.json @@ -0,0 +1,512 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", + "Resources": { + "amplifyAuthauthenticatedUserRoleD8DA3689": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:edbce570-5f19-4755-9803-52e7b3e0c56d" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/auth/amplifyAuth/authenticatedUserRole/Resource" + } + }, + "amplifyAuthunauthenticatedUserRole2B524D9E": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:edbce570-5f19-4755-9803-52e7b3e0c56d" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "unauthenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/auth/amplifyAuth/unauthenticatedUserRole/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/02LwQrCMBBEv6X3dK0BvUtPXkQqniUmq26bbqBZLRLy71Kk2tPMvJnRoDcVVIUZY2ldV3q6QjpgFHQnMbZTZoyXZMOdSQKkc8ThGIJX9Y1/fja1J2RZVn+yd8hC8p7Py9wEjzsRYx89smRFpoc0wWk4ac5ZcXAIbVy9tIb1FqqijUTl8GShHqH56gf10GUazgAAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/auth/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + }, + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": "8", + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolName": { + "Fn::Join": [ + "", + [ + "moodboard759ae00a_userpool_759ae00a", + "-", + "x" + ] + ] + }, + "UsernameAttributes": [ + "email" + ], + "UsernameConfiguration": { + "CaseSensitive": false + } + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "moodbo759ae00a_app_clientWeb", + "RefreshTokenValidity": "30", + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": "us-east-1_wDScdYiSe" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "moodbo759ae00a_app_client", + "GenerateSecret": "false", + "RefreshTokenValidity": "30", + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": "us-east-1_wDScdYiSe" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": "true", + "CognitoIdentityProviders": [ + { + "ClientId": "5it3jnls1mnjbe8a9sit31e6ep", + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": "us-east-1_wDScdYiSe" + } + ] + } + }, + { + "ClientId": "34sh75m6c73hj9t6cs8a3pf2sq", + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": "us-east-1_wDScdYiSe" + } + ] + } + } + ], + "IdentityPoolName": { + "Fn::Join": [ + "", + [ + "moodboard759ae00a_identitypool_759ae00a__", + "x" + ] + ] + } + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:b4ae1cf8-c548-4712-a947-1738d119032f", + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-moodboard-x-x-unauthRole", + "authenticated": "arn:aws:iam::123456789012:role/amplify-moodboard-x-x-authRole" + } + } + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifymoodboarde2esandbox799a4d1a84authamplifyAuthUserPoolC3F32E8CRef": { + "Value": "us-east-1_K3ZcFPo5Q" + }, + "amplifymoodboarde2esandbox799a4d1a84authamplifyAuthUserPoolAppClientFBE59DFARef": { + "Value": "7jnfsfml09seoak5857srhn920" + }, + "amplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref": { + "Value": "us-east-1:edbce570-5f19-4755-9803-52e7b3e0c56d" + }, + "amplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref": { + "Value": "amplify-moodboard26041500-amplifyAuthauthenticatedU-inPzqwEs0wDw" + }, + "amplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef": { + "Value": "amplify-moodboard26041500-amplifyAuthunauthenticate-2CR87a5ajww1" + } + } +} diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-x-x-storagemoodboardStorage-x.__to__.amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x.mappings.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-x-x-storagemoodboardStorage-x.__to__.amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x.mappings.json new file mode 100644 index 00000000000..ed9365470ff --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-x-x-storagemoodboardStorage-x.__to__.amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x.mappings.json @@ -0,0 +1,12 @@ +[ + { + "Source": { + "StackName": "amplify-moodboard-x-x-storagemoodboardStorage-x", + "LogicalResourceId": "S3Bucket" + }, + "Destination": { + "StackName": "amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x", + "LogicalResourceId": "moodboard20e29595008142e3ad16f01c4066e1c4xgen2xBucketF509CA7A" + } + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-x-x-storagemoodboardStorage-x.__to__.amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x.source.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-x-x-storagemoodboardStorage-x.__to__.amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x.source.template.json new file mode 100644 index 00000000000..5fd1f2f2c0f --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-x-x-storagemoodboardStorage-x.__to__.amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x.source.template.json @@ -0,0 +1,469 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-S3\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "bucketName": { + "Type": "String" + }, + "authRoleName": { + "Type": "String" + }, + "unauthRoleName": { + "Type": "String" + }, + "authPolicyName": { + "Type": "String" + }, + "unauthPolicyName": { + "Type": "String" + }, + "s3PublicPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3PrivatePolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3ProtectedPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3UploadsPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3ReadPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3PermissionsAuthenticatedPublic": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedProtected": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedPrivate": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedUploads": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsGuestPublic": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsGuestUploads": { + "Type": "String", + "Default": "DISALLOW" + }, + "AuthenticatedAllowList": { + "Type": "String", + "Default": "DISALLOW" + }, + "GuestAllowList": { + "Type": "String", + "Default": "DISALLOW" + }, + "selectedGuestPermissions": { + "Type": "CommaDelimitedList", + "Default": "NONE" + }, + "selectedAuthenticatedPermissions": { + "Type": "CommaDelimitedList", + "Default": "NONE" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + "x", + "NONE" + ] + }, + "CreateAuthPublic": { + "Fn::Not": [ + { + "Fn::Equals": [ + "s3:PutObject,s3:GetObject,s3:DeleteObject", + "DISALLOW" + ] + } + ] + }, + "CreateAuthProtected": { + "Fn::Not": [ + { + "Fn::Equals": [ + "s3:PutObject,s3:GetObject,s3:DeleteObject", + "DISALLOW" + ] + } + ] + }, + "CreateAuthPrivate": { + "Fn::Not": [ + { + "Fn::Equals": [ + "s3:PutObject,s3:GetObject,s3:DeleteObject", + "DISALLOW" + ] + } + ] + }, + "CreateAuthUploads": { + "Fn::Not": [ + { + "Fn::Equals": [ + "s3:PutObject", + "DISALLOW" + ] + } + ] + }, + "CreateGuestPublic": { + "Fn::Not": [ + { + "Fn::Equals": [ + "s3:GetObject", + "DISALLOW" + ] + } + ] + }, + "CreateGuestUploads": { + "Fn::Not": [ + { + "Fn::Equals": [ + "DISALLOW", + "DISALLOW" + ] + } + ] + }, + "AuthReadAndList": { + "Fn::Not": [ + { + "Fn::Equals": [ + "ALLOW", + "DISALLOW" + ] + } + ] + }, + "GuestReadAndList": { + "Fn::Not": [ + { + "Fn::Equals": [ + "ALLOW", + "DISALLOW" + ] + } + ] + } + }, + "Outputs": { + "BucketName": { + "Description": "Bucket name for the S3 bucket", + "Value": "moodboard20e29595008142e3ad16f01c4066e1c4x-x" + }, + "Region": { + "Value": "us-east-1" + } + }, + "Resources": { + "S3AuthPublicPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + "s3:PutObject,s3:GetObject,s3:DeleteObject" + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "moodboard20e29595008142e3ad16f01c4066e1c4x-x", + "/public/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "Public_policy_206c638b", + "Roles": [ + "amplify-moodboard-x-x-authRole" + ] + }, + "Condition": "CreateAuthPublic" + }, + "S3AuthProtectedPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + "s3:PutObject,s3:GetObject,s3:DeleteObject" + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "moodboard20e29595008142e3ad16f01c4066e1c4x-x", + "/protected/${cognito-identity.amazonaws.com:sub}/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "Protected_policy_206c638b", + "Roles": [ + "amplify-moodboard-x-x-authRole" + ] + }, + "Condition": "CreateAuthProtected" + }, + "S3AuthPrivatePolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + "s3:PutObject,s3:GetObject,s3:DeleteObject" + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "moodboard20e29595008142e3ad16f01c4066e1c4x-x", + "/private/${cognito-identity.amazonaws.com:sub}/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "Private_policy_206c638b", + "Roles": [ + "amplify-moodboard-x-x-authRole" + ] + }, + "Condition": "CreateAuthPrivate" + }, + "S3AuthUploadPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + "s3:PutObject" + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "moodboard20e29595008142e3ad16f01c4066e1c4x-x", + "/uploads/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "Uploads_policy_206c638b", + "Roles": [ + "amplify-moodboard-x-x-authRole" + ] + }, + "Condition": "CreateAuthUploads" + }, + "S3GuestPublicPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + "s3:GetObject" + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "moodboard20e29595008142e3ad16f01c4066e1c4x-x", + "/public/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "Public_policy_206c638b", + "Roles": [ + "amplify-moodboard-x-x-unauthRole" + ] + }, + "Condition": "CreateGuestPublic" + }, + "S3AuthReadPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "moodboard20e29595008142e3ad16f01c4066e1c4x-x", + "/protected/*" + ] + ] + } + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/", + "public/*", + "protected/", + "protected/*", + "private/${cognito-identity.amazonaws.com:sub}/", + "private/${cognito-identity.amazonaws.com:sub}/*" + ] + } + }, + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "moodboard20e29595008142e3ad16f01c4066e1c4x-x" + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "read_policy_206c638b", + "Roles": [ + "amplify-moodboard-x-x-authRole" + ] + }, + "Condition": "AuthReadAndList" + }, + "S3GuestReadPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "moodboard20e29595008142e3ad16f01c4066e1c4x-x", + "/protected/*" + ] + ] + } + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/", + "public/*", + "protected/", + "protected/*" + ] + } + }, + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "moodboard20e29595008142e3ad16f01c4066e1c4x-x" + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "read_policy_206c638b", + "Roles": [ + "amplify-moodboard-x-x-unauthRole" + ] + }, + "Condition": "GuestReadAndList" + } + } +} diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-x-x-storagemoodboardStorage-x.__to__.amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x.target.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-x-x-storagemoodboardStorage-x.__to__.amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x.target.template.json new file mode 100644 index 00000000000..6e288143206 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/refactor.__from__.amplify-moodboard-x-x-storagemoodboardStorage-x.__to__.amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x.target.template.json @@ -0,0 +1,695 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", + "Resources": { + "moodboard20e29595008142e3ad16f01c4066e1c4xgen2xBucketPolicyD45A1F02": { + "Type": "AWS::S3::BucketPolicy", + "Properties": { + "Bucket": "amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:*", + "Condition": { + "Bool": { + "aws:SecureTransport": "false" + } + }, + "Effect": "Deny", + "Principal": { + "AWS": "*" + }, + "Resource": [ + "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + "/*" + ] + ] + } + ] + }, + { + "Action": [ + "s3:PutBucketPolicy", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*" + ], + "Effect": "Allow", + "Principal": { + "AWS": "arn:aws:iam::123456789012:role/amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + }, + "Resource": [ + "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/storage/moodboard20e29595008142e3ad16f01c4066e1c4x-gen2-x/Bucket/Policy/Resource" + } + }, + "moodboard20e29595008142e3ad16f01c4066e1c4xgen2xBucketAutoDeleteObjectsCustomResourceB49F1B54": { + "Type": "Custom::S3AutoDeleteObjects", + "Properties": { + "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "BucketName": "amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/storage/moodboard20e29595008142e3ad16f01c4066e1c4x-gen2-x/Bucket/AutoDeleteObjectsCustomResource/Default" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ] + }, + "ManagedPolicyArns": [ + { + "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" + }, + "Timeout": 900, + "MemorySize": 128, + "Handler": "index.handler", + "Role": "arn:aws:iam::123456789012:role/amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Runtime": "nodejs22.x", + "Description": { + "Fn::Join": [ + "", + [ + "Lambda function for auto-deleting objects in ", + "amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + " S3 bucket." + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", + "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", + "aws:asset:property": "Code" + } + }, + "MOODBOARD20E29595008142E3AD16F01C4066E1C417DCAGEN2VDTWFPNEGXBUCKETNAMEParameter5A0015D7": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/moodboard/e2e-sandbox-x/MOODBOARD_20_E_29595008142_E_3_AD_16_F_01_C_4066_E_1_C_417_DCA_GEN_2_VDTWFPNEGX_BUCKET_NAME", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": "amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/storage/MOODBOARD_20_E_29595008142_E_3_AD_16_F_01_C_4066_E_1_C_417_DCA_GEN_2_VDTWFPNEGX_BUCKET_NAMEParameter/Resource" + } + }, + "amplifymoodboarde2esandbox799a4d1a84storageAccess35BE57E89": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + "/public/*" + ] + ] + } + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/*", + "public/" + ] + } + }, + "Effect": "Allow", + "Resource": "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "amplifymoodboarde2esandbox799a4d1a84storageAccess35BE57E89", + "Roles": [ + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/storage/amplify-moodboard-e2e-sandbox-x--storageAccess3/Resource" + } + }, + "amplifymoodboarde2esandbox799a4d1a84storageAccess45ABD2020": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:PutObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/*", + "public/", + "protected/*", + "protected/", + "private/*", + "private/" + ] + } + }, + "Effect": "Allow", + "Resource": "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb" + }, + { + "Action": "s3:DeleteObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + "/private/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "amplifymoodboarde2esandbox799a4d1a84storageAccess45ABD2020", + "Roles": [ + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/storage/amplify-moodboard-e2e-sandbox-x--storageAccess4/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/5WNy07DMBBFv6VZO0NIBQt2fawhapYIIdcZokliW/JMWpDlf0epJQJLVnNH5z5qqB8qqDb6yqXpxnKiM8RnZMGuFW1Gpa/8HnkLcT+bEUUdPlxWr7Gw9EmueCp+hxc/b+GGGLJ1N4s/4oSCL+cBjXCR3lRGjZ/IfK2t+f9Hdw60ogUtult1UswWYiuBXN/ooC0KhmXj50mKtIW4rmeVkjrMLN6ekP0cDC5o1X9QE/yFOgx7zah2zCit6J5cn5TzHcLAd5e6hvtHqDYDE5VhdkIW4ZTvN8L1/x56AQAA" + }, + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/storage/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + }, + "moodboard20e29595008142e3ad16f01c4066e1c4xgen2xBucketF509CA7A": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketName": { + "Fn::Join": [ + "", + [ + "moodboard20e29595008142e3ad16f01c4066e1c4", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + "amplify-moodboard-x-x-storagemoodboardStorage-x" + ] + } + ] + }, + "-", + "x" + ] + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "Id": "S3CORSRuleId1", + "MaxAge": 3000 + } + ] + }, + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + } + }, + "UpdateReplacePolicy": "Retain", + "DeletionPolicy": "Retain" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef": { + "Type": "String" + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref": { + "Type": "String" + } + }, + "Outputs": { + "amplifymoodboarde2esandbox799a4d1a84storagemoodboard20e29595008142e3ad16f01c4066e1c4xgen2xBucket9D2A4CC7Ref": { + "Value": "amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb" + } + } +} diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x.parameters.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x.parameters.json new file mode 100644 index 00000000000..a5356bbc1a2 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x.parameters.json @@ -0,0 +1,10 @@ +[ + { + "ParameterKey": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef", + "ParameterValue": "amplify-moodboard26041500-amplifyAuthunauthenticate-2CR87a5ajww1" + }, + { + "ParameterKey": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref", + "ParameterValue": "amplify-moodboard26041500-amplifyAuthauthenticatedU-inPzqwEs0wDw" + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x.template.json new file mode 100644 index 00000000000..6e195bfc1b2 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x.template.json @@ -0,0 +1,383 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.22.0\",\"stackType\":\"custom\",\"metadata\":{}}", + "Resources": { + "moodboardKinesisKinesisStreamD5E97047": { + "Type": "AWS::Kinesis::Stream", + "Properties": { + "Name": "moodboardKinesis-gen2-x", + "ShardCount": 1, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/analytics/moodboardKinesis/KinesisStream" + } + }, + "moodboardKinesisCognitoAuthPolicyB69F4FA6": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "kinesis:PutRecord", + "kinesis:PutRecords" + ], + "Resource": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-gen2-x" + } + ] + }, + "PolicyName": "moodboardKinesis-auth-policy-gen2-x", + "Roles": [ + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/analytics/moodboardKinesis/CognitoAuthPolicy" + } + }, + "moodboardKinesisCognitoUnauthPolicyC4CE1D44": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "kinesis:PutRecord", + "kinesis:PutRecords" + ], + "Resource": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-gen2-x" + } + ] + }, + "PolicyName": "moodboardKinesis-unauth-policy-gen2-x", + "Roles": [ + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/analytics/moodboardKinesis/CognitoUnauthPolicy" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXHUQrCMAwA0LPsv421MC+wfxV3AIltBlnXTpbUIWN3H+LX43nwrQPX4Co2xGQnfsF2JVGKvWJIBld5bokLCQt0Q+l1IcyGMf92nycO3910Q7lVfVfdTZkjwSinj/dwvoBrRmG2Sy3KmeDx9wDnXMcSdwAAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/analytics/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Outputs": { + "kinesisStreamArn": { + "Value": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-gen2-x" + }, + "kinesisStreamId": { + "Value": "moodboardKinesis-gen2-x" + }, + "kinesisStreamShardCount": { + "Value": "1" + }, + "amplifymoodboarde2esandbox799a4d1a84analyticsmoodboardKinesisKinesisStream1161343BArn": { + "Value": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-gen2-x" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref": { + "Type": "String" + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef": { + "Type": "String" + } + } +} diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-e2e-sandbox-x-auth179371D7-x.parameters.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-e2e-sandbox-x-auth179371D7-x.parameters.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-e2e-sandbox-x-auth179371D7-x.parameters.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-e2e-sandbox-x-auth179371D7-x.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-e2e-sandbox-x-auth179371D7-x.template.json new file mode 100644 index 00000000000..52585769f23 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-e2e-sandbox-x-auth179371D7-x.template.json @@ -0,0 +1,590 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", + "Resources": { + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AccountRecoverySetting": { + "RecoveryMechanisms": [ + { + "Name": "verified_email", + "Priority": 1 + } + ] + }, + "AdminCreateUserConfig": { + "AllowAdminCreateUserOnly": false + }, + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": 8, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false, + "TemporaryPasswordValidityDays": 7 + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "SmsVerificationMessage": "The verification code to your new account is {####}", + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolTags": { + "amplify:deployment-type": "sandbox", + "amplify:friendly-name": "amplifyAuth", + "created-by": "amplify" + }, + "UsernameAttributes": [ + "email" + ], + "UsernameConfiguration": { + "CaseSensitive": false + }, + "VerificationMessageTemplate": { + "DefaultEmailOption": "CONFIRM_WITH_CODE", + "EmailMessage": "Your verification code is {####}", + "EmailSubject": "Your verification code", + "SmsMessage": "The verification code to your new account is {####}" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/auth/amplifyAuth/UserPool/Resource" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 43200, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": "us-east-1_K3ZcFPo5Q" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlows": [ + "code" + ], + "AllowedOAuthFlowsUserPoolClient": true, + "AllowedOAuthScopes": [ + "profile", + "phone", + "email", + "openid", + "aws.cognito.signin.user.admin" + ], + "CallbackURLs": [ + "https://example.com" + ], + "ExplicitAuthFlows": [ + "ALLOW_CUSTOM_AUTH", + "ALLOW_USER_SRP_AUTH", + "ALLOW_REFRESH_TOKEN_AUTH" + ], + "PreventUserExistenceErrors": "ENABLED", + "SupportedIdentityProviders": [ + "COGNITO" + ], + "UserPoolId": "us-east-1_K3ZcFPo5Q" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/auth/amplifyAuth/UserPoolAppClient/Resource" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": true, + "CognitoIdentityProviders": [ + { + "ClientId": "7jnfsfml09seoak5857srhn920", + "ProviderName": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_K3ZcFPo5Q" + ] + ] + } + } + ], + "IdentityPoolTags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "SupportedLoginProviders": {} + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/auth/amplifyAuth/IdentityPool" + } + }, + "amplifyAuthauthenticatedUserRoleD8DA3689": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:edbce570-5f19-4755-9803-52e7b3e0c56d" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/auth/amplifyAuth/authenticatedUserRole/Resource" + } + }, + "amplifyAuthunauthenticatedUserRole2B524D9E": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:edbce570-5f19-4755-9803-52e7b3e0c56d" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "unauthenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/auth/amplifyAuth/unauthenticatedUserRole/Resource" + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:edbce570-5f19-4755-9803-52e7b3e0c56d", + "RoleMappings": { + "UserPoolWebClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_K3ZcFPo5Q", + ":", + "7jnfsfml09seoak5857srhn920" + ] + ] + }, + "Type": "Token" + } + }, + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-moodboard26041500-amplifyAuthunauthenticate-2CR87a5ajww1", + "authenticated": "arn:aws:iam::123456789012:role/amplify-moodboard26041500-amplifyAuthauthenticatedU-inPzqwEs0wDw" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/auth/amplifyAuth/IdentityPoolRoleAttachment" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/02LwQrCMBBEv6X3dK0BvUtPXkQqniUmq26bbqBZLRLy71Kk2tPMvJnRoDcVVIUZY2ldV3q6QjpgFHQnMbZTZoyXZMOdSQKkc8ThGIJX9Y1/fja1J2RZVn+yd8hC8p7Py9wEjzsRYx89smRFpoc0wWk4ac5ZcXAIbVy9tIb1FqqijUTl8GShHqH56gf10GUazgAAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/auth/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifymoodboarde2esandbox799a4d1a84authamplifyAuthUserPoolC3F32E8CRef": { + "Value": "us-east-1_K3ZcFPo5Q" + }, + "amplifymoodboarde2esandbox799a4d1a84authamplifyAuthUserPoolAppClientFBE59DFARef": { + "Value": "7jnfsfml09seoak5857srhn920" + }, + "amplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref": { + "Value": "us-east-1:edbce570-5f19-4755-9803-52e7b3e0c56d" + }, + "amplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref": { + "Value": "amplify-moodboard26041500-amplifyAuthauthenticatedU-inPzqwEs0wDw" + }, + "amplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef": { + "Value": "amplify-moodboard26041500-amplifyAuthunauthenticate-2CR87a5ajww1" + } + } +} diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x.parameters.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x.parameters.json new file mode 100644 index 00000000000..a5356bbc1a2 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x.parameters.json @@ -0,0 +1,10 @@ +[ + { + "ParameterKey": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef", + "ParameterValue": "amplify-moodboard26041500-amplifyAuthunauthenticate-2CR87a5ajww1" + }, + { + "ParameterKey": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref", + "ParameterValue": "amplify-moodboard26041500-amplifyAuthauthenticatedU-inPzqwEs0wDw" + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x.template.json new file mode 100644 index 00000000000..f1ae99e00a7 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x.template.json @@ -0,0 +1,695 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", + "Resources": { + "moodboard20e29595008142e3ad16f01c4066e1c4xgen2xBucketF509CA7A": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "BucketKeyEnabled": false, + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "MaxAge": 3000 + } + ] + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "moodboard20e29595008142e3ad16f01c4066e1c4x-gen2-x" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/storage/moodboard20e29595008142e3ad16f01c4066e1c4x-gen2-x/Bucket/Resource" + } + }, + "moodboard20e29595008142e3ad16f01c4066e1c4xgen2xBucketPolicyD45A1F02": { + "Type": "AWS::S3::BucketPolicy", + "Properties": { + "Bucket": "amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:*", + "Condition": { + "Bool": { + "aws:SecureTransport": "false" + } + }, + "Effect": "Deny", + "Principal": { + "AWS": "*" + }, + "Resource": [ + "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + "/*" + ] + ] + } + ] + }, + { + "Action": [ + "s3:PutBucketPolicy", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*" + ], + "Effect": "Allow", + "Principal": { + "AWS": "arn:aws:iam::123456789012:role/amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + }, + "Resource": [ + "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/storage/moodboard20e29595008142e3ad16f01c4066e1c4x-gen2-x/Bucket/Policy/Resource" + } + }, + "moodboard20e29595008142e3ad16f01c4066e1c4xgen2xBucketAutoDeleteObjectsCustomResourceB49F1B54": { + "Type": "Custom::S3AutoDeleteObjects", + "Properties": { + "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "BucketName": "amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/storage/moodboard20e29595008142e3ad16f01c4066e1c4x-gen2-x/Bucket/AutoDeleteObjectsCustomResource/Default" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ] + }, + "ManagedPolicyArns": [ + { + "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" + }, + "Timeout": 900, + "MemorySize": 128, + "Handler": "index.handler", + "Role": "arn:aws:iam::123456789012:role/amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Runtime": "nodejs22.x", + "Description": { + "Fn::Join": [ + "", + [ + "Lambda function for auto-deleting objects in ", + "amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + " S3 bucket." + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", + "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", + "aws:asset:property": "Code" + } + }, + "MOODBOARD20E29595008142E3AD16F01C4066E1C417DCAGEN2VDTWFPNEGXBUCKETNAMEParameter5A0015D7": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/moodboard/e2e-sandbox-x/MOODBOARD_20_E_29595008142_E_3_AD_16_F_01_C_4066_E_1_C_417_DCA_GEN_2_VDTWFPNEGX_BUCKET_NAME", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": "amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/storage/MOODBOARD_20_E_29595008142_E_3_AD_16_F_01_C_4066_E_1_C_417_DCA_GEN_2_VDTWFPNEGX_BUCKET_NAMEParameter/Resource" + } + }, + "amplifymoodboarde2esandbox799a4d1a84storageAccess35BE57E89": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + "/public/*" + ] + ] + } + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/*", + "public/" + ] + } + }, + "Effect": "Allow", + "Resource": "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "amplifymoodboarde2esandbox799a4d1a84storageAccess35BE57E89", + "Roles": [ + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/storage/amplify-moodboard-e2e-sandbox-x--storageAccess3/Resource" + } + }, + "amplifymoodboarde2esandbox799a4d1a84storageAccess45ABD2020": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:PutObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/*", + "public/", + "protected/*", + "protected/", + "private/*", + "private/" + ] + } + }, + "Effect": "Allow", + "Resource": "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb" + }, + { + "Action": "s3:DeleteObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb", + "/private/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "amplifymoodboarde2esandbox799a4d1a84storageAccess45ABD2020", + "Roles": [ + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/storage/amplify-moodboard-e2e-sandbox-x--storageAccess4/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/5WNy07DMBBFv6VZO0NIBQt2fawhapYIIdcZokliW/JMWpDlf0epJQJLVnNH5z5qqB8qqDb6yqXpxnKiM8RnZMGuFW1Gpa/8HnkLcT+bEUUdPlxWr7Gw9EmueCp+hxc/b+GGGLJ1N4s/4oSCL+cBjXCR3lRGjZ/IfK2t+f9Hdw60ogUtult1UswWYiuBXN/ooC0KhmXj50mKtIW4rmeVkjrMLN6ekP0cDC5o1X9QE/yFOgx7zah2zCit6J5cn5TzHcLAd5e6hvtHqDYDE5VhdkIW4ZTvN8L1/x56AQAA" + }, + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/storage/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef": { + "Type": "String" + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref": { + "Type": "String" + } + }, + "Outputs": { + "amplifymoodboarde2esandbox799a4d1a84storagemoodboard20e29595008142e3ad16f01c4066e1c4xgen2xBucket9D2A4CC7Ref": { + "Value": "amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb" + } + } +} diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.parameters.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.parameters.json deleted file mode 100644 index 3f4c495edf4..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.parameters.json +++ /dev/null @@ -1,10 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref", - "ParameterValue": "amplify-moodboard-ge-amplifyAuthauthenticatedU-UANJImTyKZ7p" - }, - { - "ParameterKey": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef", - "ParameterValue": "amplify-moodboard-ge-amplifyAuthunauthenticate-rp3r1qUbAKVV" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.template.json deleted file mode 100644 index a24cb0b6442..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.template.json +++ /dev/null @@ -1,385 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.21.0\",\"stackType\":\"custom\",\"metadata\":{}}", - "Resources": { - "moodboardKinesisKinesisStreamD5E97047": { - "Type": "AWS::Kinesis::Stream", - "Properties": { - "Name": "moodboardKinesis-gen2-main", - "ShardCount": 1, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/analytics/moodboardKinesis/KinesisStream" - } - }, - "moodboardKinesisCognitoAuthPolicyB69F4FA6": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "kinesis:PutRecord", - "kinesis:PutRecords" - ], - "Resource": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-gen2-main" - } - ] - }, - "PolicyName": "moodboardKinesis-auth-policy-gen2-main", - "Roles": [ - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/analytics/moodboardKinesis/CognitoAuthPolicy" - } - }, - "moodboardKinesisCognitoUnauthPolicyC4CE1D44": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "kinesis:PutRecord", - "kinesis:PutRecords" - ], - "Resource": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-gen2-main" - } - ] - }, - "PolicyName": "moodboardKinesis-unauth-policy-gen2-main", - "Roles": [ - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/analytics/moodboardKinesis/CognitoUnauthPolicy" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXHwQqDMAwA0G/x3mZadtjd+zbmB0jWRoi1dZh0MsR/F9np8Ry4awN1hatYH6Kd+A3bnUQpdIo+Glyl3yJnEhZoh9zpQpgMYzr3nCf2v920Q34U/RTdTZ4DwSiXr3PQ3KCuRmG2S8nKieD19wCgungydwAAAA==" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/analytics/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Outputs": { - "kinesisStreamArn": { - "Value": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-gen2-main" - }, - "kinesisStreamId": { - "Value": "moodboardKinesis-gen2-main" - }, - "kinesisStreamShardCount": { - "Value": "1" - }, - "amplifymoodboardgen2mainbranchf7e4caeabbanalyticsmoodboardKinesisKinesisStreamBD82380AArn": { - "Value": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-gen2-main" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref": { - "Type": "String" - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef": { - "Type": "String" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.parameters.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.parameters.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.parameters.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.template.json deleted file mode 100644 index 3c4e609fcb2..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.template.json +++ /dev/null @@ -1,604 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.11.1\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", - "Resources": { - "amplifyAuthUserPool4BA7F805": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AccountRecoverySetting": { - "RecoveryMechanisms": [ - { - "Name": "verified_email", - "Priority": 1 - } - ] - }, - "AdminCreateUserConfig": { - "AllowAdminCreateUserOnly": false - }, - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": "Your verification code is {####}", - "EmailVerificationSubject": "Your verification code", - "MfaConfiguration": "OFF", - "Policies": { - "PasswordPolicy": { - "MinimumLength": 8, - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false, - "TemporaryPasswordValidityDays": 7 - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "SmsVerificationMessage": "The verification code to your new account is {####}", - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolTags": { - "amplify:app-id": "moodboard", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "amplify:friendly-name": "amplifyAuth", - "created-by": "amplify" - }, - "UsernameAttributes": [ - "email" - ], - "UsernameConfiguration": { - "CaseSensitive": false - }, - "VerificationMessageTemplate": { - "DefaultEmailOption": "CONFIRM_WITH_CODE", - "EmailMessage": "Your verification code is {####}", - "EmailSubject": "Your verification code", - "SmsMessage": "The verification code to your new account is {####}" - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/UserPool/Resource" - } - }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 43200, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": "us-east-1_1A4RMvPNr" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, - "amplifyAuthUserPoolAppClient2626C6F8": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlows": [ - "code" - ], - "AllowedOAuthFlowsUserPoolClient": true, - "AllowedOAuthScopes": [ - "profile", - "phone", - "email", - "openid", - "aws.cognito.signin.user.admin" - ], - "CallbackURLs": [ - "https://example.com" - ], - "ExplicitAuthFlows": [ - "ALLOW_CUSTOM_AUTH", - "ALLOW_USER_SRP_AUTH", - "ALLOW_REFRESH_TOKEN_AUTH" - ], - "PreventUserExistenceErrors": "ENABLED", - "SupportedIdentityProviders": [ - "COGNITO" - ], - "UserPoolId": "us-east-1_1A4RMvPNr" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/UserPoolAppClient/Resource" - } - }, - "amplifyAuthIdentityPool3FDE84CC": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": true, - "CognitoIdentityProviders": [ - { - "ClientId": "2otm0qh3fj270k5tdn95cgjlm5", - "ProviderName": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - "us-east-1_1A4RMvPNr" - ] - ] - } - } - ], - "IdentityPoolTags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "SupportedLoginProviders": {} - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/IdentityPool" - } - }, - "amplifyAuthauthenticatedUserRoleD8DA3689": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:820c5910-56e0-4010-b0c4-b457a728acfb" - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "authenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/authenticatedUserRole/Resource" - } - }, - "amplifyAuthunauthenticatedUserRole2B524D9E": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:820c5910-56e0-4010-b0c4-b457a728acfb" - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "unauthenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/unauthenticatedUserRole/Resource" - } - }, - "amplifyAuthIdentityPoolRoleAttachment045F17C8": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": "us-east-1:820c5910-56e0-4010-b0c4-b457a728acfb", - "RoleMappings": { - "UserPoolWebClientRoleMapping": { - "AmbiguousRoleResolution": "AuthenticatedRole", - "IdentityProvider": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - "us-east-1_1A4RMvPNr", - ":", - "2otm0qh3fj270k5tdn95cgjlm5" - ] - ] - }, - "Type": "Token" - } - }, - "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-moodboard-ge-amplifyAuthunauthenticate-rp3r1qUbAKVV", - "authenticated": "arn:aws:iam::123456789012:role/amplify-moodboard-ge-amplifyAuthauthenticatedU-UANJImTyKZ7p" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/IdentityPoolRoleAttachment" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/02LwQrCMBBEv8V7urbBg1fpyYtIxbPEZNVt0w00q0VC/l2KVHuamTczGvSmgnJlxlhY1xWerpAOGAXdSYztlBnjJdlwZ5IA6RxxOIbgVX3jn59N7QlZltWf7B2ykLzn8zI3weNOxNhHjyxZkekhTXAaTppzVhwcQhvXL62h2kK5aiNRMTxZqEdovvoBH9Args4AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Outputs": { - "amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthUserPoolAE38F854Ref": { - "Value": "us-east-1_1A4RMvPNr" - }, - "amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthUserPoolAppClientA69935A4Ref": { - "Value": "2otm0qh3fj270k5tdn95cgjlm5" - }, - "amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef": { - "Value": "us-east-1:820c5910-56e0-4010-b0c4-b457a728acfb" - }, - "amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref": { - "Value": "amplify-moodboard-ge-amplifyAuthauthenticatedU-UANJImTyKZ7p" - }, - "amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef": { - "Value": "amplify-moodboard-ge-amplifyAuthunauthenticate-rp3r1qUbAKVV" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.parameters.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.parameters.json deleted file mode 100644 index 3f4c495edf4..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.parameters.json +++ /dev/null @@ -1,10 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref", - "ParameterValue": "amplify-moodboard-ge-amplifyAuthauthenticatedU-UANJImTyKZ7p" - }, - { - "ParameterKey": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef", - "ParameterValue": "amplify-moodboard-ge-amplifyAuthunauthenticate-rp3r1qUbAKVV" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.template.json deleted file mode 100644 index b62dc855c35..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.template.json +++ /dev/null @@ -1,693 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", - "Resources": { - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "BucketKeyEnabled": false, - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "MaxAge": 3000 - } - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "moodboard20e29595008142e3ad16f01c4066e1c41959a-gen2-main" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/moodboard20e29595008142e3ad16f01c4066e1c41959a-gen2-main/Bucket/Resource" - } - }, - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucketPolicy9A17D834": { - "Type": "AWS::S3::BucketPolicy", - "Properties": { - "Bucket": "amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:*", - "Condition": { - "Bool": { - "aws:SecureTransport": "false" - } - }, - "Effect": "Deny", - "Principal": { - "AWS": "*" - }, - "Resource": [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - "/*" - ] - ] - } - ] - }, - { - "Action": [ - "s3:PutBucketPolicy", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*" - ], - "Effect": "Allow", - "Principal": { - "AWS": "arn:aws:iam::123456789012:role/amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - }, - "Resource": [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - "/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/moodboard20e29595008142e3ad16f01c4066e1c41959a-gen2-main/Bucket/Policy/Resource" - } - }, - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucketAutoDeleteObjectsCustomResource6C820EA7": { - "Type": "Custom::S3AutoDeleteObjects", - "Properties": { - "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "BucketName": "amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z" - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/moodboard20e29595008142e3ad16f01c4066e1c41959a-gen2-main/Bucket/AutoDeleteObjectsCustomResource/Default" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ] - }, - "ManagedPolicyArns": [ - { - "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" - }, - "Timeout": 900, - "MemorySize": 128, - "Handler": "index.handler", - "Role": "arn:aws:iam::123456789012:role/amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Runtime": "nodejs22.x", - "Description": { - "Fn::Join": [ - "", - [ - "Lambda function for auto-deleting objects in ", - "amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - " S3 bucket." - ] - ] - } - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", - "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", - "aws:asset:property": "Code" - } - }, - "MOODBOARD20E29595008142E3AD16F01C4066E1C41959AGEN2MAINBUCKETNAMEParameter8092E674": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/moodboard/gen2main-branch-f7e4caeabb/MOODBOARD_20_E_29595008142_E_3_AD_16_F_01_C_4066_E_1_C_41959_A_GEN_2_MAIN_BUCKET_NAME", - "Tags": { - "amplify:app-id": "moodboard", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": "amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/MOODBOARD_20_E_29595008142_E_3_AD_16_F_01_C_4066_E_1_C_41959_A_GEN_2_MAIN_BUCKET_NAMEParameter/Resource" - } - }, - "amplifymoodboardgen2mainbranchf7e4caeabbstorageAccess390737D54": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - "/public/*" - ] - ] - } - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/*", - "public/" - ] - } - }, - "Effect": "Allow", - "Resource": "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "amplifymoodboardgen2mainbranchf7e4caeabbstorageAccess390737D54", - "Roles": [ - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/amplify-moodboard-gen2main-branch-f7e4caeabb--storageAccess3/Resource" - } - }, - "amplifymoodboardgen2mainbranchf7e4caeabbstorageAccess48AB6518A": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:PutObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/*", - "public/", - "protected/*", - "protected/", - "private/*", - "private/" - ] - } - }, - "Effect": "Allow", - "Resource": "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z" - }, - { - "Action": "s3:DeleteObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z", - "/private/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "amplifymoodboardgen2mainbranchf7e4caeabbstorageAccess48AB6518A", - "Roles": [ - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/amplify-moodboard-gen2main-branch-f7e4caeabb--storageAccess4/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WLTQ6CMBCFz8K+jIgu3Cp7Q+AAppaRjNA26QwQ03B3QyASV+97fznk5yNkiZ44NU2X9vSEeEcWbGrRplN64kfkE8TbYDoUVbzcRquUvifz2ePVz4rZQqwlkGtLHbRFwbCsfmZWpC3E/b89Z1UMLN5WyH4IBpdq57+qDH6kBsNNM6orM0otuiXXzsr5BuHNhzHP4XiBLHkzURoGJ2QRqlW/LyyDFv0AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef": { - "Type": "String" - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref": { - "Type": "String" - } - }, - "Outputs": { - "amplifymoodboardgen2mainbranchf7e4caeabbstoragemoodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket352A7A47Ref": { - "Value": "amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.parameters.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.parameters.json deleted file mode 100644 index 3dd91ce4664..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.parameters.json +++ /dev/null @@ -1,30 +0,0 @@ -[ - { - "ParameterKey": "unauthPolicyName", - "ParameterValue": "kinesis_amplify_bca5ce95" - }, - { - "ParameterKey": "authRoleName", - "ParameterValue": "amplify-moodboard-main-1959a-authRole" - }, - { - "ParameterKey": "unauthRoleName", - "ParameterValue": "amplify-moodboard-main-1959a-unauthRole" - }, - { - "ParameterKey": "authPolicyName", - "ParameterValue": "kinesis_amplify_bca5ce95" - }, - { - "ParameterKey": "kinesisStreamShardCount", - "ParameterValue": "1" - }, - { - "ParameterKey": "kinesisStreamName", - "ParameterValue": "moodboardKinesis" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.template.json deleted file mode 100644 index b86a514c4a8..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.template.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"analytics-Kinesis\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "Parameters": { - "env": { - "Type": "String" - }, - "kinesisStreamName": { - "Type": "String" - }, - "kinesisStreamShardCount": { - "Type": "Number", - "Default": 1 - }, - "authPolicyName": { - "Type": "String" - }, - "unauthPolicyName": { - "Type": "String" - }, - "authRoleName": { - "Type": "String" - }, - "unauthRoleName": { - "Type": "String" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - "main", - "NONE" - ] - } - }, - "Resources": { - "KinesisStream": { - "Type": "AWS::Kinesis::Stream", - "Properties": { - "Name": { - "Fn::Join": [ - "-", - [ - "moodboardKinesis", - "main" - ] - ] - }, - "ShardCount": "1" - } - }, - "CognitoUnauthPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyName": "kinesis_amplify_bca5ce95", - "Roles": [ - "amplify-moodboard-main-1959a-unauthRole" - ], - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "kinesis:PutRecord", - "kinesis:PutRecords" - ], - "Resource": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-main" - } - ] - } - } - }, - "CognitoAuthPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyName": "kinesis_amplify_bca5ce95", - "Roles": [ - "amplify-moodboard-main-1959a-authRole" - ], - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "kinesis:PutRecord", - "kinesis:PutRecords" - ], - "Resource": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-main" - } - ] - } - } - } - }, - "Outputs": { - "kinesisStreamArn": { - "Value": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-main" - }, - "kinesisStreamId": { - "Value": "moodboardKinesis-main" - }, - "kinesisStreamShardCount": { - "Value": "1" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.parameters.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.parameters.json deleted file mode 100644 index b142d1a5f45..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.parameters.json +++ /dev/null @@ -1,146 +0,0 @@ -[ - { - "ParameterKey": "usernameAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "authRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-moodboard-main-1959a-authRole" - }, - { - "ParameterKey": "autoVerifiedAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "allowUnauthenticatedIdentities", - "ParameterValue": "true" - }, - { - "ParameterKey": "smsVerificationMessage", - "ParameterValue": "Your verification code is {####}" - }, - { - "ParameterKey": "userpoolClientReadAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "breakCircularDependency", - "ParameterValue": "true" - }, - { - "ParameterKey": "mfaTypes", - "ParameterValue": "SMS Text Message" - }, - { - "ParameterKey": "emailVerificationSubject", - "ParameterValue": "Your verification code" - }, - { - "ParameterKey": "sharedId", - "ParameterValue": "759ae00a" - }, - { - "ParameterKey": "useDefault", - "ParameterValue": "default" - }, - { - "ParameterKey": "userpoolClientGenerateSecret", - "ParameterValue": "false" - }, - { - "ParameterKey": "mfaConfiguration", - "ParameterValue": "OFF" - }, - { - "ParameterKey": "identityPoolName", - "ParameterValue": "moodboard759ae00a_identitypool_759ae00a" - }, - { - "ParameterKey": "userPoolGroupList", - "ParameterValue": "" - }, - { - "ParameterKey": "authSelections", - "ParameterValue": "identityPoolAndUserPool" - }, - { - "ParameterKey": "resourceNameTruncated", - "ParameterValue": "moodbo759ae00a" - }, - { - "ParameterKey": "smsAuthenticationMessage", - "ParameterValue": "Your authentication code is {####}" - }, - { - "ParameterKey": "passwordPolicyMinLength", - "ParameterValue": "8" - }, - { - "ParameterKey": "userPoolName", - "ParameterValue": "moodboard759ae00a_userpool_759ae00a" - }, - { - "ParameterKey": "userpoolClientWriteAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "dependsOn", - "ParameterValue": "" - }, - { - "ParameterKey": "useEnabledMfas", - "ParameterValue": "true" - }, - { - "ParameterKey": "usernameCaseSensitive", - "ParameterValue": "false" - }, - { - "ParameterKey": "resourceName", - "ParameterValue": "moodboard759ae00a" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "serviceName", - "ParameterValue": "Cognito" - }, - { - "ParameterKey": "emailVerificationMessage", - "ParameterValue": "Your verification code is {####}" - }, - { - "ParameterKey": "userpoolClientRefreshTokenValidity", - "ParameterValue": "30" - }, - { - "ParameterKey": "userpoolClientSetAttributes", - "ParameterValue": "false" - }, - { - "ParameterKey": "unauthRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-moodboard-main-1959a-unauthRole" - }, - { - "ParameterKey": "requiredAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "passwordPolicyCharacters", - "ParameterValue": "" - }, - { - "ParameterKey": "aliasAttributes", - "ParameterValue": "" - }, - { - "ParameterKey": "userpoolClientLambdaRole", - "ParameterValue": "moodbo759ae00a_userpoolclient_lambda_role" - }, - { - "ParameterKey": "defaultPasswordPolicy", - "ParameterValue": "false" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.template.json deleted file mode 100644 index 97ac6185c7d..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.template.json +++ /dev/null @@ -1,316 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "env": { - "Type": "String" - }, - "identityPoolName": { - "Type": "String" - }, - "allowUnauthenticatedIdentities": { - "Type": "String" - }, - "resourceNameTruncated": { - "Type": "String" - }, - "userPoolName": { - "Type": "String" - }, - "autoVerifiedAttributes": { - "Type": "CommaDelimitedList" - }, - "mfaConfiguration": { - "Type": "String" - }, - "mfaTypes": { - "Type": "CommaDelimitedList" - }, - "smsAuthenticationMessage": { - "Type": "String" - }, - "smsVerificationMessage": { - "Type": "String" - }, - "emailVerificationSubject": { - "Type": "String" - }, - "emailVerificationMessage": { - "Type": "String" - }, - "defaultPasswordPolicy": { - "Type": "String" - }, - "passwordPolicyMinLength": { - "Type": "String" - }, - "passwordPolicyCharacters": { - "Type": "CommaDelimitedList" - }, - "requiredAttributes": { - "Type": "CommaDelimitedList" - }, - "aliasAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientGenerateSecret": { - "Type": "String" - }, - "userpoolClientRefreshTokenValidity": { - "Type": "String" - }, - "userpoolClientWriteAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientReadAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientLambdaRole": { - "Type": "String" - }, - "userpoolClientSetAttributes": { - "Type": "String" - }, - "sharedId": { - "Type": "String" - }, - "resourceName": { - "Type": "String" - }, - "authSelections": { - "Type": "String" - }, - "useDefault": { - "Type": "String" - }, - "usernameAttributes": { - "Type": "CommaDelimitedList" - }, - "userPoolGroupList": { - "Type": "CommaDelimitedList" - }, - "serviceName": { - "Type": "String" - }, - "usernameCaseSensitive": { - "Type": "String" - }, - "useEnabledMfas": { - "Type": "String" - }, - "authRoleArn": { - "Type": "String" - }, - "unauthRoleArn": { - "Type": "String" - }, - "breakCircularDependency": { - "Type": "String" - }, - "dependsOn": { - "Type": "CommaDelimitedList" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - "main", - "NONE" - ] - } - }, - "Resources": { - "UserPool": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": "Your verification code is {####}", - "EmailVerificationSubject": "Your verification code", - "MfaConfiguration": "OFF", - "Policies": { - "PasswordPolicy": { - "MinimumLength": "8", - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolName": { - "Fn::Join": [ - "", - [ - "moodboard759ae00a_userpool_759ae00a", - "-", - "main" - ] - ] - }, - "UsernameAttributes": [ - "email" - ], - "UsernameConfiguration": { - "CaseSensitive": false - } - } - }, - "UserPoolClientWeb": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "moodbo759ae00a_app_clientWeb", - "RefreshTokenValidity": "30", - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": "us-east-1_Cwvqs93Nc" - } - }, - "UserPoolClient": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "moodbo759ae00a_app_client", - "GenerateSecret": "false", - "RefreshTokenValidity": "30", - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": "us-east-1_Cwvqs93Nc" - } - }, - "UserPoolClientRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - }, - "Action": "sts:AssumeRole" - } - ] - }, - "RoleName": { - "Fn::Join": [ - "", - [ - "upClientLambdaRole759ae00a", - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - "amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM" - ] - } - ] - }, - "-", - "main" - ] - ] - } - } - }, - "IdentityPool": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": "true", - "CognitoIdentityProviders": [ - { - "ClientId": "1ssdipb0d8rfa77rq3o7u8t16c", - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": "us-east-1_Cwvqs93Nc" - } - ] - } - }, - { - "ClientId": "5t2df7ru217mr5ar6r44r61uqg", - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": "us-east-1_Cwvqs93Nc" - } - ] - } - } - ], - "IdentityPoolName": { - "Fn::Join": [ - "", - [ - "moodboard759ae00a_identitypool_759ae00a__", - "main" - ] - ] - } - } - }, - "IdentityPoolRoleMap": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": "us-east-1:a39e734d-ac34-43c7-8303-67512f010f0d", - "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-moodboard-main-1959a-unauthRole", - "authenticated": "arn:aws:iam::123456789012:role/amplify-moodboard-main-1959a-authRole" - } - } - } - }, - "Outputs": { - "IdentityPoolId": { - "Description": "Id for the identity pool", - "Value": "us-east-1:a39e734d-ac34-43c7-8303-67512f010f0d" - }, - "IdentityPoolName": { - "Value": "moodboard759ae00a_identitypool_759ae00a__main" - }, - "UserPoolId": { - "Description": "Id for the user pool", - "Value": "us-east-1_Cwvqs93Nc" - }, - "UserPoolArn": { - "Description": "Arn for the user pool", - "Value": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_Cwvqs93Nc" - }, - "UserPoolName": { - "Value": "moodboard759ae00a_userpool_759ae00a" - }, - "AppClientIDWeb": { - "Description": "The user pool app client id for web", - "Value": "5t2df7ru217mr5ar6r44r61uqg" - }, - "AppClientID": { - "Description": "The user pool app client id", - "Value": "1ssdipb0d8rfa77rq3o7u8t16c" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.parameters.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.parameters.json deleted file mode 100644 index de700e0b9ce..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.parameters.json +++ /dev/null @@ -1,86 +0,0 @@ -[ - { - "ParameterKey": "s3PermissionsGuestPublic", - "ParameterValue": "s3:GetObject" - }, - { - "ParameterKey": "bucketName", - "ParameterValue": "moodboard20e29595008142e3ad16f01c4066e1c4" - }, - { - "ParameterKey": "s3PublicPolicy", - "ParameterValue": "Public_policy_206c638b" - }, - { - "ParameterKey": "AuthenticatedAllowList", - "ParameterValue": "ALLOW" - }, - { - "ParameterKey": "unauthRoleName", - "ParameterValue": "amplify-moodboard-main-1959a-unauthRole" - }, - { - "ParameterKey": "s3PrivatePolicy", - "ParameterValue": "Private_policy_206c638b" - }, - { - "ParameterKey": "selectedGuestPermissions", - "ParameterValue": "s3:GetObject,s3:ListBucket" - }, - { - "ParameterKey": "s3PermissionsAuthenticatedPublic", - "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" - }, - { - "ParameterKey": "s3PermissionsAuthenticatedPrivate", - "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" - }, - { - "ParameterKey": "s3PermissionsAuthenticatedUploads", - "ParameterValue": "s3:PutObject" - }, - { - "ParameterKey": "s3UploadsPolicy", - "ParameterValue": "Uploads_policy_206c638b" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "unauthPolicyName", - "ParameterValue": "s3_amplify_206c638b" - }, - { - "ParameterKey": "authRoleName", - "ParameterValue": "amplify-moodboard-main-1959a-authRole" - }, - { - "ParameterKey": "GuestAllowList", - "ParameterValue": "ALLOW" - }, - { - "ParameterKey": "authPolicyName", - "ParameterValue": "s3_amplify_206c638b" - }, - { - "ParameterKey": "s3ProtectedPolicy", - "ParameterValue": "Protected_policy_206c638b" - }, - { - "ParameterKey": "s3PermissionsAuthenticatedProtected", - "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" - }, - { - "ParameterKey": "s3PermissionsGuestUploads", - "ParameterValue": "DISALLOW" - }, - { - "ParameterKey": "s3ReadPolicy", - "ParameterValue": "read_policy_206c638b" - }, - { - "ParameterKey": "selectedAuthenticatedPermissions", - "ParameterValue": "s3:PutObject,s3:GetObject,s3:ListBucket,s3:DeleteObject" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.template.json deleted file mode 100644 index 0ec74d2088d..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.template.json +++ /dev/null @@ -1,533 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-S3\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "env": { - "Type": "String" - }, - "bucketName": { - "Type": "String" - }, - "authRoleName": { - "Type": "String" - }, - "unauthRoleName": { - "Type": "String" - }, - "authPolicyName": { - "Type": "String" - }, - "unauthPolicyName": { - "Type": "String" - }, - "s3PublicPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3PrivatePolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3ProtectedPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3UploadsPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3ReadPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3PermissionsAuthenticatedPublic": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedProtected": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedPrivate": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedUploads": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsGuestPublic": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsGuestUploads": { - "Type": "String", - "Default": "DISALLOW" - }, - "AuthenticatedAllowList": { - "Type": "String", - "Default": "DISALLOW" - }, - "GuestAllowList": { - "Type": "String", - "Default": "DISALLOW" - }, - "selectedGuestPermissions": { - "Type": "CommaDelimitedList", - "Default": "NONE" - }, - "selectedAuthenticatedPermissions": { - "Type": "CommaDelimitedList", - "Default": "NONE" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - "main", - "NONE" - ] - }, - "CreateAuthPublic": { - "Fn::Not": [ - { - "Fn::Equals": [ - "s3:PutObject,s3:GetObject,s3:DeleteObject", - "DISALLOW" - ] - } - ] - }, - "CreateAuthProtected": { - "Fn::Not": [ - { - "Fn::Equals": [ - "s3:PutObject,s3:GetObject,s3:DeleteObject", - "DISALLOW" - ] - } - ] - }, - "CreateAuthPrivate": { - "Fn::Not": [ - { - "Fn::Equals": [ - "s3:PutObject,s3:GetObject,s3:DeleteObject", - "DISALLOW" - ] - } - ] - }, - "CreateAuthUploads": { - "Fn::Not": [ - { - "Fn::Equals": [ - "s3:PutObject", - "DISALLOW" - ] - } - ] - }, - "CreateGuestPublic": { - "Fn::Not": [ - { - "Fn::Equals": [ - "s3:GetObject", - "DISALLOW" - ] - } - ] - }, - "CreateGuestUploads": { - "Fn::Not": [ - { - "Fn::Equals": [ - "DISALLOW", - "DISALLOW" - ] - } - ] - }, - "AuthReadAndList": { - "Fn::Not": [ - { - "Fn::Equals": [ - "ALLOW", - "DISALLOW" - ] - } - ] - }, - "GuestReadAndList": { - "Fn::Not": [ - { - "Fn::Equals": [ - "ALLOW", - "DISALLOW" - ] - } - ] - } - }, - "Outputs": { - "BucketName": { - "Description": "Bucket name for the S3 bucket", - "Value": "moodboard20e29595008142e3ad16f01c4066e1c41959a-main" - }, - "Region": { - "Value": "us-east-1" - } - }, - "Resources": { - "S3Bucket": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketName": { - "Fn::Join": [ - "", - [ - "moodboard20e29595008142e3ad16f01c4066e1c4", - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - "amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA" - ] - } - ] - }, - "-", - "main" - ] - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "Id": "S3CORSRuleId1", - "MaxAge": 3000 - } - ] - }, - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - } - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain" - }, - "S3AuthPublicPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - "s3:PutObject,s3:GetObject,s3:DeleteObject" - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "moodboard20e29595008142e3ad16f01c4066e1c41959a-main", - "/public/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "Public_policy_206c638b", - "Roles": [ - "amplify-moodboard-main-1959a-authRole" - ] - }, - "Condition": "CreateAuthPublic" - }, - "S3AuthProtectedPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - "s3:PutObject,s3:GetObject,s3:DeleteObject" - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "moodboard20e29595008142e3ad16f01c4066e1c41959a-main", - "/protected/${cognito-identity.amazonaws.com:sub}/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "Protected_policy_206c638b", - "Roles": [ - "amplify-moodboard-main-1959a-authRole" - ] - }, - "Condition": "CreateAuthProtected" - }, - "S3AuthPrivatePolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - "s3:PutObject,s3:GetObject,s3:DeleteObject" - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "moodboard20e29595008142e3ad16f01c4066e1c41959a-main", - "/private/${cognito-identity.amazonaws.com:sub}/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "Private_policy_206c638b", - "Roles": [ - "amplify-moodboard-main-1959a-authRole" - ] - }, - "Condition": "CreateAuthPrivate" - }, - "S3AuthUploadPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - "s3:PutObject" - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "moodboard20e29595008142e3ad16f01c4066e1c41959a-main", - "/uploads/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "Uploads_policy_206c638b", - "Roles": [ - "amplify-moodboard-main-1959a-authRole" - ] - }, - "Condition": "CreateAuthUploads" - }, - "S3GuestPublicPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - "s3:GetObject" - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "moodboard20e29595008142e3ad16f01c4066e1c41959a-main", - "/public/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "Public_policy_206c638b", - "Roles": [ - "amplify-moodboard-main-1959a-unauthRole" - ] - }, - "Condition": "CreateGuestPublic" - }, - "S3AuthReadPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "moodboard20e29595008142e3ad16f01c4066e1c41959a-main", - "/protected/*" - ] - ] - } - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/", - "public/*", - "protected/", - "protected/*", - "private/${cognito-identity.amazonaws.com:sub}/", - "private/${cognito-identity.amazonaws.com:sub}/*" - ] - } - }, - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "moodboard20e29595008142e3ad16f01c4066e1c41959a-main" - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "read_policy_206c638b", - "Roles": [ - "amplify-moodboard-main-1959a-authRole" - ] - }, - "Condition": "AuthReadAndList" - }, - "S3GuestReadPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "moodboard20e29595008142e3ad16f01c4066e1c41959a-main", - "/protected/*" - ] - ] - } - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/", - "public/*", - "protected/", - "protected/*" - ] - } - }, - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "moodboard20e29595008142e3ad16f01c4066e1c41959a-main" - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "read_policy_206c638b", - "Roles": [ - "amplify-moodboard-main-1959a-unauthRole" - ] - }, - "Condition": "GuestReadAndList" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-x-x-analyticsmoodboardKinesis-x.parameters.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-x-x-analyticsmoodboardKinesis-x.parameters.json new file mode 100644 index 00000000000..05cde9c52c7 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-x-x-analyticsmoodboardKinesis-x.parameters.json @@ -0,0 +1,30 @@ +[ + { + "ParameterKey": "unauthPolicyName", + "ParameterValue": "kinesis_amplify_bca5ce95" + }, + { + "ParameterKey": "authRoleName", + "ParameterValue": "amplify-moodboard-x-x-authRole" + }, + { + "ParameterKey": "unauthRoleName", + "ParameterValue": "amplify-moodboard-x-x-unauthRole" + }, + { + "ParameterKey": "authPolicyName", + "ParameterValue": "kinesis_amplify_bca5ce95" + }, + { + "ParameterKey": "kinesisStreamShardCount", + "ParameterValue": "1" + }, + { + "ParameterKey": "kinesisStreamName", + "ParameterValue": "moodboardKinesis" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-x-x-analyticsmoodboardKinesis-x.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-x-x-analyticsmoodboardKinesis-x.template.json new file mode 100644 index 00000000000..def957fafef --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-x-x-analyticsmoodboardKinesis-x.template.json @@ -0,0 +1,108 @@ +{ + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"analytics-Kinesis\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Parameters": { + "env": { + "Type": "String" + }, + "kinesisStreamName": { + "Type": "String" + }, + "kinesisStreamShardCount": { + "Type": "Number", + "Default": 1 + }, + "authPolicyName": { + "Type": "String" + }, + "unauthPolicyName": { + "Type": "String" + }, + "authRoleName": { + "Type": "String" + }, + "unauthRoleName": { + "Type": "String" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + "x", + "NONE" + ] + } + }, + "Resources": { + "KinesisStream": { + "Type": "AWS::Kinesis::Stream", + "Properties": { + "Name": { + "Fn::Join": [ + "-", + [ + "moodboardKinesis", + "x" + ] + ] + }, + "ShardCount": "1" + } + }, + "CognitoUnauthPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyName": "kinesis_amplify_bca5ce95", + "Roles": [ + "amplify-moodboard-x-x-unauthRole" + ], + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "kinesis:PutRecord", + "kinesis:PutRecords" + ], + "Resource": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-x" + } + ] + } + } + }, + "CognitoAuthPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyName": "kinesis_amplify_bca5ce95", + "Roles": [ + "amplify-moodboard-x-x-authRole" + ], + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "kinesis:PutRecord", + "kinesis:PutRecords" + ], + "Resource": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-x" + } + ] + } + } + } + }, + "Outputs": { + "kinesisStreamArn": { + "Value": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-x" + }, + "kinesisStreamId": { + "Value": "moodboardKinesis-x" + }, + "kinesisStreamShardCount": { + "Value": "1" + } + } +} diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-x-x-authmoodboard759ae00a-x.parameters.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-x-x-authmoodboard759ae00a-x.parameters.json new file mode 100644 index 00000000000..e3af94d58bc --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-x-x-authmoodboard759ae00a-x.parameters.json @@ -0,0 +1,146 @@ +[ + { + "ParameterKey": "usernameAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "authRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-moodboard-x-x-authRole" + }, + { + "ParameterKey": "autoVerifiedAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "allowUnauthenticatedIdentities", + "ParameterValue": "true" + }, + { + "ParameterKey": "smsVerificationMessage", + "ParameterValue": "Your verification code is {####}" + }, + { + "ParameterKey": "userpoolClientReadAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "breakCircularDependency", + "ParameterValue": "true" + }, + { + "ParameterKey": "mfaTypes", + "ParameterValue": "SMS Text Message" + }, + { + "ParameterKey": "emailVerificationSubject", + "ParameterValue": "Your verification code" + }, + { + "ParameterKey": "sharedId", + "ParameterValue": "759ae00a" + }, + { + "ParameterKey": "useDefault", + "ParameterValue": "default" + }, + { + "ParameterKey": "userpoolClientGenerateSecret", + "ParameterValue": "false" + }, + { + "ParameterKey": "mfaConfiguration", + "ParameterValue": "OFF" + }, + { + "ParameterKey": "identityPoolName", + "ParameterValue": "moodboard759ae00a_identitypool_759ae00a" + }, + { + "ParameterKey": "userPoolGroupList", + "ParameterValue": "" + }, + { + "ParameterKey": "authSelections", + "ParameterValue": "identityPoolAndUserPool" + }, + { + "ParameterKey": "resourceNameTruncated", + "ParameterValue": "moodbo759ae00a" + }, + { + "ParameterKey": "smsAuthenticationMessage", + "ParameterValue": "Your authentication code is {####}" + }, + { + "ParameterKey": "passwordPolicyMinLength", + "ParameterValue": "8" + }, + { + "ParameterKey": "userPoolName", + "ParameterValue": "moodboard759ae00a_userpool_759ae00a" + }, + { + "ParameterKey": "userpoolClientWriteAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "dependsOn", + "ParameterValue": "" + }, + { + "ParameterKey": "useEnabledMfas", + "ParameterValue": "true" + }, + { + "ParameterKey": "usernameCaseSensitive", + "ParameterValue": "false" + }, + { + "ParameterKey": "resourceName", + "ParameterValue": "moodboard759ae00a" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "serviceName", + "ParameterValue": "Cognito" + }, + { + "ParameterKey": "emailVerificationMessage", + "ParameterValue": "Your verification code is {####}" + }, + { + "ParameterKey": "userpoolClientRefreshTokenValidity", + "ParameterValue": "30" + }, + { + "ParameterKey": "userpoolClientSetAttributes", + "ParameterValue": "false" + }, + { + "ParameterKey": "unauthRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-moodboard-x-x-unauthRole" + }, + { + "ParameterKey": "requiredAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "passwordPolicyCharacters", + "ParameterValue": "" + }, + { + "ParameterKey": "aliasAttributes", + "ParameterValue": "" + }, + { + "ParameterKey": "userpoolClientLambdaRole", + "ParameterValue": "moodbo759ae00a_userpoolclient_lambda_role" + }, + { + "ParameterKey": "defaultPasswordPolicy", + "ParameterValue": "false" + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-x-x-authmoodboard759ae00a-x.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-x-x-authmoodboard759ae00a-x.template.json new file mode 100644 index 00000000000..4ceb1d6bb52 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-x-x-authmoodboard759ae00a-x.template.json @@ -0,0 +1,316 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "identityPoolName": { + "Type": "String" + }, + "allowUnauthenticatedIdentities": { + "Type": "String" + }, + "resourceNameTruncated": { + "Type": "String" + }, + "userPoolName": { + "Type": "String" + }, + "autoVerifiedAttributes": { + "Type": "CommaDelimitedList" + }, + "mfaConfiguration": { + "Type": "String" + }, + "mfaTypes": { + "Type": "CommaDelimitedList" + }, + "smsAuthenticationMessage": { + "Type": "String" + }, + "smsVerificationMessage": { + "Type": "String" + }, + "emailVerificationSubject": { + "Type": "String" + }, + "emailVerificationMessage": { + "Type": "String" + }, + "defaultPasswordPolicy": { + "Type": "String" + }, + "passwordPolicyMinLength": { + "Type": "String" + }, + "passwordPolicyCharacters": { + "Type": "CommaDelimitedList" + }, + "requiredAttributes": { + "Type": "CommaDelimitedList" + }, + "aliasAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientGenerateSecret": { + "Type": "String" + }, + "userpoolClientRefreshTokenValidity": { + "Type": "String" + }, + "userpoolClientWriteAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientReadAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientLambdaRole": { + "Type": "String" + }, + "userpoolClientSetAttributes": { + "Type": "String" + }, + "sharedId": { + "Type": "String" + }, + "resourceName": { + "Type": "String" + }, + "authSelections": { + "Type": "String" + }, + "useDefault": { + "Type": "String" + }, + "usernameAttributes": { + "Type": "CommaDelimitedList" + }, + "userPoolGroupList": { + "Type": "CommaDelimitedList" + }, + "serviceName": { + "Type": "String" + }, + "usernameCaseSensitive": { + "Type": "String" + }, + "useEnabledMfas": { + "Type": "String" + }, + "authRoleArn": { + "Type": "String" + }, + "unauthRoleArn": { + "Type": "String" + }, + "breakCircularDependency": { + "Type": "String" + }, + "dependsOn": { + "Type": "CommaDelimitedList" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + "x", + "NONE" + ] + } + }, + "Resources": { + "UserPool": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": "8", + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolName": { + "Fn::Join": [ + "", + [ + "moodboard759ae00a_userpool_759ae00a", + "-", + "x" + ] + ] + }, + "UsernameAttributes": [ + "email" + ], + "UsernameConfiguration": { + "CaseSensitive": false + } + } + }, + "UserPoolClientWeb": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "moodbo759ae00a_app_clientWeb", + "RefreshTokenValidity": "30", + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": "us-east-1_wDScdYiSe" + } + }, + "UserPoolClient": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "moodbo759ae00a_app_client", + "GenerateSecret": "false", + "RefreshTokenValidity": "30", + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": "us-east-1_wDScdYiSe" + } + }, + "UserPoolClientRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + }, + "Action": "sts:AssumeRole" + } + ] + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "upClientLambdaRole759ae00a", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + "amplify-moodboard-x-x-authmoodboard759ae00a-x" + ] + } + ] + }, + "-", + "x" + ] + ] + } + } + }, + "IdentityPool": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": "true", + "CognitoIdentityProviders": [ + { + "ClientId": "5it3jnls1mnjbe8a9sit31e6ep", + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": "us-east-1_wDScdYiSe" + } + ] + } + }, + { + "ClientId": "34sh75m6c73hj9t6cs8a3pf2sq", + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": "us-east-1_wDScdYiSe" + } + ] + } + } + ], + "IdentityPoolName": { + "Fn::Join": [ + "", + [ + "moodboard759ae00a_identitypool_759ae00a__", + "x" + ] + ] + } + } + }, + "IdentityPoolRoleMap": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:b4ae1cf8-c548-4712-a947-1738d119032f", + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-moodboard-x-x-unauthRole", + "authenticated": "arn:aws:iam::123456789012:role/amplify-moodboard-x-x-authRole" + } + } + } + }, + "Outputs": { + "IdentityPoolId": { + "Description": "Id for the identity pool", + "Value": "us-east-1:b4ae1cf8-c548-4712-a947-1738d119032f" + }, + "IdentityPoolName": { + "Value": "moodboard759ae00a_identitypool_759ae00a__x" + }, + "UserPoolId": { + "Description": "Id for the user pool", + "Value": "us-east-1_wDScdYiSe" + }, + "UserPoolArn": { + "Description": "Arn for the user pool", + "Value": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_wDScdYiSe" + }, + "UserPoolName": { + "Value": "moodboard759ae00a_userpool_759ae00a" + }, + "AppClientIDWeb": { + "Description": "The user pool app client id for web", + "Value": "34sh75m6c73hj9t6cs8a3pf2sq" + }, + "AppClientID": { + "Description": "The user pool app client id", + "Value": "5it3jnls1mnjbe8a9sit31e6ep" + } + } +} diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-x-x-storagemoodboardStorage-x.parameters.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-x-x-storagemoodboardStorage-x.parameters.json new file mode 100644 index 00000000000..6c1536b31a7 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-x-x-storagemoodboardStorage-x.parameters.json @@ -0,0 +1,86 @@ +[ + { + "ParameterKey": "s3PermissionsGuestPublic", + "ParameterValue": "s3:GetObject" + }, + { + "ParameterKey": "bucketName", + "ParameterValue": "moodboard20e29595008142e3ad16f01c4066e1c4" + }, + { + "ParameterKey": "s3PublicPolicy", + "ParameterValue": "Public_policy_206c638b" + }, + { + "ParameterKey": "AuthenticatedAllowList", + "ParameterValue": "ALLOW" + }, + { + "ParameterKey": "unauthRoleName", + "ParameterValue": "amplify-moodboard-x-x-unauthRole" + }, + { + "ParameterKey": "s3PrivatePolicy", + "ParameterValue": "Private_policy_206c638b" + }, + { + "ParameterKey": "selectedGuestPermissions", + "ParameterValue": "s3:GetObject,s3:ListBucket" + }, + { + "ParameterKey": "s3PermissionsAuthenticatedPublic", + "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" + }, + { + "ParameterKey": "s3PermissionsAuthenticatedPrivate", + "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" + }, + { + "ParameterKey": "s3PermissionsAuthenticatedUploads", + "ParameterValue": "s3:PutObject" + }, + { + "ParameterKey": "s3UploadsPolicy", + "ParameterValue": "Uploads_policy_206c638b" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "unauthPolicyName", + "ParameterValue": "s3_amplify_206c638b" + }, + { + "ParameterKey": "authRoleName", + "ParameterValue": "amplify-moodboard-x-x-authRole" + }, + { + "ParameterKey": "GuestAllowList", + "ParameterValue": "ALLOW" + }, + { + "ParameterKey": "authPolicyName", + "ParameterValue": "s3_amplify_206c638b" + }, + { + "ParameterKey": "s3ProtectedPolicy", + "ParameterValue": "Protected_policy_206c638b" + }, + { + "ParameterKey": "s3PermissionsAuthenticatedProtected", + "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" + }, + { + "ParameterKey": "s3PermissionsGuestUploads", + "ParameterValue": "DISALLOW" + }, + { + "ParameterKey": "s3ReadPolicy", + "ParameterValue": "read_policy_206c638b" + }, + { + "ParameterKey": "selectedAuthenticatedPermissions", + "ParameterValue": "s3:PutObject,s3:GetObject,s3:ListBucket,s3:DeleteObject" + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-x-x-storagemoodboardStorage-x.template.json b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-x-x-storagemoodboardStorage-x.template.json new file mode 100644 index 00000000000..9d93aca8e02 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.post.refactor/update.amplify-moodboard-x-x-storagemoodboardStorage-x.template.json @@ -0,0 +1,533 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-S3\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "bucketName": { + "Type": "String" + }, + "authRoleName": { + "Type": "String" + }, + "unauthRoleName": { + "Type": "String" + }, + "authPolicyName": { + "Type": "String" + }, + "unauthPolicyName": { + "Type": "String" + }, + "s3PublicPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3PrivatePolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3ProtectedPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3UploadsPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3ReadPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3PermissionsAuthenticatedPublic": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedProtected": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedPrivate": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedUploads": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsGuestPublic": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsGuestUploads": { + "Type": "String", + "Default": "DISALLOW" + }, + "AuthenticatedAllowList": { + "Type": "String", + "Default": "DISALLOW" + }, + "GuestAllowList": { + "Type": "String", + "Default": "DISALLOW" + }, + "selectedGuestPermissions": { + "Type": "CommaDelimitedList", + "Default": "NONE" + }, + "selectedAuthenticatedPermissions": { + "Type": "CommaDelimitedList", + "Default": "NONE" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + "x", + "NONE" + ] + }, + "CreateAuthPublic": { + "Fn::Not": [ + { + "Fn::Equals": [ + "s3:PutObject,s3:GetObject,s3:DeleteObject", + "DISALLOW" + ] + } + ] + }, + "CreateAuthProtected": { + "Fn::Not": [ + { + "Fn::Equals": [ + "s3:PutObject,s3:GetObject,s3:DeleteObject", + "DISALLOW" + ] + } + ] + }, + "CreateAuthPrivate": { + "Fn::Not": [ + { + "Fn::Equals": [ + "s3:PutObject,s3:GetObject,s3:DeleteObject", + "DISALLOW" + ] + } + ] + }, + "CreateAuthUploads": { + "Fn::Not": [ + { + "Fn::Equals": [ + "s3:PutObject", + "DISALLOW" + ] + } + ] + }, + "CreateGuestPublic": { + "Fn::Not": [ + { + "Fn::Equals": [ + "s3:GetObject", + "DISALLOW" + ] + } + ] + }, + "CreateGuestUploads": { + "Fn::Not": [ + { + "Fn::Equals": [ + "DISALLOW", + "DISALLOW" + ] + } + ] + }, + "AuthReadAndList": { + "Fn::Not": [ + { + "Fn::Equals": [ + "ALLOW", + "DISALLOW" + ] + } + ] + }, + "GuestReadAndList": { + "Fn::Not": [ + { + "Fn::Equals": [ + "ALLOW", + "DISALLOW" + ] + } + ] + } + }, + "Outputs": { + "BucketName": { + "Description": "Bucket name for the S3 bucket", + "Value": "moodboard20e29595008142e3ad16f01c4066e1c4x-x" + }, + "Region": { + "Value": "us-east-1" + } + }, + "Resources": { + "S3Bucket": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketName": { + "Fn::Join": [ + "", + [ + "moodboard20e29595008142e3ad16f01c4066e1c4", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + "amplify-moodboard-x-x-storagemoodboardStorage-x" + ] + } + ] + }, + "-", + "x" + ] + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "Id": "S3CORSRuleId1", + "MaxAge": 3000 + } + ] + }, + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + } + }, + "UpdateReplacePolicy": "Retain", + "DeletionPolicy": "Retain" + }, + "S3AuthPublicPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + "s3:PutObject,s3:GetObject,s3:DeleteObject" + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "moodboard20e29595008142e3ad16f01c4066e1c4x-x", + "/public/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "Public_policy_206c638b", + "Roles": [ + "amplify-moodboard-x-x-authRole" + ] + }, + "Condition": "CreateAuthPublic" + }, + "S3AuthProtectedPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + "s3:PutObject,s3:GetObject,s3:DeleteObject" + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "moodboard20e29595008142e3ad16f01c4066e1c4x-x", + "/protected/${cognito-identity.amazonaws.com:sub}/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "Protected_policy_206c638b", + "Roles": [ + "amplify-moodboard-x-x-authRole" + ] + }, + "Condition": "CreateAuthProtected" + }, + "S3AuthPrivatePolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + "s3:PutObject,s3:GetObject,s3:DeleteObject" + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "moodboard20e29595008142e3ad16f01c4066e1c4x-x", + "/private/${cognito-identity.amazonaws.com:sub}/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "Private_policy_206c638b", + "Roles": [ + "amplify-moodboard-x-x-authRole" + ] + }, + "Condition": "CreateAuthPrivate" + }, + "S3AuthUploadPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + "s3:PutObject" + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "moodboard20e29595008142e3ad16f01c4066e1c4x-x", + "/uploads/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "Uploads_policy_206c638b", + "Roles": [ + "amplify-moodboard-x-x-authRole" + ] + }, + "Condition": "CreateAuthUploads" + }, + "S3GuestPublicPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + "s3:GetObject" + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "moodboard20e29595008142e3ad16f01c4066e1c4x-x", + "/public/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "Public_policy_206c638b", + "Roles": [ + "amplify-moodboard-x-x-unauthRole" + ] + }, + "Condition": "CreateGuestPublic" + }, + "S3AuthReadPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "moodboard20e29595008142e3ad16f01c4066e1c4x-x", + "/protected/*" + ] + ] + } + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/", + "public/*", + "protected/", + "protected/*", + "private/${cognito-identity.amazonaws.com:sub}/", + "private/${cognito-identity.amazonaws.com:sub}/*" + ] + } + }, + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "moodboard20e29595008142e3ad16f01c4066e1c4x-x" + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "read_policy_206c638b", + "Roles": [ + "amplify-moodboard-x-x-authRole" + ] + }, + "Condition": "AuthReadAndList" + }, + "S3GuestReadPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "moodboard20e29595008142e3ad16f01c4066e1c4x-x", + "/protected/*" + ] + ] + } + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/", + "public/*", + "protected/", + "protected/*" + ] + } + }, + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "moodboard20e29595008142e3ad16f01c4066e1c4x-x" + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "read_policy_206c638b", + "Roles": [ + "amplify-moodboard-x-x-unauthRole" + ] + }, + "Condition": "GuestReadAndList" + } + } +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/.gitignore b/amplify-migration-apps/mood-board/_snapshot.pre.generate/.gitignore index 4a025af5313..8c9162f3547 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/.gitignore +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/.gitignore @@ -36,7 +36,6 @@ dist/ node_modules/ aws-exports.js awsconfiguration.json -amplifyconfiguration.json amplifyconfiguration.dart amplify-build-config.json amplify-gradle-config.json diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json index 39fb13659d8..c69692d662b 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json @@ -1,14 +1,14 @@ { "providers": { "awscloudformation": { - "AuthRoleName": "amplify-moodboard-main-1959a-authRole", - "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-moodboard-main-1959a-unauthRole", - "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-moodboard-main-1959a-authRole", + "AuthRoleName": "amplify-moodboard-x-x-authRole", + "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-moodboard-x-x-unauthRole", + "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-moodboard-x-x-authRole", "Region": "us-east-1", - "DeploymentBucketName": "amplify-moodboard-main-1959a-deployment", - "UnauthRoleName": "amplify-moodboard-main-1959a-unauthRole", - "StackName": "amplify-moodboard-main-1959a", - "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-moodboard-main-1959a/f2787a30-1b0e-11f1-a58a-0afff81a6d49", + "DeploymentBucketName": "amplify-moodboard-x-x-deployment", + "UnauthRoleName": "amplify-moodboard-x-x-unauthRole", + "StackName": "amplify-moodboard-x-x", + "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-moodboard-x-x/61829dd0-3882-11f1-b5b8-0afffe97e059", "AmplifyAppId": "moodboard" } }, @@ -39,17 +39,17 @@ ] }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-main-1959a-deployment/amplify-cfn-templates/auth/moodboard759ae00a-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-x-x-deployment/amplify-cfn-templates/auth/moodboard759ae00a-cloudformation-template.json", "logicalId": "authmoodboard759ae00a" }, - "lastPushTimeStamp": "2026-03-08T17:07:28.971Z", + "lastPushTimeStamp": "2026-04-15T04:25:58.157Z", "output": { - "UserPoolId": "us-east-1_Cwvqs93Nc", - "AppClientIDWeb": "5t2df7ru217mr5ar6r44r61uqg", - "AppClientID": "1ssdipb0d8rfa77rq3o7u8t16c", - "IdentityPoolId": "us-east-1:a39e734d-ac34-43c7-8303-67512f010f0d", - "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_Cwvqs93Nc", - "IdentityPoolName": "moodboard759ae00a_identitypool_759ae00a__main", + "UserPoolId": "us-east-1_wDScdYiSe", + "AppClientIDWeb": "34sh75m6c73hj9t6cs8a3pf2sq", + "AppClientID": "5it3jnls1mnjbe8a9sit31e6ep", + "IdentityPoolId": "us-east-1:b4ae1cf8-c548-4712-a947-1738d119032f", + "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_wDScdYiSe", + "IdentityPoolName": "moodboard759ae00a_identitypool_759ae00a__x", "UserPoolName": "moodboard759ae00a_userpool_759ae00a" }, "lastPushDirHash": "YoAgoR9zujggRkSUxqGO4UbI+Og=" @@ -87,16 +87,16 @@ } ] }, - "GraphQLAPIIdOutput": "vsozkn3hbzdjppzyf7xtf2f4sy", - "GraphQLAPIEndpointOutput": "https://5wsaacr225fc7hv4ajdtxbwo24.appsync-api.us-east-1.amazonaws.com/graphql", + "GraphQLAPIIdOutput": "pd6mhagtyveltorgdvv7movvqq", + "GraphQLAPIEndpointOutput": "https://3hbeijkqlfendc2wyilh3flfly.appsync-api.us-east-1.amazonaws.com/graphql", "GraphQLAPIKeyOutput": "da2-fakeapikey00000000000000" }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-main-1959a-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", "logicalId": "apimoodboard" }, - "lastPushTimeStamp": "2026-03-08T17:07:28.971Z", - "lastPushDirHash": "07Bf1pNmdiuhcjXBjarxHNDWsHk=" + "lastPushTimeStamp": "2026-04-15T04:25:58.157Z", + "lastPushDirHash": "uvvuFYwSTSEzjrB1wH7Z+WF1syU=" } }, "storage": { @@ -104,13 +104,13 @@ "service": "S3", "providerPlugin": "awscloudformation", "dependsOn": [], - "lastPushTimeStamp": "2026-03-08T17:07:28.971Z", + "lastPushTimeStamp": "2026-04-15T04:25:58.157Z", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-main-1959a-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-x-x-deployment/amplify-cfn-templates/storage/cloudformation-template.json", "logicalId": "storagemoodboardStorage" }, "output": { - "BucketName": "moodboard20e29595008142e3ad16f01c4066e1c41959a-main", + "BucketName": "moodboard20e29595008142e3ad16f01c4066e1c4x-x", "Region": "us-east-1" }, "lastPushDirHash": "z3bRVMUaOPcCXFeBaOqmzI2Vp0M=" @@ -121,25 +121,25 @@ "build": true, "providerPlugin": "awscloudformation", "service": "Lambda", - "lastBuildTimeStamp": "2026-03-08T17:02:45.697Z", + "lastBuildTimeStamp": "2026-04-15T04:21:12.210Z", "lastBuildType": "PROD", - "lastPackageTimeStamp": "2026-03-08T17:02:45.757Z", + "lastPackageTimeStamp": "2026-04-15T04:21:12.263Z", "distZipFilename": "moodboardGetRandomEmoji-59616d4f4b546a305a75-build.zip", "s3Bucket": { - "deploymentBucketName": "amplify-moodboard-main-1959a-deployment", + "deploymentBucketName": "amplify-moodboard-x-x-deployment", "s3Key": "amplify-builds/moodboardGetRandomEmoji-59616d4f4b546a305a75-build.zip" }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-main-1959a-deployment/amplify-cfn-templates/function/moodboardGetRandomEmoji-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-x-x-deployment/amplify-cfn-templates/function/moodboardGetRandomEmoji-cloudformation-template.json", "logicalId": "functionmoodboardGetRandomEmoji" }, - "lastPushTimeStamp": "2026-03-08T17:07:28.971Z", + "lastPushTimeStamp": "2026-04-15T04:25:58.157Z", "output": { - "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/moodboardLambdaRolef849b419-main", + "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/moodboardLambdaRolef849b419-x", "Region": "us-east-1", - "Arn": "arn:aws:lambda:us-east-1:123456789012:function:moodboardGetRandomEmoji-main", - "Name": "moodboardGetRandomEmoji-main", - "LambdaExecutionRole": "moodboardLambdaRolef849b419-main" + "Arn": "arn:aws:lambda:us-east-1:123456789012:function:moodboardGetRandomEmoji-x", + "Name": "moodboardGetRandomEmoji-x", + "LambdaExecutionRole": "moodboardLambdaRolef849b419-x" }, "lastPushDirHash": "K/RndAAIl0V/ON0s1svTQIR0HvE=" }, @@ -156,25 +156,25 @@ ] } ], - "lastBuildTimeStamp": "2026-03-08T17:02:46.606Z", + "lastBuildTimeStamp": "2026-04-15T04:21:12.955Z", "lastBuildType": "PROD", - "lastPackageTimeStamp": "2026-03-08T17:02:46.652Z", + "lastPackageTimeStamp": "2026-04-15T04:21:12.966Z", "distZipFilename": "moodboardKinesisReader-4934782b72546e51707a-build.zip", "s3Bucket": { - "deploymentBucketName": "amplify-moodboard-main-1959a-deployment", + "deploymentBucketName": "amplify-moodboard-x-x-deployment", "s3Key": "amplify-builds/moodboardKinesisReader-4934782b72546e51707a-build.zip" }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-main-1959a-deployment/amplify-cfn-templates/function/moodboardKinesisReader-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-x-x-deployment/amplify-cfn-templates/function/moodboardKinesisReader-cloudformation-template.json", "logicalId": "functionmoodboardKinesisReader" }, - "lastPushTimeStamp": "2026-03-08T17:07:28.971Z", + "lastPushTimeStamp": "2026-04-15T04:25:58.157Z", "output": { - "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/moodboardLambdaRole1f55eecd-main", + "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/moodboardLambdaRole1f55eecd-x", "Region": "us-east-1", - "Arn": "arn:aws:lambda:us-east-1:123456789012:function:moodboardKinesisReader-main", - "Name": "moodboardKinesisReader-main", - "LambdaExecutionRole": "moodboardLambdaRole1f55eecd-main" + "Arn": "arn:aws:lambda:us-east-1:123456789012:function:moodboardKinesisReader-x", + "Name": "moodboardKinesisReader-x", + "LambdaExecutionRole": "moodboardLambdaRole1f55eecd-x" }, "lastPushDirHash": "Hm1fZAAyF9uAjfeygeDAxRhFnjI=" } @@ -184,16 +184,16 @@ "service": "Kinesis", "providerPlugin": "awscloudformation", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-main-1959a-deployment/amplify-cfn-templates/analytics/kinesis-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-x-x-deployment/amplify-cfn-templates/analytics/kinesis-cloudformation-template.json", "logicalId": "analyticsmoodboardKinesis" }, - "lastPushTimeStamp": "2026-03-08T17:07:29.513Z", + "lastPushTimeStamp": "2026-04-15T04:25:58.547Z", "output": { - "kinesisStreamId": "moodboardKinesis-main", + "kinesisStreamId": "moodboardKinesis-x", "kinesisStreamShardCount": "1", - "kinesisStreamArn": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-main" + "kinesisStreamArn": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-x" }, "lastPushDirHash": "IxnZjkEVCO8rMzaALT+khby+HWU=" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/analytics/moodboardKinesis/kinesis-cloudformation-template.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/analytics/moodboardKinesis/kinesis-cloudformation-template.json index f9f3849033d..393d162e440 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/analytics/moodboardKinesis/kinesis-cloudformation-template.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/analytics/moodboardKinesis/kinesis-cloudformation-template.json @@ -140,4 +140,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/analytics/moodboardKinesis/parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/analytics/moodboardKinesis/parameters.json index d38e2d1cf66..689c9a0b1c9 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/analytics/moodboardKinesis/parameters.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/analytics/moodboardKinesis/parameters.json @@ -9,4 +9,4 @@ }, "authPolicyName": "kinesis_amplify_bca5ce95", "unauthPolicyName": "kinesis_amplify_bca5ce95" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/cloudformation-template.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/cloudformation-template.json index 0087561898c..33c264e6ff6 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/cloudformation-template.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/cloudformation-template.json @@ -128,7 +128,7 @@ ] }, "Description": "moodBoard API Key", - "Expires": 1804525367 + "Expires": 1807762873 } }, "GraphQLAPINONEDS95A13CF0": { @@ -572,4 +572,4 @@ } }, "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/parameters.json index 0d43aae9f42..9876aebbcd0 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/parameters.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/parameters.json @@ -8,6 +8,6 @@ "Outputs.UserPoolId" ] }, - "S3DeploymentBucket": "amplify-moodboard-main-1959a-deployment", - "S3DeploymentRootKey": "amplify-appsync-files/f7ab9fca95eecad3a59047fb5fd92dfef9d55ad4" -} \ No newline at end of file + "S3DeploymentBucket": "amplify-moodboard-x-x-deployment", + "S3DeploymentRootKey": "amplify-appsync-files/5c491eab2bbf740cbba1e26a8e9053c2c881af96" +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Board.moodItems.auth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Board.moodItems.auth.1.req.vtl index 05dc2fa2cff..6ce1b66f87b 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Board.moodItems.auth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Board.moodItems.auth.1.req.vtl @@ -11,4 +11,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Board.moodItems.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Board.moodItems.req.vtl index 9fbfc7e79ce..6c50b715b8b 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Board.moodItems.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Board.moodItems.req.vtl @@ -69,4 +69,4 @@ null #end, "index": "byBoard" } -#end \ No newline at end of file +#end diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Board.moodItems.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Board.moodItems.res.vtl index 922c4ce53d0..ae420dbf03f 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Board.moodItems.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Board.moodItems.res.vtl @@ -10,4 +10,4 @@ $util.error($ctx.error.message, $ctx.error.type) #end #end $util.toJson($result) -#end \ No newline at end of file +#end diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/InvokeMoodboardGetRandomEmojiLambdaDataSource.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/InvokeMoodboardGetRandomEmojiLambdaDataSource.req.vtl index cfe52e3f460..ddbca1d21b6 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/InvokeMoodboardGetRandomEmojiLambdaDataSource.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/InvokeMoodboardGetRandomEmojiLambdaDataSource.req.vtl @@ -12,4 +12,4 @@ "prev": $util.toJson($ctx.prev) } } -## [End] Invoke AWS Lambda data source: MoodboardGetRandomEmojiLambdaDataSource. ** \ No newline at end of file +## [End] Invoke AWS Lambda data source: MoodboardGetRandomEmojiLambdaDataSource. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/InvokeMoodboardGetRandomEmojiLambdaDataSource.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/InvokeMoodboardGetRandomEmojiLambdaDataSource.res.vtl index e6b83d8b6ab..1316903313e 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/InvokeMoodboardGetRandomEmojiLambdaDataSource.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/InvokeMoodboardGetRandomEmojiLambdaDataSource.res.vtl @@ -3,4 +3,4 @@ $util.error($ctx.error.message, $ctx.error.type) #end $util.toJson($ctx.result) -## [End] Handle error or return result. ** \ No newline at end of file +## [End] Handle error or return result. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/InvokeMoodboardKinesisreaderLambdaDataSource.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/InvokeMoodboardKinesisreaderLambdaDataSource.req.vtl index c8ee4a9cd0b..fdde487ebbd 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/InvokeMoodboardKinesisreaderLambdaDataSource.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/InvokeMoodboardKinesisreaderLambdaDataSource.req.vtl @@ -1,4 +1,4 @@ -## [Start] Invoke AWS Lambda data source: MoodboardKinesisreaderLambdaDataSource. ** +## [Start] Invoke AWS Lambda data source: MoodboardKinesisReaderLambdaDataSource. ** { "version": "2018-05-29", "operation": "Invoke", @@ -12,4 +12,4 @@ "prev": $util.toJson($ctx.prev) } } -## [End] Invoke AWS Lambda data source: MoodboardKinesisreaderLambdaDataSource. ** \ No newline at end of file +## [End] Invoke AWS Lambda data source: MoodboardKinesisReaderLambdaDataSource. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/InvokeMoodboardKinesisreaderLambdaDataSource.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/InvokeMoodboardKinesisreaderLambdaDataSource.res.vtl index e6b83d8b6ab..1316903313e 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/InvokeMoodboardKinesisreaderLambdaDataSource.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/InvokeMoodboardKinesisreaderLambdaDataSource.res.vtl @@ -3,4 +3,4 @@ $util.error($ctx.error.message, $ctx.error.type) #end $util.toJson($ctx.result) -## [End] Handle error or return result. ** \ No newline at end of file +## [End] Handle error or return result. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/MoodItem.board.auth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/MoodItem.board.auth.1.req.vtl index 05dc2fa2cff..6ce1b66f87b 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/MoodItem.board.auth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/MoodItem.board.auth.1.req.vtl @@ -11,4 +11,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/MoodItem.board.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/MoodItem.board.req.vtl index e240a74fb1b..f2952c1751f 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/MoodItem.board.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/MoodItem.board.req.vtl @@ -22,4 +22,4 @@ $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) #end $util.toJson($GetRequest) -#end \ No newline at end of file +#end diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/MoodItem.board.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/MoodItem.board.res.vtl index 92c535c73df..61b51759e34 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/MoodItem.board.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/MoodItem.board.res.vtl @@ -14,4 +14,4 @@ $util.unauthorized() #end $util.toJson(null) #end -#end \ No newline at end of file +#end diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.createBoard.auth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.createBoard.auth.1.req.vtl index 08cba3f3ade..3f8533b77b8 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.createBoard.auth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.createBoard.auth.1.req.vtl @@ -19,4 +19,4 @@ $util.unauthorized() #end #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.createBoard.init.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.createBoard.init.1.req.vtl index df6b4cbbc5c..407b5845fc2 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.createBoard.init.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.createBoard.init.1.req.vtl @@ -8,4 +8,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.createBoard.postAuth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.createBoard.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.createBoard.postAuth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.createBoard.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.createBoard.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.createBoard.req.vtl index d198fb18d63..5c8c5ce45c7 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.createBoard.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.createBoard.req.vtl @@ -63,4 +63,4 @@ $util.qr($mergedValues.put("__typename", "Board")) $util.qr($PutObject.put("key", $Key)) #end $util.toJson($PutObject) -## [End] Create Request template. ** \ No newline at end of file +## [End] Create Request template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.createBoard.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.createBoard.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.createBoard.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.createBoard.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.createMoodItem.auth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.createMoodItem.auth.1.req.vtl index 08cba3f3ade..3f8533b77b8 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.createMoodItem.auth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.createMoodItem.auth.1.req.vtl @@ -19,4 +19,4 @@ $util.unauthorized() #end #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.createMoodItem.init.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.createMoodItem.init.1.req.vtl index df6b4cbbc5c..407b5845fc2 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.createMoodItem.init.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.createMoodItem.init.1.req.vtl @@ -8,4 +8,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.createMoodItem.postAuth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.createMoodItem.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.createMoodItem.postAuth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.createMoodItem.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.createMoodItem.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.createMoodItem.req.vtl index d5edadc75db..3dc84ab80e1 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.createMoodItem.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.createMoodItem.req.vtl @@ -71,4 +71,4 @@ $util.qr($mergedValues.put("__typename", "MoodItem")) $util.qr($PutObject.put("key", $Key)) #end $util.toJson($PutObject) -## [End] Create Request template. ** \ No newline at end of file +## [End] Create Request template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.createMoodItem.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.createMoodItem.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.createMoodItem.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.createMoodItem.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.deleteBoard.auth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.deleteBoard.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.deleteBoard.auth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.deleteBoard.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.deleteBoard.auth.1.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.deleteBoard.auth.1.res.vtl index 4303a893cb1..b8c75f73235 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.deleteBoard.auth.1.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.deleteBoard.auth.1.res.vtl @@ -11,4 +11,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.deleteBoard.postAuth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.deleteBoard.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.deleteBoard.postAuth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.deleteBoard.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.deleteBoard.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.deleteBoard.req.vtl index ace459bd501..d2cb40cd15d 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.deleteBoard.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.deleteBoard.req.vtl @@ -55,4 +55,4 @@ $util.qr($DeleteRequest.put("key", $Key)) $util.qr($DeleteRequest.put("condition", $Conditions)) #end $util.toJson($DeleteRequest) -## [End] Delete Request template. ** \ No newline at end of file +## [End] Delete Request template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.deleteBoard.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.deleteBoard.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.deleteBoard.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.deleteBoard.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.deleteMoodItem.auth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.deleteMoodItem.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.deleteMoodItem.auth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.deleteMoodItem.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.deleteMoodItem.auth.1.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.deleteMoodItem.auth.1.res.vtl index 4303a893cb1..b8c75f73235 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.deleteMoodItem.auth.1.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.deleteMoodItem.auth.1.res.vtl @@ -11,4 +11,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.deleteMoodItem.postAuth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.deleteMoodItem.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.deleteMoodItem.postAuth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.deleteMoodItem.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.deleteMoodItem.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.deleteMoodItem.req.vtl index ace459bd501..d2cb40cd15d 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.deleteMoodItem.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.deleteMoodItem.req.vtl @@ -55,4 +55,4 @@ $util.qr($DeleteRequest.put("key", $Key)) $util.qr($DeleteRequest.put("condition", $Conditions)) #end $util.toJson($DeleteRequest) -## [End] Delete Request template. ** \ No newline at end of file +## [End] Delete Request template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.deleteMoodItem.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.deleteMoodItem.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.deleteMoodItem.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.deleteMoodItem.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateBoard.auth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateBoard.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateBoard.auth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateBoard.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateBoard.auth.1.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateBoard.auth.1.res.vtl index 4f05c2725c3..48e15145909 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateBoard.auth.1.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateBoard.auth.1.res.vtl @@ -31,4 +31,4 @@ $util.unauthorized() $util.error("Unauthorized on ${deniedFields.keySet()}", "Unauthorized") #end $util.toJson({}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateBoard.init.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateBoard.init.1.req.vtl index ab5766fb051..dde2512aea8 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateBoard.init.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateBoard.init.1.req.vtl @@ -6,4 +6,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateBoard.postAuth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateBoard.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateBoard.postAuth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateBoard.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateBoard.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateBoard.req.vtl index a1bd67d21b6..648b67d7c57 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateBoard.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateBoard.req.vtl @@ -127,4 +127,4 @@ $util.qr($update.put("expression", "$expression")) $util.qr($UpdateItem.put("condition", $Conditions)) #end $util.toJson($UpdateItem) -## [End] Mutation Update resolver. ** \ No newline at end of file +## [End] Mutation Update resolver. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateBoard.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateBoard.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateBoard.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateBoard.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.auth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.auth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.auth.1.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.auth.1.res.vtl index 4f05c2725c3..48e15145909 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.auth.1.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.auth.1.res.vtl @@ -31,4 +31,4 @@ $util.unauthorized() $util.error("Unauthorized on ${deniedFields.keySet()}", "Unauthorized") #end $util.toJson({}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.init.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.init.1.req.vtl index ab5766fb051..dde2512aea8 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.init.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.init.1.req.vtl @@ -6,4 +6,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.postAuth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.postAuth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.req.vtl index a1bd67d21b6..648b67d7c57 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.req.vtl @@ -127,4 +127,4 @@ $util.qr($update.put("expression", "$expression")) $util.qr($UpdateItem.put("condition", $Conditions)) #end $util.toJson($UpdateItem) -## [End] Mutation Update resolver. ** \ No newline at end of file +## [End] Mutation Update resolver. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getBoard.auth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getBoard.auth.1.req.vtl index 6ea758ede95..5e8328df3a4 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getBoard.auth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getBoard.auth.1.req.vtl @@ -12,4 +12,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getBoard.postAuth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getBoard.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getBoard.postAuth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getBoard.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getBoard.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getBoard.req.vtl index a8d7811a021..fd7fbfc8013 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getBoard.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getBoard.req.vtl @@ -31,4 +31,4 @@ $util.qr($GetRequest.put("query", $query)) $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) #end $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getBoard.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getBoard.res.vtl index e9ef1436bdd..92e05f99816 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getBoard.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getBoard.res.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson(null) #end -## [End] Get Response template. ** \ No newline at end of file +## [End] Get Response template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getKinesisEvents.auth.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getKinesisEvents.auth.req.vtl index a0726845157..4b43d313f59 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getKinesisEvents.auth.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getKinesisEvents.auth.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getKinesisEvents.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getKinesisEvents.res.vtl index 634741579ce..c37b82e4a30 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getKinesisEvents.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getKinesisEvents.res.vtl @@ -1 +1 @@ -$util.toJson($ctx.prev.result) \ No newline at end of file +$util.toJson($ctx.prev.result) diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getMoodItem.auth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getMoodItem.auth.1.req.vtl index 6ea758ede95..5e8328df3a4 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getMoodItem.auth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getMoodItem.auth.1.req.vtl @@ -12,4 +12,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getMoodItem.postAuth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getMoodItem.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getMoodItem.postAuth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getMoodItem.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getMoodItem.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getMoodItem.req.vtl index a8d7811a021..fd7fbfc8013 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getMoodItem.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getMoodItem.req.vtl @@ -31,4 +31,4 @@ $util.qr($GetRequest.put("query", $query)) $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) #end $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getMoodItem.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getMoodItem.res.vtl index e9ef1436bdd..92e05f99816 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getMoodItem.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getMoodItem.res.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson(null) #end -## [End] Get Response template. ** \ No newline at end of file +## [End] Get Response template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getRandomEmoji.auth.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getRandomEmoji.auth.req.vtl index a0726845157..4b43d313f59 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getRandomEmoji.auth.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getRandomEmoji.auth.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getRandomEmoji.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getRandomEmoji.res.vtl index 634741579ce..c37b82e4a30 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getRandomEmoji.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.getRandomEmoji.res.vtl @@ -1 +1 @@ -$util.toJson($ctx.prev.result) \ No newline at end of file +$util.toJson($ctx.prev.result) diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.listBoards.auth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.listBoards.auth.1.req.vtl index 6ea758ede95..5e8328df3a4 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.listBoards.auth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.listBoards.auth.1.req.vtl @@ -12,4 +12,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.listBoards.postAuth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.listBoards.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.listBoards.postAuth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.listBoards.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.listBoards.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.listBoards.req.vtl index 014213710e8..ef976126825 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.listBoards.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.listBoards.req.vtl @@ -47,4 +47,4 @@ #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) #end $util.toJson($ListRequest) -## [End] List Request. ** \ No newline at end of file +## [End] List Request. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.listBoards.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.listBoards.res.vtl index ee8b6670cbc..aab9983954e 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.listBoards.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.listBoards.res.vtl @@ -4,4 +4,4 @@ #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.listMoodItems.auth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.listMoodItems.auth.1.req.vtl index 6ea758ede95..5e8328df3a4 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.listMoodItems.auth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.listMoodItems.auth.1.req.vtl @@ -12,4 +12,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.listMoodItems.postAuth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.listMoodItems.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.listMoodItems.postAuth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.listMoodItems.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.listMoodItems.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.listMoodItems.req.vtl index 014213710e8..ef976126825 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.listMoodItems.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.listMoodItems.req.vtl @@ -47,4 +47,4 @@ #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) #end $util.toJson($ListRequest) -## [End] List Request. ** \ No newline at end of file +## [End] List Request. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.listMoodItems.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.listMoodItems.res.vtl index ee8b6670cbc..aab9983954e 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.listMoodItems.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.listMoodItems.res.vtl @@ -4,4 +4,4 @@ #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.moodItemsByBoardID.auth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.moodItemsByBoardID.auth.1.req.vtl index 6ea758ede95..5e8328df3a4 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.moodItemsByBoardID.auth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.moodItemsByBoardID.auth.1.req.vtl @@ -12,4 +12,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.moodItemsByBoardID.postAuth.1.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.moodItemsByBoardID.postAuth.1.res.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.moodItemsByBoardID.postAuth.1.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.moodItemsByBoardID.postAuth.1.res.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.moodItemsByBoardID.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.moodItemsByBoardID.req.vtl index f467a547bac..b2d938cfa01 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.moodItemsByBoardID.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.moodItemsByBoardID.req.vtl @@ -54,4 +54,4 @@ #set( $QueryRequest.filter = $filterExpression ) #end #end -$util.toJson($QueryRequest) \ No newline at end of file +$util.toJson($QueryRequest) diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.moodItemsByBoardID.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.moodItemsByBoardID.res.vtl index b0dd3df90d6..0355e700092 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.moodItemsByBoardID.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Query.moodItemsByBoardID.res.vtl @@ -1,4 +1,4 @@ #if( $ctx.error ) $util.error($ctx.error.message, $ctx.error.type) #end -$util.toJson($ctx.result) \ No newline at end of file +$util.toJson($ctx.result) diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onCreateBoard.auth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onCreateBoard.auth.1.req.vtl index dbc01a41cf3..0ff5d9f7ef1 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onCreateBoard.auth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onCreateBoard.auth.1.req.vtl @@ -35,4 +35,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onCreateBoard.postAuth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onCreateBoard.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onCreateBoard.postAuth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onCreateBoard.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onCreateBoard.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onCreateBoard.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onCreateBoard.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onCreateBoard.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onCreateBoard.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onCreateBoard.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onCreateBoard.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onCreateBoard.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onCreateMoodItem.auth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onCreateMoodItem.auth.1.req.vtl index dbc01a41cf3..0ff5d9f7ef1 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onCreateMoodItem.auth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onCreateMoodItem.auth.1.req.vtl @@ -35,4 +35,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onCreateMoodItem.postAuth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onCreateMoodItem.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onCreateMoodItem.postAuth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onCreateMoodItem.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onCreateMoodItem.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onCreateMoodItem.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onCreateMoodItem.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onCreateMoodItem.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onCreateMoodItem.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onCreateMoodItem.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onCreateMoodItem.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onCreateMoodItem.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onDeleteBoard.auth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onDeleteBoard.auth.1.req.vtl index dbc01a41cf3..0ff5d9f7ef1 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onDeleteBoard.auth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onDeleteBoard.auth.1.req.vtl @@ -35,4 +35,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onDeleteBoard.postAuth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onDeleteBoard.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onDeleteBoard.postAuth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onDeleteBoard.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onDeleteBoard.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onDeleteBoard.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onDeleteBoard.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onDeleteBoard.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onDeleteBoard.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onDeleteBoard.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onDeleteBoard.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onDeleteBoard.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onDeleteMoodItem.auth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onDeleteMoodItem.auth.1.req.vtl index dbc01a41cf3..0ff5d9f7ef1 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onDeleteMoodItem.auth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onDeleteMoodItem.auth.1.req.vtl @@ -35,4 +35,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onDeleteMoodItem.postAuth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onDeleteMoodItem.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onDeleteMoodItem.postAuth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onDeleteMoodItem.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onDeleteMoodItem.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onDeleteMoodItem.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onDeleteMoodItem.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onDeleteMoodItem.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onDeleteMoodItem.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onDeleteMoodItem.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onDeleteMoodItem.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onDeleteMoodItem.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onUpdateBoard.auth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onUpdateBoard.auth.1.req.vtl index dbc01a41cf3..0ff5d9f7ef1 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onUpdateBoard.auth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onUpdateBoard.auth.1.req.vtl @@ -35,4 +35,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onUpdateBoard.postAuth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onUpdateBoard.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onUpdateBoard.postAuth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onUpdateBoard.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onUpdateBoard.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onUpdateBoard.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onUpdateBoard.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onUpdateBoard.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onUpdateBoard.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onUpdateBoard.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onUpdateBoard.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onUpdateBoard.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onUpdateMoodItem.auth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onUpdateMoodItem.auth.1.req.vtl index dbc01a41cf3..0ff5d9f7ef1 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onUpdateMoodItem.auth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onUpdateMoodItem.auth.1.req.vtl @@ -35,4 +35,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onUpdateMoodItem.postAuth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onUpdateMoodItem.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onUpdateMoodItem.postAuth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onUpdateMoodItem.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onUpdateMoodItem.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onUpdateMoodItem.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onUpdateMoodItem.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onUpdateMoodItem.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onUpdateMoodItem.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onUpdateMoodItem.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onUpdateMoodItem.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/resolvers/Subscription.onUpdateMoodItem.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/stacks/Board.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/stacks/Board.json index 95a07728ca7..4996ea8e7b5 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/stacks/Board.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/stacks/Board.json @@ -455,7 +455,7 @@ { "Ref": "BoardTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -550,7 +550,7 @@ { "Ref": "BoardTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -648,7 +648,7 @@ { "Ref": "BoardTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -800,7 +800,7 @@ { "Ref": "BoardTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -949,7 +949,7 @@ { "Ref": "BoardTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -986,7 +986,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1023,7 +1023,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1060,7 +1060,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1147,4 +1147,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/stacks/ConnectionStack.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/stacks/ConnectionStack.json index 11263f18fc9..f37fa1fff70 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/stacks/ConnectionStack.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/stacks/ConnectionStack.json @@ -111,7 +111,7 @@ { "Ref": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemMoodItemTable5135EED9Ref" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -200,7 +200,7 @@ { "Ref": "referencetotransformerrootstackBoardNestedStackBoardNestedStackResource9E449E87OutputstransformerrootstackBoardBoardTable30788E07Ref" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -235,4 +235,4 @@ "Type": "String" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/stacks/CustomResources.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/stacks/CustomResources.json index 016991278d0..5fe357d6096 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/stacks/CustomResources.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/stacks/CustomResources.json @@ -58,4 +58,4 @@ "Value": "" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/stacks/FunctionDirectiveStack.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/stacks/FunctionDirectiveStack.json index c984a8bbed7..6e717da2ea7 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/stacks/FunctionDirectiveStack.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/stacks/FunctionDirectiveStack.json @@ -230,7 +230,7 @@ "TypeName": "Query" } }, - "MoodboardKinesisreaderLambdaDataSourceServiceRole9D507FAC": { + "MoodboardKinesisReaderLambdaDataSourceServiceRole0DD9733A": { "Type": "AWS::IAM::Role", "Properties": { "AssumeRolePolicyDocument": { @@ -247,7 +247,7 @@ } } }, - "MoodboardKinesisreaderLambdaDataSourceServiceRoleDefaultPolicyD5B4AEB5": { + "MoodboardKinesisReaderLambdaDataSourceServiceRoleDefaultPolicy83734E31": { "Type": "AWS::IAM::Policy", "Properties": { "PolicyDocument": { @@ -305,15 +305,15 @@ ], "Version": "2012-10-17" }, - "PolicyName": "MoodboardKinesisreaderLambdaDataSourceServiceRoleDefaultPolicyD5B4AEB5", + "PolicyName": "MoodboardKinesisReaderLambdaDataSourceServiceRoleDefaultPolicy83734E31", "Roles": [ { - "Ref": "MoodboardKinesisreaderLambdaDataSourceServiceRole9D507FAC" + "Ref": "MoodboardKinesisReaderLambdaDataSourceServiceRole0DD9733A" } ] } }, - "MoodboardKinesisreaderLambdaDataSource": { + "MoodboardKinesisReaderLambdaDataSource": { "Type": "AWS::AppSync::DataSource", "Properties": { "ApiId": { @@ -339,17 +339,17 @@ ] } }, - "Name": "MoodboardKinesisreaderLambdaDataSource", + "Name": "MoodboardKinesisReaderLambdaDataSource", "ServiceRoleArn": { "Fn::GetAtt": [ - "MoodboardKinesisreaderLambdaDataSourceServiceRole9D507FAC", + "MoodboardKinesisReaderLambdaDataSourceServiceRole0DD9733A", "Arn" ] }, "Type": "AWS_LAMBDA" } }, - "InvokeMoodboardKinesisreaderLambdaDataSourceInvokeMoodboardKinesisreaderLambdaDataSourceAppSyncFunction48095023": { + "InvokeMoodboardKinesisReaderLambdaDataSourceInvokeMoodboardKinesisReaderLambdaDataSourceAppSyncFunctionDD5E9972": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { @@ -357,12 +357,12 @@ }, "DataSourceName": { "Fn::GetAtt": [ - "MoodboardKinesisreaderLambdaDataSource", + "MoodboardKinesisReaderLambdaDataSource", "Name" ] }, "FunctionVersion": "2018-05-29", - "Name": "InvokeMoodboardKinesisreaderLambdaDataSource", + "Name": "InvokeMoodboardKinesisReaderLambdaDataSource", "RequestMappingTemplateS3Location": { "Fn::Join": [ "", @@ -375,7 +375,7 @@ { "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" }, - "/resolvers/InvokeMoodboardKinesisreaderLambdaDataSource.req.vtl" + "/resolvers/InvokeMoodboardKinesisReaderLambdaDataSource.req.vtl" ] ] }, @@ -391,13 +391,13 @@ { "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" }, - "/resolvers/InvokeMoodboardKinesisreaderLambdaDataSource.res.vtl" + "/resolvers/InvokeMoodboardKinesisReaderLambdaDataSource.res.vtl" ] ] } }, "DependsOn": [ - "MoodboardKinesisreaderLambdaDataSource" + "MoodboardKinesisReaderLambdaDataSource" ] }, "QuerygetKinesisEventsResolver": { @@ -418,7 +418,7 @@ }, { "Fn::GetAtt": [ - "InvokeMoodboardKinesisreaderLambdaDataSourceInvokeMoodboardKinesisreaderLambdaDataSourceAppSyncFunction48095023", + "InvokeMoodboardKinesisReaderLambdaDataSourceInvokeMoodboardKinesisReaderLambdaDataSourceAppSyncFunctionDD5E9972", "FunctionId" ] } diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/stacks/MoodItem.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/stacks/MoodItem.json index 15b01bd9049..fd3fa04c5a5 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/stacks/MoodItem.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/build/stacks/MoodItem.json @@ -548,7 +548,7 @@ { "Ref": "MoodItemTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -649,7 +649,7 @@ { "Ref": "MoodItemTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -816,7 +816,7 @@ { "Ref": "MoodItemTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1004,7 +1004,7 @@ { "Ref": "MoodItemTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1156,7 +1156,7 @@ { "Ref": "MoodItemTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1277,7 +1277,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1323,7 +1323,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1369,7 +1369,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1470,7 +1470,7 @@ { "Ref": "MoodItemTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1613,4 +1613,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/cli-inputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/cli-inputs.json index 8cfec237c77..f608e902942 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/cli-inputs.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/cli-inputs.json @@ -16,4 +16,4 @@ } ] } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/parameters.json index b175b3e8119..f5dda25b84f 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/parameters.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/parameters.json @@ -8,4 +8,4 @@ "Outputs.UserPoolId" ] } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/resolvers/README.md b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/resolvers/README.md index 89e564c5b31..1634d295144 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/resolvers/README.md +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/resolvers/README.md @@ -1,2 +1,2 @@ Any resolvers that you add in this directory will override the ones automatically generated by Amplify CLI and will be directly copied to the cloud. -For more information, visit [https://docs.amplify.aws/cli/graphql-transformer/resolvers](https://docs.amplify.aws/cli/graphql-transformer/resolvers) \ No newline at end of file +For more information, visit [https://docs.amplify.aws/cli/graphql-transformer/resolvers](https://docs.amplify.aws/cli/graphql-transformer/resolvers) diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/transform.conf.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/transform.conf.json index 98e1e19f038..d0421b1df09 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/transform.conf.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/api/moodboard/transform.conf.json @@ -1,4 +1,4 @@ { "Version": 5, "ElasticsearchWarning": true -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/moodboard759ae00a/build/moodboard759ae00a-cloudformation-template.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/moodboard759ae00a/build/moodboard759ae00a-cloudformation-template.json index 379d6603fdd..0a99c89800f 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/moodboard759ae00a/build/moodboard759ae00a-cloudformation-template.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/moodboard759ae00a/build/moodboard759ae00a-cloudformation-template.json @@ -410,4 +410,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/moodboard759ae00a/build/parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/moodboard759ae00a/build/parameters.json index e93fd25b5b5..6b786a93806 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/moodboard759ae00a/build/parameters.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/moodboard759ae00a/build/parameters.json @@ -56,4 +56,4 @@ }, "breakCircularDependency": true, "dependsOn": [] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/moodboard759ae00a/cli-inputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/moodboard759ae00a/cli-inputs.json index e5b20e5433e..eed066f9812 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/moodboard759ae00a/cli-inputs.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/moodboard759ae00a/cli-inputs.json @@ -59,4 +59,4 @@ "breakCircularDependency": true, "dependsOn": [] } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/analytics/moodboardKinesis/kinesis-cloudformation-template.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/analytics/moodboardKinesis/kinesis-cloudformation-template.json index f9f3849033d..393d162e440 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/analytics/moodboardKinesis/kinesis-cloudformation-template.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/analytics/moodboardKinesis/kinesis-cloudformation-template.json @@ -140,4 +140,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/moodboard/build/cloudformation-template.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/moodboard/build/cloudformation-template.json index 0087561898c..33c264e6ff6 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/moodboard/build/cloudformation-template.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/moodboard/build/cloudformation-template.json @@ -128,7 +128,7 @@ ] }, "Description": "moodBoard API Key", - "Expires": 1804525367 + "Expires": 1807762873 } }, "GraphQLAPINONEDS95A13CF0": { @@ -572,4 +572,4 @@ } }, "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/moodboard759ae00a/build/moodboard759ae00a-cloudformation-template.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/moodboard759ae00a/build/moodboard759ae00a-cloudformation-template.json index 379d6603fdd..0a99c89800f 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/moodboard759ae00a/build/moodboard759ae00a-cloudformation-template.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/moodboard759ae00a/build/moodboard759ae00a-cloudformation-template.json @@ -410,4 +410,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json index 2985f96cfe4..376668f1942 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json @@ -202,7 +202,7 @@ "authmoodboard759ae00a": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-main-1959a-deployment/amplify-cfn-templates/auth/moodboard759ae00a-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-x-x-deployment/amplify-cfn-templates/auth/moodboard759ae00a-cloudformation-template.json", "Parameters": { "identityPoolName": "moodboard759ae00a_identitypool_759ae00a", "allowUnauthenticatedIdentities": true, @@ -249,14 +249,14 @@ }, "breakCircularDependency": true, "dependsOn": "", - "env": "main" + "env": "x" } } }, "apimoodboard": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-main-1959a-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", "Parameters": { "AppSyncApiName": "moodboard", "DynamoDBBillingMode": "PAY_PER_REQUEST", @@ -267,16 +267,16 @@ "Outputs.UserPoolId" ] }, - "S3DeploymentBucket": "amplify-moodboard-main-1959a-deployment", - "S3DeploymentRootKey": "amplify-appsync-files/f7ab9fca95eecad3a59047fb5fd92dfef9d55ad4", - "env": "main" + "S3DeploymentBucket": "amplify-moodboard-x-x-deployment", + "S3DeploymentRootKey": "amplify-appsync-files/5c491eab2bbf740cbba1e26a8e9053c2c881af96", + "env": "x" } } }, "storagemoodboardStorage": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-main-1959a-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-x-x-deployment/amplify-cfn-templates/storage/cloudformation-template.json", "Parameters": { "bucketName": "moodboard20e29595008142e3ad16f01c4066e1c4", "selectedGuestPermissions": "s3:GetObject,s3:ListBucket", @@ -302,27 +302,27 @@ "s3PermissionsAuthenticatedUploads": "s3:PutObject", "s3PermissionsGuestPublic": "s3:GetObject", "s3PermissionsGuestUploads": "DISALLOW", - "env": "main" + "env": "x" } } }, "functionmoodboardGetRandomEmoji": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-main-1959a-deployment/amplify-cfn-templates/function/moodboardGetRandomEmoji-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-x-x-deployment/amplify-cfn-templates/function/moodboardGetRandomEmoji-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-moodboard-main-1959a-deployment", + "deploymentBucketName": "amplify-moodboard-x-x-deployment", "s3Key": "amplify-builds/moodboardGetRandomEmoji-59616d4f4b546a305a75-build.zip", - "env": "main" + "env": "x" } } }, "functionmoodboardKinesisReader": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-main-1959a-deployment/amplify-cfn-templates/function/moodboardKinesisReader-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-x-x-deployment/amplify-cfn-templates/function/moodboardKinesisReader-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-moodboard-main-1959a-deployment", + "deploymentBucketName": "amplify-moodboard-x-x-deployment", "s3Key": "amplify-builds/moodboardKinesisReader-4934782b72546e51707a-build.zip", "analyticsmoodboardKinesiskinesisStreamArn": { "Fn::GetAtt": [ @@ -330,14 +330,14 @@ "Outputs.kinesisStreamArn" ] }, - "env": "main" + "env": "x" } } }, "analyticsmoodboardKinesis": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-main-1959a-deployment/amplify-cfn-templates/analytics/kinesis-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-x-x-deployment/amplify-cfn-templates/analytics/kinesis-cloudformation-template.json", "Parameters": { "kinesisStreamName": "moodboardKinesis", "kinesisStreamShardCount": 1, @@ -349,7 +349,7 @@ }, "authPolicyName": "kinesis_amplify_bca5ce95", "unauthPolicyName": "kinesis_amplify_bca5ce95", - "env": "main" + "env": "x" } } }, @@ -557,4 +557,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/moodboardGetRandomEmoji/moodboardGetRandomEmoji-cloudformation-template.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/moodboardGetRandomEmoji/moodboardGetRandomEmoji-cloudformation-template.json index f23f65bc8fb..ffc01232f92 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/moodboardGetRandomEmoji/moodboardGetRandomEmoji-cloudformation-template.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/moodboardGetRandomEmoji/moodboardGetRandomEmoji-cloudformation-template.json @@ -199,4 +199,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/moodboardKinesisReader/moodboardKinesisReader-cloudformation-template.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/moodboardKinesisReader/moodboardKinesisReader-cloudformation-template.json index c943b9df770..b6744df2dd3 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/moodboardKinesisReader/moodboardKinesisReader-cloudformation-template.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/moodboardKinesisReader/moodboardKinesisReader-cloudformation-template.json @@ -245,4 +245,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json index 2985f96cfe4..376668f1942 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json @@ -202,7 +202,7 @@ "authmoodboard759ae00a": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-main-1959a-deployment/amplify-cfn-templates/auth/moodboard759ae00a-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-x-x-deployment/amplify-cfn-templates/auth/moodboard759ae00a-cloudformation-template.json", "Parameters": { "identityPoolName": "moodboard759ae00a_identitypool_759ae00a", "allowUnauthenticatedIdentities": true, @@ -249,14 +249,14 @@ }, "breakCircularDependency": true, "dependsOn": "", - "env": "main" + "env": "x" } } }, "apimoodboard": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-main-1959a-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", "Parameters": { "AppSyncApiName": "moodboard", "DynamoDBBillingMode": "PAY_PER_REQUEST", @@ -267,16 +267,16 @@ "Outputs.UserPoolId" ] }, - "S3DeploymentBucket": "amplify-moodboard-main-1959a-deployment", - "S3DeploymentRootKey": "amplify-appsync-files/f7ab9fca95eecad3a59047fb5fd92dfef9d55ad4", - "env": "main" + "S3DeploymentBucket": "amplify-moodboard-x-x-deployment", + "S3DeploymentRootKey": "amplify-appsync-files/5c491eab2bbf740cbba1e26a8e9053c2c881af96", + "env": "x" } } }, "storagemoodboardStorage": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-main-1959a-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-x-x-deployment/amplify-cfn-templates/storage/cloudformation-template.json", "Parameters": { "bucketName": "moodboard20e29595008142e3ad16f01c4066e1c4", "selectedGuestPermissions": "s3:GetObject,s3:ListBucket", @@ -302,27 +302,27 @@ "s3PermissionsAuthenticatedUploads": "s3:PutObject", "s3PermissionsGuestPublic": "s3:GetObject", "s3PermissionsGuestUploads": "DISALLOW", - "env": "main" + "env": "x" } } }, "functionmoodboardGetRandomEmoji": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-main-1959a-deployment/amplify-cfn-templates/function/moodboardGetRandomEmoji-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-x-x-deployment/amplify-cfn-templates/function/moodboardGetRandomEmoji-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-moodboard-main-1959a-deployment", + "deploymentBucketName": "amplify-moodboard-x-x-deployment", "s3Key": "amplify-builds/moodboardGetRandomEmoji-59616d4f4b546a305a75-build.zip", - "env": "main" + "env": "x" } } }, "functionmoodboardKinesisReader": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-main-1959a-deployment/amplify-cfn-templates/function/moodboardKinesisReader-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-x-x-deployment/amplify-cfn-templates/function/moodboardKinesisReader-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-moodboard-main-1959a-deployment", + "deploymentBucketName": "amplify-moodboard-x-x-deployment", "s3Key": "amplify-builds/moodboardKinesisReader-4934782b72546e51707a-build.zip", "analyticsmoodboardKinesiskinesisStreamArn": { "Fn::GetAtt": [ @@ -330,14 +330,14 @@ "Outputs.kinesisStreamArn" ] }, - "env": "main" + "env": "x" } } }, "analyticsmoodboardKinesis": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-main-1959a-deployment/amplify-cfn-templates/analytics/kinesis-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-x-x-deployment/amplify-cfn-templates/analytics/kinesis-cloudformation-template.json", "Parameters": { "kinesisStreamName": "moodboardKinesis", "kinesisStreamShardCount": 1, @@ -349,7 +349,7 @@ }, "authPolicyName": "kinesis_amplify_bca5ce95", "unauthPolicyName": "kinesis_amplify_bca5ce95", - "env": "main" + "env": "x" } } }, @@ -557,4 +557,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/storage/moodboardStorage/build/cloudformation-template.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/storage/moodboardStorage/build/cloudformation-template.json index 8bac1dbfa69..204a64677c8 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/storage/moodboardStorage/build/cloudformation-template.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/storage/moodboardStorage/build/cloudformation-template.json @@ -643,4 +643,4 @@ "Condition": "GuestReadAndList" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json index ab0b1a3ec06..9fe08f04692 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json @@ -130,4 +130,4 @@ "service": "S3" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/function/moodboardGetRandomEmoji/amplify.state b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/function/moodboardGetRandomEmoji/amplify.state index 0c3efe04706..ab8a6cc8046 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/function/moodboardGetRandomEmoji/amplify.state +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/function/moodboardGetRandomEmoji/amplify.state @@ -3,4 +3,4 @@ "functionRuntime": "nodejs", "useLegacyBuild": true, "defaultEditorFile": "src/index.js" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/function/moodboardGetRandomEmoji/custom-policies.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/function/moodboardGetRandomEmoji/custom-policies.json index 528c94f2f26..1f21c530082 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/function/moodboardGetRandomEmoji/custom-policies.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/function/moodboardGetRandomEmoji/custom-policies.json @@ -3,4 +3,4 @@ "Action": [], "Resource": [] } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/function/moodboardGetRandomEmoji/function-parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/function/moodboardGetRandomEmoji/function-parameters.json index d5078776c21..481f6af97f7 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/function/moodboardGetRandomEmoji/function-parameters.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/function/moodboardGetRandomEmoji/function-parameters.json @@ -1,3 +1,3 @@ { "lambdaLayers": [] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/function/moodboardGetRandomEmoji/moodboardGetRandomEmoji-cloudformation-template.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/function/moodboardGetRandomEmoji/moodboardGetRandomEmoji-cloudformation-template.json index f23f65bc8fb..ffc01232f92 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/function/moodboardGetRandomEmoji/moodboardGetRandomEmoji-cloudformation-template.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/function/moodboardGetRandomEmoji/moodboardGetRandomEmoji-cloudformation-template.json @@ -199,4 +199,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/function/moodboardKinesisReader/amplify.state b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/function/moodboardKinesisReader/amplify.state index 045e649ff86..f4f664b5257 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/function/moodboardKinesisReader/amplify.state +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/function/moodboardKinesisReader/amplify.state @@ -6,4 +6,4 @@ "scripts": { "build": "npm install --no-bin-links --production" } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/function/moodboardKinesisReader/custom-policies.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/function/moodboardKinesisReader/custom-policies.json index 528c94f2f26..1f21c530082 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/function/moodboardKinesisReader/custom-policies.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/function/moodboardKinesisReader/custom-policies.json @@ -3,4 +3,4 @@ "Action": [], "Resource": [] } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/function/moodboardKinesisReader/function-parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/function/moodboardKinesisReader/function-parameters.json index 04422a5df93..5c1160a3d43 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/function/moodboardKinesisReader/function-parameters.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/function/moodboardKinesisReader/function-parameters.json @@ -7,4 +7,4 @@ } }, "lambdaLayers": [] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/function/moodboardKinesisReader/moodboardKinesisReader-cloudformation-template.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/function/moodboardKinesisReader/moodboardKinesisReader-cloudformation-template.json index c943b9df770..b6744df2dd3 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/function/moodboardKinesisReader/moodboardKinesisReader-cloudformation-template.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/function/moodboardKinesisReader/moodboardKinesisReader-cloudformation-template.json @@ -245,4 +245,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/function/moodboardKinesisReader/parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/function/moodboardKinesisReader/parameters.json index 9e26dfeeb6e..0967ef424bc 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/function/moodboardKinesisReader/parameters.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/function/moodboardKinesisReader/parameters.json @@ -1 +1 @@ -{} \ No newline at end of file +{} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/moodboardStorage/build/cloudformation-template.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/moodboardStorage/build/cloudformation-template.json index 6e2bc99e890..d9b5969f570 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/moodboardStorage/build/cloudformation-template.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/moodboardStorage/build/cloudformation-template.json @@ -634,4 +634,4 @@ "Condition": "GuestReadAndList" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/moodboardStorage/build/parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/moodboardStorage/build/parameters.json index 456a730ea95..302a66a11ee 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/moodboardStorage/build/parameters.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/moodboardStorage/build/parameters.json @@ -31,4 +31,4 @@ "s3PermissionsAuthenticatedUploads": "s3:PutObject", "s3PermissionsGuestPublic": "s3:GetObject", "s3PermissionsGuestUploads": "DISALLOW" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/moodboardStorage/cli-inputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/moodboardStorage/cli-inputs.json index 6d948b1e2ea..1e1c5b69cc2 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/moodboardStorage/cli-inputs.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/moodboardStorage/cli-inputs.json @@ -13,4 +13,4 @@ ], "triggerFunction": "NONE", "groupAccess": {} -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/tags.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/tags.json index b9321d71b83..71f6abe11a6 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/tags.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/#current-cloud-backend/tags.json @@ -7,4 +7,4 @@ "Key": "user:Application", "Value": "{project-name}" } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/.config/project-config.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/.config/project-config.json index 8514565606c..bd4d3ca7c68 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/.config/project-config.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/.config/project-config.json @@ -8,11 +8,11 @@ "config": { "SourceDir": "src", "DistributionDir": "dist", - "BuildCommand": "npm run-script build", + "BuildCommand": "npm run build", "StartCommand": "npm run-script start" } }, "providers": [ "awscloudformation" ] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/amplify-meta.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/amplify-meta.json index 39fb13659d8..c69692d662b 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/amplify-meta.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/amplify-meta.json @@ -1,14 +1,14 @@ { "providers": { "awscloudformation": { - "AuthRoleName": "amplify-moodboard-main-1959a-authRole", - "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-moodboard-main-1959a-unauthRole", - "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-moodboard-main-1959a-authRole", + "AuthRoleName": "amplify-moodboard-x-x-authRole", + "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-moodboard-x-x-unauthRole", + "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-moodboard-x-x-authRole", "Region": "us-east-1", - "DeploymentBucketName": "amplify-moodboard-main-1959a-deployment", - "UnauthRoleName": "amplify-moodboard-main-1959a-unauthRole", - "StackName": "amplify-moodboard-main-1959a", - "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-moodboard-main-1959a/f2787a30-1b0e-11f1-a58a-0afff81a6d49", + "DeploymentBucketName": "amplify-moodboard-x-x-deployment", + "UnauthRoleName": "amplify-moodboard-x-x-unauthRole", + "StackName": "amplify-moodboard-x-x", + "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-moodboard-x-x/61829dd0-3882-11f1-b5b8-0afffe97e059", "AmplifyAppId": "moodboard" } }, @@ -39,17 +39,17 @@ ] }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-main-1959a-deployment/amplify-cfn-templates/auth/moodboard759ae00a-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-x-x-deployment/amplify-cfn-templates/auth/moodboard759ae00a-cloudformation-template.json", "logicalId": "authmoodboard759ae00a" }, - "lastPushTimeStamp": "2026-03-08T17:07:28.971Z", + "lastPushTimeStamp": "2026-04-15T04:25:58.157Z", "output": { - "UserPoolId": "us-east-1_Cwvqs93Nc", - "AppClientIDWeb": "5t2df7ru217mr5ar6r44r61uqg", - "AppClientID": "1ssdipb0d8rfa77rq3o7u8t16c", - "IdentityPoolId": "us-east-1:a39e734d-ac34-43c7-8303-67512f010f0d", - "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_Cwvqs93Nc", - "IdentityPoolName": "moodboard759ae00a_identitypool_759ae00a__main", + "UserPoolId": "us-east-1_wDScdYiSe", + "AppClientIDWeb": "34sh75m6c73hj9t6cs8a3pf2sq", + "AppClientID": "5it3jnls1mnjbe8a9sit31e6ep", + "IdentityPoolId": "us-east-1:b4ae1cf8-c548-4712-a947-1738d119032f", + "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_wDScdYiSe", + "IdentityPoolName": "moodboard759ae00a_identitypool_759ae00a__x", "UserPoolName": "moodboard759ae00a_userpool_759ae00a" }, "lastPushDirHash": "YoAgoR9zujggRkSUxqGO4UbI+Og=" @@ -87,16 +87,16 @@ } ] }, - "GraphQLAPIIdOutput": "vsozkn3hbzdjppzyf7xtf2f4sy", - "GraphQLAPIEndpointOutput": "https://5wsaacr225fc7hv4ajdtxbwo24.appsync-api.us-east-1.amazonaws.com/graphql", + "GraphQLAPIIdOutput": "pd6mhagtyveltorgdvv7movvqq", + "GraphQLAPIEndpointOutput": "https://3hbeijkqlfendc2wyilh3flfly.appsync-api.us-east-1.amazonaws.com/graphql", "GraphQLAPIKeyOutput": "da2-fakeapikey00000000000000" }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-main-1959a-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", "logicalId": "apimoodboard" }, - "lastPushTimeStamp": "2026-03-08T17:07:28.971Z", - "lastPushDirHash": "07Bf1pNmdiuhcjXBjarxHNDWsHk=" + "lastPushTimeStamp": "2026-04-15T04:25:58.157Z", + "lastPushDirHash": "uvvuFYwSTSEzjrB1wH7Z+WF1syU=" } }, "storage": { @@ -104,13 +104,13 @@ "service": "S3", "providerPlugin": "awscloudformation", "dependsOn": [], - "lastPushTimeStamp": "2026-03-08T17:07:28.971Z", + "lastPushTimeStamp": "2026-04-15T04:25:58.157Z", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-main-1959a-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-x-x-deployment/amplify-cfn-templates/storage/cloudformation-template.json", "logicalId": "storagemoodboardStorage" }, "output": { - "BucketName": "moodboard20e29595008142e3ad16f01c4066e1c41959a-main", + "BucketName": "moodboard20e29595008142e3ad16f01c4066e1c4x-x", "Region": "us-east-1" }, "lastPushDirHash": "z3bRVMUaOPcCXFeBaOqmzI2Vp0M=" @@ -121,25 +121,25 @@ "build": true, "providerPlugin": "awscloudformation", "service": "Lambda", - "lastBuildTimeStamp": "2026-03-08T17:02:45.697Z", + "lastBuildTimeStamp": "2026-04-15T04:21:12.210Z", "lastBuildType": "PROD", - "lastPackageTimeStamp": "2026-03-08T17:02:45.757Z", + "lastPackageTimeStamp": "2026-04-15T04:21:12.263Z", "distZipFilename": "moodboardGetRandomEmoji-59616d4f4b546a305a75-build.zip", "s3Bucket": { - "deploymentBucketName": "amplify-moodboard-main-1959a-deployment", + "deploymentBucketName": "amplify-moodboard-x-x-deployment", "s3Key": "amplify-builds/moodboardGetRandomEmoji-59616d4f4b546a305a75-build.zip" }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-main-1959a-deployment/amplify-cfn-templates/function/moodboardGetRandomEmoji-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-x-x-deployment/amplify-cfn-templates/function/moodboardGetRandomEmoji-cloudformation-template.json", "logicalId": "functionmoodboardGetRandomEmoji" }, - "lastPushTimeStamp": "2026-03-08T17:07:28.971Z", + "lastPushTimeStamp": "2026-04-15T04:25:58.157Z", "output": { - "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/moodboardLambdaRolef849b419-main", + "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/moodboardLambdaRolef849b419-x", "Region": "us-east-1", - "Arn": "arn:aws:lambda:us-east-1:123456789012:function:moodboardGetRandomEmoji-main", - "Name": "moodboardGetRandomEmoji-main", - "LambdaExecutionRole": "moodboardLambdaRolef849b419-main" + "Arn": "arn:aws:lambda:us-east-1:123456789012:function:moodboardGetRandomEmoji-x", + "Name": "moodboardGetRandomEmoji-x", + "LambdaExecutionRole": "moodboardLambdaRolef849b419-x" }, "lastPushDirHash": "K/RndAAIl0V/ON0s1svTQIR0HvE=" }, @@ -156,25 +156,25 @@ ] } ], - "lastBuildTimeStamp": "2026-03-08T17:02:46.606Z", + "lastBuildTimeStamp": "2026-04-15T04:21:12.955Z", "lastBuildType": "PROD", - "lastPackageTimeStamp": "2026-03-08T17:02:46.652Z", + "lastPackageTimeStamp": "2026-04-15T04:21:12.966Z", "distZipFilename": "moodboardKinesisReader-4934782b72546e51707a-build.zip", "s3Bucket": { - "deploymentBucketName": "amplify-moodboard-main-1959a-deployment", + "deploymentBucketName": "amplify-moodboard-x-x-deployment", "s3Key": "amplify-builds/moodboardKinesisReader-4934782b72546e51707a-build.zip" }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-main-1959a-deployment/amplify-cfn-templates/function/moodboardKinesisReader-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-x-x-deployment/amplify-cfn-templates/function/moodboardKinesisReader-cloudformation-template.json", "logicalId": "functionmoodboardKinesisReader" }, - "lastPushTimeStamp": "2026-03-08T17:07:28.971Z", + "lastPushTimeStamp": "2026-04-15T04:25:58.157Z", "output": { - "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/moodboardLambdaRole1f55eecd-main", + "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/moodboardLambdaRole1f55eecd-x", "Region": "us-east-1", - "Arn": "arn:aws:lambda:us-east-1:123456789012:function:moodboardKinesisReader-main", - "Name": "moodboardKinesisReader-main", - "LambdaExecutionRole": "moodboardLambdaRole1f55eecd-main" + "Arn": "arn:aws:lambda:us-east-1:123456789012:function:moodboardKinesisReader-x", + "Name": "moodboardKinesisReader-x", + "LambdaExecutionRole": "moodboardLambdaRole1f55eecd-x" }, "lastPushDirHash": "Hm1fZAAyF9uAjfeygeDAxRhFnjI=" } @@ -184,16 +184,16 @@ "service": "Kinesis", "providerPlugin": "awscloudformation", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-main-1959a-deployment/amplify-cfn-templates/analytics/kinesis-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-x-x-deployment/amplify-cfn-templates/analytics/kinesis-cloudformation-template.json", "logicalId": "analyticsmoodboardKinesis" }, - "lastPushTimeStamp": "2026-03-08T17:07:29.513Z", + "lastPushTimeStamp": "2026-04-15T04:25:58.547Z", "output": { - "kinesisStreamId": "moodboardKinesis-main", + "kinesisStreamId": "moodboardKinesis-x", "kinesisStreamShardCount": "1", - "kinesisStreamArn": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-main" + "kinesisStreamArn": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-x" }, "lastPushDirHash": "IxnZjkEVCO8rMzaALT+khby+HWU=" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/analytics/moodboardKinesis/kinesis-cloudformation-template.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/analytics/moodboardKinesis/kinesis-cloudformation-template.json index f9f3849033d..393d162e440 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/analytics/moodboardKinesis/kinesis-cloudformation-template.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/analytics/moodboardKinesis/kinesis-cloudformation-template.json @@ -140,4 +140,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/analytics/moodboardKinesis/parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/analytics/moodboardKinesis/parameters.json index d38e2d1cf66..689c9a0b1c9 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/analytics/moodboardKinesis/parameters.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/analytics/moodboardKinesis/parameters.json @@ -9,4 +9,4 @@ }, "authPolicyName": "kinesis_amplify_bca5ce95", "unauthPolicyName": "kinesis_amplify_bca5ce95" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/cloudformation-template.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/cloudformation-template.json index 0087561898c..33c264e6ff6 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/cloudformation-template.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/cloudformation-template.json @@ -128,7 +128,7 @@ ] }, "Description": "moodBoard API Key", - "Expires": 1804525367 + "Expires": 1807762873 } }, "GraphQLAPINONEDS95A13CF0": { @@ -572,4 +572,4 @@ } }, "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/parameters.json index 0d43aae9f42..9876aebbcd0 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/parameters.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/parameters.json @@ -8,6 +8,6 @@ "Outputs.UserPoolId" ] }, - "S3DeploymentBucket": "amplify-moodboard-main-1959a-deployment", - "S3DeploymentRootKey": "amplify-appsync-files/f7ab9fca95eecad3a59047fb5fd92dfef9d55ad4" -} \ No newline at end of file + "S3DeploymentBucket": "amplify-moodboard-x-x-deployment", + "S3DeploymentRootKey": "amplify-appsync-files/5c491eab2bbf740cbba1e26a8e9053c2c881af96" +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Board.moodItems.auth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Board.moodItems.auth.1.req.vtl index 05dc2fa2cff..6ce1b66f87b 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Board.moodItems.auth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Board.moodItems.auth.1.req.vtl @@ -11,4 +11,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Board.moodItems.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Board.moodItems.req.vtl index 9fbfc7e79ce..6c50b715b8b 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Board.moodItems.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Board.moodItems.req.vtl @@ -69,4 +69,4 @@ null #end, "index": "byBoard" } -#end \ No newline at end of file +#end diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Board.moodItems.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Board.moodItems.res.vtl index 922c4ce53d0..ae420dbf03f 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Board.moodItems.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Board.moodItems.res.vtl @@ -10,4 +10,4 @@ $util.error($ctx.error.message, $ctx.error.type) #end #end $util.toJson($result) -#end \ No newline at end of file +#end diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/InvokeMoodboardGetRandomEmojiLambdaDataSource.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/InvokeMoodboardGetRandomEmojiLambdaDataSource.req.vtl index cfe52e3f460..ddbca1d21b6 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/InvokeMoodboardGetRandomEmojiLambdaDataSource.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/InvokeMoodboardGetRandomEmojiLambdaDataSource.req.vtl @@ -12,4 +12,4 @@ "prev": $util.toJson($ctx.prev) } } -## [End] Invoke AWS Lambda data source: MoodboardGetRandomEmojiLambdaDataSource. ** \ No newline at end of file +## [End] Invoke AWS Lambda data source: MoodboardGetRandomEmojiLambdaDataSource. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/InvokeMoodboardGetRandomEmojiLambdaDataSource.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/InvokeMoodboardGetRandomEmojiLambdaDataSource.res.vtl index e6b83d8b6ab..1316903313e 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/InvokeMoodboardGetRandomEmojiLambdaDataSource.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/InvokeMoodboardGetRandomEmojiLambdaDataSource.res.vtl @@ -3,4 +3,4 @@ $util.error($ctx.error.message, $ctx.error.type) #end $util.toJson($ctx.result) -## [End] Handle error or return result. ** \ No newline at end of file +## [End] Handle error or return result. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/InvokeMoodboardKinesisreaderLambdaDataSource.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/InvokeMoodboardKinesisreaderLambdaDataSource.req.vtl index c8ee4a9cd0b..fdde487ebbd 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/InvokeMoodboardKinesisreaderLambdaDataSource.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/InvokeMoodboardKinesisreaderLambdaDataSource.req.vtl @@ -1,4 +1,4 @@ -## [Start] Invoke AWS Lambda data source: MoodboardKinesisreaderLambdaDataSource. ** +## [Start] Invoke AWS Lambda data source: MoodboardKinesisReaderLambdaDataSource. ** { "version": "2018-05-29", "operation": "Invoke", @@ -12,4 +12,4 @@ "prev": $util.toJson($ctx.prev) } } -## [End] Invoke AWS Lambda data source: MoodboardKinesisreaderLambdaDataSource. ** \ No newline at end of file +## [End] Invoke AWS Lambda data source: MoodboardKinesisReaderLambdaDataSource. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/InvokeMoodboardKinesisreaderLambdaDataSource.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/InvokeMoodboardKinesisreaderLambdaDataSource.res.vtl index e6b83d8b6ab..1316903313e 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/InvokeMoodboardKinesisreaderLambdaDataSource.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/InvokeMoodboardKinesisreaderLambdaDataSource.res.vtl @@ -3,4 +3,4 @@ $util.error($ctx.error.message, $ctx.error.type) #end $util.toJson($ctx.result) -## [End] Handle error or return result. ** \ No newline at end of file +## [End] Handle error or return result. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/MoodItem.board.auth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/MoodItem.board.auth.1.req.vtl index 05dc2fa2cff..6ce1b66f87b 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/MoodItem.board.auth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/MoodItem.board.auth.1.req.vtl @@ -11,4 +11,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/MoodItem.board.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/MoodItem.board.req.vtl index e240a74fb1b..f2952c1751f 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/MoodItem.board.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/MoodItem.board.req.vtl @@ -22,4 +22,4 @@ $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) #end $util.toJson($GetRequest) -#end \ No newline at end of file +#end diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/MoodItem.board.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/MoodItem.board.res.vtl index 92c535c73df..61b51759e34 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/MoodItem.board.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/MoodItem.board.res.vtl @@ -14,4 +14,4 @@ $util.unauthorized() #end $util.toJson(null) #end -#end \ No newline at end of file +#end diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.createBoard.auth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.createBoard.auth.1.req.vtl index 08cba3f3ade..3f8533b77b8 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.createBoard.auth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.createBoard.auth.1.req.vtl @@ -19,4 +19,4 @@ $util.unauthorized() #end #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.createBoard.init.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.createBoard.init.1.req.vtl index df6b4cbbc5c..407b5845fc2 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.createBoard.init.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.createBoard.init.1.req.vtl @@ -8,4 +8,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.createBoard.postAuth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.createBoard.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.createBoard.postAuth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.createBoard.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.createBoard.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.createBoard.req.vtl index d198fb18d63..5c8c5ce45c7 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.createBoard.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.createBoard.req.vtl @@ -63,4 +63,4 @@ $util.qr($mergedValues.put("__typename", "Board")) $util.qr($PutObject.put("key", $Key)) #end $util.toJson($PutObject) -## [End] Create Request template. ** \ No newline at end of file +## [End] Create Request template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.createBoard.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.createBoard.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.createBoard.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.createBoard.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.createMoodItem.auth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.createMoodItem.auth.1.req.vtl index 08cba3f3ade..3f8533b77b8 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.createMoodItem.auth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.createMoodItem.auth.1.req.vtl @@ -19,4 +19,4 @@ $util.unauthorized() #end #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.createMoodItem.init.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.createMoodItem.init.1.req.vtl index df6b4cbbc5c..407b5845fc2 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.createMoodItem.init.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.createMoodItem.init.1.req.vtl @@ -8,4 +8,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.createMoodItem.postAuth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.createMoodItem.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.createMoodItem.postAuth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.createMoodItem.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.createMoodItem.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.createMoodItem.req.vtl index d5edadc75db..3dc84ab80e1 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.createMoodItem.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.createMoodItem.req.vtl @@ -71,4 +71,4 @@ $util.qr($mergedValues.put("__typename", "MoodItem")) $util.qr($PutObject.put("key", $Key)) #end $util.toJson($PutObject) -## [End] Create Request template. ** \ No newline at end of file +## [End] Create Request template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.createMoodItem.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.createMoodItem.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.createMoodItem.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.createMoodItem.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.deleteBoard.auth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.deleteBoard.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.deleteBoard.auth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.deleteBoard.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.deleteBoard.auth.1.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.deleteBoard.auth.1.res.vtl index 4303a893cb1..b8c75f73235 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.deleteBoard.auth.1.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.deleteBoard.auth.1.res.vtl @@ -11,4 +11,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.deleteBoard.postAuth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.deleteBoard.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.deleteBoard.postAuth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.deleteBoard.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.deleteBoard.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.deleteBoard.req.vtl index ace459bd501..d2cb40cd15d 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.deleteBoard.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.deleteBoard.req.vtl @@ -55,4 +55,4 @@ $util.qr($DeleteRequest.put("key", $Key)) $util.qr($DeleteRequest.put("condition", $Conditions)) #end $util.toJson($DeleteRequest) -## [End] Delete Request template. ** \ No newline at end of file +## [End] Delete Request template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.deleteBoard.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.deleteBoard.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.deleteBoard.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.deleteBoard.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.deleteMoodItem.auth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.deleteMoodItem.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.deleteMoodItem.auth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.deleteMoodItem.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.deleteMoodItem.auth.1.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.deleteMoodItem.auth.1.res.vtl index 4303a893cb1..b8c75f73235 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.deleteMoodItem.auth.1.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.deleteMoodItem.auth.1.res.vtl @@ -11,4 +11,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.deleteMoodItem.postAuth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.deleteMoodItem.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.deleteMoodItem.postAuth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.deleteMoodItem.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.deleteMoodItem.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.deleteMoodItem.req.vtl index ace459bd501..d2cb40cd15d 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.deleteMoodItem.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.deleteMoodItem.req.vtl @@ -55,4 +55,4 @@ $util.qr($DeleteRequest.put("key", $Key)) $util.qr($DeleteRequest.put("condition", $Conditions)) #end $util.toJson($DeleteRequest) -## [End] Delete Request template. ** \ No newline at end of file +## [End] Delete Request template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.deleteMoodItem.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.deleteMoodItem.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.deleteMoodItem.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.deleteMoodItem.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateBoard.auth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateBoard.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateBoard.auth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateBoard.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateBoard.auth.1.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateBoard.auth.1.res.vtl index 4f05c2725c3..48e15145909 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateBoard.auth.1.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateBoard.auth.1.res.vtl @@ -31,4 +31,4 @@ $util.unauthorized() $util.error("Unauthorized on ${deniedFields.keySet()}", "Unauthorized") #end $util.toJson({}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateBoard.init.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateBoard.init.1.req.vtl index ab5766fb051..dde2512aea8 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateBoard.init.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateBoard.init.1.req.vtl @@ -6,4 +6,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateBoard.postAuth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateBoard.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateBoard.postAuth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateBoard.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateBoard.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateBoard.req.vtl index a1bd67d21b6..648b67d7c57 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateBoard.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateBoard.req.vtl @@ -127,4 +127,4 @@ $util.qr($update.put("expression", "$expression")) $util.qr($UpdateItem.put("condition", $Conditions)) #end $util.toJson($UpdateItem) -## [End] Mutation Update resolver. ** \ No newline at end of file +## [End] Mutation Update resolver. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateBoard.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateBoard.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateBoard.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateBoard.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.auth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.auth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.auth.1.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.auth.1.res.vtl index 4f05c2725c3..48e15145909 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.auth.1.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.auth.1.res.vtl @@ -31,4 +31,4 @@ $util.unauthorized() $util.error("Unauthorized on ${deniedFields.keySet()}", "Unauthorized") #end $util.toJson({}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.init.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.init.1.req.vtl index ab5766fb051..dde2512aea8 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.init.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.init.1.req.vtl @@ -6,4 +6,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.postAuth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.postAuth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.req.vtl index a1bd67d21b6..648b67d7c57 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.req.vtl @@ -127,4 +127,4 @@ $util.qr($update.put("expression", "$expression")) $util.qr($UpdateItem.put("condition", $Conditions)) #end $util.toJson($UpdateItem) -## [End] Mutation Update resolver. ** \ No newline at end of file +## [End] Mutation Update resolver. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Mutation.updateMoodItem.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getBoard.auth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getBoard.auth.1.req.vtl index 6ea758ede95..5e8328df3a4 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getBoard.auth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getBoard.auth.1.req.vtl @@ -12,4 +12,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getBoard.postAuth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getBoard.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getBoard.postAuth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getBoard.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getBoard.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getBoard.req.vtl index a8d7811a021..fd7fbfc8013 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getBoard.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getBoard.req.vtl @@ -31,4 +31,4 @@ $util.qr($GetRequest.put("query", $query)) $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) #end $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getBoard.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getBoard.res.vtl index e9ef1436bdd..92e05f99816 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getBoard.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getBoard.res.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson(null) #end -## [End] Get Response template. ** \ No newline at end of file +## [End] Get Response template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getKinesisEvents.auth.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getKinesisEvents.auth.req.vtl index a0726845157..4b43d313f59 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getKinesisEvents.auth.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getKinesisEvents.auth.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getKinesisEvents.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getKinesisEvents.res.vtl index 634741579ce..c37b82e4a30 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getKinesisEvents.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getKinesisEvents.res.vtl @@ -1 +1 @@ -$util.toJson($ctx.prev.result) \ No newline at end of file +$util.toJson($ctx.prev.result) diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getMoodItem.auth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getMoodItem.auth.1.req.vtl index 6ea758ede95..5e8328df3a4 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getMoodItem.auth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getMoodItem.auth.1.req.vtl @@ -12,4 +12,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getMoodItem.postAuth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getMoodItem.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getMoodItem.postAuth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getMoodItem.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getMoodItem.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getMoodItem.req.vtl index a8d7811a021..fd7fbfc8013 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getMoodItem.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getMoodItem.req.vtl @@ -31,4 +31,4 @@ $util.qr($GetRequest.put("query", $query)) $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) #end $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getMoodItem.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getMoodItem.res.vtl index e9ef1436bdd..92e05f99816 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getMoodItem.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getMoodItem.res.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson(null) #end -## [End] Get Response template. ** \ No newline at end of file +## [End] Get Response template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getRandomEmoji.auth.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getRandomEmoji.auth.req.vtl index a0726845157..4b43d313f59 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getRandomEmoji.auth.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getRandomEmoji.auth.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getRandomEmoji.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getRandomEmoji.res.vtl index 634741579ce..c37b82e4a30 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getRandomEmoji.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.getRandomEmoji.res.vtl @@ -1 +1 @@ -$util.toJson($ctx.prev.result) \ No newline at end of file +$util.toJson($ctx.prev.result) diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.listBoards.auth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.listBoards.auth.1.req.vtl index 6ea758ede95..5e8328df3a4 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.listBoards.auth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.listBoards.auth.1.req.vtl @@ -12,4 +12,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.listBoards.postAuth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.listBoards.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.listBoards.postAuth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.listBoards.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.listBoards.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.listBoards.req.vtl index 014213710e8..ef976126825 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.listBoards.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.listBoards.req.vtl @@ -47,4 +47,4 @@ #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) #end $util.toJson($ListRequest) -## [End] List Request. ** \ No newline at end of file +## [End] List Request. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.listBoards.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.listBoards.res.vtl index ee8b6670cbc..aab9983954e 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.listBoards.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.listBoards.res.vtl @@ -4,4 +4,4 @@ #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.listMoodItems.auth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.listMoodItems.auth.1.req.vtl index 6ea758ede95..5e8328df3a4 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.listMoodItems.auth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.listMoodItems.auth.1.req.vtl @@ -12,4 +12,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.listMoodItems.postAuth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.listMoodItems.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.listMoodItems.postAuth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.listMoodItems.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.listMoodItems.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.listMoodItems.req.vtl index 014213710e8..ef976126825 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.listMoodItems.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.listMoodItems.req.vtl @@ -47,4 +47,4 @@ #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) #end $util.toJson($ListRequest) -## [End] List Request. ** \ No newline at end of file +## [End] List Request. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.listMoodItems.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.listMoodItems.res.vtl index ee8b6670cbc..aab9983954e 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.listMoodItems.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.listMoodItems.res.vtl @@ -4,4 +4,4 @@ #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.moodItemsByBoardID.auth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.moodItemsByBoardID.auth.1.req.vtl index 6ea758ede95..5e8328df3a4 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.moodItemsByBoardID.auth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.moodItemsByBoardID.auth.1.req.vtl @@ -12,4 +12,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.moodItemsByBoardID.postAuth.1.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.moodItemsByBoardID.postAuth.1.res.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.moodItemsByBoardID.postAuth.1.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.moodItemsByBoardID.postAuth.1.res.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.moodItemsByBoardID.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.moodItemsByBoardID.req.vtl index f467a547bac..b2d938cfa01 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.moodItemsByBoardID.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.moodItemsByBoardID.req.vtl @@ -54,4 +54,4 @@ #set( $QueryRequest.filter = $filterExpression ) #end #end -$util.toJson($QueryRequest) \ No newline at end of file +$util.toJson($QueryRequest) diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.moodItemsByBoardID.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.moodItemsByBoardID.res.vtl index b0dd3df90d6..0355e700092 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.moodItemsByBoardID.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Query.moodItemsByBoardID.res.vtl @@ -1,4 +1,4 @@ #if( $ctx.error ) $util.error($ctx.error.message, $ctx.error.type) #end -$util.toJson($ctx.result) \ No newline at end of file +$util.toJson($ctx.result) diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onCreateBoard.auth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onCreateBoard.auth.1.req.vtl index dbc01a41cf3..0ff5d9f7ef1 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onCreateBoard.auth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onCreateBoard.auth.1.req.vtl @@ -35,4 +35,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onCreateBoard.postAuth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onCreateBoard.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onCreateBoard.postAuth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onCreateBoard.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onCreateBoard.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onCreateBoard.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onCreateBoard.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onCreateBoard.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onCreateBoard.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onCreateBoard.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onCreateBoard.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onCreateBoard.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onCreateMoodItem.auth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onCreateMoodItem.auth.1.req.vtl index dbc01a41cf3..0ff5d9f7ef1 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onCreateMoodItem.auth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onCreateMoodItem.auth.1.req.vtl @@ -35,4 +35,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onCreateMoodItem.postAuth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onCreateMoodItem.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onCreateMoodItem.postAuth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onCreateMoodItem.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onCreateMoodItem.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onCreateMoodItem.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onCreateMoodItem.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onCreateMoodItem.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onCreateMoodItem.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onCreateMoodItem.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onCreateMoodItem.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onCreateMoodItem.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onDeleteBoard.auth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onDeleteBoard.auth.1.req.vtl index dbc01a41cf3..0ff5d9f7ef1 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onDeleteBoard.auth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onDeleteBoard.auth.1.req.vtl @@ -35,4 +35,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onDeleteBoard.postAuth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onDeleteBoard.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onDeleteBoard.postAuth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onDeleteBoard.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onDeleteBoard.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onDeleteBoard.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onDeleteBoard.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onDeleteBoard.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onDeleteBoard.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onDeleteBoard.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onDeleteBoard.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onDeleteBoard.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onDeleteMoodItem.auth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onDeleteMoodItem.auth.1.req.vtl index dbc01a41cf3..0ff5d9f7ef1 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onDeleteMoodItem.auth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onDeleteMoodItem.auth.1.req.vtl @@ -35,4 +35,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onDeleteMoodItem.postAuth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onDeleteMoodItem.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onDeleteMoodItem.postAuth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onDeleteMoodItem.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onDeleteMoodItem.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onDeleteMoodItem.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onDeleteMoodItem.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onDeleteMoodItem.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onDeleteMoodItem.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onDeleteMoodItem.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onDeleteMoodItem.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onDeleteMoodItem.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onUpdateBoard.auth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onUpdateBoard.auth.1.req.vtl index dbc01a41cf3..0ff5d9f7ef1 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onUpdateBoard.auth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onUpdateBoard.auth.1.req.vtl @@ -35,4 +35,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onUpdateBoard.postAuth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onUpdateBoard.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onUpdateBoard.postAuth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onUpdateBoard.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onUpdateBoard.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onUpdateBoard.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onUpdateBoard.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onUpdateBoard.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onUpdateBoard.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onUpdateBoard.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onUpdateBoard.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onUpdateBoard.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onUpdateMoodItem.auth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onUpdateMoodItem.auth.1.req.vtl index dbc01a41cf3..0ff5d9f7ef1 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onUpdateMoodItem.auth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onUpdateMoodItem.auth.1.req.vtl @@ -35,4 +35,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onUpdateMoodItem.postAuth.1.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onUpdateMoodItem.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onUpdateMoodItem.postAuth.1.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onUpdateMoodItem.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onUpdateMoodItem.req.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onUpdateMoodItem.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onUpdateMoodItem.req.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onUpdateMoodItem.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onUpdateMoodItem.res.vtl b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onUpdateMoodItem.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onUpdateMoodItem.res.vtl +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/resolvers/Subscription.onUpdateMoodItem.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/stacks/Board.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/stacks/Board.json index 95a07728ca7..4996ea8e7b5 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/stacks/Board.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/stacks/Board.json @@ -455,7 +455,7 @@ { "Ref": "BoardTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -550,7 +550,7 @@ { "Ref": "BoardTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -648,7 +648,7 @@ { "Ref": "BoardTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -800,7 +800,7 @@ { "Ref": "BoardTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -949,7 +949,7 @@ { "Ref": "BoardTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -986,7 +986,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1023,7 +1023,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1060,7 +1060,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1147,4 +1147,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/stacks/ConnectionStack.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/stacks/ConnectionStack.json index 11263f18fc9..f37fa1fff70 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/stacks/ConnectionStack.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/stacks/ConnectionStack.json @@ -111,7 +111,7 @@ { "Ref": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemMoodItemTable5135EED9Ref" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -200,7 +200,7 @@ { "Ref": "referencetotransformerrootstackBoardNestedStackBoardNestedStackResource9E449E87OutputstransformerrootstackBoardBoardTable30788E07Ref" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -235,4 +235,4 @@ "Type": "String" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/stacks/CustomResources.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/stacks/CustomResources.json index 016991278d0..5fe357d6096 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/stacks/CustomResources.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/stacks/CustomResources.json @@ -58,4 +58,4 @@ "Value": "" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/stacks/FunctionDirectiveStack.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/stacks/FunctionDirectiveStack.json index c984a8bbed7..6e717da2ea7 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/stacks/FunctionDirectiveStack.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/stacks/FunctionDirectiveStack.json @@ -230,7 +230,7 @@ "TypeName": "Query" } }, - "MoodboardKinesisreaderLambdaDataSourceServiceRole9D507FAC": { + "MoodboardKinesisReaderLambdaDataSourceServiceRole0DD9733A": { "Type": "AWS::IAM::Role", "Properties": { "AssumeRolePolicyDocument": { @@ -247,7 +247,7 @@ } } }, - "MoodboardKinesisreaderLambdaDataSourceServiceRoleDefaultPolicyD5B4AEB5": { + "MoodboardKinesisReaderLambdaDataSourceServiceRoleDefaultPolicy83734E31": { "Type": "AWS::IAM::Policy", "Properties": { "PolicyDocument": { @@ -305,15 +305,15 @@ ], "Version": "2012-10-17" }, - "PolicyName": "MoodboardKinesisreaderLambdaDataSourceServiceRoleDefaultPolicyD5B4AEB5", + "PolicyName": "MoodboardKinesisReaderLambdaDataSourceServiceRoleDefaultPolicy83734E31", "Roles": [ { - "Ref": "MoodboardKinesisreaderLambdaDataSourceServiceRole9D507FAC" + "Ref": "MoodboardKinesisReaderLambdaDataSourceServiceRole0DD9733A" } ] } }, - "MoodboardKinesisreaderLambdaDataSource": { + "MoodboardKinesisReaderLambdaDataSource": { "Type": "AWS::AppSync::DataSource", "Properties": { "ApiId": { @@ -339,17 +339,17 @@ ] } }, - "Name": "MoodboardKinesisreaderLambdaDataSource", + "Name": "MoodboardKinesisReaderLambdaDataSource", "ServiceRoleArn": { "Fn::GetAtt": [ - "MoodboardKinesisreaderLambdaDataSourceServiceRole9D507FAC", + "MoodboardKinesisReaderLambdaDataSourceServiceRole0DD9733A", "Arn" ] }, "Type": "AWS_LAMBDA" } }, - "InvokeMoodboardKinesisreaderLambdaDataSourceInvokeMoodboardKinesisreaderLambdaDataSourceAppSyncFunction48095023": { + "InvokeMoodboardKinesisReaderLambdaDataSourceInvokeMoodboardKinesisReaderLambdaDataSourceAppSyncFunctionDD5E9972": { "Type": "AWS::AppSync::FunctionConfiguration", "Properties": { "ApiId": { @@ -357,12 +357,12 @@ }, "DataSourceName": { "Fn::GetAtt": [ - "MoodboardKinesisreaderLambdaDataSource", + "MoodboardKinesisReaderLambdaDataSource", "Name" ] }, "FunctionVersion": "2018-05-29", - "Name": "InvokeMoodboardKinesisreaderLambdaDataSource", + "Name": "InvokeMoodboardKinesisReaderLambdaDataSource", "RequestMappingTemplateS3Location": { "Fn::Join": [ "", @@ -375,7 +375,7 @@ { "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" }, - "/resolvers/InvokeMoodboardKinesisreaderLambdaDataSource.req.vtl" + "/resolvers/InvokeMoodboardKinesisReaderLambdaDataSource.req.vtl" ] ] }, @@ -391,13 +391,13 @@ { "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" }, - "/resolvers/InvokeMoodboardKinesisreaderLambdaDataSource.res.vtl" + "/resolvers/InvokeMoodboardKinesisReaderLambdaDataSource.res.vtl" ] ] } }, "DependsOn": [ - "MoodboardKinesisreaderLambdaDataSource" + "MoodboardKinesisReaderLambdaDataSource" ] }, "QuerygetKinesisEventsResolver": { @@ -418,7 +418,7 @@ }, { "Fn::GetAtt": [ - "InvokeMoodboardKinesisreaderLambdaDataSourceInvokeMoodboardKinesisreaderLambdaDataSourceAppSyncFunction48095023", + "InvokeMoodboardKinesisReaderLambdaDataSourceInvokeMoodboardKinesisReaderLambdaDataSourceAppSyncFunctionDD5E9972", "FunctionId" ] } diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/stacks/MoodItem.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/stacks/MoodItem.json index 15b01bd9049..fd3fa04c5a5 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/stacks/MoodItem.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/build/stacks/MoodItem.json @@ -548,7 +548,7 @@ { "Ref": "MoodItemTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -649,7 +649,7 @@ { "Ref": "MoodItemTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -816,7 +816,7 @@ { "Ref": "MoodItemTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1004,7 +1004,7 @@ { "Ref": "MoodItemTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1156,7 +1156,7 @@ { "Ref": "MoodItemTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1277,7 +1277,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1323,7 +1323,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1369,7 +1369,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1470,7 +1470,7 @@ { "Ref": "MoodItemTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1613,4 +1613,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/cli-inputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/cli-inputs.json index 8cfec237c77..f608e902942 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/cli-inputs.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/cli-inputs.json @@ -16,4 +16,4 @@ } ] } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/parameters.json index b175b3e8119..f5dda25b84f 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/parameters.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/parameters.json @@ -8,4 +8,4 @@ "Outputs.UserPoolId" ] } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/resolvers/README.md b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/resolvers/README.md index 89e564c5b31..1634d295144 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/resolvers/README.md +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/resolvers/README.md @@ -1,2 +1,2 @@ Any resolvers that you add in this directory will override the ones automatically generated by Amplify CLI and will be directly copied to the cloud. -For more information, visit [https://docs.amplify.aws/cli/graphql-transformer/resolvers](https://docs.amplify.aws/cli/graphql-transformer/resolvers) \ No newline at end of file +For more information, visit [https://docs.amplify.aws/cli/graphql-transformer/resolvers](https://docs.amplify.aws/cli/graphql-transformer/resolvers) diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/transform.conf.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/transform.conf.json index 98e1e19f038..d0421b1df09 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/transform.conf.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/api/moodboard/transform.conf.json @@ -1,4 +1,4 @@ { "Version": 5, "ElasticsearchWarning": true -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/auth/moodboard759ae00a/build/moodboard759ae00a-cloudformation-template.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/auth/moodboard759ae00a/build/moodboard759ae00a-cloudformation-template.json index 379d6603fdd..0a99c89800f 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/auth/moodboard759ae00a/build/moodboard759ae00a-cloudformation-template.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/auth/moodboard759ae00a/build/moodboard759ae00a-cloudformation-template.json @@ -410,4 +410,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/auth/moodboard759ae00a/build/parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/auth/moodboard759ae00a/build/parameters.json index e93fd25b5b5..6b786a93806 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/auth/moodboard759ae00a/build/parameters.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/auth/moodboard759ae00a/build/parameters.json @@ -56,4 +56,4 @@ }, "breakCircularDependency": true, "dependsOn": [] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/auth/moodboard759ae00a/cli-inputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/auth/moodboard759ae00a/cli-inputs.json index e5b20e5433e..eed066f9812 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/auth/moodboard759ae00a/cli-inputs.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/auth/moodboard759ae00a/cli-inputs.json @@ -59,4 +59,4 @@ "breakCircularDependency": true, "dependsOn": [] } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/awscloudformation/build/analytics/moodboardKinesis/kinesis-cloudformation-template.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/awscloudformation/build/analytics/moodboardKinesis/kinesis-cloudformation-template.json index f9f3849033d..393d162e440 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/awscloudformation/build/analytics/moodboardKinesis/kinesis-cloudformation-template.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/awscloudformation/build/analytics/moodboardKinesis/kinesis-cloudformation-template.json @@ -140,4 +140,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/moodboard/build/cloudformation-template.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/moodboard/build/cloudformation-template.json index 0087561898c..33c264e6ff6 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/moodboard/build/cloudformation-template.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/moodboard/build/cloudformation-template.json @@ -128,7 +128,7 @@ ] }, "Description": "moodBoard API Key", - "Expires": 1804525367 + "Expires": 1807762873 } }, "GraphQLAPINONEDS95A13CF0": { @@ -572,4 +572,4 @@ } }, "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/moodboard759ae00a/build/moodboard759ae00a-cloudformation-template.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/moodboard759ae00a/build/moodboard759ae00a-cloudformation-template.json index 379d6603fdd..0a99c89800f 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/moodboard759ae00a/build/moodboard759ae00a-cloudformation-template.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/moodboard759ae00a/build/moodboard759ae00a-cloudformation-template.json @@ -410,4 +410,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json index 2985f96cfe4..376668f1942 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json @@ -202,7 +202,7 @@ "authmoodboard759ae00a": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-main-1959a-deployment/amplify-cfn-templates/auth/moodboard759ae00a-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-x-x-deployment/amplify-cfn-templates/auth/moodboard759ae00a-cloudformation-template.json", "Parameters": { "identityPoolName": "moodboard759ae00a_identitypool_759ae00a", "allowUnauthenticatedIdentities": true, @@ -249,14 +249,14 @@ }, "breakCircularDependency": true, "dependsOn": "", - "env": "main" + "env": "x" } } }, "apimoodboard": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-main-1959a-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", "Parameters": { "AppSyncApiName": "moodboard", "DynamoDBBillingMode": "PAY_PER_REQUEST", @@ -267,16 +267,16 @@ "Outputs.UserPoolId" ] }, - "S3DeploymentBucket": "amplify-moodboard-main-1959a-deployment", - "S3DeploymentRootKey": "amplify-appsync-files/f7ab9fca95eecad3a59047fb5fd92dfef9d55ad4", - "env": "main" + "S3DeploymentBucket": "amplify-moodboard-x-x-deployment", + "S3DeploymentRootKey": "amplify-appsync-files/5c491eab2bbf740cbba1e26a8e9053c2c881af96", + "env": "x" } } }, "storagemoodboardStorage": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-main-1959a-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-x-x-deployment/amplify-cfn-templates/storage/cloudformation-template.json", "Parameters": { "bucketName": "moodboard20e29595008142e3ad16f01c4066e1c4", "selectedGuestPermissions": "s3:GetObject,s3:ListBucket", @@ -302,27 +302,27 @@ "s3PermissionsAuthenticatedUploads": "s3:PutObject", "s3PermissionsGuestPublic": "s3:GetObject", "s3PermissionsGuestUploads": "DISALLOW", - "env": "main" + "env": "x" } } }, "functionmoodboardGetRandomEmoji": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-main-1959a-deployment/amplify-cfn-templates/function/moodboardGetRandomEmoji-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-x-x-deployment/amplify-cfn-templates/function/moodboardGetRandomEmoji-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-moodboard-main-1959a-deployment", + "deploymentBucketName": "amplify-moodboard-x-x-deployment", "s3Key": "amplify-builds/moodboardGetRandomEmoji-59616d4f4b546a305a75-build.zip", - "env": "main" + "env": "x" } } }, "functionmoodboardKinesisReader": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-main-1959a-deployment/amplify-cfn-templates/function/moodboardKinesisReader-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-x-x-deployment/amplify-cfn-templates/function/moodboardKinesisReader-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-moodboard-main-1959a-deployment", + "deploymentBucketName": "amplify-moodboard-x-x-deployment", "s3Key": "amplify-builds/moodboardKinesisReader-4934782b72546e51707a-build.zip", "analyticsmoodboardKinesiskinesisStreamArn": { "Fn::GetAtt": [ @@ -330,14 +330,14 @@ "Outputs.kinesisStreamArn" ] }, - "env": "main" + "env": "x" } } }, "analyticsmoodboardKinesis": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-main-1959a-deployment/amplify-cfn-templates/analytics/kinesis-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-x-x-deployment/amplify-cfn-templates/analytics/kinesis-cloudformation-template.json", "Parameters": { "kinesisStreamName": "moodboardKinesis", "kinesisStreamShardCount": 1, @@ -349,7 +349,7 @@ }, "authPolicyName": "kinesis_amplify_bca5ce95", "unauthPolicyName": "kinesis_amplify_bca5ce95", - "env": "main" + "env": "x" } } }, @@ -557,4 +557,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/moodboardGetRandomEmoji/moodboardGetRandomEmoji-cloudformation-template.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/moodboardGetRandomEmoji/moodboardGetRandomEmoji-cloudformation-template.json index f23f65bc8fb..ffc01232f92 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/moodboardGetRandomEmoji/moodboardGetRandomEmoji-cloudformation-template.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/moodboardGetRandomEmoji/moodboardGetRandomEmoji-cloudformation-template.json @@ -199,4 +199,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/moodboardKinesisReader/moodboardKinesisReader-cloudformation-template.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/moodboardKinesisReader/moodboardKinesisReader-cloudformation-template.json index c943b9df770..b6744df2dd3 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/moodboardKinesisReader/moodboardKinesisReader-cloudformation-template.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/moodboardKinesisReader/moodboardKinesisReader-cloudformation-template.json @@ -245,4 +245,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json index 2985f96cfe4..376668f1942 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json @@ -202,7 +202,7 @@ "authmoodboard759ae00a": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-main-1959a-deployment/amplify-cfn-templates/auth/moodboard759ae00a-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-x-x-deployment/amplify-cfn-templates/auth/moodboard759ae00a-cloudformation-template.json", "Parameters": { "identityPoolName": "moodboard759ae00a_identitypool_759ae00a", "allowUnauthenticatedIdentities": true, @@ -249,14 +249,14 @@ }, "breakCircularDependency": true, "dependsOn": "", - "env": "main" + "env": "x" } } }, "apimoodboard": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-main-1959a-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", "Parameters": { "AppSyncApiName": "moodboard", "DynamoDBBillingMode": "PAY_PER_REQUEST", @@ -267,16 +267,16 @@ "Outputs.UserPoolId" ] }, - "S3DeploymentBucket": "amplify-moodboard-main-1959a-deployment", - "S3DeploymentRootKey": "amplify-appsync-files/f7ab9fca95eecad3a59047fb5fd92dfef9d55ad4", - "env": "main" + "S3DeploymentBucket": "amplify-moodboard-x-x-deployment", + "S3DeploymentRootKey": "amplify-appsync-files/5c491eab2bbf740cbba1e26a8e9053c2c881af96", + "env": "x" } } }, "storagemoodboardStorage": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-main-1959a-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-x-x-deployment/amplify-cfn-templates/storage/cloudformation-template.json", "Parameters": { "bucketName": "moodboard20e29595008142e3ad16f01c4066e1c4", "selectedGuestPermissions": "s3:GetObject,s3:ListBucket", @@ -302,27 +302,27 @@ "s3PermissionsAuthenticatedUploads": "s3:PutObject", "s3PermissionsGuestPublic": "s3:GetObject", "s3PermissionsGuestUploads": "DISALLOW", - "env": "main" + "env": "x" } } }, "functionmoodboardGetRandomEmoji": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-main-1959a-deployment/amplify-cfn-templates/function/moodboardGetRandomEmoji-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-x-x-deployment/amplify-cfn-templates/function/moodboardGetRandomEmoji-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-moodboard-main-1959a-deployment", + "deploymentBucketName": "amplify-moodboard-x-x-deployment", "s3Key": "amplify-builds/moodboardGetRandomEmoji-59616d4f4b546a305a75-build.zip", - "env": "main" + "env": "x" } } }, "functionmoodboardKinesisReader": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-main-1959a-deployment/amplify-cfn-templates/function/moodboardKinesisReader-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-x-x-deployment/amplify-cfn-templates/function/moodboardKinesisReader-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-moodboard-main-1959a-deployment", + "deploymentBucketName": "amplify-moodboard-x-x-deployment", "s3Key": "amplify-builds/moodboardKinesisReader-4934782b72546e51707a-build.zip", "analyticsmoodboardKinesiskinesisStreamArn": { "Fn::GetAtt": [ @@ -330,14 +330,14 @@ "Outputs.kinesisStreamArn" ] }, - "env": "main" + "env": "x" } } }, "analyticsmoodboardKinesis": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-main-1959a-deployment/amplify-cfn-templates/analytics/kinesis-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-x-x-deployment/amplify-cfn-templates/analytics/kinesis-cloudformation-template.json", "Parameters": { "kinesisStreamName": "moodboardKinesis", "kinesisStreamShardCount": 1, @@ -349,7 +349,7 @@ }, "authPolicyName": "kinesis_amplify_bca5ce95", "unauthPolicyName": "kinesis_amplify_bca5ce95", - "env": "main" + "env": "x" } } }, @@ -557,4 +557,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/awscloudformation/build/storage/moodboardStorage/build/cloudformation-template.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/awscloudformation/build/storage/moodboardStorage/build/cloudformation-template.json index 8bac1dbfa69..204a64677c8 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/awscloudformation/build/storage/moodboardStorage/build/cloudformation-template.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/awscloudformation/build/storage/moodboardStorage/build/cloudformation-template.json @@ -643,4 +643,4 @@ "Condition": "GuestReadAndList" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/backend-config.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/backend-config.json index ab0b1a3ec06..9fe08f04692 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/backend-config.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/backend-config.json @@ -130,4 +130,4 @@ "service": "S3" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/function/moodboardGetRandomEmoji/amplify.state b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/function/moodboardGetRandomEmoji/amplify.state index 0c3efe04706..ab8a6cc8046 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/function/moodboardGetRandomEmoji/amplify.state +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/function/moodboardGetRandomEmoji/amplify.state @@ -3,4 +3,4 @@ "functionRuntime": "nodejs", "useLegacyBuild": true, "defaultEditorFile": "src/index.js" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/function/moodboardGetRandomEmoji/custom-policies.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/function/moodboardGetRandomEmoji/custom-policies.json index 528c94f2f26..1f21c530082 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/function/moodboardGetRandomEmoji/custom-policies.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/function/moodboardGetRandomEmoji/custom-policies.json @@ -3,4 +3,4 @@ "Action": [], "Resource": [] } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/function/moodboardGetRandomEmoji/function-parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/function/moodboardGetRandomEmoji/function-parameters.json index d5078776c21..481f6af97f7 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/function/moodboardGetRandomEmoji/function-parameters.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/function/moodboardGetRandomEmoji/function-parameters.json @@ -1,3 +1,3 @@ { "lambdaLayers": [] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/function/moodboardGetRandomEmoji/moodboardGetRandomEmoji-cloudformation-template.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/function/moodboardGetRandomEmoji/moodboardGetRandomEmoji-cloudformation-template.json index f23f65bc8fb..ffc01232f92 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/function/moodboardGetRandomEmoji/moodboardGetRandomEmoji-cloudformation-template.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/function/moodboardGetRandomEmoji/moodboardGetRandomEmoji-cloudformation-template.json @@ -199,4 +199,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/function/moodboardKinesisReader/amplify.state b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/function/moodboardKinesisReader/amplify.state index 045e649ff86..f4f664b5257 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/function/moodboardKinesisReader/amplify.state +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/function/moodboardKinesisReader/amplify.state @@ -6,4 +6,4 @@ "scripts": { "build": "npm install --no-bin-links --production" } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/function/moodboardKinesisReader/custom-policies.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/function/moodboardKinesisReader/custom-policies.json index 528c94f2f26..1f21c530082 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/function/moodboardKinesisReader/custom-policies.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/function/moodboardKinesisReader/custom-policies.json @@ -3,4 +3,4 @@ "Action": [], "Resource": [] } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/function/moodboardKinesisReader/function-parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/function/moodboardKinesisReader/function-parameters.json index 04422a5df93..5c1160a3d43 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/function/moodboardKinesisReader/function-parameters.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/function/moodboardKinesisReader/function-parameters.json @@ -7,4 +7,4 @@ } }, "lambdaLayers": [] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/function/moodboardKinesisReader/moodboardKinesisReader-cloudformation-template.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/function/moodboardKinesisReader/moodboardKinesisReader-cloudformation-template.json index c943b9df770..b6744df2dd3 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/function/moodboardKinesisReader/moodboardKinesisReader-cloudformation-template.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/function/moodboardKinesisReader/moodboardKinesisReader-cloudformation-template.json @@ -245,4 +245,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/function/moodboardKinesisReader/parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/function/moodboardKinesisReader/parameters.json index 9e26dfeeb6e..0967ef424bc 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/function/moodboardKinesisReader/parameters.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/function/moodboardKinesisReader/parameters.json @@ -1 +1 @@ -{} \ No newline at end of file +{} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/storage/moodboardStorage/build/cloudformation-template.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/storage/moodboardStorage/build/cloudformation-template.json index 6e2bc99e890..d9b5969f570 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/storage/moodboardStorage/build/cloudformation-template.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/storage/moodboardStorage/build/cloudformation-template.json @@ -634,4 +634,4 @@ "Condition": "GuestReadAndList" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/storage/moodboardStorage/build/parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/storage/moodboardStorage/build/parameters.json index 456a730ea95..302a66a11ee 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/storage/moodboardStorage/build/parameters.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/storage/moodboardStorage/build/parameters.json @@ -31,4 +31,4 @@ "s3PermissionsAuthenticatedUploads": "s3:PutObject", "s3PermissionsGuestPublic": "s3:GetObject", "s3PermissionsGuestUploads": "DISALLOW" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/storage/moodboardStorage/cli-inputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/storage/moodboardStorage/cli-inputs.json index 6d948b1e2ea..1e1c5b69cc2 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/storage/moodboardStorage/cli-inputs.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/storage/moodboardStorage/cli-inputs.json @@ -13,4 +13,4 @@ ], "triggerFunction": "NONE", "groupAccess": {} -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/tags.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/tags.json index b9321d71b83..71f6abe11a6 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/tags.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/tags.json @@ -7,4 +7,4 @@ "Key": "user:Application", "Value": "{project-name}" } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts index 08efa6c5dd0..6a036a6be6e 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts @@ -46,4 +46,4 @@ export type AmplifyDependentResourcesAttributes = { "Region": "string" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/cli.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/cli.json index 11dc8ca0f7d..6991bfaca44 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/cli.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/cli.json @@ -62,4 +62,4 @@ "debug": { "shareProjectConfig": false } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/team-provider-info.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/team-provider-info.json index 4a7a370c1ca..73331dc6a13 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/team-provider-info.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/amplify/team-provider-info.json @@ -1,14 +1,14 @@ { - "main": { + "x": { "awscloudformation": { - "AuthRoleName": "amplify-moodboard-main-1959a-authRole", - "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-moodboard-main-1959a-unauthRole", - "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-moodboard-main-1959a-authRole", + "AuthRoleName": "amplify-moodboard-x-x-authRole", + "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-moodboard-x-x-unauthRole", + "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-moodboard-x-x-authRole", "Region": "us-east-1", - "DeploymentBucketName": "amplify-moodboard-main-1959a-deployment", - "UnauthRoleName": "amplify-moodboard-main-1959a-unauthRole", - "StackName": "amplify-moodboard-main-1959a", - "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-moodboard-main-1959a/f2787a30-1b0e-11f1-a58a-0afff81a6d49", + "DeploymentBucketName": "amplify-moodboard-x-x-deployment", + "UnauthRoleName": "amplify-moodboard-x-x-unauthRole", + "StackName": "amplify-moodboard-x-x", + "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-moodboard-x-x/61829dd0-3882-11f1-b5b8-0afffe97e059", "AmplifyAppId": "moodboard" }, "categories": { @@ -17,11 +17,11 @@ }, "function": { "moodboardGetRandomEmoji": { - "deploymentBucketName": "amplify-moodboard-main-1959a-deployment", + "deploymentBucketName": "amplify-moodboard-x-x-deployment", "s3Key": "amplify-builds/moodboardGetRandomEmoji-59616d4f4b546a305a75-build.zip" }, "moodboardKinesisReader": { - "deploymentBucketName": "amplify-moodboard-main-1959a-deployment", + "deploymentBucketName": "amplify-moodboard-x-x-deployment", "s3Key": "amplify-builds/moodboardKinesisReader-4934782b72546e51707a-build.zip" } }, @@ -36,4 +36,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.generate/package.json b/amplify-migration-apps/mood-board/_snapshot.pre.generate/package.json index c94ff868ee4..c2f7e4bf810 100644 --- a/amplify-migration-apps/mood-board/_snapshot.pre.generate/package.json +++ b/amplify-migration-apps/mood-board/_snapshot.pre.generate/package.json @@ -1,5 +1,5 @@ { - "name": "@amplify-migration-apps/mood-board-app-snapshot", + "name": "@amplify-migration-apps/mood-board-snapshot", "private": true, "version": "0.0.1", "type": "module", @@ -10,9 +10,21 @@ "dev": "vite", "build": "tsc && vite build", "preview": "vite preview", - "configure": "./configure.sh", + "configure": "./backend/configure.sh", "sanitize": "tsx ../sanitize.ts", - "typecheck": "cd _snapshot.post.generate/amplify && npx tsc --noEmit" + "normalize": "tsx ../normalize.ts", + "typecheck": "cd _snapshot.post.generate/amplify && npx tsc --noEmit", + "test:gen1": "APP_CONFIG_PATH=${APP_CONFIG_PATH:-src/amplifyconfiguration.json} NODE_OPTIONS='--experimental-vm-modules' jest --verbose", + "test:gen2": "APP_CONFIG_PATH=${APP_CONFIG_PATH:-amplify_outputs.json} NODE_OPTIONS='--experimental-vm-modules' jest --verbose", + "test:shared-data": "true", + "test:e2e": "cd ../../packages/amplify-gen2-migration-e2e-system && npx tsx src/cli.ts --app mood-board --profile ${AWS_PROFILE:-default}", + "deploy": "cd ../../packages/amplify-gen2-migration-e2e-system && npx tsx src/cli.ts --app mood-board --step deploy --profile ${AWS_PROFILE:-default}", + "pre-push": "true", + "post-generate": "npx tsx migration/post-generate.ts", + "post-refactor": "npx tsx migration/post-refactor.ts", + "post-sandbox": "true", + "pre-sandbox": "true", + "post-push": "npx tsx migration/post-push.ts" }, "dependencies": { "@aws-amplify/ui-react": "^6.10.1", @@ -21,9 +33,13 @@ "react-dom": "^18.3.1" }, "devDependencies": { + "@aws-sdk/client-cognito-identity-provider": "^3.936.0", + "@types/jest": "^29.5.14", "@types/react": "^18.3.3", "@types/react-dom": "^18.3.0", "@vitejs/plugin-react": "^4.3.1", + "jest": "^29.7.0", + "ts-jest": "^29.3.4", "typescript": "^5.5.3", "vite": "^5.4.2" } diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.description.txt b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.outputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.outputs.json new file mode 100644 index 00000000000..018e5bb6539 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.outputs.json @@ -0,0 +1,6 @@ +[ + { + "OutputKey": "amplifymoodboarde2esandbox799a4d1a84dataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent5D5EC05CArn", + "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-moodboard26041500-TableManagerCustomProvid-0cddn7ioQo2v" + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.parameters.json new file mode 100644 index 00000000000..054919bf420 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.parameters.json @@ -0,0 +1,6 @@ +[ + { + "ParameterKey": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId", + "ParameterValue": "tr6hjslzxzextaawz3ftjzwqyi" + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.template.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.template.json new file mode 100644 index 00000000000..e95fed58c0f --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.template.json @@ -0,0 +1,771 @@ +{ + "Resources": { + "AmplifyManagedTableIsCompleteRoleF825222C": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:CreateTable", + "dynamodb:UpdateTable", + "dynamodb:DeleteTable", + "dynamodb:DescribeTable", + "dynamodb:DescribeContinuousBackups", + "dynamodb:DescribeTimeToLive", + "dynamodb:UpdateContinuousBackups", + "dynamodb:UpdateTimeToLive", + "dynamodb:TagResource", + "dynamodb:UntagResource", + "dynamodb:ListTagsOfResource" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/*-${apiId}-${envName}", + { + "apiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "envName": "NONE" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", + { + "tableName": "MoodItem-pd6mhagtyveltorgdvv7movvqq-x" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", + { + "tableName": "Board-pd6mhagtyveltorgdvv7movvqq-x" + } + ] + } + ] + }, + { + "Action": "lambda:ListTags", + "Effect": "Allow", + "Resource": { + "Fn::Sub": [ + "arn:${AWS::Partition}:lambda:${AWS::Region}:${AWS::AccountId}:function:*TableManager*", + {} + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "CreateUpdateDeleteTablesPolicy" + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/AmplifyManagedTableIsCompleteRole/Resource" + } + }, + "AmplifyManagedTableOnEventRoleB4E71DEA": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:CreateTable", + "dynamodb:UpdateTable", + "dynamodb:DeleteTable", + "dynamodb:DescribeTable", + "dynamodb:DescribeContinuousBackups", + "dynamodb:DescribeTimeToLive", + "dynamodb:UpdateContinuousBackups", + "dynamodb:UpdateTimeToLive", + "dynamodb:TagResource", + "dynamodb:UntagResource", + "dynamodb:ListTagsOfResource" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/*-${apiId}-${envName}", + { + "apiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "envName": "NONE" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", + { + "tableName": "MoodItem-pd6mhagtyveltorgdvv7movvqq-x" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", + { + "tableName": "Board-pd6mhagtyveltorgdvv7movvqq-x" + } + ] + } + ] + }, + { + "Action": "lambda:ListTags", + "Effect": "Allow", + "Resource": { + "Fn::Sub": [ + "arn:${AWS::Partition}:lambda:${AWS::Region}:${AWS::AccountId}:function:*TableManager*", + {} + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "CreateUpdateDeleteTablesPolicy" + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/AmplifyManagedTableOnEventRole/Resource" + } + }, + "AmplifyManagedTableOnEventRoleDefaultPolicyF6DABCB6": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "states:StartExecution", + "Effect": "Allow", + "Resource": { + "Ref": "AmplifyTableWaiterStateMachine060600BC" + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "AmplifyManagedTableOnEventRoleDefaultPolicyF6DABCB6", + "Roles": [ + { + "Ref": "AmplifyManagedTableOnEventRoleB4E71DEA" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/AmplifyManagedTableOnEventRole/DefaultPolicy/Resource" + } + }, + "TableManagerCustomProviderframeworkonEvent1DFC2ECC": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6.zip" + }, + "Description": "AmplifyManagedTable - onEvent (amplify-moodboard-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider)", + "Environment": { + "Variables": { + "WAITER_STATE_MACHINE_ARN": { + "Ref": "AmplifyTableWaiterStateMachine060600BC" + } + } + }, + "Handler": "amplify-table-manager-handler.onEvent", + "Role": { + "Fn::GetAtt": [ + "AmplifyManagedTableOnEventRoleB4E71DEA", + "Arn" + ] + }, + "Runtime": "nodejs24.x", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 840 + }, + "DependsOn": [ + "AmplifyManagedTableOnEventRoleDefaultPolicyF6DABCB6", + "AmplifyManagedTableOnEventRoleB4E71DEA" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider/framework-onEvent/Resource", + "aws:asset:path": "asset.f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6", + "aws:asset:is-bundled": false, + "aws:asset:property": "Code" + } + }, + "TableManagerCustomProviderframeworkisComplete2E51021B": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6.zip" + }, + "Description": "AmplifyManagedTable - isComplete (amplify-moodboard-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider)", + "Handler": "amplify-table-manager-handler.isComplete", + "Role": { + "Fn::GetAtt": [ + "AmplifyManagedTableIsCompleteRoleF825222C", + "Arn" + ] + }, + "Runtime": "nodejs24.x", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 840 + }, + "DependsOn": [ + "AmplifyManagedTableIsCompleteRoleF825222C" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider/framework-isComplete/Resource", + "aws:asset:path": "asset.f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6", + "aws:asset:is-bundled": false, + "aws:asset:property": "Code" + } + }, + "AmplifyTableWaiterStateMachineRole470BE899": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "states.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Role/Resource" + } + }, + "AmplifyTableWaiterStateMachineRoleDefaultPolicy89F3836A": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "TableManagerCustomProviderframeworkisComplete2E51021B", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "TableManagerCustomProviderframeworkisComplete2E51021B", + "Arn" + ] + }, + ":*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "AmplifyTableWaiterStateMachineRoleDefaultPolicy89F3836A", + "Roles": [ + { + "Ref": "AmplifyTableWaiterStateMachineRole470BE899" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Role/DefaultPolicy/Resource" + } + }, + "AmplifyTableWaiterStateMachine060600BC": { + "Type": "AWS::StepFunctions::StateMachine", + "Properties": { + "DefinitionString": { + "Fn::Join": [ + "", + [ + "{\"StartAt\":\"framework-isComplete-task\",\"States\":{\"framework-isComplete-task\":{\"End\":true,\"Retry\":[{\"ErrorEquals\":[\"States.ALL\"],\"IntervalSeconds\":10,\"MaxAttempts\":360,\"BackoffRate\":1}],\"Type\":\"Task\",\"Resource\":\"", + { + "Fn::GetAtt": [ + "TableManagerCustomProviderframeworkisComplete2E51021B", + "Arn" + ] + }, + "\"}}}" + ] + ] + }, + "RoleArn": { + "Fn::GetAtt": [ + "AmplifyTableWaiterStateMachineRole470BE899", + "Arn" + ] + } + }, + "DependsOn": [ + "AmplifyTableWaiterStateMachineRoleDefaultPolicy89F3836A", + "AmplifyTableWaiterStateMachineRole470BE899" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/zWNyw6CMBBFv8V9GbFE92Li0hj4ADK0IymPNmFaiWn67wbQ1Tk3Z3ElyHMO+QEXzpQestG0EB/EnnTtUQ0CF26iwQli5UYSt5fd+HSjUZ917pbEiFOrEeI9WOWNs2v7exJcNMhMnuG6QnABZVAD+RKZkqiIXZgVia3WHjtju+3sF5KwThP0fHxLCacL5IeejcnmYL2ZCKqdX3lj/13PAAAA" + }, + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId": { + "Type": "String" + } + }, + "Outputs": { + "amplifymoodboarde2esandbox799a4d1a84dataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent5D5EC05CArn": { + "Value": { + "Fn::GetAtt": [ + "TableManagerCustomProviderframeworkonEvent1DFC2ECC", + "Arn" + ] + } + } + } +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataBoardNestedStackBoardNestedStac-x.description.txt b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataBoardNestedStackBoardNestedStac-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataBoardNestedStackBoardNestedStac-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataBoardNestedStackBoardNestedStac-x.outputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataBoardNestedStackBoardNestedStac-x.outputs.json new file mode 100644 index 00000000000..b60fae8f319 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataBoardNestedStackBoardNestedStac-x.outputs.json @@ -0,0 +1,22 @@ +[ + { + "OutputKey": "amplifymoodboarde2esandbox799a4d1a84dataamplifyDataBoardBoardDataSource5B663EE3Name", + "OutputValue": "BoardTable" + }, + { + "OutputKey": "GetAttBoardTableStreamArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Board-pd6mhagtyveltorgdvv7movvqq-x/stream/2026-04-15T04:23:19.837", + "Description": "Your DynamoDB table StreamArn.", + "ExportName": "tr6hjslzxzextaawz3ftjzwqyi:GetAtt:BoardTable:StreamArn" + }, + { + "OutputKey": "GetAttBoardTableName", + "OutputValue": "Board-pd6mhagtyveltorgdvv7movvqq-x", + "Description": "Your DynamoDB table name.", + "ExportName": "tr6hjslzxzextaawz3ftjzwqyi:GetAtt:BoardTable:Name" + }, + { + "OutputKey": "amplifymoodboarde2esandbox799a4d1a84dataamplifyDataBoardBoardTableE632E322TableArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Board-pd6mhagtyveltorgdvv7movvqq-x" + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataBoardNestedStackBoardNestedStac-x.parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataBoardNestedStackBoardNestedStac-x.parameters.json new file mode 100644 index 00000000000..7c3d5b073e5 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataBoardNestedStackBoardNestedStac-x.parameters.json @@ -0,0 +1,46 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef", + "ParameterValue": "amplify-moodboard26041500-amplifyAuthunauthenticate-2CR87a5ajww1" + }, + { + "ParameterKey": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref", + "ParameterValue": "us-east-1:edbce570-5f19-4755-9803-52e7b3e0c56d" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "true" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceEA62CF6FOutputsamplifymoodboarde2esandbox799a4d1a84dataamplifyDataAmplifyTableManagerTable4639D399", + "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-moodboard26041500-TableManagerCustomProvid-0cddn7ioQo2v" + }, + { + "ParameterKey": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref", + "ParameterValue": "amplify-moodboard26041500-amplifyAuthauthenticatedU-inPzqwEs0wDw" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId", + "ParameterValue": "tr6hjslzxzextaawz3ftjzwqyi" + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataBoardNestedStackBoardNestedStac-x.template.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataBoardNestedStackBoardNestedStac-x.template.json new file mode 100644 index 00000000000..06d6b1304ba --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataBoardNestedStackBoardNestedStac-x.template.json @@ -0,0 +1,2053 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceEA62CF6FOutputsamplifymoodboarde2esandbox799a4d1a84dataamplifyDataAmplifyTableManagerTable4639D399": { + "Type": "String" + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId": { + "Type": "String" + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name": { + "Type": "String" + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref": { + "Type": "String" + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef": { + "Type": "String" + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + "NONE", + "NONE" + ] + } + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + }, + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Resources": { + "BoardTable": { + "Type": "Custom::ImportedAmplifyDynamoDBTable", + "Properties": { + "ServiceToken": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceEA62CF6FOutputsamplifymoodboarde2esandbox799a4d1a84dataamplifyDataAmplifyTableManagerTable4639D399" + }, + "tableName": "Board-pd6mhagtyveltorgdvv7movvqq-x", + "attributeDefinitions": [ + { + "attributeName": "id", + "attributeType": "S" + } + ], + "keySchema": [ + { + "attributeName": "id", + "keyType": "HASH" + } + ], + "provisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "sseSpecification": { + "sseEnabled": false + }, + "streamSpecification": { + "streamViewType": "NEW_AND_OLD_IMAGES" + }, + "deletionProtectionEnabled": true, + "allowDestructiveGraphqlSchemaUpdates": true, + "replaceTableUponGsiUpdate": false, + "isImported": true, + "pointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "billingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/Board/BoardTable/Default/Default" + } + }, + "BoardIAMRole2AFA0B47": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem", + "dynamodb:ConditionCheckItem", + "dynamodb:DescribeTable", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": "Board-pd6mhagtyveltorgdvv7movvqq-x" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": "Board-pd6mhagtyveltorgdvv7movvqq-x" + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess" + } + ], + "RoleName": { + "Fn::Join": [ + "", + [ + "BoardIAMRolecda8e3-", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "-NONE" + ] + ] + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/Board/BoardIAMRole/Resource" + } + }, + "BoardDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "BoardTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + } + }, + "Name": "BoardTable", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "BoardIAMRole2AFA0B47", + "Arn" + ] + }, + "Type": "AMAZON_DYNAMODB" + }, + "DependsOn": [ + "BoardIAMRole2AFA0B47" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/Board/BoardDataSource/Resource" + } + }, + "QuerygetBoardauth0FunctionQuerygetBoardauth0FunctionAppSyncFunctionEEE5FFDD": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetBoardauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/0224a3e5097427da3f4460b5d6d2b86ad4195c9cb8da7bc13e7187eead1c3ae3.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/Board/QuerygetBoardauth0Function/QuerygetBoardauth0Function.AppSyncFunction" + } + }, + "QuerygetBoardpostAuth0FunctionQuerygetBoardpostAuth0FunctionAppSyncFunctionF3579798": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetBoardpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/Board/QuerygetBoardpostAuth0Function/QuerygetBoardpostAuth0Function.AppSyncFunction" + } + }, + "QueryGetBoardDataResolverFnQueryGetBoardDataResolverFnAppSyncFunction4DCC2B77": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "BoardDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryGetBoardDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/08f4d557693d96c1a4efba0f9dc91330e4b19772fd5477c156468843e3d9cb5e.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4c6a2d29f01c6091bd1d9afe16e5849d456c96f17c3b215938c8067399532719.vtl" + } + }, + "DependsOn": [ + "BoardDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/Board/QueryGetBoardDataResolverFn/QueryGetBoardDataResolverFn.AppSyncFunction" + } + }, + "GetBoardResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "FieldName": "getBoard", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerygetBoardauth0FunctionQuerygetBoardauth0FunctionAppSyncFunctionEEE5FFDD", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetBoardpostAuth0FunctionQuerygetBoardpostAuth0FunctionAppSyncFunctionF3579798", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryGetBoardDataResolverFnQueryGetBoardDataResolverFnAppSyncFunction4DCC2B77", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getBoard\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "BoardTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/Board/queryGetBoardResolver" + } + }, + "QuerylistBoardsauth0FunctionQuerylistBoardsauth0FunctionAppSyncFunction8EA5F758": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerylistBoardsauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/0224a3e5097427da3f4460b5d6d2b86ad4195c9cb8da7bc13e7187eead1c3ae3.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/Board/QuerylistBoardsauth0Function/QuerylistBoardsauth0Function.AppSyncFunction" + } + }, + "QuerylistBoardspostAuth0FunctionQuerylistBoardspostAuth0FunctionAppSyncFunction8CF3B4E6": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerylistBoardspostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/Board/QuerylistBoardspostAuth0Function/QuerylistBoardspostAuth0Function.AppSyncFunction" + } + }, + "QueryListBoardsDataResolverFnQueryListBoardsDataResolverFnAppSyncFunction6FD2B54C": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "BoardDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryListBoardsDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9fcbe070ecd3023c5bf5b966fa9584757db9762eef123bad0820bd87591b2174.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/cc01911d0269d4080ea57505dc445dfc315ef7ad85d3d9d4ea1357858bff451d.vtl" + } + }, + "DependsOn": [ + "BoardDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/Board/QueryListBoardsDataResolverFn/QueryListBoardsDataResolverFn.AppSyncFunction" + } + }, + "ListBoardResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "FieldName": "listBoards", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerylistBoardsauth0FunctionQuerylistBoardsauth0FunctionAppSyncFunction8EA5F758", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerylistBoardspostAuth0FunctionQuerylistBoardspostAuth0FunctionAppSyncFunction8CF3B4E6", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryListBoardsDataResolverFnQueryListBoardsDataResolverFnAppSyncFunction6FD2B54C", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listBoards\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "BoardTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/Board/queryListBoardsResolver" + } + }, + "MutationcreateBoardinit0FunctionMutationcreateBoardinit0FunctionAppSyncFunction4C83C02C": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateBoardinit0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a183ddccbd956316c38ef97177b8f088ef0826f62023323f5ae6053d348ccffc.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/Board/MutationcreateBoardinit0Function/MutationcreateBoardinit0Function.AppSyncFunction" + } + }, + "MutationcreateBoardauth0FunctionMutationcreateBoardauth0FunctionAppSyncFunction70CF5FF3": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateBoardauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/d637c1fb7301003b8a5ada269338cf2e8df6cc0dc412ef13acc6158d680b6d3e.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/Board/MutationcreateBoardauth0Function/MutationcreateBoardauth0Function.AppSyncFunction" + } + }, + "MutationcreateBoardpostAuth0FunctionMutationcreateBoardpostAuth0FunctionAppSyncFunction9F246578": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateBoardpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/Board/MutationcreateBoardpostAuth0Function/MutationcreateBoardpostAuth0Function.AppSyncFunction" + } + }, + "MutationCreateBoardDataResolverFnMutationCreateBoardDataResolverFnAppSyncFunctionA8197CF5": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "BoardDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationCreateBoardDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/91ba221dcacf4a6efa3ea6046d228b924c7beebe3045691a4424efa6b76f25d0.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "BoardDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/Board/MutationCreateBoardDataResolverFn/MutationCreateBoardDataResolverFn.AppSyncFunction" + } + }, + "CreateBoardResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "FieldName": "createBoard", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationcreateBoardinit0FunctionMutationcreateBoardinit0FunctionAppSyncFunction4C83C02C", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationcreateBoardauth0FunctionMutationcreateBoardauth0FunctionAppSyncFunction70CF5FF3", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationcreateBoardpostAuth0FunctionMutationcreateBoardpostAuth0FunctionAppSyncFunction9F246578", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationCreateBoardDataResolverFnMutationCreateBoardDataResolverFnAppSyncFunctionA8197CF5", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createBoard\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "BoardTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/Board/mutationCreateBoardResolver" + } + }, + "MutationupdateBoardinit0FunctionMutationupdateBoardinit0FunctionAppSyncFunction8F5DC918": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateBoardinit0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/06db846fd14e6fc371f22b12b5545ba8e2dbfeda85d8c8d586c71c282166657b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/Board/MutationupdateBoardinit0Function/MutationupdateBoardinit0Function.AppSyncFunction" + } + }, + "MutationupdateBoardauth0FunctionMutationupdateBoardauth0FunctionAppSyncFunction2E8E275A": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "BoardDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateBoardauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/89f92efd98b1034df0e2497fe31a97de6975de554b8a22e0677d05d6efcafa59.vtl" + } + }, + "DependsOn": [ + "BoardDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/Board/MutationupdateBoardauth0Function/MutationupdateBoardauth0Function.AppSyncFunction" + } + }, + "MutationupdateBoardpostAuth0FunctionMutationupdateBoardpostAuth0FunctionAppSyncFunction7CBBFF9D": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateBoardpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/Board/MutationupdateBoardpostAuth0Function/MutationupdateBoardpostAuth0Function.AppSyncFunction" + } + }, + "MutationUpdateBoardDataResolverFnMutationUpdateBoardDataResolverFnAppSyncFunction9C4A47A5": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "BoardDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationUpdateBoardDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/474bf0776ec2164a13191d1a0a9e057154931e4918fea5086f49850d02a5371b.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "BoardDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/Board/MutationUpdateBoardDataResolverFn/MutationUpdateBoardDataResolverFn.AppSyncFunction" + } + }, + "UpdateBoardResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "FieldName": "updateBoard", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationupdateBoardinit0FunctionMutationupdateBoardinit0FunctionAppSyncFunction8F5DC918", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationupdateBoardauth0FunctionMutationupdateBoardauth0FunctionAppSyncFunction2E8E275A", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationupdateBoardpostAuth0FunctionMutationupdateBoardpostAuth0FunctionAppSyncFunction7CBBFF9D", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationUpdateBoardDataResolverFnMutationUpdateBoardDataResolverFnAppSyncFunction9C4A47A5", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateBoard\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "BoardTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/Board/mutationUpdateBoardResolver" + } + }, + "MutationdeleteBoardauth0FunctionMutationdeleteBoardauth0FunctionAppSyncFunctionDCC1EFD9": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "BoardDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeleteBoardauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e3416b4d47414f29c21e59a70e83bddb959ef0625854ed7fb0ca376573e99069.vtl" + } + }, + "DependsOn": [ + "BoardDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/Board/MutationdeleteBoardauth0Function/MutationdeleteBoardauth0Function.AppSyncFunction" + } + }, + "MutationdeleteBoardpostAuth0FunctionMutationdeleteBoardpostAuth0FunctionAppSyncFunction23394BC0": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeleteBoardpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/Board/MutationdeleteBoardpostAuth0Function/MutationdeleteBoardpostAuth0Function.AppSyncFunction" + } + }, + "MutationDeleteBoardDataResolverFnMutationDeleteBoardDataResolverFnAppSyncFunctionFAEDC2FC": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "BoardDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationDeleteBoardDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4f7907d1209a2c9953a0c053df402c634e359546d70c7cc5c2e8e21ea734880f.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "BoardDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/Board/MutationDeleteBoardDataResolverFn/MutationDeleteBoardDataResolverFn.AppSyncFunction" + } + }, + "DeleteBoardResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "FieldName": "deleteBoard", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationdeleteBoardauth0FunctionMutationdeleteBoardauth0FunctionAppSyncFunctionDCC1EFD9", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationdeleteBoardpostAuth0FunctionMutationdeleteBoardpostAuth0FunctionAppSyncFunction23394BC0", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationDeleteBoardDataResolverFnMutationDeleteBoardDataResolverFnAppSyncFunctionFAEDC2FC", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteBoard\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "BoardTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/Board/mutationDeleteBoardResolver" + } + }, + "SubscriptiononCreateBoardauth0FunctionSubscriptiononCreateBoardauth0FunctionAppSyncFunctionD4360E95": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononCreateBoardauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e6da5a6e993df8b5fdc91086b71eb53e72a3a97c98836ef9c9257776f36c452b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/Board/SubscriptiononCreateBoardauth0Function/SubscriptiononCreateBoardauth0Function.AppSyncFunction" + } + }, + "SubscriptiononCreateBoardpostAuth0FunctionSubscriptiononCreateBoardpostAuth0FunctionAppSyncFunction5749A844": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononCreateBoardpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/Board/SubscriptiononCreateBoardpostAuth0Function/SubscriptiononCreateBoardpostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnCreateBoardDataResolverFnSubscriptionOnCreateBoardDataResolverFnAppSyncFunctionE7F89181": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnCreateBoardDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/Board/SubscriptionOnCreateBoardDataResolverFn/SubscriptionOnCreateBoardDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononCreateBoardResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "FieldName": "onCreateBoard", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononCreateBoardauth0FunctionSubscriptiononCreateBoardauth0FunctionAppSyncFunctionD4360E95", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononCreateBoardpostAuth0FunctionSubscriptiononCreateBoardpostAuth0FunctionAppSyncFunction5749A844", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnCreateBoardDataResolverFnSubscriptionOnCreateBoardDataResolverFnAppSyncFunctionE7F89181", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateBoard\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/Board/subscriptionOnCreateBoardResolver" + } + }, + "SubscriptiononUpdateBoardauth0FunctionSubscriptiononUpdateBoardauth0FunctionAppSyncFunction757414C8": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononUpdateBoardauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e6da5a6e993df8b5fdc91086b71eb53e72a3a97c98836ef9c9257776f36c452b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/Board/SubscriptiononUpdateBoardauth0Function/SubscriptiononUpdateBoardauth0Function.AppSyncFunction" + } + }, + "SubscriptiononUpdateBoardpostAuth0FunctionSubscriptiononUpdateBoardpostAuth0FunctionAppSyncFunctionC254B5F8": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononUpdateBoardpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/Board/SubscriptiononUpdateBoardpostAuth0Function/SubscriptiononUpdateBoardpostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnUpdateBoardDataResolverFnSubscriptionOnUpdateBoardDataResolverFnAppSyncFunction0D16E1E0": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnUpdateBoardDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/Board/SubscriptionOnUpdateBoardDataResolverFn/SubscriptionOnUpdateBoardDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononUpdateBoardResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "FieldName": "onUpdateBoard", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononUpdateBoardauth0FunctionSubscriptiononUpdateBoardauth0FunctionAppSyncFunction757414C8", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononUpdateBoardpostAuth0FunctionSubscriptiononUpdateBoardpostAuth0FunctionAppSyncFunctionC254B5F8", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnUpdateBoardDataResolverFnSubscriptionOnUpdateBoardDataResolverFnAppSyncFunction0D16E1E0", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateBoard\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/Board/subscriptionOnUpdateBoardResolver" + } + }, + "SubscriptiononDeleteBoardauth0FunctionSubscriptiononDeleteBoardauth0FunctionAppSyncFunction303FE040": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononDeleteBoardauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e6da5a6e993df8b5fdc91086b71eb53e72a3a97c98836ef9c9257776f36c452b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/Board/SubscriptiononDeleteBoardauth0Function/SubscriptiononDeleteBoardauth0Function.AppSyncFunction" + } + }, + "SubscriptiononDeleteBoardpostAuth0FunctionSubscriptiononDeleteBoardpostAuth0FunctionAppSyncFunction530FEB4B": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononDeleteBoardpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/Board/SubscriptiononDeleteBoardpostAuth0Function/SubscriptiononDeleteBoardpostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnDeleteBoardDataResolverFnSubscriptionOnDeleteBoardDataResolverFnAppSyncFunctionAEAB75CD": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnDeleteBoardDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/Board/SubscriptionOnDeleteBoardDataResolverFn/SubscriptionOnDeleteBoardDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononDeleteBoardResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "FieldName": "onDeleteBoard", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononDeleteBoardauth0FunctionSubscriptiononDeleteBoardauth0FunctionAppSyncFunction303FE040", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononDeleteBoardpostAuth0FunctionSubscriptiononDeleteBoardpostAuth0FunctionAppSyncFunction530FEB4B", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnDeleteBoardDataResolverFnSubscriptionOnDeleteBoardDataResolverFnAppSyncFunctionAEAB75CD", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteBoard\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/Board/subscriptionOnDeleteBoardResolver" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOwW6DMAyGn6X31GNU230F7bhNsHtlEoNSwEGx06pCvPsEnTrt9PuTP9l/DvlLBtkOr7K3rt8PvoH5g0TJ1Yq2N0XLXxhxJKW4QhHYefWBTUUSUrRkiiQaxj9s+THjVU6zuzGOwTXwjc1ARxQyHkeYqzDc7TDQYnCa5MYW5nLTy6ZExfpx8j+9J7ZriSJw67sUcWv0+3m4UFyMHE4oQirwtoaRAxyT7UnXAsvqfiadkpptXSt2nrvFcHAEZ3m65Dk8v0K2O4v3+5hY/UhQ3fMHIPwRXTYBAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/Board/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Outputs": { + "GetAttBoardTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "BoardTable", + "TableStreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "GetAtt:BoardTable:StreamArn" + ] + ] + } + } + }, + "GetAttBoardTableName": { + "Description": "Your DynamoDB table name.", + "Value": "Board-pd6mhagtyveltorgdvv7movvqq-x", + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "GetAtt:BoardTable:Name" + ] + ] + } + } + }, + "amplifymoodboarde2esandbox799a4d1a84dataamplifyDataBoardBoardDataSource5B663EE3Name": { + "Value": { + "Fn::GetAtt": [ + "BoardDataSource", + "Name" + ] + } + }, + "amplifymoodboarde2esandbox799a4d1a84dataamplifyDataBoardBoardTableE632E322TableArn": { + "Value": { + "Fn::GetAtt": [ + "BoardTable", + "TableArn" + ] + } + } + } +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.description.txt b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.outputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.outputs.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.outputs.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.parameters.json new file mode 100644 index 00000000000..d3a4a9c9c95 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.parameters.json @@ -0,0 +1,38 @@ +[ + { + "ParameterKey": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef", + "ParameterValue": "amplify-moodboard26041500-amplifyAuthunauthenticate-2CR87a5ajww1" + }, + { + "ParameterKey": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref", + "ParameterValue": "us-east-1:edbce570-5f19-4755-9803-52e7b3e0c56d" + }, + { + "ParameterKey": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataMoodItemNestedStackMoodItemNestedStackResource909B7D4FOutputsamplifymoodboarde2esandbox799a4d1a84dataamplifyDataMoodItemMoodItemTableB6DE0468TableArn", + "ParameterValue": "arn:aws:dynamodb:us-east-1:123456789012:table/MoodItem-pd6mhagtyveltorgdvv7movvqq-x" + }, + { + "ParameterKey": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref", + "ParameterValue": "amplify-moodboard26041500-amplifyAuthauthenticatedU-inPzqwEs0wDw" + }, + { + "ParameterKey": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataBoardNestedStackBoardNestedStackResource95BF389DOutputsamplifymoodboarde2esandbox799a4d1a84dataamplifyDataBoardBoardTableE632E322TableArn", + "ParameterValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Board-pd6mhagtyveltorgdvv7movvqq-x" + }, + { + "ParameterKey": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataBoardNestedStackBoardNestedStackResource95BF389DOutputsamplifymoodboarde2esandbox799a4d1a84dataamplifyDataBoardBoardDataSource5B663EE3Name", + "ParameterValue": "BoardTable" + }, + { + "ParameterKey": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId", + "ParameterValue": "tr6hjslzxzextaawz3ftjzwqyi" + }, + { + "ParameterKey": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataMoodItemNestedStackMoodItemNestedStackResource909B7D4FOutputsamplifymoodboarde2esandbox799a4d1a84dataamplifyDataMoodItemMoodItemDataSourceA5BD018EName", + "ParameterValue": "MoodItemTable" + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.template.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.template.json new file mode 100644 index 00000000000..34248c10b5e --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.template.json @@ -0,0 +1,595 @@ +{ + "Resources": { + "BoardmoodItemsauth0FunctionBoardmoodItemsauth0FunctionAppSyncFunction24F8C273": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "BoardmoodItemsauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/98d57dc1efb9e47547e4d43b376202499240f34e43676c88c84fab62008b2bf5.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/ConnectionStack/BoardmoodItemsauth0Function/BoardmoodItemsauth0Function.AppSyncFunction" + } + }, + "BoardMoodItemsDataResolverFnBoardMoodItemsDataResolverFnAppSyncFunctionB8E73866": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataMoodItemNestedStackMoodItemNestedStackResource909B7D4FOutputsamplifymoodboarde2esandbox799a4d1a84dataamplifyDataMoodItemMoodItemDataSourceA5BD018EName" + }, + "FunctionVersion": "2018-05-29", + "Name": "BoardMoodItemsDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c43305e324a276ceb315eb5da935c30dac852757e2b7341b837c9e1b06f24ee5.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/49e7a1f2fb4c809b82bed6b0242a2a3bcfa2c5276ebd2539ff330fee36f8fe18.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/ConnectionStack/BoardMoodItemsDataResolverFn/BoardMoodItemsDataResolverFn.AppSyncFunction" + } + }, + "BoardmoodItemsResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "FieldName": "moodItems", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "BoardmoodItemsauth0FunctionBoardmoodItemsauth0FunctionAppSyncFunction24F8C273", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "BoardMoodItemsDataResolverFnBoardMoodItemsDataResolverFnAppSyncFunctionB8E73866", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Board\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"moodItems\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataMoodItemNestedStackMoodItemNestedStackResource909B7D4FOutputsamplifymoodboarde2esandbox799a4d1a84dataamplifyDataMoodItemMoodItemTableB6DE0468TableArn" + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Board" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/ConnectionStack/boardMoodItemsResolver" + } + }, + "MoodItemboardauth0FunctionMoodItemboardauth0FunctionAppSyncFunction416199D8": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MoodItemboardauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/98d57dc1efb9e47547e4d43b376202499240f34e43676c88c84fab62008b2bf5.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/ConnectionStack/MoodItemboardauth0Function/MoodItemboardauth0Function.AppSyncFunction" + } + }, + "MoodItemBoardDataResolverFnMoodItemBoardDataResolverFnAppSyncFunction5C7B0B1B": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataBoardNestedStackBoardNestedStackResource95BF389DOutputsamplifymoodboarde2esandbox799a4d1a84dataamplifyDataBoardBoardDataSource5B663EE3Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MoodItemBoardDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/6d2289d92845b8b42d4ce0b1ac3d7104ec906333c76cb76f4d424abf2bc8ca43.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/dcb70e4856bc9a423e02b8b9e9c2ab3f71479784572d4c04a02d1f5b61a9f9ac.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/ConnectionStack/MoodItemBoardDataResolverFn/MoodItemBoardDataResolverFn.AppSyncFunction" + } + }, + "MoodItemboardResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "FieldName": "board", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MoodItemboardauth0FunctionMoodItemboardauth0FunctionAppSyncFunction416199D8", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MoodItemBoardDataResolverFnMoodItemBoardDataResolverFnAppSyncFunction5C7B0B1B", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"MoodItem\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"board\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataBoardNestedStackBoardNestedStackResource95BF389DOutputsamplifymoodboarde2esandbox799a4d1a84dataamplifyDataBoardBoardTableE632E322TableArn" + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "MoodItem" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/ConnectionStack/moodItemBoardResolver" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXMQQ6CQAxA0bO4HyoO0b2QuHQBByB1KKSAHUJnIIZwd4OuXv7mW7DXFNITrpq4ZkhGfsH2JA3UVAHdYHDVetOsRlUKCvcDoxnk0Q0UclQyOE36EQdb0cojigvspfDSchdnPMIUrZSkflxo3nfze1QBO5ZuN+Ibgl7Pi7VwuUF66pU5maMEfhOUf7+QP0CWpwAAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/ConnectionStack/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId": { + "Type": "String" + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name": { + "Type": "String" + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataMoodItemNestedStackMoodItemNestedStackResource909B7D4FOutputsamplifymoodboarde2esandbox799a4d1a84dataamplifyDataMoodItemMoodItemDataSourceA5BD018EName": { + "Type": "String" + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataMoodItemNestedStackMoodItemNestedStackResource909B7D4FOutputsamplifymoodboarde2esandbox799a4d1a84dataamplifyDataMoodItemMoodItemTableB6DE0468TableArn": { + "Type": "String" + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref": { + "Type": "String" + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef": { + "Type": "String" + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref": { + "Type": "String" + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataBoardNestedStackBoardNestedStackResource95BF389DOutputsamplifymoodboarde2esandbox799a4d1a84dataamplifyDataBoardBoardDataSource5B663EE3Name": { + "Type": "String" + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataBoardNestedStackBoardNestedStackResource95BF389DOutputsamplifymoodboarde2esandbox799a4d1a84dataamplifyDataBoardBoardTableE632E322TableArn": { + "Type": "String" + } + } +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.description.txt b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.description.txt new file mode 100644 index 00000000000..6b3d983ba60 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.description.txt @@ -0,0 +1 @@ +An auto-generated nested stack for the @function directive. diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.outputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.outputs.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.outputs.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.parameters.json new file mode 100644 index 00000000000..aa830cade2c --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.parameters.json @@ -0,0 +1,22 @@ +[ + { + "ParameterKey": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef", + "ParameterValue": "amplify-moodboard26041500-amplifyAuthunauthenticate-2CR87a5ajww1" + }, + { + "ParameterKey": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref", + "ParameterValue": "us-east-1:edbce570-5f19-4755-9803-52e7b3e0c56d" + }, + { + "ParameterKey": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref", + "ParameterValue": "amplify-moodboard26041500-amplifyAuthauthenticatedU-inPzqwEs0wDw" + }, + { + "ParameterKey": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId", + "ParameterValue": "tr6hjslzxzextaawz3ftjzwqyi" + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.template.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.template.json new file mode 100644 index 00000000000..d573fb2dfd2 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.template.json @@ -0,0 +1,811 @@ +{ + "Description": "An auto-generated nested stack for the @function directive.", + "AWSTemplateFormatVersion": "2010-09-09", + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + "NONE", + "NONE" + ] + } + ] + }, + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Resources": { + "MoodboardGetRandomEmojiGen2VdtwfpnegxLambdaDataSourceServiceRole77D81545": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/MoodboardGetRandomEmojiGen2VdtwfpnegxLambdaDataSource/ServiceRole/Resource" + } + }, + "MoodboardGetRandomEmojiGen2VdtwfpnegxLambdaDataSourceServiceRoleDefaultPolicy35614345": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardGetRandomEmoji-gen2-x", + {} + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardGetRandomEmoji-gen2-x" + } + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardGetRandomEmoji-gen2-x", + {} + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardGetRandomEmoji-gen2-x" + } + ] + }, + ":*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "MoodboardGetRandomEmojiGen2VdtwfpnegxLambdaDataSourceServiceRoleDefaultPolicy35614345", + "Roles": [ + { + "Ref": "MoodboardGetRandomEmojiGen2VdtwfpnegxLambdaDataSourceServiceRole77D81545" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/MoodboardGetRandomEmojiGen2VdtwfpnegxLambdaDataSource/ServiceRole/DefaultPolicy/Resource" + } + }, + "MoodboardGetRandomEmojiGen2VdtwfpnegxLambdaDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "LambdaConfig": { + "LambdaFunctionArn": { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardGetRandomEmoji-gen2-x", + {} + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardGetRandomEmoji-gen2-x" + } + ] + } + }, + "Name": "MoodboardGetRandomEmojiGen2VdtwfpnegxLambdaDataSource", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "MoodboardGetRandomEmojiGen2VdtwfpnegxLambdaDataSourceServiceRole77D81545", + "Arn" + ] + }, + "Type": "AWS_LAMBDA" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/MoodboardGetRandomEmojiGen2VdtwfpnegxLambdaDataSource/Resource" + } + }, + "InvokeMoodboardGetRandomEmojiGen2VdtwfpnegxLambdaDataSourceInvokeMoodboardGetRandomEmojiGen2VdtwfpnegxLambdaDataSourceAppSyncFunction9978B68E": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "MoodboardGetRandomEmojiGen2VdtwfpnegxLambdaDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "InvokeMoodboardGetRandomEmojiGen2VdtwfpnegxLambdaDataSource", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9ef0f55e60cb027af37ca87b3340cd7e64524d369e44c18e257a2ae8dd4c8c8a.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a20e304512b1fde77dc16ed9d5e0ed03817afcab629ce87ef11c99877b7b1e30.vtl" + } + }, + "DependsOn": [ + "MoodboardGetRandomEmojiGen2VdtwfpnegxLambdaDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/InvokeMoodboardGetRandomEmojiGen2VdtwfpnegxLambdaDataSource/InvokeMoodboardGetRandomEmojiGen2VdtwfpnegxLambdaDataSource.AppSyncFunction" + } + }, + "QuerygetRandomEmojiResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "FieldName": "getRandomEmoji", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QueryGetRandomEmojiAuthFNQueryGetRandomEmojiAuthFNAppSyncFunction4A668110", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "InvokeMoodboardGetRandomEmojiGen2VdtwfpnegxLambdaDataSourceInvokeMoodboardGetRandomEmojiGen2VdtwfpnegxLambdaDataSourceAppSyncFunction9978B68E", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getRandomEmoji\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n{}\n## [End] Stash resolver specific context.. **" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/387d5992f5fc03d05de27289457dcc374a84c42a889acb504aff1031047dde00.vtl" + }, + "TypeName": "Query" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/queryGetRandomEmojiResolver" + } + }, + "MoodboardKinesisReaderGen2VdtwfpnegxLambdaDataSourceServiceRole4A135CFA": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/MoodboardKinesisReaderGen2VdtwfpnegxLambdaDataSource/ServiceRole/Resource" + } + }, + "MoodboardKinesisReaderGen2VdtwfpnegxLambdaDataSourceServiceRoleDefaultPolicy9AFABD5E": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardKinesisReader-gen2-x", + {} + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardKinesisReader-gen2-x" + } + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardKinesisReader-gen2-x", + {} + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardKinesisReader-gen2-x" + } + ] + }, + ":*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "MoodboardKinesisReaderGen2VdtwfpnegxLambdaDataSourceServiceRoleDefaultPolicy9AFABD5E", + "Roles": [ + { + "Ref": "MoodboardKinesisReaderGen2VdtwfpnegxLambdaDataSourceServiceRole4A135CFA" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/MoodboardKinesisReaderGen2VdtwfpnegxLambdaDataSource/ServiceRole/DefaultPolicy/Resource" + } + }, + "MoodboardKinesisReaderGen2VdtwfpnegxLambdaDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "LambdaConfig": { + "LambdaFunctionArn": { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardKinesisReader-gen2-x", + {} + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardKinesisReader-gen2-x" + } + ] + } + }, + "Name": "MoodboardKinesisReaderGen2VdtwfpnegxLambdaDataSource", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "MoodboardKinesisReaderGen2VdtwfpnegxLambdaDataSourceServiceRole4A135CFA", + "Arn" + ] + }, + "Type": "AWS_LAMBDA" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/MoodboardKinesisReaderGen2VdtwfpnegxLambdaDataSource/Resource" + } + }, + "InvokeMoodboardKinesisReaderGen2VdtwfpnegxLambdaDataSourceInvokeMoodboardKinesisReaderGen2VdtwfpnegxLambdaDataSourceAppSyncFunction38679A06": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "MoodboardKinesisReaderGen2VdtwfpnegxLambdaDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "InvokeMoodboardKinesisReaderGen2VdtwfpnegxLambdaDataSource", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/ba3dab21b86f1b9e3101634063969c38823335fbaca1001fd4449d802ebb3035.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a20e304512b1fde77dc16ed9d5e0ed03817afcab629ce87ef11c99877b7b1e30.vtl" + } + }, + "DependsOn": [ + "MoodboardKinesisReaderGen2VdtwfpnegxLambdaDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/InvokeMoodboardKinesisReaderGen2VdtwfpnegxLambdaDataSource/InvokeMoodboardKinesisReaderGen2VdtwfpnegxLambdaDataSource.AppSyncFunction" + } + }, + "QuerygetKinesisEventsResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "FieldName": "getKinesisEvents", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QueryGetKinesisEventsAuthFNQueryGetKinesisEventsAuthFNAppSyncFunctionC22C8158", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "InvokeMoodboardKinesisReaderGen2VdtwfpnegxLambdaDataSourceInvokeMoodboardKinesisReaderGen2VdtwfpnegxLambdaDataSourceAppSyncFunction38679A06", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getKinesisEvents\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n{}\n## [End] Stash resolver specific context.. **" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/387d5992f5fc03d05de27289457dcc374a84c42a889acb504aff1031047dde00.vtl" + }, + "TypeName": "Query" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/queryGetKinesisEventsResolver" + } + }, + "QueryGetRandomEmojiAuthFNQueryGetRandomEmojiAuthFNAppSyncFunction4A668110": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryGetRandomEmojiAuthFN", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/3d72cc99f51abdee9e8ef0ac8f5f84a36b933ea339e0dabbc93ff98009dbf274.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/QueryGetRandomEmojiAuthFN/QueryGetRandomEmojiAuthFN.AppSyncFunction" + } + }, + "QueryGetKinesisEventsAuthFNQueryGetKinesisEventsAuthFNAppSyncFunctionC22C8158": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryGetKinesisEventsAuthFN", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/3d72cc99f51abdee9e8ef0ac8f5f84a36b933ea339e0dabbc93ff98009dbf274.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/QueryGetKinesisEventsAuthFN/QueryGetKinesisEventsAuthFN.AppSyncFunction" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOQWvDMAyFf0vvjpalbPc1o6cxRvIDimorQY0jl8huKSH/fdhlh50+vSe9hxpo3mqod3jXyrqp8nyG9Zs0kusj2sm0g7RBHEcOYvCup9XjfHYIxyQ2mwdUMni96kMsrF9l+YkR+5AWSzn/X/3l2iADj2nB0twO0pEGf6NlM4wzrF3w5b7wJ3i2jyyf02Z0f0JVigofGUb3cEh2opj/2Uwx+4gjy7gZCY7goi+3poHXd6h3F2WuliSRZ4LuyV9Irx7YCwEAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Parameters": { + "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId": { + "Type": "String" + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref": { + "Type": "String" + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef": { + "Type": "String" + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref": { + "Type": "String" + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name": { + "Type": "String" + } + } +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataMoodItemNestedStackMoodItemNest-x.description.txt b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataMoodItemNestedStackMoodItemNest-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataMoodItemNestedStackMoodItemNest-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataMoodItemNestedStackMoodItemNest-x.outputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataMoodItemNestedStackMoodItemNest-x.outputs.json new file mode 100644 index 00000000000..0b5f6a0b741 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataMoodItemNestedStackMoodItemNest-x.outputs.json @@ -0,0 +1,22 @@ +[ + { + "OutputKey": "GetAttMoodItemTableStreamArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/MoodItem-pd6mhagtyveltorgdvv7movvqq-x/stream/2026-04-15T04:22:18.110", + "Description": "Your DynamoDB table StreamArn.", + "ExportName": "tr6hjslzxzextaawz3ftjzwqyi:GetAtt:MoodItemTable:StreamArn" + }, + { + "OutputKey": "amplifymoodboarde2esandbox799a4d1a84dataamplifyDataMoodItemMoodItemTableB6DE0468TableArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/MoodItem-pd6mhagtyveltorgdvv7movvqq-x" + }, + { + "OutputKey": "GetAttMoodItemTableName", + "OutputValue": "MoodItem-pd6mhagtyveltorgdvv7movvqq-x", + "Description": "Your DynamoDB table name.", + "ExportName": "tr6hjslzxzextaawz3ftjzwqyi:GetAtt:MoodItemTable:Name" + }, + { + "OutputKey": "amplifymoodboarde2esandbox799a4d1a84dataamplifyDataMoodItemMoodItemDataSourceA5BD018EName", + "OutputValue": "MoodItemTable" + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataMoodItemNestedStackMoodItemNest-x.parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataMoodItemNestedStackMoodItemNest-x.parameters.json new file mode 100644 index 00000000000..7c3d5b073e5 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataMoodItemNestedStackMoodItemNest-x.parameters.json @@ -0,0 +1,46 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef", + "ParameterValue": "amplify-moodboard26041500-amplifyAuthunauthenticate-2CR87a5ajww1" + }, + { + "ParameterKey": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref", + "ParameterValue": "us-east-1:edbce570-5f19-4755-9803-52e7b3e0c56d" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "true" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceEA62CF6FOutputsamplifymoodboarde2esandbox799a4d1a84dataamplifyDataAmplifyTableManagerTable4639D399", + "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-moodboard26041500-TableManagerCustomProvid-0cddn7ioQo2v" + }, + { + "ParameterKey": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref", + "ParameterValue": "amplify-moodboard26041500-amplifyAuthauthenticatedU-inPzqwEs0wDw" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId", + "ParameterValue": "tr6hjslzxzextaawz3ftjzwqyi" + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataMoodItemNestedStackMoodItemNest-x.template.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataMoodItemNestedStackMoodItemNest-x.template.json new file mode 100644 index 00000000000..a349d8cb116 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-amplifyDataMoodItemNestedStackMoodItemNest-x.template.json @@ -0,0 +1,2259 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceEA62CF6FOutputsamplifymoodboarde2esandbox799a4d1a84dataamplifyDataAmplifyTableManagerTable4639D399": { + "Type": "String" + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId": { + "Type": "String" + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name": { + "Type": "String" + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref": { + "Type": "String" + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef": { + "Type": "String" + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + "NONE", + "NONE" + ] + } + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + }, + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Resources": { + "MoodItemTable": { + "Type": "Custom::ImportedAmplifyDynamoDBTable", + "Properties": { + "ServiceToken": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceEA62CF6FOutputsamplifymoodboarde2esandbox799a4d1a84dataamplifyDataAmplifyTableManagerTable4639D399" + }, + "tableName": "MoodItem-pd6mhagtyveltorgdvv7movvqq-x", + "attributeDefinitions": [ + { + "attributeName": "id", + "attributeType": "S" + }, + { + "attributeName": "boardID", + "attributeType": "S" + } + ], + "keySchema": [ + { + "attributeName": "id", + "keyType": "HASH" + } + ], + "globalSecondaryIndexes": [ + { + "indexName": "byBoard", + "keySchema": [ + { + "attributeName": "boardID", + "keyType": "HASH" + } + ], + "projection": { + "projectionType": "ALL" + }, + "provisionedThroughput": { + "readCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "writeCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + } + ], + "provisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "sseSpecification": { + "sseEnabled": false + }, + "streamSpecification": { + "streamViewType": "NEW_AND_OLD_IMAGES" + }, + "deletionProtectionEnabled": true, + "allowDestructiveGraphqlSchemaUpdates": true, + "replaceTableUponGsiUpdate": false, + "isImported": true, + "pointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "billingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/MoodItem/MoodItemTable/Default/Default" + } + }, + "MoodItemIAMRoleF26F66C1": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem", + "dynamodb:ConditionCheckItem", + "dynamodb:DescribeTable", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": "MoodItem-pd6mhagtyveltorgdvv7movvqq-x" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": "MoodItem-pd6mhagtyveltorgdvv7movvqq-x" + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess" + } + ], + "RoleName": { + "Fn::Join": [ + "", + [ + "MoodItemIAMRoleceb4fa-", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "-NONE" + ] + ] + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/MoodItem/MoodItemIAMRole/Resource" + } + }, + "MoodItemDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "MoodItemTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + } + }, + "Name": "MoodItemTable", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "MoodItemIAMRoleF26F66C1", + "Arn" + ] + }, + "Type": "AMAZON_DYNAMODB" + }, + "DependsOn": [ + "MoodItemIAMRoleF26F66C1" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/MoodItem/MoodItemDataSource/Resource" + } + }, + "QuerygetMoodItemauth0FunctionQuerygetMoodItemauth0FunctionAppSyncFunctionCAE48F92": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetMoodItemauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/0224a3e5097427da3f4460b5d6d2b86ad4195c9cb8da7bc13e7187eead1c3ae3.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/MoodItem/QuerygetMoodItemauth0Function/QuerygetMoodItemauth0Function.AppSyncFunction" + } + }, + "QuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunction58B7D6AA": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetMoodItempostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/MoodItem/QuerygetMoodItempostAuth0Function/QuerygetMoodItempostAuth0Function.AppSyncFunction" + } + }, + "QueryGetMoodItemDataResolverFnQueryGetMoodItemDataResolverFnAppSyncFunction0BCF2013": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "MoodItemDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryGetMoodItemDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/08f4d557693d96c1a4efba0f9dc91330e4b19772fd5477c156468843e3d9cb5e.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4c6a2d29f01c6091bd1d9afe16e5849d456c96f17c3b215938c8067399532719.vtl" + } + }, + "DependsOn": [ + "MoodItemDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/MoodItem/QueryGetMoodItemDataResolverFn/QueryGetMoodItemDataResolverFn.AppSyncFunction" + } + }, + "GetMoodItemResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "FieldName": "getMoodItem", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerygetMoodItemauth0FunctionQuerygetMoodItemauth0FunctionAppSyncFunctionCAE48F92", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunction58B7D6AA", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryGetMoodItemDataResolverFnQueryGetMoodItemDataResolverFnAppSyncFunction0BCF2013", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getMoodItem\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "MoodItemTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/MoodItem/queryGetMoodItemResolver" + } + }, + "QuerylistMoodItemsauth0FunctionQuerylistMoodItemsauth0FunctionAppSyncFunctionA44D3C4D": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerylistMoodItemsauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/0224a3e5097427da3f4460b5d6d2b86ad4195c9cb8da7bc13e7187eead1c3ae3.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/MoodItem/QuerylistMoodItemsauth0Function/QuerylistMoodItemsauth0Function.AppSyncFunction" + } + }, + "QuerylistMoodItemspostAuth0FunctionQuerylistMoodItemspostAuth0FunctionAppSyncFunctionAD9FFABD": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerylistMoodItemspostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/MoodItem/QuerylistMoodItemspostAuth0Function/QuerylistMoodItemspostAuth0Function.AppSyncFunction" + } + }, + "QueryListMoodItemsDataResolverFnQueryListMoodItemsDataResolverFnAppSyncFunction970FB8D0": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "MoodItemDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryListMoodItemsDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9fcbe070ecd3023c5bf5b966fa9584757db9762eef123bad0820bd87591b2174.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/cc01911d0269d4080ea57505dc445dfc315ef7ad85d3d9d4ea1357858bff451d.vtl" + } + }, + "DependsOn": [ + "MoodItemDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/MoodItem/QueryListMoodItemsDataResolverFn/QueryListMoodItemsDataResolverFn.AppSyncFunction" + } + }, + "ListMoodItemResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "FieldName": "listMoodItems", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerylistMoodItemsauth0FunctionQuerylistMoodItemsauth0FunctionAppSyncFunctionA44D3C4D", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerylistMoodItemspostAuth0FunctionQuerylistMoodItemspostAuth0FunctionAppSyncFunctionAD9FFABD", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryListMoodItemsDataResolverFnQueryListMoodItemsDataResolverFnAppSyncFunction970FB8D0", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listMoodItems\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "MoodItemTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/MoodItem/queryListMoodItemsResolver" + } + }, + "MutationcreateMoodIteminit0FunctionMutationcreateMoodIteminit0FunctionAppSyncFunction0FB01D04": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateMoodIteminit0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a183ddccbd956316c38ef97177b8f088ef0826f62023323f5ae6053d348ccffc.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/MoodItem/MutationcreateMoodIteminit0Function/MutationcreateMoodIteminit0Function.AppSyncFunction" + } + }, + "MutationcreateMoodItemauth0FunctionMutationcreateMoodItemauth0FunctionAppSyncFunction27CBB022": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateMoodItemauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/d637c1fb7301003b8a5ada269338cf2e8df6cc0dc412ef13acc6158d680b6d3e.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/MoodItem/MutationcreateMoodItemauth0Function/MutationcreateMoodItemauth0Function.AppSyncFunction" + } + }, + "MutationcreateMoodItempostAuth0FunctionMutationcreateMoodItempostAuth0FunctionAppSyncFunctionB8D432CF": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateMoodItempostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/MoodItem/MutationcreateMoodItempostAuth0Function/MutationcreateMoodItempostAuth0Function.AppSyncFunction" + } + }, + "MutationCreateMoodItemDataResolverFnMutationCreateMoodItemDataResolverFnAppSyncFunction050303E2": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "MoodItemDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationCreateMoodItemDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/53b4f00b338e3d78c439614cf83f24225044472934104f5a87ea5f84be97977b.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "MoodItemDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/MoodItem/MutationCreateMoodItemDataResolverFn/MutationCreateMoodItemDataResolverFn.AppSyncFunction" + } + }, + "CreateMoodItemResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "FieldName": "createMoodItem", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationcreateMoodIteminit0FunctionMutationcreateMoodIteminit0FunctionAppSyncFunction0FB01D04", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationcreateMoodItemauth0FunctionMutationcreateMoodItemauth0FunctionAppSyncFunction27CBB022", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationcreateMoodItempostAuth0FunctionMutationcreateMoodItempostAuth0FunctionAppSyncFunctionB8D432CF", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationCreateMoodItemDataResolverFnMutationCreateMoodItemDataResolverFnAppSyncFunction050303E2", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createMoodItem\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "MoodItemTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/MoodItem/mutationCreateMoodItemResolver" + } + }, + "MutationupdateMoodIteminit0FunctionMutationupdateMoodIteminit0FunctionAppSyncFunctionF04BFE8B": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateMoodIteminit0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/06db846fd14e6fc371f22b12b5545ba8e2dbfeda85d8c8d586c71c282166657b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/MoodItem/MutationupdateMoodIteminit0Function/MutationupdateMoodIteminit0Function.AppSyncFunction" + } + }, + "MutationupdateMoodItemauth0FunctionMutationupdateMoodItemauth0FunctionAppSyncFunctionD40CC9A2": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "MoodItemDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateMoodItemauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/89f92efd98b1034df0e2497fe31a97de6975de554b8a22e0677d05d6efcafa59.vtl" + } + }, + "DependsOn": [ + "MoodItemDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/MoodItem/MutationupdateMoodItemauth0Function/MutationupdateMoodItemauth0Function.AppSyncFunction" + } + }, + "MutationupdateMoodItempostAuth0FunctionMutationupdateMoodItempostAuth0FunctionAppSyncFunction00B96B17": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateMoodItempostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/MoodItem/MutationupdateMoodItempostAuth0Function/MutationupdateMoodItempostAuth0Function.AppSyncFunction" + } + }, + "MutationUpdateMoodItemDataResolverFnMutationUpdateMoodItemDataResolverFnAppSyncFunction3EC4BB9B": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "MoodItemDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationUpdateMoodItemDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/474bf0776ec2164a13191d1a0a9e057154931e4918fea5086f49850d02a5371b.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "MoodItemDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/MoodItem/MutationUpdateMoodItemDataResolverFn/MutationUpdateMoodItemDataResolverFn.AppSyncFunction" + } + }, + "UpdateMoodItemResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "FieldName": "updateMoodItem", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationupdateMoodIteminit0FunctionMutationupdateMoodIteminit0FunctionAppSyncFunctionF04BFE8B", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationupdateMoodItemauth0FunctionMutationupdateMoodItemauth0FunctionAppSyncFunctionD40CC9A2", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationupdateMoodItempostAuth0FunctionMutationupdateMoodItempostAuth0FunctionAppSyncFunction00B96B17", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationUpdateMoodItemDataResolverFnMutationUpdateMoodItemDataResolverFnAppSyncFunction3EC4BB9B", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateMoodItem\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "MoodItemTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/MoodItem/mutationUpdateMoodItemResolver" + } + }, + "MutationdeleteMoodItemauth0FunctionMutationdeleteMoodItemauth0FunctionAppSyncFunction959662BA": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "MoodItemDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeleteMoodItemauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e3416b4d47414f29c21e59a70e83bddb959ef0625854ed7fb0ca376573e99069.vtl" + } + }, + "DependsOn": [ + "MoodItemDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/MoodItem/MutationdeleteMoodItemauth0Function/MutationdeleteMoodItemauth0Function.AppSyncFunction" + } + }, + "MutationdeleteMoodItempostAuth0FunctionMutationdeleteMoodItempostAuth0FunctionAppSyncFunction741ED338": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeleteMoodItempostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/MoodItem/MutationdeleteMoodItempostAuth0Function/MutationdeleteMoodItempostAuth0Function.AppSyncFunction" + } + }, + "MutationDeleteMoodItemDataResolverFnMutationDeleteMoodItemDataResolverFnAppSyncFunction06493368": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "MoodItemDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationDeleteMoodItemDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4f7907d1209a2c9953a0c053df402c634e359546d70c7cc5c2e8e21ea734880f.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "MoodItemDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/MoodItem/MutationDeleteMoodItemDataResolverFn/MutationDeleteMoodItemDataResolverFn.AppSyncFunction" + } + }, + "DeleteMoodItemResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "FieldName": "deleteMoodItem", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationdeleteMoodItemauth0FunctionMutationdeleteMoodItemauth0FunctionAppSyncFunction959662BA", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationdeleteMoodItempostAuth0FunctionMutationdeleteMoodItempostAuth0FunctionAppSyncFunction741ED338", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationDeleteMoodItemDataResolverFnMutationDeleteMoodItemDataResolverFnAppSyncFunction06493368", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteMoodItem\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "MoodItemTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/MoodItem/mutationDeleteMoodItemResolver" + } + }, + "SubscriptiononCreateMoodItemauth0FunctionSubscriptiononCreateMoodItemauth0FunctionAppSyncFunctionA9BF5E3B": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononCreateMoodItemauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e6da5a6e993df8b5fdc91086b71eb53e72a3a97c98836ef9c9257776f36c452b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/MoodItem/SubscriptiononCreateMoodItemauth0Function/SubscriptiononCreateMoodItemauth0Function.AppSyncFunction" + } + }, + "SubscriptiononCreateMoodItempostAuth0FunctionSubscriptiononCreateMoodItempostAuth0FunctionAppSyncFunctionCDB4A67E": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononCreateMoodItempostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/MoodItem/SubscriptiononCreateMoodItempostAuth0Function/SubscriptiononCreateMoodItempostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnCreateMoodItemDataResolverFnSubscriptionOnCreateMoodItemDataResolverFnAppSyncFunction913B4EC5": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnCreateMoodItemDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/MoodItem/SubscriptionOnCreateMoodItemDataResolverFn/SubscriptionOnCreateMoodItemDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononCreateMoodItemResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "FieldName": "onCreateMoodItem", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononCreateMoodItemauth0FunctionSubscriptiononCreateMoodItemauth0FunctionAppSyncFunctionA9BF5E3B", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononCreateMoodItempostAuth0FunctionSubscriptiononCreateMoodItempostAuth0FunctionAppSyncFunctionCDB4A67E", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnCreateMoodItemDataResolverFnSubscriptionOnCreateMoodItemDataResolverFnAppSyncFunction913B4EC5", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateMoodItem\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/MoodItem/subscriptionOnCreateMoodItemResolver" + } + }, + "SubscriptiononUpdateMoodItemauth0FunctionSubscriptiononUpdateMoodItemauth0FunctionAppSyncFunction590856A0": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononUpdateMoodItemauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e6da5a6e993df8b5fdc91086b71eb53e72a3a97c98836ef9c9257776f36c452b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/MoodItem/SubscriptiononUpdateMoodItemauth0Function/SubscriptiononUpdateMoodItemauth0Function.AppSyncFunction" + } + }, + "SubscriptiononUpdateMoodItempostAuth0FunctionSubscriptiononUpdateMoodItempostAuth0FunctionAppSyncFunction8CA329BE": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononUpdateMoodItempostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/MoodItem/SubscriptiononUpdateMoodItempostAuth0Function/SubscriptiononUpdateMoodItempostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnUpdateMoodItemDataResolverFnSubscriptionOnUpdateMoodItemDataResolverFnAppSyncFunction45DD1E87": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnUpdateMoodItemDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/MoodItem/SubscriptionOnUpdateMoodItemDataResolverFn/SubscriptionOnUpdateMoodItemDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononUpdateMoodItemResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "FieldName": "onUpdateMoodItem", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononUpdateMoodItemauth0FunctionSubscriptiononUpdateMoodItemauth0FunctionAppSyncFunction590856A0", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononUpdateMoodItempostAuth0FunctionSubscriptiononUpdateMoodItempostAuth0FunctionAppSyncFunction8CA329BE", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnUpdateMoodItemDataResolverFnSubscriptionOnUpdateMoodItemDataResolverFnAppSyncFunction45DD1E87", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateMoodItem\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/MoodItem/subscriptionOnUpdateMoodItemResolver" + } + }, + "SubscriptiononDeleteMoodItemauth0FunctionSubscriptiononDeleteMoodItemauth0FunctionAppSyncFunction2E2D8889": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononDeleteMoodItemauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e6da5a6e993df8b5fdc91086b71eb53e72a3a97c98836ef9c9257776f36c452b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/MoodItem/SubscriptiononDeleteMoodItemauth0Function/SubscriptiononDeleteMoodItemauth0Function.AppSyncFunction" + } + }, + "SubscriptiononDeleteMoodItempostAuth0FunctionSubscriptiononDeleteMoodItempostAuth0FunctionAppSyncFunction5A677600": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononDeleteMoodItempostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/MoodItem/SubscriptiononDeleteMoodItempostAuth0Function/SubscriptiononDeleteMoodItempostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnDeleteMoodItemDataResolverFnSubscriptionOnDeleteMoodItemDataResolverFnAppSyncFunction8A0A705A": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnDeleteMoodItemDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/MoodItem/SubscriptionOnDeleteMoodItemDataResolverFn/SubscriptionOnDeleteMoodItemDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononDeleteMoodItemResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "FieldName": "onDeleteMoodItem", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononDeleteMoodItemauth0FunctionSubscriptiononDeleteMoodItemauth0FunctionAppSyncFunction2E2D8889", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononDeleteMoodItempostAuth0FunctionSubscriptiononDeleteMoodItempostAuth0FunctionAppSyncFunction5A677600", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnDeleteMoodItemDataResolverFnSubscriptionOnDeleteMoodItemDataResolverFnAppSyncFunction8A0A705A", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteMoodItem\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/MoodItem/subscriptionOnDeleteMoodItemResolver" + } + }, + "QuerymoodItemsByBoardIDauth0FunctionQuerymoodItemsByBoardIDauth0FunctionAppSyncFunction94DDBFF3": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerymoodItemsByBoardIDauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/0224a3e5097427da3f4460b5d6d2b86ad4195c9cb8da7bc13e7187eead1c3ae3.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/MoodItem/QuerymoodItemsByBoardIDauth0Function/QuerymoodItemsByBoardIDauth0Function.AppSyncFunction" + } + }, + "QuerymoodItemsByBoardIDpostAuth0FunctionQuerymoodItemsByBoardIDpostAuth0FunctionAppSyncFunctionB0CA83ED": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerymoodItemsByBoardIDpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/MoodItem/QuerymoodItemsByBoardIDpostAuth0Function/QuerymoodItemsByBoardIDpostAuth0Function.AppSyncFunction" + } + }, + "QueryMoodItemsByBoardIDDataResolverFnQueryMoodItemsByBoardIDDataResolverFnAppSyncFunction6B85D371": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "MoodItemDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryMoodItemsByBoardIDDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e31d3d392fa7f272916857f1b78ccc6e62a6fd2874eb15e6d107b19afe501fc4.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/098c998f215c333f57348ca8912f66057ae6b574fe34013033dc54362ee2372c.vtl" + } + }, + "DependsOn": [ + "MoodItemDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/MoodItem/QueryMoodItemsByBoardIDDataResolverFn/QueryMoodItemsByBoardIDDataResolverFn.AppSyncFunction" + } + }, + "QuerymoodItemsByBoardIDResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "FieldName": "moodItemsByBoardID", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerymoodItemsByBoardIDauth0FunctionQuerymoodItemsByBoardIDauth0FunctionAppSyncFunction94DDBFF3", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerymoodItemsByBoardIDpostAuth0FunctionQuerymoodItemsByBoardIDpostAuth0FunctionAppSyncFunctionB0CA83ED", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryMoodItemsByBoardIDDataResolverFnQueryMoodItemsByBoardIDDataResolverFnAppSyncFunction6B85D371", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"moodItemsByBoardID\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "MoodItemTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/MoodItem/queryMoodItemsByBoardIDResolver" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOwW6DMAyGn6X31GNU230F7bhNsHtlEoNSwEGx06pCvPsEnTrt9PuTP9l/DvlLBtkOr7K3rt8PvoH5g0TJ1Yq2N0XLXxhxJKW4QhHYefWBTUUSUrRkiiQaxj9s+THjVU6zuzGOwTXwjc1ARxQyHkeYqzDc7TDQYnCa5MYW5nLTy6ZExfpx8j+9J7ZriSJw67sUcWv0+3m4UFyMHE4oQirwtoaRAxyT7UnXAsvqfiadkpptXSt2nrvFcHAEZ3m65Dk8v0K2O4v3+5hY/UhQ3fMHIPwRXTYBAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/MoodItem/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Outputs": { + "GetAttMoodItemTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "MoodItemTable", + "TableStreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "GetAtt:MoodItemTable:StreamArn" + ] + ] + } + } + }, + "GetAttMoodItemTableName": { + "Description": "Your DynamoDB table name.", + "Value": "MoodItem-pd6mhagtyveltorgdvv7movvqq-x", + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + }, + "GetAtt:MoodItemTable:Name" + ] + ] + } + } + }, + "amplifymoodboarde2esandbox799a4d1a84dataamplifyDataMoodItemMoodItemDataSourceA5BD018EName": { + "Value": { + "Fn::GetAtt": [ + "MoodItemDataSource", + "Name" + ] + } + }, + "amplifymoodboarde2esandbox799a4d1a84dataamplifyDataMoodItemMoodItemTableB6DE0468TableArn": { + "Value": { + "Fn::GetAtt": [ + "MoodItemTable", + "TableArn" + ] + } + } + } +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x.description.txt b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x.description.txt new file mode 100644 index 00000000000..46446793250 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"AmplifySandbox","createdWith":"1.22.0","stackType":"custom","metadata":{}} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x.outputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x.outputs.json new file mode 100644 index 00000000000..abd61114377 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x.outputs.json @@ -0,0 +1,18 @@ +[ + { + "OutputKey": "kinesisStreamId", + "OutputValue": "moodboardKinesis-gen2-x" + }, + { + "OutputKey": "amplifymoodboarde2esandbox799a4d1a84analyticsmoodboardKinesisKinesisStream1161343BArn", + "OutputValue": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-gen2-x" + }, + { + "OutputKey": "kinesisStreamShardCount", + "OutputValue": "1" + }, + { + "OutputKey": "kinesisStreamArn", + "OutputValue": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-gen2-x" + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x.parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x.parameters.json new file mode 100644 index 00000000000..a5356bbc1a2 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x.parameters.json @@ -0,0 +1,10 @@ +[ + { + "ParameterKey": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef", + "ParameterValue": "amplify-moodboard26041500-amplifyAuthunauthenticate-2CR87a5ajww1" + }, + { + "ParameterKey": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref", + "ParameterValue": "amplify-moodboard26041500-amplifyAuthauthenticatedU-inPzqwEs0wDw" + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x.template.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x.template.json new file mode 100644 index 00000000000..fddeea8f324 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-analytics5794DE4A-x.template.json @@ -0,0 +1,405 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.22.0\",\"stackType\":\"custom\",\"metadata\":{}}", + "Resources": { + "moodboardKinesisKinesisStreamD5E97047": { + "Type": "AWS::Kinesis::Stream", + "Properties": { + "Name": "moodboardKinesis-gen2-x", + "ShardCount": 1, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/analytics/moodboardKinesis/KinesisStream" + } + }, + "moodboardKinesisCognitoAuthPolicyB69F4FA6": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "kinesis:PutRecord", + "kinesis:PutRecords" + ], + "Resource": { + "Fn::GetAtt": [ + "moodboardKinesisKinesisStreamD5E97047", + "Arn" + ] + } + } + ] + }, + "PolicyName": "moodboardKinesis-auth-policy-gen2-x", + "Roles": [ + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/analytics/moodboardKinesis/CognitoAuthPolicy" + } + }, + "moodboardKinesisCognitoUnauthPolicyC4CE1D44": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "kinesis:PutRecord", + "kinesis:PutRecords" + ], + "Resource": { + "Fn::GetAtt": [ + "moodboardKinesisKinesisStreamD5E97047", + "Arn" + ] + } + } + ] + }, + "PolicyName": "moodboardKinesis-unauth-policy-gen2-x", + "Roles": [ + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/analytics/moodboardKinesis/CognitoUnauthPolicy" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXHUQrCMAwA0LPsv421MC+wfxV3AIltBlnXTpbUIWN3H+LX43nwrQPX4Co2xGQnfsF2JVGKvWJIBld5bokLCQt0Q+l1IcyGMf92nycO3910Q7lVfVfdTZkjwSinj/dwvoBrRmG2Sy3KmeDx9wDnXMcSdwAAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/analytics/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Outputs": { + "kinesisStreamArn": { + "Value": { + "Fn::GetAtt": [ + "moodboardKinesisKinesisStreamD5E97047", + "Arn" + ] + } + }, + "kinesisStreamId": { + "Value": { + "Ref": "moodboardKinesisKinesisStreamD5E97047" + } + }, + "kinesisStreamShardCount": { + "Value": "1" + }, + "amplifymoodboarde2esandbox799a4d1a84analyticsmoodboardKinesisKinesisStream1161343BArn": { + "Value": { + "Fn::GetAtt": [ + "moodboardKinesisKinesisStreamD5E97047", + "Arn" + ] + } + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref": { + "Type": "String" + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef": { + "Type": "String" + } + } +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-auth179371D7-x.description.txt b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-auth179371D7-x.description.txt new file mode 100644 index 00000000000..b66e3e0b9e2 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-auth179371D7-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"AmplifySandbox","createdWith":"1.11.2","stackType":"auth-Cognito","metadata":{}} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-auth179371D7-x.outputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-auth179371D7-x.outputs.json new file mode 100644 index 00000000000..9a655524bc9 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-auth179371D7-x.outputs.json @@ -0,0 +1,22 @@ +[ + { + "OutputKey": "amplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref", + "OutputValue": "us-east-1:edbce570-5f19-4755-9803-52e7b3e0c56d" + }, + { + "OutputKey": "amplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef", + "OutputValue": "amplify-moodboard26041500-amplifyAuthunauthenticate-2CR87a5ajww1" + }, + { + "OutputKey": "amplifymoodboarde2esandbox799a4d1a84authamplifyAuthUserPoolC3F32E8CRef", + "OutputValue": "us-east-1_K3ZcFPo5Q" + }, + { + "OutputKey": "amplifymoodboarde2esandbox799a4d1a84authamplifyAuthUserPoolAppClientFBE59DFARef", + "OutputValue": "7jnfsfml09seoak5857srhn920" + }, + { + "OutputKey": "amplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref", + "OutputValue": "amplify-moodboard26041500-amplifyAuthauthenticatedU-inPzqwEs0wDw" + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-auth179371D7-x.parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-auth179371D7-x.parameters.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-auth179371D7-x.parameters.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-auth179371D7-x.template.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-auth179371D7-x.template.json new file mode 100644 index 00000000000..f47b1db6e0a --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-auth179371D7-x.template.json @@ -0,0 +1,632 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", + "Resources": { + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AccountRecoverySetting": { + "RecoveryMechanisms": [ + { + "Name": "verified_email", + "Priority": 1 + } + ] + }, + "AdminCreateUserConfig": { + "AllowAdminCreateUserOnly": false + }, + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": 8, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false, + "TemporaryPasswordValidityDays": 7 + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "SmsVerificationMessage": "The verification code to your new account is {####}", + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolTags": { + "amplify:deployment-type": "sandbox", + "amplify:friendly-name": "amplifyAuth", + "created-by": "amplify" + }, + "UsernameAttributes": [ + "email" + ], + "UsernameConfiguration": { + "CaseSensitive": false + }, + "VerificationMessageTemplate": { + "DefaultEmailOption": "CONFIRM_WITH_CODE", + "EmailMessage": "Your verification code is {####}", + "EmailSubject": "Your verification code", + "SmsMessage": "The verification code to your new account is {####}" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/auth/amplifyAuth/UserPool/Resource" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 43200, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": { + "Ref": "amplifyAuthUserPool4BA7F805" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlows": [ + "code" + ], + "AllowedOAuthFlowsUserPoolClient": true, + "AllowedOAuthScopes": [ + "profile", + "phone", + "email", + "openid", + "aws.cognito.signin.user.admin" + ], + "CallbackURLs": [ + "https://example.com" + ], + "ExplicitAuthFlows": [ + "ALLOW_CUSTOM_AUTH", + "ALLOW_USER_SRP_AUTH", + "ALLOW_REFRESH_TOKEN_AUTH" + ], + "PreventUserExistenceErrors": "ENABLED", + "SupportedIdentityProviders": [ + "COGNITO" + ], + "UserPoolId": { + "Ref": "amplifyAuthUserPool4BA7F805" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/auth/amplifyAuth/UserPoolAppClient/Resource" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": true, + "CognitoIdentityProviders": [ + { + "ClientId": { + "Ref": "amplifyAuthUserPoolAppClient2626C6F8" + }, + "ProviderName": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + { + "Ref": "amplifyAuthUserPool4BA7F805" + } + ] + ] + } + } + ], + "IdentityPoolTags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "SupportedLoginProviders": {} + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/auth/amplifyAuth/IdentityPool" + } + }, + "amplifyAuthauthenticatedUserRoleD8DA3689": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/auth/amplifyAuth/authenticatedUserRole/Resource" + } + }, + "amplifyAuthunauthenticatedUserRole2B524D9E": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "unauthenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/auth/amplifyAuth/unauthenticatedUserRole/Resource" + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + }, + "RoleMappings": { + "UserPoolWebClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + { + "Ref": "amplifyAuthUserPool4BA7F805" + }, + ":", + { + "Ref": "amplifyAuthUserPoolAppClient2626C6F8" + } + ] + ] + }, + "Type": "Token" + } + }, + "Roles": { + "unauthenticated": { + "Fn::GetAtt": [ + "amplifyAuthunauthenticatedUserRole2B524D9E", + "Arn" + ] + }, + "authenticated": { + "Fn::GetAtt": [ + "amplifyAuthauthenticatedUserRoleD8DA3689", + "Arn" + ] + } + } + }, + "DependsOn": [ + "amplifyAuthIdentityPool3FDE84CC", + "amplifyAuthUserPoolAppClient2626C6F8" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/auth/amplifyAuth/IdentityPoolRoleAttachment" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/02LwQrCMBBEv6X3dK0BvUtPXkQqniUmq26bbqBZLRLy71Kk2tPMvJnRoDcVVIUZY2ldV3q6QjpgFHQnMbZTZoyXZMOdSQKkc8ThGIJX9Y1/fja1J2RZVn+yd8hC8p7Py9wEjzsRYx89smRFpoc0wWk4ac5ZcXAIbVy9tIb1FqqijUTl8GShHqH56gf10GUazgAAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/auth/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifymoodboarde2esandbox799a4d1a84authamplifyAuthUserPoolC3F32E8CRef": { + "Value": { + "Ref": "amplifyAuthUserPool4BA7F805" + } + }, + "amplifymoodboarde2esandbox799a4d1a84authamplifyAuthUserPoolAppClientFBE59DFARef": { + "Value": { + "Ref": "amplifyAuthUserPoolAppClient2626C6F8" + } + }, + "amplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref": { + "Value": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } + }, + "amplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref": { + "Value": { + "Ref": "amplifyAuthauthenticatedUserRoleD8DA3689" + } + }, + "amplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef": { + "Value": { + "Ref": "amplifyAuthunauthenticatedUserRole2B524D9E" + } + } + } +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-data7552DF31-x.description.txt b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-data7552DF31-x.description.txt new file mode 100644 index 00000000000..e1c50802cb1 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-data7552DF31-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"AmplifySandbox","createdWith":"1.21.2","stackType":"api-AppSync","metadata":{"dataSources":"dynamodb","authorizationModes":"amazon_cognito_identity_pools,amazon_cognito_user_pools,api_key,aws_iam","customOperations":"queries"}} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-data7552DF31-x.outputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-data7552DF31-x.outputs.json new file mode 100644 index 00000000000..d9434dcb202 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-data7552DF31-x.outputs.json @@ -0,0 +1,18 @@ +[ + { + "OutputKey": "amplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId", + "OutputValue": "tr6hjslzxzextaawz3ftjzwqyi" + }, + { + "OutputKey": "amplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DGraphQLUrl", + "OutputValue": "https://7kz3j3dc2bamjgvz5li6umq63m.appsync-api.us-east-1.amazonaws.com/graphql" + }, + { + "OutputKey": "amplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPIDefaultApiKey3435E918ApiKey", + "OutputValue": "da2-fakeapikey00000000000000" + }, + { + "OutputKey": "amplifymoodboarde2esandbox799a4d1a84dataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiBF71F6F7BDestinationBucketArn", + "OutputValue": "arn:aws:s3:::amplify-moodboard26041500-amplifydataamplifycodege-mkwxyto5r9gu" + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-data7552DF31-x.parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-data7552DF31-x.parameters.json new file mode 100644 index 00000000000..982394913d1 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-data7552DF31-x.parameters.json @@ -0,0 +1,38 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef", + "ParameterValue": "amplify-moodboard26041500-amplifyAuthunauthenticate-2CR87a5ajww1" + }, + { + "ParameterKey": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref", + "ParameterValue": "us-east-1:edbce570-5f19-4755-9803-52e7b3e0c56d" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "true" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthUserPoolC3F32E8CRef", + "ParameterValue": "us-east-1_K3ZcFPo5Q" + }, + { + "ParameterKey": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref", + "ParameterValue": "amplify-moodboard26041500-amplifyAuthauthenticatedU-inPzqwEs0wDw" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-data7552DF31-x.template.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-data7552DF31-x.template.json new file mode 100644 index 00000000000..16238582729 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-data7552DF31-x.template.json @@ -0,0 +1,1641 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.21.2\",\"stackType\":\"api-AppSync\",\"metadata\":{\"dataSources\":\"dynamodb\",\"authorizationModes\":\"amazon_cognito_identity_pools,amazon_cognito_user_pools,api_key,aws_iam\",\"customOperations\":\"queries\"}}", + "Resources": { + "amplifyDataGraphQLAPI42A6FA33": { + "Type": "AWS::AppSync::GraphQLApi", + "Properties": { + "AdditionalAuthenticationProviders": [ + { + "AuthenticationType": "AMAZON_COGNITO_USER_POOLS", + "UserPoolConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "UserPoolId": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthUserPoolC3F32E8CRef" + } + } + } + ], + "AuthenticationType": "API_KEY", + "Name": "amplifyData", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/GraphQLAPI/Resource" + } + }, + "amplifyDataGraphQLAPITransformerSchemaFF50A789": { + "Type": "AWS::AppSync::GraphQLSchema", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "DefinitionS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/3ddb2167cf805e733490f36a803db88cf1682c2c9f405ce5fec7e6b66ebc1449.graphql" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/GraphQLAPI/TransformerSchema" + } + }, + "amplifyDataGraphQLAPIDefaultApiKey1C8ED374": { + "Type": "AWS::AppSync::ApiKey", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "Description": "moodBoard API Key", + "Expires": 1807763507 + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/GraphQLAPI/DefaultApiKey" + } + }, + "amplifyDataGraphQLAPINONEDS684BF699": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "Name": "NONE_DS", + "Type": "NONE" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/GraphQLAPI/NONE_DS/Resource" + } + }, + "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/6eb519d998e8c4ed6e6ed601cd296cb3d4764c96b7b144b51652c4195aa7046f.json" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/AmplifyTableManager.NestedStack/AmplifyTableManager.NestedStackResource", + "aws:asset:path": "amplifymoodboarde2esandbox799a4d1a84dataamplifyDataAmplifyTableManager20E8D150.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "amplifyDataMoodItemNestedStackMoodItemNestedStackResource4E6CE7C0": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceEA62CF6FOutputsamplifymoodboarde2esandbox799a4d1a84dataamplifyDataAmplifyTableManagerTable4639D399": { + "Fn::GetAtt": [ + "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833", + "Outputs.amplifymoodboarde2esandbox799a4d1a84dataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent5D5EC05CArn" + ] + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref" + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef" + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref" + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/c00a909df1405a7129e2eb0a6a1f84ca8df7f121d5bbaef37a05d0c309632ab0.json" + ] + ] + } + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/MoodItem.NestedStack/MoodItem.NestedStackResource", + "aws:asset:path": "amplifymoodboarde2esandbox799a4d1a84dataamplifyDataMoodItem632232EF.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "amplifyDataBoardNestedStackBoardNestedStackResourceC5F2D278": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceEA62CF6FOutputsamplifymoodboarde2esandbox799a4d1a84dataamplifyDataAmplifyTableManagerTable4639D399": { + "Fn::GetAtt": [ + "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833", + "Outputs.amplifymoodboarde2esandbox799a4d1a84dataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent5D5EC05CArn" + ] + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref" + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef" + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref" + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/27ab0c1450be14e7437e75e02cd1371d3559c9c5e9974ef6839442aa4e374c2e.json" + ] + ] + } + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/Board.NestedStack/Board.NestedStackResource", + "aws:asset:path": "amplifymoodboarde2esandbox799a4d1a84dataamplifyDataBoard6242446A.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "amplifyDataFunctionDirectiveStackNestedStackFunctionDirectiveStackNestedStackResource1246A302": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref" + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef" + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref" + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/9e10753482baddd52fa76de16517e2e3607bab2b98f284d99ec119f3364af0c1.json" + ] + ] + } + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack.NestedStack/FunctionDirectiveStack.NestedStackResource", + "aws:asset:path": "amplifymoodboarde2esandbox799a4d1a84dataamplifyDataFunctionDirectiveStackCE71EB16.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "amplifyDataConnectionStackNestedStackConnectionStackNestedStackResourceAB0F312B": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPINONEDS7A779376Name": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataMoodItemNestedStackMoodItemNestedStackResource909B7D4FOutputsamplifymoodboarde2esandbox799a4d1a84dataamplifyDataMoodItemMoodItemDataSourceA5BD018EName": { + "Fn::GetAtt": [ + "amplifyDataMoodItemNestedStackMoodItemNestedStackResource4E6CE7C0", + "Outputs.amplifymoodboarde2esandbox799a4d1a84dataamplifyDataMoodItemMoodItemDataSourceA5BD018EName" + ] + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataMoodItemNestedStackMoodItemNestedStackResource909B7D4FOutputsamplifymoodboarde2esandbox799a4d1a84dataamplifyDataMoodItemMoodItemTableB6DE0468TableArn": { + "Fn::GetAtt": [ + "amplifyDataMoodItemNestedStackMoodItemNestedStackResource4E6CE7C0", + "Outputs.amplifymoodboarde2esandbox799a4d1a84dataamplifyDataMoodItemMoodItemTableB6DE0468TableArn" + ] + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref" + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef" + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref" + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataBoardNestedStackBoardNestedStackResource95BF389DOutputsamplifymoodboarde2esandbox799a4d1a84dataamplifyDataBoardBoardDataSource5B663EE3Name": { + "Fn::GetAtt": [ + "amplifyDataBoardNestedStackBoardNestedStackResourceC5F2D278", + "Outputs.amplifymoodboarde2esandbox799a4d1a84dataamplifyDataBoardBoardDataSource5B663EE3Name" + ] + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84dataamplifyDataBoardNestedStackBoardNestedStackResource95BF389DOutputsamplifymoodboarde2esandbox799a4d1a84dataamplifyDataBoardBoardTableE632E322TableArn": { + "Fn::GetAtt": [ + "amplifyDataBoardNestedStackBoardNestedStackResourceC5F2D278", + "Outputs.amplifymoodboarde2esandbox799a4d1a84dataamplifyDataBoardBoardTableE632E322TableArn" + ] + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/12ad76a197f068a0c33e44e2ee1f01ffe6083ca14ef498ec4637feef98860163.json" + ] + ] + } + }, + "DependsOn": [ + "amplifyDataBoardNestedStackBoardNestedStackResourceC5F2D278", + "amplifyDataGraphQLAPITransformerSchemaFF50A789", + "amplifyDataMoodItemNestedStackMoodItemNestedStackResource4E6CE7C0" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/ConnectionStack.NestedStack/ConnectionStack.NestedStackResource", + "aws:asset:path": "amplifymoodboarde2esandbox799a4d1a84dataamplifyDataConnectionStack7EB15A0D.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA": { + "Type": "AWS::S3::Bucket", + "Properties": { + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD" + ], + "AllowedOrigins": [ + { + "Fn::Join": [ + "", + [ + "https://", + { + "Ref": "AWS::Region" + }, + ".console.aws.amazon.com/amplify" + ] + ] + } + ] + } + ] + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "aws-cdk:cr-owned:35e54e83", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/Resource" + } + }, + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucketPolicyF1C1C548": { + "Type": "AWS::S3::BucketPolicy", + "Properties": { + "Bucket": { + "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" + }, + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "s3:PutBucketPolicy", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*" + ], + "Effect": "Allow", + "Principal": { + "AWS": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + } + }, + "Resource": [ + { + "Fn::GetAtt": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/Policy/Resource" + } + }, + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucketAutoDeleteObjectsCustomResource437F26F5": { + "Type": "Custom::S3AutoDeleteObjects", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "Arn" + ] + }, + "BucketName": { + "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" + } + }, + "DependsOn": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucketPolicyF1C1C548" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/AutoDeleteObjectsCustomResource/Default" + } + }, + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentAwsCliLayerE322F905": { + "Type": "AWS::Lambda::LayerVersion", + "Properties": { + "Content": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "e2659170a0721541efa761a8d5d04d5e36cbbf691c4b15a9053002b7c825055d.zip" + }, + "Description": "/opt/awscli/aws" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsDeployment/AwsCliLayer/Resource", + "aws:asset:path": "asset.e2659170a0721541efa761a8d5d04d5e36cbbf691c4b15a9053002b7c825055d.zip", + "aws:asset:is-bundled": false, + "aws:asset:property": "Content" + } + }, + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB21775929": { + "Type": "Custom::CDKBucketDeployment", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBC5D8AB21", + "Arn" + ] + }, + "SourceBucketNames": [ + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + } + ], + "SourceObjectKeys": [ + "306c73c9bf5680dbeafeed25354c30eca91684daf3f4efbd5502f3fa8d355a9a.zip" + ], + "SourceMarkers": [ + {} + ], + "DestinationBucketName": { + "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" + }, + "WaitForDistributionInvalidation": true, + "Prune": true, + "OutputObjectKeys": true, + "DestinationBucketArn": { + "Fn::GetAtt": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", + "Arn" + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsDeployment/CustomResource-1536MiB/Default" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ] + }, + "ManagedPolicyArns": [ + { + "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" + }, + "Timeout": 900, + "MemorySize": 128, + "Handler": "index.handler", + "Role": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Description": { + "Fn::Join": [ + "", + [ + "Lambda function for auto-deleting objects in ", + { + "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" + }, + " S3 bucket." + ] + ] + } + }, + "DependsOn": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", + "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", + "aws:asset:property": "Code" + } + }, + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/ServiceRole/Resource" + } + }, + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleDefaultPolicyFF1C635B": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "s3:GetObject*", + "s3:GetBucket*", + "s3:List*" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":s3:::", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + } + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":s3:::", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/*" + ] + ] + } + ] + }, + { + "Action": [ + "s3:GetObject*", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*", + "s3:PutObject", + "s3:PutObjectLegalHold", + "s3:PutObjectRetention", + "s3:PutObjectTagging", + "s3:PutObjectVersionTagging", + "s3:Abort*" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + }, + { + "Action": [ + "s3:GetObject*", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*", + "s3:PutObject", + "s3:PutObjectLegalHold", + "s3:PutObjectRetention", + "s3:PutObjectTagging", + "s3:PutObjectVersionTagging", + "s3:Abort*" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "modelIntrospectionSchemaBucketF566B665", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "modelIntrospectionSchemaBucketF566B665", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleDefaultPolicyFF1C635B", + "Roles": [ + { + "Ref": "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/ServiceRole/DefaultPolicy/Resource" + } + }, + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBC5D8AB21": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "3423a042b818e31c1e34a19d6689ab2e5f9b70fcbe9e71df66f241b20a200bd9.zip" + }, + "Environment": { + "Variables": { + "AWS_CA_BUNDLE": "/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem" + } + }, + "Handler": "index.handler", + "Layers": [ + { + "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentAwsCliLayerE322F905" + } + ], + "MemorySize": 1536, + "Role": { + "Fn::GetAtt": [ + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2", + "Arn" + ] + }, + "Runtime": "python3.13", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 900 + }, + "DependsOn": [ + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleDefaultPolicyFF1C635B", + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/Resource", + "aws:asset:path": "asset.3423a042b818e31c1e34a19d6689ab2e5f9b70fcbe9e71df66f241b20a200bd9", + "aws:asset:is-bundled": false, + "aws:asset:property": "Code" + } + }, + "modelIntrospectionSchemaBucketF566B665": { + "Type": "AWS::S3::Bucket", + "Properties": { + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "aws-cdk:cr-owned:f80b9de5", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/modelIntrospectionSchemaBucket/Resource" + } + }, + "modelIntrospectionSchemaBucketPolicy4DAB0D15": { + "Type": "AWS::S3::BucketPolicy", + "Properties": { + "Bucket": { + "Ref": "modelIntrospectionSchemaBucketF566B665" + }, + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:*", + "Condition": { + "Bool": { + "aws:SecureTransport": "false" + } + }, + "Effect": "Deny", + "Principal": { + "AWS": "*" + }, + "Resource": [ + { + "Fn::GetAtt": [ + "modelIntrospectionSchemaBucketF566B665", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "modelIntrospectionSchemaBucketF566B665", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + }, + { + "Action": [ + "s3:PutBucketPolicy", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*" + ], + "Effect": "Allow", + "Principal": { + "AWS": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + } + }, + "Resource": [ + { + "Fn::GetAtt": [ + "modelIntrospectionSchemaBucketF566B665", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "modelIntrospectionSchemaBucketF566B665", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/modelIntrospectionSchemaBucket/Policy/Resource" + } + }, + "modelIntrospectionSchemaBucketAutoDeleteObjectsCustomResourceFE57309F": { + "Type": "Custom::S3AutoDeleteObjects", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "Arn" + ] + }, + "BucketName": { + "Ref": "modelIntrospectionSchemaBucketF566B665" + } + }, + "DependsOn": [ + "modelIntrospectionSchemaBucketPolicy4DAB0D15" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/modelIntrospectionSchemaBucket/AutoDeleteObjectsCustomResource/Default" + } + }, + "modelIntrospectionSchemaBucketDeploymentAwsCliLayer13C432F7": { + "Type": "AWS::Lambda::LayerVersion", + "Properties": { + "Content": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "e2659170a0721541efa761a8d5d04d5e36cbbf691c4b15a9053002b7c825055d.zip" + }, + "Description": "/opt/awscli/aws" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/modelIntrospectionSchemaBucketDeployment/AwsCliLayer/Resource", + "aws:asset:path": "asset.e2659170a0721541efa761a8d5d04d5e36cbbf691c4b15a9053002b7c825055d.zip", + "aws:asset:is-bundled": false, + "aws:asset:property": "Content" + } + }, + "modelIntrospectionSchemaBucketDeploymentCustomResource1536MiB104B97EC": { + "Type": "Custom::CDKBucketDeployment", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBC5D8AB21", + "Arn" + ] + }, + "SourceBucketNames": [ + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + } + ], + "SourceObjectKeys": [ + "b4a69ae85f927e0e29c40613e84cd792f56656b7fb2e4d18d856ee61d77e3150.zip" + ], + "SourceMarkers": [ + {} + ], + "DestinationBucketName": { + "Ref": "modelIntrospectionSchemaBucketF566B665" + }, + "WaitForDistributionInvalidation": true, + "Prune": true, + "OutputObjectKeys": true + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/modelIntrospectionSchemaBucketDeployment/CustomResource-1536MiB/Default" + } + }, + "AMPLIFYDATAGRAPHQLENDPOINTParameter1C2CBB16": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/moodboard/e2e-sandbox-x/AMPLIFY_DATA_GRAPHQL_ENDPOINT", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "GraphQLUrl" + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/AMPLIFY_DATA_GRAPHQL_ENDPOINTParameter/Resource" + } + }, + "AMPLIFYDATAMODELINTROSPECTIONSCHEMABUCKETNAMEParameter47BF4F44": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/moodboard/e2e-sandbox-x/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_BUCKET_NAME", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": { + "Ref": "modelIntrospectionSchemaBucketF566B665" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_BUCKET_NAMEParameter/Resource" + } + }, + "AMPLIFYDATAMODELINTROSPECTIONSCHEMAKEYParameterB6AEAE8A": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/moodboard/e2e-sandbox-x/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_KEY", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": "modelIntrospectionSchema.json" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_KEYParameter/Resource" + } + }, + "AMPLIFYDATADEFAULTNAMEParameterE7C23CC4": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/moodboard/e2e-sandbox-x/AMPLIFY_DATA_DEFAULT_NAME", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": "amplifyData" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/AMPLIFY_DATA_DEFAULT_NAMEParameter/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/6VSwW7bMAz9luasqFmK7bCb62A7rOiyGOhlKAJGZlImsuSKdDND8L8Pstqk7U7FTnx8NJ/fgzjX888zPbuAI09NfZha2uh4iyxYVwLmoFbIvgsGFRx5HaFtuXdGx+8B2odHW7R0DYyq3LqR+XVTtPSqq8wDNpCIoqUf2Ktb73ABAlUWLbfu3A2Kr9YRmFFYF6moGlvr+wad6OvOHFAWJyJ9rWNmRw8ZJsmMfsdJQ3/ITb5OXqdLOfhKjyN+Vi068Qu0KPhzs0cjPBnUf23fP7tZekumP3vK/Qec5YVKQDCF/pixf5fvB2Wh2dSgY7l1N9BjuMPA5J2qyO0sinffOmckMSdQbk/koAgaHVfejo831nPIjAbF3OhYSSC3W0KABgXDOH9phkGND1wJ7Mjt0iyfW9mx+OZ0dOkXLzgbX9tkeg1HNpZ0ceTS0pjjjf47nWXwT1RjSHcyKOdr1Hu+fJrP9acvenaxZ6Jp6JxQg3qV6186YGvCGQMAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthUserPoolC3F32E8CRef": { + "Type": "String" + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref": { + "Type": "String" + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef": { + "Type": "String" + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref": { + "Type": "String" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId": { + "Value": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + } + }, + "amplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DGraphQLUrl": { + "Value": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "GraphQLUrl" + ] + } + }, + "amplifymoodboarde2esandbox799a4d1a84dataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiBF71F6F7BDestinationBucketArn": { + "Value": { + "Fn::GetAtt": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB21775929", + "DestinationBucketArn" + ] + } + }, + "amplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPIDefaultApiKey3435E918ApiKey": { + "Value": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPIDefaultApiKey1C8ED374", + "ApiKey" + ] + } + } + } +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-function1351588B-x.description.txt b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-function1351588B-x.description.txt new file mode 100644 index 00000000000..907003893a9 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-function1351588B-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"AmplifySandbox","createdWith":"1.18.0","stackType":"function-Lambda","metadata":{}} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-function1351588B-x.outputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-function1351588B-x.outputs.json new file mode 100644 index 00000000000..d85f14cc791 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-function1351588B-x.outputs.json @@ -0,0 +1,10 @@ +[ + { + "OutputKey": "amplifymoodboarde2esandbox799a4d1a84functionmoodboardGetRandomEmojigen2xlambda0BC3BCC4Ref", + "OutputValue": "moodboardGetRandomEmoji-gen2-x" + }, + { + "OutputKey": "amplifymoodboarde2esandbox799a4d1a84functionmoodboardKinesisReadergen2xlambda9052ECF6Ref", + "OutputValue": "moodboardKinesisReader-gen2-x" + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-function1351588B-x.parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-function1351588B-x.parameters.json new file mode 100644 index 00000000000..7a3d798ac01 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-function1351588B-x.parameters.json @@ -0,0 +1,6 @@ +[ + { + "ParameterKey": "referencetoamplifymoodboarde2esandbox799a4d1a84analyticsNestedStackanalyticsNestedStackResourceAE3BFFB1Outputsamplifymoodboarde2esandbox799a4d1a84analyticsmoodboardKinesisKinesisStream1161343BArn", + "ParameterValue": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-gen2-x" + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-function1351588B-x.template.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-function1351588B-x.template.json new file mode 100644 index 00000000000..fd4c0cd1608 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-function1351588B-x.template.json @@ -0,0 +1,562 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.18.0\",\"stackType\":\"function-Lambda\",\"metadata\":{}}", + "Resources": { + "moodboardGetRandomEmojigen2xlambdaServiceRole2F104077": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "moodboardGetRandomEmoji-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/function/moodboardGetRandomEmoji-gen2-x-lambda/ServiceRole/Resource" + } + }, + "moodboardGetRandomEmojigen2xlambda43B36E9D": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Architectures": [ + "x86_64" + ], + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "4592ea6319e810e83d2c22143e245eed02993b78aa4adb1be31546dfc377e2fd.zip" + }, + "Environment": { + "Variables": { + "ENV": "gen2-x", + "REGION": "us-east-1", + "AMPLIFY_SSM_ENV_CONFIG": "{}" + } + }, + "EphemeralStorage": { + "Size": 512 + }, + "FunctionName": "moodboardGetRandomEmoji-gen2-x", + "Handler": "index.handler", + "MemorySize": 128, + "Role": { + "Fn::GetAtt": [ + "moodboardGetRandomEmojigen2xlambdaServiceRole2F104077", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "moodboardGetRandomEmoji-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 25 + }, + "DependsOn": [ + "moodboardGetRandomEmojigen2xlambdaServiceRole2F104077" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/function/moodboardGetRandomEmoji-gen2-x-lambda/Resource", + "aws:asset:path": "asset.4592ea6319e810e83d2c22143e245eed02993b78aa4adb1be31546dfc377e2fd", + "aws:asset:is-bundled": true, + "aws:asset:property": "Code" + } + }, + "moodboardKinesisReadergen2xlambdaServiceRole7E362F07": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "moodboardKinesisReader-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/function/moodboardKinesisReader-gen2-x-lambda/ServiceRole/Resource" + } + }, + "moodboardKinesisReadergen2xlambdaServiceRoleDefaultPolicy0AD02D73": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "kinesis:ListShards", + "kinesis:ListStreams", + "kinesis:ListStreamConsumers", + "kinesis:DescribeStream", + "kinesis:DescribeStreamSummary", + "kinesis:DescribeStreamConsumer", + "kinesis:GetRecords", + "kinesis:GetShardIterator", + "kinesis:SubscribeToShard", + "kinesis:DescribeLimits", + "kinesis:ListTagsForStream" + ], + "Effect": "Allow", + "Resource": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84analyticsNestedStackanalyticsNestedStackResourceAE3BFFB1Outputsamplifymoodboarde2esandbox799a4d1a84analyticsmoodboardKinesisKinesisStream1161343BArn" + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "moodboardKinesisReadergen2xlambdaServiceRoleDefaultPolicy0AD02D73", + "Roles": [ + { + "Ref": "moodboardKinesisReadergen2xlambdaServiceRole7E362F07" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/function/moodboardKinesisReader-gen2-x-lambda/ServiceRole/DefaultPolicy/Resource" + } + }, + "moodboardKinesisReadergen2xlambda1546CBC5": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Architectures": [ + "x86_64" + ], + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "684b20135d918afb02e1e75d4aec62020d2c54a7a2208aee4e7840b781f29694.zip" + }, + "Environment": { + "Variables": { + "ENV": "gen2-x", + "REGION": "us-east-1", + "AMPLIFY_SSM_ENV_CONFIG": "{}", + "ANALYTICS_MOODBOARDKINESIS_KINESISSTREAMARN": { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84analyticsNestedStackanalyticsNestedStackResourceAE3BFFB1Outputsamplifymoodboarde2esandbox799a4d1a84analyticsmoodboardKinesisKinesisStream1161343BArn" + } + } + }, + "EphemeralStorage": { + "Size": 512 + }, + "FunctionName": "moodboardKinesisReader-gen2-x", + "Handler": "index.handler", + "MemorySize": 128, + "Role": { + "Fn::GetAtt": [ + "moodboardKinesisReadergen2xlambdaServiceRole7E362F07", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "moodboardKinesisReader-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 25 + }, + "DependsOn": [ + "moodboardKinesisReadergen2xlambdaServiceRoleDefaultPolicy0AD02D73", + "moodboardKinesisReadergen2xlambdaServiceRole7E362F07" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/function/moodboardKinesisReader-gen2-x-lambda/Resource", + "aws:asset:path": "asset.684b20135d918afb02e1e75d4aec62020d2c54a7a2208aee4e7840b781f29694", + "aws:asset:is-bundled": true, + "aws:asset:property": "Code" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/zWNzQqDMBCEn8X7urWR9l6FHqXoA8iarBJ/EujGShHfvaj09M3A8I1CdUswiWiRWJshHm2Da8ES2FSB9AC0SL2ONDWGaucN94LFgefsdLDegaUJ19KPDHnrDr78aPV3r2faQNKaRDgIPnaApJjNeuCQkTCcesxb95ducOyqQJ113Qb7M/Zy+SiF1zsmUS/Wxu/ZBTsxlid/7OrnScwAAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/function/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "referencetoamplifymoodboarde2esandbox799a4d1a84analyticsNestedStackanalyticsNestedStackResourceAE3BFFB1Outputsamplifymoodboarde2esandbox799a4d1a84analyticsmoodboardKinesisKinesisStream1161343BArn": { + "Type": "String" + } + }, + "Outputs": { + "amplifymoodboarde2esandbox799a4d1a84functionmoodboardGetRandomEmojigen2xlambda0BC3BCC4Ref": { + "Value": { + "Ref": "moodboardGetRandomEmojigen2xlambda43B36E9D" + } + }, + "amplifymoodboarde2esandbox799a4d1a84functionmoodboardKinesisReadergen2xlambda9052ECF6Ref": { + "Value": { + "Ref": "moodboardKinesisReadergen2xlambda1546CBC5" + } + } + } +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x.description.txt b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x.description.txt new file mode 100644 index 00000000000..950d1c3cb96 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"AmplifySandbox","createdWith":"1.4.3","stackType":"storage-S3","metadata":{}} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x.outputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x.outputs.json new file mode 100644 index 00000000000..4774b953925 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x.outputs.json @@ -0,0 +1,6 @@ +[ + { + "OutputKey": "amplifymoodboarde2esandbox799a4d1a84storagemoodboard20e29595008142e3ad16f01c4066e1c4xgen2xBucket9D2A4CC7Ref", + "OutputValue": "amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb" + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x.parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x.parameters.json new file mode 100644 index 00000000000..a5356bbc1a2 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x.parameters.json @@ -0,0 +1,10 @@ +[ + { + "ParameterKey": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef", + "ParameterValue": "amplify-moodboard26041500-amplifyAuthunauthenticate-2CR87a5ajww1" + }, + { + "ParameterKey": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref", + "ParameterValue": "amplify-moodboard26041500-amplifyAuthauthenticatedU-inPzqwEs0wDw" + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x.template.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x.template.json new file mode 100644 index 00000000000..6cb9dc4bbe1 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x-storage0EC3F24A-x.template.json @@ -0,0 +1,806 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", + "Resources": { + "moodboard20e29595008142e3ad16f01c4066e1c4xgen2xBucketF509CA7A": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "BucketKeyEnabled": false, + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "MaxAge": 3000 + } + ] + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "moodboard20e29595008142e3ad16f01c4066e1c4x-gen2-x" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/storage/moodboard20e29595008142e3ad16f01c4066e1c4x-gen2-x/Bucket/Resource" + } + }, + "moodboard20e29595008142e3ad16f01c4066e1c4xgen2xBucketPolicyD45A1F02": { + "Type": "AWS::S3::BucketPolicy", + "Properties": { + "Bucket": { + "Ref": "moodboard20e29595008142e3ad16f01c4066e1c4xgen2xBucketF509CA7A" + }, + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:*", + "Condition": { + "Bool": { + "aws:SecureTransport": "false" + } + }, + "Effect": "Deny", + "Principal": { + "AWS": "*" + }, + "Resource": [ + { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c4xgen2xBucketF509CA7A", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c4xgen2xBucketF509CA7A", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + }, + { + "Action": [ + "s3:PutBucketPolicy", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*" + ], + "Effect": "Allow", + "Principal": { + "AWS": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + } + }, + "Resource": [ + { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c4xgen2xBucketF509CA7A", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c4xgen2xBucketF509CA7A", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/storage/moodboard20e29595008142e3ad16f01c4066e1c4x-gen2-x/Bucket/Policy/Resource" + } + }, + "moodboard20e29595008142e3ad16f01c4066e1c4xgen2xBucketAutoDeleteObjectsCustomResourceB49F1B54": { + "Type": "Custom::S3AutoDeleteObjects", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "Arn" + ] + }, + "BucketName": { + "Ref": "moodboard20e29595008142e3ad16f01c4066e1c4xgen2xBucketF509CA7A" + } + }, + "DependsOn": [ + "moodboard20e29595008142e3ad16f01c4066e1c4xgen2xBucketPolicyD45A1F02" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/storage/moodboard20e29595008142e3ad16f01c4066e1c4x-gen2-x/Bucket/AutoDeleteObjectsCustomResource/Default" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ] + }, + "ManagedPolicyArns": [ + { + "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" + }, + "Timeout": 900, + "MemorySize": 128, + "Handler": "index.handler", + "Role": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Description": { + "Fn::Join": [ + "", + [ + "Lambda function for auto-deleting objects in ", + { + "Ref": "moodboard20e29595008142e3ad16f01c4066e1c4xgen2xBucketF509CA7A" + }, + " S3 bucket." + ] + ] + } + }, + "DependsOn": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", + "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", + "aws:asset:property": "Code" + } + }, + "MOODBOARD20E29595008142E3AD16F01C4066E1C417DCAGEN2VDTWFPNEGXBUCKETNAMEParameter5A0015D7": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/moodboard/e2e-sandbox-x/MOODBOARD_20_E_29595008142_E_3_AD_16_F_01_C_4066_E_1_C_417_DCA_GEN_2_VDTWFPNEGX_BUCKET_NAME", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": { + "Ref": "moodboard20e29595008142e3ad16f01c4066e1c4xgen2xBucketF509CA7A" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/storage/MOODBOARD_20_E_29595008142_E_3_AD_16_F_01_C_4066_E_1_C_417_DCA_GEN_2_VDTWFPNEGX_BUCKET_NAMEParameter/Resource" + } + }, + "amplifymoodboarde2esandbox799a4d1a84storageAccess35BE57E89": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c4xgen2xBucketF509CA7A", + "Arn" + ] + }, + "/public/*" + ] + ] + } + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/*", + "public/" + ] + } + }, + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c4xgen2xBucketF509CA7A", + "Arn" + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "amplifymoodboarde2esandbox799a4d1a84storageAccess35BE57E89", + "Roles": [ + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/storage/amplify-moodboard-e2e-sandbox-x--storageAccess3/Resource" + } + }, + "amplifymoodboarde2esandbox799a4d1a84storageAccess45ABD2020": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:PutObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c4xgen2xBucketF509CA7A", + "Arn" + ] + }, + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c4xgen2xBucketF509CA7A", + "Arn" + ] + }, + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c4xgen2xBucketF509CA7A", + "Arn" + ] + }, + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c4xgen2xBucketF509CA7A", + "Arn" + ] + }, + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c4xgen2xBucketF509CA7A", + "Arn" + ] + }, + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c4xgen2xBucketF509CA7A", + "Arn" + ] + }, + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/*", + "public/", + "protected/*", + "protected/", + "private/*", + "private/" + ] + } + }, + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c4xgen2xBucketF509CA7A", + "Arn" + ] + } + }, + { + "Action": "s3:DeleteObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c4xgen2xBucketF509CA7A", + "Arn" + ] + }, + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c4xgen2xBucketF509CA7A", + "Arn" + ] + }, + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "moodboard20e29595008142e3ad16f01c4066e1c4xgen2xBucketF509CA7A", + "Arn" + ] + }, + "/private/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "amplifymoodboarde2esandbox799a4d1a84storageAccess45ABD2020", + "Roles": [ + { + "Ref": "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/storage/amplify-moodboard-e2e-sandbox-x--storageAccess4/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/5WNy07DMBBFv6VZO0NIBQt2fawhapYIIdcZokliW/JMWpDlf0epJQJLVnNH5z5qqB8qqDb6yqXpxnKiM8RnZMGuFW1Gpa/8HnkLcT+bEUUdPlxWr7Gw9EmueCp+hxc/b+GGGLJ1N4s/4oSCL+cBjXCR3lRGjZ/IfK2t+f9Hdw60ogUtult1UswWYiuBXN/ooC0KhmXj50mKtIW4rmeVkjrMLN6ekP0cDC5o1X9QE/yFOgx7zah2zCit6J5cn5TzHcLAd5e6hvtHqDYDE5VhdkIW4ZTvN8L1/x56AQAA" + }, + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/storage/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef": { + "Type": "String" + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref": { + "Type": "String" + } + }, + "Outputs": { + "amplifymoodboarde2esandbox799a4d1a84storagemoodboard20e29595008142e3ad16f01c4066e1c4xgen2xBucket9D2A4CC7Ref": { + "Value": { + "Ref": "moodboard20e29595008142e3ad16f01c4066e1c4xgen2xBucketF509CA7A" + } + } + } +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x.description.txt b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x.description.txt new file mode 100644 index 00000000000..d1c87f28683 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"AmplifySandbox","createdWith":"1.22.0","stackType":"root","metadata":{}} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x.outputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x.outputs.json new file mode 100644 index 00000000000..87681ee8f19 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x.outputs.json @@ -0,0 +1,138 @@ +[ + { + "OutputKey": "webClientId", + "OutputValue": "7jnfsfml09seoak5857srhn920" + }, + { + "OutputKey": "socialProviders", + "OutputValue": "" + }, + { + "OutputKey": "usernameAttributes", + "OutputValue": "[\"email\"]" + }, + { + "OutputKey": "bucketName", + "OutputValue": "amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb" + }, + { + "OutputKey": "signupAttributes", + "OutputValue": "[\"email\"]" + }, + { + "OutputKey": "oauthClientId", + "OutputValue": "7jnfsfml09seoak5857srhn920" + }, + { + "OutputKey": "allowUnauthenticatedIdentities", + "OutputValue": "true" + }, + { + "OutputKey": "oauthCognitoDomain", + "OutputValue": "" + }, + { + "OutputKey": "oauthScope", + "OutputValue": "[\"profile\",\"phone\",\"email\",\"openid\",\"aws.cognito.signin.user.admin\"]" + }, + { + "OutputKey": "oauthRedirectSignOut", + "OutputValue": "" + }, + { + "OutputKey": "awsAppsyncAdditionalAuthenticationTypes", + "OutputValue": "AMAZON_COGNITO_USER_POOLS,AWS_IAM" + }, + { + "OutputKey": "mfaTypes", + "OutputValue": "[]" + }, + { + "OutputKey": "mfaConfiguration", + "OutputValue": "OFF" + }, + { + "OutputKey": "storageRegion", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "oauthResponseType", + "OutputValue": "code" + }, + { + "OutputKey": "awsAppsyncApiKey", + "OutputValue": "da2-fakeapikey00000000000000" + }, + { + "OutputKey": "awsAppsyncAuthenticationType", + "OutputValue": "API_KEY" + }, + { + "OutputKey": "oauthRedirectSignIn", + "OutputValue": "https://example.com" + }, + { + "OutputKey": "passwordPolicyMinLength", + "OutputValue": "8" + }, + { + "OutputKey": "awsAppsyncApiEndpoint", + "OutputValue": "https://7kz3j3dc2bamjgvz5li6umq63m.appsync-api.us-east-1.amazonaws.com/graphql" + }, + { + "OutputKey": "awsAppsyncApiId", + "OutputValue": "tr6hjslzxzextaawz3ftjzwqyi" + }, + { + "OutputKey": "authRegion", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "buckets", + "OutputValue": "[\"{\\\"name\\\":\\\"moodboard20e29595008142e3ad16f01c4066e1c4x-gen2-x\\\",\\\"bucketName\\\":\\\"amplify-moodboard26041500-moodboard20e29595008142e-lzawdnl9angb\\\",\\\"storageRegion\\\":\\\"us-east-1\\\",\\\"paths\\\":{\\\"public/*\\\":{\\\"guest\\\":[\\\"get\\\",\\\"list\\\"],\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]},\\\"protected/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]},\\\"private/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]}}}\"]" + }, + { + "OutputKey": "amplifyApiModelSchemaS3Uri", + "OutputValue": "s3://amplify-moodboard26041500-amplifydataamplifycodege-mkwxyto5r9gu/model-schema.graphql" + }, + { + "OutputKey": "groups", + "OutputValue": "[]" + }, + { + "OutputKey": "definedFunctions", + "OutputValue": "[\"moodboardGetRandomEmoji-gen2-x\",\"moodboardKinesisReader-gen2-x\"]" + }, + { + "OutputKey": "passwordlessOptions", + "OutputValue": "" + }, + { + "OutputKey": "awsAppsyncRegion", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "deploymentType", + "OutputValue": "sandbox" + }, + { + "OutputKey": "passwordPolicyRequirements", + "OutputValue": "[]" + }, + { + "OutputKey": "region", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "userPoolId", + "OutputValue": "us-east-1_K3ZcFPo5Q" + }, + { + "OutputKey": "identityPoolId", + "OutputValue": "us-east-1:edbce570-5f19-4755-9803-52e7b3e0c56d" + }, + { + "OutputKey": "verificationMechanisms", + "OutputValue": "[\"email\"]" + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x.parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x.parameters.json new file mode 100644 index 00000000000..9b7e2669975 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x.parameters.json @@ -0,0 +1,7 @@ +[ + { + "ParameterKey": "BootstrapVersion", + "ParameterValue": "/cdk-bootstrap/hnb659fds/version", + "ResolvedValue": "30" + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x.template.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x.template.json new file mode 100644 index 00000000000..3efd7b00b38 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-e2e-sandbox-x.template.json @@ -0,0 +1,873 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.22.0\",\"stackType\":\"root\",\"metadata\":{}}", + "Metadata": { + "AWS::Amplify::Platform": { + "version": "1", + "stackOutputs": [ + "deploymentType", + "region" + ] + }, + "AWS::Amplify::Auth": { + "version": "1", + "stackOutputs": [ + "userPoolId", + "webClientId", + "identityPoolId", + "authRegion", + "allowUnauthenticatedIdentities", + "signupAttributes", + "usernameAttributes", + "verificationMechanisms", + "passwordPolicyMinLength", + "passwordPolicyRequirements", + "mfaConfiguration", + "mfaTypes", + "passwordlessOptions", + "socialProviders", + "oauthCognitoDomain", + "oauthScope", + "oauthRedirectSignIn", + "oauthRedirectSignOut", + "oauthResponseType", + "oauthClientId", + "groups" + ] + }, + "AWS::Amplify::GraphQL": { + "version": "1", + "stackOutputs": [ + "awsAppsyncApiId", + "awsAppsyncApiEndpoint", + "awsAppsyncAuthenticationType", + "awsAppsyncRegion", + "amplifyApiModelSchemaS3Uri", + "awsAppsyncApiKey", + "awsAppsyncAdditionalAuthenticationTypes" + ] + }, + "AWS::Amplify::Function": { + "version": "1", + "stackOutputs": [ + "definedFunctions" + ] + }, + "AWS::Amplify::Storage": { + "version": "1", + "stackOutputs": [ + "buckets", + "storageRegion", + "bucketName" + ] + } + }, + "Outputs": { + "deploymentType": { + "Value": "sandbox" + }, + "region": { + "Value": { + "Ref": "AWS::Region" + } + }, + "userPoolId": { + "Value": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifymoodboarde2esandbox799a4d1a84authamplifyAuthUserPoolC3F32E8CRef" + ] + } + }, + "webClientId": { + "Value": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifymoodboarde2esandbox799a4d1a84authamplifyAuthUserPoolAppClientFBE59DFARef" + ] + } + }, + "identityPoolId": { + "Value": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref" + ] + } + }, + "authRegion": { + "Value": { + "Ref": "AWS::Region" + } + }, + "allowUnauthenticatedIdentities": { + "Value": "true" + }, + "signupAttributes": { + "Value": "[\"email\"]" + }, + "usernameAttributes": { + "Value": "[\"email\"]" + }, + "verificationMechanisms": { + "Value": "[\"email\"]" + }, + "passwordPolicyMinLength": { + "Value": "8" + }, + "passwordPolicyRequirements": { + "Value": "[]" + }, + "mfaConfiguration": { + "Value": "OFF" + }, + "mfaTypes": { + "Value": "[]" + }, + "passwordlessOptions": { + "Value": "" + }, + "socialProviders": { + "Value": "" + }, + "oauthCognitoDomain": { + "Value": "" + }, + "oauthScope": { + "Value": "[\"profile\",\"phone\",\"email\",\"openid\",\"aws.cognito.signin.user.admin\"]" + }, + "oauthRedirectSignIn": { + "Value": "https://example.com" + }, + "oauthRedirectSignOut": { + "Value": "" + }, + "oauthResponseType": { + "Value": "code" + }, + "oauthClientId": { + "Value": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifymoodboarde2esandbox799a4d1a84authamplifyAuthUserPoolAppClientFBE59DFARef" + ] + } + }, + "groups": { + "Value": "[]" + }, + "awsAppsyncApiId": { + "Value": { + "Fn::GetAtt": [ + "data7552DF31", + "Outputs.amplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DApiId" + ] + } + }, + "awsAppsyncApiEndpoint": { + "Value": { + "Fn::GetAtt": [ + "data7552DF31", + "Outputs.amplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPI1E67CA8DGraphQLUrl" + ] + } + }, + "awsAppsyncAuthenticationType": { + "Value": "API_KEY" + }, + "awsAppsyncRegion": { + "Value": { + "Ref": "AWS::Region" + } + }, + "amplifyApiModelSchemaS3Uri": { + "Value": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Fn::Select": [ + 0, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "data7552DF31", + "Outputs.amplifymoodboarde2esandbox799a4d1a84dataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiBF71F6F7BDestinationBucketArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "/model-schema.graphql" + ] + ] + } + }, + "awsAppsyncApiKey": { + "Value": { + "Fn::GetAtt": [ + "data7552DF31", + "Outputs.amplifymoodboarde2esandbox799a4d1a84dataamplifyDataGraphQLAPIDefaultApiKey3435E918ApiKey" + ] + } + }, + "awsAppsyncAdditionalAuthenticationTypes": { + "Value": "AMAZON_COGNITO_USER_POOLS,AWS_IAM" + }, + "definedFunctions": { + "Value": { + "Fn::Join": [ + "", + [ + "[\"", + { + "Fn::GetAtt": [ + "function1351588B", + "Outputs.amplifymoodboarde2esandbox799a4d1a84functionmoodboardGetRandomEmojigen2xlambda0BC3BCC4Ref" + ] + }, + "\",\"", + { + "Fn::GetAtt": [ + "function1351588B", + "Outputs.amplifymoodboarde2esandbox799a4d1a84functionmoodboardKinesisReadergen2xlambda9052ECF6Ref" + ] + }, + "\"]" + ] + ] + } + }, + "storageRegion": { + "Value": { + "Ref": "AWS::Region" + } + }, + "bucketName": { + "Value": { + "Fn::GetAtt": [ + "storage0EC3F24A", + "Outputs.amplifymoodboarde2esandbox799a4d1a84storagemoodboard20e29595008142e3ad16f01c4066e1c4xgen2xBucket9D2A4CC7Ref" + ] + } + }, + "buckets": { + "Value": { + "Fn::Join": [ + "", + [ + "[\"{\\\"name\\\":\\\"moodboard20e29595008142e3ad16f01c4066e1c4x-gen2-x\\\",\\\"bucketName\\\":\\\"", + { + "Fn::GetAtt": [ + "storage0EC3F24A", + "Outputs.amplifymoodboarde2esandbox799a4d1a84storagemoodboard20e29595008142e3ad16f01c4066e1c4xgen2xBucket9D2A4CC7Ref" + ] + }, + "\\\",\\\"storageRegion\\\":\\\"", + { + "Ref": "AWS::Region" + }, + "\\\",\\\"paths\\\":{\\\"public/*\\\":{\\\"guest\\\":[\\\"get\\\",\\\"list\\\"],\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]},\\\"protected/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]},\\\"private/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]}}}\"]" + ] + ] + } + } + }, + "Resources": { + "auth179371D7": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/21e65fe46b26c5da60a44add3e731840c80dcdddd72a17b252cea689bcd4093e.json" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/auth.NestedStack/auth.NestedStackResource", + "aws:asset:path": "amplifymoodboarde2esandbox799a4d1a84auth62C17C22.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "data7552DF31": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthUserPoolC3F32E8CRef": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifymoodboarde2esandbox799a4d1a84authamplifyAuthUserPoolC3F32E8CRef" + ] + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref" + ] + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef" + ] + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifymoodboarde2esandbox799a4d1a84authamplifyAuthIdentityPoolB80FD358Ref" + ] + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/67e9b0540fecee4d55ad8de8cd726e9ec5e4c6d93b13ba6970cb7936326707b6.json" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/data.NestedStack/data.NestedStackResource", + "aws:asset:path": "amplifymoodboarde2esandbox799a4d1a84data41B215E3.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "storage0EC3F24A": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef" + ] + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref" + ] + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/c55508e91dbf36bdb5f96ee59254d363c15081535230756121bf1ad38547b36f.json" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/storage.NestedStack/storage.NestedStackResource", + "aws:asset:path": "amplifymoodboarde2esandbox799a4d1a84storageBA3E294A.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "function1351588B": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetoamplifymoodboarde2esandbox799a4d1a84analyticsNestedStackanalyticsNestedStackResourceAE3BFFB1Outputsamplifymoodboarde2esandbox799a4d1a84analyticsmoodboardKinesisKinesisStream1161343BArn": { + "Fn::GetAtt": [ + "analytics5794DE4A", + "Outputs.amplifymoodboarde2esandbox799a4d1a84analyticsmoodboardKinesisKinesisStream1161343BArn" + ] + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/02454891dae94845e66570b7a5cb34cb9e3c1446bf2053f2faa259203ebd1d15.json" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/function.NestedStack/function.NestedStackResource", + "aws:asset:path": "amplifymoodboarde2esandbox799a4d1a84function809F3C19.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "analytics5794DE4A": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifymoodboarde2esandbox799a4d1a84authamplifyAuthauthenticatedUserRole65FDEE87Ref" + ] + }, + "referencetoamplifymoodboarde2esandbox799a4d1a84authNestedStackauthNestedStackResourceCF49B256Outputsamplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifymoodboarde2esandbox799a4d1a84authamplifyAuthunauthenticatedUserRoleC0B7612DRef" + ] + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/d5b2cb2c2e622c3c5a24f849ab4b9bc687be758bfae4a9bcf2cf5cbd3903ccf4.json" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/analytics.NestedStack/analytics.NestedStackResource", + "aws:asset:path": "amplifymoodboarde2esandbox799a4d1a84analytics07DD06E1.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/zPSMzI10DNQTCwv1k1OydbNyUzSqw4uSUzO1nFOy/MvLSkoLQGxwEK1Onn5Kal6WcX6ZUZGeoZmegaKWcWZmbpFpXklmbmpekEQGgAGekjOVAAAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-moodboard-e2e-sandbox-x/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "BootstrapVersion": { + "Type": "AWS::SSM::Parameter::Value", + "Default": "/cdk-bootstrap/hnb659fds/version", + "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]" + } + }, + "Rules": { + "CheckBootstrapVersion": { + "Assertions": [ + { + "Assert": { + "Fn::Not": [ + { + "Fn::Contains": [ + [ + "1", + "2", + "3", + "4", + "5" + ], + { + "Ref": "BootstrapVersion" + } + ] + } + ] + }, + "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI." + } + ] + } + } +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataAmplifyTableManagerNestedStackA-1BBO4E6ACSENL.description.txt b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataAmplifyTableManagerNestedStackA-1BBO4E6ACSENL.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataAmplifyTableManagerNestedStackA-1BBO4E6ACSENL.outputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataAmplifyTableManagerNestedStackA-1BBO4E6ACSENL.outputs.json deleted file mode 100644 index e3d513d4dfe..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataAmplifyTableManagerNestedStackA-1BBO4E6ACSENL.outputs.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - { - "OutputKey": "amplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent251BECFBArn", - "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-moodboard-ge-TableManagerCustomProvid-P9ApcdX7uMst" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataAmplifyTableManagerNestedStackA-1BBO4E6ACSENL.parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataAmplifyTableManagerNestedStackA-1BBO4E6ACSENL.parameters.json deleted file mode 100644 index 729aacb1770..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataAmplifyTableManagerNestedStackA-1BBO4E6ACSENL.parameters.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId", - "ParameterValue": "i3rfe6qyonbeldjtlui5jixz4u" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataAmplifyTableManagerNestedStackA-1BBO4E6ACSENL.template.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataAmplifyTableManagerNestedStackA-1BBO4E6ACSENL.template.json deleted file mode 100644 index 929c83b0289..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataAmplifyTableManagerNestedStackA-1BBO4E6ACSENL.template.json +++ /dev/null @@ -1,795 +0,0 @@ -{ - "Resources": { - "AmplifyManagedTableIsCompleteRoleF825222C": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:CreateTable", - "dynamodb:UpdateTable", - "dynamodb:DeleteTable", - "dynamodb:DescribeTable", - "dynamodb:DescribeContinuousBackups", - "dynamodb:DescribeTimeToLive", - "dynamodb:UpdateContinuousBackups", - "dynamodb:UpdateTimeToLive", - "dynamodb:TagResource", - "dynamodb:UntagResource", - "dynamodb:ListTagsOfResource" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/*-${apiId}-${envName}", - { - "apiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "envName": "NONE" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", - { - "tableName": "MoodItem-vsozkn3hbzdjppzyf7xtf2f4sy-main" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", - { - "tableName": "Board-vsozkn3hbzdjppzyf7xtf2f4sy-main" - } - ] - } - ] - }, - { - "Action": "lambda:ListTags", - "Effect": "Allow", - "Resource": { - "Fn::Sub": [ - "arn:${AWS::Partition}:lambda:${AWS::Region}:${AWS::AccountId}:function:*TableManager*", - {} - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "CreateUpdateDeleteTablesPolicy" - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/AmplifyTableManager/AmplifyManagedTableIsCompleteRole/Resource" - } - }, - "AmplifyManagedTableOnEventRoleB4E71DEA": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:CreateTable", - "dynamodb:UpdateTable", - "dynamodb:DeleteTable", - "dynamodb:DescribeTable", - "dynamodb:DescribeContinuousBackups", - "dynamodb:DescribeTimeToLive", - "dynamodb:UpdateContinuousBackups", - "dynamodb:UpdateTimeToLive", - "dynamodb:TagResource", - "dynamodb:UntagResource", - "dynamodb:ListTagsOfResource" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/*-${apiId}-${envName}", - { - "apiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "envName": "NONE" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", - { - "tableName": "MoodItem-vsozkn3hbzdjppzyf7xtf2f4sy-main" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", - { - "tableName": "Board-vsozkn3hbzdjppzyf7xtf2f4sy-main" - } - ] - } - ] - }, - { - "Action": "lambda:ListTags", - "Effect": "Allow", - "Resource": { - "Fn::Sub": [ - "arn:${AWS::Partition}:lambda:${AWS::Region}:${AWS::AccountId}:function:*TableManager*", - {} - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "CreateUpdateDeleteTablesPolicy" - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/AmplifyTableManager/AmplifyManagedTableOnEventRole/Resource" - } - }, - "AmplifyManagedTableOnEventRoleDefaultPolicyF6DABCB6": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "states:StartExecution", - "Effect": "Allow", - "Resource": { - "Ref": "AmplifyTableWaiterStateMachine060600BC" - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "AmplifyManagedTableOnEventRoleDefaultPolicyF6DABCB6", - "Roles": [ - { - "Ref": "AmplifyManagedTableOnEventRoleB4E71DEA" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/AmplifyTableManager/AmplifyManagedTableOnEventRole/DefaultPolicy/Resource" - } - }, - "TableManagerCustomProviderframeworkonEvent1DFC2ECC": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6.zip" - }, - "Description": "AmplifyManagedTable - onEvent (amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider)", - "Environment": { - "Variables": { - "WAITER_STATE_MACHINE_ARN": { - "Ref": "AmplifyTableWaiterStateMachine060600BC" - } - } - }, - "Handler": "amplify-table-manager-handler.onEvent", - "Role": { - "Fn::GetAtt": [ - "AmplifyManagedTableOnEventRoleB4E71DEA", - "Arn" - ] - }, - "Runtime": "nodejs24.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 840 - }, - "DependsOn": [ - "AmplifyManagedTableOnEventRoleDefaultPolicyF6DABCB6", - "AmplifyManagedTableOnEventRoleB4E71DEA" - ], - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider/framework-onEvent/Resource", - "aws:asset:path": "asset.f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6", - "aws:asset:is-bundled": false, - "aws:asset:property": "Code" - } - }, - "TableManagerCustomProviderframeworkisComplete2E51021B": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6.zip" - }, - "Description": "AmplifyManagedTable - isComplete (amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider)", - "Handler": "amplify-table-manager-handler.isComplete", - "Role": { - "Fn::GetAtt": [ - "AmplifyManagedTableIsCompleteRoleF825222C", - "Arn" - ] - }, - "Runtime": "nodejs24.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 840 - }, - "DependsOn": [ - "AmplifyManagedTableIsCompleteRoleF825222C" - ], - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider/framework-isComplete/Resource", - "aws:asset:path": "asset.f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6", - "aws:asset:is-bundled": false, - "aws:asset:property": "Code" - } - }, - "AmplifyTableWaiterStateMachineRole470BE899": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "states.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Role/Resource" - } - }, - "AmplifyTableWaiterStateMachineRoleDefaultPolicy89F3836A": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "lambda:InvokeFunction", - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "TableManagerCustomProviderframeworkisComplete2E51021B", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "TableManagerCustomProviderframeworkisComplete2E51021B", - "Arn" - ] - }, - ":*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "AmplifyTableWaiterStateMachineRoleDefaultPolicy89F3836A", - "Roles": [ - { - "Ref": "AmplifyTableWaiterStateMachineRole470BE899" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Role/DefaultPolicy/Resource" - } - }, - "AmplifyTableWaiterStateMachine060600BC": { - "Type": "AWS::StepFunctions::StateMachine", - "Properties": { - "DefinitionString": { - "Fn::Join": [ - "", - [ - "{\"StartAt\":\"framework-isComplete-task\",\"States\":{\"framework-isComplete-task\":{\"End\":true,\"Retry\":[{\"ErrorEquals\":[\"States.ALL\"],\"IntervalSeconds\":10,\"MaxAttempts\":360,\"BackoffRate\":1}],\"Type\":\"Task\",\"Resource\":\"", - { - "Fn::GetAtt": [ - "TableManagerCustomProviderframeworkisComplete2E51021B", - "Arn" - ] - }, - "\"}}}" - ] - ] - }, - "RoleArn": { - "Fn::GetAtt": [ - "AmplifyTableWaiterStateMachineRole470BE899", - "Arn" - ] - } - }, - "DependsOn": [ - "AmplifyTableWaiterStateMachineRoleDefaultPolicy89F3836A", - "AmplifyTableWaiterStateMachineRole470BE899" - ], - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/zWNyw6CMBBFv4V9GXm4cCsmLo2BDyBDGclAaROmSEzDvxtAV+fcnMXNIDunkES4SKzbITbcQHiQeGorj3pQuEgdGEcIpTOkbi+78+kM6882D1uVwbFpEcJ9ttqzs1v7+6okr1GEvMB1g5IcilkP5AsUWlVJ4uZJk9pr5bFj2+1nv7Aq61qCXk7vLIP0AknUC3M8zdbzSFAe/ALgt1g4zwAAAA==" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/AmplifyTableManager/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId": { - "Type": "String" - } - }, - "Outputs": { - "amplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent251BECFBArn": { - "Value": { - "Fn::GetAtt": [ - "TableManagerCustomProviderframeworkonEvent1DFC2ECC", - "Arn" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataBoardNestedStackBoardNestedStac-UQU47S9BM3LY.description.txt b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataBoardNestedStackBoardNestedStac-UQU47S9BM3LY.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataBoardNestedStackBoardNestedStac-UQU47S9BM3LY.outputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataBoardNestedStackBoardNestedStac-UQU47S9BM3LY.outputs.json deleted file mode 100644 index ee84539df4a..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataBoardNestedStackBoardNestedStac-UQU47S9BM3LY.outputs.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "OutputKey": "GetAttBoardTableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Board-vsozkn3hbzdjppzyf7xtf2f4sy-main/stream/2026-03-08T17:04:46.147", - "Description": "Your DynamoDB table StreamArn.", - "ExportName": "i3rfe6qyonbeldjtlui5jixz4u:GetAtt:BoardTable:StreamArn" - }, - { - "OutputKey": "amplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataBoardBoardTable0122C8B9TableArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Board-vsozkn3hbzdjppzyf7xtf2f4sy-main" - }, - { - "OutputKey": "GetAttBoardTableName", - "OutputValue": "Board-vsozkn3hbzdjppzyf7xtf2f4sy-main", - "Description": "Your DynamoDB table name.", - "ExportName": "i3rfe6qyonbeldjtlui5jixz4u:GetAtt:BoardTable:Name" - }, - { - "OutputKey": "amplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataBoardBoardDataSource3085F3C2Name", - "OutputValue": "BoardTable" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataBoardNestedStackBoardNestedStac-UQU47S9BM3LY.parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataBoardNestedStackBoardNestedStac-UQU47S9BM3LY.parameters.json deleted file mode 100644 index d40a96a83ea..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataBoardNestedStackBoardNestedStac-UQU47S9BM3LY.parameters.json +++ /dev/null @@ -1,46 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource4ABB9726Outputsamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataAmplifyTableManagerTableMa128CE2CC", - "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-moodboard-ge-TableManagerCustomProvid-P9ApcdX7uMst" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "true" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref", - "ParameterValue": "amplify-moodboard-ge-amplifyAuthauthenticatedU-UANJImTyKZ7p" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef", - "ParameterValue": "us-east-1:820c5910-56e0-4010-b0c4-b457a728acfb" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef", - "ParameterValue": "amplify-moodboard-ge-amplifyAuthunauthenticate-rp3r1qUbAKVV" - }, - { - "ParameterKey": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId", - "ParameterValue": "i3rfe6qyonbeldjtlui5jixz4u" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataBoardNestedStackBoardNestedStac-UQU47S9BM3LY.template.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataBoardNestedStackBoardNestedStac-UQU47S9BM3LY.template.json deleted file mode 100644 index e99bbcea277..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataBoardNestedStackBoardNestedStac-UQU47S9BM3LY.template.json +++ /dev/null @@ -1,1989 +0,0 @@ -{ - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource4ABB9726Outputsamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataAmplifyTableManagerTableMa128CE2CC": { - "Type": "String" - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId": { - "Type": "String" - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name": { - "Type": "String" - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref": { - "Type": "String" - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef": { - "Type": "String" - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef": { - "Type": "String" - } - }, - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - "NONE", - "NONE" - ] - } - ] - }, - "ShouldUsePayPerRequestBilling": { - "Fn::Equals": [ - { - "Ref": "DynamoDBBillingMode" - }, - "PAY_PER_REQUEST" - ] - }, - "ShouldUsePointInTimeRecovery": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "true" - ] - }, - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Resources": { - "BoardTable": { - "Type": "Custom::ImportedAmplifyDynamoDBTable", - "Properties": { - "ServiceToken": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource4ABB9726Outputsamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataAmplifyTableManagerTableMa128CE2CC" - }, - "tableName": "Board-vsozkn3hbzdjppzyf7xtf2f4sy-main", - "attributeDefinitions": [ - { - "attributeName": "id", - "attributeType": "S" - } - ], - "keySchema": [ - { - "attributeName": "id", - "keyType": "HASH" - } - ], - "provisionedThroughput": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - { - "Ref": "AWS::NoValue" - }, - { - "ReadCapacityUnits": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "WriteCapacityUnits": { - "Ref": "DynamoDBModelTableWriteIOPS" - } - } - ] - }, - "sseSpecification": { - "sseEnabled": false - }, - "streamSpecification": { - "streamViewType": "NEW_AND_OLD_IMAGES" - }, - "deletionProtectionEnabled": true, - "allowDestructiveGraphqlSchemaUpdates": true, - "replaceTableUponGsiUpdate": false, - "isImported": true, - "pointInTimeRecoverySpecification": { - "Fn::If": [ - "ShouldUsePointInTimeRecovery", - { - "PointInTimeRecoveryEnabled": true - }, - { - "Ref": "AWS::NoValue" - } - ] - }, - "billingMode": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - "PAY_PER_REQUEST", - { - "Ref": "AWS::NoValue" - } - ] - } - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain", - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/Board/BoardTable/Default/Default" - } - }, - "BoardIAMRole2AFA0B47": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:DeleteItem", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:Query", - "dynamodb:UpdateItem", - "dynamodb:ConditionCheckItem", - "dynamodb:DescribeTable", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", - { - "tablename": "Board-vsozkn3hbzdjppzyf7xtf2f4sy-main" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", - { - "tablename": "Board-vsozkn3hbzdjppzyf7xtf2f4sy-main" - } - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "DynamoDBAccess" - } - ], - "RoleName": { - "Fn::Join": [ - "", - [ - "BoardIAMRolecda8e3-", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "-NONE" - ] - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/Board/BoardIAMRole/Resource" - } - }, - "BoardDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DynamoDBConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "TableName": { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "BoardTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - } - }, - "Name": "BoardTable", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "BoardIAMRole2AFA0B47", - "Arn" - ] - }, - "Type": "AMAZON_DYNAMODB" - }, - "DependsOn": [ - "BoardIAMRole2AFA0B47" - ], - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/Board/BoardDataSource/Resource" - } - }, - "QuerygetBoardauth0FunctionQuerygetBoardauth0FunctionAppSyncFunctionEEE5FFDD": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetBoardauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/0224a3e5097427da3f4460b5d6d2b86ad4195c9cb8da7bc13e7187eead1c3ae3.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/Board/QuerygetBoardauth0Function/QuerygetBoardauth0Function.AppSyncFunction" - } - }, - "QuerygetBoardpostAuth0FunctionQuerygetBoardpostAuth0FunctionAppSyncFunctionF3579798": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetBoardpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/Board/QuerygetBoardpostAuth0Function/QuerygetBoardpostAuth0Function.AppSyncFunction" - } - }, - "QueryGetBoardDataResolverFnQueryGetBoardDataResolverFnAppSyncFunction4DCC2B77": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "BoardDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryGetBoardDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/08f4d557693d96c1a4efba0f9dc91330e4b19772fd5477c156468843e3d9cb5e.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4c6a2d29f01c6091bd1d9afe16e5849d456c96f17c3b215938c8067399532719.vtl" - } - }, - "DependsOn": [ - "BoardDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/Board/QueryGetBoardDataResolverFn/QueryGetBoardDataResolverFn.AppSyncFunction" - } - }, - "GetBoardResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "FieldName": "getBoard", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerygetBoardauth0FunctionQuerygetBoardauth0FunctionAppSyncFunctionEEE5FFDD", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetBoardpostAuth0FunctionQuerygetBoardpostAuth0FunctionAppSyncFunctionF3579798", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryGetBoardDataResolverFnQueryGetBoardDataResolverFnAppSyncFunction4DCC2B77", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getBoard\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "BoardTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/Board/queryGetBoardResolver" - } - }, - "QuerylistBoardsauth0FunctionQuerylistBoardsauth0FunctionAppSyncFunction8EA5F758": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerylistBoardsauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/0224a3e5097427da3f4460b5d6d2b86ad4195c9cb8da7bc13e7187eead1c3ae3.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/Board/QuerylistBoardsauth0Function/QuerylistBoardsauth0Function.AppSyncFunction" - } - }, - "QuerylistBoardspostAuth0FunctionQuerylistBoardspostAuth0FunctionAppSyncFunction8CF3B4E6": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerylistBoardspostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/Board/QuerylistBoardspostAuth0Function/QuerylistBoardspostAuth0Function.AppSyncFunction" - } - }, - "QueryListBoardsDataResolverFnQueryListBoardsDataResolverFnAppSyncFunction6FD2B54C": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "BoardDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryListBoardsDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9fcbe070ecd3023c5bf5b966fa9584757db9762eef123bad0820bd87591b2174.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/cc01911d0269d4080ea57505dc445dfc315ef7ad85d3d9d4ea1357858bff451d.vtl" - } - }, - "DependsOn": [ - "BoardDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/Board/QueryListBoardsDataResolverFn/QueryListBoardsDataResolverFn.AppSyncFunction" - } - }, - "ListBoardResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "FieldName": "listBoards", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerylistBoardsauth0FunctionQuerylistBoardsauth0FunctionAppSyncFunction8EA5F758", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerylistBoardspostAuth0FunctionQuerylistBoardspostAuth0FunctionAppSyncFunction8CF3B4E6", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryListBoardsDataResolverFnQueryListBoardsDataResolverFnAppSyncFunction6FD2B54C", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listBoards\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "BoardTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/Board/queryListBoardsResolver" - } - }, - "MutationcreateBoardinit0FunctionMutationcreateBoardinit0FunctionAppSyncFunction4C83C02C": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateBoardinit0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a183ddccbd956316c38ef97177b8f088ef0826f62023323f5ae6053d348ccffc.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/Board/MutationcreateBoardinit0Function/MutationcreateBoardinit0Function.AppSyncFunction" - } - }, - "MutationcreateBoardauth0FunctionMutationcreateBoardauth0FunctionAppSyncFunction70CF5FF3": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateBoardauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/d637c1fb7301003b8a5ada269338cf2e8df6cc0dc412ef13acc6158d680b6d3e.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/Board/MutationcreateBoardauth0Function/MutationcreateBoardauth0Function.AppSyncFunction" - } - }, - "MutationcreateBoardpostAuth0FunctionMutationcreateBoardpostAuth0FunctionAppSyncFunction9F246578": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateBoardpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/Board/MutationcreateBoardpostAuth0Function/MutationcreateBoardpostAuth0Function.AppSyncFunction" - } - }, - "MutationCreateBoardDataResolverFnMutationCreateBoardDataResolverFnAppSyncFunctionA8197CF5": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "BoardDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationCreateBoardDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/91ba221dcacf4a6efa3ea6046d228b924c7beebe3045691a4424efa6b76f25d0.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "BoardDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/Board/MutationCreateBoardDataResolverFn/MutationCreateBoardDataResolverFn.AppSyncFunction" - } - }, - "CreateBoardResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "FieldName": "createBoard", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationcreateBoardinit0FunctionMutationcreateBoardinit0FunctionAppSyncFunction4C83C02C", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationcreateBoardauth0FunctionMutationcreateBoardauth0FunctionAppSyncFunction70CF5FF3", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationcreateBoardpostAuth0FunctionMutationcreateBoardpostAuth0FunctionAppSyncFunction9F246578", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationCreateBoardDataResolverFnMutationCreateBoardDataResolverFnAppSyncFunctionA8197CF5", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createBoard\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "BoardTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/Board/mutationCreateBoardResolver" - } - }, - "MutationupdateBoardinit0FunctionMutationupdateBoardinit0FunctionAppSyncFunction8F5DC918": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateBoardinit0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/06db846fd14e6fc371f22b12b5545ba8e2dbfeda85d8c8d586c71c282166657b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/Board/MutationupdateBoardinit0Function/MutationupdateBoardinit0Function.AppSyncFunction" - } - }, - "MutationupdateBoardauth0FunctionMutationupdateBoardauth0FunctionAppSyncFunction2E8E275A": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "BoardDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateBoardauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/89f92efd98b1034df0e2497fe31a97de6975de554b8a22e0677d05d6efcafa59.vtl" - } - }, - "DependsOn": [ - "BoardDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/Board/MutationupdateBoardauth0Function/MutationupdateBoardauth0Function.AppSyncFunction" - } - }, - "MutationupdateBoardpostAuth0FunctionMutationupdateBoardpostAuth0FunctionAppSyncFunction7CBBFF9D": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateBoardpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/Board/MutationupdateBoardpostAuth0Function/MutationupdateBoardpostAuth0Function.AppSyncFunction" - } - }, - "MutationUpdateBoardDataResolverFnMutationUpdateBoardDataResolverFnAppSyncFunction9C4A47A5": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "BoardDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationUpdateBoardDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/474bf0776ec2164a13191d1a0a9e057154931e4918fea5086f49850d02a5371b.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "BoardDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/Board/MutationUpdateBoardDataResolverFn/MutationUpdateBoardDataResolverFn.AppSyncFunction" - } - }, - "UpdateBoardResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "FieldName": "updateBoard", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationupdateBoardinit0FunctionMutationupdateBoardinit0FunctionAppSyncFunction8F5DC918", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationupdateBoardauth0FunctionMutationupdateBoardauth0FunctionAppSyncFunction2E8E275A", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationupdateBoardpostAuth0FunctionMutationupdateBoardpostAuth0FunctionAppSyncFunction7CBBFF9D", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationUpdateBoardDataResolverFnMutationUpdateBoardDataResolverFnAppSyncFunction9C4A47A5", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateBoard\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "BoardTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/Board/mutationUpdateBoardResolver" - } - }, - "MutationdeleteBoardauth0FunctionMutationdeleteBoardauth0FunctionAppSyncFunctionDCC1EFD9": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "BoardDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeleteBoardauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e3416b4d47414f29c21e59a70e83bddb959ef0625854ed7fb0ca376573e99069.vtl" - } - }, - "DependsOn": [ - "BoardDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/Board/MutationdeleteBoardauth0Function/MutationdeleteBoardauth0Function.AppSyncFunction" - } - }, - "MutationdeleteBoardpostAuth0FunctionMutationdeleteBoardpostAuth0FunctionAppSyncFunction23394BC0": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeleteBoardpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/Board/MutationdeleteBoardpostAuth0Function/MutationdeleteBoardpostAuth0Function.AppSyncFunction" - } - }, - "MutationDeleteBoardDataResolverFnMutationDeleteBoardDataResolverFnAppSyncFunctionFAEDC2FC": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "BoardDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationDeleteBoardDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4f7907d1209a2c9953a0c053df402c634e359546d70c7cc5c2e8e21ea734880f.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "BoardDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/Board/MutationDeleteBoardDataResolverFn/MutationDeleteBoardDataResolverFn.AppSyncFunction" - } - }, - "DeleteBoardResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "FieldName": "deleteBoard", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationdeleteBoardauth0FunctionMutationdeleteBoardauth0FunctionAppSyncFunctionDCC1EFD9", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationdeleteBoardpostAuth0FunctionMutationdeleteBoardpostAuth0FunctionAppSyncFunction23394BC0", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationDeleteBoardDataResolverFnMutationDeleteBoardDataResolverFnAppSyncFunctionFAEDC2FC", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteBoard\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "BoardTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/Board/mutationDeleteBoardResolver" - } - }, - "SubscriptiononCreateBoardauth0FunctionSubscriptiononCreateBoardauth0FunctionAppSyncFunctionD4360E95": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononCreateBoardauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e6da5a6e993df8b5fdc91086b71eb53e72a3a97c98836ef9c9257776f36c452b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/Board/SubscriptiononCreateBoardauth0Function/SubscriptiononCreateBoardauth0Function.AppSyncFunction" - } - }, - "SubscriptiononCreateBoardpostAuth0FunctionSubscriptiononCreateBoardpostAuth0FunctionAppSyncFunction5749A844": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononCreateBoardpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/Board/SubscriptiononCreateBoardpostAuth0Function/SubscriptiononCreateBoardpostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnCreateBoardDataResolverFnSubscriptionOnCreateBoardDataResolverFnAppSyncFunctionE7F89181": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnCreateBoardDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/Board/SubscriptionOnCreateBoardDataResolverFn/SubscriptionOnCreateBoardDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononCreateBoardResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "FieldName": "onCreateBoard", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononCreateBoardauth0FunctionSubscriptiononCreateBoardauth0FunctionAppSyncFunctionD4360E95", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononCreateBoardpostAuth0FunctionSubscriptiononCreateBoardpostAuth0FunctionAppSyncFunction5749A844", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnCreateBoardDataResolverFnSubscriptionOnCreateBoardDataResolverFnAppSyncFunctionE7F89181", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateBoard\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/Board/subscriptionOnCreateBoardResolver" - } - }, - "SubscriptiononUpdateBoardauth0FunctionSubscriptiononUpdateBoardauth0FunctionAppSyncFunction757414C8": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononUpdateBoardauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e6da5a6e993df8b5fdc91086b71eb53e72a3a97c98836ef9c9257776f36c452b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/Board/SubscriptiononUpdateBoardauth0Function/SubscriptiononUpdateBoardauth0Function.AppSyncFunction" - } - }, - "SubscriptiononUpdateBoardpostAuth0FunctionSubscriptiononUpdateBoardpostAuth0FunctionAppSyncFunctionC254B5F8": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononUpdateBoardpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/Board/SubscriptiononUpdateBoardpostAuth0Function/SubscriptiononUpdateBoardpostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnUpdateBoardDataResolverFnSubscriptionOnUpdateBoardDataResolverFnAppSyncFunction0D16E1E0": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnUpdateBoardDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/Board/SubscriptionOnUpdateBoardDataResolverFn/SubscriptionOnUpdateBoardDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononUpdateBoardResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "FieldName": "onUpdateBoard", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononUpdateBoardauth0FunctionSubscriptiononUpdateBoardauth0FunctionAppSyncFunction757414C8", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononUpdateBoardpostAuth0FunctionSubscriptiononUpdateBoardpostAuth0FunctionAppSyncFunctionC254B5F8", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnUpdateBoardDataResolverFnSubscriptionOnUpdateBoardDataResolverFnAppSyncFunction0D16E1E0", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateBoard\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/Board/subscriptionOnUpdateBoardResolver" - } - }, - "SubscriptiononDeleteBoardauth0FunctionSubscriptiononDeleteBoardauth0FunctionAppSyncFunction303FE040": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononDeleteBoardauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e6da5a6e993df8b5fdc91086b71eb53e72a3a97c98836ef9c9257776f36c452b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/Board/SubscriptiononDeleteBoardauth0Function/SubscriptiononDeleteBoardauth0Function.AppSyncFunction" - } - }, - "SubscriptiononDeleteBoardpostAuth0FunctionSubscriptiononDeleteBoardpostAuth0FunctionAppSyncFunction530FEB4B": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononDeleteBoardpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/Board/SubscriptiononDeleteBoardpostAuth0Function/SubscriptiononDeleteBoardpostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnDeleteBoardDataResolverFnSubscriptionOnDeleteBoardDataResolverFnAppSyncFunctionAEAB75CD": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnDeleteBoardDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/Board/SubscriptionOnDeleteBoardDataResolverFn/SubscriptionOnDeleteBoardDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononDeleteBoardResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "FieldName": "onDeleteBoard", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononDeleteBoardauth0FunctionSubscriptiononDeleteBoardauth0FunctionAppSyncFunction303FE040", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononDeleteBoardpostAuth0FunctionSubscriptiononDeleteBoardpostAuth0FunctionAppSyncFunction530FEB4B", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnDeleteBoardDataResolverFnSubscriptionOnDeleteBoardDataResolverFnAppSyncFunctionAEAB75CD", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteBoard\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/Board/subscriptionOnDeleteBoardResolver" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOwW6DMAyGn6X34LV0h11Xqh63CXavTGJQCjgodlpViHefoFOnnX5/8if7zyF/3cF2gzfJrOuy3tcwfZAouUrRdqZo+AsjDqQUFygCO68+sClJQoqWTJFEw/CHDT9nvMl5cnfGIbgavrHu6YBCxuMAUxn6hx16mg2Oo9zZwnRc9WN9RMXqefI/nRLbpUQRuPFtirg2+v3cXynORvZnFCEVeF/CyB4OyXakS4F5cT+TjknNuq4UW8/tbDg4gou8XPMcdm+w3VzE+ywmVj8QlI/8AXh83Gc2AQAA" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/Board/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Outputs": { - "GetAttBoardTableStreamArn": { - "Description": "Your DynamoDB table StreamArn.", - "Value": { - "Fn::GetAtt": [ - "BoardTable", - "TableStreamArn" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "GetAtt:BoardTable:StreamArn" - ] - ] - } - } - }, - "GetAttBoardTableName": { - "Description": "Your DynamoDB table name.", - "Value": "Board-vsozkn3hbzdjppzyf7xtf2f4sy-main", - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "GetAtt:BoardTable:Name" - ] - ] - } - } - }, - "amplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataBoardBoardDataSource3085F3C2Name": { - "Value": { - "Fn::GetAtt": [ - "BoardDataSource", - "Name" - ] - } - }, - "amplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataBoardBoardTable0122C8B9TableArn": { - "Value": { - "Fn::GetAtt": [ - "BoardTable", - "TableArn" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataConnectionStackNestedStackConne-R765IKG6ER6M.description.txt b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataConnectionStackNestedStackConne-R765IKG6ER6M.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataConnectionStackNestedStackConne-R765IKG6ER6M.outputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataConnectionStackNestedStackConne-R765IKG6ER6M.outputs.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataConnectionStackNestedStackConne-R765IKG6ER6M.outputs.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataConnectionStackNestedStackConne-R765IKG6ER6M.parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataConnectionStackNestedStackConne-R765IKG6ER6M.parameters.json deleted file mode 100644 index c2bdcc122ad..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataConnectionStackNestedStackConne-R765IKG6ER6M.parameters.json +++ /dev/null @@ -1,38 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataBoardNestedStackBoardNestedStackResource0021E276Outputsamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataBoardBoardTable0122C8B9TableArn", - "ParameterValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Board-vsozkn3hbzdjppzyf7xtf2f4sy-main" - }, - { - "ParameterKey": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref", - "ParameterValue": "amplify-moodboard-ge-amplifyAuthauthenticatedU-UANJImTyKZ7p" - }, - { - "ParameterKey": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataBoardNestedStackBoardNestedStackResource0021E276Outputsamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataBoardBoardDataSource3085F3C2Name", - "ParameterValue": "BoardTable" - }, - { - "ParameterKey": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataMoodItemNestedStackMoodItemNestedStackResource4E691658Outputsamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataMoodItemMoodItemTable2DB74480TableArn", - "ParameterValue": "arn:aws:dynamodb:us-east-1:123456789012:table/MoodItem-vsozkn3hbzdjppzyf7xtf2f4sy-main" - }, - { - "ParameterKey": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef", - "ParameterValue": "us-east-1:820c5910-56e0-4010-b0c4-b457a728acfb" - }, - { - "ParameterKey": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef", - "ParameterValue": "amplify-moodboard-ge-amplifyAuthunauthenticate-rp3r1qUbAKVV" - }, - { - "ParameterKey": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId", - "ParameterValue": "i3rfe6qyonbeldjtlui5jixz4u" - }, - { - "ParameterKey": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataMoodItemNestedStackMoodItemNestedStackResource4E691658Outputsamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataMoodItemMoodItemDataSource2ACD4FADName", - "ParameterValue": "MoodItemTable" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataConnectionStackNestedStackConne-R765IKG6ER6M.template.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataConnectionStackNestedStackConne-R765IKG6ER6M.template.json deleted file mode 100644 index f1a78998904..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataConnectionStackNestedStackConne-R765IKG6ER6M.template.json +++ /dev/null @@ -1,583 +0,0 @@ -{ - "Resources": { - "BoardmoodItemsauth0FunctionBoardmoodItemsauth0FunctionAppSyncFunction24F8C273": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "BoardmoodItemsauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/98d57dc1efb9e47547e4d43b376202499240f34e43676c88c84fab62008b2bf5.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/ConnectionStack/BoardmoodItemsauth0Function/BoardmoodItemsauth0Function.AppSyncFunction" - } - }, - "BoardMoodItemsDataResolverFnBoardMoodItemsDataResolverFnAppSyncFunctionB8E73866": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataMoodItemNestedStackMoodItemNestedStackResource4E691658Outputsamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataMoodItemMoodItemDataSource2ACD4FADName" - }, - "FunctionVersion": "2018-05-29", - "Name": "BoardMoodItemsDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c43305e324a276ceb315eb5da935c30dac852757e2b7341b837c9e1b06f24ee5.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/49e7a1f2fb4c809b82bed6b0242a2a3bcfa2c5276ebd2539ff330fee36f8fe18.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/ConnectionStack/BoardMoodItemsDataResolverFn/BoardMoodItemsDataResolverFn.AppSyncFunction" - } - }, - "BoardmoodItemsResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "FieldName": "moodItems", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "BoardmoodItemsauth0FunctionBoardmoodItemsauth0FunctionAppSyncFunction24F8C273", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "BoardMoodItemsDataResolverFnBoardMoodItemsDataResolverFnAppSyncFunctionB8E73866", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Board\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"moodItems\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataMoodItemNestedStackMoodItemNestedStackResource4E691658Outputsamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataMoodItemMoodItemTable2DB74480TableArn" - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Board" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/ConnectionStack/boardMoodItemsResolver" - } - }, - "MoodItemboardauth0FunctionMoodItemboardauth0FunctionAppSyncFunction416199D8": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MoodItemboardauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/98d57dc1efb9e47547e4d43b376202499240f34e43676c88c84fab62008b2bf5.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/ConnectionStack/MoodItemboardauth0Function/MoodItemboardauth0Function.AppSyncFunction" - } - }, - "MoodItemBoardDataResolverFnMoodItemBoardDataResolverFnAppSyncFunction5C7B0B1B": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataBoardNestedStackBoardNestedStackResource0021E276Outputsamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataBoardBoardDataSource3085F3C2Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MoodItemBoardDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/6d2289d92845b8b42d4ce0b1ac3d7104ec906333c76cb76f4d424abf2bc8ca43.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/dcb70e4856bc9a423e02b8b9e9c2ab3f71479784572d4c04a02d1f5b61a9f9ac.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/ConnectionStack/MoodItemBoardDataResolverFn/MoodItemBoardDataResolverFn.AppSyncFunction" - } - }, - "MoodItemboardResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "FieldName": "board", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MoodItemboardauth0FunctionMoodItemboardauth0FunctionAppSyncFunction416199D8", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MoodItemBoardDataResolverFnMoodItemBoardDataResolverFnAppSyncFunction5C7B0B1B", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"MoodItem\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"board\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataBoardNestedStackBoardNestedStackResource0021E276Outputsamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataBoardBoardTable0122C8B9TableArn" - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "MoodItem" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/ConnectionStack/moodItemBoardResolver" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXMsQ6CMBCA4WdhLycUB1chcXSAByBnOUgBr6TXQgzh3Q06ffmXX4O+5pAluElquimd7Qv2J0mgrgloJoWbtLsULYpQELifKCmgjGaiUKKQwmWRDxvYq54fkU2wjivHvR2ixzNU1XNN4uaV/HGo36MJOFgeDsWuIxjlsmoN+Q2yZBRrUx852DdB/fcLM5uzFKcAAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/ConnectionStack/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId": { - "Type": "String" - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name": { - "Type": "String" - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataMoodItemNestedStackMoodItemNestedStackResource4E691658Outputsamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataMoodItemMoodItemDataSource2ACD4FADName": { - "Type": "String" - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataMoodItemNestedStackMoodItemNestedStackResource4E691658Outputsamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataMoodItemMoodItemTable2DB74480TableArn": { - "Type": "String" - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref": { - "Type": "String" - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef": { - "Type": "String" - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef": { - "Type": "String" - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataBoardNestedStackBoardNestedStackResource0021E276Outputsamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataBoardBoardDataSource3085F3C2Name": { - "Type": "String" - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataBoardNestedStackBoardNestedStackResource0021E276Outputsamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataBoardBoardTable0122C8B9TableArn": { - "Type": "String" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataFunctionDirectiveStackNestedSta-SQ5IB8G0WA1E.description.txt b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataFunctionDirectiveStackNestedSta-SQ5IB8G0WA1E.description.txt deleted file mode 100644 index 87d574fa42f..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataFunctionDirectiveStackNestedSta-SQ5IB8G0WA1E.description.txt +++ /dev/null @@ -1 +0,0 @@ -An auto-generated nested stack for the @function directive. \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataFunctionDirectiveStackNestedSta-SQ5IB8G0WA1E.outputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataFunctionDirectiveStackNestedSta-SQ5IB8G0WA1E.outputs.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataFunctionDirectiveStackNestedSta-SQ5IB8G0WA1E.outputs.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataFunctionDirectiveStackNestedSta-SQ5IB8G0WA1E.parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataFunctionDirectiveStackNestedSta-SQ5IB8G0WA1E.parameters.json deleted file mode 100644 index 56601227fbf..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataFunctionDirectiveStackNestedSta-SQ5IB8G0WA1E.parameters.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref", - "ParameterValue": "amplify-moodboard-ge-amplifyAuthauthenticatedU-UANJImTyKZ7p" - }, - { - "ParameterKey": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef", - "ParameterValue": "us-east-1:820c5910-56e0-4010-b0c4-b457a728acfb" - }, - { - "ParameterKey": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef", - "ParameterValue": "amplify-moodboard-ge-amplifyAuthunauthenticate-rp3r1qUbAKVV" - }, - { - "ParameterKey": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId", - "ParameterValue": "i3rfe6qyonbeldjtlui5jixz4u" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataFunctionDirectiveStackNestedSta-SQ5IB8G0WA1E.template.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataFunctionDirectiveStackNestedSta-SQ5IB8G0WA1E.template.json deleted file mode 100644 index 0a4b5504427..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataFunctionDirectiveStackNestedSta-SQ5IB8G0WA1E.template.json +++ /dev/null @@ -1,803 +0,0 @@ -{ - "Description": "An auto-generated nested stack for the @function directive.", - "AWSTemplateFormatVersion": "2010-09-09", - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - "NONE", - "NONE" - ] - } - ] - }, - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Resources": { - "MoodboardGetRandomEmojiGen2MainLambdaDataSourceServiceRole37A55F7F": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/FunctionDirectiveStack/MoodboardGetRandomEmojiGen2MainLambdaDataSource/ServiceRole/Resource" - } - }, - "MoodboardGetRandomEmojiGen2MainLambdaDataSourceServiceRoleDefaultPolicyE4B81B69": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "lambda:InvokeFunction", - "Effect": "Allow", - "Resource": [ - { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardGetRandomEmoji-gen2-main", - {} - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardGetRandomEmoji-gen2-main" - } - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardGetRandomEmoji-gen2-main", - {} - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardGetRandomEmoji-gen2-main" - } - ] - }, - ":*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "MoodboardGetRandomEmojiGen2MainLambdaDataSourceServiceRoleDefaultPolicyE4B81B69", - "Roles": [ - { - "Ref": "MoodboardGetRandomEmojiGen2MainLambdaDataSourceServiceRole37A55F7F" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/FunctionDirectiveStack/MoodboardGetRandomEmojiGen2MainLambdaDataSource/ServiceRole/DefaultPolicy/Resource" - } - }, - "MoodboardGetRandomEmojiGen2MainLambdaDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "LambdaConfig": { - "LambdaFunctionArn": { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardGetRandomEmoji-gen2-main", - {} - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardGetRandomEmoji-gen2-main" - } - ] - } - }, - "Name": "MoodboardGetRandomEmojiGen2MainLambdaDataSource", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "MoodboardGetRandomEmojiGen2MainLambdaDataSourceServiceRole37A55F7F", - "Arn" - ] - }, - "Type": "AWS_LAMBDA" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/FunctionDirectiveStack/MoodboardGetRandomEmojiGen2MainLambdaDataSource/Resource" - } - }, - "InvokeMoodboardGetRandomEmojiGen2MainLambdaDataSourceInvokeMoodboardGetRandomEmojiGen2MainLambdaDataSourceAppSyncFunction60A90DEE": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "MoodboardGetRandomEmojiGen2MainLambdaDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "InvokeMoodboardGetRandomEmojiGen2MainLambdaDataSource", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a93d83e7793e5c478e64dccaeae2fa482fb00bba3e74709762f8b793fdab500e.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a20e304512b1fde77dc16ed9d5e0ed03817afcab629ce87ef11c99877b7b1e30.vtl" - } - }, - "DependsOn": [ - "MoodboardGetRandomEmojiGen2MainLambdaDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/FunctionDirectiveStack/InvokeMoodboardGetRandomEmojiGen2MainLambdaDataSource/InvokeMoodboardGetRandomEmojiGen2MainLambdaDataSource.AppSyncFunction" - } - }, - "QuerygetRandomEmojiResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "FieldName": "getRandomEmoji", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QueryGetRandomEmojiAuthFNQueryGetRandomEmojiAuthFNAppSyncFunction4A668110", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "InvokeMoodboardGetRandomEmojiGen2MainLambdaDataSourceInvokeMoodboardGetRandomEmojiGen2MainLambdaDataSourceAppSyncFunction60A90DEE", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getRandomEmoji\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n{}\n## [End] Stash resolver specific context.. **" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/387d5992f5fc03d05de27289457dcc374a84c42a889acb504aff1031047dde00.vtl" - }, - "TypeName": "Query" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/FunctionDirectiveStack/queryGetRandomEmojiResolver" - } - }, - "MoodboardKinesisreaderGen2MainLambdaDataSourceServiceRoleF006F100": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/FunctionDirectiveStack/MoodboardKinesisreaderGen2MainLambdaDataSource/ServiceRole/Resource" - } - }, - "MoodboardKinesisreaderGen2MainLambdaDataSourceServiceRoleDefaultPolicy00E5447F": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "lambda:InvokeFunction", - "Effect": "Allow", - "Resource": [ - { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardKinesisReader-gen2-main", - {} - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardKinesisReader-gen2-main" - } - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardKinesisReader-gen2-main", - {} - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardKinesisReader-gen2-main" - } - ] - }, - ":*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "MoodboardKinesisreaderGen2MainLambdaDataSourceServiceRoleDefaultPolicy00E5447F", - "Roles": [ - { - "Ref": "MoodboardKinesisreaderGen2MainLambdaDataSourceServiceRoleF006F100" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/FunctionDirectiveStack/MoodboardKinesisreaderGen2MainLambdaDataSource/ServiceRole/DefaultPolicy/Resource" - } - }, - "MoodboardKinesisreaderGen2MainLambdaDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "LambdaConfig": { - "LambdaFunctionArn": { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardKinesisReader-gen2-main", - {} - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardKinesisReader-gen2-main" - } - ] - } - }, - "Name": "MoodboardKinesisreaderGen2MainLambdaDataSource", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "MoodboardKinesisreaderGen2MainLambdaDataSourceServiceRoleF006F100", - "Arn" - ] - }, - "Type": "AWS_LAMBDA" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/FunctionDirectiveStack/MoodboardKinesisreaderGen2MainLambdaDataSource/Resource" - } - }, - "InvokeMoodboardKinesisreaderGen2MainLambdaDataSourceInvokeMoodboardKinesisreaderGen2MainLambdaDataSourceAppSyncFunction49E533F7": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "MoodboardKinesisreaderGen2MainLambdaDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "InvokeMoodboardKinesisreaderGen2MainLambdaDataSource", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/545f59c638fc7c84828c0c48c85d6dc00c9b2ad07f47784f416af4f0f92d3f12.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a20e304512b1fde77dc16ed9d5e0ed03817afcab629ce87ef11c99877b7b1e30.vtl" - } - }, - "DependsOn": [ - "MoodboardKinesisreaderGen2MainLambdaDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/FunctionDirectiveStack/InvokeMoodboardKinesisreaderGen2MainLambdaDataSource/InvokeMoodboardKinesisreaderGen2MainLambdaDataSource.AppSyncFunction" - } - }, - "QuerygetKinesisEventsResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "FieldName": "getKinesisEvents", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QueryGetKinesisEventsAuthFNQueryGetKinesisEventsAuthFNAppSyncFunctionC22C8158", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "InvokeMoodboardKinesisreaderGen2MainLambdaDataSourceInvokeMoodboardKinesisreaderGen2MainLambdaDataSourceAppSyncFunction49E533F7", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getKinesisEvents\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n{}\n## [End] Stash resolver specific context.. **" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/387d5992f5fc03d05de27289457dcc374a84c42a889acb504aff1031047dde00.vtl" - }, - "TypeName": "Query" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/FunctionDirectiveStack/queryGetKinesisEventsResolver" - } - }, - "QueryGetRandomEmojiAuthFNQueryGetRandomEmojiAuthFNAppSyncFunction4A668110": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryGetRandomEmojiAuthFN", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/3d72cc99f51abdee9e8ef0ac8f5f84a36b933ea339e0dabbc93ff98009dbf274.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/FunctionDirectiveStack/QueryGetRandomEmojiAuthFN/QueryGetRandomEmojiAuthFN.AppSyncFunction" - } - }, - "QueryGetKinesisEventsAuthFNQueryGetKinesisEventsAuthFNAppSyncFunctionC22C8158": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryGetKinesisEventsAuthFN", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/3d72cc99f51abdee9e8ef0ac8f5f84a36b933ea339e0dabbc93ff98009dbf274.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/FunctionDirectiveStack/QueryGetKinesisEventsAuthFN/QueryGetKinesisEventsAuthFN.AppSyncFunction" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOQW/CMAyFfwv31IPCYdfRaadpmtofgEziVqapg+oEhKr+d5SgHXb6/J79nlxDfdjBdoN3rawbK89nWH5II7kuoh1N00sTxHHkIAbvelo8TmeH8JXEZvOISgavV32IheW7LD8xYhfSbCnn/6u/XBOk5yHNWJqbXlrS4G80r4ZxgqUNvtwX/gbP9pHla1qN7k+oSlHhI8PoHo7JjhTzP6spZhdxYBlWI8ERXPTtVtewe4ft5qLM1Zwk8kTQvvgElyxBfQsBAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/FunctionDirectiveStack/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Parameters": { - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId": { - "Type": "String" - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref": { - "Type": "String" - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef": { - "Type": "String" - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef": { - "Type": "String" - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name": { - "Type": "String" - } - } -} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataMoodItemNestedStackMoodItemNest-EGEYHHORWRH0.description.txt b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataMoodItemNestedStackMoodItemNest-EGEYHHORWRH0.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataMoodItemNestedStackMoodItemNest-EGEYHHORWRH0.outputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataMoodItemNestedStackMoodItemNest-EGEYHHORWRH0.outputs.json deleted file mode 100644 index 17a88471981..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataMoodItemNestedStackMoodItemNest-EGEYHHORWRH0.outputs.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "OutputKey": "GetAttMoodItemTableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/MoodItem-vsozkn3hbzdjppzyf7xtf2f4sy-main/stream/2026-03-08T17:03:43.962", - "Description": "Your DynamoDB table StreamArn.", - "ExportName": "i3rfe6qyonbeldjtlui5jixz4u:GetAtt:MoodItemTable:StreamArn" - }, - { - "OutputKey": "amplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataMoodItemMoodItemTable2DB74480TableArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/MoodItem-vsozkn3hbzdjppzyf7xtf2f4sy-main" - }, - { - "OutputKey": "GetAttMoodItemTableName", - "OutputValue": "MoodItem-vsozkn3hbzdjppzyf7xtf2f4sy-main", - "Description": "Your DynamoDB table name.", - "ExportName": "i3rfe6qyonbeldjtlui5jixz4u:GetAtt:MoodItemTable:Name" - }, - { - "OutputKey": "amplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataMoodItemMoodItemDataSource2ACD4FADName", - "OutputValue": "MoodItemTable" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataMoodItemNestedStackMoodItemNest-EGEYHHORWRH0.parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataMoodItemNestedStackMoodItemNest-EGEYHHORWRH0.parameters.json deleted file mode 100644 index d40a96a83ea..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataMoodItemNestedStackMoodItemNest-EGEYHHORWRH0.parameters.json +++ /dev/null @@ -1,46 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource4ABB9726Outputsamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataAmplifyTableManagerTableMa128CE2CC", - "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-moodboard-ge-TableManagerCustomProvid-P9ApcdX7uMst" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "true" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref", - "ParameterValue": "amplify-moodboard-ge-amplifyAuthauthenticatedU-UANJImTyKZ7p" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef", - "ParameterValue": "us-east-1:820c5910-56e0-4010-b0c4-b457a728acfb" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef", - "ParameterValue": "amplify-moodboard-ge-amplifyAuthunauthenticate-rp3r1qUbAKVV" - }, - { - "ParameterKey": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId", - "ParameterValue": "i3rfe6qyonbeldjtlui5jixz4u" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataMoodItemNestedStackMoodItemNest-EGEYHHORWRH0.template.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataMoodItemNestedStackMoodItemNest-EGEYHHORWRH0.template.json deleted file mode 100644 index 4915a7f955b..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4-amplifyDataMoodItemNestedStackMoodItemNest-EGEYHHORWRH0.template.json +++ /dev/null @@ -1,2187 +0,0 @@ -{ - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource4ABB9726Outputsamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataAmplifyTableManagerTableMa128CE2CC": { - "Type": "String" - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId": { - "Type": "String" - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name": { - "Type": "String" - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref": { - "Type": "String" - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef": { - "Type": "String" - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef": { - "Type": "String" - } - }, - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - "NONE", - "NONE" - ] - } - ] - }, - "ShouldUsePayPerRequestBilling": { - "Fn::Equals": [ - { - "Ref": "DynamoDBBillingMode" - }, - "PAY_PER_REQUEST" - ] - }, - "ShouldUsePointInTimeRecovery": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "true" - ] - }, - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Resources": { - "MoodItemTable": { - "Type": "Custom::ImportedAmplifyDynamoDBTable", - "Properties": { - "ServiceToken": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource4ABB9726Outputsamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataAmplifyTableManagerTableMa128CE2CC" - }, - "tableName": "MoodItem-vsozkn3hbzdjppzyf7xtf2f4sy-main", - "attributeDefinitions": [ - { - "attributeName": "id", - "attributeType": "S" - }, - { - "attributeName": "boardID", - "attributeType": "S" - } - ], - "keySchema": [ - { - "attributeName": "id", - "keyType": "HASH" - } - ], - "globalSecondaryIndexes": [ - { - "indexName": "byBoard", - "keySchema": [ - { - "attributeName": "boardID", - "keyType": "HASH" - } - ], - "projection": { - "projectionType": "ALL" - }, - "provisionedThroughput": { - "readCapacityUnits": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "writeCapacityUnits": { - "Ref": "DynamoDBModelTableWriteIOPS" - } - } - } - ], - "provisionedThroughput": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - { - "Ref": "AWS::NoValue" - }, - { - "ReadCapacityUnits": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "WriteCapacityUnits": { - "Ref": "DynamoDBModelTableWriteIOPS" - } - } - ] - }, - "sseSpecification": { - "sseEnabled": false - }, - "streamSpecification": { - "streamViewType": "NEW_AND_OLD_IMAGES" - }, - "deletionProtectionEnabled": true, - "allowDestructiveGraphqlSchemaUpdates": true, - "replaceTableUponGsiUpdate": false, - "isImported": true, - "pointInTimeRecoverySpecification": { - "Fn::If": [ - "ShouldUsePointInTimeRecovery", - { - "PointInTimeRecoveryEnabled": true - }, - { - "Ref": "AWS::NoValue" - } - ] - }, - "billingMode": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - "PAY_PER_REQUEST", - { - "Ref": "AWS::NoValue" - } - ] - } - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain", - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/MoodItem/MoodItemTable/Default/Default" - } - }, - "MoodItemIAMRoleF26F66C1": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:DeleteItem", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:Query", - "dynamodb:UpdateItem", - "dynamodb:ConditionCheckItem", - "dynamodb:DescribeTable", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", - { - "tablename": "MoodItem-vsozkn3hbzdjppzyf7xtf2f4sy-main" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", - { - "tablename": "MoodItem-vsozkn3hbzdjppzyf7xtf2f4sy-main" - } - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "DynamoDBAccess" - } - ], - "RoleName": { - "Fn::Join": [ - "", - [ - "MoodItemIAMRoleceb4fa-", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "-NONE" - ] - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/MoodItem/MoodItemIAMRole/Resource" - } - }, - "MoodItemDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DynamoDBConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "TableName": { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "MoodItemTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - } - }, - "Name": "MoodItemTable", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "MoodItemIAMRoleF26F66C1", - "Arn" - ] - }, - "Type": "AMAZON_DYNAMODB" - }, - "DependsOn": [ - "MoodItemIAMRoleF26F66C1" - ], - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/MoodItem/MoodItemDataSource/Resource" - } - }, - "QuerygetMoodItemauth0FunctionQuerygetMoodItemauth0FunctionAppSyncFunctionCAE48F92": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetMoodItemauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/0224a3e5097427da3f4460b5d6d2b86ad4195c9cb8da7bc13e7187eead1c3ae3.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/MoodItem/QuerygetMoodItemauth0Function/QuerygetMoodItemauth0Function.AppSyncFunction" - } - }, - "QuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunction58B7D6AA": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetMoodItempostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/MoodItem/QuerygetMoodItempostAuth0Function/QuerygetMoodItempostAuth0Function.AppSyncFunction" - } - }, - "QueryGetMoodItemDataResolverFnQueryGetMoodItemDataResolverFnAppSyncFunction0BCF2013": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "MoodItemDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryGetMoodItemDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/08f4d557693d96c1a4efba0f9dc91330e4b19772fd5477c156468843e3d9cb5e.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4c6a2d29f01c6091bd1d9afe16e5849d456c96f17c3b215938c8067399532719.vtl" - } - }, - "DependsOn": [ - "MoodItemDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/MoodItem/QueryGetMoodItemDataResolverFn/QueryGetMoodItemDataResolverFn.AppSyncFunction" - } - }, - "GetMoodItemResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "FieldName": "getMoodItem", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerygetMoodItemauth0FunctionQuerygetMoodItemauth0FunctionAppSyncFunctionCAE48F92", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunction58B7D6AA", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryGetMoodItemDataResolverFnQueryGetMoodItemDataResolverFnAppSyncFunction0BCF2013", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getMoodItem\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "MoodItemTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/MoodItem/queryGetMoodItemResolver" - } - }, - "QuerylistMoodItemsauth0FunctionQuerylistMoodItemsauth0FunctionAppSyncFunctionA44D3C4D": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerylistMoodItemsauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/0224a3e5097427da3f4460b5d6d2b86ad4195c9cb8da7bc13e7187eead1c3ae3.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/MoodItem/QuerylistMoodItemsauth0Function/QuerylistMoodItemsauth0Function.AppSyncFunction" - } - }, - "QuerylistMoodItemspostAuth0FunctionQuerylistMoodItemspostAuth0FunctionAppSyncFunctionAD9FFABD": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerylistMoodItemspostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/MoodItem/QuerylistMoodItemspostAuth0Function/QuerylistMoodItemspostAuth0Function.AppSyncFunction" - } - }, - "QueryListMoodItemsDataResolverFnQueryListMoodItemsDataResolverFnAppSyncFunction970FB8D0": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "MoodItemDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryListMoodItemsDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9fcbe070ecd3023c5bf5b966fa9584757db9762eef123bad0820bd87591b2174.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/cc01911d0269d4080ea57505dc445dfc315ef7ad85d3d9d4ea1357858bff451d.vtl" - } - }, - "DependsOn": [ - "MoodItemDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/MoodItem/QueryListMoodItemsDataResolverFn/QueryListMoodItemsDataResolverFn.AppSyncFunction" - } - }, - "ListMoodItemResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "FieldName": "listMoodItems", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerylistMoodItemsauth0FunctionQuerylistMoodItemsauth0FunctionAppSyncFunctionA44D3C4D", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerylistMoodItemspostAuth0FunctionQuerylistMoodItemspostAuth0FunctionAppSyncFunctionAD9FFABD", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryListMoodItemsDataResolverFnQueryListMoodItemsDataResolverFnAppSyncFunction970FB8D0", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listMoodItems\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "MoodItemTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/MoodItem/queryListMoodItemsResolver" - } - }, - "MutationcreateMoodIteminit0FunctionMutationcreateMoodIteminit0FunctionAppSyncFunction0FB01D04": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateMoodIteminit0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a183ddccbd956316c38ef97177b8f088ef0826f62023323f5ae6053d348ccffc.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/MoodItem/MutationcreateMoodIteminit0Function/MutationcreateMoodIteminit0Function.AppSyncFunction" - } - }, - "MutationcreateMoodItemauth0FunctionMutationcreateMoodItemauth0FunctionAppSyncFunction27CBB022": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateMoodItemauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/d637c1fb7301003b8a5ada269338cf2e8df6cc0dc412ef13acc6158d680b6d3e.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/MoodItem/MutationcreateMoodItemauth0Function/MutationcreateMoodItemauth0Function.AppSyncFunction" - } - }, - "MutationcreateMoodItempostAuth0FunctionMutationcreateMoodItempostAuth0FunctionAppSyncFunctionB8D432CF": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateMoodItempostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/MoodItem/MutationcreateMoodItempostAuth0Function/MutationcreateMoodItempostAuth0Function.AppSyncFunction" - } - }, - "MutationCreateMoodItemDataResolverFnMutationCreateMoodItemDataResolverFnAppSyncFunction050303E2": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "MoodItemDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationCreateMoodItemDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/53b4f00b338e3d78c439614cf83f24225044472934104f5a87ea5f84be97977b.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "MoodItemDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/MoodItem/MutationCreateMoodItemDataResolverFn/MutationCreateMoodItemDataResolverFn.AppSyncFunction" - } - }, - "CreateMoodItemResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "FieldName": "createMoodItem", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationcreateMoodIteminit0FunctionMutationcreateMoodIteminit0FunctionAppSyncFunction0FB01D04", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationcreateMoodItemauth0FunctionMutationcreateMoodItemauth0FunctionAppSyncFunction27CBB022", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationcreateMoodItempostAuth0FunctionMutationcreateMoodItempostAuth0FunctionAppSyncFunctionB8D432CF", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationCreateMoodItemDataResolverFnMutationCreateMoodItemDataResolverFnAppSyncFunction050303E2", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createMoodItem\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "MoodItemTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/MoodItem/mutationCreateMoodItemResolver" - } - }, - "MutationupdateMoodIteminit0FunctionMutationupdateMoodIteminit0FunctionAppSyncFunctionF04BFE8B": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateMoodIteminit0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/06db846fd14e6fc371f22b12b5545ba8e2dbfeda85d8c8d586c71c282166657b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/MoodItem/MutationupdateMoodIteminit0Function/MutationupdateMoodIteminit0Function.AppSyncFunction" - } - }, - "MutationupdateMoodItemauth0FunctionMutationupdateMoodItemauth0FunctionAppSyncFunctionD40CC9A2": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "MoodItemDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateMoodItemauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/89f92efd98b1034df0e2497fe31a97de6975de554b8a22e0677d05d6efcafa59.vtl" - } - }, - "DependsOn": [ - "MoodItemDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/MoodItem/MutationupdateMoodItemauth0Function/MutationupdateMoodItemauth0Function.AppSyncFunction" - } - }, - "MutationupdateMoodItempostAuth0FunctionMutationupdateMoodItempostAuth0FunctionAppSyncFunction00B96B17": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateMoodItempostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/MoodItem/MutationupdateMoodItempostAuth0Function/MutationupdateMoodItempostAuth0Function.AppSyncFunction" - } - }, - "MutationUpdateMoodItemDataResolverFnMutationUpdateMoodItemDataResolverFnAppSyncFunction3EC4BB9B": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "MoodItemDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationUpdateMoodItemDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/474bf0776ec2164a13191d1a0a9e057154931e4918fea5086f49850d02a5371b.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "MoodItemDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/MoodItem/MutationUpdateMoodItemDataResolverFn/MutationUpdateMoodItemDataResolverFn.AppSyncFunction" - } - }, - "UpdateMoodItemResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "FieldName": "updateMoodItem", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationupdateMoodIteminit0FunctionMutationupdateMoodIteminit0FunctionAppSyncFunctionF04BFE8B", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationupdateMoodItemauth0FunctionMutationupdateMoodItemauth0FunctionAppSyncFunctionD40CC9A2", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationupdateMoodItempostAuth0FunctionMutationupdateMoodItempostAuth0FunctionAppSyncFunction00B96B17", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationUpdateMoodItemDataResolverFnMutationUpdateMoodItemDataResolverFnAppSyncFunction3EC4BB9B", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateMoodItem\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "MoodItemTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/MoodItem/mutationUpdateMoodItemResolver" - } - }, - "MutationdeleteMoodItemauth0FunctionMutationdeleteMoodItemauth0FunctionAppSyncFunction959662BA": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "MoodItemDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeleteMoodItemauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e3416b4d47414f29c21e59a70e83bddb959ef0625854ed7fb0ca376573e99069.vtl" - } - }, - "DependsOn": [ - "MoodItemDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/MoodItem/MutationdeleteMoodItemauth0Function/MutationdeleteMoodItemauth0Function.AppSyncFunction" - } - }, - "MutationdeleteMoodItempostAuth0FunctionMutationdeleteMoodItempostAuth0FunctionAppSyncFunction741ED338": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeleteMoodItempostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/MoodItem/MutationdeleteMoodItempostAuth0Function/MutationdeleteMoodItempostAuth0Function.AppSyncFunction" - } - }, - "MutationDeleteMoodItemDataResolverFnMutationDeleteMoodItemDataResolverFnAppSyncFunction06493368": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "MoodItemDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationDeleteMoodItemDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4f7907d1209a2c9953a0c053df402c634e359546d70c7cc5c2e8e21ea734880f.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "MoodItemDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/MoodItem/MutationDeleteMoodItemDataResolverFn/MutationDeleteMoodItemDataResolverFn.AppSyncFunction" - } - }, - "DeleteMoodItemResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "FieldName": "deleteMoodItem", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationdeleteMoodItemauth0FunctionMutationdeleteMoodItemauth0FunctionAppSyncFunction959662BA", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationdeleteMoodItempostAuth0FunctionMutationdeleteMoodItempostAuth0FunctionAppSyncFunction741ED338", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationDeleteMoodItemDataResolverFnMutationDeleteMoodItemDataResolverFnAppSyncFunction06493368", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteMoodItem\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "MoodItemTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/MoodItem/mutationDeleteMoodItemResolver" - } - }, - "SubscriptiononCreateMoodItemauth0FunctionSubscriptiononCreateMoodItemauth0FunctionAppSyncFunctionA9BF5E3B": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononCreateMoodItemauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e6da5a6e993df8b5fdc91086b71eb53e72a3a97c98836ef9c9257776f36c452b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/MoodItem/SubscriptiononCreateMoodItemauth0Function/SubscriptiononCreateMoodItemauth0Function.AppSyncFunction" - } - }, - "SubscriptiononCreateMoodItempostAuth0FunctionSubscriptiononCreateMoodItempostAuth0FunctionAppSyncFunctionCDB4A67E": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononCreateMoodItempostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/MoodItem/SubscriptiononCreateMoodItempostAuth0Function/SubscriptiononCreateMoodItempostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnCreateMoodItemDataResolverFnSubscriptionOnCreateMoodItemDataResolverFnAppSyncFunction913B4EC5": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnCreateMoodItemDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/MoodItem/SubscriptionOnCreateMoodItemDataResolverFn/SubscriptionOnCreateMoodItemDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononCreateMoodItemResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "FieldName": "onCreateMoodItem", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononCreateMoodItemauth0FunctionSubscriptiononCreateMoodItemauth0FunctionAppSyncFunctionA9BF5E3B", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononCreateMoodItempostAuth0FunctionSubscriptiononCreateMoodItempostAuth0FunctionAppSyncFunctionCDB4A67E", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnCreateMoodItemDataResolverFnSubscriptionOnCreateMoodItemDataResolverFnAppSyncFunction913B4EC5", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateMoodItem\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/MoodItem/subscriptionOnCreateMoodItemResolver" - } - }, - "SubscriptiononUpdateMoodItemauth0FunctionSubscriptiononUpdateMoodItemauth0FunctionAppSyncFunction590856A0": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononUpdateMoodItemauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e6da5a6e993df8b5fdc91086b71eb53e72a3a97c98836ef9c9257776f36c452b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/MoodItem/SubscriptiononUpdateMoodItemauth0Function/SubscriptiononUpdateMoodItemauth0Function.AppSyncFunction" - } - }, - "SubscriptiononUpdateMoodItempostAuth0FunctionSubscriptiononUpdateMoodItempostAuth0FunctionAppSyncFunction8CA329BE": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononUpdateMoodItempostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/MoodItem/SubscriptiononUpdateMoodItempostAuth0Function/SubscriptiononUpdateMoodItempostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnUpdateMoodItemDataResolverFnSubscriptionOnUpdateMoodItemDataResolverFnAppSyncFunction45DD1E87": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnUpdateMoodItemDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/MoodItem/SubscriptionOnUpdateMoodItemDataResolverFn/SubscriptionOnUpdateMoodItemDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononUpdateMoodItemResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "FieldName": "onUpdateMoodItem", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononUpdateMoodItemauth0FunctionSubscriptiononUpdateMoodItemauth0FunctionAppSyncFunction590856A0", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononUpdateMoodItempostAuth0FunctionSubscriptiononUpdateMoodItempostAuth0FunctionAppSyncFunction8CA329BE", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnUpdateMoodItemDataResolverFnSubscriptionOnUpdateMoodItemDataResolverFnAppSyncFunction45DD1E87", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateMoodItem\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/MoodItem/subscriptionOnUpdateMoodItemResolver" - } - }, - "SubscriptiononDeleteMoodItemauth0FunctionSubscriptiononDeleteMoodItemauth0FunctionAppSyncFunction2E2D8889": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononDeleteMoodItemauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e6da5a6e993df8b5fdc91086b71eb53e72a3a97c98836ef9c9257776f36c452b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/MoodItem/SubscriptiononDeleteMoodItemauth0Function/SubscriptiononDeleteMoodItemauth0Function.AppSyncFunction" - } - }, - "SubscriptiononDeleteMoodItempostAuth0FunctionSubscriptiononDeleteMoodItempostAuth0FunctionAppSyncFunction5A677600": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononDeleteMoodItempostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/MoodItem/SubscriptiononDeleteMoodItempostAuth0Function/SubscriptiononDeleteMoodItempostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnDeleteMoodItemDataResolverFnSubscriptionOnDeleteMoodItemDataResolverFnAppSyncFunction8A0A705A": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnDeleteMoodItemDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/MoodItem/SubscriptionOnDeleteMoodItemDataResolverFn/SubscriptionOnDeleteMoodItemDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononDeleteMoodItemResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "FieldName": "onDeleteMoodItem", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononDeleteMoodItemauth0FunctionSubscriptiononDeleteMoodItemauth0FunctionAppSyncFunction2E2D8889", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononDeleteMoodItempostAuth0FunctionSubscriptiononDeleteMoodItempostAuth0FunctionAppSyncFunction5A677600", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnDeleteMoodItemDataResolverFnSubscriptionOnDeleteMoodItemDataResolverFnAppSyncFunction8A0A705A", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteMoodItem\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/MoodItem/subscriptionOnDeleteMoodItemResolver" - } - }, - "QuerymoodItemsByBoardIDauth0FunctionQuerymoodItemsByBoardIDauth0FunctionAppSyncFunction94DDBFF3": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerymoodItemsByBoardIDauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/0224a3e5097427da3f4460b5d6d2b86ad4195c9cb8da7bc13e7187eead1c3ae3.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/MoodItem/QuerymoodItemsByBoardIDauth0Function/QuerymoodItemsByBoardIDauth0Function.AppSyncFunction" - } - }, - "QuerymoodItemsByBoardIDpostAuth0FunctionQuerymoodItemsByBoardIDpostAuth0FunctionAppSyncFunctionB0CA83ED": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerymoodItemsByBoardIDpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/MoodItem/QuerymoodItemsByBoardIDpostAuth0Function/QuerymoodItemsByBoardIDpostAuth0Function.AppSyncFunction" - } - }, - "QueryMoodItemsByBoardIDDataResolverFnQueryMoodItemsByBoardIDDataResolverFnAppSyncFunction6B85D371": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "MoodItemDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryMoodItemsByBoardIDDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e31d3d392fa7f272916857f1b78ccc6e62a6fd2874eb15e6d107b19afe501fc4.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/098c998f215c333f57348ca8912f66057ae6b574fe34013033dc54362ee2372c.vtl" - } - }, - "DependsOn": [ - "MoodItemDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/MoodItem/QueryMoodItemsByBoardIDDataResolverFn/QueryMoodItemsByBoardIDDataResolverFn.AppSyncFunction" - } - }, - "QuerymoodItemsByBoardIDResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "FieldName": "moodItemsByBoardID", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerymoodItemsByBoardIDauth0FunctionQuerymoodItemsByBoardIDauth0FunctionAppSyncFunction94DDBFF3", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerymoodItemsByBoardIDpostAuth0FunctionQuerymoodItemsByBoardIDpostAuth0FunctionAppSyncFunctionB0CA83ED", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryMoodItemsByBoardIDDataResolverFnQueryMoodItemsByBoardIDDataResolverFnAppSyncFunction6B85D371", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"moodItemsByBoardID\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "MoodItemTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/MoodItem/queryMoodItemsByBoardIDResolver" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOwW6DMAyGn6X34LV0h11Xqh63CXavTGJQCjgodlpViHefoFOnnX5/8if7zyF/3cF2gzfJrOuy3tcwfZAouUrRdqZo+AsjDqQUFygCO68+sClJQoqWTJFEw/CHDT9nvMl5cnfGIbgavrHu6YBCxuMAUxn6hx16mg2Oo9zZwnRc9WN9RMXqefI/nRLbpUQRuPFtirg2+v3cXynORvZnFCEVeF/CyB4OyXakS4F5cT+TjknNuq4UW8/tbDg4gou8XPMcdm+w3VzE+ywmVj8QlI/8AXh83Gc2AQAA" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/MoodItem/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Outputs": { - "GetAttMoodItemTableStreamArn": { - "Description": "Your DynamoDB table StreamArn.", - "Value": { - "Fn::GetAtt": [ - "MoodItemTable", - "TableStreamArn" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "GetAtt:MoodItemTable:StreamArn" - ] - ] - } - } - }, - "GetAttMoodItemTableName": { - "Description": "Your DynamoDB table name.", - "Value": "MoodItem-vsozkn3hbzdjppzyf7xtf2f4sy-main", - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - }, - "GetAtt:MoodItemTable:Name" - ] - ] - } - } - }, - "amplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataMoodItemMoodItemDataSource2ACD4FADName": { - "Value": { - "Fn::GetAtt": [ - "MoodItemDataSource", - "Name" - ] - } - }, - "amplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataMoodItemMoodItemTable2DB74480TableArn": { - "Value": { - "Fn::GetAtt": [ - "MoodItemTable", - "TableArn" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.description.txt b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.description.txt deleted file mode 100644 index 7cc23c581cc..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.21.0","stackType":"custom","metadata":{}} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.outputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.outputs.json deleted file mode 100644 index dad4de51468..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.outputs.json +++ /dev/null @@ -1,18 +0,0 @@ -[ - { - "OutputKey": "kinesisStreamId", - "OutputValue": "moodboardKinesis-gen2-main" - }, - { - "OutputKey": "amplifymoodboardgen2mainbranchf7e4caeabbanalyticsmoodboardKinesisKinesisStreamBD82380AArn", - "OutputValue": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-gen2-main" - }, - { - "OutputKey": "kinesisStreamShardCount", - "OutputValue": "1" - }, - { - "OutputKey": "kinesisStreamArn", - "OutputValue": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-gen2-main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.parameters.json deleted file mode 100644 index 3f4c495edf4..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.parameters.json +++ /dev/null @@ -1,10 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref", - "ParameterValue": "amplify-moodboard-ge-amplifyAuthauthenticatedU-UANJImTyKZ7p" - }, - { - "ParameterKey": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef", - "ParameterValue": "amplify-moodboard-ge-amplifyAuthunauthenticate-rp3r1qUbAKVV" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.template.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.template.json deleted file mode 100644 index 1c902d77739..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-analytics5794DE4A-11L4X799ZG2NW.template.json +++ /dev/null @@ -1,407 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.21.0\",\"stackType\":\"custom\",\"metadata\":{}}", - "Resources": { - "moodboardKinesisKinesisStreamD5E97047": { - "Type": "AWS::Kinesis::Stream", - "Properties": { - "Name": "moodboardKinesis-gen2-main", - "ShardCount": 1, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/analytics/moodboardKinesis/KinesisStream" - } - }, - "moodboardKinesisCognitoAuthPolicyB69F4FA6": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "kinesis:PutRecord", - "kinesis:PutRecords" - ], - "Resource": { - "Fn::GetAtt": [ - "moodboardKinesisKinesisStreamD5E97047", - "Arn" - ] - } - } - ] - }, - "PolicyName": "moodboardKinesis-auth-policy-gen2-main", - "Roles": [ - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/analytics/moodboardKinesis/CognitoAuthPolicy" - } - }, - "moodboardKinesisCognitoUnauthPolicyC4CE1D44": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "kinesis:PutRecord", - "kinesis:PutRecords" - ], - "Resource": { - "Fn::GetAtt": [ - "moodboardKinesisKinesisStreamD5E97047", - "Arn" - ] - } - } - ] - }, - "PolicyName": "moodboardKinesis-unauth-policy-gen2-main", - "Roles": [ - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/analytics/moodboardKinesis/CognitoUnauthPolicy" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXHwQqDMAwA0G/x3mZadtjd+zbmB0jWRoi1dZh0MsR/F9np8Ry4awN1hatYH6Kd+A3bnUQpdIo+Glyl3yJnEhZoh9zpQpgMYzr3nCf2v920Q34U/RTdTZ4DwSiXr3PQ3KCuRmG2S8nKieD19wCgungydwAAAA==" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/analytics/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Outputs": { - "kinesisStreamArn": { - "Value": { - "Fn::GetAtt": [ - "moodboardKinesisKinesisStreamD5E97047", - "Arn" - ] - } - }, - "kinesisStreamId": { - "Value": { - "Ref": "moodboardKinesisKinesisStreamD5E97047" - } - }, - "kinesisStreamShardCount": { - "Value": "1" - }, - "amplifymoodboardgen2mainbranchf7e4caeabbanalyticsmoodboardKinesisKinesisStreamBD82380AArn": { - "Value": { - "Fn::GetAtt": [ - "moodboardKinesisKinesisStreamD5E97047", - "Arn" - ] - } - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref": { - "Type": "String" - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef": { - "Type": "String" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.description.txt b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.description.txt deleted file mode 100644 index 813452072ac..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.11.1","stackType":"auth-Cognito","metadata":{}} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.outputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.outputs.json deleted file mode 100644 index 54a4d3a4b08..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.outputs.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "OutputKey": "amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef", - "OutputValue": "us-east-1:820c5910-56e0-4010-b0c4-b457a728acfb" - }, - { - "OutputKey": "amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref", - "OutputValue": "amplify-moodboard-ge-amplifyAuthauthenticatedU-UANJImTyKZ7p" - }, - { - "OutputKey": "amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthUserPoolAE38F854Ref", - "OutputValue": "us-east-1_1A4RMvPNr" - }, - { - "OutputKey": "amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthUserPoolAppClientA69935A4Ref", - "OutputValue": "2otm0qh3fj270k5tdn95cgjlm5" - }, - { - "OutputKey": "amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef", - "OutputValue": "amplify-moodboard-ge-amplifyAuthunauthenticate-rp3r1qUbAKVV" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.parameters.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.parameters.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.template.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.template.json deleted file mode 100644 index 56d015e1342..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-auth179371D7-UGINV3RD10.template.json +++ /dev/null @@ -1,646 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.11.1\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", - "Resources": { - "amplifyAuthUserPool4BA7F805": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AccountRecoverySetting": { - "RecoveryMechanisms": [ - { - "Name": "verified_email", - "Priority": 1 - } - ] - }, - "AdminCreateUserConfig": { - "AllowAdminCreateUserOnly": false - }, - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": "Your verification code is {####}", - "EmailVerificationSubject": "Your verification code", - "MfaConfiguration": "OFF", - "Policies": { - "PasswordPolicy": { - "MinimumLength": 8, - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false, - "TemporaryPasswordValidityDays": 7 - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "SmsVerificationMessage": "The verification code to your new account is {####}", - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolTags": { - "amplify:app-id": "moodboard", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "amplify:friendly-name": "amplifyAuth", - "created-by": "amplify" - }, - "UsernameAttributes": [ - "email" - ], - "UsernameConfiguration": { - "CaseSensitive": false - }, - "VerificationMessageTemplate": { - "DefaultEmailOption": "CONFIRM_WITH_CODE", - "EmailMessage": "Your verification code is {####}", - "EmailSubject": "Your verification code", - "SmsMessage": "The verification code to your new account is {####}" - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/UserPool/Resource" - } - }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 43200, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": { - "Ref": "amplifyAuthUserPool4BA7F805" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, - "amplifyAuthUserPoolAppClient2626C6F8": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlows": [ - "code" - ], - "AllowedOAuthFlowsUserPoolClient": true, - "AllowedOAuthScopes": [ - "profile", - "phone", - "email", - "openid", - "aws.cognito.signin.user.admin" - ], - "CallbackURLs": [ - "https://example.com" - ], - "ExplicitAuthFlows": [ - "ALLOW_CUSTOM_AUTH", - "ALLOW_USER_SRP_AUTH", - "ALLOW_REFRESH_TOKEN_AUTH" - ], - "PreventUserExistenceErrors": "ENABLED", - "SupportedIdentityProviders": [ - "COGNITO" - ], - "UserPoolId": { - "Ref": "amplifyAuthUserPool4BA7F805" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/UserPoolAppClient/Resource" - } - }, - "amplifyAuthIdentityPool3FDE84CC": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": true, - "CognitoIdentityProviders": [ - { - "ClientId": { - "Ref": "amplifyAuthUserPoolAppClient2626C6F8" - }, - "ProviderName": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - { - "Ref": "amplifyAuthUserPool4BA7F805" - } - ] - ] - } - } - ], - "IdentityPoolTags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "SupportedLoginProviders": {} - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/IdentityPool" - } - }, - "amplifyAuthauthenticatedUserRoleD8DA3689": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "authenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/authenticatedUserRole/Resource" - } - }, - "amplifyAuthunauthenticatedUserRole2B524D9E": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "unauthenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/unauthenticatedUserRole/Resource" - } - }, - "amplifyAuthIdentityPoolRoleAttachment045F17C8": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - }, - "RoleMappings": { - "UserPoolWebClientRoleMapping": { - "AmbiguousRoleResolution": "AuthenticatedRole", - "IdentityProvider": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - { - "Ref": "amplifyAuthUserPool4BA7F805" - }, - ":", - { - "Ref": "amplifyAuthUserPoolAppClient2626C6F8" - } - ] - ] - }, - "Type": "Token" - } - }, - "Roles": { - "unauthenticated": { - "Fn::GetAtt": [ - "amplifyAuthunauthenticatedUserRole2B524D9E", - "Arn" - ] - }, - "authenticated": { - "Fn::GetAtt": [ - "amplifyAuthauthenticatedUserRoleD8DA3689", - "Arn" - ] - } - } - }, - "DependsOn": [ - "amplifyAuthIdentityPool3FDE84CC", - "amplifyAuthUserPoolAppClient2626C6F8" - ], - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/amplifyAuth/IdentityPoolRoleAttachment" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/02LwQrCMBBEv8V7urbBg1fpyYtIxbPEZNVt0w00q0VC/l2KVHuamTczGvSmgnJlxlhY1xWerpAOGAXdSYztlBnjJdlwZ5IA6RxxOIbgVX3jn59N7QlZltWf7B2ykLzn8zI3weNOxNhHjyxZkekhTXAaTppzVhwcQhvXL62h2kK5aiNRMTxZqEdovvoBH9Args4AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Outputs": { - "amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthUserPoolAE38F854Ref": { - "Value": { - "Ref": "amplifyAuthUserPool4BA7F805" - } - }, - "amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthUserPoolAppClientA69935A4Ref": { - "Value": { - "Ref": "amplifyAuthUserPoolAppClient2626C6F8" - } - }, - "amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef": { - "Value": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } - }, - "amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref": { - "Value": { - "Ref": "amplifyAuthauthenticatedUserRoleD8DA3689" - } - }, - "amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef": { - "Value": { - "Ref": "amplifyAuthunauthenticatedUserRole2B524D9E" - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-data7552DF31-I283YU81GSZH.description.txt b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-data7552DF31-I283YU81GSZH.description.txt deleted file mode 100644 index e0c9e600428..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-data7552DF31-I283YU81GSZH.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.21.0","stackType":"api-AppSync","metadata":{"dataSources":"dynamodb","authorizationModes":"amazon_cognito_identity_pools,amazon_cognito_user_pools,api_key,aws_iam","customOperations":"queries"}} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-data7552DF31-I283YU81GSZH.outputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-data7552DF31-I283YU81GSZH.outputs.json deleted file mode 100644 index c27c3ec85c2..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-data7552DF31-I283YU81GSZH.outputs.json +++ /dev/null @@ -1,18 +0,0 @@ -[ - { - "OutputKey": "amplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB0881F041DestinationBucketArn", - "OutputValue": "arn:aws:s3:::amplify-moodboard-ge-amplifydataamplifycodege-ozxpnvhcwmyz" - }, - { - "OutputKey": "amplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPIDefaultApiKeyAF7FD918ApiKey", - "OutputValue": "da2-fakeapikey00000000000000" - }, - { - "OutputKey": "amplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId", - "OutputValue": "i3rfe6qyonbeldjtlui5jixz4u" - }, - { - "OutputKey": "amplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48GraphQLUrl", - "OutputValue": "https://zu6mo3ciwjapfizsp4qbtoigli.appsync-api.us-east-1.amazonaws.com/graphql" - } -] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-data7552DF31-I283YU81GSZH.parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-data7552DF31-I283YU81GSZH.parameters.json deleted file mode 100644 index 73f737714da..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-data7552DF31-I283YU81GSZH.parameters.json +++ /dev/null @@ -1,38 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "true" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref", - "ParameterValue": "amplify-moodboard-ge-amplifyAuthauthenticatedU-UANJImTyKZ7p" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthUserPoolAE38F854Ref", - "ParameterValue": "us-east-1_1A4RMvPNr" - }, - { - "ParameterKey": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef", - "ParameterValue": "us-east-1:820c5910-56e0-4010-b0c4-b457a728acfb" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef", - "ParameterValue": "amplify-moodboard-ge-amplifyAuthunauthenticate-rp3r1qUbAKVV" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-data7552DF31-I283YU81GSZH.template.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-data7552DF31-I283YU81GSZH.template.json deleted file mode 100644 index 32ef1b33f51..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-data7552DF31-I283YU81GSZH.template.json +++ /dev/null @@ -1,1695 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.21.0\",\"stackType\":\"api-AppSync\",\"metadata\":{\"dataSources\":\"dynamodb\",\"authorizationModes\":\"amazon_cognito_identity_pools,amazon_cognito_user_pools,api_key,aws_iam\",\"customOperations\":\"queries\"}}", - "Resources": { - "amplifyDataGraphQLAPI42A6FA33": { - "Type": "AWS::AppSync::GraphQLApi", - "Properties": { - "AdditionalAuthenticationProviders": [ - { - "AuthenticationType": "AMAZON_COGNITO_USER_POOLS", - "UserPoolConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "UserPoolId": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthUserPoolAE38F854Ref" - } - } - } - ], - "AuthenticationType": "API_KEY", - "Name": "amplifyData", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/GraphQLAPI/Resource" - } - }, - "amplifyDataGraphQLAPITransformerSchemaFF50A789": { - "Type": "AWS::AppSync::GraphQLSchema", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "DefinitionS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/3ddb2167cf805e733490f36a803db88cf1682c2c9f405ce5fec7e6b66ebc1449.graphql" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/GraphQLAPI/TransformerSchema" - } - }, - "amplifyDataGraphQLAPIDefaultApiKey1C8ED374": { - "Type": "AWS::AppSync::ApiKey", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "Description": "moodBoard API Key", - "Expires": 1804528387 - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/GraphQLAPI/DefaultApiKey" - } - }, - "amplifyDataGraphQLAPINONEDS684BF699": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "Name": "NONE_DS", - "Type": "NONE" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/GraphQLAPI/NONE_DS/Resource" - } - }, - "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/77708ad92708def665f705b875b8f7dfd980c92705280fc438d92d333177f8ec.json" - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/AmplifyTableManager.NestedStack/AmplifyTableManager.NestedStackResource", - "aws:asset:path": "amplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataAmplifyTableManagerC06A4320.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "amplifyDataMoodItemNestedStackMoodItemNestedStackResource4E6CE7C0": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "DynamoDBModelTableWriteIOPS": { - "Ref": "DynamoDBModelTableWriteIOPS" - }, - "DynamoDBBillingMode": { - "Ref": "DynamoDBBillingMode" - }, - "DynamoDBEnablePointInTimeRecovery": { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "DynamoDBEnableServerSideEncryption": { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource4ABB9726Outputsamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataAmplifyTableManagerTableMa128CE2CC": { - "Fn::GetAtt": [ - "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833", - "Outputs.amplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent251BECFBArn" - ] - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref" - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef" - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef" - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/b27dea5f722965a44eff6c7249734b0784578bbc5837edec61395f51c2ae4e8e.json" - ] - ] - } - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/MoodItem.NestedStack/MoodItem.NestedStackResource", - "aws:asset:path": "amplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataMoodItem23933E23.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "amplifyDataBoardNestedStackBoardNestedStackResourceC5F2D278": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "DynamoDBModelTableWriteIOPS": { - "Ref": "DynamoDBModelTableWriteIOPS" - }, - "DynamoDBBillingMode": { - "Ref": "DynamoDBBillingMode" - }, - "DynamoDBEnablePointInTimeRecovery": { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "DynamoDBEnableServerSideEncryption": { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource4ABB9726Outputsamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataAmplifyTableManagerTableMa128CE2CC": { - "Fn::GetAtt": [ - "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833", - "Outputs.amplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEvent251BECFBArn" - ] - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref" - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef" - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef" - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/f60e933d00b1aed1fbed05ea088e8b7abfd74b7284787d55e4d2bae261cd01f5.json" - ] - ] - } - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/Board.NestedStack/Board.NestedStackResource", - "aws:asset:path": "amplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataBoardE427F9EE.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "amplifyDataFunctionDirectiveStackNestedStackFunctionDirectiveStackNestedStackResource1246A302": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref" - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef" - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef" - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/239cddcd87c75156ee84a26c0bd014623ba22e80af49777d53a0afc6b9d73c1c.json" - ] - ] - } - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/FunctionDirectiveStack.NestedStack/FunctionDirectiveStack.NestedStackResource", - "aws:asset:path": "amplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataFunctionDirectiveStackEBFA404C.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "amplifyDataConnectionStackNestedStackConnectionStackNestedStackResourceAB0F312B": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPINONEDS782A06A6Name": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataMoodItemNestedStackMoodItemNestedStackResource4E691658Outputsamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataMoodItemMoodItemDataSource2ACD4FADName": { - "Fn::GetAtt": [ - "amplifyDataMoodItemNestedStackMoodItemNestedStackResource4E6CE7C0", - "Outputs.amplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataMoodItemMoodItemDataSource2ACD4FADName" - ] - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataMoodItemNestedStackMoodItemNestedStackResource4E691658Outputsamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataMoodItemMoodItemTable2DB74480TableArn": { - "Fn::GetAtt": [ - "amplifyDataMoodItemNestedStackMoodItemNestedStackResource4E6CE7C0", - "Outputs.amplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataMoodItemMoodItemTable2DB74480TableArn" - ] - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref" - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef" - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef" - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataBoardNestedStackBoardNestedStackResource0021E276Outputsamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataBoardBoardDataSource3085F3C2Name": { - "Fn::GetAtt": [ - "amplifyDataBoardNestedStackBoardNestedStackResourceC5F2D278", - "Outputs.amplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataBoardBoardDataSource3085F3C2Name" - ] - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataBoardNestedStackBoardNestedStackResource0021E276Outputsamplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataBoardBoardTable0122C8B9TableArn": { - "Fn::GetAtt": [ - "amplifyDataBoardNestedStackBoardNestedStackResourceC5F2D278", - "Outputs.amplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataBoardBoardTable0122C8B9TableArn" - ] - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/d73f3195912988daecfd3ee1f1dffe2cd87f41b898233d6e0c1f2a2b5639b188.json" - ] - ] - } - }, - "DependsOn": [ - "amplifyDataBoardNestedStackBoardNestedStackResourceC5F2D278", - "amplifyDataGraphQLAPITransformerSchemaFF50A789", - "amplifyDataMoodItemNestedStackMoodItemNestedStackResource4E6CE7C0" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/ConnectionStack.NestedStack/ConnectionStack.NestedStackResource", - "aws:asset:path": "amplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataConnectionStackAE8FB6C7.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA": { - "Type": "AWS::S3::Bucket", - "Properties": { - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD" - ], - "AllowedOrigins": [ - { - "Fn::Join": [ - "", - [ - "https://", - { - "Ref": "AWS::Region" - }, - ".console.aws.amazon.com/amplify" - ] - ] - } - ] - } - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "aws-cdk:cr-owned:3745704a", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/Resource" - } - }, - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucketPolicyF1C1C548": { - "Type": "AWS::S3::BucketPolicy", - "Properties": { - "Bucket": { - "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" - }, - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "s3:PutBucketPolicy", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*" - ], - "Effect": "Allow", - "Principal": { - "AWS": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - } - }, - "Resource": [ - { - "Fn::GetAtt": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/Policy/Resource" - } - }, - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucketAutoDeleteObjectsCustomResource437F26F5": { - "Type": "Custom::S3AutoDeleteObjects", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "Arn" - ] - }, - "BucketName": { - "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" - } - }, - "DependsOn": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucketPolicyF1C1C548" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/AutoDeleteObjectsCustomResource/Default" - } - }, - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentAwsCliLayerE322F905": { - "Type": "AWS::Lambda::LayerVersion", - "Properties": { - "Content": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "0cfdecad2260a3a84ad0c2d08a77e03c9d25e26c7b52f26b1e1faf97aef92f18.zip" - }, - "Description": "/opt/awscli/aws" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsDeployment/AwsCliLayer/Resource", - "aws:asset:path": "asset.0cfdecad2260a3a84ad0c2d08a77e03c9d25e26c7b52f26b1e1faf97aef92f18.zip", - "aws:asset:is-bundled": false, - "aws:asset:property": "Content" - } - }, - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB21775929": { - "Type": "Custom::CDKBucketDeployment", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBC5D8AB21", - "Arn" - ] - }, - "SourceBucketNames": [ - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - } - ], - "SourceObjectKeys": [ - "f567c078cd8f9b811ca1512e0a3db3a94f47139bd68434c977a5e12e7d508703.zip" - ], - "SourceMarkers": [ - {} - ], - "DestinationBucketName": { - "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" - }, - "WaitForDistributionInvalidation": true, - "Prune": true, - "OutputObjectKeys": true, - "DestinationBucketArn": { - "Fn::GetAtt": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", - "Arn" - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsDeployment/CustomResource-1536MiB/Default" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ] - }, - "ManagedPolicyArns": [ - { - "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" - }, - "Timeout": 900, - "MemorySize": 128, - "Handler": "index.handler", - "Role": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Description": { - "Fn::Join": [ - "", - [ - "Lambda function for auto-deleting objects in ", - { - "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" - }, - " S3 bucket." - ] - ] - } - }, - "DependsOn": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - ], - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", - "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", - "aws:asset:property": "Code" - } - }, - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/ServiceRole/Resource" - } - }, - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleDefaultPolicyFF1C635B": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "s3:GetObject*", - "s3:GetBucket*", - "s3:List*" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":s3:::", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - } - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":s3:::", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/*" - ] - ] - } - ] - }, - { - "Action": [ - "s3:GetObject*", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*", - "s3:PutObject", - "s3:PutObjectLegalHold", - "s3:PutObjectRetention", - "s3:PutObjectTagging", - "s3:PutObjectVersionTagging", - "s3:Abort*" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - }, - { - "Action": [ - "s3:GetObject*", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*", - "s3:PutObject", - "s3:PutObjectLegalHold", - "s3:PutObjectRetention", - "s3:PutObjectTagging", - "s3:PutObjectVersionTagging", - "s3:Abort*" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "modelIntrospectionSchemaBucketF566B665", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "modelIntrospectionSchemaBucketF566B665", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleDefaultPolicyFF1C635B", - "Roles": [ - { - "Ref": "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/ServiceRole/DefaultPolicy/Resource" - } - }, - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBC5D8AB21": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "3423a042b818e31c1e34a19d6689ab2e5f9b70fcbe9e71df66f241b20a200bd9.zip" - }, - "Environment": { - "Variables": { - "AWS_CA_BUNDLE": "/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem" - } - }, - "Handler": "index.handler", - "Layers": [ - { - "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentAwsCliLayerE322F905" - } - ], - "MemorySize": 1536, - "Role": { - "Fn::GetAtt": [ - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2", - "Arn" - ] - }, - "Runtime": "python3.13", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 900 - }, - "DependsOn": [ - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleDefaultPolicyFF1C635B", - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2" - ], - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/Resource", - "aws:asset:path": "asset.3423a042b818e31c1e34a19d6689ab2e5f9b70fcbe9e71df66f241b20a200bd9", - "aws:asset:is-bundled": false, - "aws:asset:property": "Code" - } - }, - "modelIntrospectionSchemaBucketF566B665": { - "Type": "AWS::S3::Bucket", - "Properties": { - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "aws-cdk:cr-owned:046cb0cf", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/modelIntrospectionSchemaBucket/Resource" - } - }, - "modelIntrospectionSchemaBucketPolicy4DAB0D15": { - "Type": "AWS::S3::BucketPolicy", - "Properties": { - "Bucket": { - "Ref": "modelIntrospectionSchemaBucketF566B665" - }, - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:*", - "Condition": { - "Bool": { - "aws:SecureTransport": "false" - } - }, - "Effect": "Deny", - "Principal": { - "AWS": "*" - }, - "Resource": [ - { - "Fn::GetAtt": [ - "modelIntrospectionSchemaBucketF566B665", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "modelIntrospectionSchemaBucketF566B665", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - }, - { - "Action": [ - "s3:PutBucketPolicy", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*" - ], - "Effect": "Allow", - "Principal": { - "AWS": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - } - }, - "Resource": [ - { - "Fn::GetAtt": [ - "modelIntrospectionSchemaBucketF566B665", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "modelIntrospectionSchemaBucketF566B665", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/modelIntrospectionSchemaBucket/Policy/Resource" - } - }, - "modelIntrospectionSchemaBucketAutoDeleteObjectsCustomResourceFE57309F": { - "Type": "Custom::S3AutoDeleteObjects", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "Arn" - ] - }, - "BucketName": { - "Ref": "modelIntrospectionSchemaBucketF566B665" - } - }, - "DependsOn": [ - "modelIntrospectionSchemaBucketPolicy4DAB0D15" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/modelIntrospectionSchemaBucket/AutoDeleteObjectsCustomResource/Default" - } - }, - "modelIntrospectionSchemaBucketDeploymentAwsCliLayer13C432F7": { - "Type": "AWS::Lambda::LayerVersion", - "Properties": { - "Content": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "0cfdecad2260a3a84ad0c2d08a77e03c9d25e26c7b52f26b1e1faf97aef92f18.zip" - }, - "Description": "/opt/awscli/aws" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/modelIntrospectionSchemaBucketDeployment/AwsCliLayer/Resource", - "aws:asset:path": "asset.0cfdecad2260a3a84ad0c2d08a77e03c9d25e26c7b52f26b1e1faf97aef92f18.zip", - "aws:asset:is-bundled": false, - "aws:asset:property": "Content" - } - }, - "modelIntrospectionSchemaBucketDeploymentCustomResource1536MiB104B97EC": { - "Type": "Custom::CDKBucketDeployment", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBC5D8AB21", - "Arn" - ] - }, - "SourceBucketNames": [ - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - } - ], - "SourceObjectKeys": [ - "b4a69ae85f927e0e29c40613e84cd792f56656b7fb2e4d18d856ee61d77e3150.zip" - ], - "SourceMarkers": [ - {} - ], - "DestinationBucketName": { - "Ref": "modelIntrospectionSchemaBucketF566B665" - }, - "WaitForDistributionInvalidation": true, - "Prune": true, - "OutputObjectKeys": true - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/modelIntrospectionSchemaBucketDeployment/CustomResource-1536MiB/Default" - } - }, - "AMPLIFYDATAGRAPHQLENDPOINTParameter1C2CBB16": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/moodboard/gen2main-branch-f7e4caeabb/AMPLIFY_DATA_GRAPHQL_ENDPOINT", - "Tags": { - "amplify:app-id": "moodboard", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "GraphQLUrl" - ] - } - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/AMPLIFY_DATA_GRAPHQL_ENDPOINTParameter/Resource" - } - }, - "AMPLIFYDATAMODELINTROSPECTIONSCHEMABUCKETNAMEParameter47BF4F44": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/moodboard/gen2main-branch-f7e4caeabb/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_BUCKET_NAME", - "Tags": { - "amplify:app-id": "moodboard", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": { - "Ref": "modelIntrospectionSchemaBucketF566B665" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_BUCKET_NAMEParameter/Resource" - } - }, - "AMPLIFYDATAMODELINTROSPECTIONSCHEMAKEYParameterB6AEAE8A": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/moodboard/gen2main-branch-f7e4caeabb/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_KEY", - "Tags": { - "amplify:app-id": "moodboard", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": "modelIntrospectionSchema.json" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_KEYParameter/Resource" - } - }, - "AMPLIFYDATADEFAULTNAMEParameterE7C23CC4": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/moodboard/gen2main-branch-f7e4caeabb/AMPLIFY_DATA_DEFAULT_NAME", - "Tags": { - "amplify:app-id": "moodboard", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": "amplifyData" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/AMPLIFY_DATA_DEFAULT_NAMEParameter/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/11QyW6DMBD9lt4dN6E99EqI2kOjKA1Sr2hiBuLEC/WYIGTx75WhIW1Pb5nRmyXhyfOKLx+go4UoLwsljzzskDyWuQdxYQck2zqBDDoqAjQN9Ubw8OagOX2ptJFrIGRZZUbnY5s28pfKxQk1RCNt5Dv2bGcNbsBDPoVmlbmrgdFTEYAIPfE0AiuxUbbXaDxft+KCfjMbsZuHyR13mGiM/GET7K2Sor/bkx6YAn0sgYesMlvo0X2iI2kNy6WpFXprXlsjfHRmklWzOTAJmoeDVeMRI94n3WYQaR5y76Sp9+BAo0c31m9iGNh4aO6hlqaOtentWUve6vn5ccSNT4sXKi5dQEdCSZ52lCk53vEn/1/O3tmrLNHFfw3M2BL5mR6vScJXL3z5cCYpF641Xmrkhwm/ARE0OCMhAgAA" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthUserPoolAE38F854Ref": { - "Type": "String" - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref": { - "Type": "String" - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef": { - "Type": "String" - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef": { - "Type": "String" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Outputs": { - "amplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId": { - "Value": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - } - }, - "amplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48GraphQLUrl": { - "Value": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "GraphQLUrl" - ] - } - }, - "amplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB0881F041DestinationBucketArn": { - "Value": { - "Fn::GetAtt": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB21775929", - "DestinationBucketArn" - ] - } - }, - "amplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPIDefaultApiKeyAF7FD918ApiKey": { - "Value": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPIDefaultApiKey1C8ED374", - "ApiKey" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-function1351588B-H36MB3OTXFRM.description.txt b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-function1351588B-H36MB3OTXFRM.description.txt deleted file mode 100644 index 6cad6da1b61..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-function1351588B-H36MB3OTXFRM.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.17.0","stackType":"function-Lambda","metadata":{}} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-function1351588B-H36MB3OTXFRM.outputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-function1351588B-H36MB3OTXFRM.outputs.json deleted file mode 100644 index e95acd7a6df..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-function1351588B-H36MB3OTXFRM.outputs.json +++ /dev/null @@ -1,10 +0,0 @@ -[ - { - "OutputKey": "amplifymoodboardgen2mainbranchf7e4caeabbfunctionmoodboardGetRandomEmojigen2mainlambda76EFC76ERef", - "OutputValue": "moodboardGetRandomEmoji-gen2-main" - }, - { - "OutputKey": "amplifymoodboardgen2mainbranchf7e4caeabbfunctionmoodboardKinesisReadergen2mainlambda6E070627Ref", - "OutputValue": "moodboardKinesisReader-gen2-main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-function1351588B-H36MB3OTXFRM.parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-function1351588B-H36MB3OTXFRM.parameters.json deleted file mode 100644 index fc56077bf3a..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-function1351588B-H36MB3OTXFRM.parameters.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbanalyticsNestedStackanalyticsNestedStackResourceB580ACE1Outputsamplifymoodboardgen2mainbranchf7e4caeabbanalyticsmoodboardKinesisKinesisStreamBD82380AArn", - "ParameterValue": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-gen2-main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-function1351588B-H36MB3OTXFRM.template.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-function1351588B-H36MB3OTXFRM.template.json deleted file mode 100644 index 0626b585ff6..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-function1351588B-H36MB3OTXFRM.template.json +++ /dev/null @@ -1,584 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.17.0\",\"stackType\":\"function-Lambda\",\"metadata\":{}}", - "Resources": { - "moodboardGetRandomEmojigen2mainlambdaServiceRole72EC5615": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "moodboardGetRandomEmoji-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/function/moodboardGetRandomEmoji-gen2-main-lambda/ServiceRole/Resource" - } - }, - "moodboardGetRandomEmojigen2mainlambda4971B0F2": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Architectures": [ - "x86_64" - ], - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "4592ea6319e810e83d2c22143e245eed02993b78aa4adb1be31546dfc377e2fd.zip" - }, - "Environment": { - "Variables": { - "ENV": "gen2-main", - "REGION": "us-east-1", - "AMPLIFY_SSM_ENV_CONFIG": "{}" - } - }, - "EphemeralStorage": { - "Size": 512 - }, - "FunctionName": "moodboardGetRandomEmoji-gen2-main", - "Handler": "index.handler", - "MemorySize": 128, - "Role": { - "Fn::GetAtt": [ - "moodboardGetRandomEmojigen2mainlambdaServiceRole72EC5615", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "moodboardGetRandomEmoji-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 25 - }, - "DependsOn": [ - "moodboardGetRandomEmojigen2mainlambdaServiceRole72EC5615" - ], - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/function/moodboardGetRandomEmoji-gen2-main-lambda/Resource", - "aws:asset:path": "asset.4592ea6319e810e83d2c22143e245eed02993b78aa4adb1be31546dfc377e2fd", - "aws:asset:is-bundled": true, - "aws:asset:property": "Code" - } - }, - "moodboardKinesisReadergen2mainlambdaServiceRole82A10B63": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "moodboardKinesisReader-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/function/moodboardKinesisReader-gen2-main-lambda/ServiceRole/Resource" - } - }, - "moodboardKinesisReadergen2mainlambdaServiceRoleDefaultPolicyCE5AAEF0": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "kinesis:ListShards", - "kinesis:ListStreams", - "kinesis:ListStreamConsumers", - "kinesis:DescribeStream", - "kinesis:DescribeStreamSummary", - "kinesis:DescribeStreamConsumer", - "kinesis:GetRecords", - "kinesis:GetShardIterator", - "kinesis:SubscribeToShard", - "kinesis:DescribeLimits", - "kinesis:ListTagsForStream" - ], - "Effect": "Allow", - "Resource": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbanalyticsNestedStackanalyticsNestedStackResourceB580ACE1Outputsamplifymoodboardgen2mainbranchf7e4caeabbanalyticsmoodboardKinesisKinesisStreamBD82380AArn" - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "moodboardKinesisReadergen2mainlambdaServiceRoleDefaultPolicyCE5AAEF0", - "Roles": [ - { - "Ref": "moodboardKinesisReadergen2mainlambdaServiceRole82A10B63" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/function/moodboardKinesisReader-gen2-main-lambda/ServiceRole/DefaultPolicy/Resource" - } - }, - "moodboardKinesisReadergen2mainlambda8A83B040": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Architectures": [ - "x86_64" - ], - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "c0ac3cdf75f1c10cb3abce2229f64e41d05c7a604f9eae016ed2faa9f2594dc5.zip" - }, - "Environment": { - "Variables": { - "ENV": "gen2-main", - "REGION": "us-east-1", - "AMPLIFY_SSM_ENV_CONFIG": "{}", - "ANALYTICS_MOODBOARDKINESIS_KINESISSTREAMARN": { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbanalyticsNestedStackanalyticsNestedStackResourceB580ACE1Outputsamplifymoodboardgen2mainbranchf7e4caeabbanalyticsmoodboardKinesisKinesisStreamBD82380AArn" - } - } - }, - "EphemeralStorage": { - "Size": 512 - }, - "FunctionName": "moodboardKinesisReader-gen2-main", - "Handler": "index.handler", - "MemorySize": 128, - "Role": { - "Fn::GetAtt": [ - "moodboardKinesisReadergen2mainlambdaServiceRole82A10B63", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "moodboardKinesisReader-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 25 - }, - "DependsOn": [ - "moodboardKinesisReadergen2mainlambdaServiceRoleDefaultPolicyCE5AAEF0", - "moodboardKinesisReadergen2mainlambdaServiceRole82A10B63" - ], - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/function/moodboardKinesisReader-gen2-main-lambda/Resource", - "aws:asset:path": "asset.c0ac3cdf75f1c10cb3abce2229f64e41d05c7a604f9eae016ed2faa9f2594dc5", - "aws:asset:is-bundled": true, - "aws:asset:property": "Code" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/zWNwQqDMBBEv8X7urWxh16r0KMU/QBZk1WiMUI3Vor470WlpzcDwxuF6nbFJKJFYm2G2NkG14IlsKkC6QFokXp1NDaGaj8Z7gWLA8/Z62AnD5ZGXMvJMeStP/ianNXfvZ5pA0lrEuEg+NgBkmI264FDRsJw6jFv/V+6wbGrAnXWdxvsz9jL5aMUXu+YRL1YG79nH+zIWJ78AUYTNcnMAAAA" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/function/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbanalyticsNestedStackanalyticsNestedStackResourceB580ACE1Outputsamplifymoodboardgen2mainbranchf7e4caeabbanalyticsmoodboardKinesisKinesisStreamBD82380AArn": { - "Type": "String" - } - }, - "Outputs": { - "amplifymoodboardgen2mainbranchf7e4caeabbfunctionmoodboardGetRandomEmojigen2mainlambda76EFC76ERef": { - "Value": { - "Ref": "moodboardGetRandomEmojigen2mainlambda4971B0F2" - } - }, - "amplifymoodboardgen2mainbranchf7e4caeabbfunctionmoodboardKinesisReadergen2mainlambda6E070627Ref": { - "Value": { - "Ref": "moodboardKinesisReadergen2mainlambda8A83B040" - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.description.txt b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.description.txt deleted file mode 100644 index 4600cb981f5..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.4.3","stackType":"storage-S3","metadata":{}} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.outputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.outputs.json deleted file mode 100644 index 0e57a5b5754..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.outputs.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - { - "OutputKey": "amplifymoodboardgen2mainbranchf7e4caeabbstoragemoodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket352A7A47Ref", - "OutputValue": "amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.parameters.json deleted file mode 100644 index 3f4c495edf4..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.parameters.json +++ /dev/null @@ -1,10 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref", - "ParameterValue": "amplify-moodboard-ge-amplifyAuthauthenticatedU-UANJImTyKZ7p" - }, - { - "ParameterKey": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef", - "ParameterValue": "amplify-moodboard-ge-amplifyAuthunauthenticate-rp3r1qUbAKVV" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.template.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.template.json deleted file mode 100644 index e29fc80541d..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb-storage0EC3F24A-11PWXC3G56PPP.template.json +++ /dev/null @@ -1,804 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", - "Resources": { - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "BucketKeyEnabled": false, - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "MaxAge": 3000 - } - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "moodboard20e29595008142e3ad16f01c4066e1c41959a-gen2-main" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/moodboard20e29595008142e3ad16f01c4066e1c41959a-gen2-main/Bucket/Resource" - } - }, - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucketPolicy9A17D834": { - "Type": "AWS::S3::BucketPolicy", - "Properties": { - "Bucket": { - "Ref": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65" - }, - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:*", - "Condition": { - "Bool": { - "aws:SecureTransport": "false" - } - }, - "Effect": "Deny", - "Principal": { - "AWS": "*" - }, - "Resource": [ - { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - }, - { - "Action": [ - "s3:PutBucketPolicy", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*" - ], - "Effect": "Allow", - "Principal": { - "AWS": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - } - }, - "Resource": [ - { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/moodboard20e29595008142e3ad16f01c4066e1c41959a-gen2-main/Bucket/Policy/Resource" - } - }, - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucketAutoDeleteObjectsCustomResource6C820EA7": { - "Type": "Custom::S3AutoDeleteObjects", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "Arn" - ] - }, - "BucketName": { - "Ref": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65" - } - }, - "DependsOn": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucketPolicy9A17D834" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/moodboard20e29595008142e3ad16f01c4066e1c41959a-gen2-main/Bucket/AutoDeleteObjectsCustomResource/Default" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ] - }, - "ManagedPolicyArns": [ - { - "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" - }, - "Timeout": 900, - "MemorySize": 128, - "Handler": "index.handler", - "Role": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Description": { - "Fn::Join": [ - "", - [ - "Lambda function for auto-deleting objects in ", - { - "Ref": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65" - }, - " S3 bucket." - ] - ] - } - }, - "DependsOn": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - ], - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", - "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", - "aws:asset:property": "Code" - } - }, - "MOODBOARD20E29595008142E3AD16F01C4066E1C41959AGEN2MAINBUCKETNAMEParameter8092E674": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/moodboard/gen2main-branch-f7e4caeabb/MOODBOARD_20_E_29595008142_E_3_AD_16_F_01_C_4066_E_1_C_41959_A_GEN_2_MAIN_BUCKET_NAME", - "Tags": { - "amplify:app-id": "moodboard", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": { - "Ref": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/MOODBOARD_20_E_29595008142_E_3_AD_16_F_01_C_4066_E_1_C_41959_A_GEN_2_MAIN_BUCKET_NAMEParameter/Resource" - } - }, - "amplifymoodboardgen2mainbranchf7e4caeabbstorageAccess390737D54": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - }, - "/public/*" - ] - ] - } - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/*", - "public/" - ] - } - }, - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "amplifymoodboardgen2mainbranchf7e4caeabbstorageAccess390737D54", - "Roles": [ - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/amplify-moodboard-gen2main-branch-f7e4caeabb--storageAccess3/Resource" - } - }, - "amplifymoodboardgen2mainbranchf7e4caeabbstorageAccess48AB6518A": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:PutObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - }, - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - }, - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - }, - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - }, - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - }, - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - }, - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/*", - "public/", - "protected/*", - "protected/", - "private/*", - "private/" - ] - } - }, - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - } - }, - { - "Action": "s3:DeleteObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - }, - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - }, - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65", - "Arn" - ] - }, - "/private/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "amplifymoodboardgen2mainbranchf7e4caeabbstorageAccess48AB6518A", - "Roles": [ - { - "Ref": "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/amplify-moodboard-gen2main-branch-f7e4caeabb--storageAccess4/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WLTQ6CMBCFz8K+jIgu3Cp7Q+AAppaRjNA26QwQ03B3QyASV+97fznk5yNkiZ44NU2X9vSEeEcWbGrRplN64kfkE8TbYDoUVbzcRquUvifz2ePVz4rZQqwlkGtLHbRFwbCsfmZWpC3E/b89Z1UMLN5WyH4IBpdq57+qDH6kBsNNM6orM0otuiXXzsr5BuHNhzHP4XiBLHkzURoGJ2QRqlW/LyyDFv0AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef": { - "Type": "String" - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref": { - "Type": "String" - } - }, - "Outputs": { - "amplifymoodboardgen2mainbranchf7e4caeabbstoragemoodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket352A7A47Ref": { - "Value": { - "Ref": "moodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket71D6AA65" - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb.description.txt b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb.description.txt deleted file mode 100644 index b40731368ef..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.21.0","stackType":"root","metadata":{}} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb.outputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb.outputs.json deleted file mode 100644 index 76aaf8bc3fb..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb.outputs.json +++ /dev/null @@ -1,138 +0,0 @@ -[ - { - "OutputKey": "webClientId", - "OutputValue": "2otm0qh3fj270k5tdn95cgjlm5" - }, - { - "OutputKey": "socialProviders", - "OutputValue": "" - }, - { - "OutputKey": "usernameAttributes", - "OutputValue": "[\"email\"]" - }, - { - "OutputKey": "bucketName", - "OutputValue": "amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z" - }, - { - "OutputKey": "signupAttributes", - "OutputValue": "[\"email\"]" - }, - { - "OutputKey": "oauthClientId", - "OutputValue": "2otm0qh3fj270k5tdn95cgjlm5" - }, - { - "OutputKey": "allowUnauthenticatedIdentities", - "OutputValue": "true" - }, - { - "OutputKey": "oauthCognitoDomain", - "OutputValue": "" - }, - { - "OutputKey": "oauthScope", - "OutputValue": "[\"profile\",\"phone\",\"email\",\"openid\",\"aws.cognito.signin.user.admin\"]" - }, - { - "OutputKey": "oauthRedirectSignOut", - "OutputValue": "" - }, - { - "OutputKey": "awsAppsyncAdditionalAuthenticationTypes", - "OutputValue": "AMAZON_COGNITO_USER_POOLS,AWS_IAM" - }, - { - "OutputKey": "mfaTypes", - "OutputValue": "[]" - }, - { - "OutputKey": "mfaConfiguration", - "OutputValue": "OFF" - }, - { - "OutputKey": "storageRegion", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "oauthResponseType", - "OutputValue": "code" - }, - { - "OutputKey": "awsAppsyncApiKey", - "OutputValue": "da2-fakeapikey00000000000000" - }, - { - "OutputKey": "awsAppsyncAuthenticationType", - "OutputValue": "API_KEY" - }, - { - "OutputKey": "oauthRedirectSignIn", - "OutputValue": "https://example.com" - }, - { - "OutputKey": "passwordPolicyMinLength", - "OutputValue": "8" - }, - { - "OutputKey": "awsAppsyncApiEndpoint", - "OutputValue": "https://zu6mo3ciwjapfizsp4qbtoigli.appsync-api.us-east-1.amazonaws.com/graphql" - }, - { - "OutputKey": "awsAppsyncApiId", - "OutputValue": "i3rfe6qyonbeldjtlui5jixz4u" - }, - { - "OutputKey": "authRegion", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "buckets", - "OutputValue": "[\"{\\\"name\\\":\\\"moodboard20e29595008142e3ad16f01c4066e1c41959a-gen2-main\\\",\\\"bucketName\\\":\\\"amplify-moodboard-ge-moodboard20e29595008142e-hil8whofbv0z\\\",\\\"storageRegion\\\":\\\"us-east-1\\\",\\\"paths\\\":{\\\"public/*\\\":{\\\"guest\\\":[\\\"get\\\",\\\"list\\\"],\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]},\\\"protected/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]},\\\"private/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]}}}\"]" - }, - { - "OutputKey": "amplifyApiModelSchemaS3Uri", - "OutputValue": "s3://amplify-moodboard-ge-amplifydataamplifycodege-ozxpnvhcwmyz/model-schema.graphql" - }, - { - "OutputKey": "groups", - "OutputValue": "[]" - }, - { - "OutputKey": "definedFunctions", - "OutputValue": "[\"moodboardGetRandomEmoji-gen2-main\",\"moodboardKinesisReader-gen2-main\"]" - }, - { - "OutputKey": "passwordlessOptions", - "OutputValue": "" - }, - { - "OutputKey": "awsAppsyncRegion", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "deploymentType", - "OutputValue": "branch" - }, - { - "OutputKey": "passwordPolicyRequirements", - "OutputValue": "[]" - }, - { - "OutputKey": "region", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "userPoolId", - "OutputValue": "us-east-1_1A4RMvPNr" - }, - { - "OutputKey": "identityPoolId", - "OutputValue": "us-east-1:820c5910-56e0-4010-b0c4-b457a728acfb" - }, - { - "OutputKey": "verificationMechanisms", - "OutputValue": "[\"email\"]" - } -] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb.parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb.parameters.json deleted file mode 100644 index 74596fb6f32..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb.parameters.json +++ /dev/null @@ -1,7 +0,0 @@ -[ - { - "ParameterKey": "BootstrapVersion", - "ParameterValue": "/cdk-bootstrap/hnb659fds/version", - "ResolvedValue": "30" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb.template.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb.template.json deleted file mode 100644 index e9f5158fce7..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-gen2main-branch-f7e4caeabb.template.json +++ /dev/null @@ -1,1228 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.21.0\",\"stackType\":\"root\",\"metadata\":{}}", - "Metadata": { - "AWS::Amplify::Platform": { - "version": "1", - "stackOutputs": [ - "deploymentType", - "region" - ] - }, - "AWS::Amplify::Auth": { - "version": "1", - "stackOutputs": [ - "userPoolId", - "webClientId", - "identityPoolId", - "authRegion", - "allowUnauthenticatedIdentities", - "signupAttributes", - "usernameAttributes", - "verificationMechanisms", - "passwordPolicyMinLength", - "passwordPolicyRequirements", - "mfaConfiguration", - "mfaTypes", - "passwordlessOptions", - "socialProviders", - "oauthCognitoDomain", - "oauthScope", - "oauthRedirectSignIn", - "oauthRedirectSignOut", - "oauthResponseType", - "oauthClientId", - "groups" - ] - }, - "AWS::Amplify::GraphQL": { - "version": "1", - "stackOutputs": [ - "awsAppsyncApiId", - "awsAppsyncApiEndpoint", - "awsAppsyncAuthenticationType", - "awsAppsyncRegion", - "amplifyApiModelSchemaS3Uri", - "awsAppsyncApiKey", - "awsAppsyncAdditionalAuthenticationTypes" - ] - }, - "AWS::Amplify::Function": { - "version": "1", - "stackOutputs": [ - "definedFunctions" - ] - }, - "AWS::Amplify::Storage": { - "version": "1", - "stackOutputs": [ - "buckets", - "storageRegion", - "bucketName" - ] - } - }, - "Outputs": { - "deploymentType": { - "Value": "branch" - }, - "region": { - "Value": { - "Ref": "AWS::Region" - } - }, - "userPoolId": { - "Value": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthUserPoolAE38F854Ref" - ] - } - }, - "webClientId": { - "Value": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthUserPoolAppClientA69935A4Ref" - ] - } - }, - "identityPoolId": { - "Value": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef" - ] - } - }, - "authRegion": { - "Value": { - "Ref": "AWS::Region" - } - }, - "allowUnauthenticatedIdentities": { - "Value": "true" - }, - "signupAttributes": { - "Value": "[\"email\"]" - }, - "usernameAttributes": { - "Value": "[\"email\"]" - }, - "verificationMechanisms": { - "Value": "[\"email\"]" - }, - "passwordPolicyMinLength": { - "Value": "8" - }, - "passwordPolicyRequirements": { - "Value": "[]" - }, - "mfaConfiguration": { - "Value": "OFF" - }, - "mfaTypes": { - "Value": "[]" - }, - "passwordlessOptions": { - "Value": "" - }, - "socialProviders": { - "Value": "" - }, - "oauthCognitoDomain": { - "Value": "" - }, - "oauthScope": { - "Value": "[\"profile\",\"phone\",\"email\",\"openid\",\"aws.cognito.signin.user.admin\"]" - }, - "oauthRedirectSignIn": { - "Value": "https://example.com" - }, - "oauthRedirectSignOut": { - "Value": "" - }, - "oauthResponseType": { - "Value": "code" - }, - "oauthClientId": { - "Value": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthUserPoolAppClientA69935A4Ref" - ] - } - }, - "groups": { - "Value": "[]" - }, - "awsAppsyncApiId": { - "Value": { - "Fn::GetAtt": [ - "data7552DF31", - "Outputs.amplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48ApiId" - ] - } - }, - "awsAppsyncApiEndpoint": { - "Value": { - "Fn::GetAtt": [ - "data7552DF31", - "Outputs.amplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPI57A75E48GraphQLUrl" - ] - } - }, - "awsAppsyncAuthenticationType": { - "Value": "API_KEY" - }, - "awsAppsyncRegion": { - "Value": { - "Ref": "AWS::Region" - } - }, - "amplifyApiModelSchemaS3Uri": { - "Value": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Fn::Select": [ - 0, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "data7552DF31", - "Outputs.amplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB0881F041DestinationBucketArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "/model-schema.graphql" - ] - ] - } - }, - "awsAppsyncApiKey": { - "Value": { - "Fn::GetAtt": [ - "data7552DF31", - "Outputs.amplifymoodboardgen2mainbranchf7e4caeabbdataamplifyDataGraphQLAPIDefaultApiKeyAF7FD918ApiKey" - ] - } - }, - "awsAppsyncAdditionalAuthenticationTypes": { - "Value": "AMAZON_COGNITO_USER_POOLS,AWS_IAM" - }, - "definedFunctions": { - "Value": { - "Fn::Join": [ - "", - [ - "[\"", - { - "Fn::GetAtt": [ - "function1351588B", - "Outputs.amplifymoodboardgen2mainbranchf7e4caeabbfunctionmoodboardGetRandomEmojigen2mainlambda76EFC76ERef" - ] - }, - "\",\"", - { - "Fn::GetAtt": [ - "function1351588B", - "Outputs.amplifymoodboardgen2mainbranchf7e4caeabbfunctionmoodboardKinesisReadergen2mainlambda6E070627Ref" - ] - }, - "\"]" - ] - ] - } - }, - "storageRegion": { - "Value": { - "Ref": "AWS::Region" - } - }, - "bucketName": { - "Value": { - "Fn::GetAtt": [ - "storage0EC3F24A", - "Outputs.amplifymoodboardgen2mainbranchf7e4caeabbstoragemoodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket352A7A47Ref" - ] - } - }, - "buckets": { - "Value": { - "Fn::Join": [ - "", - [ - "[\"{\\\"name\\\":\\\"moodboard20e29595008142e3ad16f01c4066e1c41959a-gen2-main\\\",\\\"bucketName\\\":\\\"", - { - "Fn::GetAtt": [ - "storage0EC3F24A", - "Outputs.amplifymoodboardgen2mainbranchf7e4caeabbstoragemoodboard20e29595008142e3ad16f01c4066e1c41959agen2mainBucket352A7A47Ref" - ] - }, - "\\\",\\\"storageRegion\\\":\\\"", - { - "Ref": "AWS::Region" - }, - "\\\",\\\"paths\\\":{\\\"public/*\\\":{\\\"guest\\\":[\\\"get\\\",\\\"list\\\"],\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]},\\\"protected/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]},\\\"private/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]}}}\"]" - ] - ] - } - } - }, - "Resources": { - "AmplifyBranchLinkerCustomResourceLambdaServiceRole3DDCBC03": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/AmplifyBranchLinker/CustomResourceLambda/ServiceRole/Resource" - } - }, - "AmplifyBranchLinkerCustomResourceLambdaServiceRoleDefaultPolicy86099CA1": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "amplify:GetBranch", - "amplify:UpdateBranch" - ], - "Effect": "Allow", - "Resource": "arn:aws:amplify:*:*:apps/moodboard/branches/gen2-main" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "AmplifyBranchLinkerCustomResourceLambdaServiceRoleDefaultPolicy86099CA1", - "Roles": [ - { - "Ref": "AmplifyBranchLinkerCustomResourceLambdaServiceRole3DDCBC03" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/AmplifyBranchLinker/CustomResourceLambda/ServiceRole/DefaultPolicy/Resource" - } - }, - "AmplifyBranchLinkerCustomResourceLambda582AC093": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "1a757fd2e48bffd6245369585c61b0ce615ce78053da4f4387a9c069127512c0.zip" - }, - "Handler": "index.handler", - "Role": { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceLambdaServiceRole3DDCBC03", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 10 - }, - "DependsOn": [ - "AmplifyBranchLinkerCustomResourceLambdaServiceRoleDefaultPolicy86099CA1", - "AmplifyBranchLinkerCustomResourceLambdaServiceRole3DDCBC03" - ], - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/AmplifyBranchLinker/CustomResourceLambda/Resource", - "aws:asset:path": "asset.1a757fd2e48bffd6245369585c61b0ce615ce78053da4f4387a9c069127512c0", - "aws:asset:is-bundled": true, - "aws:asset:property": "Code" - } - }, - "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRole92A035EB": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/AmplifyBranchLinker/CustomResourceProvider/framework-onEvent/ServiceRole/Resource" - } - }, - "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRoleDefaultPolicy38AAE412": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "lambda:InvokeFunction", - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceLambda582AC093", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceLambda582AC093", - "Arn" - ] - }, - ":*" - ] - ] - } - ] - }, - { - "Action": "lambda:GetFunction", - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceLambda582AC093", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRoleDefaultPolicy38AAE412", - "Roles": [ - { - "Ref": "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRole92A035EB" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/AmplifyBranchLinker/CustomResourceProvider/framework-onEvent/ServiceRole/DefaultPolicy/Resource" - } - }, - "AmplifyBranchLinkerCustomResourceProviderframeworkonEvent3B23F900": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "07a90cc3efdfc34da22208dcd9d211f06f5b0e01b21e778edc7c3966b1f61d57.zip" - }, - "Description": "AWS CDK resource provider framework - onEvent (amplify-moodboard-gen2main-branch-f7e4caeabb/AmplifyBranchLinker/CustomResourceProvider)", - "Environment": { - "Variables": { - "USER_ON_EVENT_FUNCTION_ARN": { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceLambda582AC093", - "Arn" - ] - } - } - }, - "Handler": "framework.onEvent", - "LoggingConfig": { - "ApplicationLogLevel": "FATAL", - "LogFormat": "JSON" - }, - "Role": { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRole92A035EB", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 900 - }, - "DependsOn": [ - "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRoleDefaultPolicy38AAE412", - "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRole92A035EB" - ], - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/AmplifyBranchLinker/CustomResourceProvider/framework-onEvent/Resource", - "aws:asset:path": "asset.07a90cc3efdfc34da22208dcd9d211f06f5b0e01b21e778edc7c3966b1f61d57", - "aws:asset:is-bundled": false, - "aws:asset:property": "Code" - } - }, - "AmplifyBranchLinkerCustomResource96E36FC1": { - "Type": "Custom::AmplifyBranchLinkerResource", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceProviderframeworkonEvent3B23F900", - "Arn" - ] - }, - "appId": "moodboard", - "branchName": "gen2-main" - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/AmplifyBranchLinker/CustomResource/Default" - } - }, - "auth179371D7": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/038194ee4240757e0551e74f67ed89c88778ce671dd5b69536d1cedf4d0ae368.json" - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/auth.NestedStack/auth.NestedStackResource", - "aws:asset:path": "amplifymoodboardgen2mainbranchf7e4caeabbauth0E22629C.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "data7552DF31": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthUserPoolAE38F854Ref": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthUserPoolAE38F854Ref" - ] - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref" - ] - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef" - ] - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthIdentityPoolA9AA7B9FRef" - ] - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/d005c94b739ea130975c415011c6d477486b2ccf0da9059b67e3a4f77eb263fd.json" - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/data.NestedStack/data.NestedStackResource", - "aws:asset:path": "amplifymoodboardgen2mainbranchf7e4caeabbdata56E569FA.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "storage0EC3F24A": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef" - ] - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref" - ] - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/1b7ff4a9b0d84079a62c201017e910c94a2584e3bf2d56695e1be59242afc004.json" - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/storage.NestedStack/storage.NestedStackResource", - "aws:asset:path": "amplifymoodboardgen2mainbranchf7e4caeabbstorageB0992CC3.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "function1351588B": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbanalyticsNestedStackanalyticsNestedStackResourceB580ACE1Outputsamplifymoodboardgen2mainbranchf7e4caeabbanalyticsmoodboardKinesisKinesisStreamBD82380AArn": { - "Fn::GetAtt": [ - "analytics5794DE4A", - "Outputs.amplifymoodboardgen2mainbranchf7e4caeabbanalyticsmoodboardKinesisKinesisStreamBD82380AArn" - ] - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/041c21fe67915b2dde57c2ca407721da57797462c9d83298732c4818cdc15caa.json" - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/function.NestedStack/function.NestedStackResource", - "aws:asset:path": "amplifymoodboardgen2mainbranchf7e4caeabbfunctionE7206F93.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "analytics5794DE4A": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthauthenticatedUserRole0AA19633Ref" - ] - }, - "referencetoamplifymoodboardgen2mainbranchf7e4caeabbauthNestedStackauthNestedStackResource8240BFF9Outputsamplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifymoodboardgen2mainbranchf7e4caeabbauthamplifyAuthunauthenticatedUserRoleBEC4D39ARef" - ] - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "moodboard" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/ff750063651ab63364794466bcf35e78c90c6b6eb95203ad83f215eb995948f1.json" - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/analytics.NestedStack/analytics.NestedStackResource", - "aws:asset:path": "amplifymoodboardgen2mainbranchf7e4caeabbanalytics47DFCADD.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/02PzWrDQAyEnyV3WU2cHHptDD22wXkAo6yVIP/slpU2oRi/e/C6LT19I4YZNCWWhx1uN/TQwrV9McgFp7OR66G6+s9kX8mAHtpMA42XlhofWu4UPzLek3cmwYPQiFMdBl5SmacwiPtezlXNoPuGVNkU3xaA7vGYXM92JGVY63Gqrv6v9VfMM+TI2egm/gYuqYWxiawhRceKpxju0nKEKjv1j5Gf+afzrhmWCdjpy70scfeK202nIkVM3mRkrFc+AUTtSG0ZAQAA" - }, - "Metadata": { - "aws:cdk:path": "amplify-moodboard-gen2main-branch-f7e4caeabb/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "BootstrapVersion": { - "Type": "AWS::SSM::Parameter::Value", - "Default": "/cdk-bootstrap/hnb659fds/version", - "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]" - } - }, - "Rules": { - "CheckBootstrapVersion": { - "Assertions": [ - { - "Assert": { - "Fn::Not": [ - { - "Fn::Contains": [ - [ - "1", - "2", - "3", - "4", - "5" - ], - { - "Ref": "BootstrapVersion" - } - ] - } - ] - }, - "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI." - } - ] - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.description.txt b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.description.txt deleted file mode 100644 index 19f55bafdb2..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"analytics-Kinesis","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.outputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.outputs.json deleted file mode 100644 index 9b216bc580f..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.outputs.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "OutputKey": "kinesisStreamId", - "OutputValue": "moodboardKinesis-main" - }, - { - "OutputKey": "kinesisStreamShardCount", - "OutputValue": "1" - }, - { - "OutputKey": "kinesisStreamArn", - "OutputValue": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.parameters.json deleted file mode 100644 index 3dd91ce4664..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.parameters.json +++ /dev/null @@ -1,30 +0,0 @@ -[ - { - "ParameterKey": "unauthPolicyName", - "ParameterValue": "kinesis_amplify_bca5ce95" - }, - { - "ParameterKey": "authRoleName", - "ParameterValue": "amplify-moodboard-main-1959a-authRole" - }, - { - "ParameterKey": "unauthRoleName", - "ParameterValue": "amplify-moodboard-main-1959a-unauthRole" - }, - { - "ParameterKey": "authPolicyName", - "ParameterValue": "kinesis_amplify_bca5ce95" - }, - { - "ParameterKey": "kinesisStreamShardCount", - "ParameterValue": "1" - }, - { - "ParameterKey": "kinesisStreamName", - "ParameterValue": "moodboardKinesis" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.template.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.template.json deleted file mode 100644 index f9f3849033d..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-analyticsmoodboardKinesis-UYYBLD3G4B1S.template.json +++ /dev/null @@ -1,143 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"analytics-Kinesis\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "Parameters": { - "env": { - "Type": "String" - }, - "kinesisStreamName": { - "Type": "String" - }, - "kinesisStreamShardCount": { - "Type": "Number", - "Default": 1 - }, - "authPolicyName": { - "Type": "String" - }, - "unauthPolicyName": { - "Type": "String" - }, - "authRoleName": { - "Type": "String" - }, - "unauthRoleName": { - "Type": "String" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - }, - "Resources": { - "KinesisStream": { - "Type": "AWS::Kinesis::Stream", - "Properties": { - "Name": { - "Fn::Join": [ - "-", - [ - { - "Ref": "kinesisStreamName" - }, - { - "Ref": "env" - } - ] - ] - }, - "ShardCount": { - "Ref": "kinesisStreamShardCount" - } - } - }, - "CognitoUnauthPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyName": { - "Ref": "unauthPolicyName" - }, - "Roles": [ - { - "Ref": "unauthRoleName" - } - ], - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "kinesis:PutRecord", - "kinesis:PutRecords" - ], - "Resource": { - "Fn::GetAtt": [ - "KinesisStream", - "Arn" - ] - } - } - ] - } - } - }, - "CognitoAuthPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyName": { - "Ref": "authPolicyName" - }, - "Roles": [ - { - "Ref": "authRoleName" - } - ], - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "kinesis:PutRecord", - "kinesis:PutRecords" - ], - "Resource": { - "Fn::GetAtt": [ - "KinesisStream", - "Arn" - ] - } - } - ] - } - } - } - }, - "Outputs": { - "kinesisStreamArn": { - "Value": { - "Fn::GetAtt": [ - "KinesisStream", - "Arn" - ] - } - }, - "kinesisStreamId": { - "Value": { - "Ref": "KinesisStream" - } - }, - "kinesisStreamShardCount": { - "Value": { - "Ref": "kinesisStreamShardCount" - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-Board-GUSL7VO8BN5I.description.txt b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-Board-GUSL7VO8BN5I.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-Board-GUSL7VO8BN5I.outputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-Board-GUSL7VO8BN5I.outputs.json deleted file mode 100644 index e3390fcc037..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-Board-GUSL7VO8BN5I.outputs.json +++ /dev/null @@ -1,28 +0,0 @@ -[ - { - "OutputKey": "GetAttBoardTableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Board-vsozkn3hbzdjppzyf7xtf2f4sy-main/stream/2026-03-08T17:04:46.147", - "Description": "Your DynamoDB table StreamArn.", - "ExportName": "vsozkn3hbzdjppzyf7xtf2f4sy:GetAtt:BoardTable:StreamArn" - }, - { - "OutputKey": "GetAttBoardDataSourceName", - "OutputValue": "BoardTable", - "Description": "Your model DataSource name.", - "ExportName": "vsozkn3hbzdjppzyf7xtf2f4sy:GetAtt:BoardDataSource:Name" - }, - { - "OutputKey": "transformerrootstackBoardBoardDataSource99BFC69FName", - "OutputValue": "BoardTable" - }, - { - "OutputKey": "GetAttBoardTableName", - "OutputValue": "Board-vsozkn3hbzdjppzyf7xtf2f4sy-main", - "Description": "Your DynamoDB table name.", - "ExportName": "vsozkn3hbzdjppzyf7xtf2f4sy:GetAtt:BoardTable:Name" - }, - { - "OutputKey": "transformerrootstackBoardBoardTable30788E07Ref", - "OutputValue": "Board-vsozkn3hbzdjppzyf7xtf2f4sy-main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-Board-GUSL7VO8BN5I.parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-Board-GUSL7VO8BN5I.parameters.json deleted file mode 100644 index 24aadc338a6..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-Board-GUSL7VO8BN5I.parameters.json +++ /dev/null @@ -1,66 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemSubscriptiononCreateMoodItemauth0FunctionSubscriptiononCreateMoodItemauth0FunctionAppSyncFunction643A2F06FunctionId", - "ParameterValue": "r57v3miwtnb5vgvzvxpjs2ijyi" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", - "ParameterValue": "amplify-appsync-files/f7ab9fca95eecad3a59047fb5fd92dfef9d55ad4" - }, - { - "ParameterKey": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemQuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunctionA2A15C1FFunctionId", - "ParameterValue": "2b6kbyvzpfh6legcpe7qnmfnnq" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", - "ParameterValue": "vsozkn3hbzdjppzyf7xtf2f4sy" - }, - { - "ParameterKey": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemQuerygetMoodItemauth0FunctionQuerygetMoodItemauth0FunctionAppSyncFunctionBB402264FunctionId", - "ParameterValue": "jgql3pwqu5fzzblyk2xg3ttzdm" - }, - { - "ParameterKey": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemMutationupdateMoodIteminit0FunctionMutationupdateMoodIteminit0FunctionAppSyncFunctionA5BB53A1FunctionId", - "ParameterValue": "2yn7gzkgznd4bakw2hto3wxilm" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "false" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemMutationcreateMoodItemauth0FunctionMutationcreateMoodItemauth0FunctionAppSyncFunction8743A884FunctionId", - "ParameterValue": "w5xtplaf2bh77ewj5kmeenetw4" - }, - { - "ParameterKey": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemSubscriptionOnCreateMoodItemDataResolverFnSubscriptionOnCreateMoodItemDataResolverFnAppSyncFunctionE0588344FunctionId", - "ParameterValue": "npjglo5qrzgdtdu6vnutw7jyhi" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", - "ParameterValue": "amplify-moodboard-main-1959a-deployment" - }, - { - "ParameterKey": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemMutationcreateMoodIteminit0FunctionMutationcreateMoodIteminit0FunctionAppSyncFunctionA7648B0CFunctionId", - "ParameterValue": "tuqdbm3jabhd7ke7yobm2dkldu" - }, - { - "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", - "ParameterValue": "main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-Board-GUSL7VO8BN5I.template.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-Board-GUSL7VO8BN5I.template.json deleted file mode 100644 index e7b061dc849..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-Board-GUSL7VO8BN5I.template.json +++ /dev/null @@ -1,1150 +0,0 @@ -{ - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "referencetotransformerrootstackenv10C5A902Ref": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Type": "String" - }, - "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemQuerygetMoodItemauth0FunctionQuerygetMoodItemauth0FunctionAppSyncFunctionBB402264FunctionId": { - "Type": "String" - }, - "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemQuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunctionA2A15C1FFunctionId": { - "Type": "String" - }, - "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemMutationcreateMoodIteminit0FunctionMutationcreateMoodIteminit0FunctionAppSyncFunctionA7648B0CFunctionId": { - "Type": "String" - }, - "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemMutationcreateMoodItemauth0FunctionMutationcreateMoodItemauth0FunctionAppSyncFunction8743A884FunctionId": { - "Type": "String" - }, - "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemMutationupdateMoodIteminit0FunctionMutationupdateMoodIteminit0FunctionAppSyncFunctionA5BB53A1FunctionId": { - "Type": "String" - }, - "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemSubscriptiononCreateMoodItemauth0FunctionSubscriptiononCreateMoodItemauth0FunctionAppSyncFunction643A2F06FunctionId": { - "Type": "String" - }, - "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemSubscriptionOnCreateMoodItemDataResolverFnSubscriptionOnCreateMoodItemDataResolverFnAppSyncFunctionE0588344FunctionId": { - "Type": "String" - } - }, - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - }, - "NONE" - ] - } - ] - }, - "ShouldUseServerSideEncryption": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "true" - ] - }, - "ShouldUsePayPerRequestBilling": { - "Fn::Equals": [ - { - "Ref": "DynamoDBBillingMode" - }, - "PAY_PER_REQUEST" - ] - }, - "ShouldUsePointInTimeRecovery": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "true" - ] - } - }, - "Resources": { - "BoardTable": { - "Type": "AWS::DynamoDB::Table", - "Properties": { - "AttributeDefinitions": [ - { - "AttributeName": "id", - "AttributeType": "S" - } - ], - "BillingMode": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - "PAY_PER_REQUEST", - { - "Ref": "AWS::NoValue" - } - ] - }, - "KeySchema": [ - { - "AttributeName": "id", - "KeyType": "HASH" - } - ], - "PointInTimeRecoverySpecification": { - "Fn::If": [ - "ShouldUsePointInTimeRecovery", - { - "PointInTimeRecoveryEnabled": true - }, - { - "Ref": "AWS::NoValue" - } - ] - }, - "ProvisionedThroughput": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - { - "Ref": "AWS::NoValue" - }, - { - "ReadCapacityUnits": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "WriteCapacityUnits": { - "Ref": "DynamoDBModelTableWriteIOPS" - } - } - ] - }, - "SSESpecification": { - "SSEEnabled": { - "Fn::If": [ - "ShouldUseServerSideEncryption", - true, - false - ] - } - }, - "StreamSpecification": { - "StreamViewType": "NEW_AND_OLD_IMAGES" - }, - "TableName": { - "Fn::Join": [ - "", - [ - "Board-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete" - }, - "BoardIAMRole2AFA0B47": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:DeleteItem", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:Query", - "dynamodb:UpdateItem", - "dynamodb:ConditionCheckItem", - "dynamodb:DescribeTable", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", - { - "tablename": { - "Fn::Join": [ - "", - [ - "Board-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - ] - }, - { - "Fn::Sub": [ - "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", - { - "tablename": { - "Fn::Join": [ - "", - [ - "Board-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "DynamoDBAccess" - } - ], - "RoleName": { - "Fn::Join": [ - "", - [ - "BoardIAMRolecda8e3-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - }, - "BoardIAMRoleDefaultPolicyE2247A7F": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator", - "dynamodb:Query", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:ConditionCheckItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:UpdateItem", - "dynamodb:DeleteItem", - "dynamodb:DescribeTable" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "BoardTable", - "Arn" - ] - }, - { - "Ref": "AWS::NoValue" - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "BoardIAMRoleDefaultPolicyE2247A7F", - "Roles": [ - { - "Ref": "BoardIAMRole2AFA0B47" - } - ] - } - }, - "BoardDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DynamoDBConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "TableName": { - "Ref": "BoardTable" - } - }, - "Name": "BoardTable", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "BoardIAMRole2AFA0B47", - "Arn" - ] - }, - "Type": "AMAZON_DYNAMODB" - }, - "DependsOn": [ - "BoardIAMRole2AFA0B47" - ] - }, - "QueryGetBoardDataResolverFnQueryGetBoardDataResolverFnAppSyncFunction4DCC2B77": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "BoardDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryGetBoardDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getBoard.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getBoard.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "BoardDataSource" - ] - }, - "GetBoardResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "getBoard", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemQuerygetMoodItemauth0FunctionQuerygetMoodItemauth0FunctionAppSyncFunctionBB402264FunctionId" - }, - { - "Ref": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemQuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunctionA2A15C1FFunctionId" - }, - { - "Fn::GetAtt": [ - "QueryGetBoardDataResolverFnQueryGetBoardDataResolverFnAppSyncFunction4DCC2B77", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getBoard\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "BoardTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:a39e734d-ac34-43c7-8303-67512f010f0d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - } - }, - "QueryListBoardsDataResolverFnQueryListBoardsDataResolverFnAppSyncFunction6FD2B54C": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "BoardDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryListBoardsDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.listBoards.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.listBoards.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "BoardDataSource" - ] - }, - "ListBoardResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "listBoards", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemQuerygetMoodItemauth0FunctionQuerygetMoodItemauth0FunctionAppSyncFunctionBB402264FunctionId" - }, - { - "Ref": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemQuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunctionA2A15C1FFunctionId" - }, - { - "Fn::GetAtt": [ - "QueryListBoardsDataResolverFnQueryListBoardsDataResolverFnAppSyncFunction6FD2B54C", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listBoards\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "BoardTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:a39e734d-ac34-43c7-8303-67512f010f0d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - } - }, - "MutationCreateBoardDataResolverFnMutationCreateBoardDataResolverFnAppSyncFunctionA8197CF5": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "BoardDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationCreateBoardDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createBoard.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createBoard.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "BoardDataSource" - ] - }, - "CreateBoardResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "createBoard", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemMutationcreateMoodIteminit0FunctionMutationcreateMoodIteminit0FunctionAppSyncFunctionA7648B0CFunctionId" - }, - { - "Ref": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemMutationcreateMoodItemauth0FunctionMutationcreateMoodItemauth0FunctionAppSyncFunction8743A884FunctionId" - }, - { - "Ref": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemQuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunctionA2A15C1FFunctionId" - }, - { - "Fn::GetAtt": [ - "MutationCreateBoardDataResolverFnMutationCreateBoardDataResolverFnAppSyncFunctionA8197CF5", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createBoard\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "BoardTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:a39e734d-ac34-43c7-8303-67512f010f0d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "MutationupdateBoardauth0FunctionMutationupdateBoardauth0FunctionAppSyncFunction2E8E275A": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "BoardDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateBoardauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateBoard.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateBoard.auth.1.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "BoardDataSource" - ] - }, - "MutationUpdateBoardDataResolverFnMutationUpdateBoardDataResolverFnAppSyncFunction9C4A47A5": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "BoardDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationUpdateBoardDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateBoard.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateBoard.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "BoardDataSource" - ] - }, - "UpdateBoardResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "updateBoard", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemMutationupdateMoodIteminit0FunctionMutationupdateMoodIteminit0FunctionAppSyncFunctionA5BB53A1FunctionId" - }, - { - "Fn::GetAtt": [ - "MutationupdateBoardauth0FunctionMutationupdateBoardauth0FunctionAppSyncFunction2E8E275A", - "FunctionId" - ] - }, - { - "Ref": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemQuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunctionA2A15C1FFunctionId" - }, - { - "Fn::GetAtt": [ - "MutationUpdateBoardDataResolverFnMutationUpdateBoardDataResolverFnAppSyncFunction9C4A47A5", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateBoard\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "BoardTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:a39e734d-ac34-43c7-8303-67512f010f0d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "MutationdeleteBoardauth0FunctionMutationdeleteBoardauth0FunctionAppSyncFunctionDCC1EFD9": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "BoardDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeleteBoardauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteBoard.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteBoard.auth.1.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "BoardDataSource" - ] - }, - "MutationDeleteBoardDataResolverFnMutationDeleteBoardDataResolverFnAppSyncFunctionFAEDC2FC": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "BoardDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationDeleteBoardDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteBoard.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteBoard.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "BoardDataSource" - ] - }, - "DeleteBoardResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "deleteBoard", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationdeleteBoardauth0FunctionMutationdeleteBoardauth0FunctionAppSyncFunctionDCC1EFD9", - "FunctionId" - ] - }, - { - "Ref": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemQuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunctionA2A15C1FFunctionId" - }, - { - "Fn::GetAtt": [ - "MutationDeleteBoardDataResolverFnMutationDeleteBoardDataResolverFnAppSyncFunctionFAEDC2FC", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteBoard\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "BoardTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:a39e734d-ac34-43c7-8303-67512f010f0d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "SubscriptiononCreateBoardResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onCreateBoard", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemSubscriptiononCreateMoodItemauth0FunctionSubscriptiononCreateMoodItemauth0FunctionAppSyncFunction643A2F06FunctionId" - }, - { - "Ref": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemQuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunctionA2A15C1FFunctionId" - }, - { - "Ref": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemSubscriptionOnCreateMoodItemDataResolverFnSubscriptionOnCreateMoodItemDataResolverFnAppSyncFunctionE0588344FunctionId" - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateBoard\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:a39e734d-ac34-43c7-8303-67512f010f0d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - }, - "SubscriptiononUpdateBoardResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onUpdateBoard", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemSubscriptiononCreateMoodItemauth0FunctionSubscriptiononCreateMoodItemauth0FunctionAppSyncFunction643A2F06FunctionId" - }, - { - "Ref": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemQuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunctionA2A15C1FFunctionId" - }, - { - "Ref": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemSubscriptionOnCreateMoodItemDataResolverFnSubscriptionOnCreateMoodItemDataResolverFnAppSyncFunctionE0588344FunctionId" - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateBoard\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:a39e734d-ac34-43c7-8303-67512f010f0d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - }, - "SubscriptiononDeleteBoardResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onDeleteBoard", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemSubscriptiononCreateMoodItemauth0FunctionSubscriptiononCreateMoodItemauth0FunctionAppSyncFunction643A2F06FunctionId" - }, - { - "Ref": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemQuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunctionA2A15C1FFunctionId" - }, - { - "Ref": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemSubscriptionOnCreateMoodItemDataResolverFnSubscriptionOnCreateMoodItemDataResolverFnAppSyncFunctionE0588344FunctionId" - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteBoard\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:a39e734d-ac34-43c7-8303-67512f010f0d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - } - }, - "Outputs": { - "GetAttBoardTableStreamArn": { - "Description": "Your DynamoDB table StreamArn.", - "Value": { - "Fn::GetAtt": [ - "BoardTable", - "StreamArn" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:BoardTable:StreamArn" - ] - ] - } - } - }, - "GetAttBoardTableName": { - "Description": "Your DynamoDB table name.", - "Value": { - "Ref": "BoardTable" - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:BoardTable:Name" - ] - ] - } - } - }, - "GetAttBoardDataSourceName": { - "Description": "Your model DataSource name.", - "Value": { - "Fn::GetAtt": [ - "BoardDataSource", - "Name" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:BoardDataSource:Name" - ] - ] - } - } - }, - "transformerrootstackBoardBoardDataSource99BFC69FName": { - "Value": { - "Fn::GetAtt": [ - "BoardDataSource", - "Name" - ] - } - }, - "transformerrootstackBoardBoardTable30788E07Ref": { - "Value": { - "Ref": "BoardTable" - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-ConnectionStack-17NHRTBOSRYN1.description.txt b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-ConnectionStack-17NHRTBOSRYN1.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-ConnectionStack-17NHRTBOSRYN1.outputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-ConnectionStack-17NHRTBOSRYN1.outputs.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-ConnectionStack-17NHRTBOSRYN1.outputs.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-ConnectionStack-17NHRTBOSRYN1.parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-ConnectionStack-17NHRTBOSRYN1.parameters.json deleted file mode 100644 index 61855a2daee..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-ConnectionStack-17NHRTBOSRYN1.parameters.json +++ /dev/null @@ -1,34 +0,0 @@ -[ - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", - "ParameterValue": "amplify-appsync-files/f7ab9fca95eecad3a59047fb5fd92dfef9d55ad4" - }, - { - "ParameterKey": "referencetotransformerrootstackBoardNestedStackBoardNestedStackResource9E449E87OutputstransformerrootstackBoardBoardDataSource99BFC69FName", - "ParameterValue": "BoardTable" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", - "ParameterValue": "vsozkn3hbzdjppzyf7xtf2f4sy" - }, - { - "ParameterKey": "referencetotransformerrootstackBoardNestedStackBoardNestedStackResource9E449E87OutputstransformerrootstackBoardBoardTable30788E07Ref", - "ParameterValue": "Board-vsozkn3hbzdjppzyf7xtf2f4sy-main" - }, - { - "ParameterKey": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemMoodItemTable5135EED9Ref", - "ParameterValue": "MoodItem-vsozkn3hbzdjppzyf7xtf2f4sy-main" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", - "ParameterValue": "amplify-moodboard-main-1959a-deployment" - }, - { - "ParameterKey": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemMoodItemDataSource0777FF0CName", - "ParameterValue": "MoodItemTable" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-ConnectionStack-17NHRTBOSRYN1.template.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-ConnectionStack-17NHRTBOSRYN1.template.json deleted file mode 100644 index 0f69a19f3c6..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-ConnectionStack-17NHRTBOSRYN1.template.json +++ /dev/null @@ -1,238 +0,0 @@ -{ - "Resources": { - "BoardmoodItemsauth0FunctionBoardmoodItemsauth0FunctionAppSyncFunction24F8C273": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "BoardmoodItemsauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Board.moodItems.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "BoardMoodItemsDataResolverFnBoardMoodItemsDataResolverFnAppSyncFunctionB8E73866": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemMoodItemDataSource0777FF0CName" - }, - "FunctionVersion": "2018-05-29", - "Name": "BoardMoodItemsDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Board.moodItems.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Board.moodItems.res.vtl" - ] - ] - } - } - }, - "BoardmoodItemsResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "moodItems", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "BoardmoodItemsauth0FunctionBoardmoodItemsauth0FunctionAppSyncFunction24F8C273", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "BoardMoodItemsDataResolverFnBoardMoodItemsDataResolverFnAppSyncFunctionB8E73866", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Board\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"moodItems\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemMoodItemTable5135EED9Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:a39e734d-ac34-43c7-8303-67512f010f0d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Board" - } - }, - "MoodItemBoardDataResolverFnMoodItemBoardDataResolverFnAppSyncFunction5C7B0B1B": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackBoardNestedStackBoardNestedStackResource9E449E87OutputstransformerrootstackBoardBoardDataSource99BFC69FName" - }, - "FunctionVersion": "2018-05-29", - "Name": "MoodItemBoardDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/MoodItem.board.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/MoodItem.board.res.vtl" - ] - ] - } - } - }, - "MoodItemboardResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "board", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "BoardmoodItemsauth0FunctionBoardmoodItemsauth0FunctionAppSyncFunction24F8C273", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MoodItemBoardDataResolverFnMoodItemBoardDataResolverFnAppSyncFunction5C7B0B1B", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"MoodItem\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"board\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "referencetotransformerrootstackBoardNestedStackBoardNestedStackResource9E449E87OutputstransformerrootstackBoardBoardTable30788E07Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:a39e734d-ac34-43c7-8303-67512f010f0d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "MoodItem" - } - } - }, - "Parameters": { - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Type": "String" - }, - "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemMoodItemDataSource0777FF0CName": { - "Type": "String" - }, - "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemMoodItemTable5135EED9Ref": { - "Type": "String" - }, - "referencetotransformerrootstackBoardNestedStackBoardNestedStackResource9E449E87OutputstransformerrootstackBoardBoardDataSource99BFC69FName": { - "Type": "String" - }, - "referencetotransformerrootstackBoardNestedStackBoardNestedStackResource9E449E87OutputstransformerrootstackBoardBoardTable30788E07Ref": { - "Type": "String" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-CustomResourcesjson-1V2DCDPNF2AMV.description.txt b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-CustomResourcesjson-1V2DCDPNF2AMV.description.txt deleted file mode 100644 index 293dec5639e..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-CustomResourcesjson-1V2DCDPNF2AMV.description.txt +++ /dev/null @@ -1 +0,0 @@ -An auto-generated nested stack. \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-CustomResourcesjson-1V2DCDPNF2AMV.outputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-CustomResourcesjson-1V2DCDPNF2AMV.outputs.json deleted file mode 100644 index 5e9753d822a..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-CustomResourcesjson-1V2DCDPNF2AMV.outputs.json +++ /dev/null @@ -1,7 +0,0 @@ -[ - { - "OutputKey": "EmptyOutput", - "OutputValue": "", - "Description": "An empty output. You may delete this if you have at least one resource above." - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-CustomResourcesjson-1V2DCDPNF2AMV.parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-CustomResourcesjson-1V2DCDPNF2AMV.parameters.json deleted file mode 100644 index fa7f768c3b4..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-CustomResourcesjson-1V2DCDPNF2AMV.parameters.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "ParameterKey": "S3DeploymentBucket", - "ParameterValue": "amplify-moodboard-main-1959a-deployment" - }, - { - "ParameterKey": "AppSyncApiId", - "ParameterValue": "vsozkn3hbzdjppzyf7xtf2f4sy" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "S3DeploymentRootKey", - "ParameterValue": "amplify-appsync-files/f7ab9fca95eecad3a59047fb5fd92dfef9d55ad4" - }, - { - "ParameterKey": "AppSyncApiName", - "ParameterValue": "moodboard" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-CustomResourcesjson-1V2DCDPNF2AMV.template.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-CustomResourcesjson-1V2DCDPNF2AMV.template.json deleted file mode 100644 index 016991278d0..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-CustomResourcesjson-1V2DCDPNF2AMV.template.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "An auto-generated nested stack.", - "Metadata": {}, - "Parameters": { - "AppSyncApiId": { - "Type": "String", - "Description": "The id of the AppSync API associated with this project." - }, - "AppSyncApiName": { - "Type": "String", - "Description": "The name of the AppSync API", - "Default": "AppSyncSimpleTransform" - }, - "env": { - "Type": "String", - "Description": "The environment name. e.g. Dev, Test, or Production", - "Default": "NONE" - }, - "S3DeploymentBucket": { - "Type": "String", - "Description": "The S3 bucket containing all deployment assets for the project." - }, - "S3DeploymentRootKey": { - "Type": "String", - "Description": "An S3 key relative to the S3DeploymentBucket that points to the root\nof the deployment directory." - } - }, - "Resources": { - "EmptyResource": { - "Type": "Custom::EmptyResource", - "Condition": "AlwaysFalse" - } - }, - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - ] - }, - "AlwaysFalse": { - "Fn::Equals": [ - "true", - "false" - ] - } - }, - "Outputs": { - "EmptyOutput": { - "Description": "An empty output. You may delete this if you have at least one resource above.", - "Value": "" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-FunctionDirectiveStack-156N8PP509YUZ.description.txt b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-FunctionDirectiveStack-156N8PP509YUZ.description.txt deleted file mode 100644 index 87d574fa42f..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-FunctionDirectiveStack-156N8PP509YUZ.description.txt +++ /dev/null @@ -1 +0,0 @@ -An auto-generated nested stack for the @function directive. \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-FunctionDirectiveStack-156N8PP509YUZ.outputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-FunctionDirectiveStack-156N8PP509YUZ.outputs.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-FunctionDirectiveStack-156N8PP509YUZ.outputs.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-FunctionDirectiveStack-156N8PP509YUZ.parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-FunctionDirectiveStack-156N8PP509YUZ.parameters.json deleted file mode 100644 index 5c695ea5163..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-FunctionDirectiveStack-156N8PP509YUZ.parameters.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", - "ParameterValue": "amplify-appsync-files/f7ab9fca95eecad3a59047fb5fd92dfef9d55ad4" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", - "ParameterValue": "vsozkn3hbzdjppzyf7xtf2f4sy" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", - "ParameterValue": "amplify-moodboard-main-1959a-deployment" - }, - { - "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", - "ParameterValue": "main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-FunctionDirectiveStack-156N8PP509YUZ.template.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-FunctionDirectiveStack-156N8PP509YUZ.template.json deleted file mode 100644 index c984a8bbed7..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-FunctionDirectiveStack-156N8PP509YUZ.template.json +++ /dev/null @@ -1,495 +0,0 @@ -{ - "Description": "An auto-generated nested stack for the @function directive.", - "AWSTemplateFormatVersion": "2010-09-09", - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - }, - "NONE" - ] - } - ] - } - }, - "Resources": { - "MoodboardGetRandomEmojiLambdaDataSourceServiceRole80A7D70B": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - } - } - }, - "MoodboardGetRandomEmojiLambdaDataSourceServiceRoleDefaultPolicy231460F5": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "lambda:InvokeFunction", - "Effect": "Allow", - "Resource": [ - { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardGetRandomEmoji-${env}", - { - "env": { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - } - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardGetRandomEmoji" - } - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardGetRandomEmoji-${env}", - { - "env": { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - } - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardGetRandomEmoji" - } - ] - }, - ":*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "MoodboardGetRandomEmojiLambdaDataSourceServiceRoleDefaultPolicy231460F5", - "Roles": [ - { - "Ref": "MoodboardGetRandomEmojiLambdaDataSourceServiceRole80A7D70B" - } - ] - } - }, - "MoodboardGetRandomEmojiLambdaDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "LambdaConfig": { - "LambdaFunctionArn": { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardGetRandomEmoji-${env}", - { - "env": { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - } - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardGetRandomEmoji" - } - ] - } - }, - "Name": "MoodboardGetRandomEmojiLambdaDataSource", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "MoodboardGetRandomEmojiLambdaDataSourceServiceRole80A7D70B", - "Arn" - ] - }, - "Type": "AWS_LAMBDA" - } - }, - "InvokeMoodboardGetRandomEmojiLambdaDataSourceInvokeMoodboardGetRandomEmojiLambdaDataSourceAppSyncFunctionDA9E25C2": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "MoodboardGetRandomEmojiLambdaDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "InvokeMoodboardGetRandomEmojiLambdaDataSource", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/InvokeMoodboardGetRandomEmojiLambdaDataSource.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/InvokeMoodboardGetRandomEmojiLambdaDataSource.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "MoodboardGetRandomEmojiLambdaDataSource" - ] - }, - "QuerygetRandomEmojiResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "getRandomEmoji", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QueryGetRandomEmojiAuthFNQueryGetRandomEmojiAuthFNAppSyncFunction4A668110", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "InvokeMoodboardGetRandomEmojiLambdaDataSourceInvokeMoodboardGetRandomEmojiLambdaDataSourceAppSyncFunctionDA9E25C2", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getRandomEmoji\"))\n{}\n## [End] Stash resolver specific context.. **", - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getRandomEmoji.res.vtl" - ] - ] - }, - "TypeName": "Query" - } - }, - "MoodboardKinesisreaderLambdaDataSourceServiceRole9D507FAC": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - } - } - }, - "MoodboardKinesisreaderLambdaDataSourceServiceRoleDefaultPolicyD5B4AEB5": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "lambda:InvokeFunction", - "Effect": "Allow", - "Resource": [ - { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardKinesisReader-${env}", - { - "env": { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - } - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardKinesisReader" - } - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardKinesisReader-${env}", - { - "env": { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - } - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardKinesisReader" - } - ] - }, - ":*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "MoodboardKinesisreaderLambdaDataSourceServiceRoleDefaultPolicyD5B4AEB5", - "Roles": [ - { - "Ref": "MoodboardKinesisreaderLambdaDataSourceServiceRole9D507FAC" - } - ] - } - }, - "MoodboardKinesisreaderLambdaDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "LambdaConfig": { - "LambdaFunctionArn": { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardKinesisReader-${env}", - { - "env": { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - } - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardKinesisReader" - } - ] - } - }, - "Name": "MoodboardKinesisreaderLambdaDataSource", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "MoodboardKinesisreaderLambdaDataSourceServiceRole9D507FAC", - "Arn" - ] - }, - "Type": "AWS_LAMBDA" - } - }, - "InvokeMoodboardKinesisreaderLambdaDataSourceInvokeMoodboardKinesisreaderLambdaDataSourceAppSyncFunction48095023": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "MoodboardKinesisreaderLambdaDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "InvokeMoodboardKinesisreaderLambdaDataSource", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/InvokeMoodboardKinesisreaderLambdaDataSource.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/InvokeMoodboardKinesisreaderLambdaDataSource.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "MoodboardKinesisreaderLambdaDataSource" - ] - }, - "QuerygetKinesisEventsResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "getKinesisEvents", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QueryGetRandomEmojiAuthFNQueryGetRandomEmojiAuthFNAppSyncFunction4A668110", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "InvokeMoodboardKinesisreaderLambdaDataSourceInvokeMoodboardKinesisreaderLambdaDataSourceAppSyncFunction48095023", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getKinesisEvents\"))\n{}\n## [End] Stash resolver specific context.. **", - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getKinesisEvents.res.vtl" - ] - ] - }, - "TypeName": "Query" - } - }, - "QueryGetRandomEmojiAuthFNQueryGetRandomEmojiAuthFNAppSyncFunction4A668110": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryGetRandomEmojiAuthFN", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getRandomEmoji.auth.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - } - }, - "Parameters": { - "referencetotransformerrootstackenv10C5A902Ref": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Type": "String" - } - } -} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-MoodItem-ZN79D5IWRDQL.description.txt b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-MoodItem-ZN79D5IWRDQL.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-MoodItem-ZN79D5IWRDQL.outputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-MoodItem-ZN79D5IWRDQL.outputs.json deleted file mode 100644 index 5da672c02cf..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-MoodItem-ZN79D5IWRDQL.outputs.json +++ /dev/null @@ -1,56 +0,0 @@ -[ - { - "OutputKey": "GetAttMoodItemTableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/MoodItem-vsozkn3hbzdjppzyf7xtf2f4sy-main/stream/2026-03-08T17:03:43.962", - "Description": "Your DynamoDB table StreamArn.", - "ExportName": "vsozkn3hbzdjppzyf7xtf2f4sy:GetAtt:MoodItemTable:StreamArn" - }, - { - "OutputKey": "GetAttMoodItemDataSourceName", - "OutputValue": "MoodItemTable", - "Description": "Your model DataSource name.", - "ExportName": "vsozkn3hbzdjppzyf7xtf2f4sy:GetAtt:MoodItemDataSource:Name" - }, - { - "OutputKey": "transformerrootstackMoodItemMoodItemTable5135EED9Ref", - "OutputValue": "MoodItem-vsozkn3hbzdjppzyf7xtf2f4sy-main" - }, - { - "OutputKey": "transformerrootstackMoodItemQuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunctionA2A15C1FFunctionId", - "OutputValue": "2b6kbyvzpfh6legcpe7qnmfnnq" - }, - { - "OutputKey": "transformerrootstackMoodItemSubscriptionOnCreateMoodItemDataResolverFnSubscriptionOnCreateMoodItemDataResolverFnAppSyncFunctionE0588344FunctionId", - "OutputValue": "npjglo5qrzgdtdu6vnutw7jyhi" - }, - { - "OutputKey": "transformerrootstackMoodItemMoodItemDataSource0777FF0CName", - "OutputValue": "MoodItemTable" - }, - { - "OutputKey": "transformerrootstackMoodItemMutationcreateMoodIteminit0FunctionMutationcreateMoodIteminit0FunctionAppSyncFunctionA7648B0CFunctionId", - "OutputValue": "tuqdbm3jabhd7ke7yobm2dkldu" - }, - { - "OutputKey": "transformerrootstackMoodItemMutationupdateMoodIteminit0FunctionMutationupdateMoodIteminit0FunctionAppSyncFunctionA5BB53A1FunctionId", - "OutputValue": "2yn7gzkgznd4bakw2hto3wxilm" - }, - { - "OutputKey": "transformerrootstackMoodItemQuerygetMoodItemauth0FunctionQuerygetMoodItemauth0FunctionAppSyncFunctionBB402264FunctionId", - "OutputValue": "jgql3pwqu5fzzblyk2xg3ttzdm" - }, - { - "OutputKey": "transformerrootstackMoodItemMutationcreateMoodItemauth0FunctionMutationcreateMoodItemauth0FunctionAppSyncFunction8743A884FunctionId", - "OutputValue": "w5xtplaf2bh77ewj5kmeenetw4" - }, - { - "OutputKey": "GetAttMoodItemTableName", - "OutputValue": "MoodItem-vsozkn3hbzdjppzyf7xtf2f4sy-main", - "Description": "Your DynamoDB table name.", - "ExportName": "vsozkn3hbzdjppzyf7xtf2f4sy:GetAtt:MoodItemTable:Name" - }, - { - "OutputKey": "transformerrootstackMoodItemSubscriptiononCreateMoodItemauth0FunctionSubscriptiononCreateMoodItemauth0FunctionAppSyncFunction643A2F06FunctionId", - "OutputValue": "r57v3miwtnb5vgvzvxpjs2ijyi" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-MoodItem-ZN79D5IWRDQL.parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-MoodItem-ZN79D5IWRDQL.parameters.json deleted file mode 100644 index ccfa0d6f99f..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-MoodItem-ZN79D5IWRDQL.parameters.json +++ /dev/null @@ -1,42 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", - "ParameterValue": "amplify-appsync-files/f7ab9fca95eecad3a59047fb5fd92dfef9d55ad4" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "false" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", - "ParameterValue": "vsozkn3hbzdjppzyf7xtf2f4sy" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", - "ParameterValue": "amplify-moodboard-main-1959a-deployment" - }, - { - "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", - "ParameterValue": "main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-MoodItem-ZN79D5IWRDQL.template.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-MoodItem-ZN79D5IWRDQL.template.json deleted file mode 100644 index 37f18b76389..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B-MoodItem-ZN79D5IWRDQL.template.json +++ /dev/null @@ -1,1616 +0,0 @@ -{ - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "referencetotransformerrootstackenv10C5A902Ref": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Type": "String" - } - }, - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - }, - "NONE" - ] - } - ] - }, - "ShouldUseServerSideEncryption": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "true" - ] - }, - "ShouldUsePayPerRequestBilling": { - "Fn::Equals": [ - { - "Ref": "DynamoDBBillingMode" - }, - "PAY_PER_REQUEST" - ] - }, - "ShouldUsePointInTimeRecovery": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "true" - ] - } - }, - "Resources": { - "MoodItemTable": { - "Type": "AWS::DynamoDB::Table", - "Properties": { - "AttributeDefinitions": [ - { - "AttributeName": "id", - "AttributeType": "S" - }, - { - "AttributeName": "boardID", - "AttributeType": "S" - } - ], - "BillingMode": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - "PAY_PER_REQUEST", - { - "Ref": "AWS::NoValue" - } - ] - }, - "GlobalSecondaryIndexes": [ - { - "IndexName": "byBoard", - "KeySchema": [ - { - "AttributeName": "boardID", - "KeyType": "HASH" - } - ], - "Projection": { - "ProjectionType": "ALL" - }, - "ProvisionedThroughput": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - { - "Ref": "AWS::NoValue" - }, - { - "ReadCapacityUnits": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "WriteCapacityUnits": { - "Ref": "DynamoDBModelTableWriteIOPS" - } - } - ] - } - } - ], - "KeySchema": [ - { - "AttributeName": "id", - "KeyType": "HASH" - } - ], - "PointInTimeRecoverySpecification": { - "Fn::If": [ - "ShouldUsePointInTimeRecovery", - { - "PointInTimeRecoveryEnabled": true - }, - { - "Ref": "AWS::NoValue" - } - ] - }, - "ProvisionedThroughput": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - { - "Ref": "AWS::NoValue" - }, - { - "ReadCapacityUnits": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "WriteCapacityUnits": { - "Ref": "DynamoDBModelTableWriteIOPS" - } - } - ] - }, - "SSESpecification": { - "SSEEnabled": { - "Fn::If": [ - "ShouldUseServerSideEncryption", - true, - false - ] - } - }, - "StreamSpecification": { - "StreamViewType": "NEW_AND_OLD_IMAGES" - }, - "TableName": { - "Fn::Join": [ - "", - [ - "MoodItem-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete" - }, - "MoodItemIAMRoleF26F66C1": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:DeleteItem", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:Query", - "dynamodb:UpdateItem", - "dynamodb:ConditionCheckItem", - "dynamodb:DescribeTable", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", - { - "tablename": { - "Fn::Join": [ - "", - [ - "MoodItem-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - ] - }, - { - "Fn::Sub": [ - "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", - { - "tablename": { - "Fn::Join": [ - "", - [ - "MoodItem-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "DynamoDBAccess" - } - ], - "RoleName": { - "Fn::Join": [ - "", - [ - "MoodItemIAMRoleceb4fa-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - }, - "MoodItemIAMRoleDefaultPolicyC757A82D": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator", - "dynamodb:Query", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:ConditionCheckItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:UpdateItem", - "dynamodb:DeleteItem", - "dynamodb:DescribeTable" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "MoodItemTable", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "MoodItemTable", - "Arn" - ] - }, - "/index/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "MoodItemIAMRoleDefaultPolicyC757A82D", - "Roles": [ - { - "Ref": "MoodItemIAMRoleF26F66C1" - } - ] - } - }, - "MoodItemDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DynamoDBConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "TableName": { - "Ref": "MoodItemTable" - } - }, - "Name": "MoodItemTable", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "MoodItemIAMRoleF26F66C1", - "Arn" - ] - }, - "Type": "AMAZON_DYNAMODB" - }, - "DependsOn": [ - "MoodItemIAMRoleF26F66C1" - ] - }, - "QuerygetMoodItemauth0FunctionQuerygetMoodItemauth0FunctionAppSyncFunctionCAE48F92": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetMoodItemauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getMoodItem.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "QuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunction58B7D6AA": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetMoodItempostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getMoodItem.postAuth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "QueryGetMoodItemDataResolverFnQueryGetMoodItemDataResolverFnAppSyncFunction0BCF2013": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "MoodItemDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryGetMoodItemDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getMoodItem.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getMoodItem.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "MoodItemDataSource" - ] - }, - "GetMoodItemResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "getMoodItem", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerygetMoodItemauth0FunctionQuerygetMoodItemauth0FunctionAppSyncFunctionCAE48F92", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunction58B7D6AA", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryGetMoodItemDataResolverFnQueryGetMoodItemDataResolverFnAppSyncFunction0BCF2013", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getMoodItem\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "MoodItemTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:a39e734d-ac34-43c7-8303-67512f010f0d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - } - }, - "QueryListMoodItemsDataResolverFnQueryListMoodItemsDataResolverFnAppSyncFunction970FB8D0": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "MoodItemDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryListMoodItemsDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.listMoodItems.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.listMoodItems.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "MoodItemDataSource" - ] - }, - "ListMoodItemResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "listMoodItems", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerygetMoodItemauth0FunctionQuerygetMoodItemauth0FunctionAppSyncFunctionCAE48F92", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunction58B7D6AA", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryListMoodItemsDataResolverFnQueryListMoodItemsDataResolverFnAppSyncFunction970FB8D0", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listMoodItems\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "MoodItemTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:a39e734d-ac34-43c7-8303-67512f010f0d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - } - }, - "MutationcreateMoodIteminit0FunctionMutationcreateMoodIteminit0FunctionAppSyncFunction0FB01D04": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateMoodIteminit0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createMoodItem.init.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "MutationcreateMoodItemauth0FunctionMutationcreateMoodItemauth0FunctionAppSyncFunction27CBB022": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateMoodItemauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createMoodItem.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "MutationCreateMoodItemDataResolverFnMutationCreateMoodItemDataResolverFnAppSyncFunction050303E2": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "MoodItemDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationCreateMoodItemDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createMoodItem.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createMoodItem.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "MoodItemDataSource" - ] - }, - "CreateMoodItemResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "createMoodItem", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationcreateMoodIteminit0FunctionMutationcreateMoodIteminit0FunctionAppSyncFunction0FB01D04", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationcreateMoodItemauth0FunctionMutationcreateMoodItemauth0FunctionAppSyncFunction27CBB022", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunction58B7D6AA", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationCreateMoodItemDataResolverFnMutationCreateMoodItemDataResolverFnAppSyncFunction050303E2", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createMoodItem\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "MoodItemTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:a39e734d-ac34-43c7-8303-67512f010f0d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "MutationupdateMoodIteminit0FunctionMutationupdateMoodIteminit0FunctionAppSyncFunctionF04BFE8B": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateMoodIteminit0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateMoodItem.init.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "MutationupdateMoodItemauth0FunctionMutationupdateMoodItemauth0FunctionAppSyncFunctionD40CC9A2": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "MoodItemDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateMoodItemauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateMoodItem.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateMoodItem.auth.1.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "MoodItemDataSource" - ] - }, - "MutationUpdateMoodItemDataResolverFnMutationUpdateMoodItemDataResolverFnAppSyncFunction3EC4BB9B": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "MoodItemDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationUpdateMoodItemDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateMoodItem.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateMoodItem.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "MoodItemDataSource" - ] - }, - "UpdateMoodItemResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "updateMoodItem", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationupdateMoodIteminit0FunctionMutationupdateMoodIteminit0FunctionAppSyncFunctionF04BFE8B", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationupdateMoodItemauth0FunctionMutationupdateMoodItemauth0FunctionAppSyncFunctionD40CC9A2", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunction58B7D6AA", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationUpdateMoodItemDataResolverFnMutationUpdateMoodItemDataResolverFnAppSyncFunction3EC4BB9B", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateMoodItem\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "MoodItemTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:a39e734d-ac34-43c7-8303-67512f010f0d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "MutationdeleteMoodItemauth0FunctionMutationdeleteMoodItemauth0FunctionAppSyncFunction959662BA": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "MoodItemDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeleteMoodItemauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteMoodItem.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteMoodItem.auth.1.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "MoodItemDataSource" - ] - }, - "MutationDeleteMoodItemDataResolverFnMutationDeleteMoodItemDataResolverFnAppSyncFunction06493368": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "MoodItemDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationDeleteMoodItemDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteMoodItem.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteMoodItem.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "MoodItemDataSource" - ] - }, - "DeleteMoodItemResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "deleteMoodItem", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationdeleteMoodItemauth0FunctionMutationdeleteMoodItemauth0FunctionAppSyncFunction959662BA", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunction58B7D6AA", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationDeleteMoodItemDataResolverFnMutationDeleteMoodItemDataResolverFnAppSyncFunction06493368", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteMoodItem\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "MoodItemTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:a39e734d-ac34-43c7-8303-67512f010f0d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "SubscriptiononCreateMoodItemauth0FunctionSubscriptiononCreateMoodItemauth0FunctionAppSyncFunctionA9BF5E3B": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononCreateMoodItemauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Subscription.onCreateMoodItem.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "SubscriptionOnCreateMoodItemDataResolverFnSubscriptionOnCreateMoodItemDataResolverFnAppSyncFunction913B4EC5": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnCreateMoodItemDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Subscription.onCreateMoodItem.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Subscription.onCreateMoodItem.res.vtl" - ] - ] - } - } - }, - "SubscriptiononCreateMoodItemResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onCreateMoodItem", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononCreateMoodItemauth0FunctionSubscriptiononCreateMoodItemauth0FunctionAppSyncFunctionA9BF5E3B", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunction58B7D6AA", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnCreateMoodItemDataResolverFnSubscriptionOnCreateMoodItemDataResolverFnAppSyncFunction913B4EC5", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateMoodItem\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:a39e734d-ac34-43c7-8303-67512f010f0d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - }, - "SubscriptiononUpdateMoodItemResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onUpdateMoodItem", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononCreateMoodItemauth0FunctionSubscriptiononCreateMoodItemauth0FunctionAppSyncFunctionA9BF5E3B", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunction58B7D6AA", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnCreateMoodItemDataResolverFnSubscriptionOnCreateMoodItemDataResolverFnAppSyncFunction913B4EC5", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateMoodItem\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:a39e734d-ac34-43c7-8303-67512f010f0d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - }, - "SubscriptiononDeleteMoodItemResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onDeleteMoodItem", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononCreateMoodItemauth0FunctionSubscriptiononCreateMoodItemauth0FunctionAppSyncFunctionA9BF5E3B", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunction58B7D6AA", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnCreateMoodItemDataResolverFnSubscriptionOnCreateMoodItemDataResolverFnAppSyncFunction913B4EC5", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteMoodItem\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:a39e734d-ac34-43c7-8303-67512f010f0d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - }, - "QueryMoodItemsByBoardIDDataResolverFnQueryMoodItemsByBoardIDDataResolverFnAppSyncFunction6B85D371": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "MoodItemDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryMoodItemsByBoardIDDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.moodItemsByBoardID.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.moodItemsByBoardID.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "MoodItemDataSource" - ] - }, - "QuerymoodItemsByBoardIDResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "moodItemsByBoardID", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerygetMoodItemauth0FunctionQuerygetMoodItemauth0FunctionAppSyncFunctionCAE48F92", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunction58B7D6AA", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryMoodItemsByBoardIDDataResolverFnQueryMoodItemsByBoardIDDataResolverFnAppSyncFunction6B85D371", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"moodItemsByBoardID\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "MoodItemTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:a39e734d-ac34-43c7-8303-67512f010f0d\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - } - } - }, - "Outputs": { - "GetAttMoodItemTableStreamArn": { - "Description": "Your DynamoDB table StreamArn.", - "Value": { - "Fn::GetAtt": [ - "MoodItemTable", - "StreamArn" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:MoodItemTable:StreamArn" - ] - ] - } - } - }, - "GetAttMoodItemTableName": { - "Description": "Your DynamoDB table name.", - "Value": { - "Ref": "MoodItemTable" - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:MoodItemTable:Name" - ] - ] - } - } - }, - "GetAttMoodItemDataSourceName": { - "Description": "Your model DataSource name.", - "Value": { - "Fn::GetAtt": [ - "MoodItemDataSource", - "Name" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:MoodItemDataSource:Name" - ] - ] - } - } - }, - "transformerrootstackMoodItemQuerygetMoodItemauth0FunctionQuerygetMoodItemauth0FunctionAppSyncFunctionBB402264FunctionId": { - "Value": { - "Fn::GetAtt": [ - "QuerygetMoodItemauth0FunctionQuerygetMoodItemauth0FunctionAppSyncFunctionCAE48F92", - "FunctionId" - ] - } - }, - "transformerrootstackMoodItemQuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunctionA2A15C1FFunctionId": { - "Value": { - "Fn::GetAtt": [ - "QuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunction58B7D6AA", - "FunctionId" - ] - } - }, - "transformerrootstackMoodItemMutationcreateMoodIteminit0FunctionMutationcreateMoodIteminit0FunctionAppSyncFunctionA7648B0CFunctionId": { - "Value": { - "Fn::GetAtt": [ - "MutationcreateMoodIteminit0FunctionMutationcreateMoodIteminit0FunctionAppSyncFunction0FB01D04", - "FunctionId" - ] - } - }, - "transformerrootstackMoodItemMutationcreateMoodItemauth0FunctionMutationcreateMoodItemauth0FunctionAppSyncFunction8743A884FunctionId": { - "Value": { - "Fn::GetAtt": [ - "MutationcreateMoodItemauth0FunctionMutationcreateMoodItemauth0FunctionAppSyncFunction27CBB022", - "FunctionId" - ] - } - }, - "transformerrootstackMoodItemMutationupdateMoodIteminit0FunctionMutationupdateMoodIteminit0FunctionAppSyncFunctionA5BB53A1FunctionId": { - "Value": { - "Fn::GetAtt": [ - "MutationupdateMoodIteminit0FunctionMutationupdateMoodIteminit0FunctionAppSyncFunctionF04BFE8B", - "FunctionId" - ] - } - }, - "transformerrootstackMoodItemSubscriptiononCreateMoodItemauth0FunctionSubscriptiononCreateMoodItemauth0FunctionAppSyncFunction643A2F06FunctionId": { - "Value": { - "Fn::GetAtt": [ - "SubscriptiononCreateMoodItemauth0FunctionSubscriptiononCreateMoodItemauth0FunctionAppSyncFunctionA9BF5E3B", - "FunctionId" - ] - } - }, - "transformerrootstackMoodItemSubscriptionOnCreateMoodItemDataResolverFnSubscriptionOnCreateMoodItemDataResolverFnAppSyncFunctionE0588344FunctionId": { - "Value": { - "Fn::GetAtt": [ - "SubscriptionOnCreateMoodItemDataResolverFnSubscriptionOnCreateMoodItemDataResolverFnAppSyncFunction913B4EC5", - "FunctionId" - ] - } - }, - "transformerrootstackMoodItemMoodItemDataSource0777FF0CName": { - "Value": { - "Fn::GetAtt": [ - "MoodItemDataSource", - "Name" - ] - } - }, - "transformerrootstackMoodItemMoodItemTable5135EED9Ref": { - "Value": { - "Ref": "MoodItemTable" - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B.description.txt b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B.outputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B.outputs.json deleted file mode 100644 index 9400be056a2..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B.outputs.json +++ /dev/null @@ -1,20 +0,0 @@ -[ - { - "OutputKey": "GraphQLAPIIdOutput", - "OutputValue": "vsozkn3hbzdjppzyf7xtf2f4sy", - "Description": "Your GraphQL API ID.", - "ExportName": "amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B:GraphQLApiId" - }, - { - "OutputKey": "GraphQLAPIEndpointOutput", - "OutputValue": "https://5wsaacr225fc7hv4ajdtxbwo24.appsync-api.us-east-1.amazonaws.com/graphql", - "Description": "Your GraphQL API endpoint.", - "ExportName": "amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B:GraphQLApiEndpoint" - }, - { - "OutputKey": "GraphQLAPIKeyOutput", - "OutputValue": "da2-fakeapikey00000000000000", - "Description": "Your GraphQL API ID.", - "ExportName": "amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B:GraphQLApiKey" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B.parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B.parameters.json deleted file mode 100644 index 016ba16d867..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B.parameters.json +++ /dev/null @@ -1,42 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "false" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "S3DeploymentBucket", - "ParameterValue": "amplify-moodboard-main-1959a-deployment" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "S3DeploymentRootKey", - "ParameterValue": "amplify-appsync-files/f7ab9fca95eecad3a59047fb5fd92dfef9d55ad4" - }, - { - "ParameterKey": "AppSyncApiName", - "ParameterValue": "moodboard" - }, - { - "ParameterKey": "AuthCognitoUserPoolId", - "ParameterValue": "us-east-1_Cwvqs93Nc" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B.template.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B.template.json deleted file mode 100644 index 23cb42d700b..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-apimoodboard-18X5SE6E7DN8B.template.json +++ /dev/null @@ -1,574 +0,0 @@ -{ - "Parameters": { - "env": { - "Type": "String", - "Default": "NONE" - }, - "AppSyncApiName": { - "Type": "String", - "Default": "AppSyncSimpleTransform" - }, - "AuthCognitoUserPoolId": { - "Type": "String" - }, - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "S3DeploymentBucket": { - "Type": "String", - "Description": "An S3 Bucket name where assets are deployed" - }, - "S3DeploymentRootKey": { - "Type": "String", - "Description": "An S3 key relative to the S3DeploymentBucket that points to the root of the deployment directory." - } - }, - "Resources": { - "GraphQLAPI": { - "Type": "AWS::AppSync::GraphQLApi", - "Properties": { - "AdditionalAuthenticationProviders": [ - { - "AuthenticationType": "AMAZON_COGNITO_USER_POOLS", - "UserPoolConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "UserPoolId": { - "Ref": "AuthCognitoUserPoolId" - } - } - } - ], - "AuthenticationType": "API_KEY", - "Name": { - "Fn::Join": [ - "", - [ - { - "Ref": "AppSyncApiName" - }, - "-", - { - "Ref": "env" - } - ] - ] - } - } - }, - "GraphQLAPITransformerSchema3CB2AE18": { - "Type": "AWS::AppSync::GraphQLSchema", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "DefinitionS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/schema.graphql" - ] - ] - } - } - }, - "GraphQLAPIDefaultApiKey215A6DD7": { - "Type": "AWS::AppSync::ApiKey", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "Description": "moodBoard API Key", - "Expires": 1804527418 - } - }, - "GraphQLAPINONEDS95A13CF0": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "Name": "NONE_DS", - "Type": "NONE" - } - }, - "MoodItem": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "DynamoDBModelTableWriteIOPS": { - "Ref": "DynamoDBModelTableWriteIOPS" - }, - "DynamoDBBillingMode": { - "Ref": "DynamoDBBillingMode" - }, - "DynamoDBEnablePointInTimeRecovery": { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "DynamoDBEnableServerSideEncryption": { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "referencetotransformerrootstackenv10C5A902Ref": { - "Ref": "env" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Ref": "S3DeploymentBucket" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Ref": "S3DeploymentRootKey" - } - }, - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/stacks/MoodItem.json" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "Board": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "DynamoDBModelTableWriteIOPS": { - "Ref": "DynamoDBModelTableWriteIOPS" - }, - "DynamoDBBillingMode": { - "Ref": "DynamoDBBillingMode" - }, - "DynamoDBEnablePointInTimeRecovery": { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "DynamoDBEnableServerSideEncryption": { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "referencetotransformerrootstackenv10C5A902Ref": { - "Ref": "env" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Ref": "S3DeploymentBucket" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Ref": "S3DeploymentRootKey" - }, - "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemQuerygetMoodItemauth0FunctionQuerygetMoodItemauth0FunctionAppSyncFunctionBB402264FunctionId": { - "Fn::GetAtt": [ - "MoodItem", - "Outputs.transformerrootstackMoodItemQuerygetMoodItemauth0FunctionQuerygetMoodItemauth0FunctionAppSyncFunctionBB402264FunctionId" - ] - }, - "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemQuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunctionA2A15C1FFunctionId": { - "Fn::GetAtt": [ - "MoodItem", - "Outputs.transformerrootstackMoodItemQuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunctionA2A15C1FFunctionId" - ] - }, - "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemMutationcreateMoodIteminit0FunctionMutationcreateMoodIteminit0FunctionAppSyncFunctionA7648B0CFunctionId": { - "Fn::GetAtt": [ - "MoodItem", - "Outputs.transformerrootstackMoodItemMutationcreateMoodIteminit0FunctionMutationcreateMoodIteminit0FunctionAppSyncFunctionA7648B0CFunctionId" - ] - }, - "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemMutationcreateMoodItemauth0FunctionMutationcreateMoodItemauth0FunctionAppSyncFunction8743A884FunctionId": { - "Fn::GetAtt": [ - "MoodItem", - "Outputs.transformerrootstackMoodItemMutationcreateMoodItemauth0FunctionMutationcreateMoodItemauth0FunctionAppSyncFunction8743A884FunctionId" - ] - }, - "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemMutationupdateMoodIteminit0FunctionMutationupdateMoodIteminit0FunctionAppSyncFunctionA5BB53A1FunctionId": { - "Fn::GetAtt": [ - "MoodItem", - "Outputs.transformerrootstackMoodItemMutationupdateMoodIteminit0FunctionMutationupdateMoodIteminit0FunctionAppSyncFunctionA5BB53A1FunctionId" - ] - }, - "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemSubscriptiononCreateMoodItemauth0FunctionSubscriptiononCreateMoodItemauth0FunctionAppSyncFunction643A2F06FunctionId": { - "Fn::GetAtt": [ - "MoodItem", - "Outputs.transformerrootstackMoodItemSubscriptiononCreateMoodItemauth0FunctionSubscriptiononCreateMoodItemauth0FunctionAppSyncFunction643A2F06FunctionId" - ] - }, - "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemSubscriptionOnCreateMoodItemDataResolverFnSubscriptionOnCreateMoodItemDataResolverFnAppSyncFunctionE0588344FunctionId": { - "Fn::GetAtt": [ - "MoodItem", - "Outputs.transformerrootstackMoodItemSubscriptionOnCreateMoodItemDataResolverFnSubscriptionOnCreateMoodItemDataResolverFnAppSyncFunctionE0588344FunctionId" - ] - } - }, - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/stacks/Board.json" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "FunctionDirectiveStack": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetotransformerrootstackenv10C5A902Ref": { - "Ref": "env" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Ref": "S3DeploymentBucket" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Ref": "S3DeploymentRootKey" - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - } - }, - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/stacks/FunctionDirectiveStack.json" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "ConnectionStack": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Ref": "S3DeploymentBucket" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Ref": "S3DeploymentRootKey" - }, - "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemMoodItemDataSource0777FF0CName": { - "Fn::GetAtt": [ - "MoodItem", - "Outputs.transformerrootstackMoodItemMoodItemDataSource0777FF0CName" - ] - }, - "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemMoodItemTable5135EED9Ref": { - "Fn::GetAtt": [ - "MoodItem", - "Outputs.transformerrootstackMoodItemMoodItemTable5135EED9Ref" - ] - }, - "referencetotransformerrootstackBoardNestedStackBoardNestedStackResource9E449E87OutputstransformerrootstackBoardBoardDataSource99BFC69FName": { - "Fn::GetAtt": [ - "Board", - "Outputs.transformerrootstackBoardBoardDataSource99BFC69FName" - ] - }, - "referencetotransformerrootstackBoardNestedStackBoardNestedStackResource9E449E87OutputstransformerrootstackBoardBoardTable30788E07Ref": { - "Fn::GetAtt": [ - "Board", - "Outputs.transformerrootstackBoardBoardTable30788E07Ref" - ] - } - }, - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/stacks/ConnectionStack.json" - ] - ] - } - }, - "DependsOn": [ - "Board", - "GraphQLAPITransformerSchema3CB2AE18", - "MoodItem" - ] - }, - "CustomResourcesjson": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "AppSyncApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "AppSyncApiName": { - "Ref": "AppSyncApiName" - }, - "env": { - "Ref": "env" - }, - "S3DeploymentBucket": { - "Ref": "S3DeploymentBucket" - }, - "S3DeploymentRootKey": { - "Ref": "S3DeploymentRootKey" - } - }, - "TemplateURL": { - "Fn::Join": [ - "/", - [ - "https://s3.amazonaws.com", - { - "Ref": "S3DeploymentBucket" - }, - { - "Ref": "S3DeploymentRootKey" - }, - "stacks", - "CustomResources.json" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPI", - "GraphQLAPITransformerSchema3CB2AE18", - "MoodItem", - "Board", - "FunctionDirectiveStack", - "ConnectionStack" - ] - } - }, - "Outputs": { - "GraphQLAPIKeyOutput": { - "Description": "Your GraphQL API ID.", - "Value": { - "Fn::GetAtt": [ - "GraphQLAPIDefaultApiKey215A6DD7", - "ApiKey" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "AWS::StackName" - }, - "GraphQLApiKey" - ] - ] - } - } - }, - "GraphQLAPIIdOutput": { - "Description": "Your GraphQL API ID.", - "Value": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "AWS::StackName" - }, - "GraphQLApiId" - ] - ] - } - } - }, - "GraphQLAPIEndpointOutput": { - "Description": "Your GraphQL API endpoint.", - "Value": { - "Fn::GetAtt": [ - "GraphQLAPI", - "GraphQLUrl" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "AWS::StackName" - }, - "GraphQLApiEndpoint" - ] - ] - } - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.description.txt b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.description.txt deleted file mode 100644 index 28ba956271c..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"auth-Cognito","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.outputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.outputs.json deleted file mode 100644 index bf417644908..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.outputs.json +++ /dev/null @@ -1,35 +0,0 @@ -[ - { - "OutputKey": "UserPoolId", - "OutputValue": "us-east-1_Cwvqs93Nc", - "Description": "Id for the user pool" - }, - { - "OutputKey": "AppClientIDWeb", - "OutputValue": "5t2df7ru217mr5ar6r44r61uqg", - "Description": "The user pool app client id for web" - }, - { - "OutputKey": "AppClientID", - "OutputValue": "1ssdipb0d8rfa77rq3o7u8t16c", - "Description": "The user pool app client id" - }, - { - "OutputKey": "IdentityPoolId", - "OutputValue": "us-east-1:a39e734d-ac34-43c7-8303-67512f010f0d", - "Description": "Id for the identity pool" - }, - { - "OutputKey": "UserPoolArn", - "OutputValue": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_Cwvqs93Nc", - "Description": "Arn for the user pool" - }, - { - "OutputKey": "IdentityPoolName", - "OutputValue": "moodboard759ae00a_identitypool_759ae00a__main" - }, - { - "OutputKey": "UserPoolName", - "OutputValue": "moodboard759ae00a_userpool_759ae00a" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.parameters.json deleted file mode 100644 index b142d1a5f45..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.parameters.json +++ /dev/null @@ -1,146 +0,0 @@ -[ - { - "ParameterKey": "usernameAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "authRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-moodboard-main-1959a-authRole" - }, - { - "ParameterKey": "autoVerifiedAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "allowUnauthenticatedIdentities", - "ParameterValue": "true" - }, - { - "ParameterKey": "smsVerificationMessage", - "ParameterValue": "Your verification code is {####}" - }, - { - "ParameterKey": "userpoolClientReadAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "breakCircularDependency", - "ParameterValue": "true" - }, - { - "ParameterKey": "mfaTypes", - "ParameterValue": "SMS Text Message" - }, - { - "ParameterKey": "emailVerificationSubject", - "ParameterValue": "Your verification code" - }, - { - "ParameterKey": "sharedId", - "ParameterValue": "759ae00a" - }, - { - "ParameterKey": "useDefault", - "ParameterValue": "default" - }, - { - "ParameterKey": "userpoolClientGenerateSecret", - "ParameterValue": "false" - }, - { - "ParameterKey": "mfaConfiguration", - "ParameterValue": "OFF" - }, - { - "ParameterKey": "identityPoolName", - "ParameterValue": "moodboard759ae00a_identitypool_759ae00a" - }, - { - "ParameterKey": "userPoolGroupList", - "ParameterValue": "" - }, - { - "ParameterKey": "authSelections", - "ParameterValue": "identityPoolAndUserPool" - }, - { - "ParameterKey": "resourceNameTruncated", - "ParameterValue": "moodbo759ae00a" - }, - { - "ParameterKey": "smsAuthenticationMessage", - "ParameterValue": "Your authentication code is {####}" - }, - { - "ParameterKey": "passwordPolicyMinLength", - "ParameterValue": "8" - }, - { - "ParameterKey": "userPoolName", - "ParameterValue": "moodboard759ae00a_userpool_759ae00a" - }, - { - "ParameterKey": "userpoolClientWriteAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "dependsOn", - "ParameterValue": "" - }, - { - "ParameterKey": "useEnabledMfas", - "ParameterValue": "true" - }, - { - "ParameterKey": "usernameCaseSensitive", - "ParameterValue": "false" - }, - { - "ParameterKey": "resourceName", - "ParameterValue": "moodboard759ae00a" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "serviceName", - "ParameterValue": "Cognito" - }, - { - "ParameterKey": "emailVerificationMessage", - "ParameterValue": "Your verification code is {####}" - }, - { - "ParameterKey": "userpoolClientRefreshTokenValidity", - "ParameterValue": "30" - }, - { - "ParameterKey": "userpoolClientSetAttributes", - "ParameterValue": "false" - }, - { - "ParameterKey": "unauthRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-moodboard-main-1959a-unauthRole" - }, - { - "ParameterKey": "requiredAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "passwordPolicyCharacters", - "ParameterValue": "" - }, - { - "ParameterKey": "aliasAttributes", - "ParameterValue": "" - }, - { - "ParameterKey": "userpoolClientLambdaRole", - "ParameterValue": "moodbo759ae00a_userpoolclient_lambda_role" - }, - { - "ParameterKey": "defaultPasswordPolicy", - "ParameterValue": "false" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.template.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.template.json deleted file mode 100644 index 379d6603fdd..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-authmoodboard759ae00a-55VYEATUY8WM.template.json +++ /dev/null @@ -1,413 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "env": { - "Type": "String" - }, - "identityPoolName": { - "Type": "String" - }, - "allowUnauthenticatedIdentities": { - "Type": "String" - }, - "resourceNameTruncated": { - "Type": "String" - }, - "userPoolName": { - "Type": "String" - }, - "autoVerifiedAttributes": { - "Type": "CommaDelimitedList" - }, - "mfaConfiguration": { - "Type": "String" - }, - "mfaTypes": { - "Type": "CommaDelimitedList" - }, - "smsAuthenticationMessage": { - "Type": "String" - }, - "smsVerificationMessage": { - "Type": "String" - }, - "emailVerificationSubject": { - "Type": "String" - }, - "emailVerificationMessage": { - "Type": "String" - }, - "defaultPasswordPolicy": { - "Type": "String" - }, - "passwordPolicyMinLength": { - "Type": "String" - }, - "passwordPolicyCharacters": { - "Type": "CommaDelimitedList" - }, - "requiredAttributes": { - "Type": "CommaDelimitedList" - }, - "aliasAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientGenerateSecret": { - "Type": "String" - }, - "userpoolClientRefreshTokenValidity": { - "Type": "String" - }, - "userpoolClientWriteAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientReadAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientLambdaRole": { - "Type": "String" - }, - "userpoolClientSetAttributes": { - "Type": "String" - }, - "sharedId": { - "Type": "String" - }, - "resourceName": { - "Type": "String" - }, - "authSelections": { - "Type": "String" - }, - "useDefault": { - "Type": "String" - }, - "usernameAttributes": { - "Type": "CommaDelimitedList" - }, - "userPoolGroupList": { - "Type": "CommaDelimitedList" - }, - "serviceName": { - "Type": "String" - }, - "usernameCaseSensitive": { - "Type": "String" - }, - "useEnabledMfas": { - "Type": "String" - }, - "authRoleArn": { - "Type": "String" - }, - "unauthRoleArn": { - "Type": "String" - }, - "breakCircularDependency": { - "Type": "String" - }, - "dependsOn": { - "Type": "CommaDelimitedList" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - }, - "Resources": { - "UserPool": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": { - "Ref": "emailVerificationMessage" - }, - "EmailVerificationSubject": { - "Ref": "emailVerificationSubject" - }, - "MfaConfiguration": { - "Ref": "mfaConfiguration" - }, - "Policies": { - "PasswordPolicy": { - "MinimumLength": { - "Ref": "passwordPolicyMinLength" - }, - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "userPoolName" - }, - { - "Fn::Join": [ - "", - [ - { - "Ref": "userPoolName" - }, - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "UsernameAttributes": { - "Ref": "usernameAttributes" - }, - "UsernameConfiguration": { - "CaseSensitive": false - } - } - }, - "UserPoolClientWeb": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "moodbo759ae00a_app_clientWeb", - "RefreshTokenValidity": { - "Ref": "userpoolClientRefreshTokenValidity" - }, - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": { - "Ref": "UserPool" - } - }, - "DependsOn": [ - "UserPool" - ] - }, - "UserPoolClient": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "moodbo759ae00a_app_client", - "GenerateSecret": { - "Ref": "userpoolClientGenerateSecret" - }, - "RefreshTokenValidity": { - "Ref": "userpoolClientRefreshTokenValidity" - }, - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": { - "Ref": "UserPool" - } - }, - "DependsOn": [ - "UserPool" - ] - }, - "UserPoolClientRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - }, - "Action": "sts:AssumeRole" - } - ] - }, - "RoleName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "userpoolClientLambdaRole" - }, - { - "Fn::Join": [ - "", - [ - "upClientLambdaRole759ae00a", - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - { - "Ref": "AWS::StackName" - } - ] - } - ] - }, - "-", - { - "Ref": "env" - } - ] - ] - } - ] - } - } - }, - "IdentityPool": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": { - "Ref": "allowUnauthenticatedIdentities" - }, - "CognitoIdentityProviders": [ - { - "ClientId": { - "Ref": "UserPoolClient" - }, - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": { - "Ref": "UserPool" - } - } - ] - } - }, - { - "ClientId": { - "Ref": "UserPoolClientWeb" - }, - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": { - "Ref": "UserPool" - } - } - ] - } - } - ], - "IdentityPoolName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "moodboard759ae00a_identitypool_759ae00a", - { - "Fn::Join": [ - "", - [ - "moodboard759ae00a_identitypool_759ae00a__", - { - "Ref": "env" - } - ] - ] - } - ] - } - } - }, - "IdentityPoolRoleMap": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": { - "Ref": "IdentityPool" - }, - "Roles": { - "unauthenticated": { - "Ref": "unauthRoleArn" - }, - "authenticated": { - "Ref": "authRoleArn" - } - } - }, - "DependsOn": [ - "IdentityPool" - ] - } - }, - "Outputs": { - "IdentityPoolId": { - "Description": "Id for the identity pool", - "Value": { - "Ref": "IdentityPool" - } - }, - "IdentityPoolName": { - "Value": { - "Fn::GetAtt": [ - "IdentityPool", - "Name" - ] - } - }, - "UserPoolId": { - "Description": "Id for the user pool", - "Value": { - "Ref": "UserPool" - } - }, - "UserPoolArn": { - "Description": "Arn for the user pool", - "Value": { - "Fn::GetAtt": [ - "UserPool", - "Arn" - ] - } - }, - "UserPoolName": { - "Value": { - "Ref": "userPoolName" - } - }, - "AppClientIDWeb": { - "Description": "The user pool app client id for web", - "Value": { - "Ref": "UserPoolClientWeb" - } - }, - "AppClientID": { - "Description": "The user pool app client id", - "Value": { - "Ref": "UserPoolClient" - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-functionmoodboardGetRandomEmoji-1QSGIKKXB1CYL.description.txt b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-functionmoodboardGetRandomEmoji-1QSGIKKXB1CYL.description.txt deleted file mode 100644 index 445081e4df1..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-functionmoodboardGetRandomEmoji-1QSGIKKXB1CYL.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"function-Lambda","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-functionmoodboardGetRandomEmoji-1QSGIKKXB1CYL.outputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-functionmoodboardGetRandomEmoji-1QSGIKKXB1CYL.outputs.json deleted file mode 100644 index bc34f7cef40..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-functionmoodboardGetRandomEmoji-1QSGIKKXB1CYL.outputs.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "OutputKey": "LambdaExecutionRoleArn", - "OutputValue": "arn:aws:iam::123456789012:role/moodboardLambdaRolef849b419-main" - }, - { - "OutputKey": "Region", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "Arn", - "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:moodboardGetRandomEmoji-main" - }, - { - "OutputKey": "Name", - "OutputValue": "moodboardGetRandomEmoji-main" - }, - { - "OutputKey": "LambdaExecutionRole", - "OutputValue": "moodboardLambdaRolef849b419-main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-functionmoodboardGetRandomEmoji-1QSGIKKXB1CYL.parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-functionmoodboardGetRandomEmoji-1QSGIKKXB1CYL.parameters.json deleted file mode 100644 index af960bf018f..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-functionmoodboardGetRandomEmoji-1QSGIKKXB1CYL.parameters.json +++ /dev/null @@ -1,18 +0,0 @@ -[ - { - "ParameterKey": "CloudWatchRule", - "ParameterValue": "NONE" - }, - { - "ParameterKey": "s3Key", - "ParameterValue": "amplify-builds/moodboardGetRandomEmoji-59616d4f4b546a305a75-build.zip" - }, - { - "ParameterKey": "deploymentBucketName", - "ParameterValue": "amplify-moodboard-main-1959a-deployment" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-functionmoodboardGetRandomEmoji-1QSGIKKXB1CYL.template.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-functionmoodboardGetRandomEmoji-1QSGIKKXB1CYL.template.json deleted file mode 100644 index f23f65bc8fb..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-functionmoodboardGetRandomEmoji-1QSGIKKXB1CYL.template.json +++ /dev/null @@ -1,202 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "Parameters": { - "CloudWatchRule": { - "Type": "String", - "Default": "NONE", - "Description": " Schedule Expression" - }, - "deploymentBucketName": { - "Type": "String" - }, - "env": { - "Type": "String" - }, - "s3Key": { - "Type": "String" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - }, - "Resources": { - "LambdaFunction": { - "Type": "AWS::Lambda::Function", - "Metadata": { - "aws:asset:path": "./src", - "aws:asset:property": "Code" - }, - "Properties": { - "Code": { - "S3Bucket": { - "Ref": "deploymentBucketName" - }, - "S3Key": { - "Ref": "s3Key" - } - }, - "Handler": "index.handler", - "FunctionName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "moodboardGetRandomEmoji", - { - "Fn::Join": [ - "", - [ - "moodboardGetRandomEmoji", - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "Environment": { - "Variables": { - "ENV": { - "Ref": "env" - }, - "REGION": { - "Ref": "AWS::Region" - } - } - }, - "Role": { - "Fn::GetAtt": [ - "LambdaExecutionRole", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Layers": [], - "Timeout": 25 - } - }, - "LambdaExecutionRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "RoleName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "moodboardLambdaRolef849b419", - { - "Fn::Join": [ - "", - [ - "moodboardLambdaRolef849b419", - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": [ - "lambda.amazonaws.com" - ] - }, - "Action": [ - "sts:AssumeRole" - ] - } - ] - } - } - }, - "lambdaexecutionpolicy": { - "DependsOn": [ - "LambdaExecutionRole" - ], - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyName": "lambda-execution-policy", - "Roles": [ - { - "Ref": "LambdaExecutionRole" - } - ], - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "logs:CreateLogGroup", - "logs:CreateLogStream", - "logs:PutLogEvents" - ], - "Resource": { - "Fn::Sub": [ - "arn:aws:logs:${region}:${account}:log-group:/aws/lambda/${lambda}:log-stream:*", - { - "region": { - "Ref": "AWS::Region" - }, - "account": { - "Ref": "AWS::AccountId" - }, - "lambda": { - "Ref": "LambdaFunction" - } - } - ] - } - } - ] - } - } - } - }, - "Outputs": { - "Name": { - "Value": { - "Ref": "LambdaFunction" - } - }, - "Arn": { - "Value": { - "Fn::GetAtt": [ - "LambdaFunction", - "Arn" - ] - } - }, - "Region": { - "Value": { - "Ref": "AWS::Region" - } - }, - "LambdaExecutionRole": { - "Value": { - "Ref": "LambdaExecutionRole" - } - }, - "LambdaExecutionRoleArn": { - "Value": { - "Fn::GetAtt": [ - "LambdaExecutionRole", - "Arn" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-functionmoodboardKinesisReader-1B0PH7W687XGA.description.txt b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-functionmoodboardKinesisReader-1B0PH7W687XGA.description.txt deleted file mode 100644 index 445081e4df1..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-functionmoodboardKinesisReader-1B0PH7W687XGA.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"function-Lambda","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-functionmoodboardKinesisReader-1B0PH7W687XGA.outputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-functionmoodboardKinesisReader-1B0PH7W687XGA.outputs.json deleted file mode 100644 index 827647c85c3..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-functionmoodboardKinesisReader-1B0PH7W687XGA.outputs.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "OutputKey": "LambdaExecutionRoleArn", - "OutputValue": "arn:aws:iam::123456789012:role/moodboardLambdaRole1f55eecd-main" - }, - { - "OutputKey": "Region", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "Arn", - "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:moodboardKinesisReader-main" - }, - { - "OutputKey": "Name", - "OutputValue": "moodboardKinesisReader-main" - }, - { - "OutputKey": "LambdaExecutionRole", - "OutputValue": "moodboardLambdaRole1f55eecd-main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-functionmoodboardKinesisReader-1B0PH7W687XGA.parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-functionmoodboardKinesisReader-1B0PH7W687XGA.parameters.json deleted file mode 100644 index a3fdb7737f5..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-functionmoodboardKinesisReader-1B0PH7W687XGA.parameters.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "ParameterKey": "CloudWatchRule", - "ParameterValue": "NONE" - }, - { - "ParameterKey": "s3Key", - "ParameterValue": "amplify-builds/moodboardKinesisReader-4934782b72546e51707a-build.zip" - }, - { - "ParameterKey": "analyticsmoodboardKinesiskinesisStreamArn", - "ParameterValue": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-main" - }, - { - "ParameterKey": "deploymentBucketName", - "ParameterValue": "amplify-moodboard-main-1959a-deployment" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-functionmoodboardKinesisReader-1B0PH7W687XGA.template.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-functionmoodboardKinesisReader-1B0PH7W687XGA.template.json deleted file mode 100644 index c943b9df770..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-functionmoodboardKinesisReader-1B0PH7W687XGA.template.json +++ /dev/null @@ -1,248 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "Parameters": { - "CloudWatchRule": { - "Type": "String", - "Default": "NONE", - "Description": " Schedule Expression" - }, - "deploymentBucketName": { - "Type": "String" - }, - "env": { - "Type": "String" - }, - "s3Key": { - "Type": "String" - }, - "analyticsmoodboardKinesiskinesisStreamArn": { - "Type": "String", - "Default": "analyticsmoodboardKinesiskinesisStreamArn" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - }, - "Resources": { - "LambdaFunction": { - "Type": "AWS::Lambda::Function", - "Metadata": { - "aws:asset:path": "./src", - "aws:asset:property": "Code" - }, - "Properties": { - "Code": { - "S3Bucket": { - "Ref": "deploymentBucketName" - }, - "S3Key": { - "Ref": "s3Key" - } - }, - "Handler": "index.handler", - "FunctionName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "moodboardKinesisReader", - { - "Fn::Join": [ - "", - [ - "moodboardKinesisReader", - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "Environment": { - "Variables": { - "ENV": { - "Ref": "env" - }, - "REGION": { - "Ref": "AWS::Region" - }, - "ANALYTICS_MOODBOARDKINESIS_KINESISSTREAMARN": { - "Ref": "analyticsmoodboardKinesiskinesisStreamArn" - } - } - }, - "Role": { - "Fn::GetAtt": [ - "LambdaExecutionRole", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Layers": [], - "Timeout": 25 - } - }, - "LambdaExecutionRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "RoleName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "moodboardLambdaRole1f55eecd", - { - "Fn::Join": [ - "", - [ - "moodboardLambdaRole1f55eecd", - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": [ - "lambda.amazonaws.com" - ] - }, - "Action": [ - "sts:AssumeRole" - ] - } - ] - } - } - }, - "lambdaexecutionpolicy": { - "DependsOn": [ - "LambdaExecutionRole" - ], - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyName": "lambda-execution-policy", - "Roles": [ - { - "Ref": "LambdaExecutionRole" - } - ], - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "logs:CreateLogGroup", - "logs:CreateLogStream", - "logs:PutLogEvents" - ], - "Resource": { - "Fn::Sub": [ - "arn:aws:logs:${region}:${account}:log-group:/aws/lambda/${lambda}:log-stream:*", - { - "region": { - "Ref": "AWS::Region" - }, - "account": { - "Ref": "AWS::AccountId" - }, - "lambda": { - "Ref": "LambdaFunction" - } - } - ] - } - } - ] - } - } - }, - "AmplifyResourcesPolicy": { - "DependsOn": [ - "LambdaExecutionRole" - ], - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyName": "amplify-lambda-execution-policy", - "Roles": [ - { - "Ref": "LambdaExecutionRole" - } - ], - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "kinesis:ListShards", - "kinesis:ListStreams", - "kinesis:ListStreamConsumers", - "kinesis:DescribeStream", - "kinesis:DescribeStreamSummary", - "kinesis:DescribeStreamConsumer", - "kinesis:GetRecords", - "kinesis:GetShardIterator", - "kinesis:SubscribeToShard", - "kinesis:DescribeLimits", - "kinesis:ListTagsForStream", - "kinesis:SubscribeToShard" - ], - "Resource": { - "Ref": "analyticsmoodboardKinesiskinesisStreamArn" - } - } - ] - } - } - } - }, - "Outputs": { - "Name": { - "Value": { - "Ref": "LambdaFunction" - } - }, - "Arn": { - "Value": { - "Fn::GetAtt": [ - "LambdaFunction", - "Arn" - ] - } - }, - "Region": { - "Value": { - "Ref": "AWS::Region" - } - }, - "LambdaExecutionRole": { - "Value": { - "Ref": "LambdaExecutionRole" - } - }, - "LambdaExecutionRoleArn": { - "Value": { - "Fn::GetAtt": [ - "LambdaExecutionRole", - "Arn" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.description.txt b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.description.txt deleted file mode 100644 index f0c7a6514ea..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"storage-S3","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.outputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.outputs.json deleted file mode 100644 index 66da4b731d3..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.outputs.json +++ /dev/null @@ -1,11 +0,0 @@ -[ - { - "OutputKey": "BucketName", - "OutputValue": "moodboard20e29595008142e3ad16f01c4066e1c41959a-main", - "Description": "Bucket name for the S3 bucket" - }, - { - "OutputKey": "Region", - "OutputValue": "us-east-1" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.parameters.json deleted file mode 100644 index de700e0b9ce..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.parameters.json +++ /dev/null @@ -1,86 +0,0 @@ -[ - { - "ParameterKey": "s3PermissionsGuestPublic", - "ParameterValue": "s3:GetObject" - }, - { - "ParameterKey": "bucketName", - "ParameterValue": "moodboard20e29595008142e3ad16f01c4066e1c4" - }, - { - "ParameterKey": "s3PublicPolicy", - "ParameterValue": "Public_policy_206c638b" - }, - { - "ParameterKey": "AuthenticatedAllowList", - "ParameterValue": "ALLOW" - }, - { - "ParameterKey": "unauthRoleName", - "ParameterValue": "amplify-moodboard-main-1959a-unauthRole" - }, - { - "ParameterKey": "s3PrivatePolicy", - "ParameterValue": "Private_policy_206c638b" - }, - { - "ParameterKey": "selectedGuestPermissions", - "ParameterValue": "s3:GetObject,s3:ListBucket" - }, - { - "ParameterKey": "s3PermissionsAuthenticatedPublic", - "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" - }, - { - "ParameterKey": "s3PermissionsAuthenticatedPrivate", - "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" - }, - { - "ParameterKey": "s3PermissionsAuthenticatedUploads", - "ParameterValue": "s3:PutObject" - }, - { - "ParameterKey": "s3UploadsPolicy", - "ParameterValue": "Uploads_policy_206c638b" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "unauthPolicyName", - "ParameterValue": "s3_amplify_206c638b" - }, - { - "ParameterKey": "authRoleName", - "ParameterValue": "amplify-moodboard-main-1959a-authRole" - }, - { - "ParameterKey": "GuestAllowList", - "ParameterValue": "ALLOW" - }, - { - "ParameterKey": "authPolicyName", - "ParameterValue": "s3_amplify_206c638b" - }, - { - "ParameterKey": "s3ProtectedPolicy", - "ParameterValue": "Protected_policy_206c638b" - }, - { - "ParameterKey": "s3PermissionsAuthenticatedProtected", - "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" - }, - { - "ParameterKey": "s3PermissionsGuestUploads", - "ParameterValue": "DISALLOW" - }, - { - "ParameterKey": "s3ReadPolicy", - "ParameterValue": "read_policy_206c638b" - }, - { - "ParameterKey": "selectedAuthenticatedPermissions", - "ParameterValue": "s3:PutObject,s3:GetObject,s3:ListBucket,s3:DeleteObject" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.template.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.template.json deleted file mode 100644 index 8bac1dbfa69..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a-storagemoodboardStorage-4QIRO85L6OVA.template.json +++ /dev/null @@ -1,646 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-S3\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "env": { - "Type": "String" - }, - "bucketName": { - "Type": "String" - }, - "authRoleName": { - "Type": "String" - }, - "unauthRoleName": { - "Type": "String" - }, - "authPolicyName": { - "Type": "String" - }, - "unauthPolicyName": { - "Type": "String" - }, - "s3PublicPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3PrivatePolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3ProtectedPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3UploadsPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3ReadPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3PermissionsAuthenticatedPublic": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedProtected": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedPrivate": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedUploads": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsGuestPublic": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsGuestUploads": { - "Type": "String", - "Default": "DISALLOW" - }, - "AuthenticatedAllowList": { - "Type": "String", - "Default": "DISALLOW" - }, - "GuestAllowList": { - "Type": "String", - "Default": "DISALLOW" - }, - "selectedGuestPermissions": { - "Type": "CommaDelimitedList", - "Default": "NONE" - }, - "selectedAuthenticatedPermissions": { - "Type": "CommaDelimitedList", - "Default": "NONE" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - }, - "CreateAuthPublic": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "s3PermissionsAuthenticatedPublic" - }, - "DISALLOW" - ] - } - ] - }, - "CreateAuthProtected": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "s3PermissionsAuthenticatedProtected" - }, - "DISALLOW" - ] - } - ] - }, - "CreateAuthPrivate": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "s3PermissionsAuthenticatedPrivate" - }, - "DISALLOW" - ] - } - ] - }, - "CreateAuthUploads": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "s3PermissionsAuthenticatedUploads" - }, - "DISALLOW" - ] - } - ] - }, - "CreateGuestPublic": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "s3PermissionsGuestPublic" - }, - "DISALLOW" - ] - } - ] - }, - "CreateGuestUploads": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "s3PermissionsGuestUploads" - }, - "DISALLOW" - ] - } - ] - }, - "AuthReadAndList": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "AuthenticatedAllowList" - }, - "DISALLOW" - ] - } - ] - }, - "GuestReadAndList": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "GuestAllowList" - }, - "DISALLOW" - ] - } - ] - } - }, - "Outputs": { - "BucketName": { - "Description": "Bucket name for the S3 bucket", - "Value": { - "Ref": "S3Bucket" - } - }, - "Region": { - "Value": { - "Ref": "AWS::Region" - } - } - }, - "Resources": { - "S3Bucket": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "bucketName" - }, - { - "Fn::Join": [ - "", - [ - { - "Ref": "bucketName" - }, - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - { - "Ref": "AWS::StackName" - } - ] - } - ] - }, - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "Id": "S3CORSRuleId1", - "MaxAge": 3000 - } - ] - }, - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - } - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain" - }, - "S3AuthPublicPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - { - "Ref": "s3PermissionsAuthenticatedPublic" - } - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, - "/public/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": { - "Ref": "s3PublicPolicy" - }, - "Roles": [ - { - "Ref": "authRoleName" - } - ] - }, - "DependsOn": [ - "S3Bucket" - ], - "Condition": "CreateAuthPublic" - }, - "S3AuthProtectedPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - { - "Ref": "s3PermissionsAuthenticatedProtected" - } - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, - "/protected/${cognito-identity.amazonaws.com:sub}/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": { - "Ref": "s3ProtectedPolicy" - }, - "Roles": [ - { - "Ref": "authRoleName" - } - ] - }, - "DependsOn": [ - "S3Bucket" - ], - "Condition": "CreateAuthProtected" - }, - "S3AuthPrivatePolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - { - "Ref": "s3PermissionsAuthenticatedPrivate" - } - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, - "/private/${cognito-identity.amazonaws.com:sub}/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": { - "Ref": "s3PrivatePolicy" - }, - "Roles": [ - { - "Ref": "authRoleName" - } - ] - }, - "DependsOn": [ - "S3Bucket" - ], - "Condition": "CreateAuthPrivate" - }, - "S3AuthUploadPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - { - "Ref": "s3PermissionsAuthenticatedUploads" - } - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, - "/uploads/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": { - "Ref": "s3UploadsPolicy" - }, - "Roles": [ - { - "Ref": "authRoleName" - } - ] - }, - "DependsOn": [ - "S3Bucket" - ], - "Condition": "CreateAuthUploads" - }, - "S3GuestPublicPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - { - "Ref": "s3PermissionsGuestPublic" - } - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, - "/public/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": { - "Ref": "s3PublicPolicy" - }, - "Roles": [ - { - "Ref": "unauthRoleName" - } - ] - }, - "DependsOn": [ - "S3Bucket" - ], - "Condition": "CreateGuestPublic" - }, - "S3AuthReadPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, - "/protected/*" - ] - ] - } - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/", - "public/*", - "protected/", - "protected/*", - "private/${cognito-identity.amazonaws.com:sub}/", - "private/${cognito-identity.amazonaws.com:sub}/*" - ] - } - }, - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - } - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": { - "Ref": "s3ReadPolicy" - }, - "Roles": [ - { - "Ref": "authRoleName" - } - ] - }, - "DependsOn": [ - "S3Bucket" - ], - "Condition": "AuthReadAndList" - }, - "S3GuestReadPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, - "/protected/*" - ] - ] - } - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/", - "public/*", - "protected/", - "protected/*" - ] - } - }, - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - } - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": { - "Ref": "s3ReadPolicy" - }, - "Roles": [ - { - "Ref": "unauthRoleName" - } - ] - }, - "DependsOn": [ - "S3Bucket" - ], - "Condition": "GuestReadAndList" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a.description.txt b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a.description.txt deleted file mode 100644 index daf66c0bc85..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a.description.txt +++ /dev/null @@ -1 +0,0 @@ -Root Stack for AWS Amplify CLI \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a.outputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a.outputs.json deleted file mode 100644 index 42a4e2ef4af..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a.outputs.json +++ /dev/null @@ -1,42 +0,0 @@ -[ - { - "OutputKey": "AuthRoleName", - "OutputValue": "amplify-moodboard-main-1959a-authRole" - }, - { - "OutputKey": "UnauthRoleArn", - "OutputValue": "arn:aws:iam::123456789012:role/amplify-moodboard-main-1959a-unauthRole" - }, - { - "OutputKey": "AuthRoleArn", - "OutputValue": "arn:aws:iam::123456789012:role/amplify-moodboard-main-1959a-authRole" - }, - { - "OutputKey": "Region", - "OutputValue": "us-east-1", - "Description": "CloudFormation provider root stack Region", - "ExportName": "amplify-moodboard-main-1959a-Region" - }, - { - "OutputKey": "DeploymentBucketName", - "OutputValue": "amplify-moodboard-main-1959a-deployment", - "Description": "CloudFormation provider root stack deployment bucket name", - "ExportName": "amplify-moodboard-main-1959a-DeploymentBucketName" - }, - { - "OutputKey": "UnauthRoleName", - "OutputValue": "amplify-moodboard-main-1959a-unauthRole" - }, - { - "OutputKey": "StackName", - "OutputValue": "amplify-moodboard-main-1959a", - "Description": "CloudFormation provider root stack ID", - "ExportName": "amplify-moodboard-main-1959a-StackName" - }, - { - "OutputKey": "StackId", - "OutputValue": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-moodboard-main-1959a/f2787a30-1b0e-11f1-a58a-0afff81a6d49", - "Description": "CloudFormation provider root stack name", - "ExportName": "amplify-moodboard-main-1959a-StackId" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a.parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a.parameters.json deleted file mode 100644 index b9c81e6501e..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a.parameters.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "ParameterKey": "AuthRoleName", - "ParameterValue": "amplify-moodboard-main-1959a-authRole" - }, - { - "ParameterKey": "DeploymentBucketName", - "ParameterValue": "amplify-moodboard-main-1959a-deployment" - }, - { - "ParameterKey": "UnauthRoleName", - "ParameterValue": "amplify-moodboard-main-1959a-unauthRole" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a.template.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a.template.json deleted file mode 100644 index 6b0ac1afb8c..00000000000 --- a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-main-1959a.template.json +++ /dev/null @@ -1,560 +0,0 @@ -{ - "Description": "Root Stack for AWS Amplify CLI", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "DeploymentBucketName": { - "Type": "String", - "Default": "DeploymentBucket", - "Description": "Name of the common deployment bucket provided by the parent stack" - }, - "AuthRoleName": { - "Type": "String", - "Default": "AuthRoleName", - "Description": "Name of the common deployment bucket provided by the parent stack" - }, - "UnauthRoleName": { - "Type": "String", - "Default": "UnAuthRoleName", - "Description": "Name of the common deployment bucket provided by the parent stack" - } - }, - "Outputs": { - "Region": { - "Description": "CloudFormation provider root stack Region", - "Value": { - "Ref": "AWS::Region" - }, - "Export": { - "Name": { - "Fn::Sub": "${AWS::StackName}-Region" - } - } - }, - "StackName": { - "Description": "CloudFormation provider root stack ID", - "Value": { - "Ref": "AWS::StackName" - }, - "Export": { - "Name": { - "Fn::Sub": "${AWS::StackName}-StackName" - } - } - }, - "StackId": { - "Description": "CloudFormation provider root stack name", - "Value": { - "Ref": "AWS::StackId" - }, - "Export": { - "Name": { - "Fn::Sub": "${AWS::StackName}-StackId" - } - } - }, - "AuthRoleArn": { - "Value": { - "Fn::GetAtt": [ - "AuthRole", - "Arn" - ] - } - }, - "UnauthRoleArn": { - "Value": { - "Fn::GetAtt": [ - "UnauthRole", - "Arn" - ] - } - }, - "DeploymentBucketName": { - "Description": "CloudFormation provider root stack deployment bucket name", - "Value": { - "Ref": "DeploymentBucketName" - }, - "Export": { - "Name": { - "Fn::Sub": "${AWS::StackName}-DeploymentBucketName" - } - } - }, - "AuthRoleName": { - "Value": { - "Ref": "AuthRole" - } - }, - "UnauthRoleName": { - "Value": { - "Ref": "UnauthRole" - } - } - }, - "Resources": { - "DeploymentBucket": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketName": { - "Ref": "DeploymentBucketName" - }, - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - } - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain" - }, - "DeploymentBucketBlockHTTP": { - "Type": "AWS::S3::BucketPolicy", - "Properties": { - "Bucket": { - "Ref": "DeploymentBucketName" - }, - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:*", - "Effect": "Deny", - "Principal": "*", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "DeploymentBucketName" - }, - "/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "DeploymentBucketName" - } - ] - ] - } - ], - "Condition": { - "Bool": { - "aws:SecureTransport": false - } - } - } - ] - } - } - }, - "AuthRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Sid": "", - "Effect": "Deny", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - }, - "Action": "sts:AssumeRoleWithWebIdentity" - } - ] - }, - "RoleName": { - "Ref": "AuthRoleName" - } - } - }, - "UnauthRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Sid": "", - "Effect": "Deny", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - }, - "Action": "sts:AssumeRoleWithWebIdentity" - } - ] - }, - "RoleName": { - "Ref": "UnauthRoleName" - } - } - }, - "analyticsmoodboardKinesis": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-main-1959a-deployment/amplify-cfn-templates/analytics/kinesis-cloudformation-template.json", - "Parameters": { - "kinesisStreamName": "moodboardKinesis", - "kinesisStreamShardCount": 1, - "authRoleName": { - "Ref": "AuthRoleName" - }, - "unauthRoleName": { - "Ref": "UnauthRoleName" - }, - "authPolicyName": "kinesis_amplify_bca5ce95", - "unauthPolicyName": "kinesis_amplify_bca5ce95", - "env": "main" - } - } - }, - "apimoodboard": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-main-1959a-deployment/amplify-cfn-templates/api/cloudformation-template.json", - "Parameters": { - "AppSyncApiName": "moodboard", - "DynamoDBBillingMode": "PAY_PER_REQUEST", - "DynamoDBEnableServerSideEncryption": false, - "AuthCognitoUserPoolId": { - "Fn::GetAtt": [ - "authmoodboard759ae00a", - "Outputs.UserPoolId" - ] - }, - "S3DeploymentBucket": "amplify-moodboard-main-1959a-deployment", - "S3DeploymentRootKey": "amplify-appsync-files/f7ab9fca95eecad3a59047fb5fd92dfef9d55ad4", - "env": "main" - } - } - }, - "authmoodboard759ae00a": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-main-1959a-deployment/amplify-cfn-templates/auth/moodboard759ae00a-cloudformation-template.json", - "Parameters": { - "identityPoolName": "moodboard759ae00a_identitypool_759ae00a", - "allowUnauthenticatedIdentities": true, - "resourceNameTruncated": "moodbo759ae00a", - "userPoolName": "moodboard759ae00a_userpool_759ae00a", - "autoVerifiedAttributes": "email", - "mfaConfiguration": "OFF", - "mfaTypes": "SMS Text Message", - "smsAuthenticationMessage": "Your authentication code is {####}", - "smsVerificationMessage": "Your verification code is {####}", - "emailVerificationSubject": "Your verification code", - "emailVerificationMessage": "Your verification code is {####}", - "defaultPasswordPolicy": false, - "passwordPolicyMinLength": 8, - "passwordPolicyCharacters": "", - "requiredAttributes": "email", - "aliasAttributes": "", - "userpoolClientGenerateSecret": false, - "userpoolClientRefreshTokenValidity": 30, - "userpoolClientWriteAttributes": "email", - "userpoolClientReadAttributes": "email", - "userpoolClientLambdaRole": "moodbo759ae00a_userpoolclient_lambda_role", - "userpoolClientSetAttributes": false, - "sharedId": "759ae00a", - "resourceName": "moodboard759ae00a", - "authSelections": "identityPoolAndUserPool", - "useDefault": "default", - "usernameAttributes": "email", - "userPoolGroupList": "", - "serviceName": "Cognito", - "usernameCaseSensitive": false, - "useEnabledMfas": true, - "authRoleArn": { - "Fn::GetAtt": [ - "AuthRole", - "Arn" - ] - }, - "unauthRoleArn": { - "Fn::GetAtt": [ - "UnauthRole", - "Arn" - ] - }, - "breakCircularDependency": true, - "dependsOn": "", - "env": "main" - } - } - }, - "functionmoodboardGetRandomEmoji": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-main-1959a-deployment/amplify-cfn-templates/function/moodboardGetRandomEmoji-cloudformation-template.json", - "Parameters": { - "deploymentBucketName": "amplify-moodboard-main-1959a-deployment", - "s3Key": "amplify-builds/moodboardGetRandomEmoji-59616d4f4b546a305a75-build.zip", - "env": "main" - } - } - }, - "functionmoodboardKinesisReader": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-main-1959a-deployment/amplify-cfn-templates/function/moodboardKinesisReader-cloudformation-template.json", - "Parameters": { - "deploymentBucketName": "amplify-moodboard-main-1959a-deployment", - "s3Key": "amplify-builds/moodboardKinesisReader-4934782b72546e51707a-build.zip", - "analyticsmoodboardKinesiskinesisStreamArn": { - "Fn::GetAtt": [ - "analyticsmoodboardKinesis", - "Outputs.kinesisStreamArn" - ] - }, - "env": "main" - } - } - }, - "storagemoodboardStorage": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-main-1959a-deployment/amplify-cfn-templates/storage/cloudformation-template.json", - "Parameters": { - "bucketName": "moodboard20e29595008142e3ad16f01c4066e1c4", - "selectedGuestPermissions": "s3:GetObject,s3:ListBucket", - "selectedAuthenticatedPermissions": "s3:PutObject,s3:GetObject,s3:ListBucket,s3:DeleteObject", - "unauthRoleName": { - "Ref": "UnauthRoleName" - }, - "authRoleName": { - "Ref": "AuthRoleName" - }, - "s3PrivatePolicy": "Private_policy_206c638b", - "s3ProtectedPolicy": "Protected_policy_206c638b", - "s3PublicPolicy": "Public_policy_206c638b", - "s3ReadPolicy": "read_policy_206c638b", - "s3UploadsPolicy": "Uploads_policy_206c638b", - "authPolicyName": "s3_amplify_206c638b", - "unauthPolicyName": "s3_amplify_206c638b", - "AuthenticatedAllowList": "ALLOW", - "GuestAllowList": "ALLOW", - "s3PermissionsAuthenticatedPrivate": "s3:PutObject,s3:GetObject,s3:DeleteObject", - "s3PermissionsAuthenticatedProtected": "s3:PutObject,s3:GetObject,s3:DeleteObject", - "s3PermissionsAuthenticatedPublic": "s3:PutObject,s3:GetObject,s3:DeleteObject", - "s3PermissionsAuthenticatedUploads": "s3:PutObject", - "s3PermissionsGuestPublic": "s3:GetObject", - "s3PermissionsGuestUploads": "DISALLOW", - "env": "main" - } - } - }, - "UpdateRolesWithIDPFunction": { - "DependsOn": [ - "AuthRole", - "UnauthRole", - "authmoodboard759ae00a" - ], - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "ZipFile": { - "Fn::Join": [ - "\n", - [ - "const response = require('cfn-response');", - "const { IAMClient, GetRoleCommand, UpdateAssumeRolePolicyCommand } = require('@aws-sdk/client-iam');", - "exports.handler = function(event, context) {", - " // Don't return promise, response.send() marks context as done internally", - " const ignoredPromise = handleEvent(event, context)", - "};", - "async function handleEvent(event, context) {", - " try {", - " let authRoleName = event.ResourceProperties.authRoleName;", - " let unauthRoleName = event.ResourceProperties.unauthRoleName;", - " let idpId = event.ResourceProperties.idpId;", - " let authParamsJson = {", - " 'Version': '2012-10-17',", - " 'Statement': [{", - " 'Effect': 'Allow',", - " 'Principal': {'Federated': 'cognito-identity.amazonaws.com'},", - " 'Action': 'sts:AssumeRoleWithWebIdentity',", - " 'Condition': {", - " 'StringEquals': {'cognito-identity.amazonaws.com:aud': idpId},", - " 'ForAnyValue:StringLike': {'cognito-identity.amazonaws.com:amr': 'authenticated'}", - " }", - " }]", - " };", - " let unauthParamsJson = {", - " 'Version': '2012-10-17',", - " 'Statement': [{", - " 'Effect': 'Allow',", - " 'Principal': {'Federated': 'cognito-identity.amazonaws.com'},", - " 'Action': 'sts:AssumeRoleWithWebIdentity',", - " 'Condition': {", - " 'StringEquals': {'cognito-identity.amazonaws.com:aud': idpId},", - " 'ForAnyValue:StringLike': {'cognito-identity.amazonaws.com:amr': 'unauthenticated'}", - " }", - " }]", - " };", - " if (event.RequestType === 'Delete') {", - " try {", - " delete authParamsJson.Statement[0].Condition;", - " delete unauthParamsJson.Statement[0].Condition;", - " authParamsJson.Statement[0].Effect = 'Deny'", - " unauthParamsJson.Statement[0].Effect = 'Deny'", - " let authParams = {PolicyDocument: JSON.stringify(authParamsJson), RoleName: authRoleName};", - " let unauthParams = {PolicyDocument: JSON.stringify(unauthParamsJson), RoleName: unauthRoleName};", - " const iam = new IAMClient({region: event.ResourceProperties.region});", - " let res = await Promise.all([", - " iam.send(new GetRoleCommand({RoleName: authParams.RoleName})),", - " iam.send(new GetRoleCommand({RoleName: unauthParams.RoleName}))", - " ]);", - " res = await Promise.all([", - " iam.send(new UpdateAssumeRolePolicyCommand(authParams)),", - " iam.send(new UpdateAssumeRolePolicyCommand(unauthParams))", - " ]);", - " response.send(event, context, response.SUCCESS, {});", - " } catch (err) {", - " console.log(err.stack);", - " response.send(event, context, response.SUCCESS, {Error: err});", - " }", - " } else if (event.RequestType === 'Update' || event.RequestType === 'Create') {", - " const iam = new IAMClient({region: event.ResourceProperties.region});", - " let authParams = {PolicyDocument: JSON.stringify(authParamsJson), RoleName: authRoleName};", - " let unauthParams = {PolicyDocument: JSON.stringify(unauthParamsJson), RoleName: unauthRoleName};", - " const res = await Promise.all([", - " iam.send(new UpdateAssumeRolePolicyCommand(authParams)),", - " iam.send(new UpdateAssumeRolePolicyCommand(unauthParams))", - " ]);", - " response.send(event, context, response.SUCCESS, {});", - " }", - " } catch (err) {", - " console.log(err.stack);", - " response.send(event, context, response.FAILED, {Error: err});", - " }", - "};" - ] - ] - } - }, - "Handler": "index.handler", - "Runtime": "nodejs22.x", - "Timeout": 300, - "Role": { - "Fn::GetAtt": [ - "UpdateRolesWithIDPFunctionRole", - "Arn" - ] - } - } - }, - "UpdateRolesWithIDPFunctionOutputs": { - "Type": "Custom::LambdaCallout", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "UpdateRolesWithIDPFunction", - "Arn" - ] - }, - "region": { - "Ref": "AWS::Region" - }, - "idpId": { - "Fn::GetAtt": [ - "authmoodboard759ae00a", - "Outputs.IdentityPoolId" - ] - }, - "authRoleName": { - "Ref": "AuthRole" - }, - "unauthRoleName": { - "Ref": "UnauthRole" - } - } - }, - "UpdateRolesWithIDPFunctionRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "RoleName": { - "Fn::Join": [ - "", - [ - { - "Ref": "AuthRole" - }, - "-idp" - ] - ] - }, - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": [ - "lambda.amazonaws.com" - ] - }, - "Action": [ - "sts:AssumeRole" - ] - } - ] - }, - "Policies": [ - { - "PolicyName": "UpdateRolesWithIDPFunctionPolicy", - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "logs:CreateLogGroup", - "logs:CreateLogStream", - "logs:PutLogEvents" - ], - "Resource": "arn:aws:logs:*:*:*" - }, - { - "Effect": "Allow", - "Action": [ - "iam:UpdateAssumeRolePolicy", - "iam:GetRole" - ], - "Resource": { - "Fn::GetAtt": [ - "AuthRole", - "Arn" - ] - } - }, - { - "Effect": "Allow", - "Action": [ - "iam:UpdateAssumeRolePolicy", - "iam:GetRole" - ], - "Resource": { - "Fn::GetAtt": [ - "UnauthRole", - "Arn" - ] - } - } - ] - } - } - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-analyticsmoodboardKinesis-x.description.txt b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-analyticsmoodboardKinesis-x.description.txt new file mode 100644 index 00000000000..6c93453e1b2 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-analyticsmoodboardKinesis-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"analytics-Kinesis","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-analyticsmoodboardKinesis-x.outputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-analyticsmoodboardKinesis-x.outputs.json new file mode 100644 index 00000000000..6012e74afc8 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-analyticsmoodboardKinesis-x.outputs.json @@ -0,0 +1,14 @@ +[ + { + "OutputKey": "kinesisStreamId", + "OutputValue": "moodboardKinesis-x" + }, + { + "OutputKey": "kinesisStreamShardCount", + "OutputValue": "1" + }, + { + "OutputKey": "kinesisStreamArn", + "OutputValue": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-x" + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-analyticsmoodboardKinesis-x.parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-analyticsmoodboardKinesis-x.parameters.json new file mode 100644 index 00000000000..05cde9c52c7 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-analyticsmoodboardKinesis-x.parameters.json @@ -0,0 +1,30 @@ +[ + { + "ParameterKey": "unauthPolicyName", + "ParameterValue": "kinesis_amplify_bca5ce95" + }, + { + "ParameterKey": "authRoleName", + "ParameterValue": "amplify-moodboard-x-x-authRole" + }, + { + "ParameterKey": "unauthRoleName", + "ParameterValue": "amplify-moodboard-x-x-unauthRole" + }, + { + "ParameterKey": "authPolicyName", + "ParameterValue": "kinesis_amplify_bca5ce95" + }, + { + "ParameterKey": "kinesisStreamShardCount", + "ParameterValue": "1" + }, + { + "ParameterKey": "kinesisStreamName", + "ParameterValue": "moodboardKinesis" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-analyticsmoodboardKinesis-x.template.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-analyticsmoodboardKinesis-x.template.json new file mode 100644 index 00000000000..393d162e440 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-analyticsmoodboardKinesis-x.template.json @@ -0,0 +1,143 @@ +{ + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"analytics-Kinesis\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Parameters": { + "env": { + "Type": "String" + }, + "kinesisStreamName": { + "Type": "String" + }, + "kinesisStreamShardCount": { + "Type": "Number", + "Default": 1 + }, + "authPolicyName": { + "Type": "String" + }, + "unauthPolicyName": { + "Type": "String" + }, + "authRoleName": { + "Type": "String" + }, + "unauthRoleName": { + "Type": "String" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + } + }, + "Resources": { + "KinesisStream": { + "Type": "AWS::Kinesis::Stream", + "Properties": { + "Name": { + "Fn::Join": [ + "-", + [ + { + "Ref": "kinesisStreamName" + }, + { + "Ref": "env" + } + ] + ] + }, + "ShardCount": { + "Ref": "kinesisStreamShardCount" + } + } + }, + "CognitoUnauthPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyName": { + "Ref": "unauthPolicyName" + }, + "Roles": [ + { + "Ref": "unauthRoleName" + } + ], + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "kinesis:PutRecord", + "kinesis:PutRecords" + ], + "Resource": { + "Fn::GetAtt": [ + "KinesisStream", + "Arn" + ] + } + } + ] + } + } + }, + "CognitoAuthPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyName": { + "Ref": "authPolicyName" + }, + "Roles": [ + { + "Ref": "authRoleName" + } + ], + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "kinesis:PutRecord", + "kinesis:PutRecords" + ], + "Resource": { + "Fn::GetAtt": [ + "KinesisStream", + "Arn" + ] + } + } + ] + } + } + } + }, + "Outputs": { + "kinesisStreamArn": { + "Value": { + "Fn::GetAtt": [ + "KinesisStream", + "Arn" + ] + } + }, + "kinesisStreamId": { + "Value": { + "Ref": "KinesisStream" + } + }, + "kinesisStreamShardCount": { + "Value": { + "Ref": "kinesisStreamShardCount" + } + } + } +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-Board-x.description.txt b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-Board-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-Board-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-Board-x.outputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-Board-x.outputs.json new file mode 100644 index 00000000000..9211b7f48e4 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-Board-x.outputs.json @@ -0,0 +1,28 @@ +[ + { + "OutputKey": "GetAttBoardTableStreamArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Board-pd6mhagtyveltorgdvv7movvqq-x/stream/2026-04-15T04:23:19.837", + "Description": "Your DynamoDB table StreamArn.", + "ExportName": "pd6mhagtyveltorgdvv7movvqq:GetAtt:BoardTable:StreamArn" + }, + { + "OutputKey": "GetAttBoardDataSourceName", + "OutputValue": "BoardTable", + "Description": "Your model DataSource name.", + "ExportName": "pd6mhagtyveltorgdvv7movvqq:GetAtt:BoardDataSource:Name" + }, + { + "OutputKey": "transformerrootstackBoardBoardDataSource99BFC69FName", + "OutputValue": "BoardTable" + }, + { + "OutputKey": "GetAttBoardTableName", + "OutputValue": "Board-pd6mhagtyveltorgdvv7movvqq-x", + "Description": "Your DynamoDB table name.", + "ExportName": "pd6mhagtyveltorgdvv7movvqq:GetAtt:BoardTable:Name" + }, + { + "OutputKey": "transformerrootstackBoardBoardTable30788E07Ref", + "OutputValue": "Board-pd6mhagtyveltorgdvv7movvqq-x" + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-Board-x.parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-Board-x.parameters.json new file mode 100644 index 00000000000..5a6f9905337 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-Board-x.parameters.json @@ -0,0 +1,66 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemSubscriptiononCreateMoodItemauth0FunctionSubscriptiononCreateMoodItemauth0FunctionAppSyncFunction643A2F06FunctionId", + "ParameterValue": "u47ijnto3jhnfbjyiy5tj5rbdu" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", + "ParameterValue": "amplify-appsync-files/5c491eab2bbf740cbba1e26a8e9053c2c881af96" + }, + { + "ParameterKey": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemQuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunctionA2A15C1FFunctionId", + "ParameterValue": "lmjqv4r5wvalhf33svv3f4h42y" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", + "ParameterValue": "pd6mhagtyveltorgdvv7movvqq" + }, + { + "ParameterKey": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemQuerygetMoodItemauth0FunctionQuerygetMoodItemauth0FunctionAppSyncFunctionBB402264FunctionId", + "ParameterValue": "xfjy2brxbrhupg3vwrufsgqhqa" + }, + { + "ParameterKey": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemMutationupdateMoodIteminit0FunctionMutationupdateMoodIteminit0FunctionAppSyncFunctionA5BB53A1FunctionId", + "ParameterValue": "ntl7z7rbx5db5eovlakyuezxlq" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemMutationcreateMoodItemauth0FunctionMutationcreateMoodItemauth0FunctionAppSyncFunction8743A884FunctionId", + "ParameterValue": "6k5i7swotbgv3asogjzqhdfpxi" + }, + { + "ParameterKey": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemSubscriptionOnCreateMoodItemDataResolverFnSubscriptionOnCreateMoodItemDataResolverFnAppSyncFunctionE0588344FunctionId", + "ParameterValue": "hcoadlsitvfd3dtkroowtxgefy" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", + "ParameterValue": "amplify-moodboard-x-x-deployment" + }, + { + "ParameterKey": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemMutationcreateMoodIteminit0FunctionMutationcreateMoodIteminit0FunctionAppSyncFunctionA7648B0CFunctionId", + "ParameterValue": "y5hj2r3wkbhwnfvtnytqg6vakm" + }, + { + "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", + "ParameterValue": "x" + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-Board-x.template.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-Board-x.template.json new file mode 100644 index 00000000000..628782b4496 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-Board-x.template.json @@ -0,0 +1,1150 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemQuerygetMoodItemauth0FunctionQuerygetMoodItemauth0FunctionAppSyncFunctionBB402264FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemQuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunctionA2A15C1FFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemMutationcreateMoodIteminit0FunctionMutationcreateMoodIteminit0FunctionAppSyncFunctionA7648B0CFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemMutationcreateMoodItemauth0FunctionMutationcreateMoodItemauth0FunctionAppSyncFunction8743A884FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemMutationupdateMoodIteminit0FunctionMutationupdateMoodIteminit0FunctionAppSyncFunctionA5BB53A1FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemSubscriptiononCreateMoodItemauth0FunctionSubscriptiononCreateMoodItemauth0FunctionAppSyncFunction643A2F06FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemSubscriptionOnCreateMoodItemDataResolverFnSubscriptionOnCreateMoodItemDataResolverFnAppSyncFunctionE0588344FunctionId": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "BoardTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "Board-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Retain" + }, + "BoardIAMRole2AFA0B47": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem", + "dynamodb:ConditionCheckItem", + "dynamodb:DescribeTable", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "Board-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "Board-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess" + } + ], + "RoleName": { + "Fn::Join": [ + "", + [ + "BoardIAMRolecda8e3-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "BoardIAMRoleDefaultPolicyE2247A7F": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "BoardTable", + "Arn" + ] + }, + { + "Ref": "AWS::NoValue" + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "BoardIAMRoleDefaultPolicyE2247A7F", + "Roles": [ + { + "Ref": "BoardIAMRole2AFA0B47" + } + ] + } + }, + "BoardDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "BoardTable" + } + }, + "Name": "BoardTable", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "BoardIAMRole2AFA0B47", + "Arn" + ] + }, + "Type": "AMAZON_DYNAMODB" + }, + "DependsOn": [ + "BoardIAMRole2AFA0B47" + ] + }, + "QueryGetBoardDataResolverFnQueryGetBoardDataResolverFnAppSyncFunction4DCC2B77": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "BoardDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryGetBoardDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getBoard.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getBoard.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "BoardDataSource" + ] + }, + "GetBoardResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getBoard", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemQuerygetMoodItemauth0FunctionQuerygetMoodItemauth0FunctionAppSyncFunctionBB402264FunctionId" + }, + { + "Ref": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemQuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunctionA2A15C1FFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetBoardDataResolverFnQueryGetBoardDataResolverFnAppSyncFunction4DCC2B77", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getBoard\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "BoardTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + } + }, + "QueryListBoardsDataResolverFnQueryListBoardsDataResolverFnAppSyncFunction6FD2B54C": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "BoardDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryListBoardsDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listBoards.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listBoards.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "BoardDataSource" + ] + }, + "ListBoardResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listBoards", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemQuerygetMoodItemauth0FunctionQuerygetMoodItemauth0FunctionAppSyncFunctionBB402264FunctionId" + }, + { + "Ref": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemQuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunctionA2A15C1FFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListBoardsDataResolverFnQueryListBoardsDataResolverFnAppSyncFunction6FD2B54C", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listBoards\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "BoardTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + } + }, + "MutationCreateBoardDataResolverFnMutationCreateBoardDataResolverFnAppSyncFunctionA8197CF5": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "BoardDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationCreateBoardDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createBoard.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createBoard.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "BoardDataSource" + ] + }, + "CreateBoardResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createBoard", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemMutationcreateMoodIteminit0FunctionMutationcreateMoodIteminit0FunctionAppSyncFunctionA7648B0CFunctionId" + }, + { + "Ref": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemMutationcreateMoodItemauth0FunctionMutationcreateMoodItemauth0FunctionAppSyncFunction8743A884FunctionId" + }, + { + "Ref": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemQuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunctionA2A15C1FFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreateBoardDataResolverFnMutationCreateBoardDataResolverFnAppSyncFunctionA8197CF5", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createBoard\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "BoardTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "MutationupdateBoardauth0FunctionMutationupdateBoardauth0FunctionAppSyncFunction2E8E275A": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "BoardDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateBoardauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateBoard.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateBoard.auth.1.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "BoardDataSource" + ] + }, + "MutationUpdateBoardDataResolverFnMutationUpdateBoardDataResolverFnAppSyncFunction9C4A47A5": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "BoardDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationUpdateBoardDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateBoard.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateBoard.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "BoardDataSource" + ] + }, + "UpdateBoardResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateBoard", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemMutationupdateMoodIteminit0FunctionMutationupdateMoodIteminit0FunctionAppSyncFunctionA5BB53A1FunctionId" + }, + { + "Fn::GetAtt": [ + "MutationupdateBoardauth0FunctionMutationupdateBoardauth0FunctionAppSyncFunction2E8E275A", + "FunctionId" + ] + }, + { + "Ref": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemQuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunctionA2A15C1FFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdateBoardDataResolverFnMutationUpdateBoardDataResolverFnAppSyncFunction9C4A47A5", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateBoard\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "BoardTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "MutationdeleteBoardauth0FunctionMutationdeleteBoardauth0FunctionAppSyncFunctionDCC1EFD9": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "BoardDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeleteBoardauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteBoard.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteBoard.auth.1.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "BoardDataSource" + ] + }, + "MutationDeleteBoardDataResolverFnMutationDeleteBoardDataResolverFnAppSyncFunctionFAEDC2FC": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "BoardDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationDeleteBoardDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteBoard.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteBoard.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "BoardDataSource" + ] + }, + "DeleteBoardResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteBoard", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationdeleteBoardauth0FunctionMutationdeleteBoardauth0FunctionAppSyncFunctionDCC1EFD9", + "FunctionId" + ] + }, + { + "Ref": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemQuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunctionA2A15C1FFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeleteBoardDataResolverFnMutationDeleteBoardDataResolverFnAppSyncFunctionFAEDC2FC", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteBoard\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "BoardTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "SubscriptiononCreateBoardResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateBoard", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemSubscriptiononCreateMoodItemauth0FunctionSubscriptiononCreateMoodItemauth0FunctionAppSyncFunction643A2F06FunctionId" + }, + { + "Ref": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemQuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunctionA2A15C1FFunctionId" + }, + { + "Ref": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemSubscriptionOnCreateMoodItemDataResolverFnSubscriptionOnCreateMoodItemDataResolverFnAppSyncFunctionE0588344FunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateBoard\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + }, + "SubscriptiononUpdateBoardResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateBoard", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemSubscriptiononCreateMoodItemauth0FunctionSubscriptiononCreateMoodItemauth0FunctionAppSyncFunction643A2F06FunctionId" + }, + { + "Ref": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemQuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunctionA2A15C1FFunctionId" + }, + { + "Ref": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemSubscriptionOnCreateMoodItemDataResolverFnSubscriptionOnCreateMoodItemDataResolverFnAppSyncFunctionE0588344FunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateBoard\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + }, + "SubscriptiononDeleteBoardResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteBoard", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemSubscriptiononCreateMoodItemauth0FunctionSubscriptiononCreateMoodItemauth0FunctionAppSyncFunction643A2F06FunctionId" + }, + { + "Ref": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemQuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunctionA2A15C1FFunctionId" + }, + { + "Ref": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemSubscriptionOnCreateMoodItemDataResolverFnSubscriptionOnCreateMoodItemDataResolverFnAppSyncFunctionE0588344FunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteBoard\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + } + }, + "Outputs": { + "GetAttBoardTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "BoardTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:BoardTable:StreamArn" + ] + ] + } + } + }, + "GetAttBoardTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "BoardTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:BoardTable:Name" + ] + ] + } + } + }, + "GetAttBoardDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "BoardDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:BoardDataSource:Name" + ] + ] + } + } + }, + "transformerrootstackBoardBoardDataSource99BFC69FName": { + "Value": { + "Fn::GetAtt": [ + "BoardDataSource", + "Name" + ] + } + }, + "transformerrootstackBoardBoardTable30788E07Ref": { + "Value": { + "Ref": "BoardTable" + } + } + } +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-ConnectionStack-x.description.txt b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-ConnectionStack-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-ConnectionStack-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-ConnectionStack-x.outputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-ConnectionStack-x.outputs.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-ConnectionStack-x.outputs.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-ConnectionStack-x.parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-ConnectionStack-x.parameters.json new file mode 100644 index 00000000000..55999badb10 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-ConnectionStack-x.parameters.json @@ -0,0 +1,34 @@ +[ + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", + "ParameterValue": "amplify-appsync-files/5c491eab2bbf740cbba1e26a8e9053c2c881af96" + }, + { + "ParameterKey": "referencetotransformerrootstackBoardNestedStackBoardNestedStackResource9E449E87OutputstransformerrootstackBoardBoardDataSource99BFC69FName", + "ParameterValue": "BoardTable" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", + "ParameterValue": "pd6mhagtyveltorgdvv7movvqq" + }, + { + "ParameterKey": "referencetotransformerrootstackBoardNestedStackBoardNestedStackResource9E449E87OutputstransformerrootstackBoardBoardTable30788E07Ref", + "ParameterValue": "Board-pd6mhagtyveltorgdvv7movvqq-x" + }, + { + "ParameterKey": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemMoodItemTable5135EED9Ref", + "ParameterValue": "MoodItem-pd6mhagtyveltorgdvv7movvqq-x" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", + "ParameterValue": "amplify-moodboard-x-x-deployment" + }, + { + "ParameterKey": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemMoodItemDataSource0777FF0CName", + "ParameterValue": "MoodItemTable" + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-ConnectionStack-x.template.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-ConnectionStack-x.template.json new file mode 100644 index 00000000000..f37fa1fff70 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-ConnectionStack-x.template.json @@ -0,0 +1,238 @@ +{ + "Resources": { + "BoardmoodItemsauth0FunctionBoardmoodItemsauth0FunctionAppSyncFunction24F8C273": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "BoardmoodItemsauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Board.moodItems.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "BoardMoodItemsDataResolverFnBoardMoodItemsDataResolverFnAppSyncFunctionB8E73866": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemMoodItemDataSource0777FF0CName" + }, + "FunctionVersion": "2018-05-29", + "Name": "BoardMoodItemsDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Board.moodItems.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Board.moodItems.res.vtl" + ] + ] + } + } + }, + "BoardmoodItemsResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "moodItems", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "BoardmoodItemsauth0FunctionBoardmoodItemsauth0FunctionAppSyncFunction24F8C273", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "BoardMoodItemsDataResolverFnBoardMoodItemsDataResolverFnAppSyncFunctionB8E73866", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Board\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"moodItems\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemMoodItemTable5135EED9Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Board" + } + }, + "MoodItemBoardDataResolverFnMoodItemBoardDataResolverFnAppSyncFunction5C7B0B1B": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackBoardNestedStackBoardNestedStackResource9E449E87OutputstransformerrootstackBoardBoardDataSource99BFC69FName" + }, + "FunctionVersion": "2018-05-29", + "Name": "MoodItemBoardDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/MoodItem.board.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/MoodItem.board.res.vtl" + ] + ] + } + } + }, + "MoodItemboardResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "board", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "BoardmoodItemsauth0FunctionBoardmoodItemsauth0FunctionAppSyncFunction24F8C273", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MoodItemBoardDataResolverFnMoodItemBoardDataResolverFnAppSyncFunction5C7B0B1B", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"MoodItem\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"board\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackBoardNestedStackBoardNestedStackResource9E449E87OutputstransformerrootstackBoardBoardTable30788E07Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "MoodItem" + } + } + }, + "Parameters": { + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemMoodItemDataSource0777FF0CName": { + "Type": "String" + }, + "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemMoodItemTable5135EED9Ref": { + "Type": "String" + }, + "referencetotransformerrootstackBoardNestedStackBoardNestedStackResource9E449E87OutputstransformerrootstackBoardBoardDataSource99BFC69FName": { + "Type": "String" + }, + "referencetotransformerrootstackBoardNestedStackBoardNestedStackResource9E449E87OutputstransformerrootstackBoardBoardTable30788E07Ref": { + "Type": "String" + } + } +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-CustomResourcesjson-x.description.txt b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-CustomResourcesjson-x.description.txt new file mode 100644 index 00000000000..21e1447423e --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-CustomResourcesjson-x.description.txt @@ -0,0 +1 @@ +An auto-generated nested stack. diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-CustomResourcesjson-x.outputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-CustomResourcesjson-x.outputs.json new file mode 100644 index 00000000000..291e7aad7f7 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-CustomResourcesjson-x.outputs.json @@ -0,0 +1,7 @@ +[ + { + "OutputKey": "EmptyOutput", + "OutputValue": "", + "Description": "An empty output. You may delete this if you have at least one resource above." + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-CustomResourcesjson-x.parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-CustomResourcesjson-x.parameters.json new file mode 100644 index 00000000000..566cf38b2af --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-CustomResourcesjson-x.parameters.json @@ -0,0 +1,22 @@ +[ + { + "ParameterKey": "S3DeploymentBucket", + "ParameterValue": "amplify-moodboard-x-x-deployment" + }, + { + "ParameterKey": "AppSyncApiId", + "ParameterValue": "pd6mhagtyveltorgdvv7movvqq" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "S3DeploymentRootKey", + "ParameterValue": "amplify-appsync-files/5c491eab2bbf740cbba1e26a8e9053c2c881af96" + }, + { + "ParameterKey": "AppSyncApiName", + "ParameterValue": "moodboard" + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-CustomResourcesjson-x.template.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-CustomResourcesjson-x.template.json new file mode 100644 index 00000000000..5fe357d6096 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-CustomResourcesjson-x.template.json @@ -0,0 +1,61 @@ +{ + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "An auto-generated nested stack.", + "Metadata": {}, + "Parameters": { + "AppSyncApiId": { + "Type": "String", + "Description": "The id of the AppSync API associated with this project." + }, + "AppSyncApiName": { + "Type": "String", + "Description": "The name of the AppSync API", + "Default": "AppSyncSimpleTransform" + }, + "env": { + "Type": "String", + "Description": "The environment name. e.g. Dev, Test, or Production", + "Default": "NONE" + }, + "S3DeploymentBucket": { + "Type": "String", + "Description": "The S3 bucket containing all deployment assets for the project." + }, + "S3DeploymentRootKey": { + "Type": "String", + "Description": "An S3 key relative to the S3DeploymentBucket that points to the root\nof the deployment directory." + } + }, + "Resources": { + "EmptyResource": { + "Type": "Custom::EmptyResource", + "Condition": "AlwaysFalse" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + } + ] + }, + "AlwaysFalse": { + "Fn::Equals": [ + "true", + "false" + ] + } + }, + "Outputs": { + "EmptyOutput": { + "Description": "An empty output. You may delete this if you have at least one resource above.", + "Value": "" + } + } +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-FunctionDirectiveStack-x.description.txt b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-FunctionDirectiveStack-x.description.txt new file mode 100644 index 00000000000..6b3d983ba60 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-FunctionDirectiveStack-x.description.txt @@ -0,0 +1 @@ +An auto-generated nested stack for the @function directive. diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-FunctionDirectiveStack-x.outputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-FunctionDirectiveStack-x.outputs.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-FunctionDirectiveStack-x.outputs.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-FunctionDirectiveStack-x.parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-FunctionDirectiveStack-x.parameters.json new file mode 100644 index 00000000000..44c4cf2c2d6 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-FunctionDirectiveStack-x.parameters.json @@ -0,0 +1,22 @@ +[ + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", + "ParameterValue": "amplify-appsync-files/5c491eab2bbf740cbba1e26a8e9053c2c881af96" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", + "ParameterValue": "pd6mhagtyveltorgdvv7movvqq" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", + "ParameterValue": "amplify-moodboard-x-x-deployment" + }, + { + "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", + "ParameterValue": "x" + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-FunctionDirectiveStack-x.template.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-FunctionDirectiveStack-x.template.json new file mode 100644 index 00000000000..6e717da2ea7 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-FunctionDirectiveStack-x.template.json @@ -0,0 +1,495 @@ +{ + "Description": "An auto-generated nested stack for the @function directive.", + "AWSTemplateFormatVersion": "2010-09-09", + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + } + }, + "Resources": { + "MoodboardGetRandomEmojiLambdaDataSourceServiceRole80A7D70B": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + } + } + }, + "MoodboardGetRandomEmojiLambdaDataSourceServiceRoleDefaultPolicy231460F5": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardGetRandomEmoji-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardGetRandomEmoji" + } + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardGetRandomEmoji-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardGetRandomEmoji" + } + ] + }, + ":*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "MoodboardGetRandomEmojiLambdaDataSourceServiceRoleDefaultPolicy231460F5", + "Roles": [ + { + "Ref": "MoodboardGetRandomEmojiLambdaDataSourceServiceRole80A7D70B" + } + ] + } + }, + "MoodboardGetRandomEmojiLambdaDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "LambdaConfig": { + "LambdaFunctionArn": { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardGetRandomEmoji-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardGetRandomEmoji" + } + ] + } + }, + "Name": "MoodboardGetRandomEmojiLambdaDataSource", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "MoodboardGetRandomEmojiLambdaDataSourceServiceRole80A7D70B", + "Arn" + ] + }, + "Type": "AWS_LAMBDA" + } + }, + "InvokeMoodboardGetRandomEmojiLambdaDataSourceInvokeMoodboardGetRandomEmojiLambdaDataSourceAppSyncFunctionDA9E25C2": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "MoodboardGetRandomEmojiLambdaDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "InvokeMoodboardGetRandomEmojiLambdaDataSource", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeMoodboardGetRandomEmojiLambdaDataSource.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeMoodboardGetRandomEmojiLambdaDataSource.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "MoodboardGetRandomEmojiLambdaDataSource" + ] + }, + "QuerygetRandomEmojiResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getRandomEmoji", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QueryGetRandomEmojiAuthFNQueryGetRandomEmojiAuthFNAppSyncFunction4A668110", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "InvokeMoodboardGetRandomEmojiLambdaDataSourceInvokeMoodboardGetRandomEmojiLambdaDataSourceAppSyncFunctionDA9E25C2", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getRandomEmoji\"))\n{}\n## [End] Stash resolver specific context.. **", + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getRandomEmoji.res.vtl" + ] + ] + }, + "TypeName": "Query" + } + }, + "MoodboardKinesisReaderLambdaDataSourceServiceRole0DD9733A": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + } + } + }, + "MoodboardKinesisReaderLambdaDataSourceServiceRoleDefaultPolicy83734E31": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardKinesisReader-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardKinesisReader" + } + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardKinesisReader-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardKinesisReader" + } + ] + }, + ":*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "MoodboardKinesisReaderLambdaDataSourceServiceRoleDefaultPolicy83734E31", + "Roles": [ + { + "Ref": "MoodboardKinesisReaderLambdaDataSourceServiceRole0DD9733A" + } + ] + } + }, + "MoodboardKinesisReaderLambdaDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "LambdaConfig": { + "LambdaFunctionArn": { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardKinesisReader-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:moodboardKinesisReader" + } + ] + } + }, + "Name": "MoodboardKinesisReaderLambdaDataSource", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "MoodboardKinesisReaderLambdaDataSourceServiceRole0DD9733A", + "Arn" + ] + }, + "Type": "AWS_LAMBDA" + } + }, + "InvokeMoodboardKinesisReaderLambdaDataSourceInvokeMoodboardKinesisReaderLambdaDataSourceAppSyncFunctionDD5E9972": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "MoodboardKinesisReaderLambdaDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "InvokeMoodboardKinesisReaderLambdaDataSource", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeMoodboardKinesisReaderLambdaDataSource.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeMoodboardKinesisReaderLambdaDataSource.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "MoodboardKinesisReaderLambdaDataSource" + ] + }, + "QuerygetKinesisEventsResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getKinesisEvents", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QueryGetRandomEmojiAuthFNQueryGetRandomEmojiAuthFNAppSyncFunction4A668110", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "InvokeMoodboardKinesisReaderLambdaDataSourceInvokeMoodboardKinesisReaderLambdaDataSourceAppSyncFunctionDD5E9972", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getKinesisEvents\"))\n{}\n## [End] Stash resolver specific context.. **", + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getKinesisEvents.res.vtl" + ] + ] + }, + "TypeName": "Query" + } + }, + "QueryGetRandomEmojiAuthFNQueryGetRandomEmojiAuthFNAppSyncFunction4A668110": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryGetRandomEmojiAuthFN", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getRandomEmoji.auth.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + } + }, + "Parameters": { + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Type": "String" + } + } +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-MoodItem-x.description.txt b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-MoodItem-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-MoodItem-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-MoodItem-x.outputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-MoodItem-x.outputs.json new file mode 100644 index 00000000000..b46bb88191f --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-MoodItem-x.outputs.json @@ -0,0 +1,56 @@ +[ + { + "OutputKey": "GetAttMoodItemTableStreamArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/MoodItem-pd6mhagtyveltorgdvv7movvqq-x/stream/2026-04-15T04:22:18.110", + "Description": "Your DynamoDB table StreamArn.", + "ExportName": "pd6mhagtyveltorgdvv7movvqq:GetAtt:MoodItemTable:StreamArn" + }, + { + "OutputKey": "GetAttMoodItemDataSourceName", + "OutputValue": "MoodItemTable", + "Description": "Your model DataSource name.", + "ExportName": "pd6mhagtyveltorgdvv7movvqq:GetAtt:MoodItemDataSource:Name" + }, + { + "OutputKey": "transformerrootstackMoodItemMoodItemTable5135EED9Ref", + "OutputValue": "MoodItem-pd6mhagtyveltorgdvv7movvqq-x" + }, + { + "OutputKey": "transformerrootstackMoodItemQuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunctionA2A15C1FFunctionId", + "OutputValue": "lmjqv4r5wvalhf33svv3f4h42y" + }, + { + "OutputKey": "transformerrootstackMoodItemSubscriptionOnCreateMoodItemDataResolverFnSubscriptionOnCreateMoodItemDataResolverFnAppSyncFunctionE0588344FunctionId", + "OutputValue": "hcoadlsitvfd3dtkroowtxgefy" + }, + { + "OutputKey": "transformerrootstackMoodItemMoodItemDataSource0777FF0CName", + "OutputValue": "MoodItemTable" + }, + { + "OutputKey": "transformerrootstackMoodItemMutationcreateMoodIteminit0FunctionMutationcreateMoodIteminit0FunctionAppSyncFunctionA7648B0CFunctionId", + "OutputValue": "y5hj2r3wkbhwnfvtnytqg6vakm" + }, + { + "OutputKey": "transformerrootstackMoodItemMutationupdateMoodIteminit0FunctionMutationupdateMoodIteminit0FunctionAppSyncFunctionA5BB53A1FunctionId", + "OutputValue": "ntl7z7rbx5db5eovlakyuezxlq" + }, + { + "OutputKey": "transformerrootstackMoodItemQuerygetMoodItemauth0FunctionQuerygetMoodItemauth0FunctionAppSyncFunctionBB402264FunctionId", + "OutputValue": "xfjy2brxbrhupg3vwrufsgqhqa" + }, + { + "OutputKey": "transformerrootstackMoodItemMutationcreateMoodItemauth0FunctionMutationcreateMoodItemauth0FunctionAppSyncFunction8743A884FunctionId", + "OutputValue": "6k5i7swotbgv3asogjzqhdfpxi" + }, + { + "OutputKey": "GetAttMoodItemTableName", + "OutputValue": "MoodItem-pd6mhagtyveltorgdvv7movvqq-x", + "Description": "Your DynamoDB table name.", + "ExportName": "pd6mhagtyveltorgdvv7movvqq:GetAtt:MoodItemTable:Name" + }, + { + "OutputKey": "transformerrootstackMoodItemSubscriptiononCreateMoodItemauth0FunctionSubscriptiononCreateMoodItemauth0FunctionAppSyncFunction643A2F06FunctionId", + "OutputValue": "u47ijnto3jhnfbjyiy5tj5rbdu" + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-MoodItem-x.parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-MoodItem-x.parameters.json new file mode 100644 index 00000000000..d33f63118cf --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-MoodItem-x.parameters.json @@ -0,0 +1,42 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", + "ParameterValue": "amplify-appsync-files/5c491eab2bbf740cbba1e26a8e9053c2c881af96" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", + "ParameterValue": "pd6mhagtyveltorgdvv7movvqq" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", + "ParameterValue": "amplify-moodboard-x-x-deployment" + }, + { + "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", + "ParameterValue": "x" + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-MoodItem-x.template.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-MoodItem-x.template.json new file mode 100644 index 00000000000..116e6b49a00 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x-MoodItem-x.template.json @@ -0,0 +1,1616 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "MoodItemTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + }, + { + "AttributeName": "boardID", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "GlobalSecondaryIndexes": [ + { + "IndexName": "byBoard", + "KeySchema": [ + { + "AttributeName": "boardID", + "KeyType": "HASH" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + } + ], + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "MoodItem-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Retain" + }, + "MoodItemIAMRoleF26F66C1": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem", + "dynamodb:ConditionCheckItem", + "dynamodb:DescribeTable", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "MoodItem-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "MoodItem-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess" + } + ], + "RoleName": { + "Fn::Join": [ + "", + [ + "MoodItemIAMRoleceb4fa-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "MoodItemIAMRoleDefaultPolicyC757A82D": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "MoodItemTable", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "MoodItemTable", + "Arn" + ] + }, + "/index/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "MoodItemIAMRoleDefaultPolicyC757A82D", + "Roles": [ + { + "Ref": "MoodItemIAMRoleF26F66C1" + } + ] + } + }, + "MoodItemDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "MoodItemTable" + } + }, + "Name": "MoodItemTable", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "MoodItemIAMRoleF26F66C1", + "Arn" + ] + }, + "Type": "AMAZON_DYNAMODB" + }, + "DependsOn": [ + "MoodItemIAMRoleF26F66C1" + ] + }, + "QuerygetMoodItemauth0FunctionQuerygetMoodItemauth0FunctionAppSyncFunctionCAE48F92": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetMoodItemauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getMoodItem.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "QuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunction58B7D6AA": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetMoodItempostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getMoodItem.postAuth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "QueryGetMoodItemDataResolverFnQueryGetMoodItemDataResolverFnAppSyncFunction0BCF2013": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "MoodItemDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryGetMoodItemDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getMoodItem.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getMoodItem.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "MoodItemDataSource" + ] + }, + "GetMoodItemResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getMoodItem", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerygetMoodItemauth0FunctionQuerygetMoodItemauth0FunctionAppSyncFunctionCAE48F92", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunction58B7D6AA", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryGetMoodItemDataResolverFnQueryGetMoodItemDataResolverFnAppSyncFunction0BCF2013", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getMoodItem\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "MoodItemTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + } + }, + "QueryListMoodItemsDataResolverFnQueryListMoodItemsDataResolverFnAppSyncFunction970FB8D0": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "MoodItemDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryListMoodItemsDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listMoodItems.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listMoodItems.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "MoodItemDataSource" + ] + }, + "ListMoodItemResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listMoodItems", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerygetMoodItemauth0FunctionQuerygetMoodItemauth0FunctionAppSyncFunctionCAE48F92", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunction58B7D6AA", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryListMoodItemsDataResolverFnQueryListMoodItemsDataResolverFnAppSyncFunction970FB8D0", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listMoodItems\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "MoodItemTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + } + }, + "MutationcreateMoodIteminit0FunctionMutationcreateMoodIteminit0FunctionAppSyncFunction0FB01D04": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateMoodIteminit0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createMoodItem.init.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "MutationcreateMoodItemauth0FunctionMutationcreateMoodItemauth0FunctionAppSyncFunction27CBB022": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateMoodItemauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createMoodItem.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "MutationCreateMoodItemDataResolverFnMutationCreateMoodItemDataResolverFnAppSyncFunction050303E2": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "MoodItemDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationCreateMoodItemDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createMoodItem.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createMoodItem.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "MoodItemDataSource" + ] + }, + "CreateMoodItemResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createMoodItem", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationcreateMoodIteminit0FunctionMutationcreateMoodIteminit0FunctionAppSyncFunction0FB01D04", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationcreateMoodItemauth0FunctionMutationcreateMoodItemauth0FunctionAppSyncFunction27CBB022", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunction58B7D6AA", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationCreateMoodItemDataResolverFnMutationCreateMoodItemDataResolverFnAppSyncFunction050303E2", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createMoodItem\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "MoodItemTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "MutationupdateMoodIteminit0FunctionMutationupdateMoodIteminit0FunctionAppSyncFunctionF04BFE8B": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateMoodIteminit0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateMoodItem.init.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "MutationupdateMoodItemauth0FunctionMutationupdateMoodItemauth0FunctionAppSyncFunctionD40CC9A2": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "MoodItemDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateMoodItemauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateMoodItem.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateMoodItem.auth.1.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "MoodItemDataSource" + ] + }, + "MutationUpdateMoodItemDataResolverFnMutationUpdateMoodItemDataResolverFnAppSyncFunction3EC4BB9B": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "MoodItemDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationUpdateMoodItemDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateMoodItem.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateMoodItem.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "MoodItemDataSource" + ] + }, + "UpdateMoodItemResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateMoodItem", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationupdateMoodIteminit0FunctionMutationupdateMoodIteminit0FunctionAppSyncFunctionF04BFE8B", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationupdateMoodItemauth0FunctionMutationupdateMoodItemauth0FunctionAppSyncFunctionD40CC9A2", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunction58B7D6AA", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationUpdateMoodItemDataResolverFnMutationUpdateMoodItemDataResolverFnAppSyncFunction3EC4BB9B", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateMoodItem\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "MoodItemTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "MutationdeleteMoodItemauth0FunctionMutationdeleteMoodItemauth0FunctionAppSyncFunction959662BA": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "MoodItemDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeleteMoodItemauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteMoodItem.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteMoodItem.auth.1.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "MoodItemDataSource" + ] + }, + "MutationDeleteMoodItemDataResolverFnMutationDeleteMoodItemDataResolverFnAppSyncFunction06493368": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "MoodItemDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationDeleteMoodItemDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteMoodItem.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteMoodItem.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "MoodItemDataSource" + ] + }, + "DeleteMoodItemResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteMoodItem", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationdeleteMoodItemauth0FunctionMutationdeleteMoodItemauth0FunctionAppSyncFunction959662BA", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunction58B7D6AA", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationDeleteMoodItemDataResolverFnMutationDeleteMoodItemDataResolverFnAppSyncFunction06493368", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteMoodItem\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "MoodItemTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "SubscriptiononCreateMoodItemauth0FunctionSubscriptiononCreateMoodItemauth0FunctionAppSyncFunctionA9BF5E3B": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononCreateMoodItemauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Subscription.onCreateMoodItem.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "SubscriptionOnCreateMoodItemDataResolverFnSubscriptionOnCreateMoodItemDataResolverFnAppSyncFunction913B4EC5": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnCreateMoodItemDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Subscription.onCreateMoodItem.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Subscription.onCreateMoodItem.res.vtl" + ] + ] + } + } + }, + "SubscriptiononCreateMoodItemResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateMoodItem", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononCreateMoodItemauth0FunctionSubscriptiononCreateMoodItemauth0FunctionAppSyncFunctionA9BF5E3B", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunction58B7D6AA", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnCreateMoodItemDataResolverFnSubscriptionOnCreateMoodItemDataResolverFnAppSyncFunction913B4EC5", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateMoodItem\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + }, + "SubscriptiononUpdateMoodItemResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateMoodItem", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononCreateMoodItemauth0FunctionSubscriptiononCreateMoodItemauth0FunctionAppSyncFunctionA9BF5E3B", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunction58B7D6AA", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnCreateMoodItemDataResolverFnSubscriptionOnCreateMoodItemDataResolverFnAppSyncFunction913B4EC5", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateMoodItem\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + }, + "SubscriptiononDeleteMoodItemResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteMoodItem", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononCreateMoodItemauth0FunctionSubscriptiononCreateMoodItemauth0FunctionAppSyncFunctionA9BF5E3B", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunction58B7D6AA", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnCreateMoodItemDataResolverFnSubscriptionOnCreateMoodItemDataResolverFnAppSyncFunction913B4EC5", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteMoodItem\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + }, + "QueryMoodItemsByBoardIDDataResolverFnQueryMoodItemsByBoardIDDataResolverFnAppSyncFunction6B85D371": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "MoodItemDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryMoodItemsByBoardIDDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.moodItemsByBoardID.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.moodItemsByBoardID.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "MoodItemDataSource" + ] + }, + "QuerymoodItemsByBoardIDResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "moodItemsByBoardID", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerygetMoodItemauth0FunctionQuerygetMoodItemauth0FunctionAppSyncFunctionCAE48F92", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunction58B7D6AA", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryMoodItemsByBoardIDDataResolverFnQueryMoodItemsByBoardIDDataResolverFnAppSyncFunction6B85D371", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"moodItemsByBoardID\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "MoodItemTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:9e333039-1177-4414-8157-d3d19326c7d5\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + } + } + }, + "Outputs": { + "GetAttMoodItemTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "MoodItemTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:MoodItemTable:StreamArn" + ] + ] + } + } + }, + "GetAttMoodItemTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "MoodItemTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:MoodItemTable:Name" + ] + ] + } + } + }, + "GetAttMoodItemDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "MoodItemDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:MoodItemDataSource:Name" + ] + ] + } + } + }, + "transformerrootstackMoodItemQuerygetMoodItemauth0FunctionQuerygetMoodItemauth0FunctionAppSyncFunctionBB402264FunctionId": { + "Value": { + "Fn::GetAtt": [ + "QuerygetMoodItemauth0FunctionQuerygetMoodItemauth0FunctionAppSyncFunctionCAE48F92", + "FunctionId" + ] + } + }, + "transformerrootstackMoodItemQuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunctionA2A15C1FFunctionId": { + "Value": { + "Fn::GetAtt": [ + "QuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunction58B7D6AA", + "FunctionId" + ] + } + }, + "transformerrootstackMoodItemMutationcreateMoodIteminit0FunctionMutationcreateMoodIteminit0FunctionAppSyncFunctionA7648B0CFunctionId": { + "Value": { + "Fn::GetAtt": [ + "MutationcreateMoodIteminit0FunctionMutationcreateMoodIteminit0FunctionAppSyncFunction0FB01D04", + "FunctionId" + ] + } + }, + "transformerrootstackMoodItemMutationcreateMoodItemauth0FunctionMutationcreateMoodItemauth0FunctionAppSyncFunction8743A884FunctionId": { + "Value": { + "Fn::GetAtt": [ + "MutationcreateMoodItemauth0FunctionMutationcreateMoodItemauth0FunctionAppSyncFunction27CBB022", + "FunctionId" + ] + } + }, + "transformerrootstackMoodItemMutationupdateMoodIteminit0FunctionMutationupdateMoodIteminit0FunctionAppSyncFunctionA5BB53A1FunctionId": { + "Value": { + "Fn::GetAtt": [ + "MutationupdateMoodIteminit0FunctionMutationupdateMoodIteminit0FunctionAppSyncFunctionF04BFE8B", + "FunctionId" + ] + } + }, + "transformerrootstackMoodItemSubscriptiononCreateMoodItemauth0FunctionSubscriptiononCreateMoodItemauth0FunctionAppSyncFunction643A2F06FunctionId": { + "Value": { + "Fn::GetAtt": [ + "SubscriptiononCreateMoodItemauth0FunctionSubscriptiononCreateMoodItemauth0FunctionAppSyncFunctionA9BF5E3B", + "FunctionId" + ] + } + }, + "transformerrootstackMoodItemSubscriptionOnCreateMoodItemDataResolverFnSubscriptionOnCreateMoodItemDataResolverFnAppSyncFunctionE0588344FunctionId": { + "Value": { + "Fn::GetAtt": [ + "SubscriptionOnCreateMoodItemDataResolverFnSubscriptionOnCreateMoodItemDataResolverFnAppSyncFunction913B4EC5", + "FunctionId" + ] + } + }, + "transformerrootstackMoodItemMoodItemDataSource0777FF0CName": { + "Value": { + "Fn::GetAtt": [ + "MoodItemDataSource", + "Name" + ] + } + }, + "transformerrootstackMoodItemMoodItemTable5135EED9Ref": { + "Value": { + "Ref": "MoodItemTable" + } + } + } +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x.description.txt b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x.description.txt new file mode 100644 index 00000000000..f9e13281dee --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"api-AppSync","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x.outputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x.outputs.json new file mode 100644 index 00000000000..65a6f0282e7 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x.outputs.json @@ -0,0 +1,20 @@ +[ + { + "OutputKey": "GraphQLAPIIdOutput", + "OutputValue": "pd6mhagtyveltorgdvv7movvqq", + "Description": "Your GraphQL API ID.", + "ExportName": "amplify-moodboard-x-x-apimoodboard-x:GraphQLApiId" + }, + { + "OutputKey": "GraphQLAPIEndpointOutput", + "OutputValue": "https://3hbeijkqlfendc2wyilh3flfly.appsync-api.us-east-1.amazonaws.com/graphql", + "Description": "Your GraphQL API endpoint.", + "ExportName": "amplify-moodboard-x-x-apimoodboard-x:GraphQLApiEndpoint" + }, + { + "OutputKey": "GraphQLAPIKeyOutput", + "OutputValue": "da2-fakeapikey00000000000000", + "Description": "Your GraphQL API ID.", + "ExportName": "amplify-moodboard-x-x-apimoodboard-x:GraphQLApiKey" + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x.parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x.parameters.json new file mode 100644 index 00000000000..03576f549bd --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x.parameters.json @@ -0,0 +1,42 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "S3DeploymentBucket", + "ParameterValue": "amplify-moodboard-x-x-deployment" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "S3DeploymentRootKey", + "ParameterValue": "amplify-appsync-files/5c491eab2bbf740cbba1e26a8e9053c2c881af96" + }, + { + "ParameterKey": "AppSyncApiName", + "ParameterValue": "moodboard" + }, + { + "ParameterKey": "AuthCognitoUserPoolId", + "ParameterValue": "us-east-1_wDScdYiSe" + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x.template.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x.template.json new file mode 100644 index 00000000000..33c264e6ff6 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-apimoodboard-x.template.json @@ -0,0 +1,575 @@ +{ + "Parameters": { + "env": { + "Type": "String", + "Default": "NONE" + }, + "AppSyncApiName": { + "Type": "String", + "Default": "AppSyncSimpleTransform" + }, + "AuthCognitoUserPoolId": { + "Type": "String" + }, + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "S3DeploymentBucket": { + "Type": "String", + "Description": "An S3 Bucket name where assets are deployed" + }, + "S3DeploymentRootKey": { + "Type": "String", + "Description": "An S3 key relative to the S3DeploymentBucket that points to the root of the deployment directory." + } + }, + "Resources": { + "GraphQLAPI": { + "Type": "AWS::AppSync::GraphQLApi", + "Properties": { + "AdditionalAuthenticationProviders": [ + { + "AuthenticationType": "AMAZON_COGNITO_USER_POOLS", + "UserPoolConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "UserPoolId": { + "Ref": "AuthCognitoUserPoolId" + } + } + } + ], + "AuthenticationType": "API_KEY", + "Name": { + "Fn::Join": [ + "", + [ + { + "Ref": "AppSyncApiName" + }, + "-", + { + "Ref": "env" + } + ] + ] + } + } + }, + "GraphQLAPITransformerSchema3CB2AE18": { + "Type": "AWS::AppSync::GraphQLSchema", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "DefinitionS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/schema.graphql" + ] + ] + } + } + }, + "GraphQLAPIDefaultApiKey215A6DD7": { + "Type": "AWS::AppSync::ApiKey", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "Description": "moodBoard API Key", + "Expires": 1807762873 + } + }, + "GraphQLAPINONEDS95A13CF0": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "Name": "NONE_DS", + "Type": "NONE" + } + }, + "MoodItem": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + } + }, + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/MoodItem.json" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "Board": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemQuerygetMoodItemauth0FunctionQuerygetMoodItemauth0FunctionAppSyncFunctionBB402264FunctionId": { + "Fn::GetAtt": [ + "MoodItem", + "Outputs.transformerrootstackMoodItemQuerygetMoodItemauth0FunctionQuerygetMoodItemauth0FunctionAppSyncFunctionBB402264FunctionId" + ] + }, + "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemQuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunctionA2A15C1FFunctionId": { + "Fn::GetAtt": [ + "MoodItem", + "Outputs.transformerrootstackMoodItemQuerygetMoodItempostAuth0FunctionQuerygetMoodItempostAuth0FunctionAppSyncFunctionA2A15C1FFunctionId" + ] + }, + "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemMutationcreateMoodIteminit0FunctionMutationcreateMoodIteminit0FunctionAppSyncFunctionA7648B0CFunctionId": { + "Fn::GetAtt": [ + "MoodItem", + "Outputs.transformerrootstackMoodItemMutationcreateMoodIteminit0FunctionMutationcreateMoodIteminit0FunctionAppSyncFunctionA7648B0CFunctionId" + ] + }, + "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemMutationcreateMoodItemauth0FunctionMutationcreateMoodItemauth0FunctionAppSyncFunction8743A884FunctionId": { + "Fn::GetAtt": [ + "MoodItem", + "Outputs.transformerrootstackMoodItemMutationcreateMoodItemauth0FunctionMutationcreateMoodItemauth0FunctionAppSyncFunction8743A884FunctionId" + ] + }, + "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemMutationupdateMoodIteminit0FunctionMutationupdateMoodIteminit0FunctionAppSyncFunctionA5BB53A1FunctionId": { + "Fn::GetAtt": [ + "MoodItem", + "Outputs.transformerrootstackMoodItemMutationupdateMoodIteminit0FunctionMutationupdateMoodIteminit0FunctionAppSyncFunctionA5BB53A1FunctionId" + ] + }, + "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemSubscriptiononCreateMoodItemauth0FunctionSubscriptiononCreateMoodItemauth0FunctionAppSyncFunction643A2F06FunctionId": { + "Fn::GetAtt": [ + "MoodItem", + "Outputs.transformerrootstackMoodItemSubscriptiononCreateMoodItemauth0FunctionSubscriptiononCreateMoodItemauth0FunctionAppSyncFunction643A2F06FunctionId" + ] + }, + "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemSubscriptionOnCreateMoodItemDataResolverFnSubscriptionOnCreateMoodItemDataResolverFnAppSyncFunctionE0588344FunctionId": { + "Fn::GetAtt": [ + "MoodItem", + "Outputs.transformerrootstackMoodItemSubscriptionOnCreateMoodItemDataResolverFnSubscriptionOnCreateMoodItemDataResolverFnAppSyncFunctionE0588344FunctionId" + ] + } + }, + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/Board.json" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "FunctionDirectiveStack": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + } + }, + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/FunctionDirectiveStack.json" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "ConnectionStack": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemMoodItemDataSource0777FF0CName": { + "Fn::GetAtt": [ + "MoodItem", + "Outputs.transformerrootstackMoodItemMoodItemDataSource0777FF0CName" + ] + }, + "referencetotransformerrootstackMoodItemNestedStackMoodItemNestedStackResource1C28E2A1OutputstransformerrootstackMoodItemMoodItemTable5135EED9Ref": { + "Fn::GetAtt": [ + "MoodItem", + "Outputs.transformerrootstackMoodItemMoodItemTable5135EED9Ref" + ] + }, + "referencetotransformerrootstackBoardNestedStackBoardNestedStackResource9E449E87OutputstransformerrootstackBoardBoardDataSource99BFC69FName": { + "Fn::GetAtt": [ + "Board", + "Outputs.transformerrootstackBoardBoardDataSource99BFC69FName" + ] + }, + "referencetotransformerrootstackBoardNestedStackBoardNestedStackResource9E449E87OutputstransformerrootstackBoardBoardTable30788E07Ref": { + "Fn::GetAtt": [ + "Board", + "Outputs.transformerrootstackBoardBoardTable30788E07Ref" + ] + } + }, + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/ConnectionStack.json" + ] + ] + } + }, + "DependsOn": [ + "Board", + "GraphQLAPITransformerSchema3CB2AE18", + "MoodItem" + ] + }, + "CustomResourcesjson": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "AppSyncApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "AppSyncApiName": { + "Ref": "AppSyncApiName" + }, + "env": { + "Ref": "env" + }, + "S3DeploymentBucket": { + "Ref": "S3DeploymentBucket" + }, + "S3DeploymentRootKey": { + "Ref": "S3DeploymentRootKey" + } + }, + "TemplateURL": { + "Fn::Join": [ + "/", + [ + "https://s3.amazonaws.com", + { + "Ref": "S3DeploymentBucket" + }, + { + "Ref": "S3DeploymentRootKey" + }, + "stacks", + "CustomResources.json" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPI", + "GraphQLAPITransformerSchema3CB2AE18", + "MoodItem", + "Board", + "FunctionDirectiveStack", + "ConnectionStack" + ] + } + }, + "Outputs": { + "GraphQLAPIKeyOutput": { + "Description": "Your GraphQL API ID.", + "Value": { + "Fn::GetAtt": [ + "GraphQLAPIDefaultApiKey215A6DD7", + "ApiKey" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "AWS::StackName" + }, + "GraphQLApiKey" + ] + ] + } + } + }, + "GraphQLAPIIdOutput": { + "Description": "Your GraphQL API ID.", + "Value": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "AWS::StackName" + }, + "GraphQLApiId" + ] + ] + } + } + }, + "GraphQLAPIEndpointOutput": { + "Description": "Your GraphQL API endpoint.", + "Value": { + "Fn::GetAtt": [ + "GraphQLAPI", + "GraphQLUrl" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "AWS::StackName" + }, + "GraphQLApiEndpoint" + ] + ] + } + } + } + }, + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-authmoodboard759ae00a-x.description.txt b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-authmoodboard759ae00a-x.description.txt new file mode 100644 index 00000000000..348d1236678 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-authmoodboard759ae00a-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"auth-Cognito","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-authmoodboard759ae00a-x.outputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-authmoodboard759ae00a-x.outputs.json new file mode 100644 index 00000000000..3389c4ef8a8 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-authmoodboard759ae00a-x.outputs.json @@ -0,0 +1,35 @@ +[ + { + "OutputKey": "UserPoolId", + "OutputValue": "us-east-1_wDScdYiSe", + "Description": "Id for the user pool" + }, + { + "OutputKey": "AppClientIDWeb", + "OutputValue": "34sh75m6c73hj9t6cs8a3pf2sq", + "Description": "The user pool app client id for web" + }, + { + "OutputKey": "AppClientID", + "OutputValue": "5it3jnls1mnjbe8a9sit31e6ep", + "Description": "The user pool app client id" + }, + { + "OutputKey": "IdentityPoolId", + "OutputValue": "us-east-1:b4ae1cf8-c548-4712-a947-1738d119032f", + "Description": "Id for the identity pool" + }, + { + "OutputKey": "UserPoolArn", + "OutputValue": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_wDScdYiSe", + "Description": "Arn for the user pool" + }, + { + "OutputKey": "IdentityPoolName", + "OutputValue": "moodboard759ae00a_identitypool_759ae00a__x" + }, + { + "OutputKey": "UserPoolName", + "OutputValue": "moodboard759ae00a_userpool_759ae00a" + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-authmoodboard759ae00a-x.parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-authmoodboard759ae00a-x.parameters.json new file mode 100644 index 00000000000..e3af94d58bc --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-authmoodboard759ae00a-x.parameters.json @@ -0,0 +1,146 @@ +[ + { + "ParameterKey": "usernameAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "authRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-moodboard-x-x-authRole" + }, + { + "ParameterKey": "autoVerifiedAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "allowUnauthenticatedIdentities", + "ParameterValue": "true" + }, + { + "ParameterKey": "smsVerificationMessage", + "ParameterValue": "Your verification code is {####}" + }, + { + "ParameterKey": "userpoolClientReadAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "breakCircularDependency", + "ParameterValue": "true" + }, + { + "ParameterKey": "mfaTypes", + "ParameterValue": "SMS Text Message" + }, + { + "ParameterKey": "emailVerificationSubject", + "ParameterValue": "Your verification code" + }, + { + "ParameterKey": "sharedId", + "ParameterValue": "759ae00a" + }, + { + "ParameterKey": "useDefault", + "ParameterValue": "default" + }, + { + "ParameterKey": "userpoolClientGenerateSecret", + "ParameterValue": "false" + }, + { + "ParameterKey": "mfaConfiguration", + "ParameterValue": "OFF" + }, + { + "ParameterKey": "identityPoolName", + "ParameterValue": "moodboard759ae00a_identitypool_759ae00a" + }, + { + "ParameterKey": "userPoolGroupList", + "ParameterValue": "" + }, + { + "ParameterKey": "authSelections", + "ParameterValue": "identityPoolAndUserPool" + }, + { + "ParameterKey": "resourceNameTruncated", + "ParameterValue": "moodbo759ae00a" + }, + { + "ParameterKey": "smsAuthenticationMessage", + "ParameterValue": "Your authentication code is {####}" + }, + { + "ParameterKey": "passwordPolicyMinLength", + "ParameterValue": "8" + }, + { + "ParameterKey": "userPoolName", + "ParameterValue": "moodboard759ae00a_userpool_759ae00a" + }, + { + "ParameterKey": "userpoolClientWriteAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "dependsOn", + "ParameterValue": "" + }, + { + "ParameterKey": "useEnabledMfas", + "ParameterValue": "true" + }, + { + "ParameterKey": "usernameCaseSensitive", + "ParameterValue": "false" + }, + { + "ParameterKey": "resourceName", + "ParameterValue": "moodboard759ae00a" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "serviceName", + "ParameterValue": "Cognito" + }, + { + "ParameterKey": "emailVerificationMessage", + "ParameterValue": "Your verification code is {####}" + }, + { + "ParameterKey": "userpoolClientRefreshTokenValidity", + "ParameterValue": "30" + }, + { + "ParameterKey": "userpoolClientSetAttributes", + "ParameterValue": "false" + }, + { + "ParameterKey": "unauthRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-moodboard-x-x-unauthRole" + }, + { + "ParameterKey": "requiredAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "passwordPolicyCharacters", + "ParameterValue": "" + }, + { + "ParameterKey": "aliasAttributes", + "ParameterValue": "" + }, + { + "ParameterKey": "userpoolClientLambdaRole", + "ParameterValue": "moodbo759ae00a_userpoolclient_lambda_role" + }, + { + "ParameterKey": "defaultPasswordPolicy", + "ParameterValue": "false" + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-authmoodboard759ae00a-x.template.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-authmoodboard759ae00a-x.template.json new file mode 100644 index 00000000000..0a99c89800f --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-authmoodboard759ae00a-x.template.json @@ -0,0 +1,413 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "identityPoolName": { + "Type": "String" + }, + "allowUnauthenticatedIdentities": { + "Type": "String" + }, + "resourceNameTruncated": { + "Type": "String" + }, + "userPoolName": { + "Type": "String" + }, + "autoVerifiedAttributes": { + "Type": "CommaDelimitedList" + }, + "mfaConfiguration": { + "Type": "String" + }, + "mfaTypes": { + "Type": "CommaDelimitedList" + }, + "smsAuthenticationMessage": { + "Type": "String" + }, + "smsVerificationMessage": { + "Type": "String" + }, + "emailVerificationSubject": { + "Type": "String" + }, + "emailVerificationMessage": { + "Type": "String" + }, + "defaultPasswordPolicy": { + "Type": "String" + }, + "passwordPolicyMinLength": { + "Type": "String" + }, + "passwordPolicyCharacters": { + "Type": "CommaDelimitedList" + }, + "requiredAttributes": { + "Type": "CommaDelimitedList" + }, + "aliasAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientGenerateSecret": { + "Type": "String" + }, + "userpoolClientRefreshTokenValidity": { + "Type": "String" + }, + "userpoolClientWriteAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientReadAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientLambdaRole": { + "Type": "String" + }, + "userpoolClientSetAttributes": { + "Type": "String" + }, + "sharedId": { + "Type": "String" + }, + "resourceName": { + "Type": "String" + }, + "authSelections": { + "Type": "String" + }, + "useDefault": { + "Type": "String" + }, + "usernameAttributes": { + "Type": "CommaDelimitedList" + }, + "userPoolGroupList": { + "Type": "CommaDelimitedList" + }, + "serviceName": { + "Type": "String" + }, + "usernameCaseSensitive": { + "Type": "String" + }, + "useEnabledMfas": { + "Type": "String" + }, + "authRoleArn": { + "Type": "String" + }, + "unauthRoleArn": { + "Type": "String" + }, + "breakCircularDependency": { + "Type": "String" + }, + "dependsOn": { + "Type": "CommaDelimitedList" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + } + }, + "Resources": { + "UserPool": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": { + "Ref": "emailVerificationMessage" + }, + "EmailVerificationSubject": { + "Ref": "emailVerificationSubject" + }, + "MfaConfiguration": { + "Ref": "mfaConfiguration" + }, + "Policies": { + "PasswordPolicy": { + "MinimumLength": { + "Ref": "passwordPolicyMinLength" + }, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + { + "Ref": "userPoolName" + }, + { + "Fn::Join": [ + "", + [ + { + "Ref": "userPoolName" + }, + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "UsernameAttributes": { + "Ref": "usernameAttributes" + }, + "UsernameConfiguration": { + "CaseSensitive": false + } + } + }, + "UserPoolClientWeb": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "moodbo759ae00a_app_clientWeb", + "RefreshTokenValidity": { + "Ref": "userpoolClientRefreshTokenValidity" + }, + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": { + "Ref": "UserPool" + } + }, + "DependsOn": [ + "UserPool" + ] + }, + "UserPoolClient": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "moodbo759ae00a_app_client", + "GenerateSecret": { + "Ref": "userpoolClientGenerateSecret" + }, + "RefreshTokenValidity": { + "Ref": "userpoolClientRefreshTokenValidity" + }, + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": { + "Ref": "UserPool" + } + }, + "DependsOn": [ + "UserPool" + ] + }, + "UserPoolClientRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + }, + "Action": "sts:AssumeRole" + } + ] + }, + "RoleName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + { + "Ref": "userpoolClientLambdaRole" + }, + { + "Fn::Join": [ + "", + [ + "upClientLambdaRole759ae00a", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + { + "Ref": "AWS::StackName" + } + ] + } + ] + }, + "-", + { + "Ref": "env" + } + ] + ] + } + ] + } + } + }, + "IdentityPool": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": { + "Ref": "allowUnauthenticatedIdentities" + }, + "CognitoIdentityProviders": [ + { + "ClientId": { + "Ref": "UserPoolClient" + }, + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": { + "Ref": "UserPool" + } + } + ] + } + }, + { + "ClientId": { + "Ref": "UserPoolClientWeb" + }, + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": { + "Ref": "UserPool" + } + } + ] + } + } + ], + "IdentityPoolName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "moodboard759ae00a_identitypool_759ae00a", + { + "Fn::Join": [ + "", + [ + "moodboard759ae00a_identitypool_759ae00a__", + { + "Ref": "env" + } + ] + ] + } + ] + } + } + }, + "IdentityPoolRoleMap": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": { + "Ref": "IdentityPool" + }, + "Roles": { + "unauthenticated": { + "Ref": "unauthRoleArn" + }, + "authenticated": { + "Ref": "authRoleArn" + } + } + }, + "DependsOn": [ + "IdentityPool" + ] + } + }, + "Outputs": { + "IdentityPoolId": { + "Description": "Id for the identity pool", + "Value": { + "Ref": "IdentityPool" + } + }, + "IdentityPoolName": { + "Value": { + "Fn::GetAtt": [ + "IdentityPool", + "Name" + ] + } + }, + "UserPoolId": { + "Description": "Id for the user pool", + "Value": { + "Ref": "UserPool" + } + }, + "UserPoolArn": { + "Description": "Arn for the user pool", + "Value": { + "Fn::GetAtt": [ + "UserPool", + "Arn" + ] + } + }, + "UserPoolName": { + "Value": { + "Ref": "userPoolName" + } + }, + "AppClientIDWeb": { + "Description": "The user pool app client id for web", + "Value": { + "Ref": "UserPoolClientWeb" + } + }, + "AppClientID": { + "Description": "The user pool app client id", + "Value": { + "Ref": "UserPoolClient" + } + } + } +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-functionmoodboardGetRandomEmoji-x.description.txt b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-functionmoodboardGetRandomEmoji-x.description.txt new file mode 100644 index 00000000000..6cc2b5048c0 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-functionmoodboardGetRandomEmoji-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"function-Lambda","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-functionmoodboardGetRandomEmoji-x.outputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-functionmoodboardGetRandomEmoji-x.outputs.json new file mode 100644 index 00000000000..78b74b016a4 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-functionmoodboardGetRandomEmoji-x.outputs.json @@ -0,0 +1,22 @@ +[ + { + "OutputKey": "LambdaExecutionRoleArn", + "OutputValue": "arn:aws:iam::123456789012:role/moodboardLambdaRolef849b419-x" + }, + { + "OutputKey": "Region", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "Arn", + "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:moodboardGetRandomEmoji-x" + }, + { + "OutputKey": "Name", + "OutputValue": "moodboardGetRandomEmoji-x" + }, + { + "OutputKey": "LambdaExecutionRole", + "OutputValue": "moodboardLambdaRolef849b419-x" + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-functionmoodboardGetRandomEmoji-x.parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-functionmoodboardGetRandomEmoji-x.parameters.json new file mode 100644 index 00000000000..8fdc35d3009 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-functionmoodboardGetRandomEmoji-x.parameters.json @@ -0,0 +1,18 @@ +[ + { + "ParameterKey": "CloudWatchRule", + "ParameterValue": "NONE" + }, + { + "ParameterKey": "s3Key", + "ParameterValue": "amplify-builds/moodboardGetRandomEmoji-59616d4f4b546a305a75-build.zip" + }, + { + "ParameterKey": "deploymentBucketName", + "ParameterValue": "amplify-moodboard-x-x-deployment" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-functionmoodboardGetRandomEmoji-x.template.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-functionmoodboardGetRandomEmoji-x.template.json new file mode 100644 index 00000000000..ffc01232f92 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-functionmoodboardGetRandomEmoji-x.template.json @@ -0,0 +1,202 @@ +{ + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Parameters": { + "CloudWatchRule": { + "Type": "String", + "Default": "NONE", + "Description": " Schedule Expression" + }, + "deploymentBucketName": { + "Type": "String" + }, + "env": { + "Type": "String" + }, + "s3Key": { + "Type": "String" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + } + }, + "Resources": { + "LambdaFunction": { + "Type": "AWS::Lambda::Function", + "Metadata": { + "aws:asset:path": "./src", + "aws:asset:property": "Code" + }, + "Properties": { + "Code": { + "S3Bucket": { + "Ref": "deploymentBucketName" + }, + "S3Key": { + "Ref": "s3Key" + } + }, + "Handler": "index.handler", + "FunctionName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "moodboardGetRandomEmoji", + { + "Fn::Join": [ + "", + [ + "moodboardGetRandomEmoji", + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "Environment": { + "Variables": { + "ENV": { + "Ref": "env" + }, + "REGION": { + "Ref": "AWS::Region" + } + } + }, + "Role": { + "Fn::GetAtt": [ + "LambdaExecutionRole", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Layers": [], + "Timeout": 25 + } + }, + "LambdaExecutionRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "RoleName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "moodboardLambdaRolef849b419", + { + "Fn::Join": [ + "", + [ + "moodboardLambdaRolef849b419", + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": [ + "lambda.amazonaws.com" + ] + }, + "Action": [ + "sts:AssumeRole" + ] + } + ] + } + } + }, + "lambdaexecutionpolicy": { + "DependsOn": [ + "LambdaExecutionRole" + ], + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyName": "lambda-execution-policy", + "Roles": [ + { + "Ref": "LambdaExecutionRole" + } + ], + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "logs:CreateLogGroup", + "logs:CreateLogStream", + "logs:PutLogEvents" + ], + "Resource": { + "Fn::Sub": [ + "arn:aws:logs:${region}:${account}:log-group:/aws/lambda/${lambda}:log-stream:*", + { + "region": { + "Ref": "AWS::Region" + }, + "account": { + "Ref": "AWS::AccountId" + }, + "lambda": { + "Ref": "LambdaFunction" + } + } + ] + } + } + ] + } + } + } + }, + "Outputs": { + "Name": { + "Value": { + "Ref": "LambdaFunction" + } + }, + "Arn": { + "Value": { + "Fn::GetAtt": [ + "LambdaFunction", + "Arn" + ] + } + }, + "Region": { + "Value": { + "Ref": "AWS::Region" + } + }, + "LambdaExecutionRole": { + "Value": { + "Ref": "LambdaExecutionRole" + } + }, + "LambdaExecutionRoleArn": { + "Value": { + "Fn::GetAtt": [ + "LambdaExecutionRole", + "Arn" + ] + } + } + } +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-functionmoodboardKinesisReader-x.description.txt b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-functionmoodboardKinesisReader-x.description.txt new file mode 100644 index 00000000000..6cc2b5048c0 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-functionmoodboardKinesisReader-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"function-Lambda","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-functionmoodboardKinesisReader-x.outputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-functionmoodboardKinesisReader-x.outputs.json new file mode 100644 index 00000000000..8c51c278e9d --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-functionmoodboardKinesisReader-x.outputs.json @@ -0,0 +1,22 @@ +[ + { + "OutputKey": "LambdaExecutionRoleArn", + "OutputValue": "arn:aws:iam::123456789012:role/moodboardLambdaRole1f55eecd-x" + }, + { + "OutputKey": "Region", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "Arn", + "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:moodboardKinesisReader-x" + }, + { + "OutputKey": "Name", + "OutputValue": "moodboardKinesisReader-x" + }, + { + "OutputKey": "LambdaExecutionRole", + "OutputValue": "moodboardLambdaRole1f55eecd-x" + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-functionmoodboardKinesisReader-x.parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-functionmoodboardKinesisReader-x.parameters.json new file mode 100644 index 00000000000..ad6bb6a9053 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-functionmoodboardKinesisReader-x.parameters.json @@ -0,0 +1,22 @@ +[ + { + "ParameterKey": "CloudWatchRule", + "ParameterValue": "NONE" + }, + { + "ParameterKey": "s3Key", + "ParameterValue": "amplify-builds/moodboardKinesisReader-4934782b72546e51707a-build.zip" + }, + { + "ParameterKey": "analyticsmoodboardKinesiskinesisStreamArn", + "ParameterValue": "arn:aws:kinesis:us-east-1:123456789012:stream/moodboardKinesis-x" + }, + { + "ParameterKey": "deploymentBucketName", + "ParameterValue": "amplify-moodboard-x-x-deployment" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-functionmoodboardKinesisReader-x.template.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-functionmoodboardKinesisReader-x.template.json new file mode 100644 index 00000000000..b6744df2dd3 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-functionmoodboardKinesisReader-x.template.json @@ -0,0 +1,248 @@ +{ + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Parameters": { + "CloudWatchRule": { + "Type": "String", + "Default": "NONE", + "Description": " Schedule Expression" + }, + "deploymentBucketName": { + "Type": "String" + }, + "env": { + "Type": "String" + }, + "s3Key": { + "Type": "String" + }, + "analyticsmoodboardKinesiskinesisStreamArn": { + "Type": "String", + "Default": "analyticsmoodboardKinesiskinesisStreamArn" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + } + }, + "Resources": { + "LambdaFunction": { + "Type": "AWS::Lambda::Function", + "Metadata": { + "aws:asset:path": "./src", + "aws:asset:property": "Code" + }, + "Properties": { + "Code": { + "S3Bucket": { + "Ref": "deploymentBucketName" + }, + "S3Key": { + "Ref": "s3Key" + } + }, + "Handler": "index.handler", + "FunctionName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "moodboardKinesisReader", + { + "Fn::Join": [ + "", + [ + "moodboardKinesisReader", + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "Environment": { + "Variables": { + "ENV": { + "Ref": "env" + }, + "REGION": { + "Ref": "AWS::Region" + }, + "ANALYTICS_MOODBOARDKINESIS_KINESISSTREAMARN": { + "Ref": "analyticsmoodboardKinesiskinesisStreamArn" + } + } + }, + "Role": { + "Fn::GetAtt": [ + "LambdaExecutionRole", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Layers": [], + "Timeout": 25 + } + }, + "LambdaExecutionRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "RoleName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "moodboardLambdaRole1f55eecd", + { + "Fn::Join": [ + "", + [ + "moodboardLambdaRole1f55eecd", + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": [ + "lambda.amazonaws.com" + ] + }, + "Action": [ + "sts:AssumeRole" + ] + } + ] + } + } + }, + "lambdaexecutionpolicy": { + "DependsOn": [ + "LambdaExecutionRole" + ], + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyName": "lambda-execution-policy", + "Roles": [ + { + "Ref": "LambdaExecutionRole" + } + ], + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "logs:CreateLogGroup", + "logs:CreateLogStream", + "logs:PutLogEvents" + ], + "Resource": { + "Fn::Sub": [ + "arn:aws:logs:${region}:${account}:log-group:/aws/lambda/${lambda}:log-stream:*", + { + "region": { + "Ref": "AWS::Region" + }, + "account": { + "Ref": "AWS::AccountId" + }, + "lambda": { + "Ref": "LambdaFunction" + } + } + ] + } + } + ] + } + } + }, + "AmplifyResourcesPolicy": { + "DependsOn": [ + "LambdaExecutionRole" + ], + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyName": "amplify-lambda-execution-policy", + "Roles": [ + { + "Ref": "LambdaExecutionRole" + } + ], + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "kinesis:ListShards", + "kinesis:ListStreams", + "kinesis:ListStreamConsumers", + "kinesis:DescribeStream", + "kinesis:DescribeStreamSummary", + "kinesis:DescribeStreamConsumer", + "kinesis:GetRecords", + "kinesis:GetShardIterator", + "kinesis:SubscribeToShard", + "kinesis:DescribeLimits", + "kinesis:ListTagsForStream", + "kinesis:SubscribeToShard" + ], + "Resource": { + "Ref": "analyticsmoodboardKinesiskinesisStreamArn" + } + } + ] + } + } + } + }, + "Outputs": { + "Name": { + "Value": { + "Ref": "LambdaFunction" + } + }, + "Arn": { + "Value": { + "Fn::GetAtt": [ + "LambdaFunction", + "Arn" + ] + } + }, + "Region": { + "Value": { + "Ref": "AWS::Region" + } + }, + "LambdaExecutionRole": { + "Value": { + "Ref": "LambdaExecutionRole" + } + }, + "LambdaExecutionRoleArn": { + "Value": { + "Fn::GetAtt": [ + "LambdaExecutionRole", + "Arn" + ] + } + } + } +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-storagemoodboardStorage-x.description.txt b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-storagemoodboardStorage-x.description.txt new file mode 100644 index 00000000000..e01eac85f24 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-storagemoodboardStorage-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"storage-S3","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-storagemoodboardStorage-x.outputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-storagemoodboardStorage-x.outputs.json new file mode 100644 index 00000000000..528c012d59c --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-storagemoodboardStorage-x.outputs.json @@ -0,0 +1,11 @@ +[ + { + "OutputKey": "BucketName", + "OutputValue": "moodboard20e29595008142e3ad16f01c4066e1c4x-x", + "Description": "Bucket name for the S3 bucket" + }, + { + "OutputKey": "Region", + "OutputValue": "us-east-1" + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-storagemoodboardStorage-x.parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-storagemoodboardStorage-x.parameters.json new file mode 100644 index 00000000000..6c1536b31a7 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-storagemoodboardStorage-x.parameters.json @@ -0,0 +1,86 @@ +[ + { + "ParameterKey": "s3PermissionsGuestPublic", + "ParameterValue": "s3:GetObject" + }, + { + "ParameterKey": "bucketName", + "ParameterValue": "moodboard20e29595008142e3ad16f01c4066e1c4" + }, + { + "ParameterKey": "s3PublicPolicy", + "ParameterValue": "Public_policy_206c638b" + }, + { + "ParameterKey": "AuthenticatedAllowList", + "ParameterValue": "ALLOW" + }, + { + "ParameterKey": "unauthRoleName", + "ParameterValue": "amplify-moodboard-x-x-unauthRole" + }, + { + "ParameterKey": "s3PrivatePolicy", + "ParameterValue": "Private_policy_206c638b" + }, + { + "ParameterKey": "selectedGuestPermissions", + "ParameterValue": "s3:GetObject,s3:ListBucket" + }, + { + "ParameterKey": "s3PermissionsAuthenticatedPublic", + "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" + }, + { + "ParameterKey": "s3PermissionsAuthenticatedPrivate", + "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" + }, + { + "ParameterKey": "s3PermissionsAuthenticatedUploads", + "ParameterValue": "s3:PutObject" + }, + { + "ParameterKey": "s3UploadsPolicy", + "ParameterValue": "Uploads_policy_206c638b" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "unauthPolicyName", + "ParameterValue": "s3_amplify_206c638b" + }, + { + "ParameterKey": "authRoleName", + "ParameterValue": "amplify-moodboard-x-x-authRole" + }, + { + "ParameterKey": "GuestAllowList", + "ParameterValue": "ALLOW" + }, + { + "ParameterKey": "authPolicyName", + "ParameterValue": "s3_amplify_206c638b" + }, + { + "ParameterKey": "s3ProtectedPolicy", + "ParameterValue": "Protected_policy_206c638b" + }, + { + "ParameterKey": "s3PermissionsAuthenticatedProtected", + "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" + }, + { + "ParameterKey": "s3PermissionsGuestUploads", + "ParameterValue": "DISALLOW" + }, + { + "ParameterKey": "s3ReadPolicy", + "ParameterValue": "read_policy_206c638b" + }, + { + "ParameterKey": "selectedAuthenticatedPermissions", + "ParameterValue": "s3:PutObject,s3:GetObject,s3:ListBucket,s3:DeleteObject" + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-storagemoodboardStorage-x.template.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-storagemoodboardStorage-x.template.json new file mode 100644 index 00000000000..204a64677c8 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x-storagemoodboardStorage-x.template.json @@ -0,0 +1,646 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-S3\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "bucketName": { + "Type": "String" + }, + "authRoleName": { + "Type": "String" + }, + "unauthRoleName": { + "Type": "String" + }, + "authPolicyName": { + "Type": "String" + }, + "unauthPolicyName": { + "Type": "String" + }, + "s3PublicPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3PrivatePolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3ProtectedPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3UploadsPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3ReadPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3PermissionsAuthenticatedPublic": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedProtected": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedPrivate": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedUploads": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsGuestPublic": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsGuestUploads": { + "Type": "String", + "Default": "DISALLOW" + }, + "AuthenticatedAllowList": { + "Type": "String", + "Default": "DISALLOW" + }, + "GuestAllowList": { + "Type": "String", + "Default": "DISALLOW" + }, + "selectedGuestPermissions": { + "Type": "CommaDelimitedList", + "Default": "NONE" + }, + "selectedAuthenticatedPermissions": { + "Type": "CommaDelimitedList", + "Default": "NONE" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + }, + "CreateAuthPublic": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "s3PermissionsAuthenticatedPublic" + }, + "DISALLOW" + ] + } + ] + }, + "CreateAuthProtected": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "s3PermissionsAuthenticatedProtected" + }, + "DISALLOW" + ] + } + ] + }, + "CreateAuthPrivate": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "s3PermissionsAuthenticatedPrivate" + }, + "DISALLOW" + ] + } + ] + }, + "CreateAuthUploads": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "s3PermissionsAuthenticatedUploads" + }, + "DISALLOW" + ] + } + ] + }, + "CreateGuestPublic": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "s3PermissionsGuestPublic" + }, + "DISALLOW" + ] + } + ] + }, + "CreateGuestUploads": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "s3PermissionsGuestUploads" + }, + "DISALLOW" + ] + } + ] + }, + "AuthReadAndList": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "AuthenticatedAllowList" + }, + "DISALLOW" + ] + } + ] + }, + "GuestReadAndList": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "GuestAllowList" + }, + "DISALLOW" + ] + } + ] + } + }, + "Outputs": { + "BucketName": { + "Description": "Bucket name for the S3 bucket", + "Value": { + "Ref": "S3Bucket" + } + }, + "Region": { + "Value": { + "Ref": "AWS::Region" + } + } + }, + "Resources": { + "S3Bucket": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + { + "Ref": "bucketName" + }, + { + "Fn::Join": [ + "", + [ + { + "Ref": "bucketName" + }, + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + { + "Ref": "AWS::StackName" + } + ] + } + ] + }, + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "Id": "S3CORSRuleId1", + "MaxAge": 3000 + } + ] + }, + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + } + }, + "UpdateReplacePolicy": "Retain", + "DeletionPolicy": "Retain" + }, + "S3AuthPublicPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + { + "Ref": "s3PermissionsAuthenticatedPublic" + } + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + }, + "/public/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": { + "Ref": "s3PublicPolicy" + }, + "Roles": [ + { + "Ref": "authRoleName" + } + ] + }, + "DependsOn": [ + "S3Bucket" + ], + "Condition": "CreateAuthPublic" + }, + "S3AuthProtectedPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + { + "Ref": "s3PermissionsAuthenticatedProtected" + } + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + }, + "/protected/${cognito-identity.amazonaws.com:sub}/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": { + "Ref": "s3ProtectedPolicy" + }, + "Roles": [ + { + "Ref": "authRoleName" + } + ] + }, + "DependsOn": [ + "S3Bucket" + ], + "Condition": "CreateAuthProtected" + }, + "S3AuthPrivatePolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + { + "Ref": "s3PermissionsAuthenticatedPrivate" + } + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + }, + "/private/${cognito-identity.amazonaws.com:sub}/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": { + "Ref": "s3PrivatePolicy" + }, + "Roles": [ + { + "Ref": "authRoleName" + } + ] + }, + "DependsOn": [ + "S3Bucket" + ], + "Condition": "CreateAuthPrivate" + }, + "S3AuthUploadPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + { + "Ref": "s3PermissionsAuthenticatedUploads" + } + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + }, + "/uploads/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": { + "Ref": "s3UploadsPolicy" + }, + "Roles": [ + { + "Ref": "authRoleName" + } + ] + }, + "DependsOn": [ + "S3Bucket" + ], + "Condition": "CreateAuthUploads" + }, + "S3GuestPublicPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + { + "Ref": "s3PermissionsGuestPublic" + } + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + }, + "/public/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": { + "Ref": "s3PublicPolicy" + }, + "Roles": [ + { + "Ref": "unauthRoleName" + } + ] + }, + "DependsOn": [ + "S3Bucket" + ], + "Condition": "CreateGuestPublic" + }, + "S3AuthReadPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + }, + "/protected/*" + ] + ] + } + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/", + "public/*", + "protected/", + "protected/*", + "private/${cognito-identity.amazonaws.com:sub}/", + "private/${cognito-identity.amazonaws.com:sub}/*" + ] + } + }, + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + } + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": { + "Ref": "s3ReadPolicy" + }, + "Roles": [ + { + "Ref": "authRoleName" + } + ] + }, + "DependsOn": [ + "S3Bucket" + ], + "Condition": "AuthReadAndList" + }, + "S3GuestReadPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + }, + "/protected/*" + ] + ] + } + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/", + "public/*", + "protected/", + "protected/*" + ] + } + }, + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + } + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": { + "Ref": "s3ReadPolicy" + }, + "Roles": [ + { + "Ref": "unauthRoleName" + } + ] + }, + "DependsOn": [ + "S3Bucket" + ], + "Condition": "GuestReadAndList" + } + } +} diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x.description.txt b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x.description.txt new file mode 100644 index 00000000000..6e1d8ff2351 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x.description.txt @@ -0,0 +1 @@ +Root Stack for AWS Amplify CLI diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x.outputs.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x.outputs.json new file mode 100644 index 00000000000..fdd71d48733 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x.outputs.json @@ -0,0 +1,42 @@ +[ + { + "OutputKey": "AuthRoleName", + "OutputValue": "amplify-moodboard-x-x-authRole" + }, + { + "OutputKey": "UnauthRoleArn", + "OutputValue": "arn:aws:iam::123456789012:role/amplify-moodboard-x-x-unauthRole" + }, + { + "OutputKey": "AuthRoleArn", + "OutputValue": "arn:aws:iam::123456789012:role/amplify-moodboard-x-x-authRole" + }, + { + "OutputKey": "Region", + "OutputValue": "us-east-1", + "Description": "CloudFormation provider root stack Region", + "ExportName": "amplify-moodboard-x-x-Region" + }, + { + "OutputKey": "DeploymentBucketName", + "OutputValue": "amplify-moodboard-x-x-deployment", + "Description": "CloudFormation provider root stack deployment bucket name", + "ExportName": "amplify-moodboard-x-x-DeploymentBucketName" + }, + { + "OutputKey": "UnauthRoleName", + "OutputValue": "amplify-moodboard-x-x-unauthRole" + }, + { + "OutputKey": "StackName", + "OutputValue": "amplify-moodboard-x-x", + "Description": "CloudFormation provider root stack ID", + "ExportName": "amplify-moodboard-x-x-StackName" + }, + { + "OutputKey": "StackId", + "OutputValue": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-moodboard-x-x/61829dd0-3882-11f1-b5b8-0afffe97e059", + "Description": "CloudFormation provider root stack name", + "ExportName": "amplify-moodboard-x-x-StackId" + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x.parameters.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x.parameters.json new file mode 100644 index 00000000000..f7265c2119a --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x.parameters.json @@ -0,0 +1,14 @@ +[ + { + "ParameterKey": "AuthRoleName", + "ParameterValue": "amplify-moodboard-x-x-authRole" + }, + { + "ParameterKey": "DeploymentBucketName", + "ParameterValue": "amplify-moodboard-x-x-deployment" + }, + { + "ParameterKey": "UnauthRoleName", + "ParameterValue": "amplify-moodboard-x-x-unauthRole" + } +] diff --git a/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x.template.json b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x.template.json new file mode 100644 index 00000000000..376668f1942 --- /dev/null +++ b/amplify-migration-apps/mood-board/_snapshot.pre.refactor/amplify-moodboard-x-x.template.json @@ -0,0 +1,560 @@ +{ + "Description": "Root Stack for AWS Amplify CLI", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "DeploymentBucketName": { + "Type": "String", + "Default": "DeploymentBucket", + "Description": "Name of the common deployment bucket provided by the parent stack" + }, + "AuthRoleName": { + "Type": "String", + "Default": "AuthRoleName", + "Description": "Name of the common deployment bucket provided by the parent stack" + }, + "UnauthRoleName": { + "Type": "String", + "Default": "UnAuthRoleName", + "Description": "Name of the common deployment bucket provided by the parent stack" + } + }, + "Outputs": { + "Region": { + "Description": "CloudFormation provider root stack Region", + "Value": { + "Ref": "AWS::Region" + }, + "Export": { + "Name": { + "Fn::Sub": "${AWS::StackName}-Region" + } + } + }, + "StackName": { + "Description": "CloudFormation provider root stack ID", + "Value": { + "Ref": "AWS::StackName" + }, + "Export": { + "Name": { + "Fn::Sub": "${AWS::StackName}-StackName" + } + } + }, + "StackId": { + "Description": "CloudFormation provider root stack name", + "Value": { + "Ref": "AWS::StackId" + }, + "Export": { + "Name": { + "Fn::Sub": "${AWS::StackName}-StackId" + } + } + }, + "AuthRoleArn": { + "Value": { + "Fn::GetAtt": [ + "AuthRole", + "Arn" + ] + } + }, + "UnauthRoleArn": { + "Value": { + "Fn::GetAtt": [ + "UnauthRole", + "Arn" + ] + } + }, + "DeploymentBucketName": { + "Description": "CloudFormation provider root stack deployment bucket name", + "Value": { + "Ref": "DeploymentBucketName" + }, + "Export": { + "Name": { + "Fn::Sub": "${AWS::StackName}-DeploymentBucketName" + } + } + }, + "AuthRoleName": { + "Value": { + "Ref": "AuthRole" + } + }, + "UnauthRoleName": { + "Value": { + "Ref": "UnauthRole" + } + } + }, + "Resources": { + "DeploymentBucket": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketName": { + "Ref": "DeploymentBucketName" + }, + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + } + }, + "UpdateReplacePolicy": "Retain", + "DeletionPolicy": "Retain" + }, + "DeploymentBucketBlockHTTP": { + "Type": "AWS::S3::BucketPolicy", + "Properties": { + "Bucket": { + "Ref": "DeploymentBucketName" + }, + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:*", + "Effect": "Deny", + "Principal": "*", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "DeploymentBucketName" + }, + "/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "DeploymentBucketName" + } + ] + ] + } + ], + "Condition": { + "Bool": { + "aws:SecureTransport": false + } + } + } + ] + } + } + }, + "AuthRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Sid": "", + "Effect": "Deny", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + }, + "Action": "sts:AssumeRoleWithWebIdentity" + } + ] + }, + "RoleName": { + "Ref": "AuthRoleName" + } + } + }, + "UnauthRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Sid": "", + "Effect": "Deny", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + }, + "Action": "sts:AssumeRoleWithWebIdentity" + } + ] + }, + "RoleName": { + "Ref": "UnauthRoleName" + } + } + }, + "authmoodboard759ae00a": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-x-x-deployment/amplify-cfn-templates/auth/moodboard759ae00a-cloudformation-template.json", + "Parameters": { + "identityPoolName": "moodboard759ae00a_identitypool_759ae00a", + "allowUnauthenticatedIdentities": true, + "resourceNameTruncated": "moodbo759ae00a", + "userPoolName": "moodboard759ae00a_userpool_759ae00a", + "autoVerifiedAttributes": "email", + "mfaConfiguration": "OFF", + "mfaTypes": "SMS Text Message", + "smsAuthenticationMessage": "Your authentication code is {####}", + "smsVerificationMessage": "Your verification code is {####}", + "emailVerificationSubject": "Your verification code", + "emailVerificationMessage": "Your verification code is {####}", + "defaultPasswordPolicy": false, + "passwordPolicyMinLength": 8, + "passwordPolicyCharacters": "", + "requiredAttributes": "email", + "aliasAttributes": "", + "userpoolClientGenerateSecret": false, + "userpoolClientRefreshTokenValidity": 30, + "userpoolClientWriteAttributes": "email", + "userpoolClientReadAttributes": "email", + "userpoolClientLambdaRole": "moodbo759ae00a_userpoolclient_lambda_role", + "userpoolClientSetAttributes": false, + "sharedId": "759ae00a", + "resourceName": "moodboard759ae00a", + "authSelections": "identityPoolAndUserPool", + "useDefault": "default", + "usernameAttributes": "email", + "userPoolGroupList": "", + "serviceName": "Cognito", + "usernameCaseSensitive": false, + "useEnabledMfas": true, + "authRoleArn": { + "Fn::GetAtt": [ + "AuthRole", + "Arn" + ] + }, + "unauthRoleArn": { + "Fn::GetAtt": [ + "UnauthRole", + "Arn" + ] + }, + "breakCircularDependency": true, + "dependsOn": "", + "env": "x" + } + } + }, + "apimoodboard": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "Parameters": { + "AppSyncApiName": "moodboard", + "DynamoDBBillingMode": "PAY_PER_REQUEST", + "DynamoDBEnableServerSideEncryption": false, + "AuthCognitoUserPoolId": { + "Fn::GetAtt": [ + "authmoodboard759ae00a", + "Outputs.UserPoolId" + ] + }, + "S3DeploymentBucket": "amplify-moodboard-x-x-deployment", + "S3DeploymentRootKey": "amplify-appsync-files/5c491eab2bbf740cbba1e26a8e9053c2c881af96", + "env": "x" + } + } + }, + "storagemoodboardStorage": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-x-x-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "Parameters": { + "bucketName": "moodboard20e29595008142e3ad16f01c4066e1c4", + "selectedGuestPermissions": "s3:GetObject,s3:ListBucket", + "selectedAuthenticatedPermissions": "s3:PutObject,s3:GetObject,s3:ListBucket,s3:DeleteObject", + "unauthRoleName": { + "Ref": "UnauthRoleName" + }, + "authRoleName": { + "Ref": "AuthRoleName" + }, + "s3PrivatePolicy": "Private_policy_206c638b", + "s3ProtectedPolicy": "Protected_policy_206c638b", + "s3PublicPolicy": "Public_policy_206c638b", + "s3ReadPolicy": "read_policy_206c638b", + "s3UploadsPolicy": "Uploads_policy_206c638b", + "authPolicyName": "s3_amplify_206c638b", + "unauthPolicyName": "s3_amplify_206c638b", + "AuthenticatedAllowList": "ALLOW", + "GuestAllowList": "ALLOW", + "s3PermissionsAuthenticatedPrivate": "s3:PutObject,s3:GetObject,s3:DeleteObject", + "s3PermissionsAuthenticatedProtected": "s3:PutObject,s3:GetObject,s3:DeleteObject", + "s3PermissionsAuthenticatedPublic": "s3:PutObject,s3:GetObject,s3:DeleteObject", + "s3PermissionsAuthenticatedUploads": "s3:PutObject", + "s3PermissionsGuestPublic": "s3:GetObject", + "s3PermissionsGuestUploads": "DISALLOW", + "env": "x" + } + } + }, + "functionmoodboardGetRandomEmoji": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-x-x-deployment/amplify-cfn-templates/function/moodboardGetRandomEmoji-cloudformation-template.json", + "Parameters": { + "deploymentBucketName": "amplify-moodboard-x-x-deployment", + "s3Key": "amplify-builds/moodboardGetRandomEmoji-59616d4f4b546a305a75-build.zip", + "env": "x" + } + } + }, + "functionmoodboardKinesisReader": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-x-x-deployment/amplify-cfn-templates/function/moodboardKinesisReader-cloudformation-template.json", + "Parameters": { + "deploymentBucketName": "amplify-moodboard-x-x-deployment", + "s3Key": "amplify-builds/moodboardKinesisReader-4934782b72546e51707a-build.zip", + "analyticsmoodboardKinesiskinesisStreamArn": { + "Fn::GetAtt": [ + "analyticsmoodboardKinesis", + "Outputs.kinesisStreamArn" + ] + }, + "env": "x" + } + } + }, + "analyticsmoodboardKinesis": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-moodboard-x-x-deployment/amplify-cfn-templates/analytics/kinesis-cloudformation-template.json", + "Parameters": { + "kinesisStreamName": "moodboardKinesis", + "kinesisStreamShardCount": 1, + "authRoleName": { + "Ref": "AuthRoleName" + }, + "unauthRoleName": { + "Ref": "UnauthRoleName" + }, + "authPolicyName": "kinesis_amplify_bca5ce95", + "unauthPolicyName": "kinesis_amplify_bca5ce95", + "env": "x" + } + } + }, + "UpdateRolesWithIDPFunction": { + "DependsOn": [ + "AuthRole", + "UnauthRole", + "authmoodboard759ae00a" + ], + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "ZipFile": { + "Fn::Join": [ + "\n", + [ + "const response = require('cfn-response');", + "const { IAMClient, GetRoleCommand, UpdateAssumeRolePolicyCommand } = require('@aws-sdk/client-iam');", + "exports.handler = function(event, context) {", + " // Don't return promise, response.send() marks context as done internally", + " const ignoredPromise = handleEvent(event, context)", + "};", + "async function handleEvent(event, context) {", + " try {", + " let authRoleName = event.ResourceProperties.authRoleName;", + " let unauthRoleName = event.ResourceProperties.unauthRoleName;", + " let idpId = event.ResourceProperties.idpId;", + " let authParamsJson = {", + " 'Version': '2012-10-17',", + " 'Statement': [{", + " 'Effect': 'Allow',", + " 'Principal': {'Federated': 'cognito-identity.amazonaws.com'},", + " 'Action': 'sts:AssumeRoleWithWebIdentity',", + " 'Condition': {", + " 'StringEquals': {'cognito-identity.amazonaws.com:aud': idpId},", + " 'ForAnyValue:StringLike': {'cognito-identity.amazonaws.com:amr': 'authenticated'}", + " }", + " }]", + " };", + " let unauthParamsJson = {", + " 'Version': '2012-10-17',", + " 'Statement': [{", + " 'Effect': 'Allow',", + " 'Principal': {'Federated': 'cognito-identity.amazonaws.com'},", + " 'Action': 'sts:AssumeRoleWithWebIdentity',", + " 'Condition': {", + " 'StringEquals': {'cognito-identity.amazonaws.com:aud': idpId},", + " 'ForAnyValue:StringLike': {'cognito-identity.amazonaws.com:amr': 'unauthenticated'}", + " }", + " }]", + " };", + " if (event.RequestType === 'Delete') {", + " try {", + " delete authParamsJson.Statement[0].Condition;", + " delete unauthParamsJson.Statement[0].Condition;", + " authParamsJson.Statement[0].Effect = 'Deny'", + " unauthParamsJson.Statement[0].Effect = 'Deny'", + " let authParams = {PolicyDocument: JSON.stringify(authParamsJson), RoleName: authRoleName};", + " let unauthParams = {PolicyDocument: JSON.stringify(unauthParamsJson), RoleName: unauthRoleName};", + " const iam = new IAMClient({region: event.ResourceProperties.region});", + " let res = await Promise.all([", + " iam.send(new GetRoleCommand({RoleName: authParams.RoleName})),", + " iam.send(new GetRoleCommand({RoleName: unauthParams.RoleName}))", + " ]);", + " res = await Promise.all([", + " iam.send(new UpdateAssumeRolePolicyCommand(authParams)),", + " iam.send(new UpdateAssumeRolePolicyCommand(unauthParams))", + " ]);", + " response.send(event, context, response.SUCCESS, {});", + " } catch (err) {", + " console.log(err.stack);", + " response.send(event, context, response.SUCCESS, {Error: err});", + " }", + " } else if (event.RequestType === 'Update' || event.RequestType === 'Create') {", + " const iam = new IAMClient({region: event.ResourceProperties.region});", + " let authParams = {PolicyDocument: JSON.stringify(authParamsJson), RoleName: authRoleName};", + " let unauthParams = {PolicyDocument: JSON.stringify(unauthParamsJson), RoleName: unauthRoleName};", + " const res = await Promise.all([", + " iam.send(new UpdateAssumeRolePolicyCommand(authParams)),", + " iam.send(new UpdateAssumeRolePolicyCommand(unauthParams))", + " ]);", + " response.send(event, context, response.SUCCESS, {});", + " }", + " } catch (err) {", + " console.log(err.stack);", + " response.send(event, context, response.FAILED, {Error: err});", + " }", + "};" + ] + ] + } + }, + "Handler": "index.handler", + "Runtime": "nodejs22.x", + "Timeout": 300, + "Role": { + "Fn::GetAtt": [ + "UpdateRolesWithIDPFunctionRole", + "Arn" + ] + } + } + }, + "UpdateRolesWithIDPFunctionOutputs": { + "Type": "Custom::LambdaCallout", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "UpdateRolesWithIDPFunction", + "Arn" + ] + }, + "region": { + "Ref": "AWS::Region" + }, + "idpId": { + "Fn::GetAtt": [ + "authmoodboard759ae00a", + "Outputs.IdentityPoolId" + ] + }, + "authRoleName": { + "Ref": "AuthRole" + }, + "unauthRoleName": { + "Ref": "UnauthRole" + } + } + }, + "UpdateRolesWithIDPFunctionRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "RoleName": { + "Fn::Join": [ + "", + [ + { + "Ref": "AuthRole" + }, + "-idp" + ] + ] + }, + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": [ + "lambda.amazonaws.com" + ] + }, + "Action": [ + "sts:AssumeRole" + ] + } + ] + }, + "Policies": [ + { + "PolicyName": "UpdateRolesWithIDPFunctionPolicy", + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "logs:CreateLogGroup", + "logs:CreateLogStream", + "logs:PutLogEvents" + ], + "Resource": "arn:aws:logs:*:*:*" + }, + { + "Effect": "Allow", + "Action": [ + "iam:UpdateAssumeRolePolicy", + "iam:GetRole" + ], + "Resource": { + "Fn::GetAtt": [ + "AuthRole", + "Arn" + ] + } + }, + { + "Effect": "Allow", + "Action": [ + "iam:UpdateAssumeRolePolicy", + "iam:GetRole" + ], + "Resource": { + "Fn::GetAtt": [ + "UnauthRole", + "Arn" + ] + } + } + ] + } + } + ] + } + } + } +} diff --git a/amplify-migration-apps/mood-board/package.json b/amplify-migration-apps/mood-board/package.json index 0790f7e8408..6ca2e04080b 100644 --- a/amplify-migration-apps/mood-board/package.json +++ b/amplify-migration-apps/mood-board/package.json @@ -12,6 +12,7 @@ "preview": "vite preview", "configure": "./backend/configure.sh", "sanitize": "tsx ../sanitize.ts", + "normalize": "tsx ../normalize.ts", "typecheck": "cd _snapshot.post.generate/amplify && npx tsc --noEmit", "test:gen1": "APP_CONFIG_PATH=${APP_CONFIG_PATH:-src/amplifyconfiguration.json} NODE_OPTIONS='--experimental-vm-modules' jest --verbose", "test:gen2": "APP_CONFIG_PATH=${APP_CONFIG_PATH:-amplify_outputs.json} NODE_OPTIONS='--experimental-vm-modules' jest --verbose", diff --git a/amplify-migration-apps/normalize.ts b/amplify-migration-apps/normalize.ts new file mode 100644 index 00000000000..dcef3a718ad --- /dev/null +++ b/amplify-migration-apps/normalize.ts @@ -0,0 +1,13 @@ +#!/usr/bin/env npx tsx + +import * as path from 'path'; +import { normalize } from '../packages/amplify-gen2-migration-e2e-system/src/core/normalize'; + +async function main() { + const appName = path.basename(process.cwd()); + const appDir = path.join(__dirname, appName); + normalize(appName, appDir); +} + +main(); + diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.generate/amplify.yml b/amplify-migration-apps/product-catalog/_snapshot.post.generate/amplify.yml index 52c312768f5..19475262460 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.generate/amplify.yml +++ b/amplify-migration-apps/product-catalog/_snapshot.post.generate/amplify.yml @@ -8,16 +8,11 @@ backend: - npx ampx pipeline-deploy --branch $AWS_BRANCH --app-id $AWS_APP_ID frontend: phases: - preBuild: - commands: - - npm install build: commands: - - npm run build + - mkdir dist + - touch dist/index.html artifacts: baseDirectory: dist files: - "**/*" - cache: - paths: - - node_modules/**/* diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.generate/amplify/backend.ts b/amplify-migration-apps/product-catalog/_snapshot.post.generate/amplify/backend.ts index 2622799bf3f..cc9599aa0e8 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.generate/amplify/backend.ts +++ b/amplify-migration-apps/product-catalog/_snapshot.post.generate/amplify/backend.ts @@ -84,7 +84,7 @@ backend.data.resources.graphqlApi.grantQuery( ); const s3Bucket = backend.storage.resources.cfnResources.cfnBucket; // Use this bucket name post refactor -// s3Bucket.bucketName = 'productcatalogf95af07481f845caa6594c26ac9c8ed331323-main'; +// s3Bucket.bucketName = 'productcatalogf95af07481f845caa6594c26ac9c8ed3x-x'; s3Bucket.bucketEncryption = { serverSideEncryptionConfiguration: [ { diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.generate/amplify/data/resource.ts b/amplify-migration-apps/product-catalog/_snapshot.post.generate/amplify/data/resource.ts index ff122585582..91c4358aea4 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.generate/amplify/data/resource.ts +++ b/amplify-migration-apps/product-catalog/_snapshot.post.generate/amplify/data/resource.ts @@ -73,11 +73,11 @@ export const data = defineData({ migratedAmplifyGen1DynamoDbTableMappings: [ { //The "branchname" variable needs to be the same as your deployment branch if you want to reuse your Gen1 app tables - branchName: 'main', + branchName: 'x', modelNameToTableNameMapping: { - User: 'User-3oy6oxkj6ffojmc2upd52ftdsq-main', - Product: 'Product-3oy6oxkj6ffojmc2upd52ftdsq-main', - Comment: 'Comment-3oy6oxkj6ffojmc2upd52ftdsq-main', + User: 'User-hscmwhprkbaljmcpavj3dcztrq-x', + Product: 'Product-hscmwhprkbaljmcpavj3dcztrq-x', + Comment: 'Comment-hscmwhprkbaljmcpavj3dcztrq-x', }, }, ], diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.generate/amplify/function/lowstockproducts/resource.ts b/amplify-migration-apps/product-catalog/_snapshot.post.generate/amplify/function/lowstockproducts/resource.ts index cea1aa364aa..95f452801d2 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.generate/amplify/function/lowstockproducts/resource.ts +++ b/amplify-migration-apps/product-catalog/_snapshot.post.generate/amplify/function/lowstockproducts/resource.ts @@ -12,7 +12,7 @@ export const lowstockproducts = defineFunction({ REGION: 'us-east-1', LOW_STOCK_THRESHOLD: '5', PRODUCT_CATALOG_SECRET: - '/amplify/productcatalog/main/AMPLIFY_lowstockproducts_PRODUCT_CATALOG_SECRET', + '/amplify/productcatalog/x/AMPLIFY_lowstockproducts_PRODUCT_CATALOG_SECRET', }, runtime: 22, }); diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.generate/amplify/storage/resource.ts b/amplify-migration-apps/product-catalog/_snapshot.post.generate/amplify/storage/resource.ts index f926f7173a3..2d5271a0ac0 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.generate/amplify/storage/resource.ts +++ b/amplify-migration-apps/product-catalog/_snapshot.post.generate/amplify/storage/resource.ts @@ -4,7 +4,7 @@ import { S3Trigger1ef46783 } from './S3Trigger1ef46783/resource'; const branchName = process.env.AWS_BRANCH ?? 'sandbox'; export const storage = defineStorage({ - name: `productcatalogf95af07481f845caa6594c26ac9c8ed331323-${branchName}`, + name: `productcatalogf95af07481f845caa6594c26ac9c8ed3x-${branchName}`, access: (allow) => ({ 'public/*': [allow.authenticated.to(['write', 'read', 'delete'])], 'protected/{entity_id}/*': [ diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.generate/package.json b/amplify-migration-apps/product-catalog/_snapshot.post.generate/package.json index d29f255fd88..0ec3f54a347 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.post.generate/package.json +++ b/amplify-migration-apps/product-catalog/_snapshot.post.generate/package.json @@ -11,9 +11,21 @@ "build": "tsc -b && vite build", "lint": "eslint .", "preview": "vite preview", - "configure": "./configure.sh", + "configure": "./backend/configure.sh", "sanitize": "tsx ../sanitize.ts", - "typecheck": "cd _snapshot.post.generate/amplify && npx tsc --noEmit" + "normalize": "tsx ../normalize.ts", + "typecheck": "cd _snapshot.post.generate/amplify && npx tsc --noEmit", + "test:gen1": "APP_CONFIG_PATH=${APP_CONFIG_PATH:-src/amplifyconfiguration.json} NODE_OPTIONS='--experimental-vm-modules' jest --verbose", + "test:gen2": "APP_CONFIG_PATH=${APP_CONFIG_PATH:-amplify_outputs.json} NODE_OPTIONS='--experimental-vm-modules' jest --verbose", + "test:shared-data": "true", + "test:e2e": "cd ../../packages/amplify-gen2-migration-e2e-system && npx tsx src/cli.ts --app product-catalog --profile ${AWS_PROFILE:-default}", + "deploy": "cd ../../packages/amplify-gen2-migration-e2e-system && npx tsx src/cli.ts --app product-catalog --step deploy --profile ${AWS_PROFILE:-default}", + "pre-push": "npx tsx migration/pre-push.ts", + "post-generate": "npx tsx migration/post-generate.ts", + "post-refactor": "npx tsx migration/post-refactor.ts", + "post-sandbox": "npx tsx migration/post-sandbox.ts", + "pre-sandbox": "true", + "post-push": "true" }, "dependencies": { "@aws-amplify/ui-react": "^6.13.1", @@ -30,8 +42,12 @@ "@aws-amplify/backend": "^1.18.0", "@aws-amplify/backend-cli": "^1.8.0", "@aws-amplify/backend-data": "^1.6.2", + "@aws-sdk/client-appsync": "^3.936.0", + "@aws-sdk/client-cognito-identity-provider": "^3.936.0", + "@aws-sdk/client-ssm": "^3.936.0", "@eslint/js": "^9.39.1", "@types/aws-lambda": "^8.10.92", + "@types/jest": "^29.5.14", "@types/node": "*", "@types/react": "^19.2.5", "@types/react-dom": "^19.2.3", @@ -45,6 +61,8 @@ "eslint-plugin-react-hooks": "^7.0.1", "eslint-plugin-react-refresh": "^0.4.24", "globals": "^16.5.0", + "jest": "^29.7.0", + "ts-jest": "^29.3.4", "tsx": "^4.20.6", "typescript": "~5.9.3", "typescript-eslint": "^8.46.4", diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-e2e-sandbox-x-auth179371D7-x.__to__.amplify-productcatalog-e2e-sandbox-x-auth179371D7-x-holding.mappings.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-e2e-sandbox-x-auth179371D7-x.__to__.amplify-productcatalog-e2e-sandbox-x-auth179371D7-x-holding.mappings.json new file mode 100644 index 00000000000..9143a0fbbd3 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-e2e-sandbox-x-auth179371D7-x.__to__.amplify-productcatalog-e2e-sandbox-x-auth179371D7-x-holding.mappings.json @@ -0,0 +1,52 @@ +[ + { + "Source": { + "StackName": "amplify-productcatalog-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + }, + "Destination": { + "StackName": "amplify-productcatalog-e2e-sandbox-x-auth179371D7-x-holding", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + } + }, + { + "Source": { + "StackName": "amplify-productcatalog-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + }, + "Destination": { + "StackName": "amplify-productcatalog-e2e-sandbox-x-auth179371D7-x-holding", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + } + }, + { + "Source": { + "StackName": "amplify-productcatalog-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + }, + "Destination": { + "StackName": "amplify-productcatalog-e2e-sandbox-x-auth179371D7-x-holding", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + } + }, + { + "Source": { + "StackName": "amplify-productcatalog-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + }, + "Destination": { + "StackName": "amplify-productcatalog-e2e-sandbox-x-auth179371D7-x-holding", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + } + }, + { + "Source": { + "StackName": "amplify-productcatalog-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + }, + "Destination": { + "StackName": "amplify-productcatalog-e2e-sandbox-x-auth179371D7-x-holding", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + } + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-e2e-sandbox-x-auth179371D7-x.__to__.amplify-productcatalog-e2e-sandbox-x-auth179371D7-x-holding.source.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-e2e-sandbox-x-auth179371D7-x.__to__.amplify-productcatalog-e2e-sandbox-x-auth179371D7-x-holding.source.template.json new file mode 100644 index 00000000000..9388eed319f --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-e2e-sandbox-x-auth179371D7-x.__to__.amplify-productcatalog-e2e-sandbox-x-auth179371D7-x-holding.source.template.json @@ -0,0 +1,425 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", + "Resources": { + "amplifyAuthauthenticatedUserRoleD8DA3689": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:ec121e86-e0d7-4f59-beaf-535182dac9c0" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/auth/amplifyAuth/authenticatedUserRole/Resource" + } + }, + "amplifyAuthauthenticatedUserRoleDefaultPolicy82E52873": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "appsync:GraphQL", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:appsync:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":apis/hscmwhprkbaljmcpavj3dcztrq/*" + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "amplifyAuthauthenticatedUserRoleDefaultPolicy82E52873", + "Roles": [ + "amplify-productcat2604142-amplifyAuthauthenticatedU-FTyAOUWtFeJb" + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/auth/amplifyAuth/authenticatedUserRole/DefaultPolicy/Resource" + } + }, + "amplifyAuthunauthenticatedUserRole2B524D9E": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:ec121e86-e0d7-4f59-beaf-535182dac9c0" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "unauthenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/auth/amplifyAuth/unauthenticatedUserRole/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/02Lyw6CMBBFv4V9GbGJ7g0rN4ZgXJvajjpQ2oSOEtL03w0SlNU99yVB7gooMjWEXJs2t3SDeMLAaM6sdCvUEK5R+4cj9hAvAfvKeyvKu/vxAqUldLyu/snRoGPicTmvfe0tHpiVfnboOAlSHcQpnIZfrbwlPU52ppSScN4gNGHzlhK2eyiyJhDl/csxdQj1rB8nXeTo3wAAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/auth/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifyproductcataloge2esandboxde12df9a17authamplifyAuthUserPool28A7874FRef": { + "Value": "us-east-1_tRO9BruHe" + }, + "amplifyproductcataloge2esandboxde12df9a17authamplifyAuthUserPoolAppClient577E72DBRef": { + "Value": "27q6muiijfov65g35g37t9bldv" + }, + "amplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef": { + "Value": "us-east-1:ec121e86-e0d7-4f59-beaf-535182dac9c0" + }, + "amplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref": { + "Value": "amplify-productcat2604142-amplifyAuthauthenticatedU-FTyAOUWtFeJb" + }, + "amplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref": { + "Value": "amplify-productcat2604142-amplifyAuthunauthenticate-OzRPKugSY82W" + } + } +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-e2e-sandbox-x-auth179371D7-x.__to__.amplify-productcatalog-e2e-sandbox-x-auth179371D7-x-holding.target.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-e2e-sandbox-x-auth179371D7-x.__to__.amplify-productcatalog-e2e-sandbox-x-auth179371D7-x-holding.target.template.json new file mode 100644 index 00000000000..7544bf45c2d --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-e2e-sandbox-x-auth179371D7-x.__to__.amplify-productcatalog-e2e-sandbox-x-auth179371D7-x-holding.target.template.json @@ -0,0 +1,211 @@ +{ + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "Temporary holding stack for Gen2 migration", + "Resources": { + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AccountRecoverySetting": { + "RecoveryMechanisms": [ + { + "Name": "verified_email", + "Priority": 1 + } + ] + }, + "AdminCreateUserConfig": { + "AllowAdminCreateUserOnly": false + }, + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": 8, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false, + "TemporaryPasswordValidityDays": 7 + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "SmsVerificationMessage": "The verification code to your new account is {####}", + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolTags": { + "amplify:deployment-type": "sandbox", + "amplify:friendly-name": "amplifyAuth", + "created-by": "amplify" + }, + "UsernameAttributes": [ + "email" + ], + "UsernameConfiguration": { + "CaseSensitive": false + }, + "VerificationMessageTemplate": { + "DefaultEmailOption": "CONFIRM_WITH_CODE", + "EmailMessage": "Your verification code is {####}", + "EmailSubject": "Your verification code", + "SmsMessage": "The verification code to your new account is {####}" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/auth/amplifyAuth/UserPool/Resource" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 43200, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": "us-east-1_tRO9BruHe" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlows": [ + "code" + ], + "AllowedOAuthFlowsUserPoolClient": true, + "AllowedOAuthScopes": [ + "profile", + "phone", + "email", + "openid", + "aws.cognito.signin.user.admin" + ], + "CallbackURLs": [ + "https://example.com" + ], + "ExplicitAuthFlows": [ + "ALLOW_CUSTOM_AUTH", + "ALLOW_USER_SRP_AUTH", + "ALLOW_REFRESH_TOKEN_AUTH" + ], + "PreventUserExistenceErrors": "ENABLED", + "SupportedIdentityProviders": [ + "COGNITO" + ], + "UserPoolId": "us-east-1_tRO9BruHe" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/auth/amplifyAuth/UserPoolAppClient/Resource" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": false, + "CognitoIdentityProviders": [ + { + "ClientId": "27q6muiijfov65g35g37t9bldv", + "ProviderName": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_tRO9BruHe" + ] + ] + } + } + ], + "IdentityPoolTags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "SupportedLoginProviders": {} + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/auth/amplifyAuth/IdentityPool" + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:ec121e86-e0d7-4f59-beaf-535182dac9c0", + "RoleMappings": { + "UserPoolWebClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_tRO9BruHe", + ":", + "27q6muiijfov65g35g37t9bldv" + ] + ] + }, + "Type": "Token" + } + }, + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-productcat2604142-amplifyAuthunauthenticate-OzRPKugSY82W", + "authenticated": "arn:aws:iam::123456789012:role/amplify-productcat2604142-amplifyAuthauthenticatedU-FTyAOUWtFeJb" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/auth/amplifyAuth/IdentityPoolRoleAttachment" + } + } + }, + "Outputs": {} +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x.__to__.amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x-holding.mappings.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x.__to__.amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x-holding.mappings.json new file mode 100644 index 00000000000..7af66815a66 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x.__to__.amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x-holding.mappings.json @@ -0,0 +1,12 @@ +[ + { + "Source": { + "StackName": "amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x", + "LogicalResourceId": "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketACEF49E5" + }, + "Destination": { + "StackName": "amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x-holding", + "LogicalResourceId": "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketACEF49E5" + } + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x.__to__.amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x-holding.source.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x.__to__.amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x-holding.source.template.json new file mode 100644 index 00000000000..d652e30dbf3 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x.__to__.amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x-holding.source.template.json @@ -0,0 +1,737 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", + "Resources": { + "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketPolicy5224AA3C": { + "Type": "AWS::S3::BucketPolicy", + "Properties": { + "Bucket": "amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:*", + "Condition": { + "Bool": { + "aws:SecureTransport": "false" + } + }, + "Effect": "Deny", + "Principal": { + "AWS": "*" + }, + "Resource": [ + "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + "/*" + ] + ] + } + ] + }, + { + "Action": [ + "s3:PutBucketPolicy", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*" + ], + "Effect": "Allow", + "Principal": { + "AWS": "arn:aws:iam::123456789012:role/amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + }, + "Resource": [ + "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/productcatalogf95af07481f845caa6594c26ac9c8ed3x-gen2-x/Bucket/Policy/Resource" + } + }, + "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketAutoDeleteObjectsCustomResource1B906272": { + "Type": "Custom::S3AutoDeleteObjects", + "Properties": { + "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "BucketName": "amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/productcatalogf95af07481f845caa6594c26ac9c8ed3x-gen2-x/Bucket/AutoDeleteObjectsCustomResource/Default" + } + }, + "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketNotifications33A3C5B4": { + "Type": "Custom::S3BucketNotifications", + "Properties": { + "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x/BucketNotificationsHandler050a0587b7544547bf325f094a3db8347ECC3691", + "BucketName": "amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + "NotificationConfiguration": { + "LambdaFunctionConfigurations": [ + { + "Events": [ + "s3:ObjectCreated:*" + ], + "LambdaFunctionArn": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17functionNestedStackfunctionNestedStackResource2A71F224Outputsamplifyproductcataloge2esandboxde12df9a17functionS3Trigger1ef46783gen2xlambda81A9091AArn" + } + }, + { + "Events": [ + "s3:ObjectRemoved:*" + ], + "LambdaFunctionArn": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17functionNestedStackfunctionNestedStackResource2A71F224Outputsamplifyproductcataloge2esandboxde12df9a17functionS3Trigger1ef46783gen2xlambda81A9091AArn" + } + } + ] + }, + "Managed": true, + "SkipDestinationValidation": false + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/productcatalogf95af07481f845caa6594c26ac9c8ed3x-gen2-x/Bucket/Notifications/Resource" + } + }, + "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketAllowBucketNotificationsToamplifyproductcataloge2esandboxde12df9a17functionS3Trigger1ef46783gen2xlambda7E3D5F7A60F0C41B": { + "Type": "AWS::Lambda::Permission", + "Properties": { + "Action": "lambda:InvokeFunction", + "FunctionName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17functionNestedStackfunctionNestedStackResource2A71F224Outputsamplifyproductcataloge2esandboxde12df9a17functionS3Trigger1ef46783gen2xlambda81A9091AArn" + }, + "Principal": "s3.amazonaws.com", + "SourceAccount": { + "Ref": "AWS::AccountId" + }, + "SourceArn": "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/productcatalogf95af07481f845caa6594c26ac9c8ed3x-gen2-x/Bucket/AllowBucketNotificationsToamplifyproductcataloge2esandboxde12df9a17functionS3Trigger1ef46783gen2xlambda7E3D5F7A" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ] + }, + "ManagedPolicyArns": [ + { + "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" + }, + "Timeout": 900, + "MemorySize": 128, + "Handler": "index.handler", + "Role": "arn:aws:iam::123456789012:role/amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Runtime": "nodejs22.x", + "Description": { + "Fn::Join": [ + "", + [ + "Lambda function for auto-deleting objects in ", + "amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + " S3 bucket." + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", + "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", + "aws:asset:property": "Code" + } + }, + "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Role/Resource" + } + }, + "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleDefaultPolicy2CF63D36": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:PutBucketNotification", + "Effect": "Allow", + "Resource": "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleDefaultPolicy2CF63D36", + "Roles": [ + { + "Ref": "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Role/DefaultPolicy/Resource" + } + }, + "BucketNotificationsHandler050a0587b7544547bf325f094a3db8347ECC3691": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Description": "AWS CloudFormation handler for \"Custom::S3BucketNotifications\" resources (@aws-cdk/aws-s3)", + "Code": { + "ZipFile": "import boto3 # type: ignore\nimport json\nimport logging\nimport urllib.request\n\ns3 = boto3.client(\"s3\")\n\nEVENTBRIDGE_CONFIGURATION = 'EventBridgeConfiguration'\nCONFIGURATION_TYPES = [\"TopicConfigurations\", \"QueueConfigurations\", \"LambdaFunctionConfigurations\"]\n\ndef handler(event: dict, context):\n response_status = \"SUCCESS\"\n error_message = \"\"\n try:\n props = event[\"ResourceProperties\"]\n notification_configuration = props[\"NotificationConfiguration\"]\n managed = props.get('Managed', 'true').lower() == 'true'\n skipDestinationValidation = props.get('SkipDestinationValidation', 'false').lower() == 'true'\n stack_id = event['StackId']\n old = event.get(\"OldResourceProperties\", {}).get(\"NotificationConfiguration\", {})\n if managed:\n config = handle_managed(event[\"RequestType\"], notification_configuration)\n else:\n config = handle_unmanaged(props[\"BucketName\"], stack_id, event[\"RequestType\"], notification_configuration, old)\n s3.put_bucket_notification_configuration(Bucket=props[\"BucketName\"], NotificationConfiguration=config, SkipDestinationValidation=skipDestinationValidation)\n except Exception as e:\n logging.exception(\"Failed to put bucket notification configuration\")\n response_status = \"FAILED\"\n error_message = f\"Error: {str(e)}. \"\n finally:\n submit_response(event, context, response_status, error_message)\n\ndef handle_managed(request_type, notification_configuration):\n if request_type == 'Delete':\n return {}\n return notification_configuration\n\ndef handle_unmanaged(bucket, stack_id, request_type, notification_configuration, old):\n def get_id(n):\n n['Id'] = ''\n sorted_notifications = sort_filter_rules(n)\n strToHash=json.dumps(sorted_notifications, sort_keys=True).replace('\"Name\": \"prefix\"', '\"Name\": \"Prefix\"').replace('\"Name\": \"suffix\"', '\"Name\": \"Suffix\"')\n return f\"{stack_id}-{hash(strToHash)}\"\n def with_id(n):\n n['Id'] = get_id(n)\n return n\n\n external_notifications = {}\n existing_notifications = s3.get_bucket_notification_configuration(Bucket=bucket)\n for t in CONFIGURATION_TYPES:\n if request_type == 'Update':\n old_incoming_ids = [get_id(n) for n in old.get(t, [])]\n external_notifications[t] = [n for n in existing_notifications.get(t, []) if not get_id(n) in old_incoming_ids] \n elif request_type == 'Delete':\n external_notifications[t] = [n for n in existing_notifications.get(t, []) if not n['Id'].startswith(f\"{stack_id}-\")]\n elif request_type == 'Create':\n external_notifications[t] = [n for n in existing_notifications.get(t, [])]\n if EVENTBRIDGE_CONFIGURATION in existing_notifications:\n external_notifications[EVENTBRIDGE_CONFIGURATION] = existing_notifications[EVENTBRIDGE_CONFIGURATION]\n\n if request_type == 'Delete':\n return external_notifications\n\n notifications = {}\n for t in CONFIGURATION_TYPES:\n external = external_notifications.get(t, [])\n incoming = [with_id(n) for n in notification_configuration.get(t, [])]\n notifications[t] = external + incoming\n\n if EVENTBRIDGE_CONFIGURATION in notification_configuration:\n notifications[EVENTBRIDGE_CONFIGURATION] = notification_configuration[EVENTBRIDGE_CONFIGURATION]\n elif EVENTBRIDGE_CONFIGURATION in external_notifications:\n notifications[EVENTBRIDGE_CONFIGURATION] = external_notifications[EVENTBRIDGE_CONFIGURATION]\n\n return notifications\n\ndef submit_response(event: dict, context, response_status: str, error_message: str):\n response_body = json.dumps(\n {\n \"Status\": response_status,\n \"Reason\": f\"{error_message}See the details in CloudWatch Log Stream: {context.log_stream_name}\",\n \"PhysicalResourceId\": event.get(\"PhysicalResourceId\") or event[\"LogicalResourceId\"],\n \"StackId\": event[\"StackId\"],\n \"RequestId\": event[\"RequestId\"],\n \"LogicalResourceId\": event[\"LogicalResourceId\"],\n \"NoEcho\": False,\n }\n ).encode(\"utf-8\")\n headers = {\"content-type\": \"\", \"content-length\": str(len(response_body))}\n try:\n req = urllib.request.Request(url=event[\"ResponseURL\"], headers=headers, data=response_body, method=\"PUT\")\n with urllib.request.urlopen(req) as response:\n print(response.read().decode(\"utf-8\"))\n print(\"Status code: \" + response.reason)\n except Exception as e:\n print(\"send(..) failed executing request.urlopen(..): \" + str(e))\n\ndef sort_filter_rules(json_obj):\n if not isinstance(json_obj, dict):\n return json_obj\n for key, value in json_obj.items():\n if isinstance(value, dict):\n json_obj[key] = sort_filter_rules(value)\n elif isinstance(value, list):\n json_obj[key] = [sort_filter_rules(item) for item in value]\n if \"Filter\" in json_obj and \"Key\" in json_obj[\"Filter\"] and \"FilterRules\" in json_obj[\"Filter\"][\"Key\"]:\n filter_rules = json_obj[\"Filter\"][\"Key\"][\"FilterRules\"]\n sorted_filter_rules = sorted(filter_rules, key=lambda x: x[\"Name\"])\n json_obj[\"Filter\"][\"Key\"][\"FilterRules\"] = sorted_filter_rules\n return json_obj" + }, + "Handler": "index.handler", + "Role": "arn:aws:iam::123456789012:role/amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x/BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC", + "Runtime": "python3.13", + "Timeout": 300, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Resource" + } + }, + "PRODUCTCATALOGF95AF07481F845CAA6594C26AC9C8ED316AD6GEN2QYPVNBISSLBUCKETNAMEParameterA82FC17A": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/productcatalog/e2e-sandbox-x/PRODUCTCATALOGF_95_AF_07481_F_845_CAA_6594_C_26_AC_9_C_8_ED_316_AD_6_GEN_2_QYPVNBISSL_BUCKET_NAME", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": "amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/PRODUCTCATALOGF_95_AF_07481_F_845_CAA_6594_C_26_AC_9_C_8_ED_316_AD_6_GEN_2_QYPVNBISSL_BUCKET_NAMEParameter/Resource" + } + }, + "amplifyproductcataloge2esandboxde12df9a17storageAccess479CEF9A9": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:PutObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/*", + "public/", + "protected/*", + "protected/", + "private/*", + "private/" + ] + } + }, + "Effect": "Allow", + "Resource": "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic" + }, + { + "Action": "s3:DeleteObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + "/private/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "amplifyproductcataloge2esandboxde12df9a17storageAccess479CEF9A9", + "Roles": [ + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/amplify-productcatalog-e2e-sandbox-x--storageAccess4/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/5VNy07DMBD8lubsLCUVHLi16Rmi5IgQcpJttElsS95NC7L876ixoHDkNDOaVwHFwxa2G33hvOunfKYWwjOyYN+I7ialL/weeAfhsHQTiipPNrHXkBn6IJs9Zb/L1zzvYLUYUnS/iDvijIIv7YidcBbfVLIqN1P3eVtN+h/bqdCIFjRo1+moZm3aXkN5shV6Q8zkrCJtINRuxuvbirfzxKJiNhAa8WSHSnttUNCv/reIUZULizM1slt8l8Z++B+r8u5MPfqDZlR7ZpRG9EB2iMq6HmHku3NRwP0jbDcjE+V+sUIGoU74BdUQSEOcAQAA" + }, + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "referencetoamplifyproductcataloge2esandboxde12df9a17functionNestedStackfunctionNestedStackResource2A71F224Outputsamplifyproductcataloge2esandboxde12df9a17functionS3Trigger1ef46783gen2xlambda81A9091AArn": { + "Type": "String" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref": { + "Type": "String" + } + }, + "Outputs": { + "amplifyproductcataloge2esandboxde12df9a17storageproductcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketF3C6AA2ERef": { + "Value": "amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic" + } + } +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x.__to__.amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x-holding.target.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x.__to__.amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x-holding.target.template.json new file mode 100644 index 00000000000..eb9d3fd026d --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x.__to__.amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x-holding.target.template.json @@ -0,0 +1,71 @@ +{ + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "Temporary holding stack for Gen2 migration", + "Resources": { + "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketACEF49E5": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "BucketKeyEnabled": false, + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "MaxAge": 3000 + } + ] + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "productcatalogf95af07481f845caa6594c26ac9c8ed3x-gen2-x" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/productcatalogf95af07481f845caa6594c26ac9c8ed3x-gen2-x/Bucket/Resource" + } + } + }, + "Outputs": {} +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.mappings.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.mappings.json deleted file mode 100644 index c32bf4971d4..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.mappings.json +++ /dev/null @@ -1,52 +0,0 @@ -[ - { - "Source": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" - }, - "Destination": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" - } - }, - { - "Source": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" - }, - "Destination": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" - } - }, - { - "Source": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" - }, - "Destination": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" - } - }, - { - "Source": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" - }, - "Destination": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" - } - }, - { - "Source": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" - }, - "Destination": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" - } - } -] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.source.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.source.template.json deleted file mode 100644 index f7d0aa04db5..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.source.template.json +++ /dev/null @@ -1,435 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.11.1\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", - "Resources": { - "amplifyAuthauthenticatedUserRoleD8DA3689": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:c464f123-eaf0-4289-98b3-381197fa3d7f" - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "authenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/authenticatedUserRole/Resource" - } - }, - "amplifyAuthauthenticatedUserRoleDefaultPolicy82E52873": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "appsync:GraphQL", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:appsync:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":apis/3oy6oxkj6ffojmc2upd52ftdsq/*" - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "amplifyAuthauthenticatedUserRoleDefaultPolicy82E52873", - "Roles": [ - "amplify-productcatalog-ge-amplifyAuthauthenticatedU-7u6GoubHxSy7" - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/authenticatedUserRole/DefaultPolicy/Resource" - } - }, - "amplifyAuthunauthenticatedUserRole2B524D9E": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:c464f123-eaf0-4289-98b3-381197fa3d7f" - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "unauthenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/unauthenticatedUserRole/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/02LvQ6CMBSFn4W9XKFxcDVMLsZgnE1tr3qhtAm9SkjTdzdIUKbznT8JcltCkakh5Nq0uaUbxCMGRnNmpVuhhnCN2j8csYd4CdifvLeiursfL1BZQsfr6p8cDDomHpfz2tfe4p5Z6WeHjpMg1UGcwmn41ZO3pMfJzpRSEs4bhCZs3lJCuYMiawJR3r8cU4dQz/oBzysbsN8AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Outputs": { - "amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthUserPool0E44954DRef": { - "Value": "us-east-1_OFRBVzhq5" - }, - "amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthUserPoolAppClient99A19E4CRef": { - "Value": "61e6oq3acg1at7f9da6cfna70d" - }, - "amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef": { - "Value": "us-east-1:c464f123-eaf0-4289-98b3-381197fa3d7f" - }, - "amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref": { - "Value": "amplify-productcatalog-ge-amplifyAuthauthenticatedU-7u6GoubHxSy7" - }, - "amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef": { - "Value": "amplify-productcatalog-ge-amplifyAuthunauthenticate-JMPocA8XyO6M" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.target.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.target.template.json deleted file mode 100644 index 38ef9ab99c9..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW-holding.target.template.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "Temporary holding stack for Gen2 migration", - "Resources": { - "amplifyAuthUserPool4BA7F805": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AccountRecoverySetting": { - "RecoveryMechanisms": [ - { - "Name": "verified_email", - "Priority": 1 - } - ] - }, - "AdminCreateUserConfig": { - "AllowAdminCreateUserOnly": false - }, - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": "Your verification code is {####}", - "EmailVerificationSubject": "Your verification code", - "MfaConfiguration": "OFF", - "Policies": { - "PasswordPolicy": { - "MinimumLength": 8, - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false, - "TemporaryPasswordValidityDays": 7 - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "SmsVerificationMessage": "The verification code to your new account is {####}", - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolTags": { - "amplify:app-id": "productcatalog", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "amplify:friendly-name": "amplifyAuth", - "created-by": "amplify" - }, - "UsernameAttributes": [ - "email" - ], - "UsernameConfiguration": { - "CaseSensitive": false - }, - "VerificationMessageTemplate": { - "DefaultEmailOption": "CONFIRM_WITH_CODE", - "EmailMessage": "Your verification code is {####}", - "EmailSubject": "Your verification code", - "SmsMessage": "The verification code to your new account is {####}" - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/UserPool/Resource" - } - }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 43200, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": "us-east-1_OFRBVzhq5" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, - "amplifyAuthUserPoolAppClient2626C6F8": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlows": [ - "code" - ], - "AllowedOAuthFlowsUserPoolClient": true, - "AllowedOAuthScopes": [ - "profile", - "phone", - "email", - "openid", - "aws.cognito.signin.user.admin" - ], - "CallbackURLs": [ - "https://example.com" - ], - "ExplicitAuthFlows": [ - "ALLOW_CUSTOM_AUTH", - "ALLOW_USER_SRP_AUTH", - "ALLOW_REFRESH_TOKEN_AUTH" - ], - "PreventUserExistenceErrors": "ENABLED", - "SupportedIdentityProviders": [ - "COGNITO" - ], - "UserPoolId": "us-east-1_OFRBVzhq5" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/UserPoolAppClient/Resource" - } - }, - "amplifyAuthIdentityPool3FDE84CC": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": false, - "CognitoIdentityProviders": [ - { - "ClientId": "61e6oq3acg1at7f9da6cfna70d", - "ProviderName": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - "us-east-1_OFRBVzhq5" - ] - ] - } - } - ], - "IdentityPoolTags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "SupportedLoginProviders": {} - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/IdentityPool" - } - }, - "amplifyAuthIdentityPoolRoleAttachment045F17C8": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": "us-east-1:c464f123-eaf0-4289-98b3-381197fa3d7f", - "RoleMappings": { - "UserPoolWebClientRoleMapping": { - "AmbiguousRoleResolution": "AuthenticatedRole", - "IdentityProvider": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - "us-east-1_OFRBVzhq5", - ":", - "61e6oq3acg1at7f9da6cfna70d" - ] - ] - }, - "Type": "Token" - } - }, - "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-productcatalog-ge-amplifyAuthunauthenticate-JMPocA8XyO6M", - "authenticated": "arn:aws:iam::123456789012:role/amplify-productcatalog-ge-amplifyAuthauthenticatedU-7u6GoubHxSy7" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/IdentityPoolRoleAttachment" - } - } - }, - "Outputs": {} -} \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.mappings.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.mappings.json deleted file mode 100644 index 4df170487c2..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.mappings.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "Source": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY", - "LogicalResourceId": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83" - }, - "Destination": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding", - "LogicalResourceId": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83" - } - } -] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.source.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.source.template.json deleted file mode 100644 index 436640b9b85..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.source.template.json +++ /dev/null @@ -1,735 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", - "Resources": { - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketPolicyF51DAA81": { - "Type": "AWS::S3::BucketPolicy", - "Properties": { - "Bucket": "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:*", - "Condition": { - "Bool": { - "aws:SecureTransport": "false" - } - }, - "Effect": "Deny", - "Principal": { - "AWS": "*" - }, - "Resource": [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - "/*" - ] - ] - } - ] - }, - { - "Action": [ - "s3:PutBucketPolicy", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*" - ], - "Effect": "Allow", - "Principal": { - "AWS": "arn:aws:iam::123456789012:role/amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - }, - "Resource": [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - "/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/Policy/Resource" - } - }, - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketAutoDeleteObjectsCustomResource6974B5B5": { - "Type": "Custom::S3AutoDeleteObjects", - "Properties": { - "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "BucketName": "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/AutoDeleteObjectsCustomResource/Default" - } - }, - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketNotifications20779ED4": { - "Type": "Custom::S3BucketNotifications", - "Properties": { - "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY/BucketNotificationsHandler050a0587b7544547bf325f094a3db8347ECC3691", - "BucketName": "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - "NotificationConfiguration": { - "LambdaFunctionConfigurations": [ - { - "Events": [ - "s3:ObjectCreated:*" - ], - "LambdaFunctionArn": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9afunctionNestedStackfunctionNestedStackResource6DAC5252Outputsamplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda22206BBBArn" - } - }, - { - "Events": [ - "s3:ObjectRemoved:*" - ], - "LambdaFunctionArn": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9afunctionNestedStackfunctionNestedStackResource6DAC5252Outputsamplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda22206BBBArn" - } - } - ] - }, - "Managed": true, - "SkipDestinationValidation": false - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/Notifications/Resource" - } - }, - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketAllowBucketNotificationsToamplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda8226525A5BBBE747": { - "Type": "AWS::Lambda::Permission", - "Properties": { - "Action": "lambda:InvokeFunction", - "FunctionName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9afunctionNestedStackfunctionNestedStackResource6DAC5252Outputsamplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda22206BBBArn" - }, - "Principal": "s3.amazonaws.com", - "SourceAccount": { - "Ref": "AWS::AccountId" - }, - "SourceArn": "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/AllowBucketNotificationsToamplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda8226525A" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ] - }, - "ManagedPolicyArns": [ - { - "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" - }, - "Timeout": 900, - "MemorySize": 128, - "Handler": "index.handler", - "Role": "arn:aws:iam::123456789012:role/amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Runtime": "nodejs22.x", - "Description": { - "Fn::Join": [ - "", - [ - "Lambda function for auto-deleting objects in ", - "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - " S3 bucket." - ] - ] - } - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", - "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", - "aws:asset:property": "Code" - } - }, - "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Role/Resource" - } - }, - "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleDefaultPolicy2CF63D36": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:PutBucketNotification", - "Effect": "Allow", - "Resource": "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleDefaultPolicy2CF63D36", - "Roles": [ - { - "Ref": "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Role/DefaultPolicy/Resource" - } - }, - "BucketNotificationsHandler050a0587b7544547bf325f094a3db8347ECC3691": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Description": "AWS CloudFormation handler for \"Custom::S3BucketNotifications\" resources (@aws-cdk/aws-s3)", - "Code": { - "ZipFile": "import boto3 # type: ignore\nimport json\nimport logging\nimport urllib.request\n\ns3 = boto3.client(\"s3\")\n\nEVENTBRIDGE_CONFIGURATION = 'EventBridgeConfiguration'\nCONFIGURATION_TYPES = [\"TopicConfigurations\", \"QueueConfigurations\", \"LambdaFunctionConfigurations\"]\n\ndef handler(event: dict, context):\n response_status = \"SUCCESS\"\n error_message = \"\"\n try:\n props = event[\"ResourceProperties\"]\n notification_configuration = props[\"NotificationConfiguration\"]\n managed = props.get('Managed', 'true').lower() == 'true'\n skipDestinationValidation = props.get('SkipDestinationValidation', 'false').lower() == 'true'\n stack_id = event['StackId']\n old = event.get(\"OldResourceProperties\", {}).get(\"NotificationConfiguration\", {})\n if managed:\n config = handle_managed(event[\"RequestType\"], notification_configuration)\n else:\n config = handle_unmanaged(props[\"BucketName\"], stack_id, event[\"RequestType\"], notification_configuration, old)\n s3.put_bucket_notification_configuration(Bucket=props[\"BucketName\"], NotificationConfiguration=config, SkipDestinationValidation=skipDestinationValidation)\n except Exception as e:\n logging.exception(\"Failed to put bucket notification configuration\")\n response_status = \"FAILED\"\n error_message = f\"Error: {str(e)}. \"\n finally:\n submit_response(event, context, response_status, error_message)\n\ndef handle_managed(request_type, notification_configuration):\n if request_type == 'Delete':\n return {}\n return notification_configuration\n\ndef handle_unmanaged(bucket, stack_id, request_type, notification_configuration, old):\n def get_id(n):\n n['Id'] = ''\n sorted_notifications = sort_filter_rules(n)\n strToHash=json.dumps(sorted_notifications, sort_keys=True).replace('\"Name\": \"prefix\"', '\"Name\": \"Prefix\"').replace('\"Name\": \"suffix\"', '\"Name\": \"Suffix\"')\n return f\"{stack_id}-{hash(strToHash)}\"\n def with_id(n):\n n['Id'] = get_id(n)\n return n\n\n external_notifications = {}\n existing_notifications = s3.get_bucket_notification_configuration(Bucket=bucket)\n for t in CONFIGURATION_TYPES:\n if request_type == 'Update':\n old_incoming_ids = [get_id(n) for n in old.get(t, [])]\n external_notifications[t] = [n for n in existing_notifications.get(t, []) if not get_id(n) in old_incoming_ids] \n elif request_type == 'Delete':\n external_notifications[t] = [n for n in existing_notifications.get(t, []) if not n['Id'].startswith(f\"{stack_id}-\")]\n elif request_type == 'Create':\n external_notifications[t] = [n for n in existing_notifications.get(t, [])]\n if EVENTBRIDGE_CONFIGURATION in existing_notifications:\n external_notifications[EVENTBRIDGE_CONFIGURATION] = existing_notifications[EVENTBRIDGE_CONFIGURATION]\n\n if request_type == 'Delete':\n return external_notifications\n\n notifications = {}\n for t in CONFIGURATION_TYPES:\n external = external_notifications.get(t, [])\n incoming = [with_id(n) for n in notification_configuration.get(t, [])]\n notifications[t] = external + incoming\n\n if EVENTBRIDGE_CONFIGURATION in notification_configuration:\n notifications[EVENTBRIDGE_CONFIGURATION] = notification_configuration[EVENTBRIDGE_CONFIGURATION]\n elif EVENTBRIDGE_CONFIGURATION in external_notifications:\n notifications[EVENTBRIDGE_CONFIGURATION] = external_notifications[EVENTBRIDGE_CONFIGURATION]\n\n return notifications\n\ndef submit_response(event: dict, context, response_status: str, error_message: str):\n response_body = json.dumps(\n {\n \"Status\": response_status,\n \"Reason\": f\"{error_message}See the details in CloudWatch Log Stream: {context.log_stream_name}\",\n \"PhysicalResourceId\": event.get(\"PhysicalResourceId\") or event[\"LogicalResourceId\"],\n \"StackId\": event[\"StackId\"],\n \"RequestId\": event[\"RequestId\"],\n \"LogicalResourceId\": event[\"LogicalResourceId\"],\n \"NoEcho\": False,\n }\n ).encode(\"utf-8\")\n headers = {\"content-type\": \"\", \"content-length\": str(len(response_body))}\n try:\n req = urllib.request.Request(url=event[\"ResponseURL\"], headers=headers, data=response_body, method=\"PUT\")\n with urllib.request.urlopen(req) as response:\n print(response.read().decode(\"utf-8\"))\n print(\"Status code: \" + response.reason)\n except Exception as e:\n print(\"send(..) failed executing request.urlopen(..): \" + str(e))\n\ndef sort_filter_rules(json_obj):\n if not isinstance(json_obj, dict):\n return json_obj\n for key, value in json_obj.items():\n if isinstance(value, dict):\n json_obj[key] = sort_filter_rules(value)\n elif isinstance(value, list):\n json_obj[key] = [sort_filter_rules(item) for item in value]\n if \"Filter\" in json_obj and \"Key\" in json_obj[\"Filter\"] and \"FilterRules\" in json_obj[\"Filter\"][\"Key\"]:\n filter_rules = json_obj[\"Filter\"][\"Key\"][\"FilterRules\"]\n sorted_filter_rules = sorted(filter_rules, key=lambda x: x[\"Name\"])\n json_obj[\"Filter\"][\"Key\"][\"FilterRules\"] = sorted_filter_rules\n return json_obj" - }, - "Handler": "index.handler", - "Role": "arn:aws:iam::123456789012:role/amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY/BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC", - "Runtime": "python3.13", - "Timeout": 300, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Resource" - } - }, - "PRODUCTCATALOGF95AF07481F845CAA6594C26AC9C8ED331323GEN2MAINBUCKETNAMEParameterAE2B6C43": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/productcatalog/gen2main-branch-4b79ec0f9a/PRODUCTCATALOGF_95_AF_07481_F_845_CAA_6594_C_26_AC_9_C_8_ED_331323_GEN_2_MAIN_BUCKET_NAME", - "Tags": { - "amplify:app-id": "productcatalog", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/PRODUCTCATALOGF_95_AF_07481_F_845_CAA_6594_C_26_AC_9_C_8_ED_331323_GEN_2_MAIN_BUCKET_NAMEParameter/Resource" - } - }, - "amplifyproductcataloggen2mainbranch4b79ec0f9astorageAccess4028BDDB5": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:PutObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/*", - "public/", - "protected/*", - "protected/", - "private/*", - "private/" - ] - } - }, - "Effect": "Allow", - "Resource": "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" - }, - { - "Action": "s3:DeleteObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - "/private/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "amplifyproductcataloggen2mainbranch4b79ec0f9astorageAccess4028BDDB5", - "Roles": [ - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/amplify-productcatalog-gen2main-branch-4b79ec0f9a--storageAccess4/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WMwY6DMAxEv6X34G3ZHvbacq8QfEBlEhe5kESKDdUq4t+rhe1We3ozHs+UUB4PsN/hQwrrhmLkDvKFRMm1inYw+JBrlk/I58kOpKa6hV+1oY4j2+/3efOLGdF3DqG6hZqSZxGOwTB6yE0c6ed/5bv+Kop4yK0mDn2NCT0ppTV/mWUx1SQafUMSp2S3sT/9L6pTnNlROqOQOYmQtoo9h34xITqCu3zMZQmHL9jv7sJcpCkoe4Jm4xOpWX2AHwEAAA==" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9afunctionNestedStackfunctionNestedStackResource6DAC5252Outputsamplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda22206BBBArn": { - "Type": "String" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref": { - "Type": "String" - } - }, - "Outputs": { - "amplifyproductcataloggen2mainbranch4b79ec0f9astorageproductcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketBD2F9EF2Ref": { - "Value": "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.target.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.target.template.json deleted file mode 100644 index d75aadd5327..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY-holding.target.template.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "Temporary holding stack for Gen2 migration", - "Resources": { - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "BucketKeyEnabled": false, - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "MaxAge": 3000 - } - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/Resource" - } - } - }, - "Outputs": {} -} \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.mappings.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.mappings.json deleted file mode 100644 index d48c12ba206..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.mappings.json +++ /dev/null @@ -1,52 +0,0 @@ -[ - { - "Source": { - "StackName": "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC", - "LogicalResourceId": "UserPool" - }, - "Destination": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" - } - }, - { - "Source": { - "StackName": "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC", - "LogicalResourceId": "UserPoolClientWeb" - }, - "Destination": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" - } - }, - { - "Source": { - "StackName": "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC", - "LogicalResourceId": "UserPoolClient" - }, - "Destination": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" - } - }, - { - "Source": { - "StackName": "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC", - "LogicalResourceId": "IdentityPool" - }, - "Destination": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" - } - }, - { - "Source": { - "StackName": "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC", - "LogicalResourceId": "IdentityPoolRoleMap" - }, - "Destination": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" - } - } -] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.source.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.source.template.json deleted file mode 100644 index 9cf5ab554b8..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.source.template.json +++ /dev/null @@ -1,190 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "env": { - "Type": "String" - }, - "identityPoolName": { - "Type": "String" - }, - "allowUnauthenticatedIdentities": { - "Type": "String" - }, - "resourceNameTruncated": { - "Type": "String" - }, - "userPoolName": { - "Type": "String" - }, - "autoVerifiedAttributes": { - "Type": "CommaDelimitedList" - }, - "mfaConfiguration": { - "Type": "String" - }, - "mfaTypes": { - "Type": "CommaDelimitedList" - }, - "smsAuthenticationMessage": { - "Type": "String" - }, - "smsVerificationMessage": { - "Type": "String" - }, - "emailVerificationSubject": { - "Type": "String" - }, - "emailVerificationMessage": { - "Type": "String" - }, - "defaultPasswordPolicy": { - "Type": "String" - }, - "passwordPolicyMinLength": { - "Type": "String" - }, - "passwordPolicyCharacters": { - "Type": "CommaDelimitedList" - }, - "requiredAttributes": { - "Type": "CommaDelimitedList" - }, - "aliasAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientGenerateSecret": { - "Type": "String" - }, - "userpoolClientRefreshTokenValidity": { - "Type": "String" - }, - "userpoolClientWriteAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientReadAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientLambdaRole": { - "Type": "String" - }, - "userpoolClientSetAttributes": { - "Type": "String" - }, - "sharedId": { - "Type": "String" - }, - "resourceName": { - "Type": "String" - }, - "authSelections": { - "Type": "String" - }, - "useDefault": { - "Type": "String" - }, - "usernameAttributes": { - "Type": "CommaDelimitedList" - }, - "userPoolGroupList": { - "Type": "CommaDelimitedList" - }, - "serviceName": { - "Type": "String" - }, - "usernameCaseSensitive": { - "Type": "String" - }, - "useEnabledMfas": { - "Type": "String" - }, - "authRoleArn": { - "Type": "String" - }, - "unauthRoleArn": { - "Type": "String" - }, - "breakCircularDependency": { - "Type": "String" - }, - "dependsOn": { - "Type": "CommaDelimitedList" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - "main", - "NONE" - ] - } - }, - "Resources": { - "UserPoolClientRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - }, - "Action": "sts:AssumeRole" - } - ] - }, - "RoleName": { - "Fn::Join": [ - "", - [ - "upClientLambdaRole90174ac4", - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC" - ] - } - ] - }, - "-", - "main" - ] - ] - } - } - } - }, - "Outputs": { - "IdentityPoolId": { - "Description": "Id for the identity pool", - "Value": "us-east-1:46acac6f-21d1-433c-93b9-d9d908c696fc" - }, - "IdentityPoolName": { - "Value": "productcatalog90174ac4_identitypool_90174ac4__main" - }, - "UserPoolId": { - "Description": "Id for the user pool", - "Value": "us-east-1_66BkqNfdX" - }, - "UserPoolArn": { - "Description": "Arn for the user pool", - "Value": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_66BkqNfdX" - }, - "UserPoolName": { - "Value": "productcatalog90174ac4_userpool_90174ac4" - }, - "AppClientIDWeb": { - "Description": "The user pool app client id for web", - "Value": "7ogg1fkk68io03i95o0viqhibk" - }, - "AppClientID": { - "Description": "The user pool app client id", - "Value": "27jbakm3s7vgm116b36evi830d" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.target.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.target.template.json deleted file mode 100644 index a69d3b0e16d..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.target.template.json +++ /dev/null @@ -1,561 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.11.1\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", - "Resources": { - "amplifyAuthauthenticatedUserRoleD8DA3689": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:c464f123-eaf0-4289-98b3-381197fa3d7f" - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "authenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/authenticatedUserRole/Resource" - } - }, - "amplifyAuthauthenticatedUserRoleDefaultPolicy82E52873": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "appsync:GraphQL", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:appsync:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":apis/3oy6oxkj6ffojmc2upd52ftdsq/*" - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "amplifyAuthauthenticatedUserRoleDefaultPolicy82E52873", - "Roles": [ - "amplify-productcatalog-ge-amplifyAuthauthenticatedU-7u6GoubHxSy7" - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/authenticatedUserRole/DefaultPolicy/Resource" - } - }, - "amplifyAuthunauthenticatedUserRole2B524D9E": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:c464f123-eaf0-4289-98b3-381197fa3d7f" - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "unauthenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/unauthenticatedUserRole/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/02LvQ6CMBSFn4W9XKFxcDVMLsZgnE1tr3qhtAm9SkjTdzdIUKbznT8JcltCkakh5Nq0uaUbxCMGRnNmpVuhhnCN2j8csYd4CdifvLeiursfL1BZQsfr6p8cDDomHpfz2tfe4p5Z6WeHjpMg1UGcwmn41ZO3pMfJzpRSEs4bhCZs3lJCuYMiawJR3r8cU4dQz/oBzysbsN8AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - }, - "amplifyAuthUserPool4BA7F805": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": "Your verification code is {####}", - "EmailVerificationSubject": "Your verification code", - "MfaConfiguration": "OFF", - "Policies": { - "PasswordPolicy": { - "MinimumLength": "8", - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolName": { - "Fn::Join": [ - "", - [ - "productcatalog90174ac4_userpool_90174ac4", - "-", - "main" - ] - ] - }, - "UsernameAttributes": [ - "email" - ], - "UsernameConfiguration": { - "CaseSensitive": false - } - } - }, - "amplifyAuthUserPoolAppClient2626C6F8": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "produc90174ac4_app_clientWeb", - "RefreshTokenValidity": "30", - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": "us-east-1_66BkqNfdX" - } - }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "produc90174ac4_app_client", - "GenerateSecret": "false", - "RefreshTokenValidity": "30", - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": "us-east-1_66BkqNfdX" - } - }, - "amplifyAuthIdentityPool3FDE84CC": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": "false", - "CognitoIdentityProviders": [ - { - "ClientId": "27jbakm3s7vgm116b36evi830d", - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": "us-east-1_66BkqNfdX" - } - ] - } - }, - { - "ClientId": "7ogg1fkk68io03i95o0viqhibk", - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": "us-east-1_66BkqNfdX" - } - ] - } - } - ], - "IdentityPoolName": { - "Fn::Join": [ - "", - [ - "productcatalog90174ac4_identitypool_90174ac4__", - "main" - ] - ] - } - } - }, - "amplifyAuthIdentityPoolRoleAttachment045F17C8": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": "us-east-1:46acac6f-21d1-433c-93b9-d9d908c696fc", - "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-productcatalog-main-31323-unauthRole", - "authenticated": "arn:aws:iam::123456789012:role/amplify-productcatalog-main-31323-authRole" - } - } - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Outputs": { - "amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthUserPool0E44954DRef": { - "Value": "us-east-1_OFRBVzhq5" - }, - "amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthUserPoolAppClient99A19E4CRef": { - "Value": "61e6oq3acg1at7f9da6cfna70d" - }, - "amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef": { - "Value": "us-east-1:c464f123-eaf0-4289-98b3-381197fa3d7f" - }, - "amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref": { - "Value": "amplify-productcatalog-ge-amplifyAuthauthenticatedU-7u6GoubHxSy7" - }, - "amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef": { - "Value": "amplify-productcatalog-ge-amplifyAuthunauthenticate-JMPocA8XyO6M" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.mappings.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.mappings.json deleted file mode 100644 index bf796ac778b..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.mappings.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "Source": { - "StackName": "amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI", - "LogicalResourceId": "S3Bucket" - }, - "Destination": { - "StackName": "amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY", - "LogicalResourceId": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83" - } - } -] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.source.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.source.template.json deleted file mode 100644 index da74f677807..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.source.template.json +++ /dev/null @@ -1,494 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-S3\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "env": { - "Type": "String" - }, - "bucketName": { - "Type": "String" - }, - "authRoleName": { - "Type": "String" - }, - "unauthRoleName": { - "Type": "String" - }, - "authPolicyName": { - "Type": "String" - }, - "unauthPolicyName": { - "Type": "String" - }, - "s3PublicPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3PrivatePolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3ProtectedPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3UploadsPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3ReadPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3PermissionsAuthenticatedPublic": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedProtected": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedPrivate": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedUploads": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsGuestPublic": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsGuestUploads": { - "Type": "String", - "Default": "DISALLOW" - }, - "AuthenticatedAllowList": { - "Type": "String", - "Default": "DISALLOW" - }, - "GuestAllowList": { - "Type": "String", - "Default": "DISALLOW" - }, - "selectedGuestPermissions": { - "Type": "CommaDelimitedList", - "Default": "NONE" - }, - "selectedAuthenticatedPermissions": { - "Type": "CommaDelimitedList", - "Default": "NONE" - }, - "functionS3Trigger1ef46783Arn": { - "Type": "String", - "Default": "functionS3Trigger1ef46783Arn" - }, - "functionS3Trigger1ef46783Name": { - "Type": "String", - "Default": "functionS3Trigger1ef46783Name" - }, - "functionS3Trigger1ef46783LambdaExecutionRole": { - "Type": "String", - "Default": "functionS3Trigger1ef46783LambdaExecutionRole" - }, - "triggerFunction": { - "Type": "String" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - "main", - "NONE" - ] - }, - "CreateAuthPublic": { - "Fn::Not": [ - { - "Fn::Equals": [ - "s3:PutObject,s3:GetObject,s3:DeleteObject", - "DISALLOW" - ] - } - ] - }, - "CreateAuthProtected": { - "Fn::Not": [ - { - "Fn::Equals": [ - "s3:PutObject,s3:GetObject,s3:DeleteObject", - "DISALLOW" - ] - } - ] - }, - "CreateAuthPrivate": { - "Fn::Not": [ - { - "Fn::Equals": [ - "s3:PutObject,s3:GetObject,s3:DeleteObject", - "DISALLOW" - ] - } - ] - }, - "CreateAuthUploads": { - "Fn::Not": [ - { - "Fn::Equals": [ - "s3:PutObject", - "DISALLOW" - ] - } - ] - }, - "CreateGuestPublic": { - "Fn::Not": [ - { - "Fn::Equals": [ - "DISALLOW", - "DISALLOW" - ] - } - ] - }, - "CreateGuestUploads": { - "Fn::Not": [ - { - "Fn::Equals": [ - "DISALLOW", - "DISALLOW" - ] - } - ] - }, - "AuthReadAndList": { - "Fn::Not": [ - { - "Fn::Equals": [ - "ALLOW", - "DISALLOW" - ] - } - ] - }, - "GuestReadAndList": { - "Fn::Not": [ - { - "Fn::Equals": [ - "DISALLOW", - "DISALLOW" - ] - } - ] - } - }, - "Outputs": { - "BucketName": { - "Description": "Bucket name for the S3 bucket", - "Value": "productcatalogf95af07481f845caa6594c26ac9c8ed331323-main" - }, - "Region": { - "Value": "us-east-1" - } - }, - "Resources": { - "TriggerPermissions": { - "Type": "AWS::Lambda::Permission", - "Properties": { - "Action": "lambda:InvokeFunction", - "FunctionName": "S3Trigger1ef46783-main", - "Principal": "s3.amazonaws.com", - "SourceAccount": { - "Ref": "AWS::AccountId" - }, - "SourceArn": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "productcatalogf95af07481f845caa6594c26ac9c8ed3", - { - "Fn::Join": [ - "", - [ - "productcatalogf95af07481f845caa6594c26ac9c8ed3", - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - "amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI" - ] - } - ] - }, - "-", - "main" - ] - ] - } - ] - } - ] - ] - } - } - }, - "S3AuthPublicPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - "s3:PutObject,s3:GetObject,s3:DeleteObject" - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "productcatalogf95af07481f845caa6594c26ac9c8ed331323-main", - "/public/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "Public_policy_38e5b439", - "Roles": [ - "amplify-productcatalog-main-31323-authRole" - ] - }, - "Condition": "CreateAuthPublic" - }, - "S3AuthProtectedPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - "s3:PutObject,s3:GetObject,s3:DeleteObject" - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "productcatalogf95af07481f845caa6594c26ac9c8ed331323-main", - "/protected/${cognito-identity.amazonaws.com:sub}/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "Protected_policy_38e5b439", - "Roles": [ - "amplify-productcatalog-main-31323-authRole" - ] - }, - "Condition": "CreateAuthProtected" - }, - "S3AuthPrivatePolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - "s3:PutObject,s3:GetObject,s3:DeleteObject" - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "productcatalogf95af07481f845caa6594c26ac9c8ed331323-main", - "/private/${cognito-identity.amazonaws.com:sub}/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "Private_policy_38e5b439", - "Roles": [ - "amplify-productcatalog-main-31323-authRole" - ] - }, - "Condition": "CreateAuthPrivate" - }, - "S3AuthUploadPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - "s3:PutObject" - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "productcatalogf95af07481f845caa6594c26ac9c8ed331323-main", - "/uploads/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "Uploads_policy_38e5b439", - "Roles": [ - "amplify-productcatalog-main-31323-authRole" - ] - }, - "Condition": "CreateAuthUploads" - }, - "S3AuthReadPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "productcatalogf95af07481f845caa6594c26ac9c8ed331323-main", - "/protected/*" - ] - ] - } - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/", - "public/*", - "protected/", - "protected/*", - "private/${cognito-identity.amazonaws.com:sub}/", - "private/${cognito-identity.amazonaws.com:sub}/*" - ] - } - }, - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "productcatalogf95af07481f845caa6594c26ac9c8ed331323-main" - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "read_policy_38e5b439", - "Roles": [ - "amplify-productcatalog-main-31323-authRole" - ] - }, - "Condition": "AuthReadAndList" - }, - "S3TriggerBucketPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "s3:ListBucket" - ], - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "productcatalogf95af07481f845caa6594c26ac9c8ed331323-main" - ] - ] - } - ] - }, - { - "Effect": "Allow", - "Action": [ - "s3:PutObject", - "s3:GetObject", - "s3:ListBucket", - "s3:DeleteObject" - ], - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "productcatalogf95af07481f845caa6594c26ac9c8ed331323-main", - "/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "amplify-lambda-execution-policy-storage", - "Roles": [ - "S3Trigger1ef46783LambdaRole1ef46783-main" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.target.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.target.template.json deleted file mode 100644 index 9a1ece0d4ba..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.__to__.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.target.template.json +++ /dev/null @@ -1,811 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", - "Resources": { - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketPolicyF51DAA81": { - "Type": "AWS::S3::BucketPolicy", - "Properties": { - "Bucket": "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:*", - "Condition": { - "Bool": { - "aws:SecureTransport": "false" - } - }, - "Effect": "Deny", - "Principal": { - "AWS": "*" - }, - "Resource": [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - "/*" - ] - ] - } - ] - }, - { - "Action": [ - "s3:PutBucketPolicy", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*" - ], - "Effect": "Allow", - "Principal": { - "AWS": "arn:aws:iam::123456789012:role/amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - }, - "Resource": [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - "/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/Policy/Resource" - } - }, - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketAutoDeleteObjectsCustomResource6974B5B5": { - "Type": "Custom::S3AutoDeleteObjects", - "Properties": { - "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "BucketName": "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/AutoDeleteObjectsCustomResource/Default" - } - }, - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketNotifications20779ED4": { - "Type": "Custom::S3BucketNotifications", - "Properties": { - "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY/BucketNotificationsHandler050a0587b7544547bf325f094a3db8347ECC3691", - "BucketName": "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - "NotificationConfiguration": { - "LambdaFunctionConfigurations": [ - { - "Events": [ - "s3:ObjectCreated:*" - ], - "LambdaFunctionArn": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9afunctionNestedStackfunctionNestedStackResource6DAC5252Outputsamplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda22206BBBArn" - } - }, - { - "Events": [ - "s3:ObjectRemoved:*" - ], - "LambdaFunctionArn": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9afunctionNestedStackfunctionNestedStackResource6DAC5252Outputsamplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda22206BBBArn" - } - } - ] - }, - "Managed": true, - "SkipDestinationValidation": false - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/Notifications/Resource" - } - }, - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketAllowBucketNotificationsToamplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda8226525A5BBBE747": { - "Type": "AWS::Lambda::Permission", - "Properties": { - "Action": "lambda:InvokeFunction", - "FunctionName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9afunctionNestedStackfunctionNestedStackResource6DAC5252Outputsamplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda22206BBBArn" - }, - "Principal": "s3.amazonaws.com", - "SourceAccount": { - "Ref": "AWS::AccountId" - }, - "SourceArn": "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/AllowBucketNotificationsToamplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda8226525A" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ] - }, - "ManagedPolicyArns": [ - { - "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" - }, - "Timeout": 900, - "MemorySize": 128, - "Handler": "index.handler", - "Role": "arn:aws:iam::123456789012:role/amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Runtime": "nodejs22.x", - "Description": { - "Fn::Join": [ - "", - [ - "Lambda function for auto-deleting objects in ", - "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - " S3 bucket." - ] - ] - } - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", - "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", - "aws:asset:property": "Code" - } - }, - "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Role/Resource" - } - }, - "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleDefaultPolicy2CF63D36": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:PutBucketNotification", - "Effect": "Allow", - "Resource": "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleDefaultPolicy2CF63D36", - "Roles": [ - { - "Ref": "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Role/DefaultPolicy/Resource" - } - }, - "BucketNotificationsHandler050a0587b7544547bf325f094a3db8347ECC3691": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Description": "AWS CloudFormation handler for \"Custom::S3BucketNotifications\" resources (@aws-cdk/aws-s3)", - "Code": { - "ZipFile": "import boto3 # type: ignore\nimport json\nimport logging\nimport urllib.request\n\ns3 = boto3.client(\"s3\")\n\nEVENTBRIDGE_CONFIGURATION = 'EventBridgeConfiguration'\nCONFIGURATION_TYPES = [\"TopicConfigurations\", \"QueueConfigurations\", \"LambdaFunctionConfigurations\"]\n\ndef handler(event: dict, context):\n response_status = \"SUCCESS\"\n error_message = \"\"\n try:\n props = event[\"ResourceProperties\"]\n notification_configuration = props[\"NotificationConfiguration\"]\n managed = props.get('Managed', 'true').lower() == 'true'\n skipDestinationValidation = props.get('SkipDestinationValidation', 'false').lower() == 'true'\n stack_id = event['StackId']\n old = event.get(\"OldResourceProperties\", {}).get(\"NotificationConfiguration\", {})\n if managed:\n config = handle_managed(event[\"RequestType\"], notification_configuration)\n else:\n config = handle_unmanaged(props[\"BucketName\"], stack_id, event[\"RequestType\"], notification_configuration, old)\n s3.put_bucket_notification_configuration(Bucket=props[\"BucketName\"], NotificationConfiguration=config, SkipDestinationValidation=skipDestinationValidation)\n except Exception as e:\n logging.exception(\"Failed to put bucket notification configuration\")\n response_status = \"FAILED\"\n error_message = f\"Error: {str(e)}. \"\n finally:\n submit_response(event, context, response_status, error_message)\n\ndef handle_managed(request_type, notification_configuration):\n if request_type == 'Delete':\n return {}\n return notification_configuration\n\ndef handle_unmanaged(bucket, stack_id, request_type, notification_configuration, old):\n def get_id(n):\n n['Id'] = ''\n sorted_notifications = sort_filter_rules(n)\n strToHash=json.dumps(sorted_notifications, sort_keys=True).replace('\"Name\": \"prefix\"', '\"Name\": \"Prefix\"').replace('\"Name\": \"suffix\"', '\"Name\": \"Suffix\"')\n return f\"{stack_id}-{hash(strToHash)}\"\n def with_id(n):\n n['Id'] = get_id(n)\n return n\n\n external_notifications = {}\n existing_notifications = s3.get_bucket_notification_configuration(Bucket=bucket)\n for t in CONFIGURATION_TYPES:\n if request_type == 'Update':\n old_incoming_ids = [get_id(n) for n in old.get(t, [])]\n external_notifications[t] = [n for n in existing_notifications.get(t, []) if not get_id(n) in old_incoming_ids] \n elif request_type == 'Delete':\n external_notifications[t] = [n for n in existing_notifications.get(t, []) if not n['Id'].startswith(f\"{stack_id}-\")]\n elif request_type == 'Create':\n external_notifications[t] = [n for n in existing_notifications.get(t, [])]\n if EVENTBRIDGE_CONFIGURATION in existing_notifications:\n external_notifications[EVENTBRIDGE_CONFIGURATION] = existing_notifications[EVENTBRIDGE_CONFIGURATION]\n\n if request_type == 'Delete':\n return external_notifications\n\n notifications = {}\n for t in CONFIGURATION_TYPES:\n external = external_notifications.get(t, [])\n incoming = [with_id(n) for n in notification_configuration.get(t, [])]\n notifications[t] = external + incoming\n\n if EVENTBRIDGE_CONFIGURATION in notification_configuration:\n notifications[EVENTBRIDGE_CONFIGURATION] = notification_configuration[EVENTBRIDGE_CONFIGURATION]\n elif EVENTBRIDGE_CONFIGURATION in external_notifications:\n notifications[EVENTBRIDGE_CONFIGURATION] = external_notifications[EVENTBRIDGE_CONFIGURATION]\n\n return notifications\n\ndef submit_response(event: dict, context, response_status: str, error_message: str):\n response_body = json.dumps(\n {\n \"Status\": response_status,\n \"Reason\": f\"{error_message}See the details in CloudWatch Log Stream: {context.log_stream_name}\",\n \"PhysicalResourceId\": event.get(\"PhysicalResourceId\") or event[\"LogicalResourceId\"],\n \"StackId\": event[\"StackId\"],\n \"RequestId\": event[\"RequestId\"],\n \"LogicalResourceId\": event[\"LogicalResourceId\"],\n \"NoEcho\": False,\n }\n ).encode(\"utf-8\")\n headers = {\"content-type\": \"\", \"content-length\": str(len(response_body))}\n try:\n req = urllib.request.Request(url=event[\"ResponseURL\"], headers=headers, data=response_body, method=\"PUT\")\n with urllib.request.urlopen(req) as response:\n print(response.read().decode(\"utf-8\"))\n print(\"Status code: \" + response.reason)\n except Exception as e:\n print(\"send(..) failed executing request.urlopen(..): \" + str(e))\n\ndef sort_filter_rules(json_obj):\n if not isinstance(json_obj, dict):\n return json_obj\n for key, value in json_obj.items():\n if isinstance(value, dict):\n json_obj[key] = sort_filter_rules(value)\n elif isinstance(value, list):\n json_obj[key] = [sort_filter_rules(item) for item in value]\n if \"Filter\" in json_obj and \"Key\" in json_obj[\"Filter\"] and \"FilterRules\" in json_obj[\"Filter\"][\"Key\"]:\n filter_rules = json_obj[\"Filter\"][\"Key\"][\"FilterRules\"]\n sorted_filter_rules = sorted(filter_rules, key=lambda x: x[\"Name\"])\n json_obj[\"Filter\"][\"Key\"][\"FilterRules\"] = sorted_filter_rules\n return json_obj" - }, - "Handler": "index.handler", - "Role": "arn:aws:iam::123456789012:role/amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY/BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC", - "Runtime": "python3.13", - "Timeout": 300, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Resource" - } - }, - "PRODUCTCATALOGF95AF07481F845CAA6594C26AC9C8ED331323GEN2MAINBUCKETNAMEParameterAE2B6C43": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/productcatalog/gen2main-branch-4b79ec0f9a/PRODUCTCATALOGF_95_AF_07481_F_845_CAA_6594_C_26_AC_9_C_8_ED_331323_GEN_2_MAIN_BUCKET_NAME", - "Tags": { - "amplify:app-id": "productcatalog", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/PRODUCTCATALOGF_95_AF_07481_F_845_CAA_6594_C_26_AC_9_C_8_ED_331323_GEN_2_MAIN_BUCKET_NAMEParameter/Resource" - } - }, - "amplifyproductcataloggen2mainbranch4b79ec0f9astorageAccess4028BDDB5": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:PutObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/*", - "public/", - "protected/*", - "protected/", - "private/*", - "private/" - ] - } - }, - "Effect": "Allow", - "Resource": "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" - }, - { - "Action": "s3:DeleteObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - "/private/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "amplifyproductcataloggen2mainbranch4b79ec0f9astorageAccess4028BDDB5", - "Roles": [ - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/amplify-productcatalog-gen2main-branch-4b79ec0f9a--storageAccess4/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WMwY6DMAxEv6X34G3ZHvbacq8QfEBlEhe5kESKDdUq4t+rhe1We3ozHs+UUB4PsN/hQwrrhmLkDvKFRMm1inYw+JBrlk/I58kOpKa6hV+1oY4j2+/3efOLGdF3DqG6hZqSZxGOwTB6yE0c6ed/5bv+Kop4yK0mDn2NCT0ppTV/mWUx1SQafUMSp2S3sT/9L6pTnNlROqOQOYmQtoo9h34xITqCu3zMZQmHL9jv7sJcpCkoe4Jm4xOpWX2AHwEAAA==" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - }, - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketName": { - "Fn::Join": [ - "", - [ - "productcatalogf95af07481f845caa6594c26ac9c8ed3", - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - "amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI" - ] - } - ] - }, - "-", - "main" - ] - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "Id": "S3CORSRuleId1", - "MaxAge": 3000 - } - ] - }, - "NotificationConfiguration": { - "LambdaConfigurations": [ - { - "Event": "s3:ObjectCreated:*", - "Function": "arn:aws:lambda:us-east-1:123456789012:function:S3Trigger1ef46783-main" - }, - { - "Event": "s3:ObjectRemoved:*", - "Function": "arn:aws:lambda:us-east-1:123456789012:function:S3Trigger1ef46783-main" - } - ] - }, - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - } - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9afunctionNestedStackfunctionNestedStackResource6DAC5252Outputsamplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda22206BBBArn": { - "Type": "String" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref": { - "Type": "String" - } - }, - "Outputs": { - "amplifyproductcataloggen2mainbranch4b79ec0f9astorageproductcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketBD2F9EF2Ref": { - "Value": "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-x-x-authproductcatalog90174ac4-x.__to__.amplify-productcatalog-e2e-sandbox-x-auth179371D7-x.mappings.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-x-x-authproductcatalog90174ac4-x.__to__.amplify-productcatalog-e2e-sandbox-x-auth179371D7-x.mappings.json new file mode 100644 index 00000000000..594c373583e --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-x-x-authproductcatalog90174ac4-x.__to__.amplify-productcatalog-e2e-sandbox-x-auth179371D7-x.mappings.json @@ -0,0 +1,52 @@ +[ + { + "Source": { + "StackName": "amplify-productcatalog-x-x-authproductcatalog90174ac4-x", + "LogicalResourceId": "UserPool" + }, + "Destination": { + "StackName": "amplify-productcatalog-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + } + }, + { + "Source": { + "StackName": "amplify-productcatalog-x-x-authproductcatalog90174ac4-x", + "LogicalResourceId": "UserPoolClientWeb" + }, + "Destination": { + "StackName": "amplify-productcatalog-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + } + }, + { + "Source": { + "StackName": "amplify-productcatalog-x-x-authproductcatalog90174ac4-x", + "LogicalResourceId": "UserPoolClient" + }, + "Destination": { + "StackName": "amplify-productcatalog-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + } + }, + { + "Source": { + "StackName": "amplify-productcatalog-x-x-authproductcatalog90174ac4-x", + "LogicalResourceId": "IdentityPool" + }, + "Destination": { + "StackName": "amplify-productcatalog-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + } + }, + { + "Source": { + "StackName": "amplify-productcatalog-x-x-authproductcatalog90174ac4-x", + "LogicalResourceId": "IdentityPoolRoleMap" + }, + "Destination": { + "StackName": "amplify-productcatalog-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + } + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-x-x-authproductcatalog90174ac4-x.__to__.amplify-productcatalog-e2e-sandbox-x-auth179371D7-x.source.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-x-x-authproductcatalog90174ac4-x.__to__.amplify-productcatalog-e2e-sandbox-x-auth179371D7-x.source.template.json new file mode 100644 index 00000000000..db3a4fcbc10 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-x-x-authproductcatalog90174ac4-x.__to__.amplify-productcatalog-e2e-sandbox-x-auth179371D7-x.source.template.json @@ -0,0 +1,190 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "identityPoolName": { + "Type": "String" + }, + "allowUnauthenticatedIdentities": { + "Type": "String" + }, + "resourceNameTruncated": { + "Type": "String" + }, + "userPoolName": { + "Type": "String" + }, + "autoVerifiedAttributes": { + "Type": "CommaDelimitedList" + }, + "mfaConfiguration": { + "Type": "String" + }, + "mfaTypes": { + "Type": "CommaDelimitedList" + }, + "smsAuthenticationMessage": { + "Type": "String" + }, + "smsVerificationMessage": { + "Type": "String" + }, + "emailVerificationSubject": { + "Type": "String" + }, + "emailVerificationMessage": { + "Type": "String" + }, + "defaultPasswordPolicy": { + "Type": "String" + }, + "passwordPolicyMinLength": { + "Type": "String" + }, + "passwordPolicyCharacters": { + "Type": "CommaDelimitedList" + }, + "requiredAttributes": { + "Type": "CommaDelimitedList" + }, + "aliasAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientGenerateSecret": { + "Type": "String" + }, + "userpoolClientRefreshTokenValidity": { + "Type": "String" + }, + "userpoolClientWriteAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientReadAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientLambdaRole": { + "Type": "String" + }, + "userpoolClientSetAttributes": { + "Type": "String" + }, + "sharedId": { + "Type": "String" + }, + "resourceName": { + "Type": "String" + }, + "authSelections": { + "Type": "String" + }, + "useDefault": { + "Type": "String" + }, + "usernameAttributes": { + "Type": "CommaDelimitedList" + }, + "userPoolGroupList": { + "Type": "CommaDelimitedList" + }, + "serviceName": { + "Type": "String" + }, + "usernameCaseSensitive": { + "Type": "String" + }, + "useEnabledMfas": { + "Type": "String" + }, + "authRoleArn": { + "Type": "String" + }, + "unauthRoleArn": { + "Type": "String" + }, + "breakCircularDependency": { + "Type": "String" + }, + "dependsOn": { + "Type": "CommaDelimitedList" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + "x", + "NONE" + ] + } + }, + "Resources": { + "UserPoolClientRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + }, + "Action": "sts:AssumeRole" + } + ] + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "upClientLambdaRole90174ac4", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + "amplify-productcatalog-x-x-authproductcatalog90174ac4-x" + ] + } + ] + }, + "-", + "x" + ] + ] + } + } + } + }, + "Outputs": { + "IdentityPoolId": { + "Description": "Id for the identity pool", + "Value": "us-east-1:a3f1cc1e-f560-4202-ba02-4c435dec114d" + }, + "IdentityPoolName": { + "Value": "productcatalog90174ac4_identitypool_90174ac4__x" + }, + "UserPoolId": { + "Description": "Id for the user pool", + "Value": "us-east-1_HpX9WE297" + }, + "UserPoolArn": { + "Description": "Arn for the user pool", + "Value": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_HpX9WE297" + }, + "UserPoolName": { + "Value": "productcatalog90174ac4_userpool_90174ac4" + }, + "AppClientIDWeb": { + "Description": "The user pool app client id for web", + "Value": "5t4ot0q04ialfrcrbs42ja7pul" + }, + "AppClientID": { + "Description": "The user pool app client id", + "Value": "4kaqq4k3inp7kumdv6bqelrm7" + } + } +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-x-x-authproductcatalog90174ac4-x.__to__.amplify-productcatalog-e2e-sandbox-x-auth179371D7-x.target.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-x-x-authproductcatalog90174ac4-x.__to__.amplify-productcatalog-e2e-sandbox-x-auth179371D7-x.target.template.json new file mode 100644 index 00000000000..a4c0a565af6 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-x-x-authproductcatalog90174ac4-x.__to__.amplify-productcatalog-e2e-sandbox-x-auth179371D7-x.target.template.json @@ -0,0 +1,551 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", + "Resources": { + "amplifyAuthauthenticatedUserRoleD8DA3689": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:ec121e86-e0d7-4f59-beaf-535182dac9c0" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/auth/amplifyAuth/authenticatedUserRole/Resource" + } + }, + "amplifyAuthauthenticatedUserRoleDefaultPolicy82E52873": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "appsync:GraphQL", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:appsync:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":apis/hscmwhprkbaljmcpavj3dcztrq/*" + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "amplifyAuthauthenticatedUserRoleDefaultPolicy82E52873", + "Roles": [ + "amplify-productcat2604142-amplifyAuthauthenticatedU-FTyAOUWtFeJb" + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/auth/amplifyAuth/authenticatedUserRole/DefaultPolicy/Resource" + } + }, + "amplifyAuthunauthenticatedUserRole2B524D9E": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:ec121e86-e0d7-4f59-beaf-535182dac9c0" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "unauthenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/auth/amplifyAuth/unauthenticatedUserRole/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/02Lyw6CMBBFv4V9GbGJ7g0rN4ZgXJvajjpQ2oSOEtL03w0SlNU99yVB7gooMjWEXJs2t3SDeMLAaM6sdCvUEK5R+4cj9hAvAfvKeyvKu/vxAqUldLyu/snRoGPicTmvfe0tHpiVfnboOAlSHcQpnIZfrbwlPU52ppSScN4gNGHzlhK2eyiyJhDl/csxdQj1rB8nXeTo3wAAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/auth/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + }, + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": "8", + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolName": { + "Fn::Join": [ + "", + [ + "productcatalog90174ac4_userpool_90174ac4", + "-", + "x" + ] + ] + }, + "UsernameAttributes": [ + "email" + ], + "UsernameConfiguration": { + "CaseSensitive": false + } + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "produc90174ac4_app_clientWeb", + "RefreshTokenValidity": "30", + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": "us-east-1_HpX9WE297" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "produc90174ac4_app_client", + "GenerateSecret": "false", + "RefreshTokenValidity": "30", + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": "us-east-1_HpX9WE297" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": "false", + "CognitoIdentityProviders": [ + { + "ClientId": "4kaqq4k3inp7kumdv6bqelrm7", + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": "us-east-1_HpX9WE297" + } + ] + } + }, + { + "ClientId": "5t4ot0q04ialfrcrbs42ja7pul", + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": "us-east-1_HpX9WE297" + } + ] + } + } + ], + "IdentityPoolName": { + "Fn::Join": [ + "", + [ + "productcatalog90174ac4_identitypool_90174ac4__", + "x" + ] + ] + } + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:a3f1cc1e-f560-4202-ba02-4c435dec114d", + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-productcatalog-x-x-unauthRole", + "authenticated": "arn:aws:iam::123456789012:role/amplify-productcatalog-x-x-authRole" + } + } + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifyproductcataloge2esandboxde12df9a17authamplifyAuthUserPool28A7874FRef": { + "Value": "us-east-1_tRO9BruHe" + }, + "amplifyproductcataloge2esandboxde12df9a17authamplifyAuthUserPoolAppClient577E72DBRef": { + "Value": "27q6muiijfov65g35g37t9bldv" + }, + "amplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef": { + "Value": "us-east-1:ec121e86-e0d7-4f59-beaf-535182dac9c0" + }, + "amplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref": { + "Value": "amplify-productcat2604142-amplifyAuthauthenticatedU-FTyAOUWtFeJb" + }, + "amplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref": { + "Value": "amplify-productcat2604142-amplifyAuthunauthenticate-OzRPKugSY82W" + } + } +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-x-x-storages338e5b439-x.__to__.amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x.mappings.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-x-x-storages338e5b439-x.__to__.amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x.mappings.json new file mode 100644 index 00000000000..0faf6fb61a3 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-x-x-storages338e5b439-x.__to__.amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x.mappings.json @@ -0,0 +1,12 @@ +[ + { + "Source": { + "StackName": "amplify-productcatalog-x-x-storages338e5b439-x", + "LogicalResourceId": "S3Bucket" + }, + "Destination": { + "StackName": "amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x", + "LogicalResourceId": "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketACEF49E5" + } + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-x-x-storages338e5b439-x.__to__.amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x.source.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-x-x-storages338e5b439-x.__to__.amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x.source.template.json new file mode 100644 index 00000000000..2e4b7a7bf76 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-x-x-storages338e5b439-x.__to__.amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x.source.template.json @@ -0,0 +1,494 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-S3\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "bucketName": { + "Type": "String" + }, + "authRoleName": { + "Type": "String" + }, + "unauthRoleName": { + "Type": "String" + }, + "authPolicyName": { + "Type": "String" + }, + "unauthPolicyName": { + "Type": "String" + }, + "s3PublicPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3PrivatePolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3ProtectedPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3UploadsPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3ReadPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3PermissionsAuthenticatedPublic": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedProtected": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedPrivate": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedUploads": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsGuestPublic": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsGuestUploads": { + "Type": "String", + "Default": "DISALLOW" + }, + "AuthenticatedAllowList": { + "Type": "String", + "Default": "DISALLOW" + }, + "GuestAllowList": { + "Type": "String", + "Default": "DISALLOW" + }, + "selectedGuestPermissions": { + "Type": "CommaDelimitedList", + "Default": "NONE" + }, + "selectedAuthenticatedPermissions": { + "Type": "CommaDelimitedList", + "Default": "NONE" + }, + "functionS3Trigger1ef46783Arn": { + "Type": "String", + "Default": "functionS3Trigger1ef46783Arn" + }, + "functionS3Trigger1ef46783Name": { + "Type": "String", + "Default": "functionS3Trigger1ef46783Name" + }, + "functionS3Trigger1ef46783LambdaExecutionRole": { + "Type": "String", + "Default": "functionS3Trigger1ef46783LambdaExecutionRole" + }, + "triggerFunction": { + "Type": "String" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + "x", + "NONE" + ] + }, + "CreateAuthPublic": { + "Fn::Not": [ + { + "Fn::Equals": [ + "s3:PutObject,s3:GetObject,s3:DeleteObject", + "DISALLOW" + ] + } + ] + }, + "CreateAuthProtected": { + "Fn::Not": [ + { + "Fn::Equals": [ + "s3:PutObject,s3:GetObject,s3:DeleteObject", + "DISALLOW" + ] + } + ] + }, + "CreateAuthPrivate": { + "Fn::Not": [ + { + "Fn::Equals": [ + "s3:PutObject,s3:GetObject,s3:DeleteObject", + "DISALLOW" + ] + } + ] + }, + "CreateAuthUploads": { + "Fn::Not": [ + { + "Fn::Equals": [ + "s3:PutObject", + "DISALLOW" + ] + } + ] + }, + "CreateGuestPublic": { + "Fn::Not": [ + { + "Fn::Equals": [ + "DISALLOW", + "DISALLOW" + ] + } + ] + }, + "CreateGuestUploads": { + "Fn::Not": [ + { + "Fn::Equals": [ + "DISALLOW", + "DISALLOW" + ] + } + ] + }, + "AuthReadAndList": { + "Fn::Not": [ + { + "Fn::Equals": [ + "ALLOW", + "DISALLOW" + ] + } + ] + }, + "GuestReadAndList": { + "Fn::Not": [ + { + "Fn::Equals": [ + "DISALLOW", + "DISALLOW" + ] + } + ] + } + }, + "Outputs": { + "BucketName": { + "Description": "Bucket name for the S3 bucket", + "Value": "productcatalogf95af07481f845caa6594c26ac9c8ed3x-x" + }, + "Region": { + "Value": "us-east-1" + } + }, + "Resources": { + "TriggerPermissions": { + "Type": "AWS::Lambda::Permission", + "Properties": { + "Action": "lambda:InvokeFunction", + "FunctionName": "S3Trigger1ef46783-x", + "Principal": "s3.amazonaws.com", + "SourceAccount": { + "Ref": "AWS::AccountId" + }, + "SourceArn": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "productcatalogf95af07481f845caa6594c26ac9c8ed3", + { + "Fn::Join": [ + "", + [ + "productcatalogf95af07481f845caa6594c26ac9c8ed3", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + "amplify-productcatalog-x-x-storages338e5b439-x" + ] + } + ] + }, + "-", + "x" + ] + ] + } + ] + } + ] + ] + } + } + }, + "S3AuthPublicPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + "s3:PutObject,s3:GetObject,s3:DeleteObject" + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "productcatalogf95af07481f845caa6594c26ac9c8ed3x-x", + "/public/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "Public_policy_38e5b439", + "Roles": [ + "amplify-productcatalog-x-x-authRole" + ] + }, + "Condition": "CreateAuthPublic" + }, + "S3AuthProtectedPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + "s3:PutObject,s3:GetObject,s3:DeleteObject" + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "productcatalogf95af07481f845caa6594c26ac9c8ed3x-x", + "/protected/${cognito-identity.amazonaws.com:sub}/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "Protected_policy_38e5b439", + "Roles": [ + "amplify-productcatalog-x-x-authRole" + ] + }, + "Condition": "CreateAuthProtected" + }, + "S3AuthPrivatePolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + "s3:PutObject,s3:GetObject,s3:DeleteObject" + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "productcatalogf95af07481f845caa6594c26ac9c8ed3x-x", + "/private/${cognito-identity.amazonaws.com:sub}/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "Private_policy_38e5b439", + "Roles": [ + "amplify-productcatalog-x-x-authRole" + ] + }, + "Condition": "CreateAuthPrivate" + }, + "S3AuthUploadPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + "s3:PutObject" + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "productcatalogf95af07481f845caa6594c26ac9c8ed3x-x", + "/uploads/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "Uploads_policy_38e5b439", + "Roles": [ + "amplify-productcatalog-x-x-authRole" + ] + }, + "Condition": "CreateAuthUploads" + }, + "S3AuthReadPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "productcatalogf95af07481f845caa6594c26ac9c8ed3x-x", + "/protected/*" + ] + ] + } + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/", + "public/*", + "protected/", + "protected/*", + "private/${cognito-identity.amazonaws.com:sub}/", + "private/${cognito-identity.amazonaws.com:sub}/*" + ] + } + }, + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "productcatalogf95af07481f845caa6594c26ac9c8ed3x-x" + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "read_policy_38e5b439", + "Roles": [ + "amplify-productcatalog-x-x-authRole" + ] + }, + "Condition": "AuthReadAndList" + }, + "S3TriggerBucketPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "s3:ListBucket" + ], + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "productcatalogf95af07481f845caa6594c26ac9c8ed3x-x" + ] + ] + } + ] + }, + { + "Effect": "Allow", + "Action": [ + "s3:PutObject", + "s3:GetObject", + "s3:ListBucket", + "s3:DeleteObject" + ], + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "productcatalogf95af07481f845caa6594c26ac9c8ed3x-x", + "/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "amplify-lambda-execution-policy-storage", + "Roles": [ + "S3Trigger1ef46783LambdaRole1ef46783-x" + ] + } + } + } +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-x-x-storages338e5b439-x.__to__.amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x.target.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-x-x-storages338e5b439-x.__to__.amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x.target.template.json new file mode 100644 index 00000000000..75cb0836c0e --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/refactor.__from__.amplify-productcatalog-x-x-storages338e5b439-x.__to__.amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x.target.template.json @@ -0,0 +1,813 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", + "Resources": { + "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketPolicy5224AA3C": { + "Type": "AWS::S3::BucketPolicy", + "Properties": { + "Bucket": "amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:*", + "Condition": { + "Bool": { + "aws:SecureTransport": "false" + } + }, + "Effect": "Deny", + "Principal": { + "AWS": "*" + }, + "Resource": [ + "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + "/*" + ] + ] + } + ] + }, + { + "Action": [ + "s3:PutBucketPolicy", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*" + ], + "Effect": "Allow", + "Principal": { + "AWS": "arn:aws:iam::123456789012:role/amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + }, + "Resource": [ + "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/productcatalogf95af07481f845caa6594c26ac9c8ed3x-gen2-x/Bucket/Policy/Resource" + } + }, + "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketAutoDeleteObjectsCustomResource1B906272": { + "Type": "Custom::S3AutoDeleteObjects", + "Properties": { + "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "BucketName": "amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/productcatalogf95af07481f845caa6594c26ac9c8ed3x-gen2-x/Bucket/AutoDeleteObjectsCustomResource/Default" + } + }, + "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketNotifications33A3C5B4": { + "Type": "Custom::S3BucketNotifications", + "Properties": { + "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x/BucketNotificationsHandler050a0587b7544547bf325f094a3db8347ECC3691", + "BucketName": "amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + "NotificationConfiguration": { + "LambdaFunctionConfigurations": [ + { + "Events": [ + "s3:ObjectCreated:*" + ], + "LambdaFunctionArn": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17functionNestedStackfunctionNestedStackResource2A71F224Outputsamplifyproductcataloge2esandboxde12df9a17functionS3Trigger1ef46783gen2xlambda81A9091AArn" + } + }, + { + "Events": [ + "s3:ObjectRemoved:*" + ], + "LambdaFunctionArn": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17functionNestedStackfunctionNestedStackResource2A71F224Outputsamplifyproductcataloge2esandboxde12df9a17functionS3Trigger1ef46783gen2xlambda81A9091AArn" + } + } + ] + }, + "Managed": true, + "SkipDestinationValidation": false + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/productcatalogf95af07481f845caa6594c26ac9c8ed3x-gen2-x/Bucket/Notifications/Resource" + } + }, + "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketAllowBucketNotificationsToamplifyproductcataloge2esandboxde12df9a17functionS3Trigger1ef46783gen2xlambda7E3D5F7A60F0C41B": { + "Type": "AWS::Lambda::Permission", + "Properties": { + "Action": "lambda:InvokeFunction", + "FunctionName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17functionNestedStackfunctionNestedStackResource2A71F224Outputsamplifyproductcataloge2esandboxde12df9a17functionS3Trigger1ef46783gen2xlambda81A9091AArn" + }, + "Principal": "s3.amazonaws.com", + "SourceAccount": { + "Ref": "AWS::AccountId" + }, + "SourceArn": "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/productcatalogf95af07481f845caa6594c26ac9c8ed3x-gen2-x/Bucket/AllowBucketNotificationsToamplifyproductcataloge2esandboxde12df9a17functionS3Trigger1ef46783gen2xlambda7E3D5F7A" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ] + }, + "ManagedPolicyArns": [ + { + "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" + }, + "Timeout": 900, + "MemorySize": 128, + "Handler": "index.handler", + "Role": "arn:aws:iam::123456789012:role/amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Runtime": "nodejs22.x", + "Description": { + "Fn::Join": [ + "", + [ + "Lambda function for auto-deleting objects in ", + "amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + " S3 bucket." + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", + "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", + "aws:asset:property": "Code" + } + }, + "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Role/Resource" + } + }, + "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleDefaultPolicy2CF63D36": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:PutBucketNotification", + "Effect": "Allow", + "Resource": "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleDefaultPolicy2CF63D36", + "Roles": [ + { + "Ref": "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Role/DefaultPolicy/Resource" + } + }, + "BucketNotificationsHandler050a0587b7544547bf325f094a3db8347ECC3691": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Description": "AWS CloudFormation handler for \"Custom::S3BucketNotifications\" resources (@aws-cdk/aws-s3)", + "Code": { + "ZipFile": "import boto3 # type: ignore\nimport json\nimport logging\nimport urllib.request\n\ns3 = boto3.client(\"s3\")\n\nEVENTBRIDGE_CONFIGURATION = 'EventBridgeConfiguration'\nCONFIGURATION_TYPES = [\"TopicConfigurations\", \"QueueConfigurations\", \"LambdaFunctionConfigurations\"]\n\ndef handler(event: dict, context):\n response_status = \"SUCCESS\"\n error_message = \"\"\n try:\n props = event[\"ResourceProperties\"]\n notification_configuration = props[\"NotificationConfiguration\"]\n managed = props.get('Managed', 'true').lower() == 'true'\n skipDestinationValidation = props.get('SkipDestinationValidation', 'false').lower() == 'true'\n stack_id = event['StackId']\n old = event.get(\"OldResourceProperties\", {}).get(\"NotificationConfiguration\", {})\n if managed:\n config = handle_managed(event[\"RequestType\"], notification_configuration)\n else:\n config = handle_unmanaged(props[\"BucketName\"], stack_id, event[\"RequestType\"], notification_configuration, old)\n s3.put_bucket_notification_configuration(Bucket=props[\"BucketName\"], NotificationConfiguration=config, SkipDestinationValidation=skipDestinationValidation)\n except Exception as e:\n logging.exception(\"Failed to put bucket notification configuration\")\n response_status = \"FAILED\"\n error_message = f\"Error: {str(e)}. \"\n finally:\n submit_response(event, context, response_status, error_message)\n\ndef handle_managed(request_type, notification_configuration):\n if request_type == 'Delete':\n return {}\n return notification_configuration\n\ndef handle_unmanaged(bucket, stack_id, request_type, notification_configuration, old):\n def get_id(n):\n n['Id'] = ''\n sorted_notifications = sort_filter_rules(n)\n strToHash=json.dumps(sorted_notifications, sort_keys=True).replace('\"Name\": \"prefix\"', '\"Name\": \"Prefix\"').replace('\"Name\": \"suffix\"', '\"Name\": \"Suffix\"')\n return f\"{stack_id}-{hash(strToHash)}\"\n def with_id(n):\n n['Id'] = get_id(n)\n return n\n\n external_notifications = {}\n existing_notifications = s3.get_bucket_notification_configuration(Bucket=bucket)\n for t in CONFIGURATION_TYPES:\n if request_type == 'Update':\n old_incoming_ids = [get_id(n) for n in old.get(t, [])]\n external_notifications[t] = [n for n in existing_notifications.get(t, []) if not get_id(n) in old_incoming_ids] \n elif request_type == 'Delete':\n external_notifications[t] = [n for n in existing_notifications.get(t, []) if not n['Id'].startswith(f\"{stack_id}-\")]\n elif request_type == 'Create':\n external_notifications[t] = [n for n in existing_notifications.get(t, [])]\n if EVENTBRIDGE_CONFIGURATION in existing_notifications:\n external_notifications[EVENTBRIDGE_CONFIGURATION] = existing_notifications[EVENTBRIDGE_CONFIGURATION]\n\n if request_type == 'Delete':\n return external_notifications\n\n notifications = {}\n for t in CONFIGURATION_TYPES:\n external = external_notifications.get(t, [])\n incoming = [with_id(n) for n in notification_configuration.get(t, [])]\n notifications[t] = external + incoming\n\n if EVENTBRIDGE_CONFIGURATION in notification_configuration:\n notifications[EVENTBRIDGE_CONFIGURATION] = notification_configuration[EVENTBRIDGE_CONFIGURATION]\n elif EVENTBRIDGE_CONFIGURATION in external_notifications:\n notifications[EVENTBRIDGE_CONFIGURATION] = external_notifications[EVENTBRIDGE_CONFIGURATION]\n\n return notifications\n\ndef submit_response(event: dict, context, response_status: str, error_message: str):\n response_body = json.dumps(\n {\n \"Status\": response_status,\n \"Reason\": f\"{error_message}See the details in CloudWatch Log Stream: {context.log_stream_name}\",\n \"PhysicalResourceId\": event.get(\"PhysicalResourceId\") or event[\"LogicalResourceId\"],\n \"StackId\": event[\"StackId\"],\n \"RequestId\": event[\"RequestId\"],\n \"LogicalResourceId\": event[\"LogicalResourceId\"],\n \"NoEcho\": False,\n }\n ).encode(\"utf-8\")\n headers = {\"content-type\": \"\", \"content-length\": str(len(response_body))}\n try:\n req = urllib.request.Request(url=event[\"ResponseURL\"], headers=headers, data=response_body, method=\"PUT\")\n with urllib.request.urlopen(req) as response:\n print(response.read().decode(\"utf-8\"))\n print(\"Status code: \" + response.reason)\n except Exception as e:\n print(\"send(..) failed executing request.urlopen(..): \" + str(e))\n\ndef sort_filter_rules(json_obj):\n if not isinstance(json_obj, dict):\n return json_obj\n for key, value in json_obj.items():\n if isinstance(value, dict):\n json_obj[key] = sort_filter_rules(value)\n elif isinstance(value, list):\n json_obj[key] = [sort_filter_rules(item) for item in value]\n if \"Filter\" in json_obj and \"Key\" in json_obj[\"Filter\"] and \"FilterRules\" in json_obj[\"Filter\"][\"Key\"]:\n filter_rules = json_obj[\"Filter\"][\"Key\"][\"FilterRules\"]\n sorted_filter_rules = sorted(filter_rules, key=lambda x: x[\"Name\"])\n json_obj[\"Filter\"][\"Key\"][\"FilterRules\"] = sorted_filter_rules\n return json_obj" + }, + "Handler": "index.handler", + "Role": "arn:aws:iam::123456789012:role/amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x/BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC", + "Runtime": "python3.13", + "Timeout": 300, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Resource" + } + }, + "PRODUCTCATALOGF95AF07481F845CAA6594C26AC9C8ED316AD6GEN2QYPVNBISSLBUCKETNAMEParameterA82FC17A": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/productcatalog/e2e-sandbox-x/PRODUCTCATALOGF_95_AF_07481_F_845_CAA_6594_C_26_AC_9_C_8_ED_316_AD_6_GEN_2_QYPVNBISSL_BUCKET_NAME", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": "amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/PRODUCTCATALOGF_95_AF_07481_F_845_CAA_6594_C_26_AC_9_C_8_ED_316_AD_6_GEN_2_QYPVNBISSL_BUCKET_NAMEParameter/Resource" + } + }, + "amplifyproductcataloge2esandboxde12df9a17storageAccess479CEF9A9": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:PutObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/*", + "public/", + "protected/*", + "protected/", + "private/*", + "private/" + ] + } + }, + "Effect": "Allow", + "Resource": "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic" + }, + { + "Action": "s3:DeleteObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + "/private/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "amplifyproductcataloge2esandboxde12df9a17storageAccess479CEF9A9", + "Roles": [ + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/amplify-productcatalog-e2e-sandbox-x--storageAccess4/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/5VNy07DMBD8lubsLCUVHLi16Rmi5IgQcpJttElsS95NC7L876ixoHDkNDOaVwHFwxa2G33hvOunfKYWwjOyYN+I7ialL/weeAfhsHQTiipPNrHXkBn6IJs9Zb/L1zzvYLUYUnS/iDvijIIv7YidcBbfVLIqN1P3eVtN+h/bqdCIFjRo1+moZm3aXkN5shV6Q8zkrCJtINRuxuvbirfzxKJiNhAa8WSHSnttUNCv/reIUZULizM1slt8l8Z++B+r8u5MPfqDZlR7ZpRG9EB2iMq6HmHku3NRwP0jbDcjE+V+sUIGoU74BdUQSEOcAQAA" + }, + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + }, + "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketACEF49E5": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketName": { + "Fn::Join": [ + "", + [ + "productcatalogf95af07481f845caa6594c26ac9c8ed3", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + "amplify-productcatalog-x-x-storages338e5b439-x" + ] + } + ] + }, + "-", + "x" + ] + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "Id": "S3CORSRuleId1", + "MaxAge": 3000 + } + ] + }, + "NotificationConfiguration": { + "LambdaConfigurations": [ + { + "Event": "s3:ObjectCreated:*", + "Function": "arn:aws:lambda:us-east-1:123456789012:function:S3Trigger1ef46783-x" + }, + { + "Event": "s3:ObjectRemoved:*", + "Function": "arn:aws:lambda:us-east-1:123456789012:function:S3Trigger1ef46783-x" + } + ] + }, + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + } + }, + "UpdateReplacePolicy": "Retain", + "DeletionPolicy": "Retain" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "referencetoamplifyproductcataloge2esandboxde12df9a17functionNestedStackfunctionNestedStackResource2A71F224Outputsamplifyproductcataloge2esandboxde12df9a17functionS3Trigger1ef46783gen2xlambda81A9091AArn": { + "Type": "String" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref": { + "Type": "String" + } + }, + "Outputs": { + "amplifyproductcataloge2esandboxde12df9a17storageproductcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketF3C6AA2ERef": { + "Value": "amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic" + } + } +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-e2e-sandbox-x-auth179371D7-x.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-e2e-sandbox-x-auth179371D7-x.parameters.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-e2e-sandbox-x-auth179371D7-x.parameters.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-e2e-sandbox-x-auth179371D7-x.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-e2e-sandbox-x-auth179371D7-x.template.json new file mode 100644 index 00000000000..a9f1514b4ed --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-e2e-sandbox-x-auth179371D7-x.template.json @@ -0,0 +1,629 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", + "Resources": { + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AccountRecoverySetting": { + "RecoveryMechanisms": [ + { + "Name": "verified_email", + "Priority": 1 + } + ] + }, + "AdminCreateUserConfig": { + "AllowAdminCreateUserOnly": false + }, + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": 8, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false, + "TemporaryPasswordValidityDays": 7 + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "SmsVerificationMessage": "The verification code to your new account is {####}", + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolTags": { + "amplify:deployment-type": "sandbox", + "amplify:friendly-name": "amplifyAuth", + "created-by": "amplify" + }, + "UsernameAttributes": [ + "email" + ], + "UsernameConfiguration": { + "CaseSensitive": false + }, + "VerificationMessageTemplate": { + "DefaultEmailOption": "CONFIRM_WITH_CODE", + "EmailMessage": "Your verification code is {####}", + "EmailSubject": "Your verification code", + "SmsMessage": "The verification code to your new account is {####}" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/auth/amplifyAuth/UserPool/Resource" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 43200, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": "us-east-1_tRO9BruHe" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlows": [ + "code" + ], + "AllowedOAuthFlowsUserPoolClient": true, + "AllowedOAuthScopes": [ + "profile", + "phone", + "email", + "openid", + "aws.cognito.signin.user.admin" + ], + "CallbackURLs": [ + "https://example.com" + ], + "ExplicitAuthFlows": [ + "ALLOW_CUSTOM_AUTH", + "ALLOW_USER_SRP_AUTH", + "ALLOW_REFRESH_TOKEN_AUTH" + ], + "PreventUserExistenceErrors": "ENABLED", + "SupportedIdentityProviders": [ + "COGNITO" + ], + "UserPoolId": "us-east-1_tRO9BruHe" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/auth/amplifyAuth/UserPoolAppClient/Resource" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": false, + "CognitoIdentityProviders": [ + { + "ClientId": "27q6muiijfov65g35g37t9bldv", + "ProviderName": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_tRO9BruHe" + ] + ] + } + } + ], + "IdentityPoolTags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "SupportedLoginProviders": {} + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/auth/amplifyAuth/IdentityPool" + } + }, + "amplifyAuthauthenticatedUserRoleD8DA3689": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:ec121e86-e0d7-4f59-beaf-535182dac9c0" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/auth/amplifyAuth/authenticatedUserRole/Resource" + } + }, + "amplifyAuthauthenticatedUserRoleDefaultPolicy82E52873": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "appsync:GraphQL", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:appsync:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":apis/hscmwhprkbaljmcpavj3dcztrq/*" + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "amplifyAuthauthenticatedUserRoleDefaultPolicy82E52873", + "Roles": [ + "amplify-productcat2604142-amplifyAuthauthenticatedU-FTyAOUWtFeJb" + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/auth/amplifyAuth/authenticatedUserRole/DefaultPolicy/Resource" + } + }, + "amplifyAuthunauthenticatedUserRole2B524D9E": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:ec121e86-e0d7-4f59-beaf-535182dac9c0" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "unauthenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/auth/amplifyAuth/unauthenticatedUserRole/Resource" + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:ec121e86-e0d7-4f59-beaf-535182dac9c0", + "RoleMappings": { + "UserPoolWebClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_tRO9BruHe", + ":", + "27q6muiijfov65g35g37t9bldv" + ] + ] + }, + "Type": "Token" + } + }, + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-productcat2604142-amplifyAuthunauthenticate-OzRPKugSY82W", + "authenticated": "arn:aws:iam::123456789012:role/amplify-productcat2604142-amplifyAuthauthenticatedU-FTyAOUWtFeJb" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/auth/amplifyAuth/IdentityPoolRoleAttachment" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/02Lyw6CMBBFv4V9GbGJ7g0rN4ZgXJvajjpQ2oSOEtL03w0SlNU99yVB7gooMjWEXJs2t3SDeMLAaM6sdCvUEK5R+4cj9hAvAfvKeyvKu/vxAqUldLyu/snRoGPicTmvfe0tHpiVfnboOAlSHcQpnIZfrbwlPU52ppSScN4gNGHzlhK2eyiyJhDl/csxdQj1rB8nXeTo3wAAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/auth/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifyproductcataloge2esandboxde12df9a17authamplifyAuthUserPool28A7874FRef": { + "Value": "us-east-1_tRO9BruHe" + }, + "amplifyproductcataloge2esandboxde12df9a17authamplifyAuthUserPoolAppClient577E72DBRef": { + "Value": "27q6muiijfov65g35g37t9bldv" + }, + "amplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef": { + "Value": "us-east-1:ec121e86-e0d7-4f59-beaf-535182dac9c0" + }, + "amplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref": { + "Value": "amplify-productcat2604142-amplifyAuthauthenticatedU-FTyAOUWtFeJb" + }, + "amplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref": { + "Value": "amplify-productcat2604142-amplifyAuthunauthenticate-OzRPKugSY82W" + } + } +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x.parameters.json new file mode 100644 index 00000000000..dcb2fe9fc75 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x.parameters.json @@ -0,0 +1,10 @@ +[ + { + "ParameterKey": "referencetoamplifyproductcataloge2esandboxde12df9a17functionNestedStackfunctionNestedStackResource2A71F224Outputsamplifyproductcataloge2esandboxde12df9a17functionS3Trigger1ef46783gen2xlambda81A9091AArn", + "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:S3Trigger1ef46783-gen2-x" + }, + { + "ParameterKey": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref", + "ParameterValue": "amplify-productcat2604142-amplifyAuthauthenticatedU-FTyAOUWtFeJb" + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x.template.json new file mode 100644 index 00000000000..8b9c6f062cd --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x.template.json @@ -0,0 +1,801 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", + "Resources": { + "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketACEF49E5": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "BucketKeyEnabled": false, + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "MaxAge": 3000 + } + ] + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "productcatalogf95af07481f845caa6594c26ac9c8ed3x-gen2-x" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/productcatalogf95af07481f845caa6594c26ac9c8ed3x-gen2-x/Bucket/Resource" + } + }, + "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketPolicy5224AA3C": { + "Type": "AWS::S3::BucketPolicy", + "Properties": { + "Bucket": "amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:*", + "Condition": { + "Bool": { + "aws:SecureTransport": "false" + } + }, + "Effect": "Deny", + "Principal": { + "AWS": "*" + }, + "Resource": [ + "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + "/*" + ] + ] + } + ] + }, + { + "Action": [ + "s3:PutBucketPolicy", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*" + ], + "Effect": "Allow", + "Principal": { + "AWS": "arn:aws:iam::123456789012:role/amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + }, + "Resource": [ + "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/productcatalogf95af07481f845caa6594c26ac9c8ed3x-gen2-x/Bucket/Policy/Resource" + } + }, + "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketAutoDeleteObjectsCustomResource1B906272": { + "Type": "Custom::S3AutoDeleteObjects", + "Properties": { + "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "BucketName": "amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/productcatalogf95af07481f845caa6594c26ac9c8ed3x-gen2-x/Bucket/AutoDeleteObjectsCustomResource/Default" + } + }, + "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketNotifications33A3C5B4": { + "Type": "Custom::S3BucketNotifications", + "Properties": { + "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x/BucketNotificationsHandler050a0587b7544547bf325f094a3db8347ECC3691", + "BucketName": "amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + "NotificationConfiguration": { + "LambdaFunctionConfigurations": [ + { + "Events": [ + "s3:ObjectCreated:*" + ], + "LambdaFunctionArn": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17functionNestedStackfunctionNestedStackResource2A71F224Outputsamplifyproductcataloge2esandboxde12df9a17functionS3Trigger1ef46783gen2xlambda81A9091AArn" + } + }, + { + "Events": [ + "s3:ObjectRemoved:*" + ], + "LambdaFunctionArn": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17functionNestedStackfunctionNestedStackResource2A71F224Outputsamplifyproductcataloge2esandboxde12df9a17functionS3Trigger1ef46783gen2xlambda81A9091AArn" + } + } + ] + }, + "Managed": true, + "SkipDestinationValidation": false + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/productcatalogf95af07481f845caa6594c26ac9c8ed3x-gen2-x/Bucket/Notifications/Resource" + } + }, + "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketAllowBucketNotificationsToamplifyproductcataloge2esandboxde12df9a17functionS3Trigger1ef46783gen2xlambda7E3D5F7A60F0C41B": { + "Type": "AWS::Lambda::Permission", + "Properties": { + "Action": "lambda:InvokeFunction", + "FunctionName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17functionNestedStackfunctionNestedStackResource2A71F224Outputsamplifyproductcataloge2esandboxde12df9a17functionS3Trigger1ef46783gen2xlambda81A9091AArn" + }, + "Principal": "s3.amazonaws.com", + "SourceAccount": { + "Ref": "AWS::AccountId" + }, + "SourceArn": "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/productcatalogf95af07481f845caa6594c26ac9c8ed3x-gen2-x/Bucket/AllowBucketNotificationsToamplifyproductcataloge2esandboxde12df9a17functionS3Trigger1ef46783gen2xlambda7E3D5F7A" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ] + }, + "ManagedPolicyArns": [ + { + "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" + }, + "Timeout": 900, + "MemorySize": 128, + "Handler": "index.handler", + "Role": "arn:aws:iam::123456789012:role/amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Runtime": "nodejs22.x", + "Description": { + "Fn::Join": [ + "", + [ + "Lambda function for auto-deleting objects in ", + "amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + " S3 bucket." + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", + "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", + "aws:asset:property": "Code" + } + }, + "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Role/Resource" + } + }, + "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleDefaultPolicy2CF63D36": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:PutBucketNotification", + "Effect": "Allow", + "Resource": "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleDefaultPolicy2CF63D36", + "Roles": [ + { + "Ref": "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Role/DefaultPolicy/Resource" + } + }, + "BucketNotificationsHandler050a0587b7544547bf325f094a3db8347ECC3691": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Description": "AWS CloudFormation handler for \"Custom::S3BucketNotifications\" resources (@aws-cdk/aws-s3)", + "Code": { + "ZipFile": "import boto3 # type: ignore\nimport json\nimport logging\nimport urllib.request\n\ns3 = boto3.client(\"s3\")\n\nEVENTBRIDGE_CONFIGURATION = 'EventBridgeConfiguration'\nCONFIGURATION_TYPES = [\"TopicConfigurations\", \"QueueConfigurations\", \"LambdaFunctionConfigurations\"]\n\ndef handler(event: dict, context):\n response_status = \"SUCCESS\"\n error_message = \"\"\n try:\n props = event[\"ResourceProperties\"]\n notification_configuration = props[\"NotificationConfiguration\"]\n managed = props.get('Managed', 'true').lower() == 'true'\n skipDestinationValidation = props.get('SkipDestinationValidation', 'false').lower() == 'true'\n stack_id = event['StackId']\n old = event.get(\"OldResourceProperties\", {}).get(\"NotificationConfiguration\", {})\n if managed:\n config = handle_managed(event[\"RequestType\"], notification_configuration)\n else:\n config = handle_unmanaged(props[\"BucketName\"], stack_id, event[\"RequestType\"], notification_configuration, old)\n s3.put_bucket_notification_configuration(Bucket=props[\"BucketName\"], NotificationConfiguration=config, SkipDestinationValidation=skipDestinationValidation)\n except Exception as e:\n logging.exception(\"Failed to put bucket notification configuration\")\n response_status = \"FAILED\"\n error_message = f\"Error: {str(e)}. \"\n finally:\n submit_response(event, context, response_status, error_message)\n\ndef handle_managed(request_type, notification_configuration):\n if request_type == 'Delete':\n return {}\n return notification_configuration\n\ndef handle_unmanaged(bucket, stack_id, request_type, notification_configuration, old):\n def get_id(n):\n n['Id'] = ''\n sorted_notifications = sort_filter_rules(n)\n strToHash=json.dumps(sorted_notifications, sort_keys=True).replace('\"Name\": \"prefix\"', '\"Name\": \"Prefix\"').replace('\"Name\": \"suffix\"', '\"Name\": \"Suffix\"')\n return f\"{stack_id}-{hash(strToHash)}\"\n def with_id(n):\n n['Id'] = get_id(n)\n return n\n\n external_notifications = {}\n existing_notifications = s3.get_bucket_notification_configuration(Bucket=bucket)\n for t in CONFIGURATION_TYPES:\n if request_type == 'Update':\n old_incoming_ids = [get_id(n) for n in old.get(t, [])]\n external_notifications[t] = [n for n in existing_notifications.get(t, []) if not get_id(n) in old_incoming_ids] \n elif request_type == 'Delete':\n external_notifications[t] = [n for n in existing_notifications.get(t, []) if not n['Id'].startswith(f\"{stack_id}-\")]\n elif request_type == 'Create':\n external_notifications[t] = [n for n in existing_notifications.get(t, [])]\n if EVENTBRIDGE_CONFIGURATION in existing_notifications:\n external_notifications[EVENTBRIDGE_CONFIGURATION] = existing_notifications[EVENTBRIDGE_CONFIGURATION]\n\n if request_type == 'Delete':\n return external_notifications\n\n notifications = {}\n for t in CONFIGURATION_TYPES:\n external = external_notifications.get(t, [])\n incoming = [with_id(n) for n in notification_configuration.get(t, [])]\n notifications[t] = external + incoming\n\n if EVENTBRIDGE_CONFIGURATION in notification_configuration:\n notifications[EVENTBRIDGE_CONFIGURATION] = notification_configuration[EVENTBRIDGE_CONFIGURATION]\n elif EVENTBRIDGE_CONFIGURATION in external_notifications:\n notifications[EVENTBRIDGE_CONFIGURATION] = external_notifications[EVENTBRIDGE_CONFIGURATION]\n\n return notifications\n\ndef submit_response(event: dict, context, response_status: str, error_message: str):\n response_body = json.dumps(\n {\n \"Status\": response_status,\n \"Reason\": f\"{error_message}See the details in CloudWatch Log Stream: {context.log_stream_name}\",\n \"PhysicalResourceId\": event.get(\"PhysicalResourceId\") or event[\"LogicalResourceId\"],\n \"StackId\": event[\"StackId\"],\n \"RequestId\": event[\"RequestId\"],\n \"LogicalResourceId\": event[\"LogicalResourceId\"],\n \"NoEcho\": False,\n }\n ).encode(\"utf-8\")\n headers = {\"content-type\": \"\", \"content-length\": str(len(response_body))}\n try:\n req = urllib.request.Request(url=event[\"ResponseURL\"], headers=headers, data=response_body, method=\"PUT\")\n with urllib.request.urlopen(req) as response:\n print(response.read().decode(\"utf-8\"))\n print(\"Status code: \" + response.reason)\n except Exception as e:\n print(\"send(..) failed executing request.urlopen(..): \" + str(e))\n\ndef sort_filter_rules(json_obj):\n if not isinstance(json_obj, dict):\n return json_obj\n for key, value in json_obj.items():\n if isinstance(value, dict):\n json_obj[key] = sort_filter_rules(value)\n elif isinstance(value, list):\n json_obj[key] = [sort_filter_rules(item) for item in value]\n if \"Filter\" in json_obj and \"Key\" in json_obj[\"Filter\"] and \"FilterRules\" in json_obj[\"Filter\"][\"Key\"]:\n filter_rules = json_obj[\"Filter\"][\"Key\"][\"FilterRules\"]\n sorted_filter_rules = sorted(filter_rules, key=lambda x: x[\"Name\"])\n json_obj[\"Filter\"][\"Key\"][\"FilterRules\"] = sorted_filter_rules\n return json_obj" + }, + "Handler": "index.handler", + "Role": "arn:aws:iam::123456789012:role/amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x/BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC", + "Runtime": "python3.13", + "Timeout": 300, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Resource" + } + }, + "PRODUCTCATALOGF95AF07481F845CAA6594C26AC9C8ED316AD6GEN2QYPVNBISSLBUCKETNAMEParameterA82FC17A": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/productcatalog/e2e-sandbox-x/PRODUCTCATALOGF_95_AF_07481_F_845_CAA_6594_C_26_AC_9_C_8_ED_316_AD_6_GEN_2_QYPVNBISSL_BUCKET_NAME", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": "amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/PRODUCTCATALOGF_95_AF_07481_F_845_CAA_6594_C_26_AC_9_C_8_ED_316_AD_6_GEN_2_QYPVNBISSL_BUCKET_NAMEParameter/Resource" + } + }, + "amplifyproductcataloge2esandboxde12df9a17storageAccess479CEF9A9": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:PutObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/*", + "public/", + "protected/*", + "protected/", + "private/*", + "private/" + ] + } + }, + "Effect": "Allow", + "Resource": "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic" + }, + { + "Action": "s3:DeleteObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic", + "/private/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "amplifyproductcataloge2esandboxde12df9a17storageAccess479CEF9A9", + "Roles": [ + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/amplify-productcatalog-e2e-sandbox-x--storageAccess4/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/5VNy07DMBD8lubsLCUVHLi16Rmi5IgQcpJttElsS95NC7L876ixoHDkNDOaVwHFwxa2G33hvOunfKYWwjOyYN+I7ialL/weeAfhsHQTiipPNrHXkBn6IJs9Zb/L1zzvYLUYUnS/iDvijIIv7YidcBbfVLIqN1P3eVtN+h/bqdCIFjRo1+moZm3aXkN5shV6Q8zkrCJtINRuxuvbirfzxKJiNhAa8WSHSnttUNCv/reIUZULizM1slt8l8Z++B+r8u5MPfqDZlR7ZpRG9EB2iMq6HmHku3NRwP0jbDcjE+V+sUIGoU74BdUQSEOcAQAA" + }, + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "referencetoamplifyproductcataloge2esandboxde12df9a17functionNestedStackfunctionNestedStackResource2A71F224Outputsamplifyproductcataloge2esandboxde12df9a17functionS3Trigger1ef46783gen2xlambda81A9091AArn": { + "Type": "String" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref": { + "Type": "String" + } + }, + "Outputs": { + "amplifyproductcataloge2esandboxde12df9a17storageproductcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketF3C6AA2ERef": { + "Value": "amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic" + } + } +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.parameters.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.parameters.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.template.json deleted file mode 100644 index ba390bdc15b..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.template.json +++ /dev/null @@ -1,641 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.11.1\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", - "Resources": { - "amplifyAuthUserPool4BA7F805": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AccountRecoverySetting": { - "RecoveryMechanisms": [ - { - "Name": "verified_email", - "Priority": 1 - } - ] - }, - "AdminCreateUserConfig": { - "AllowAdminCreateUserOnly": false - }, - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": "Your verification code is {####}", - "EmailVerificationSubject": "Your verification code", - "MfaConfiguration": "OFF", - "Policies": { - "PasswordPolicy": { - "MinimumLength": 8, - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false, - "TemporaryPasswordValidityDays": 7 - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "SmsVerificationMessage": "The verification code to your new account is {####}", - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolTags": { - "amplify:app-id": "productcatalog", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "amplify:friendly-name": "amplifyAuth", - "created-by": "amplify" - }, - "UsernameAttributes": [ - "email" - ], - "UsernameConfiguration": { - "CaseSensitive": false - }, - "VerificationMessageTemplate": { - "DefaultEmailOption": "CONFIRM_WITH_CODE", - "EmailMessage": "Your verification code is {####}", - "EmailSubject": "Your verification code", - "SmsMessage": "The verification code to your new account is {####}" - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/UserPool/Resource" - } - }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 43200, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": "us-east-1_OFRBVzhq5" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, - "amplifyAuthUserPoolAppClient2626C6F8": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlows": [ - "code" - ], - "AllowedOAuthFlowsUserPoolClient": true, - "AllowedOAuthScopes": [ - "profile", - "phone", - "email", - "openid", - "aws.cognito.signin.user.admin" - ], - "CallbackURLs": [ - "https://example.com" - ], - "ExplicitAuthFlows": [ - "ALLOW_CUSTOM_AUTH", - "ALLOW_USER_SRP_AUTH", - "ALLOW_REFRESH_TOKEN_AUTH" - ], - "PreventUserExistenceErrors": "ENABLED", - "SupportedIdentityProviders": [ - "COGNITO" - ], - "UserPoolId": "us-east-1_OFRBVzhq5" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/UserPoolAppClient/Resource" - } - }, - "amplifyAuthIdentityPool3FDE84CC": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": false, - "CognitoIdentityProviders": [ - { - "ClientId": "61e6oq3acg1at7f9da6cfna70d", - "ProviderName": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - "us-east-1_OFRBVzhq5" - ] - ] - } - } - ], - "IdentityPoolTags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "SupportedLoginProviders": {} - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/IdentityPool" - } - }, - "amplifyAuthauthenticatedUserRoleD8DA3689": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:c464f123-eaf0-4289-98b3-381197fa3d7f" - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "authenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/authenticatedUserRole/Resource" - } - }, - "amplifyAuthauthenticatedUserRoleDefaultPolicy82E52873": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "appsync:GraphQL", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:appsync:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":apis/3oy6oxkj6ffojmc2upd52ftdsq/*" - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "amplifyAuthauthenticatedUserRoleDefaultPolicy82E52873", - "Roles": [ - "amplify-productcatalog-ge-amplifyAuthauthenticatedU-7u6GoubHxSy7" - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/authenticatedUserRole/DefaultPolicy/Resource" - } - }, - "amplifyAuthunauthenticatedUserRole2B524D9E": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:c464f123-eaf0-4289-98b3-381197fa3d7f" - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "unauthenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/unauthenticatedUserRole/Resource" - } - }, - "amplifyAuthIdentityPoolRoleAttachment045F17C8": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": "us-east-1:c464f123-eaf0-4289-98b3-381197fa3d7f", - "RoleMappings": { - "UserPoolWebClientRoleMapping": { - "AmbiguousRoleResolution": "AuthenticatedRole", - "IdentityProvider": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - "us-east-1_OFRBVzhq5", - ":", - "61e6oq3acg1at7f9da6cfna70d" - ] - ] - }, - "Type": "Token" - } - }, - "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-productcatalog-ge-amplifyAuthunauthenticate-JMPocA8XyO6M", - "authenticated": "arn:aws:iam::123456789012:role/amplify-productcatalog-ge-amplifyAuthauthenticatedU-7u6GoubHxSy7" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/IdentityPoolRoleAttachment" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/02LvQ6CMBSFn4W9XKFxcDVMLsZgnE1tr3qhtAm9SkjTdzdIUKbznT8JcltCkakh5Nq0uaUbxCMGRnNmpVuhhnCN2j8csYd4CdifvLeiursfL1BZQsfr6p8cDDomHpfz2tfe4p5Z6WeHjpMg1UGcwmn41ZO3pMfJzpRSEs4bhCZs3lJCuYMiawJR3r8cU4dQz/oBzysbsN8AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Outputs": { - "amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthUserPool0E44954DRef": { - "Value": "us-east-1_OFRBVzhq5" - }, - "amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthUserPoolAppClient99A19E4CRef": { - "Value": "61e6oq3acg1at7f9da6cfna70d" - }, - "amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef": { - "Value": "us-east-1:c464f123-eaf0-4289-98b3-381197fa3d7f" - }, - "amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref": { - "Value": "amplify-productcatalog-ge-amplifyAuthauthenticatedU-7u6GoubHxSy7" - }, - "amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef": { - "Value": "amplify-productcatalog-ge-amplifyAuthunauthenticate-JMPocA8XyO6M" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.parameters.json deleted file mode 100644 index b18b6e95938..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.parameters.json +++ /dev/null @@ -1,10 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref", - "ParameterValue": "amplify-productcatalog-ge-amplifyAuthauthenticatedU-7u6GoubHxSy7" - }, - { - "ParameterKey": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9afunctionNestedStackfunctionNestedStackResource6DAC5252Outputsamplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda22206BBBArn", - "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:S3Trigger1ef46783-gen2-main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.template.json deleted file mode 100644 index 4f29cfcc0ed..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.template.json +++ /dev/null @@ -1,807 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", - "Resources": { - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "BucketKeyEnabled": false, - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "MaxAge": 3000 - } - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/Resource" - } - }, - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketPolicyF51DAA81": { - "Type": "AWS::S3::BucketPolicy", - "Properties": { - "Bucket": "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:*", - "Condition": { - "Bool": { - "aws:SecureTransport": "false" - } - }, - "Effect": "Deny", - "Principal": { - "AWS": "*" - }, - "Resource": [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - "/*" - ] - ] - } - ] - }, - { - "Action": [ - "s3:PutBucketPolicy", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*" - ], - "Effect": "Allow", - "Principal": { - "AWS": "arn:aws:iam::123456789012:role/amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - }, - "Resource": [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - "/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/Policy/Resource" - } - }, - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketAutoDeleteObjectsCustomResource6974B5B5": { - "Type": "Custom::S3AutoDeleteObjects", - "Properties": { - "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "BucketName": "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/AutoDeleteObjectsCustomResource/Default" - } - }, - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketNotifications20779ED4": { - "Type": "Custom::S3BucketNotifications", - "Properties": { - "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY/BucketNotificationsHandler050a0587b7544547bf325f094a3db8347ECC3691", - "BucketName": "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - "NotificationConfiguration": { - "LambdaFunctionConfigurations": [ - { - "Events": [ - "s3:ObjectCreated:*" - ], - "LambdaFunctionArn": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9afunctionNestedStackfunctionNestedStackResource6DAC5252Outputsamplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda22206BBBArn" - } - }, - { - "Events": [ - "s3:ObjectRemoved:*" - ], - "LambdaFunctionArn": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9afunctionNestedStackfunctionNestedStackResource6DAC5252Outputsamplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda22206BBBArn" - } - } - ] - }, - "Managed": true, - "SkipDestinationValidation": false - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/Notifications/Resource" - } - }, - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketAllowBucketNotificationsToamplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda8226525A5BBBE747": { - "Type": "AWS::Lambda::Permission", - "Properties": { - "Action": "lambda:InvokeFunction", - "FunctionName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9afunctionNestedStackfunctionNestedStackResource6DAC5252Outputsamplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda22206BBBArn" - }, - "Principal": "s3.amazonaws.com", - "SourceAccount": { - "Ref": "AWS::AccountId" - }, - "SourceArn": "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/AllowBucketNotificationsToamplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda8226525A" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ] - }, - "ManagedPolicyArns": [ - { - "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" - }, - "Timeout": 900, - "MemorySize": 128, - "Handler": "index.handler", - "Role": "arn:aws:iam::123456789012:role/amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Runtime": "nodejs22.x", - "Description": { - "Fn::Join": [ - "", - [ - "Lambda function for auto-deleting objects in ", - "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - " S3 bucket." - ] - ] - } - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", - "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", - "aws:asset:property": "Code" - } - }, - "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Role/Resource" - } - }, - "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleDefaultPolicy2CF63D36": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:PutBucketNotification", - "Effect": "Allow", - "Resource": "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleDefaultPolicy2CF63D36", - "Roles": [ - { - "Ref": "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Role/DefaultPolicy/Resource" - } - }, - "BucketNotificationsHandler050a0587b7544547bf325f094a3db8347ECC3691": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Description": "AWS CloudFormation handler for \"Custom::S3BucketNotifications\" resources (@aws-cdk/aws-s3)", - "Code": { - "ZipFile": "import boto3 # type: ignore\nimport json\nimport logging\nimport urllib.request\n\ns3 = boto3.client(\"s3\")\n\nEVENTBRIDGE_CONFIGURATION = 'EventBridgeConfiguration'\nCONFIGURATION_TYPES = [\"TopicConfigurations\", \"QueueConfigurations\", \"LambdaFunctionConfigurations\"]\n\ndef handler(event: dict, context):\n response_status = \"SUCCESS\"\n error_message = \"\"\n try:\n props = event[\"ResourceProperties\"]\n notification_configuration = props[\"NotificationConfiguration\"]\n managed = props.get('Managed', 'true').lower() == 'true'\n skipDestinationValidation = props.get('SkipDestinationValidation', 'false').lower() == 'true'\n stack_id = event['StackId']\n old = event.get(\"OldResourceProperties\", {}).get(\"NotificationConfiguration\", {})\n if managed:\n config = handle_managed(event[\"RequestType\"], notification_configuration)\n else:\n config = handle_unmanaged(props[\"BucketName\"], stack_id, event[\"RequestType\"], notification_configuration, old)\n s3.put_bucket_notification_configuration(Bucket=props[\"BucketName\"], NotificationConfiguration=config, SkipDestinationValidation=skipDestinationValidation)\n except Exception as e:\n logging.exception(\"Failed to put bucket notification configuration\")\n response_status = \"FAILED\"\n error_message = f\"Error: {str(e)}. \"\n finally:\n submit_response(event, context, response_status, error_message)\n\ndef handle_managed(request_type, notification_configuration):\n if request_type == 'Delete':\n return {}\n return notification_configuration\n\ndef handle_unmanaged(bucket, stack_id, request_type, notification_configuration, old):\n def get_id(n):\n n['Id'] = ''\n sorted_notifications = sort_filter_rules(n)\n strToHash=json.dumps(sorted_notifications, sort_keys=True).replace('\"Name\": \"prefix\"', '\"Name\": \"Prefix\"').replace('\"Name\": \"suffix\"', '\"Name\": \"Suffix\"')\n return f\"{stack_id}-{hash(strToHash)}\"\n def with_id(n):\n n['Id'] = get_id(n)\n return n\n\n external_notifications = {}\n existing_notifications = s3.get_bucket_notification_configuration(Bucket=bucket)\n for t in CONFIGURATION_TYPES:\n if request_type == 'Update':\n old_incoming_ids = [get_id(n) for n in old.get(t, [])]\n external_notifications[t] = [n for n in existing_notifications.get(t, []) if not get_id(n) in old_incoming_ids] \n elif request_type == 'Delete':\n external_notifications[t] = [n for n in existing_notifications.get(t, []) if not n['Id'].startswith(f\"{stack_id}-\")]\n elif request_type == 'Create':\n external_notifications[t] = [n for n in existing_notifications.get(t, [])]\n if EVENTBRIDGE_CONFIGURATION in existing_notifications:\n external_notifications[EVENTBRIDGE_CONFIGURATION] = existing_notifications[EVENTBRIDGE_CONFIGURATION]\n\n if request_type == 'Delete':\n return external_notifications\n\n notifications = {}\n for t in CONFIGURATION_TYPES:\n external = external_notifications.get(t, [])\n incoming = [with_id(n) for n in notification_configuration.get(t, [])]\n notifications[t] = external + incoming\n\n if EVENTBRIDGE_CONFIGURATION in notification_configuration:\n notifications[EVENTBRIDGE_CONFIGURATION] = notification_configuration[EVENTBRIDGE_CONFIGURATION]\n elif EVENTBRIDGE_CONFIGURATION in external_notifications:\n notifications[EVENTBRIDGE_CONFIGURATION] = external_notifications[EVENTBRIDGE_CONFIGURATION]\n\n return notifications\n\ndef submit_response(event: dict, context, response_status: str, error_message: str):\n response_body = json.dumps(\n {\n \"Status\": response_status,\n \"Reason\": f\"{error_message}See the details in CloudWatch Log Stream: {context.log_stream_name}\",\n \"PhysicalResourceId\": event.get(\"PhysicalResourceId\") or event[\"LogicalResourceId\"],\n \"StackId\": event[\"StackId\"],\n \"RequestId\": event[\"RequestId\"],\n \"LogicalResourceId\": event[\"LogicalResourceId\"],\n \"NoEcho\": False,\n }\n ).encode(\"utf-8\")\n headers = {\"content-type\": \"\", \"content-length\": str(len(response_body))}\n try:\n req = urllib.request.Request(url=event[\"ResponseURL\"], headers=headers, data=response_body, method=\"PUT\")\n with urllib.request.urlopen(req) as response:\n print(response.read().decode(\"utf-8\"))\n print(\"Status code: \" + response.reason)\n except Exception as e:\n print(\"send(..) failed executing request.urlopen(..): \" + str(e))\n\ndef sort_filter_rules(json_obj):\n if not isinstance(json_obj, dict):\n return json_obj\n for key, value in json_obj.items():\n if isinstance(value, dict):\n json_obj[key] = sort_filter_rules(value)\n elif isinstance(value, list):\n json_obj[key] = [sort_filter_rules(item) for item in value]\n if \"Filter\" in json_obj and \"Key\" in json_obj[\"Filter\"] and \"FilterRules\" in json_obj[\"Filter\"][\"Key\"]:\n filter_rules = json_obj[\"Filter\"][\"Key\"][\"FilterRules\"]\n sorted_filter_rules = sorted(filter_rules, key=lambda x: x[\"Name\"])\n json_obj[\"Filter\"][\"Key\"][\"FilterRules\"] = sorted_filter_rules\n return json_obj" - }, - "Handler": "index.handler", - "Role": "arn:aws:iam::123456789012:role/amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY/BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC", - "Runtime": "python3.13", - "Timeout": 300, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Resource" - } - }, - "PRODUCTCATALOGF95AF07481F845CAA6594C26AC9C8ED331323GEN2MAINBUCKETNAMEParameterAE2B6C43": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/productcatalog/gen2main-branch-4b79ec0f9a/PRODUCTCATALOGF_95_AF_07481_F_845_CAA_6594_C_26_AC_9_C_8_ED_331323_GEN_2_MAIN_BUCKET_NAME", - "Tags": { - "amplify:app-id": "productcatalog", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/PRODUCTCATALOGF_95_AF_07481_F_845_CAA_6594_C_26_AC_9_C_8_ED_331323_GEN_2_MAIN_BUCKET_NAMEParameter/Resource" - } - }, - "amplifyproductcataloggen2mainbranch4b79ec0f9astorageAccess4028BDDB5": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:PutObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/*", - "public/", - "protected/*", - "protected/", - "private/*", - "private/" - ] - } - }, - "Effect": "Allow", - "Resource": "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" - }, - { - "Action": "s3:DeleteObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam", - "/private/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "amplifyproductcataloggen2mainbranch4b79ec0f9astorageAccess4028BDDB5", - "Roles": [ - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/amplify-productcatalog-gen2main-branch-4b79ec0f9a--storageAccess4/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WMwY6DMAxEv6X34G3ZHvbacq8QfEBlEhe5kESKDdUq4t+rhe1We3ozHs+UUB4PsN/hQwrrhmLkDvKFRMm1inYw+JBrlk/I58kOpKa6hV+1oY4j2+/3efOLGdF3DqG6hZqSZxGOwTB6yE0c6ed/5bv+Kop4yK0mDn2NCT0ppTV/mWUx1SQafUMSp2S3sT/9L6pTnNlROqOQOYmQtoo9h34xITqCu3zMZQmHL9jv7sJcpCkoe4Jm4xOpWX2AHwEAAA==" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9afunctionNestedStackfunctionNestedStackResource6DAC5252Outputsamplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda22206BBBArn": { - "Type": "String" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref": { - "Type": "String" - } - }, - "Outputs": { - "amplifyproductcataloggen2mainbranch4b79ec0f9astorageproductcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketBD2F9EF2Ref": { - "Value": "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.parameters.json deleted file mode 100644 index 4203c53bea4..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.parameters.json +++ /dev/null @@ -1,146 +0,0 @@ -[ - { - "ParameterKey": "usernameAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "authRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-productcatalog-main-31323-authRole" - }, - { - "ParameterKey": "autoVerifiedAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "allowUnauthenticatedIdentities", - "ParameterValue": "false" - }, - { - "ParameterKey": "smsVerificationMessage", - "ParameterValue": "Your verification code is {####}" - }, - { - "ParameterKey": "userpoolClientReadAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "breakCircularDependency", - "ParameterValue": "true" - }, - { - "ParameterKey": "mfaTypes", - "ParameterValue": "SMS Text Message" - }, - { - "ParameterKey": "emailVerificationSubject", - "ParameterValue": "Your verification code" - }, - { - "ParameterKey": "sharedId", - "ParameterValue": "90174ac4" - }, - { - "ParameterKey": "useDefault", - "ParameterValue": "default" - }, - { - "ParameterKey": "userpoolClientGenerateSecret", - "ParameterValue": "false" - }, - { - "ParameterKey": "mfaConfiguration", - "ParameterValue": "OFF" - }, - { - "ParameterKey": "identityPoolName", - "ParameterValue": "productcatalog90174ac4_identitypool_90174ac4" - }, - { - "ParameterKey": "userPoolGroupList", - "ParameterValue": "" - }, - { - "ParameterKey": "authSelections", - "ParameterValue": "identityPoolAndUserPool" - }, - { - "ParameterKey": "resourceNameTruncated", - "ParameterValue": "produc90174ac4" - }, - { - "ParameterKey": "smsAuthenticationMessage", - "ParameterValue": "Your authentication code is {####}" - }, - { - "ParameterKey": "passwordPolicyMinLength", - "ParameterValue": "8" - }, - { - "ParameterKey": "userPoolName", - "ParameterValue": "productcatalog90174ac4_userpool_90174ac4" - }, - { - "ParameterKey": "userpoolClientWriteAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "dependsOn", - "ParameterValue": "" - }, - { - "ParameterKey": "useEnabledMfas", - "ParameterValue": "true" - }, - { - "ParameterKey": "usernameCaseSensitive", - "ParameterValue": "false" - }, - { - "ParameterKey": "resourceName", - "ParameterValue": "productcatalog90174ac4" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "serviceName", - "ParameterValue": "Cognito" - }, - { - "ParameterKey": "emailVerificationMessage", - "ParameterValue": "Your verification code is {####}" - }, - { - "ParameterKey": "userpoolClientRefreshTokenValidity", - "ParameterValue": "30" - }, - { - "ParameterKey": "userpoolClientSetAttributes", - "ParameterValue": "false" - }, - { - "ParameterKey": "unauthRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-productcatalog-main-31323-unauthRole" - }, - { - "ParameterKey": "requiredAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "passwordPolicyCharacters", - "ParameterValue": "" - }, - { - "ParameterKey": "aliasAttributes", - "ParameterValue": "" - }, - { - "ParameterKey": "userpoolClientLambdaRole", - "ParameterValue": "produc90174ac4_userpoolclient_lambda_role" - }, - { - "ParameterKey": "defaultPasswordPolicy", - "ParameterValue": "false" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.template.json deleted file mode 100644 index f680f1c6eb8..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.template.json +++ /dev/null @@ -1,316 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "env": { - "Type": "String" - }, - "identityPoolName": { - "Type": "String" - }, - "allowUnauthenticatedIdentities": { - "Type": "String" - }, - "resourceNameTruncated": { - "Type": "String" - }, - "userPoolName": { - "Type": "String" - }, - "autoVerifiedAttributes": { - "Type": "CommaDelimitedList" - }, - "mfaConfiguration": { - "Type": "String" - }, - "mfaTypes": { - "Type": "CommaDelimitedList" - }, - "smsAuthenticationMessage": { - "Type": "String" - }, - "smsVerificationMessage": { - "Type": "String" - }, - "emailVerificationSubject": { - "Type": "String" - }, - "emailVerificationMessage": { - "Type": "String" - }, - "defaultPasswordPolicy": { - "Type": "String" - }, - "passwordPolicyMinLength": { - "Type": "String" - }, - "passwordPolicyCharacters": { - "Type": "CommaDelimitedList" - }, - "requiredAttributes": { - "Type": "CommaDelimitedList" - }, - "aliasAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientGenerateSecret": { - "Type": "String" - }, - "userpoolClientRefreshTokenValidity": { - "Type": "String" - }, - "userpoolClientWriteAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientReadAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientLambdaRole": { - "Type": "String" - }, - "userpoolClientSetAttributes": { - "Type": "String" - }, - "sharedId": { - "Type": "String" - }, - "resourceName": { - "Type": "String" - }, - "authSelections": { - "Type": "String" - }, - "useDefault": { - "Type": "String" - }, - "usernameAttributes": { - "Type": "CommaDelimitedList" - }, - "userPoolGroupList": { - "Type": "CommaDelimitedList" - }, - "serviceName": { - "Type": "String" - }, - "usernameCaseSensitive": { - "Type": "String" - }, - "useEnabledMfas": { - "Type": "String" - }, - "authRoleArn": { - "Type": "String" - }, - "unauthRoleArn": { - "Type": "String" - }, - "breakCircularDependency": { - "Type": "String" - }, - "dependsOn": { - "Type": "CommaDelimitedList" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - "main", - "NONE" - ] - } - }, - "Resources": { - "UserPool": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": "Your verification code is {####}", - "EmailVerificationSubject": "Your verification code", - "MfaConfiguration": "OFF", - "Policies": { - "PasswordPolicy": { - "MinimumLength": "8", - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolName": { - "Fn::Join": [ - "", - [ - "productcatalog90174ac4_userpool_90174ac4", - "-", - "main" - ] - ] - }, - "UsernameAttributes": [ - "email" - ], - "UsernameConfiguration": { - "CaseSensitive": false - } - } - }, - "UserPoolClientWeb": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "produc90174ac4_app_clientWeb", - "RefreshTokenValidity": "30", - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": "us-east-1_66BkqNfdX" - } - }, - "UserPoolClient": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "produc90174ac4_app_client", - "GenerateSecret": "false", - "RefreshTokenValidity": "30", - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": "us-east-1_66BkqNfdX" - } - }, - "UserPoolClientRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - }, - "Action": "sts:AssumeRole" - } - ] - }, - "RoleName": { - "Fn::Join": [ - "", - [ - "upClientLambdaRole90174ac4", - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - "amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC" - ] - } - ] - }, - "-", - "main" - ] - ] - } - } - }, - "IdentityPool": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": "false", - "CognitoIdentityProviders": [ - { - "ClientId": "27jbakm3s7vgm116b36evi830d", - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": "us-east-1_66BkqNfdX" - } - ] - } - }, - { - "ClientId": "7ogg1fkk68io03i95o0viqhibk", - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": "us-east-1_66BkqNfdX" - } - ] - } - } - ], - "IdentityPoolName": { - "Fn::Join": [ - "", - [ - "productcatalog90174ac4_identitypool_90174ac4__", - "main" - ] - ] - } - } - }, - "IdentityPoolRoleMap": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": "us-east-1:46acac6f-21d1-433c-93b9-d9d908c696fc", - "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-productcatalog-main-31323-unauthRole", - "authenticated": "arn:aws:iam::123456789012:role/amplify-productcatalog-main-31323-authRole" - } - } - } - }, - "Outputs": { - "IdentityPoolId": { - "Description": "Id for the identity pool", - "Value": "us-east-1:46acac6f-21d1-433c-93b9-d9d908c696fc" - }, - "IdentityPoolName": { - "Value": "productcatalog90174ac4_identitypool_90174ac4__main" - }, - "UserPoolId": { - "Description": "Id for the user pool", - "Value": "us-east-1_66BkqNfdX" - }, - "UserPoolArn": { - "Description": "Arn for the user pool", - "Value": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_66BkqNfdX" - }, - "UserPoolName": { - "Value": "productcatalog90174ac4_userpool_90174ac4" - }, - "AppClientIDWeb": { - "Description": "The user pool app client id for web", - "Value": "7ogg1fkk68io03i95o0viqhibk" - }, - "AppClientID": { - "Description": "The user pool app client id", - "Value": "27jbakm3s7vgm116b36evi830d" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.parameters.json deleted file mode 100644 index b4c7fbdd595..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.parameters.json +++ /dev/null @@ -1,102 +0,0 @@ -[ - { - "ParameterKey": "bucketName", - "ParameterValue": "productcatalogf95af07481f845caa6594c26ac9c8ed3" - }, - { - "ParameterKey": "functionS3Trigger1ef46783Name", - "ParameterValue": "S3Trigger1ef46783-main" - }, - { - "ParameterKey": "s3PublicPolicy", - "ParameterValue": "Public_policy_38e5b439" - }, - { - "ParameterKey": "AuthenticatedAllowList", - "ParameterValue": "ALLOW" - }, - { - "ParameterKey": "functionS3Trigger1ef46783LambdaExecutionRole", - "ParameterValue": "S3Trigger1ef46783LambdaRole1ef46783-main" - }, - { - "ParameterKey": "unauthRoleName", - "ParameterValue": "amplify-productcatalog-main-31323-unauthRole" - }, - { - "ParameterKey": "s3PrivatePolicy", - "ParameterValue": "Private_policy_38e5b439" - }, - { - "ParameterKey": "selectedGuestPermissions", - "ParameterValue": "" - }, - { - "ParameterKey": "s3PermissionsAuthenticatedPublic", - "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" - }, - { - "ParameterKey": "s3PermissionsAuthenticatedUploads", - "ParameterValue": "s3:PutObject" - }, - { - "ParameterKey": "s3UploadsPolicy", - "ParameterValue": "Uploads_policy_38e5b439" - }, - { - "ParameterKey": "functionS3Trigger1ef46783Arn", - "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:S3Trigger1ef46783-main" - }, - { - "ParameterKey": "s3PermissionsAuthenticatedProtected", - "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" - }, - { - "ParameterKey": "s3PermissionsGuestUploads", - "ParameterValue": "DISALLOW" - }, - { - "ParameterKey": "s3ReadPolicy", - "ParameterValue": "read_policy_38e5b439" - }, - { - "ParameterKey": "selectedAuthenticatedPermissions", - "ParameterValue": "s3:PutObject,s3:GetObject,s3:ListBucket,s3:DeleteObject" - }, - { - "ParameterKey": "s3PermissionsGuestPublic", - "ParameterValue": "DISALLOW" - }, - { - "ParameterKey": "s3PermissionsAuthenticatedPrivate", - "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "unauthPolicyName", - "ParameterValue": "s3_amplify_38e5b439" - }, - { - "ParameterKey": "authRoleName", - "ParameterValue": "amplify-productcatalog-main-31323-authRole" - }, - { - "ParameterKey": "GuestAllowList", - "ParameterValue": "DISALLOW" - }, - { - "ParameterKey": "triggerFunction", - "ParameterValue": "S3Trigger1ef46783" - }, - { - "ParameterKey": "authPolicyName", - "ParameterValue": "s3_amplify_38e5b439" - }, - { - "ParameterKey": "s3ProtectedPolicy", - "ParameterValue": "Protected_policy_38e5b439" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.template.json deleted file mode 100644 index a194d381190..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.template.json +++ /dev/null @@ -1,570 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-S3\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "env": { - "Type": "String" - }, - "bucketName": { - "Type": "String" - }, - "authRoleName": { - "Type": "String" - }, - "unauthRoleName": { - "Type": "String" - }, - "authPolicyName": { - "Type": "String" - }, - "unauthPolicyName": { - "Type": "String" - }, - "s3PublicPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3PrivatePolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3ProtectedPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3UploadsPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3ReadPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3PermissionsAuthenticatedPublic": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedProtected": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedPrivate": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedUploads": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsGuestPublic": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsGuestUploads": { - "Type": "String", - "Default": "DISALLOW" - }, - "AuthenticatedAllowList": { - "Type": "String", - "Default": "DISALLOW" - }, - "GuestAllowList": { - "Type": "String", - "Default": "DISALLOW" - }, - "selectedGuestPermissions": { - "Type": "CommaDelimitedList", - "Default": "NONE" - }, - "selectedAuthenticatedPermissions": { - "Type": "CommaDelimitedList", - "Default": "NONE" - }, - "functionS3Trigger1ef46783Arn": { - "Type": "String", - "Default": "functionS3Trigger1ef46783Arn" - }, - "functionS3Trigger1ef46783Name": { - "Type": "String", - "Default": "functionS3Trigger1ef46783Name" - }, - "functionS3Trigger1ef46783LambdaExecutionRole": { - "Type": "String", - "Default": "functionS3Trigger1ef46783LambdaExecutionRole" - }, - "triggerFunction": { - "Type": "String" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - "main", - "NONE" - ] - }, - "CreateAuthPublic": { - "Fn::Not": [ - { - "Fn::Equals": [ - "s3:PutObject,s3:GetObject,s3:DeleteObject", - "DISALLOW" - ] - } - ] - }, - "CreateAuthProtected": { - "Fn::Not": [ - { - "Fn::Equals": [ - "s3:PutObject,s3:GetObject,s3:DeleteObject", - "DISALLOW" - ] - } - ] - }, - "CreateAuthPrivate": { - "Fn::Not": [ - { - "Fn::Equals": [ - "s3:PutObject,s3:GetObject,s3:DeleteObject", - "DISALLOW" - ] - } - ] - }, - "CreateAuthUploads": { - "Fn::Not": [ - { - "Fn::Equals": [ - "s3:PutObject", - "DISALLOW" - ] - } - ] - }, - "CreateGuestPublic": { - "Fn::Not": [ - { - "Fn::Equals": [ - "DISALLOW", - "DISALLOW" - ] - } - ] - }, - "CreateGuestUploads": { - "Fn::Not": [ - { - "Fn::Equals": [ - "DISALLOW", - "DISALLOW" - ] - } - ] - }, - "AuthReadAndList": { - "Fn::Not": [ - { - "Fn::Equals": [ - "ALLOW", - "DISALLOW" - ] - } - ] - }, - "GuestReadAndList": { - "Fn::Not": [ - { - "Fn::Equals": [ - "DISALLOW", - "DISALLOW" - ] - } - ] - } - }, - "Outputs": { - "BucketName": { - "Description": "Bucket name for the S3 bucket", - "Value": "productcatalogf95af07481f845caa6594c26ac9c8ed331323-main" - }, - "Region": { - "Value": "us-east-1" - } - }, - "Resources": { - "S3Bucket": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketName": { - "Fn::Join": [ - "", - [ - "productcatalogf95af07481f845caa6594c26ac9c8ed3", - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - "amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI" - ] - } - ] - }, - "-", - "main" - ] - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "Id": "S3CORSRuleId1", - "MaxAge": 3000 - } - ] - }, - "NotificationConfiguration": { - "LambdaConfigurations": [ - { - "Event": "s3:ObjectCreated:*", - "Function": "arn:aws:lambda:us-east-1:123456789012:function:S3Trigger1ef46783-main" - }, - { - "Event": "s3:ObjectRemoved:*", - "Function": "arn:aws:lambda:us-east-1:123456789012:function:S3Trigger1ef46783-main" - } - ] - }, - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - } - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain" - }, - "TriggerPermissions": { - "Type": "AWS::Lambda::Permission", - "Properties": { - "Action": "lambda:InvokeFunction", - "FunctionName": "S3Trigger1ef46783-main", - "Principal": "s3.amazonaws.com", - "SourceAccount": { - "Ref": "AWS::AccountId" - }, - "SourceArn": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "productcatalogf95af07481f845caa6594c26ac9c8ed3", - { - "Fn::Join": [ - "", - [ - "productcatalogf95af07481f845caa6594c26ac9c8ed3", - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - "amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI" - ] - } - ] - }, - "-", - "main" - ] - ] - } - ] - } - ] - ] - } - } - }, - "S3AuthPublicPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - "s3:PutObject,s3:GetObject,s3:DeleteObject" - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "productcatalogf95af07481f845caa6594c26ac9c8ed331323-main", - "/public/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "Public_policy_38e5b439", - "Roles": [ - "amplify-productcatalog-main-31323-authRole" - ] - }, - "Condition": "CreateAuthPublic" - }, - "S3AuthProtectedPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - "s3:PutObject,s3:GetObject,s3:DeleteObject" - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "productcatalogf95af07481f845caa6594c26ac9c8ed331323-main", - "/protected/${cognito-identity.amazonaws.com:sub}/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "Protected_policy_38e5b439", - "Roles": [ - "amplify-productcatalog-main-31323-authRole" - ] - }, - "Condition": "CreateAuthProtected" - }, - "S3AuthPrivatePolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - "s3:PutObject,s3:GetObject,s3:DeleteObject" - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "productcatalogf95af07481f845caa6594c26ac9c8ed331323-main", - "/private/${cognito-identity.amazonaws.com:sub}/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "Private_policy_38e5b439", - "Roles": [ - "amplify-productcatalog-main-31323-authRole" - ] - }, - "Condition": "CreateAuthPrivate" - }, - "S3AuthUploadPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - "s3:PutObject" - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "productcatalogf95af07481f845caa6594c26ac9c8ed331323-main", - "/uploads/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "Uploads_policy_38e5b439", - "Roles": [ - "amplify-productcatalog-main-31323-authRole" - ] - }, - "Condition": "CreateAuthUploads" - }, - "S3AuthReadPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "productcatalogf95af07481f845caa6594c26ac9c8ed331323-main", - "/protected/*" - ] - ] - } - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/", - "public/*", - "protected/", - "protected/*", - "private/${cognito-identity.amazonaws.com:sub}/", - "private/${cognito-identity.amazonaws.com:sub}/*" - ] - } - }, - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "productcatalogf95af07481f845caa6594c26ac9c8ed331323-main" - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "read_policy_38e5b439", - "Roles": [ - "amplify-productcatalog-main-31323-authRole" - ] - }, - "Condition": "AuthReadAndList" - }, - "S3TriggerBucketPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "s3:ListBucket" - ], - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "productcatalogf95af07481f845caa6594c26ac9c8ed331323-main" - ] - ] - } - ] - }, - { - "Effect": "Allow", - "Action": [ - "s3:PutObject", - "s3:GetObject", - "s3:ListBucket", - "s3:DeleteObject" - ], - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "productcatalogf95af07481f845caa6594c26ac9c8ed331323-main", - "/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "amplify-lambda-execution-policy-storage", - "Roles": [ - "S3Trigger1ef46783LambdaRole1ef46783-main" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-x-x-authproductcatalog90174ac4-x.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-x-x-authproductcatalog90174ac4-x.parameters.json new file mode 100644 index 00000000000..5c0a9bc4f77 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-x-x-authproductcatalog90174ac4-x.parameters.json @@ -0,0 +1,146 @@ +[ + { + "ParameterKey": "usernameAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "authRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-productcatalog-x-x-authRole" + }, + { + "ParameterKey": "autoVerifiedAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "allowUnauthenticatedIdentities", + "ParameterValue": "false" + }, + { + "ParameterKey": "smsVerificationMessage", + "ParameterValue": "Your verification code is {####}" + }, + { + "ParameterKey": "userpoolClientReadAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "breakCircularDependency", + "ParameterValue": "true" + }, + { + "ParameterKey": "mfaTypes", + "ParameterValue": "SMS Text Message" + }, + { + "ParameterKey": "emailVerificationSubject", + "ParameterValue": "Your verification code" + }, + { + "ParameterKey": "sharedId", + "ParameterValue": "90174ac4" + }, + { + "ParameterKey": "useDefault", + "ParameterValue": "default" + }, + { + "ParameterKey": "userpoolClientGenerateSecret", + "ParameterValue": "false" + }, + { + "ParameterKey": "mfaConfiguration", + "ParameterValue": "OFF" + }, + { + "ParameterKey": "identityPoolName", + "ParameterValue": "productcatalog90174ac4_identitypool_90174ac4" + }, + { + "ParameterKey": "userPoolGroupList", + "ParameterValue": "" + }, + { + "ParameterKey": "authSelections", + "ParameterValue": "identityPoolAndUserPool" + }, + { + "ParameterKey": "resourceNameTruncated", + "ParameterValue": "produc90174ac4" + }, + { + "ParameterKey": "smsAuthenticationMessage", + "ParameterValue": "Your authentication code is {####}" + }, + { + "ParameterKey": "passwordPolicyMinLength", + "ParameterValue": "8" + }, + { + "ParameterKey": "userPoolName", + "ParameterValue": "productcatalog90174ac4_userpool_90174ac4" + }, + { + "ParameterKey": "userpoolClientWriteAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "dependsOn", + "ParameterValue": "" + }, + { + "ParameterKey": "useEnabledMfas", + "ParameterValue": "true" + }, + { + "ParameterKey": "usernameCaseSensitive", + "ParameterValue": "false" + }, + { + "ParameterKey": "resourceName", + "ParameterValue": "productcatalog90174ac4" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "serviceName", + "ParameterValue": "Cognito" + }, + { + "ParameterKey": "emailVerificationMessage", + "ParameterValue": "Your verification code is {####}" + }, + { + "ParameterKey": "userpoolClientRefreshTokenValidity", + "ParameterValue": "30" + }, + { + "ParameterKey": "userpoolClientSetAttributes", + "ParameterValue": "false" + }, + { + "ParameterKey": "unauthRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-productcatalog-x-x-unauthRole" + }, + { + "ParameterKey": "requiredAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "passwordPolicyCharacters", + "ParameterValue": "" + }, + { + "ParameterKey": "aliasAttributes", + "ParameterValue": "" + }, + { + "ParameterKey": "userpoolClientLambdaRole", + "ParameterValue": "produc90174ac4_userpoolclient_lambda_role" + }, + { + "ParameterKey": "defaultPasswordPolicy", + "ParameterValue": "false" + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-x-x-authproductcatalog90174ac4-x.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-x-x-authproductcatalog90174ac4-x.template.json new file mode 100644 index 00000000000..4cb409c5bb3 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-x-x-authproductcatalog90174ac4-x.template.json @@ -0,0 +1,316 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "identityPoolName": { + "Type": "String" + }, + "allowUnauthenticatedIdentities": { + "Type": "String" + }, + "resourceNameTruncated": { + "Type": "String" + }, + "userPoolName": { + "Type": "String" + }, + "autoVerifiedAttributes": { + "Type": "CommaDelimitedList" + }, + "mfaConfiguration": { + "Type": "String" + }, + "mfaTypes": { + "Type": "CommaDelimitedList" + }, + "smsAuthenticationMessage": { + "Type": "String" + }, + "smsVerificationMessage": { + "Type": "String" + }, + "emailVerificationSubject": { + "Type": "String" + }, + "emailVerificationMessage": { + "Type": "String" + }, + "defaultPasswordPolicy": { + "Type": "String" + }, + "passwordPolicyMinLength": { + "Type": "String" + }, + "passwordPolicyCharacters": { + "Type": "CommaDelimitedList" + }, + "requiredAttributes": { + "Type": "CommaDelimitedList" + }, + "aliasAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientGenerateSecret": { + "Type": "String" + }, + "userpoolClientRefreshTokenValidity": { + "Type": "String" + }, + "userpoolClientWriteAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientReadAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientLambdaRole": { + "Type": "String" + }, + "userpoolClientSetAttributes": { + "Type": "String" + }, + "sharedId": { + "Type": "String" + }, + "resourceName": { + "Type": "String" + }, + "authSelections": { + "Type": "String" + }, + "useDefault": { + "Type": "String" + }, + "usernameAttributes": { + "Type": "CommaDelimitedList" + }, + "userPoolGroupList": { + "Type": "CommaDelimitedList" + }, + "serviceName": { + "Type": "String" + }, + "usernameCaseSensitive": { + "Type": "String" + }, + "useEnabledMfas": { + "Type": "String" + }, + "authRoleArn": { + "Type": "String" + }, + "unauthRoleArn": { + "Type": "String" + }, + "breakCircularDependency": { + "Type": "String" + }, + "dependsOn": { + "Type": "CommaDelimitedList" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + "x", + "NONE" + ] + } + }, + "Resources": { + "UserPool": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": "8", + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolName": { + "Fn::Join": [ + "", + [ + "productcatalog90174ac4_userpool_90174ac4", + "-", + "x" + ] + ] + }, + "UsernameAttributes": [ + "email" + ], + "UsernameConfiguration": { + "CaseSensitive": false + } + } + }, + "UserPoolClientWeb": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "produc90174ac4_app_clientWeb", + "RefreshTokenValidity": "30", + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": "us-east-1_HpX9WE297" + } + }, + "UserPoolClient": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "produc90174ac4_app_client", + "GenerateSecret": "false", + "RefreshTokenValidity": "30", + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": "us-east-1_HpX9WE297" + } + }, + "UserPoolClientRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + }, + "Action": "sts:AssumeRole" + } + ] + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "upClientLambdaRole90174ac4", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + "amplify-productcatalog-x-x-authproductcatalog90174ac4-x" + ] + } + ] + }, + "-", + "x" + ] + ] + } + } + }, + "IdentityPool": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": "false", + "CognitoIdentityProviders": [ + { + "ClientId": "4kaqq4k3inp7kumdv6bqelrm7", + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": "us-east-1_HpX9WE297" + } + ] + } + }, + { + "ClientId": "5t4ot0q04ialfrcrbs42ja7pul", + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": "us-east-1_HpX9WE297" + } + ] + } + } + ], + "IdentityPoolName": { + "Fn::Join": [ + "", + [ + "productcatalog90174ac4_identitypool_90174ac4__", + "x" + ] + ] + } + } + }, + "IdentityPoolRoleMap": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:a3f1cc1e-f560-4202-ba02-4c435dec114d", + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-productcatalog-x-x-unauthRole", + "authenticated": "arn:aws:iam::123456789012:role/amplify-productcatalog-x-x-authRole" + } + } + } + }, + "Outputs": { + "IdentityPoolId": { + "Description": "Id for the identity pool", + "Value": "us-east-1:a3f1cc1e-f560-4202-ba02-4c435dec114d" + }, + "IdentityPoolName": { + "Value": "productcatalog90174ac4_identitypool_90174ac4__x" + }, + "UserPoolId": { + "Description": "Id for the user pool", + "Value": "us-east-1_HpX9WE297" + }, + "UserPoolArn": { + "Description": "Arn for the user pool", + "Value": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_HpX9WE297" + }, + "UserPoolName": { + "Value": "productcatalog90174ac4_userpool_90174ac4" + }, + "AppClientIDWeb": { + "Description": "The user pool app client id for web", + "Value": "5t4ot0q04ialfrcrbs42ja7pul" + }, + "AppClientID": { + "Description": "The user pool app client id", + "Value": "4kaqq4k3inp7kumdv6bqelrm7" + } + } +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-x-x-storages338e5b439-x.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-x-x-storages338e5b439-x.parameters.json new file mode 100644 index 00000000000..ae628ef2dbe --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-x-x-storages338e5b439-x.parameters.json @@ -0,0 +1,102 @@ +[ + { + "ParameterKey": "bucketName", + "ParameterValue": "productcatalogf95af07481f845caa6594c26ac9c8ed3" + }, + { + "ParameterKey": "functionS3Trigger1ef46783Name", + "ParameterValue": "S3Trigger1ef46783-x" + }, + { + "ParameterKey": "s3PublicPolicy", + "ParameterValue": "Public_policy_38e5b439" + }, + { + "ParameterKey": "AuthenticatedAllowList", + "ParameterValue": "ALLOW" + }, + { + "ParameterKey": "functionS3Trigger1ef46783LambdaExecutionRole", + "ParameterValue": "S3Trigger1ef46783LambdaRole1ef46783-x" + }, + { + "ParameterKey": "unauthRoleName", + "ParameterValue": "amplify-productcatalog-x-x-unauthRole" + }, + { + "ParameterKey": "s3PrivatePolicy", + "ParameterValue": "Private_policy_38e5b439" + }, + { + "ParameterKey": "selectedGuestPermissions", + "ParameterValue": "" + }, + { + "ParameterKey": "s3PermissionsAuthenticatedPublic", + "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" + }, + { + "ParameterKey": "s3PermissionsAuthenticatedUploads", + "ParameterValue": "s3:PutObject" + }, + { + "ParameterKey": "s3UploadsPolicy", + "ParameterValue": "Uploads_policy_38e5b439" + }, + { + "ParameterKey": "functionS3Trigger1ef46783Arn", + "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:S3Trigger1ef46783-x" + }, + { + "ParameterKey": "s3PermissionsAuthenticatedProtected", + "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" + }, + { + "ParameterKey": "s3PermissionsGuestUploads", + "ParameterValue": "DISALLOW" + }, + { + "ParameterKey": "s3ReadPolicy", + "ParameterValue": "read_policy_38e5b439" + }, + { + "ParameterKey": "selectedAuthenticatedPermissions", + "ParameterValue": "s3:PutObject,s3:GetObject,s3:ListBucket,s3:DeleteObject" + }, + { + "ParameterKey": "s3PermissionsGuestPublic", + "ParameterValue": "DISALLOW" + }, + { + "ParameterKey": "s3PermissionsAuthenticatedPrivate", + "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "unauthPolicyName", + "ParameterValue": "s3_amplify_38e5b439" + }, + { + "ParameterKey": "authRoleName", + "ParameterValue": "amplify-productcatalog-x-x-authRole" + }, + { + "ParameterKey": "GuestAllowList", + "ParameterValue": "DISALLOW" + }, + { + "ParameterKey": "triggerFunction", + "ParameterValue": "S3Trigger1ef46783" + }, + { + "ParameterKey": "authPolicyName", + "ParameterValue": "s3_amplify_38e5b439" + }, + { + "ParameterKey": "s3ProtectedPolicy", + "ParameterValue": "Protected_policy_38e5b439" + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-x-x-storages338e5b439-x.template.json b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-x-x-storages338e5b439-x.template.json new file mode 100644 index 00000000000..62c8b98c676 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.post.refactor/update.amplify-productcatalog-x-x-storages338e5b439-x.template.json @@ -0,0 +1,570 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-S3\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "bucketName": { + "Type": "String" + }, + "authRoleName": { + "Type": "String" + }, + "unauthRoleName": { + "Type": "String" + }, + "authPolicyName": { + "Type": "String" + }, + "unauthPolicyName": { + "Type": "String" + }, + "s3PublicPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3PrivatePolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3ProtectedPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3UploadsPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3ReadPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3PermissionsAuthenticatedPublic": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedProtected": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedPrivate": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedUploads": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsGuestPublic": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsGuestUploads": { + "Type": "String", + "Default": "DISALLOW" + }, + "AuthenticatedAllowList": { + "Type": "String", + "Default": "DISALLOW" + }, + "GuestAllowList": { + "Type": "String", + "Default": "DISALLOW" + }, + "selectedGuestPermissions": { + "Type": "CommaDelimitedList", + "Default": "NONE" + }, + "selectedAuthenticatedPermissions": { + "Type": "CommaDelimitedList", + "Default": "NONE" + }, + "functionS3Trigger1ef46783Arn": { + "Type": "String", + "Default": "functionS3Trigger1ef46783Arn" + }, + "functionS3Trigger1ef46783Name": { + "Type": "String", + "Default": "functionS3Trigger1ef46783Name" + }, + "functionS3Trigger1ef46783LambdaExecutionRole": { + "Type": "String", + "Default": "functionS3Trigger1ef46783LambdaExecutionRole" + }, + "triggerFunction": { + "Type": "String" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + "x", + "NONE" + ] + }, + "CreateAuthPublic": { + "Fn::Not": [ + { + "Fn::Equals": [ + "s3:PutObject,s3:GetObject,s3:DeleteObject", + "DISALLOW" + ] + } + ] + }, + "CreateAuthProtected": { + "Fn::Not": [ + { + "Fn::Equals": [ + "s3:PutObject,s3:GetObject,s3:DeleteObject", + "DISALLOW" + ] + } + ] + }, + "CreateAuthPrivate": { + "Fn::Not": [ + { + "Fn::Equals": [ + "s3:PutObject,s3:GetObject,s3:DeleteObject", + "DISALLOW" + ] + } + ] + }, + "CreateAuthUploads": { + "Fn::Not": [ + { + "Fn::Equals": [ + "s3:PutObject", + "DISALLOW" + ] + } + ] + }, + "CreateGuestPublic": { + "Fn::Not": [ + { + "Fn::Equals": [ + "DISALLOW", + "DISALLOW" + ] + } + ] + }, + "CreateGuestUploads": { + "Fn::Not": [ + { + "Fn::Equals": [ + "DISALLOW", + "DISALLOW" + ] + } + ] + }, + "AuthReadAndList": { + "Fn::Not": [ + { + "Fn::Equals": [ + "ALLOW", + "DISALLOW" + ] + } + ] + }, + "GuestReadAndList": { + "Fn::Not": [ + { + "Fn::Equals": [ + "DISALLOW", + "DISALLOW" + ] + } + ] + } + }, + "Outputs": { + "BucketName": { + "Description": "Bucket name for the S3 bucket", + "Value": "productcatalogf95af07481f845caa6594c26ac9c8ed3x-x" + }, + "Region": { + "Value": "us-east-1" + } + }, + "Resources": { + "S3Bucket": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketName": { + "Fn::Join": [ + "", + [ + "productcatalogf95af07481f845caa6594c26ac9c8ed3", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + "amplify-productcatalog-x-x-storages338e5b439-x" + ] + } + ] + }, + "-", + "x" + ] + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "Id": "S3CORSRuleId1", + "MaxAge": 3000 + } + ] + }, + "NotificationConfiguration": { + "LambdaConfigurations": [ + { + "Event": "s3:ObjectCreated:*", + "Function": "arn:aws:lambda:us-east-1:123456789012:function:S3Trigger1ef46783-x" + }, + { + "Event": "s3:ObjectRemoved:*", + "Function": "arn:aws:lambda:us-east-1:123456789012:function:S3Trigger1ef46783-x" + } + ] + }, + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + } + }, + "UpdateReplacePolicy": "Retain", + "DeletionPolicy": "Retain" + }, + "TriggerPermissions": { + "Type": "AWS::Lambda::Permission", + "Properties": { + "Action": "lambda:InvokeFunction", + "FunctionName": "S3Trigger1ef46783-x", + "Principal": "s3.amazonaws.com", + "SourceAccount": { + "Ref": "AWS::AccountId" + }, + "SourceArn": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "productcatalogf95af07481f845caa6594c26ac9c8ed3", + { + "Fn::Join": [ + "", + [ + "productcatalogf95af07481f845caa6594c26ac9c8ed3", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + "amplify-productcatalog-x-x-storages338e5b439-x" + ] + } + ] + }, + "-", + "x" + ] + ] + } + ] + } + ] + ] + } + } + }, + "S3AuthPublicPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + "s3:PutObject,s3:GetObject,s3:DeleteObject" + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "productcatalogf95af07481f845caa6594c26ac9c8ed3x-x", + "/public/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "Public_policy_38e5b439", + "Roles": [ + "amplify-productcatalog-x-x-authRole" + ] + }, + "Condition": "CreateAuthPublic" + }, + "S3AuthProtectedPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + "s3:PutObject,s3:GetObject,s3:DeleteObject" + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "productcatalogf95af07481f845caa6594c26ac9c8ed3x-x", + "/protected/${cognito-identity.amazonaws.com:sub}/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "Protected_policy_38e5b439", + "Roles": [ + "amplify-productcatalog-x-x-authRole" + ] + }, + "Condition": "CreateAuthProtected" + }, + "S3AuthPrivatePolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + "s3:PutObject,s3:GetObject,s3:DeleteObject" + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "productcatalogf95af07481f845caa6594c26ac9c8ed3x-x", + "/private/${cognito-identity.amazonaws.com:sub}/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "Private_policy_38e5b439", + "Roles": [ + "amplify-productcatalog-x-x-authRole" + ] + }, + "Condition": "CreateAuthPrivate" + }, + "S3AuthUploadPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + "s3:PutObject" + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "productcatalogf95af07481f845caa6594c26ac9c8ed3x-x", + "/uploads/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "Uploads_policy_38e5b439", + "Roles": [ + "amplify-productcatalog-x-x-authRole" + ] + }, + "Condition": "CreateAuthUploads" + }, + "S3AuthReadPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "productcatalogf95af07481f845caa6594c26ac9c8ed3x-x", + "/protected/*" + ] + ] + } + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/", + "public/*", + "protected/", + "protected/*", + "private/${cognito-identity.amazonaws.com:sub}/", + "private/${cognito-identity.amazonaws.com:sub}/*" + ] + } + }, + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "productcatalogf95af07481f845caa6594c26ac9c8ed3x-x" + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "read_policy_38e5b439", + "Roles": [ + "amplify-productcatalog-x-x-authRole" + ] + }, + "Condition": "AuthReadAndList" + }, + "S3TriggerBucketPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "s3:ListBucket" + ], + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "productcatalogf95af07481f845caa6594c26ac9c8ed3x-x" + ] + ] + } + ] + }, + { + "Effect": "Allow", + "Action": [ + "s3:PutObject", + "s3:GetObject", + "s3:ListBucket", + "s3:DeleteObject" + ], + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "productcatalogf95af07481f845caa6594c26ac9c8ed3x-x", + "/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "amplify-lambda-execution-policy-storage", + "Roles": [ + "S3Trigger1ef46783LambdaRole1ef46783-x" + ] + } + } + } +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/.gitignore b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/.gitignore index 4a025af5313..8c9162f3547 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/.gitignore +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/.gitignore @@ -36,7 +36,6 @@ dist/ node_modules/ aws-exports.js awsconfiguration.json -amplifyconfiguration.json amplifyconfiguration.dart amplify-build-config.json amplify-gradle-config.json diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json index 03a58aa5611..f9e00b9fb7d 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json @@ -1,14 +1,14 @@ { "providers": { "awscloudformation": { - "AuthRoleName": "amplify-productcatalog-main-31323-authRole", - "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-productcatalog-main-31323-unauthRole", - "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-productcatalog-main-31323-authRole", + "AuthRoleName": "amplify-productcatalog-x-x-authRole", + "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-productcatalog-x-x-unauthRole", + "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-productcatalog-x-x-authRole", "Region": "us-east-1", - "DeploymentBucketName": "amplify-productcatalog-main-31323-deployment", - "UnauthRoleName": "amplify-productcatalog-main-31323-unauthRole", - "StackName": "amplify-productcatalog-main-31323", - "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-productcatalog-main-31323/2d9bb0d0-1a2b-11f1-8beb-0affe952b47f", + "DeploymentBucketName": "amplify-productcatalog-x-x-deployment", + "UnauthRoleName": "amplify-productcatalog-x-x-unauthRole", + "StackName": "amplify-productcatalog-x-x", + "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-productcatalog-x-x/25d38550-387e-11f1-9b94-0afffb3ee03d", "AmplifyAppId": "productcatalog" } }, @@ -39,17 +39,17 @@ ] }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-main-31323-deployment/amplify-cfn-templates/auth/productcatalog90174ac4-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-x-x-deployment/amplify-cfn-templates/auth/productcatalog90174ac4-cloudformation-template.json", "logicalId": "authproductcatalog90174ac4" }, - "lastPushTimeStamp": "2026-03-07T14:20:36.895Z", + "lastPushTimeStamp": "2026-04-15T03:57:56.367Z", "output": { - "UserPoolId": "us-east-1_66BkqNfdX", - "AppClientIDWeb": "7ogg1fkk68io03i95o0viqhibk", - "AppClientID": "27jbakm3s7vgm116b36evi830d", - "IdentityPoolId": "us-east-1:46acac6f-21d1-433c-93b9-d9d908c696fc", - "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_66BkqNfdX", - "IdentityPoolName": "productcatalog90174ac4_identitypool_90174ac4__main", + "UserPoolId": "us-east-1_HpX9WE297", + "AppClientIDWeb": "5t4ot0q04ialfrcrbs42ja7pul", + "AppClientID": "4kaqq4k3inp7kumdv6bqelrm7", + "IdentityPoolId": "us-east-1:a3f1cc1e-f560-4202-ba02-4c435dec114d", + "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_HpX9WE297", + "IdentityPoolName": "productcatalog90174ac4_identitypool_90174ac4__x", "UserPoolName": "productcatalog90174ac4_userpool_90174ac4" }, "lastPushDirHash": "vwfsguBCYhmnChi8OJsiaEhZfwA=" @@ -90,16 +90,16 @@ } ] }, - "GraphQLAPIIdOutput": "3oy6oxkj6ffojmc2upd52ftdsq", - "GraphQLAPIEndpointOutput": "https://vy5ne7iiovgsxdk3ke4itswbju.appsync-api.us-east-1.amazonaws.com/graphql", + "GraphQLAPIIdOutput": "hscmwhprkbaljmcpavj3dcztrq", + "GraphQLAPIEndpointOutput": "https://nmunek64lresdpc5z6pnhpsbh4.appsync-api.us-east-1.amazonaws.com/graphql", "GraphQLAPIKeyOutput": "da2-fakeapikey00000000000000" }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-main-31323-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", "logicalId": "apiproductcatalog" }, - "lastPushTimeStamp": "2026-03-07T14:20:36.895Z", - "lastPushDirHash": "HAAqwd16poMp9Vre1w6qPhTyKpg=" + "lastPushTimeStamp": "2026-04-15T03:57:56.367Z", + "lastPushDirHash": "M4Lv1myo82xasoYda8BR7zSbDl4=" } }, "function": { @@ -118,25 +118,25 @@ ] } ], - "lastPushTimeStamp": "2026-03-07T14:20:36.895Z", - "lastBuildTimeStamp": "2026-03-07T14:13:42.101Z", + "lastPushTimeStamp": "2026-04-15T03:57:56.367Z", + "lastBuildTimeStamp": "2026-04-15T03:51:01.047Z", "lastBuildType": "PROD", - "lastPackageTimeStamp": "2026-03-07T14:13:49.339Z", + "lastPackageTimeStamp": "2026-04-15T03:51:06.011Z", "distZipFilename": "S3Trigger1ef46783-4b4665534739746b326e-build.zip", "s3Bucket": { - "deploymentBucketName": "amplify-productcatalog-main-31323-deployment", + "deploymentBucketName": "amplify-productcatalog-x-x-deployment", "s3Key": "amplify-builds/S3Trigger1ef46783-4b4665534739746b326e-build.zip" }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-main-31323-deployment/amplify-cfn-templates/function/S3Trigger1ef46783-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-x-x-deployment/amplify-cfn-templates/function/S3Trigger1ef46783-cloudformation-template.json", "logicalId": "functionS3Trigger1ef46783" }, "output": { - "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/S3Trigger1ef46783LambdaRole1ef46783-main", + "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/S3Trigger1ef46783LambdaRole1ef46783-x", "Region": "us-east-1", - "Arn": "arn:aws:lambda:us-east-1:123456789012:function:S3Trigger1ef46783-main", - "Name": "S3Trigger1ef46783-main", - "LambdaExecutionRole": "S3Trigger1ef46783LambdaRole1ef46783-main" + "Arn": "arn:aws:lambda:us-east-1:123456789012:function:S3Trigger1ef46783-x", + "Name": "S3Trigger1ef46783-x", + "LambdaExecutionRole": "S3Trigger1ef46783LambdaRole1ef46783-x" }, "lastPushDirHash": "2Yp8qReEPNjxqPd0IEURpkIBCjs=" }, @@ -155,27 +155,27 @@ ] } ], - "lastBuildTimeStamp": "2026-03-07T14:13:54.758Z", + "lastBuildTimeStamp": "2026-04-15T03:51:08.519Z", "lastBuildType": "PROD", - "lastPackageTimeStamp": "2026-03-07T14:14:05.813Z", - "distZipFilename": "lowstockproducts-5a45534e5173597a5842-build.zip", + "lastPackageTimeStamp": "2026-04-15T03:51:11.025Z", + "distZipFilename": "lowstockproducts-5148445a7a3964456a67-build.zip", "s3Bucket": { - "deploymentBucketName": "amplify-productcatalog-main-31323-deployment", - "s3Key": "amplify-builds/lowstockproducts-5a45534e5173597a5842-build.zip" + "deploymentBucketName": "amplify-productcatalog-x-x-deployment", + "s3Key": "amplify-builds/lowstockproducts-5148445a7a3964456a67-build.zip" }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-main-31323-deployment/amplify-cfn-templates/function/lowstockproducts-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-x-x-deployment/amplify-cfn-templates/function/lowstockproducts-cloudformation-template.json", "logicalId": "functionlowstockproducts" }, - "lastPushTimeStamp": "2026-03-07T14:20:36.895Z", + "lastPushTimeStamp": "2026-04-15T03:57:56.367Z", "output": { - "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/productcatalogLambdaRole1ca4fb61-main", + "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/productcatalogLambdaRole1ca4fb61-x", "Region": "us-east-1", - "Arn": "arn:aws:lambda:us-east-1:123456789012:function:lowstockproducts-main", - "Name": "lowstockproducts-main", - "LambdaExecutionRole": "productcatalogLambdaRole1ca4fb61-main" + "Arn": "arn:aws:lambda:us-east-1:123456789012:function:lowstockproducts-x", + "Name": "lowstockproducts-x", + "LambdaExecutionRole": "productcatalogLambdaRole1ca4fb61-x" }, - "lastPushDirHash": "v+3Ew5vm+8e5EPfjKY08keb4p0w=" + "lastPushDirHash": "5EfjkUs2if1HjkKcTDr6Hojbp5A=" } }, "storage": { @@ -193,16 +193,16 @@ ] } ], - "lastPushTimeStamp": "2026-03-07T14:20:36.895Z", + "lastPushTimeStamp": "2026-04-15T03:57:56.367Z", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-main-31323-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-x-x-deployment/amplify-cfn-templates/storage/cloudformation-template.json", "logicalId": "storages338e5b439" }, "output": { - "BucketName": "productcatalogf95af07481f845caa6594c26ac9c8ed331323-main", + "BucketName": "productcatalogf95af07481f845caa6594c26ac9c8ed3x-x", "Region": "us-east-1" }, "lastPushDirHash": "wE6Y7huJNaslBLmQHoL6Q0+9Yj4=" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/cloudformation-template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/cloudformation-template.json index 7f2f630d20b..24efba395fd 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/cloudformation-template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/cloudformation-template.json @@ -137,7 +137,7 @@ ] }, "Description": "graphqlapi", - "Expires": 1773497648 + "Expires": 1776829873 } }, "GraphQLAPINONEDS95A13CF0": { @@ -1150,4 +1150,4 @@ } }, "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/parameters.json index 954b6bfe933..6da28d11581 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/parameters.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/parameters.json @@ -14,6 +14,6 @@ "unauthRoleName": { "Ref": "UnauthRoleName" }, - "S3DeploymentBucket": "amplify-productcatalog-main-31323-deployment", - "S3DeploymentRootKey": "amplify-appsync-files/51b6d4362e9dc4529fd8298646795247239d2c30" -} \ No newline at end of file + "S3DeploymentBucket": "amplify-productcatalog-x-x-deployment", + "S3DeploymentRootKey": "amplify-appsync-files/2904294ac328b706f016848ccf5fa0abe614014d" +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Comment.authorId.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Comment.authorId.req.vtl index 1aae0961a3e..a9c5efa2bb8 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Comment.authorId.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Comment.authorId.req.vtl @@ -1 +1 @@ -$util.toJson({"version":"2018-05-29","payload":{}}) \ No newline at end of file +$util.toJson({"version":"2018-05-29","payload":{}}) diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Comment.authorId.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Comment.authorId.res.vtl index 775dd06e7f4..71c60daae52 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Comment.authorId.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Comment.authorId.res.vtl @@ -17,4 +17,4 @@ $util.qr($ctx.source.put("authorId", $ownerEntitiesLast)) $util.toJson($ctx.source.authorId) #end -## [End] Parse owner field auth for Get. ** \ No newline at end of file +## [End] Parse owner field auth for Get. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/InvokeLowstockproductsLambdaDataSource.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/InvokeLowstockproductsLambdaDataSource.req.vtl index 9100f5dc54f..67aa35bae96 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/InvokeLowstockproductsLambdaDataSource.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/InvokeLowstockproductsLambdaDataSource.req.vtl @@ -12,4 +12,4 @@ "prev": $util.toJson($ctx.prev) } } -## [End] Invoke AWS Lambda data source: LowstockproductsLambdaDataSource. ** \ No newline at end of file +## [End] Invoke AWS Lambda data source: LowstockproductsLambdaDataSource. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/InvokeLowstockproductsLambdaDataSource.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/InvokeLowstockproductsLambdaDataSource.res.vtl index e6b83d8b6ab..1316903313e 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/InvokeLowstockproductsLambdaDataSource.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/InvokeLowstockproductsLambdaDataSource.res.vtl @@ -3,4 +3,4 @@ $util.error($ctx.error.message, $ctx.error.type) #end $util.toJson($ctx.result) -## [End] Handle error or return result. ** \ No newline at end of file +## [End] Handle error or return result. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createComment.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createComment.auth.1.req.vtl index e10dc9ea415..df51fbb1f60 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createComment.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createComment.auth.1.req.vtl @@ -12,7 +12,7 @@ $util.unauthorized() #return($util.toJson({})) #end #end - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -59,4 +59,4 @@ $util.unauthorized() #end #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createComment.init.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createComment.init.1.req.vtl index df6b4cbbc5c..407b5845fc2 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createComment.init.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createComment.init.1.req.vtl @@ -8,4 +8,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createComment.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createComment.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createComment.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createComment.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createComment.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createComment.req.vtl index 7adb643898e..3e9e3095977 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createComment.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createComment.req.vtl @@ -71,4 +71,4 @@ $util.qr($mergedValues.put("__typename", "Comment")) $util.qr($PutObject.put("key", $Key)) #end $util.toJson($PutObject) -## [End] Create Request template. ** \ No newline at end of file +## [End] Create Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createComment.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createComment.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createComment.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createComment.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createProduct.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createProduct.auth.1.req.vtl index 8e7ff8a8500..1d40f47c422 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createProduct.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createProduct.auth.1.req.vtl @@ -12,7 +12,7 @@ $util.unauthorized() #return($util.toJson({})) #end #end - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -29,4 +29,4 @@ $util.unauthorized() #end #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createProduct.init.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createProduct.init.1.req.vtl index df6b4cbbc5c..407b5845fc2 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createProduct.init.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createProduct.init.1.req.vtl @@ -8,4 +8,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createProduct.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createProduct.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createProduct.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createProduct.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createProduct.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createProduct.req.vtl index 2ce819e2706..5ede70b348a 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createProduct.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createProduct.req.vtl @@ -63,4 +63,4 @@ $util.qr($mergedValues.put("__typename", "Product")) $util.qr($PutObject.put("key", $Key)) #end $util.toJson($PutObject) -## [End] Create Request template. ** \ No newline at end of file +## [End] Create Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createProduct.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createProduct.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createProduct.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createProduct.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createUser.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createUser.auth.1.req.vtl index 78534f42ab5..747440477e9 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createUser.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createUser.auth.1.req.vtl @@ -12,7 +12,7 @@ $util.unauthorized() #return($util.toJson({})) #end #end - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -59,4 +59,4 @@ $util.unauthorized() #end #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createUser.init.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createUser.init.1.req.vtl index df6b4cbbc5c..407b5845fc2 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createUser.init.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createUser.init.1.req.vtl @@ -8,4 +8,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createUser.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createUser.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createUser.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createUser.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createUser.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createUser.req.vtl index 60dc69bad03..7531ebfb473 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createUser.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createUser.req.vtl @@ -63,4 +63,4 @@ $util.qr($mergedValues.put("__typename", "User")) $util.qr($PutObject.put("key", $Key)) #end $util.toJson($PutObject) -## [End] Create Request template. ** \ No newline at end of file +## [End] Create Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createUser.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createUser.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createUser.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.createUser.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteComment.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteComment.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteComment.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteComment.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteComment.auth.1.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteComment.auth.1.res.vtl index 90bd30f9274..ce6701efddd 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteComment.auth.1.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteComment.auth.1.res.vtl @@ -10,7 +10,7 @@ $util.unauthorized() #return($util.toJson({})) #end #end - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -34,4 +34,4 @@ $util.unauthorized() $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteComment.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteComment.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteComment.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteComment.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteComment.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteComment.req.vtl index ace459bd501..d2cb40cd15d 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteComment.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteComment.req.vtl @@ -55,4 +55,4 @@ $util.qr($DeleteRequest.put("key", $Key)) $util.qr($DeleteRequest.put("condition", $Conditions)) #end $util.toJson($DeleteRequest) -## [End] Delete Request template. ** \ No newline at end of file +## [End] Delete Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteComment.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteComment.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteComment.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteComment.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteProduct.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteProduct.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteProduct.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteProduct.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteProduct.auth.1.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteProduct.auth.1.res.vtl index 9ed6fe15049..037cf8272f3 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteProduct.auth.1.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteProduct.auth.1.res.vtl @@ -10,7 +10,7 @@ $util.unauthorized() #return($util.toJson({})) #end #end - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -21,4 +21,4 @@ $util.unauthorized() $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteProduct.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteProduct.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteProduct.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteProduct.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteProduct.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteProduct.req.vtl index ace459bd501..d2cb40cd15d 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteProduct.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteProduct.req.vtl @@ -55,4 +55,4 @@ $util.qr($DeleteRequest.put("key", $Key)) $util.qr($DeleteRequest.put("condition", $Conditions)) #end $util.toJson($DeleteRequest) -## [End] Delete Request template. ** \ No newline at end of file +## [End] Delete Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteProduct.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteProduct.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteProduct.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteProduct.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteUser.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteUser.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteUser.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteUser.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteUser.auth.1.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteUser.auth.1.res.vtl index 50ec9d680a3..41dd8ff519b 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteUser.auth.1.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteUser.auth.1.res.vtl @@ -10,7 +10,7 @@ $util.unauthorized() #return($util.toJson({})) #end #end - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -34,4 +34,4 @@ $util.unauthorized() $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteUser.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteUser.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteUser.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteUser.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteUser.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteUser.req.vtl index ace459bd501..d2cb40cd15d 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteUser.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteUser.req.vtl @@ -55,4 +55,4 @@ $util.qr($DeleteRequest.put("key", $Key)) $util.qr($DeleteRequest.put("condition", $Conditions)) #end $util.toJson($DeleteRequest) -## [End] Delete Request template. ** \ No newline at end of file +## [End] Delete Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteUser.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteUser.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteUser.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.deleteUser.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateComment.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateComment.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateComment.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateComment.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateComment.auth.1.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateComment.auth.1.res.vtl index 48d5cab0ee6..2dff7410355 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateComment.auth.1.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateComment.auth.1.res.vtl @@ -17,7 +17,7 @@ $util.unauthorized() #return($util.toJson({})) #end #end - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -62,4 +62,4 @@ $util.unauthorized() $util.error("Unauthorized on ${deniedFields.keySet()}", "Unauthorized") #end $util.toJson({}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateComment.init.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateComment.init.1.req.vtl index ab5766fb051..dde2512aea8 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateComment.init.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateComment.init.1.req.vtl @@ -6,4 +6,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateComment.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateComment.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateComment.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateComment.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateComment.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateComment.req.vtl index a1bd67d21b6..648b67d7c57 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateComment.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateComment.req.vtl @@ -127,4 +127,4 @@ $util.qr($update.put("expression", "$expression")) $util.qr($UpdateItem.put("condition", $Conditions)) #end $util.toJson($UpdateItem) -## [End] Mutation Update resolver. ** \ No newline at end of file +## [End] Mutation Update resolver. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateComment.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateComment.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateComment.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateComment.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateProduct.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateProduct.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateProduct.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateProduct.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateProduct.auth.1.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateProduct.auth.1.res.vtl index d7fc41802eb..3f5d75d21ff 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateProduct.auth.1.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateProduct.auth.1.res.vtl @@ -17,7 +17,7 @@ $util.unauthorized() #return($util.toJson({})) #end #end - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -41,4 +41,4 @@ $util.unauthorized() $util.error("Unauthorized on ${deniedFields.keySet()}", "Unauthorized") #end $util.toJson({}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateProduct.init.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateProduct.init.1.req.vtl index ab5766fb051..dde2512aea8 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateProduct.init.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateProduct.init.1.req.vtl @@ -6,4 +6,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateProduct.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateProduct.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateProduct.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateProduct.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateProduct.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateProduct.req.vtl index a1bd67d21b6..648b67d7c57 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateProduct.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateProduct.req.vtl @@ -127,4 +127,4 @@ $util.qr($update.put("expression", "$expression")) $util.qr($UpdateItem.put("condition", $Conditions)) #end $util.toJson($UpdateItem) -## [End] Mutation Update resolver. ** \ No newline at end of file +## [End] Mutation Update resolver. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateProduct.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateProduct.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateProduct.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateProduct.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateUser.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateUser.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateUser.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateUser.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateUser.auth.1.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateUser.auth.1.res.vtl index d7bbcfef26b..cf9c40662ec 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateUser.auth.1.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateUser.auth.1.res.vtl @@ -17,7 +17,7 @@ $util.unauthorized() #return($util.toJson({})) #end #end - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -62,4 +62,4 @@ $util.unauthorized() $util.error("Unauthorized on ${deniedFields.keySet()}", "Unauthorized") #end $util.toJson({}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateUser.init.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateUser.init.1.req.vtl index ab5766fb051..dde2512aea8 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateUser.init.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateUser.init.1.req.vtl @@ -6,4 +6,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateUser.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateUser.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateUser.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateUser.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateUser.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateUser.req.vtl index a1bd67d21b6..648b67d7c57 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateUser.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateUser.req.vtl @@ -127,4 +127,4 @@ $util.qr($update.put("expression", "$expression")) $util.qr($UpdateItem.put("condition", $Conditions)) #end $util.toJson($UpdateItem) -## [End] Mutation Update resolver. ** \ No newline at end of file +## [End] Mutation Update resolver. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateUser.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateUser.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateUser.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Mutation.updateUser.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Product.comments.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Product.comments.auth.1.req.vtl index 49147ebb623..3e71c2b5b60 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Product.comments.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Product.comments.auth.1.req.vtl @@ -16,7 +16,7 @@ $util.qr($ctx.stash.put("hasAuth", true)) #end #end #if( !$isAuthorized ) - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -49,4 +49,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Product.comments.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Product.comments.req.vtl index ae6bb525e78..2a41bf1c346 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Product.comments.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Product.comments.req.vtl @@ -69,4 +69,4 @@ null #end, "index": "byProduct" } -#end \ No newline at end of file +#end diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Product.comments.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Product.comments.res.vtl index 922c4ce53d0..ae420dbf03f 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Product.comments.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Product.comments.res.vtl @@ -10,4 +10,4 @@ $util.error($ctx.error.message, $ctx.error.type) #end #end $util.toJson($result) -#end \ No newline at end of file +#end diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.checkLowStock.auth.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.checkLowStock.auth.req.vtl index 102c2e4a408..0fe5ca82b83 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.checkLowStock.auth.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.checkLowStock.auth.req.vtl @@ -10,7 +10,7 @@ #end #end #if( !$isAuthorized ) - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -22,4 +22,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.checkLowStock.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.checkLowStock.res.vtl index 634741579ce..c37b82e4a30 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.checkLowStock.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.checkLowStock.res.vtl @@ -1 +1 @@ -$util.toJson($ctx.prev.result) \ No newline at end of file +$util.toJson($ctx.prev.result) diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.commentsByProductId.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.commentsByProductId.auth.1.req.vtl index 81ff27d2394..907a0d1fcb6 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.commentsByProductId.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.commentsByProductId.auth.1.req.vtl @@ -12,7 +12,7 @@ $util.qr($ctx.stash.put("hasAuth", true)) #end #end #if( !$isAuthorized ) - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -45,4 +45,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.commentsByProductId.postAuth.1.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.commentsByProductId.postAuth.1.res.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.commentsByProductId.postAuth.1.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.commentsByProductId.postAuth.1.res.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.commentsByProductId.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.commentsByProductId.req.vtl index f85c4e4519c..6bec0591d09 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.commentsByProductId.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.commentsByProductId.req.vtl @@ -54,4 +54,4 @@ #set( $QueryRequest.filter = $filterExpression ) #end #end -$util.toJson($QueryRequest) \ No newline at end of file +$util.toJson($QueryRequest) diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.commentsByProductId.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.commentsByProductId.res.vtl index b0dd3df90d6..0355e700092 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.commentsByProductId.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.commentsByProductId.res.vtl @@ -1,4 +1,4 @@ #if( $ctx.error ) $util.error($ctx.error.message, $ctx.error.type) #end -$util.toJson($ctx.result) \ No newline at end of file +$util.toJson($ctx.result) diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getComment.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getComment.auth.1.req.vtl index 81ff27d2394..907a0d1fcb6 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getComment.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getComment.auth.1.req.vtl @@ -12,7 +12,7 @@ $util.qr($ctx.stash.put("hasAuth", true)) #end #end #if( !$isAuthorized ) - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -45,4 +45,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getComment.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getComment.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getComment.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getComment.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getComment.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getComment.req.vtl index a8d7811a021..fd7fbfc8013 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getComment.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getComment.req.vtl @@ -31,4 +31,4 @@ $util.qr($GetRequest.put("query", $query)) $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) #end $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getComment.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getComment.res.vtl index e9ef1436bdd..92e05f99816 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getComment.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getComment.res.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson(null) #end -## [End] Get Response template. ** \ No newline at end of file +## [End] Get Response template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getProduct.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getProduct.auth.1.req.vtl index 4d3c6ae0ee3..e32389afa54 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getProduct.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getProduct.auth.1.req.vtl @@ -12,7 +12,7 @@ $util.qr($ctx.stash.put("hasAuth", true)) #end #end #if( !$isAuthorized ) - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -24,4 +24,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getProduct.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getProduct.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getProduct.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getProduct.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getProduct.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getProduct.req.vtl index a8d7811a021..fd7fbfc8013 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getProduct.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getProduct.req.vtl @@ -31,4 +31,4 @@ $util.qr($GetRequest.put("query", $query)) $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) #end $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getProduct.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getProduct.res.vtl index e9ef1436bdd..92e05f99816 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getProduct.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getProduct.res.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson(null) #end -## [End] Get Response template. ** \ No newline at end of file +## [End] Get Response template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getUser.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getUser.auth.1.req.vtl index 1755d6fc3fc..e167c46bfc1 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getUser.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getUser.auth.1.req.vtl @@ -12,7 +12,7 @@ $util.qr($ctx.stash.put("hasAuth", true)) #end #end #if( !$isAuthorized ) - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -94,4 +94,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getUser.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getUser.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getUser.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getUser.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getUser.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getUser.req.vtl index a8d7811a021..fd7fbfc8013 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getUser.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getUser.req.vtl @@ -31,4 +31,4 @@ $util.qr($GetRequest.put("query", $query)) $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) #end $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getUser.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getUser.res.vtl index e9ef1436bdd..92e05f99816 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getUser.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.getUser.res.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson(null) #end -## [End] Get Response template. ** \ No newline at end of file +## [End] Get Response template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listComments.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listComments.auth.1.req.vtl index 81ff27d2394..907a0d1fcb6 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listComments.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listComments.auth.1.req.vtl @@ -12,7 +12,7 @@ $util.qr($ctx.stash.put("hasAuth", true)) #end #end #if( !$isAuthorized ) - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -45,4 +45,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listComments.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listComments.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listComments.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listComments.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listComments.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listComments.req.vtl index 014213710e8..ef976126825 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listComments.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listComments.req.vtl @@ -47,4 +47,4 @@ #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) #end $util.toJson($ListRequest) -## [End] List Request. ** \ No newline at end of file +## [End] List Request. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listComments.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listComments.res.vtl index ee8b6670cbc..aab9983954e 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listComments.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listComments.res.vtl @@ -4,4 +4,4 @@ #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listProducts.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listProducts.auth.1.req.vtl index 4d3c6ae0ee3..e32389afa54 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listProducts.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listProducts.auth.1.req.vtl @@ -12,7 +12,7 @@ $util.qr($ctx.stash.put("hasAuth", true)) #end #end #if( !$isAuthorized ) - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -24,4 +24,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listProducts.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listProducts.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listProducts.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listProducts.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listProducts.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listProducts.req.vtl index 014213710e8..ef976126825 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listProducts.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listProducts.req.vtl @@ -47,4 +47,4 @@ #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) #end $util.toJson($ListRequest) -## [End] List Request. ** \ No newline at end of file +## [End] List Request. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listProducts.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listProducts.res.vtl index ee8b6670cbc..aab9983954e 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listProducts.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listProducts.res.vtl @@ -4,4 +4,4 @@ #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listUsers.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listUsers.auth.1.req.vtl index 1755d6fc3fc..e167c46bfc1 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listUsers.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listUsers.auth.1.req.vtl @@ -12,7 +12,7 @@ $util.qr($ctx.stash.put("hasAuth", true)) #end #end #if( !$isAuthorized ) - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -94,4 +94,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listUsers.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listUsers.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listUsers.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listUsers.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listUsers.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listUsers.req.vtl index 014213710e8..ef976126825 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listUsers.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listUsers.req.vtl @@ -47,4 +47,4 @@ #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) #end $util.toJson($ListRequest) -## [End] List Request. ** \ No newline at end of file +## [End] List Request. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listUsers.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listUsers.res.vtl index ee8b6670cbc..aab9983954e 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listUsers.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Query.listUsers.res.vtl @@ -4,4 +4,4 @@ #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateComment.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateComment.auth.1.req.vtl index c7a0142b838..c1a5e5e04da 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateComment.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateComment.auth.1.req.vtl @@ -11,7 +11,7 @@ $util.qr($ctx.stash.put("hasAuth", true)) #end #end #if( !$isAuthorized ) - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -65,4 +65,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateComment.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateComment.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateComment.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateComment.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateComment.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateComment.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateComment.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateComment.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateComment.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateComment.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateComment.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateComment.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateProduct.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateProduct.auth.1.req.vtl index ff50c88e7e5..8ea6182b12f 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateProduct.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateProduct.auth.1.req.vtl @@ -11,7 +11,7 @@ $util.qr($ctx.stash.put("hasAuth", true)) #end #end #if( !$isAuthorized ) - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -47,4 +47,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateProduct.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateProduct.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateProduct.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateProduct.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateProduct.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateProduct.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateProduct.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateProduct.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateProduct.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateProduct.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateProduct.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateProduct.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateUser.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateUser.auth.1.req.vtl index ffc9c47fcb9..b577317320d 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateUser.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateUser.auth.1.req.vtl @@ -11,7 +11,7 @@ $util.qr($ctx.stash.put("hasAuth", true)) #end #end #if( !$isAuthorized ) - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -65,4 +65,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateUser.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateUser.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateUser.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateUser.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateUser.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateUser.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateUser.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateUser.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateUser.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateUser.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateUser.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onCreateUser.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteComment.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteComment.auth.1.req.vtl index c7a0142b838..c1a5e5e04da 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteComment.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteComment.auth.1.req.vtl @@ -11,7 +11,7 @@ $util.qr($ctx.stash.put("hasAuth", true)) #end #end #if( !$isAuthorized ) - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -65,4 +65,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteComment.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteComment.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteComment.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteComment.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteComment.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteComment.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteComment.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteComment.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteComment.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteComment.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteComment.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteComment.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteProduct.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteProduct.auth.1.req.vtl index ff50c88e7e5..8ea6182b12f 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteProduct.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteProduct.auth.1.req.vtl @@ -11,7 +11,7 @@ $util.qr($ctx.stash.put("hasAuth", true)) #end #end #if( !$isAuthorized ) - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -47,4 +47,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteProduct.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteProduct.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteProduct.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteProduct.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteProduct.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteProduct.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteProduct.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteProduct.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteProduct.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteProduct.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteProduct.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteProduct.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteUser.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteUser.auth.1.req.vtl index ffc9c47fcb9..b577317320d 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteUser.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteUser.auth.1.req.vtl @@ -11,7 +11,7 @@ $util.qr($ctx.stash.put("hasAuth", true)) #end #end #if( !$isAuthorized ) - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -65,4 +65,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteUser.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteUser.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteUser.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteUser.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteUser.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteUser.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteUser.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteUser.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteUser.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteUser.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteUser.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onDeleteUser.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateComment.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateComment.auth.1.req.vtl index c7a0142b838..c1a5e5e04da 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateComment.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateComment.auth.1.req.vtl @@ -11,7 +11,7 @@ $util.qr($ctx.stash.put("hasAuth", true)) #end #end #if( !$isAuthorized ) - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -65,4 +65,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateComment.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateComment.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateComment.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateComment.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateComment.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateComment.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateComment.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateComment.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateComment.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateComment.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateComment.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateComment.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateProduct.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateProduct.auth.1.req.vtl index ff50c88e7e5..8ea6182b12f 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateProduct.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateProduct.auth.1.req.vtl @@ -11,7 +11,7 @@ $util.qr($ctx.stash.put("hasAuth", true)) #end #end #if( !$isAuthorized ) - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -47,4 +47,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateProduct.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateProduct.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateProduct.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateProduct.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateProduct.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateProduct.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateProduct.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateProduct.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateProduct.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateProduct.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateProduct.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateProduct.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateUser.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateUser.auth.1.req.vtl index ffc9c47fcb9..b577317320d 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateUser.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateUser.auth.1.req.vtl @@ -11,7 +11,7 @@ $util.qr($ctx.stash.put("hasAuth", true)) #end #end #if( !$isAuthorized ) - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -65,4 +65,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateUser.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateUser.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateUser.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateUser.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateUser.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateUser.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateUser.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateUser.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateUser.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateUser.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateUser.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/Subscription.onUpdateUser.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/User.id.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/User.id.req.vtl index 1aae0961a3e..a9c5efa2bb8 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/User.id.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/User.id.req.vtl @@ -1 +1 @@ -$util.toJson({"version":"2018-05-29","payload":{}}) \ No newline at end of file +$util.toJson({"version":"2018-05-29","payload":{}}) diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/User.id.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/User.id.res.vtl index 137a10a8a5e..447c25b0745 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/User.id.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/resolvers/User.id.res.vtl @@ -17,4 +17,4 @@ $util.qr($ctx.source.put("id", $ownerEntitiesLast)) $util.toJson($ctx.source.id) #end -## [End] Parse owner field auth for Get. ** \ No newline at end of file +## [End] Parse owner field auth for Get. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/stacks/Comment.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/stacks/Comment.json index a0f784ecb95..e803b483f4c 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/stacks/Comment.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/stacks/Comment.json @@ -549,7 +549,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -663,7 +663,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -810,7 +810,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -978,7 +978,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -1143,7 +1143,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -1229,7 +1229,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -1285,7 +1285,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -1341,7 +1341,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -1455,7 +1455,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -1550,7 +1550,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -1637,4 +1637,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/stacks/ConnectionStack.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/stacks/ConnectionStack.json index 3ac3a7923c1..97fa4add3a2 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/stacks/ConnectionStack.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/stacks/ConnectionStack.json @@ -127,7 +127,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -162,4 +162,4 @@ "Type": "String" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/stacks/CustomResources.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/stacks/CustomResources.json index 016991278d0..5fe357d6096 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/stacks/CustomResources.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/stacks/CustomResources.json @@ -58,4 +58,4 @@ "Value": "" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/stacks/FunctionDirectiveStack.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/stacks/FunctionDirectiveStack.json index 98d415f544e..0956fcbbe03 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/stacks/FunctionDirectiveStack.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/stacks/FunctionDirectiveStack.json @@ -230,7 +230,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n{}\n## [End] Stash resolver specific context.. **" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n{}\n## [End] Stash resolver specific context.. **" ] ] }, @@ -307,4 +307,4 @@ "Type": "String" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/stacks/Product.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/stacks/Product.json index 5aef32ef6dc..a4bbb535b23 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/stacks/Product.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/stacks/Product.json @@ -504,7 +504,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -618,7 +618,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -765,7 +765,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -933,7 +933,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -1098,7 +1098,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -1184,7 +1184,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -1240,7 +1240,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -1296,7 +1296,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -1370,4 +1370,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/stacks/User.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/stacks/User.json index 0d99e4037c2..c7b567b840c 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/stacks/User.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/build/stacks/User.json @@ -525,7 +525,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -642,7 +642,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -825,7 +825,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -1029,7 +1029,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -1197,7 +1197,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -1334,7 +1334,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -1396,7 +1396,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -1458,7 +1458,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -1553,7 +1553,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -1659,4 +1659,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/cli-inputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/cli-inputs.json index fb275c3cad1..9a2417c4f1f 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/cli-inputs.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/cli-inputs.json @@ -19,4 +19,4 @@ } ] } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/custom-roles.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/custom-roles.json index 8f71cc78ac0..cab084869ac 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/custom-roles.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/custom-roles.json @@ -1,5 +1,5 @@ { "adminRoleNames": [ - "amplify-productcatalog" + "amplify-productcat" ] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/parameters.json index 1e043987be2..eabf4b6c01e 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/parameters.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/parameters.json @@ -8,4 +8,4 @@ "Outputs.UserPoolId" ] } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/resolvers/README.md b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/resolvers/README.md index 89e564c5b31..1634d295144 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/resolvers/README.md +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/resolvers/README.md @@ -1,2 +1,2 @@ Any resolvers that you add in this directory will override the ones automatically generated by Amplify CLI and will be directly copied to the cloud. -For more information, visit [https://docs.amplify.aws/cli/graphql-transformer/resolvers](https://docs.amplify.aws/cli/graphql-transformer/resolvers) \ No newline at end of file +For more information, visit [https://docs.amplify.aws/cli/graphql-transformer/resolvers](https://docs.amplify.aws/cli/graphql-transformer/resolvers) diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/transform.conf.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/transform.conf.json index 98e1e19f038..d0421b1df09 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/transform.conf.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/api/productcatalog/transform.conf.json @@ -1,4 +1,4 @@ { "Version": 5, "ElasticsearchWarning": true -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/productcatalog90174ac4/build/parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/productcatalog90174ac4/build/parameters.json index 2123759baaa..ad6263f05d7 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/productcatalog90174ac4/build/parameters.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/productcatalog90174ac4/build/parameters.json @@ -56,4 +56,4 @@ }, "breakCircularDependency": true, "dependsOn": [] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/productcatalog90174ac4/build/productcatalog90174ac4-cloudformation-template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/productcatalog90174ac4/build/productcatalog90174ac4-cloudformation-template.json index 486545f0c0a..7f83b2af8b3 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/productcatalog90174ac4/build/productcatalog90174ac4-cloudformation-template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/productcatalog90174ac4/build/productcatalog90174ac4-cloudformation-template.json @@ -410,4 +410,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/productcatalog90174ac4/cli-inputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/productcatalog90174ac4/cli-inputs.json index 6fb43f1bdb1..b83052fe40a 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/productcatalog90174ac4/cli-inputs.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/productcatalog90174ac4/cli-inputs.json @@ -45,4 +45,4 @@ "usernameCaseSensitive": false, "useEnabledMfas": true } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/productcatalog/build/cloudformation-template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/productcatalog/build/cloudformation-template.json index 7f2f630d20b..24efba395fd 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/productcatalog/build/cloudformation-template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/productcatalog/build/cloudformation-template.json @@ -137,7 +137,7 @@ ] }, "Description": "graphqlapi", - "Expires": 1773497648 + "Expires": 1776829873 } }, "GraphQLAPINONEDS95A13CF0": { @@ -1150,4 +1150,4 @@ } }, "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/productcatalog90174ac4/build/productcatalog90174ac4-cloudformation-template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/productcatalog90174ac4/build/productcatalog90174ac4-cloudformation-template.json index 486545f0c0a..7f83b2af8b3 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/productcatalog90174ac4/build/productcatalog90174ac4-cloudformation-template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/productcatalog90174ac4/build/productcatalog90174ac4-cloudformation-template.json @@ -410,4 +410,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json index 49ffd71bb52..ab84b6666c0 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json @@ -202,7 +202,7 @@ "authproductcatalog90174ac4": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-main-31323-deployment/amplify-cfn-templates/auth/productcatalog90174ac4-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-x-x-deployment/amplify-cfn-templates/auth/productcatalog90174ac4-cloudformation-template.json", "Parameters": { "identityPoolName": "productcatalog90174ac4_identitypool_90174ac4", "allowUnauthenticatedIdentities": false, @@ -249,14 +249,14 @@ }, "breakCircularDependency": true, "dependsOn": "", - "env": "main" + "env": "x" } } }, "apiproductcatalog": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-main-31323-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", "Parameters": { "AppSyncApiName": "productcatalog", "DynamoDBBillingMode": "PAY_PER_REQUEST", @@ -273,18 +273,18 @@ "unauthRoleName": { "Ref": "UnauthRoleName" }, - "S3DeploymentBucket": "amplify-productcatalog-main-31323-deployment", - "S3DeploymentRootKey": "amplify-appsync-files/51b6d4362e9dc4529fd8298646795247239d2c30", - "env": "main" + "S3DeploymentBucket": "amplify-productcatalog-x-x-deployment", + "S3DeploymentRootKey": "amplify-appsync-files/2904294ac328b706f016848ccf5fa0abe614014d", + "env": "x" } } }, "functionS3Trigger1ef46783": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-main-31323-deployment/amplify-cfn-templates/function/S3Trigger1ef46783-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-x-x-deployment/amplify-cfn-templates/function/S3Trigger1ef46783-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-productcatalog-main-31323-deployment", + "deploymentBucketName": "amplify-productcatalog-x-x-deployment", "s3Key": "amplify-builds/S3Trigger1ef46783-4b4665534739746b326e-build.zip", "apiproductcatalogGraphQLAPIIdOutput": { "Fn::GetAtt": [ @@ -304,19 +304,19 @@ "Outputs.GraphQLAPIKeyOutput" ] }, - "env": "main" + "env": "x" } } }, "functionlowstockproducts": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-main-31323-deployment/amplify-cfn-templates/function/lowstockproducts-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-x-x-deployment/amplify-cfn-templates/function/lowstockproducts-cloudformation-template.json", "Parameters": { "lowStockThreshold": "5", "secretsPathAmplifyAppId": "productcatalog", - "deploymentBucketName": "amplify-productcatalog-main-31323-deployment", - "s3Key": "amplify-builds/lowstockproducts-5a45534e5173597a5842-build.zip", + "deploymentBucketName": "amplify-productcatalog-x-x-deployment", + "s3Key": "amplify-builds/lowstockproducts-5148445a7a3964456a67-build.zip", "apiproductcatalogGraphQLAPIIdOutput": { "Fn::GetAtt": [ "apiproductcatalog", @@ -335,14 +335,14 @@ "Outputs.GraphQLAPIKeyOutput" ] }, - "env": "main" + "env": "x" } } }, "storages338e5b439": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-main-31323-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-x-x-deployment/amplify-cfn-templates/storage/cloudformation-template.json", "Parameters": { "bucketName": "productcatalogf95af07481f845caa6594c26ac9c8ed3", "selectedGuestPermissions": "", @@ -387,7 +387,7 @@ "Outputs.LambdaExecutionRole" ] }, - "env": "main" + "env": "x" } } }, @@ -595,4 +595,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/S3Trigger1ef46783/S3Trigger1ef46783-cloudformation-template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/S3Trigger1ef46783/S3Trigger1ef46783-cloudformation-template.json index 3e8a515ae54..a0a9c061c5f 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/S3Trigger1ef46783/S3Trigger1ef46783-cloudformation-template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/S3Trigger1ef46783/S3Trigger1ef46783-cloudformation-template.json @@ -261,4 +261,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/lowstockproducts/lowstockproducts-cloudformation-template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/lowstockproducts/lowstockproducts-cloudformation-template.json index f4c76b769b7..400ee646907 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/lowstockproducts/lowstockproducts-cloudformation-template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/lowstockproducts/lowstockproducts-cloudformation-template.json @@ -355,4 +355,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json index 49ffd71bb52..ab84b6666c0 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json @@ -202,7 +202,7 @@ "authproductcatalog90174ac4": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-main-31323-deployment/amplify-cfn-templates/auth/productcatalog90174ac4-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-x-x-deployment/amplify-cfn-templates/auth/productcatalog90174ac4-cloudformation-template.json", "Parameters": { "identityPoolName": "productcatalog90174ac4_identitypool_90174ac4", "allowUnauthenticatedIdentities": false, @@ -249,14 +249,14 @@ }, "breakCircularDependency": true, "dependsOn": "", - "env": "main" + "env": "x" } } }, "apiproductcatalog": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-main-31323-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", "Parameters": { "AppSyncApiName": "productcatalog", "DynamoDBBillingMode": "PAY_PER_REQUEST", @@ -273,18 +273,18 @@ "unauthRoleName": { "Ref": "UnauthRoleName" }, - "S3DeploymentBucket": "amplify-productcatalog-main-31323-deployment", - "S3DeploymentRootKey": "amplify-appsync-files/51b6d4362e9dc4529fd8298646795247239d2c30", - "env": "main" + "S3DeploymentBucket": "amplify-productcatalog-x-x-deployment", + "S3DeploymentRootKey": "amplify-appsync-files/2904294ac328b706f016848ccf5fa0abe614014d", + "env": "x" } } }, "functionS3Trigger1ef46783": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-main-31323-deployment/amplify-cfn-templates/function/S3Trigger1ef46783-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-x-x-deployment/amplify-cfn-templates/function/S3Trigger1ef46783-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-productcatalog-main-31323-deployment", + "deploymentBucketName": "amplify-productcatalog-x-x-deployment", "s3Key": "amplify-builds/S3Trigger1ef46783-4b4665534739746b326e-build.zip", "apiproductcatalogGraphQLAPIIdOutput": { "Fn::GetAtt": [ @@ -304,19 +304,19 @@ "Outputs.GraphQLAPIKeyOutput" ] }, - "env": "main" + "env": "x" } } }, "functionlowstockproducts": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-main-31323-deployment/amplify-cfn-templates/function/lowstockproducts-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-x-x-deployment/amplify-cfn-templates/function/lowstockproducts-cloudformation-template.json", "Parameters": { "lowStockThreshold": "5", "secretsPathAmplifyAppId": "productcatalog", - "deploymentBucketName": "amplify-productcatalog-main-31323-deployment", - "s3Key": "amplify-builds/lowstockproducts-5a45534e5173597a5842-build.zip", + "deploymentBucketName": "amplify-productcatalog-x-x-deployment", + "s3Key": "amplify-builds/lowstockproducts-5148445a7a3964456a67-build.zip", "apiproductcatalogGraphQLAPIIdOutput": { "Fn::GetAtt": [ "apiproductcatalog", @@ -335,14 +335,14 @@ "Outputs.GraphQLAPIKeyOutput" ] }, - "env": "main" + "env": "x" } } }, "storages338e5b439": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-main-31323-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-x-x-deployment/amplify-cfn-templates/storage/cloudformation-template.json", "Parameters": { "bucketName": "productcatalogf95af07481f845caa6594c26ac9c8ed3", "selectedGuestPermissions": "", @@ -387,7 +387,7 @@ "Outputs.LambdaExecutionRole" ] }, - "env": "main" + "env": "x" } } }, @@ -595,4 +595,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/storage/s338e5b439/build/cloudformation-template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/storage/s338e5b439/build/cloudformation-template.json index 284b3cf2e07..8e2779a5755 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/storage/s338e5b439/build/cloudformation-template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/storage/s338e5b439/build/cloudformation-template.json @@ -747,4 +747,4 @@ ] } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json index 673c2ac901f..b1334b1c019 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json @@ -166,4 +166,4 @@ "service": "S3" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/function/S3Trigger1ef46783/S3Trigger1ef46783-cloudformation-template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/function/S3Trigger1ef46783/S3Trigger1ef46783-cloudformation-template.json index 3e8a515ae54..a0a9c061c5f 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/function/S3Trigger1ef46783/S3Trigger1ef46783-cloudformation-template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/function/S3Trigger1ef46783/S3Trigger1ef46783-cloudformation-template.json @@ -261,4 +261,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/function/S3Trigger1ef46783/amplify.state b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/function/S3Trigger1ef46783/amplify.state index 2ba0f4c74ff..035d15f2746 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/function/S3Trigger1ef46783/amplify.state +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/function/S3Trigger1ef46783/amplify.state @@ -3,4 +3,4 @@ "functionRuntime": "nodejs", "defaultEditorFile": "src/index.js", "useLegacyBuild": true -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/function/S3Trigger1ef46783/function-parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/function/S3Trigger1ef46783/function-parameters.json index 53a471a2cd7..d2785b5fb0f 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/function/S3Trigger1ef46783/function-parameters.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/function/S3Trigger1ef46783/function-parameters.json @@ -6,4 +6,4 @@ ] } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/function/S3Trigger1ef46783/src/package.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/function/S3Trigger1ef46783/src/package.json index c090d8e5360..540015a8b70 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/function/S3Trigger1ef46783/src/package.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/function/S3Trigger1ef46783/src/package.json @@ -13,4 +13,4 @@ "@aws-sdk/protocol-http": "^3.58.0", "@aws-sdk/signature-v4": "^3.58.0" } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lowstockproducts/amplify.state b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lowstockproducts/amplify.state index 045e649ff86..f4f664b5257 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lowstockproducts/amplify.state +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lowstockproducts/amplify.state @@ -6,4 +6,4 @@ "scripts": { "build": "npm install --no-bin-links --production" } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lowstockproducts/custom-policies.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lowstockproducts/custom-policies.json index 528c94f2f26..1f21c530082 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lowstockproducts/custom-policies.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lowstockproducts/custom-policies.json @@ -3,4 +3,4 @@ "Action": [], "Resource": [] } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lowstockproducts/function-parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lowstockproducts/function-parameters.json index e27fadd456a..83d27cce86e 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lowstockproducts/function-parameters.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lowstockproducts/function-parameters.json @@ -16,4 +16,4 @@ "secretNames": [ "PRODUCT_CATALOG_SECRET" ] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lowstockproducts/lowstockproducts-cloudformation-template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lowstockproducts/lowstockproducts-cloudformation-template.json index f4c76b769b7..400ee646907 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lowstockproducts/lowstockproducts-cloudformation-template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lowstockproducts/lowstockproducts-cloudformation-template.json @@ -355,4 +355,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lowstockproducts/parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lowstockproducts/parameters.json index 9e26dfeeb6e..0967ef424bc 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lowstockproducts/parameters.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/function/lowstockproducts/parameters.json @@ -1 +1 @@ -{} \ No newline at end of file +{} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s338e5b439/build/cloudformation-template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s338e5b439/build/cloudformation-template.json index 55d3aa17380..281d3376422 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s338e5b439/build/cloudformation-template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s338e5b439/build/cloudformation-template.json @@ -738,4 +738,4 @@ ] } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s338e5b439/build/parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s338e5b439/build/parameters.json index e2522a6f51b..6fd2e2e2b7d 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s338e5b439/build/parameters.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s338e5b439/build/parameters.json @@ -29,4 +29,4 @@ "s3PermissionsAuthenticatedUploads": "s3:PutObject", "s3PermissionsGuestPublic": "DISALLOW", "s3PermissionsGuestUploads": "DISALLOW" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s338e5b439/cli-inputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s338e5b439/cli-inputs.json index 11ca1510d15..b453fcdf61b 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s338e5b439/cli-inputs.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s338e5b439/cli-inputs.json @@ -11,4 +11,4 @@ ], "triggerFunction": "S3Trigger1ef46783", "groupAccess": {} -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/tags.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/tags.json index b9321d71b83..71f6abe11a6 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/tags.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/#current-cloud-backend/tags.json @@ -7,4 +7,4 @@ "Key": "user:Application", "Value": "{project-name}" } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/.config/project-config.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/.config/project-config.json index a23d23c5481..0eb2ec7b7c9 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/.config/project-config.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/.config/project-config.json @@ -8,11 +8,11 @@ "config": { "SourceDir": "src", "DistributionDir": "dist", - "BuildCommand": "npm run-script build", + "BuildCommand": "npm run build", "StartCommand": "npm run-script start" } }, "providers": [ "awscloudformation" ] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/amplify-meta.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/amplify-meta.json index 03a58aa5611..f9e00b9fb7d 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/amplify-meta.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/amplify-meta.json @@ -1,14 +1,14 @@ { "providers": { "awscloudformation": { - "AuthRoleName": "amplify-productcatalog-main-31323-authRole", - "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-productcatalog-main-31323-unauthRole", - "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-productcatalog-main-31323-authRole", + "AuthRoleName": "amplify-productcatalog-x-x-authRole", + "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-productcatalog-x-x-unauthRole", + "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-productcatalog-x-x-authRole", "Region": "us-east-1", - "DeploymentBucketName": "amplify-productcatalog-main-31323-deployment", - "UnauthRoleName": "amplify-productcatalog-main-31323-unauthRole", - "StackName": "amplify-productcatalog-main-31323", - "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-productcatalog-main-31323/2d9bb0d0-1a2b-11f1-8beb-0affe952b47f", + "DeploymentBucketName": "amplify-productcatalog-x-x-deployment", + "UnauthRoleName": "amplify-productcatalog-x-x-unauthRole", + "StackName": "amplify-productcatalog-x-x", + "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-productcatalog-x-x/25d38550-387e-11f1-9b94-0afffb3ee03d", "AmplifyAppId": "productcatalog" } }, @@ -39,17 +39,17 @@ ] }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-main-31323-deployment/amplify-cfn-templates/auth/productcatalog90174ac4-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-x-x-deployment/amplify-cfn-templates/auth/productcatalog90174ac4-cloudformation-template.json", "logicalId": "authproductcatalog90174ac4" }, - "lastPushTimeStamp": "2026-03-07T14:20:36.895Z", + "lastPushTimeStamp": "2026-04-15T03:57:56.367Z", "output": { - "UserPoolId": "us-east-1_66BkqNfdX", - "AppClientIDWeb": "7ogg1fkk68io03i95o0viqhibk", - "AppClientID": "27jbakm3s7vgm116b36evi830d", - "IdentityPoolId": "us-east-1:46acac6f-21d1-433c-93b9-d9d908c696fc", - "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_66BkqNfdX", - "IdentityPoolName": "productcatalog90174ac4_identitypool_90174ac4__main", + "UserPoolId": "us-east-1_HpX9WE297", + "AppClientIDWeb": "5t4ot0q04ialfrcrbs42ja7pul", + "AppClientID": "4kaqq4k3inp7kumdv6bqelrm7", + "IdentityPoolId": "us-east-1:a3f1cc1e-f560-4202-ba02-4c435dec114d", + "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_HpX9WE297", + "IdentityPoolName": "productcatalog90174ac4_identitypool_90174ac4__x", "UserPoolName": "productcatalog90174ac4_userpool_90174ac4" }, "lastPushDirHash": "vwfsguBCYhmnChi8OJsiaEhZfwA=" @@ -90,16 +90,16 @@ } ] }, - "GraphQLAPIIdOutput": "3oy6oxkj6ffojmc2upd52ftdsq", - "GraphQLAPIEndpointOutput": "https://vy5ne7iiovgsxdk3ke4itswbju.appsync-api.us-east-1.amazonaws.com/graphql", + "GraphQLAPIIdOutput": "hscmwhprkbaljmcpavj3dcztrq", + "GraphQLAPIEndpointOutput": "https://nmunek64lresdpc5z6pnhpsbh4.appsync-api.us-east-1.amazonaws.com/graphql", "GraphQLAPIKeyOutput": "da2-fakeapikey00000000000000" }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-main-31323-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", "logicalId": "apiproductcatalog" }, - "lastPushTimeStamp": "2026-03-07T14:20:36.895Z", - "lastPushDirHash": "HAAqwd16poMp9Vre1w6qPhTyKpg=" + "lastPushTimeStamp": "2026-04-15T03:57:56.367Z", + "lastPushDirHash": "M4Lv1myo82xasoYda8BR7zSbDl4=" } }, "function": { @@ -118,25 +118,25 @@ ] } ], - "lastPushTimeStamp": "2026-03-07T14:20:36.895Z", - "lastBuildTimeStamp": "2026-03-07T14:13:42.101Z", + "lastPushTimeStamp": "2026-04-15T03:57:56.367Z", + "lastBuildTimeStamp": "2026-04-15T03:51:01.047Z", "lastBuildType": "PROD", - "lastPackageTimeStamp": "2026-03-07T14:13:49.339Z", + "lastPackageTimeStamp": "2026-04-15T03:51:06.011Z", "distZipFilename": "S3Trigger1ef46783-4b4665534739746b326e-build.zip", "s3Bucket": { - "deploymentBucketName": "amplify-productcatalog-main-31323-deployment", + "deploymentBucketName": "amplify-productcatalog-x-x-deployment", "s3Key": "amplify-builds/S3Trigger1ef46783-4b4665534739746b326e-build.zip" }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-main-31323-deployment/amplify-cfn-templates/function/S3Trigger1ef46783-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-x-x-deployment/amplify-cfn-templates/function/S3Trigger1ef46783-cloudformation-template.json", "logicalId": "functionS3Trigger1ef46783" }, "output": { - "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/S3Trigger1ef46783LambdaRole1ef46783-main", + "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/S3Trigger1ef46783LambdaRole1ef46783-x", "Region": "us-east-1", - "Arn": "arn:aws:lambda:us-east-1:123456789012:function:S3Trigger1ef46783-main", - "Name": "S3Trigger1ef46783-main", - "LambdaExecutionRole": "S3Trigger1ef46783LambdaRole1ef46783-main" + "Arn": "arn:aws:lambda:us-east-1:123456789012:function:S3Trigger1ef46783-x", + "Name": "S3Trigger1ef46783-x", + "LambdaExecutionRole": "S3Trigger1ef46783LambdaRole1ef46783-x" }, "lastPushDirHash": "2Yp8qReEPNjxqPd0IEURpkIBCjs=" }, @@ -155,27 +155,27 @@ ] } ], - "lastBuildTimeStamp": "2026-03-07T14:13:54.758Z", + "lastBuildTimeStamp": "2026-04-15T03:51:08.519Z", "lastBuildType": "PROD", - "lastPackageTimeStamp": "2026-03-07T14:14:05.813Z", - "distZipFilename": "lowstockproducts-5a45534e5173597a5842-build.zip", + "lastPackageTimeStamp": "2026-04-15T03:51:11.025Z", + "distZipFilename": "lowstockproducts-5148445a7a3964456a67-build.zip", "s3Bucket": { - "deploymentBucketName": "amplify-productcatalog-main-31323-deployment", - "s3Key": "amplify-builds/lowstockproducts-5a45534e5173597a5842-build.zip" + "deploymentBucketName": "amplify-productcatalog-x-x-deployment", + "s3Key": "amplify-builds/lowstockproducts-5148445a7a3964456a67-build.zip" }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-main-31323-deployment/amplify-cfn-templates/function/lowstockproducts-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-x-x-deployment/amplify-cfn-templates/function/lowstockproducts-cloudformation-template.json", "logicalId": "functionlowstockproducts" }, - "lastPushTimeStamp": "2026-03-07T14:20:36.895Z", + "lastPushTimeStamp": "2026-04-15T03:57:56.367Z", "output": { - "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/productcatalogLambdaRole1ca4fb61-main", + "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/productcatalogLambdaRole1ca4fb61-x", "Region": "us-east-1", - "Arn": "arn:aws:lambda:us-east-1:123456789012:function:lowstockproducts-main", - "Name": "lowstockproducts-main", - "LambdaExecutionRole": "productcatalogLambdaRole1ca4fb61-main" + "Arn": "arn:aws:lambda:us-east-1:123456789012:function:lowstockproducts-x", + "Name": "lowstockproducts-x", + "LambdaExecutionRole": "productcatalogLambdaRole1ca4fb61-x" }, - "lastPushDirHash": "v+3Ew5vm+8e5EPfjKY08keb4p0w=" + "lastPushDirHash": "5EfjkUs2if1HjkKcTDr6Hojbp5A=" } }, "storage": { @@ -193,16 +193,16 @@ ] } ], - "lastPushTimeStamp": "2026-03-07T14:20:36.895Z", + "lastPushTimeStamp": "2026-04-15T03:57:56.367Z", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-main-31323-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-x-x-deployment/amplify-cfn-templates/storage/cloudformation-template.json", "logicalId": "storages338e5b439" }, "output": { - "BucketName": "productcatalogf95af07481f845caa6594c26ac9c8ed331323-main", + "BucketName": "productcatalogf95af07481f845caa6594c26ac9c8ed3x-x", "Region": "us-east-1" }, "lastPushDirHash": "wE6Y7huJNaslBLmQHoL6Q0+9Yj4=" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/cloudformation-template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/cloudformation-template.json index 7f2f630d20b..24efba395fd 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/cloudformation-template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/cloudformation-template.json @@ -137,7 +137,7 @@ ] }, "Description": "graphqlapi", - "Expires": 1773497648 + "Expires": 1776829873 } }, "GraphQLAPINONEDS95A13CF0": { @@ -1150,4 +1150,4 @@ } }, "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/parameters.json index 954b6bfe933..6da28d11581 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/parameters.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/parameters.json @@ -14,6 +14,6 @@ "unauthRoleName": { "Ref": "UnauthRoleName" }, - "S3DeploymentBucket": "amplify-productcatalog-main-31323-deployment", - "S3DeploymentRootKey": "amplify-appsync-files/51b6d4362e9dc4529fd8298646795247239d2c30" -} \ No newline at end of file + "S3DeploymentBucket": "amplify-productcatalog-x-x-deployment", + "S3DeploymentRootKey": "amplify-appsync-files/2904294ac328b706f016848ccf5fa0abe614014d" +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Comment.authorId.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Comment.authorId.req.vtl index 1aae0961a3e..a9c5efa2bb8 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Comment.authorId.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Comment.authorId.req.vtl @@ -1 +1 @@ -$util.toJson({"version":"2018-05-29","payload":{}}) \ No newline at end of file +$util.toJson({"version":"2018-05-29","payload":{}}) diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Comment.authorId.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Comment.authorId.res.vtl index 775dd06e7f4..71c60daae52 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Comment.authorId.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Comment.authorId.res.vtl @@ -17,4 +17,4 @@ $util.qr($ctx.source.put("authorId", $ownerEntitiesLast)) $util.toJson($ctx.source.authorId) #end -## [End] Parse owner field auth for Get. ** \ No newline at end of file +## [End] Parse owner field auth for Get. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/InvokeLowstockproductsLambdaDataSource.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/InvokeLowstockproductsLambdaDataSource.req.vtl index 9100f5dc54f..67aa35bae96 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/InvokeLowstockproductsLambdaDataSource.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/InvokeLowstockproductsLambdaDataSource.req.vtl @@ -12,4 +12,4 @@ "prev": $util.toJson($ctx.prev) } } -## [End] Invoke AWS Lambda data source: LowstockproductsLambdaDataSource. ** \ No newline at end of file +## [End] Invoke AWS Lambda data source: LowstockproductsLambdaDataSource. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/InvokeLowstockproductsLambdaDataSource.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/InvokeLowstockproductsLambdaDataSource.res.vtl index e6b83d8b6ab..1316903313e 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/InvokeLowstockproductsLambdaDataSource.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/InvokeLowstockproductsLambdaDataSource.res.vtl @@ -3,4 +3,4 @@ $util.error($ctx.error.message, $ctx.error.type) #end $util.toJson($ctx.result) -## [End] Handle error or return result. ** \ No newline at end of file +## [End] Handle error or return result. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createComment.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createComment.auth.1.req.vtl index e10dc9ea415..df51fbb1f60 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createComment.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createComment.auth.1.req.vtl @@ -12,7 +12,7 @@ $util.unauthorized() #return($util.toJson({})) #end #end - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -59,4 +59,4 @@ $util.unauthorized() #end #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createComment.init.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createComment.init.1.req.vtl index df6b4cbbc5c..407b5845fc2 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createComment.init.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createComment.init.1.req.vtl @@ -8,4 +8,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createComment.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createComment.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createComment.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createComment.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createComment.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createComment.req.vtl index 7adb643898e..3e9e3095977 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createComment.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createComment.req.vtl @@ -71,4 +71,4 @@ $util.qr($mergedValues.put("__typename", "Comment")) $util.qr($PutObject.put("key", $Key)) #end $util.toJson($PutObject) -## [End] Create Request template. ** \ No newline at end of file +## [End] Create Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createComment.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createComment.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createComment.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createComment.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createProduct.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createProduct.auth.1.req.vtl index 8e7ff8a8500..1d40f47c422 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createProduct.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createProduct.auth.1.req.vtl @@ -12,7 +12,7 @@ $util.unauthorized() #return($util.toJson({})) #end #end - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -29,4 +29,4 @@ $util.unauthorized() #end #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createProduct.init.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createProduct.init.1.req.vtl index df6b4cbbc5c..407b5845fc2 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createProduct.init.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createProduct.init.1.req.vtl @@ -8,4 +8,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createProduct.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createProduct.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createProduct.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createProduct.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createProduct.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createProduct.req.vtl index 2ce819e2706..5ede70b348a 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createProduct.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createProduct.req.vtl @@ -63,4 +63,4 @@ $util.qr($mergedValues.put("__typename", "Product")) $util.qr($PutObject.put("key", $Key)) #end $util.toJson($PutObject) -## [End] Create Request template. ** \ No newline at end of file +## [End] Create Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createProduct.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createProduct.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createProduct.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createProduct.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createUser.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createUser.auth.1.req.vtl index 78534f42ab5..747440477e9 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createUser.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createUser.auth.1.req.vtl @@ -12,7 +12,7 @@ $util.unauthorized() #return($util.toJson({})) #end #end - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -59,4 +59,4 @@ $util.unauthorized() #end #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createUser.init.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createUser.init.1.req.vtl index df6b4cbbc5c..407b5845fc2 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createUser.init.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createUser.init.1.req.vtl @@ -8,4 +8,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createUser.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createUser.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createUser.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createUser.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createUser.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createUser.req.vtl index 60dc69bad03..7531ebfb473 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createUser.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createUser.req.vtl @@ -63,4 +63,4 @@ $util.qr($mergedValues.put("__typename", "User")) $util.qr($PutObject.put("key", $Key)) #end $util.toJson($PutObject) -## [End] Create Request template. ** \ No newline at end of file +## [End] Create Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createUser.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createUser.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createUser.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.createUser.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteComment.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteComment.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteComment.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteComment.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteComment.auth.1.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteComment.auth.1.res.vtl index 90bd30f9274..ce6701efddd 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteComment.auth.1.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteComment.auth.1.res.vtl @@ -10,7 +10,7 @@ $util.unauthorized() #return($util.toJson({})) #end #end - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -34,4 +34,4 @@ $util.unauthorized() $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteComment.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteComment.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteComment.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteComment.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteComment.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteComment.req.vtl index ace459bd501..d2cb40cd15d 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteComment.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteComment.req.vtl @@ -55,4 +55,4 @@ $util.qr($DeleteRequest.put("key", $Key)) $util.qr($DeleteRequest.put("condition", $Conditions)) #end $util.toJson($DeleteRequest) -## [End] Delete Request template. ** \ No newline at end of file +## [End] Delete Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteComment.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteComment.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteComment.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteComment.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteProduct.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteProduct.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteProduct.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteProduct.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteProduct.auth.1.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteProduct.auth.1.res.vtl index 9ed6fe15049..037cf8272f3 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteProduct.auth.1.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteProduct.auth.1.res.vtl @@ -10,7 +10,7 @@ $util.unauthorized() #return($util.toJson({})) #end #end - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -21,4 +21,4 @@ $util.unauthorized() $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteProduct.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteProduct.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteProduct.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteProduct.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteProduct.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteProduct.req.vtl index ace459bd501..d2cb40cd15d 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteProduct.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteProduct.req.vtl @@ -55,4 +55,4 @@ $util.qr($DeleteRequest.put("key", $Key)) $util.qr($DeleteRequest.put("condition", $Conditions)) #end $util.toJson($DeleteRequest) -## [End] Delete Request template. ** \ No newline at end of file +## [End] Delete Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteProduct.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteProduct.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteProduct.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteProduct.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteUser.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteUser.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteUser.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteUser.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteUser.auth.1.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteUser.auth.1.res.vtl index 50ec9d680a3..41dd8ff519b 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteUser.auth.1.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteUser.auth.1.res.vtl @@ -10,7 +10,7 @@ $util.unauthorized() #return($util.toJson({})) #end #end - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -34,4 +34,4 @@ $util.unauthorized() $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteUser.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteUser.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteUser.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteUser.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteUser.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteUser.req.vtl index ace459bd501..d2cb40cd15d 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteUser.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteUser.req.vtl @@ -55,4 +55,4 @@ $util.qr($DeleteRequest.put("key", $Key)) $util.qr($DeleteRequest.put("condition", $Conditions)) #end $util.toJson($DeleteRequest) -## [End] Delete Request template. ** \ No newline at end of file +## [End] Delete Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteUser.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteUser.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteUser.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.deleteUser.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateComment.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateComment.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateComment.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateComment.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateComment.auth.1.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateComment.auth.1.res.vtl index 48d5cab0ee6..2dff7410355 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateComment.auth.1.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateComment.auth.1.res.vtl @@ -17,7 +17,7 @@ $util.unauthorized() #return($util.toJson({})) #end #end - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -62,4 +62,4 @@ $util.unauthorized() $util.error("Unauthorized on ${deniedFields.keySet()}", "Unauthorized") #end $util.toJson({}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateComment.init.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateComment.init.1.req.vtl index ab5766fb051..dde2512aea8 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateComment.init.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateComment.init.1.req.vtl @@ -6,4 +6,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateComment.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateComment.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateComment.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateComment.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateComment.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateComment.req.vtl index a1bd67d21b6..648b67d7c57 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateComment.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateComment.req.vtl @@ -127,4 +127,4 @@ $util.qr($update.put("expression", "$expression")) $util.qr($UpdateItem.put("condition", $Conditions)) #end $util.toJson($UpdateItem) -## [End] Mutation Update resolver. ** \ No newline at end of file +## [End] Mutation Update resolver. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateComment.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateComment.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateComment.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateComment.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateProduct.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateProduct.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateProduct.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateProduct.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateProduct.auth.1.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateProduct.auth.1.res.vtl index d7fc41802eb..3f5d75d21ff 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateProduct.auth.1.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateProduct.auth.1.res.vtl @@ -17,7 +17,7 @@ $util.unauthorized() #return($util.toJson({})) #end #end - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -41,4 +41,4 @@ $util.unauthorized() $util.error("Unauthorized on ${deniedFields.keySet()}", "Unauthorized") #end $util.toJson({}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateProduct.init.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateProduct.init.1.req.vtl index ab5766fb051..dde2512aea8 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateProduct.init.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateProduct.init.1.req.vtl @@ -6,4 +6,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateProduct.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateProduct.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateProduct.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateProduct.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateProduct.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateProduct.req.vtl index a1bd67d21b6..648b67d7c57 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateProduct.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateProduct.req.vtl @@ -127,4 +127,4 @@ $util.qr($update.put("expression", "$expression")) $util.qr($UpdateItem.put("condition", $Conditions)) #end $util.toJson($UpdateItem) -## [End] Mutation Update resolver. ** \ No newline at end of file +## [End] Mutation Update resolver. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateProduct.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateProduct.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateProduct.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateProduct.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateUser.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateUser.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateUser.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateUser.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateUser.auth.1.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateUser.auth.1.res.vtl index d7bbcfef26b..cf9c40662ec 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateUser.auth.1.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateUser.auth.1.res.vtl @@ -17,7 +17,7 @@ $util.unauthorized() #return($util.toJson({})) #end #end - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -62,4 +62,4 @@ $util.unauthorized() $util.error("Unauthorized on ${deniedFields.keySet()}", "Unauthorized") #end $util.toJson({}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateUser.init.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateUser.init.1.req.vtl index ab5766fb051..dde2512aea8 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateUser.init.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateUser.init.1.req.vtl @@ -6,4 +6,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateUser.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateUser.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateUser.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateUser.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateUser.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateUser.req.vtl index a1bd67d21b6..648b67d7c57 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateUser.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateUser.req.vtl @@ -127,4 +127,4 @@ $util.qr($update.put("expression", "$expression")) $util.qr($UpdateItem.put("condition", $Conditions)) #end $util.toJson($UpdateItem) -## [End] Mutation Update resolver. ** \ No newline at end of file +## [End] Mutation Update resolver. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateUser.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateUser.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateUser.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Mutation.updateUser.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Product.comments.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Product.comments.auth.1.req.vtl index 49147ebb623..3e71c2b5b60 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Product.comments.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Product.comments.auth.1.req.vtl @@ -16,7 +16,7 @@ $util.qr($ctx.stash.put("hasAuth", true)) #end #end #if( !$isAuthorized ) - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -49,4 +49,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Product.comments.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Product.comments.req.vtl index ae6bb525e78..2a41bf1c346 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Product.comments.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Product.comments.req.vtl @@ -69,4 +69,4 @@ null #end, "index": "byProduct" } -#end \ No newline at end of file +#end diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Product.comments.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Product.comments.res.vtl index 922c4ce53d0..ae420dbf03f 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Product.comments.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Product.comments.res.vtl @@ -10,4 +10,4 @@ $util.error($ctx.error.message, $ctx.error.type) #end #end $util.toJson($result) -#end \ No newline at end of file +#end diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.checkLowStock.auth.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.checkLowStock.auth.req.vtl index 102c2e4a408..0fe5ca82b83 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.checkLowStock.auth.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.checkLowStock.auth.req.vtl @@ -10,7 +10,7 @@ #end #end #if( !$isAuthorized ) - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -22,4 +22,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.checkLowStock.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.checkLowStock.res.vtl index 634741579ce..c37b82e4a30 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.checkLowStock.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.checkLowStock.res.vtl @@ -1 +1 @@ -$util.toJson($ctx.prev.result) \ No newline at end of file +$util.toJson($ctx.prev.result) diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.commentsByProductId.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.commentsByProductId.auth.1.req.vtl index 81ff27d2394..907a0d1fcb6 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.commentsByProductId.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.commentsByProductId.auth.1.req.vtl @@ -12,7 +12,7 @@ $util.qr($ctx.stash.put("hasAuth", true)) #end #end #if( !$isAuthorized ) - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -45,4 +45,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.commentsByProductId.postAuth.1.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.commentsByProductId.postAuth.1.res.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.commentsByProductId.postAuth.1.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.commentsByProductId.postAuth.1.res.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.commentsByProductId.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.commentsByProductId.req.vtl index f85c4e4519c..6bec0591d09 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.commentsByProductId.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.commentsByProductId.req.vtl @@ -54,4 +54,4 @@ #set( $QueryRequest.filter = $filterExpression ) #end #end -$util.toJson($QueryRequest) \ No newline at end of file +$util.toJson($QueryRequest) diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.commentsByProductId.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.commentsByProductId.res.vtl index b0dd3df90d6..0355e700092 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.commentsByProductId.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.commentsByProductId.res.vtl @@ -1,4 +1,4 @@ #if( $ctx.error ) $util.error($ctx.error.message, $ctx.error.type) #end -$util.toJson($ctx.result) \ No newline at end of file +$util.toJson($ctx.result) diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getComment.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getComment.auth.1.req.vtl index 81ff27d2394..907a0d1fcb6 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getComment.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getComment.auth.1.req.vtl @@ -12,7 +12,7 @@ $util.qr($ctx.stash.put("hasAuth", true)) #end #end #if( !$isAuthorized ) - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -45,4 +45,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getComment.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getComment.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getComment.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getComment.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getComment.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getComment.req.vtl index a8d7811a021..fd7fbfc8013 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getComment.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getComment.req.vtl @@ -31,4 +31,4 @@ $util.qr($GetRequest.put("query", $query)) $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) #end $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getComment.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getComment.res.vtl index e9ef1436bdd..92e05f99816 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getComment.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getComment.res.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson(null) #end -## [End] Get Response template. ** \ No newline at end of file +## [End] Get Response template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getProduct.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getProduct.auth.1.req.vtl index 4d3c6ae0ee3..e32389afa54 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getProduct.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getProduct.auth.1.req.vtl @@ -12,7 +12,7 @@ $util.qr($ctx.stash.put("hasAuth", true)) #end #end #if( !$isAuthorized ) - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -24,4 +24,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getProduct.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getProduct.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getProduct.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getProduct.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getProduct.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getProduct.req.vtl index a8d7811a021..fd7fbfc8013 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getProduct.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getProduct.req.vtl @@ -31,4 +31,4 @@ $util.qr($GetRequest.put("query", $query)) $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) #end $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getProduct.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getProduct.res.vtl index e9ef1436bdd..92e05f99816 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getProduct.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getProduct.res.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson(null) #end -## [End] Get Response template. ** \ No newline at end of file +## [End] Get Response template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getUser.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getUser.auth.1.req.vtl index 1755d6fc3fc..e167c46bfc1 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getUser.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getUser.auth.1.req.vtl @@ -12,7 +12,7 @@ $util.qr($ctx.stash.put("hasAuth", true)) #end #end #if( !$isAuthorized ) - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -94,4 +94,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getUser.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getUser.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getUser.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getUser.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getUser.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getUser.req.vtl index a8d7811a021..fd7fbfc8013 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getUser.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getUser.req.vtl @@ -31,4 +31,4 @@ $util.qr($GetRequest.put("query", $query)) $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) #end $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getUser.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getUser.res.vtl index e9ef1436bdd..92e05f99816 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getUser.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.getUser.res.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson(null) #end -## [End] Get Response template. ** \ No newline at end of file +## [End] Get Response template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listComments.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listComments.auth.1.req.vtl index 81ff27d2394..907a0d1fcb6 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listComments.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listComments.auth.1.req.vtl @@ -12,7 +12,7 @@ $util.qr($ctx.stash.put("hasAuth", true)) #end #end #if( !$isAuthorized ) - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -45,4 +45,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listComments.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listComments.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listComments.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listComments.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listComments.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listComments.req.vtl index 014213710e8..ef976126825 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listComments.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listComments.req.vtl @@ -47,4 +47,4 @@ #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) #end $util.toJson($ListRequest) -## [End] List Request. ** \ No newline at end of file +## [End] List Request. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listComments.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listComments.res.vtl index ee8b6670cbc..aab9983954e 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listComments.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listComments.res.vtl @@ -4,4 +4,4 @@ #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listProducts.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listProducts.auth.1.req.vtl index 4d3c6ae0ee3..e32389afa54 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listProducts.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listProducts.auth.1.req.vtl @@ -12,7 +12,7 @@ $util.qr($ctx.stash.put("hasAuth", true)) #end #end #if( !$isAuthorized ) - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -24,4 +24,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listProducts.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listProducts.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listProducts.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listProducts.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listProducts.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listProducts.req.vtl index 014213710e8..ef976126825 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listProducts.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listProducts.req.vtl @@ -47,4 +47,4 @@ #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) #end $util.toJson($ListRequest) -## [End] List Request. ** \ No newline at end of file +## [End] List Request. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listProducts.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listProducts.res.vtl index ee8b6670cbc..aab9983954e 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listProducts.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listProducts.res.vtl @@ -4,4 +4,4 @@ #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listUsers.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listUsers.auth.1.req.vtl index 1755d6fc3fc..e167c46bfc1 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listUsers.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listUsers.auth.1.req.vtl @@ -12,7 +12,7 @@ $util.qr($ctx.stash.put("hasAuth", true)) #end #end #if( !$isAuthorized ) - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -94,4 +94,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listUsers.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listUsers.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listUsers.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listUsers.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listUsers.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listUsers.req.vtl index 014213710e8..ef976126825 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listUsers.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listUsers.req.vtl @@ -47,4 +47,4 @@ #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) #end $util.toJson($ListRequest) -## [End] List Request. ** \ No newline at end of file +## [End] List Request. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listUsers.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listUsers.res.vtl index ee8b6670cbc..aab9983954e 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listUsers.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Query.listUsers.res.vtl @@ -4,4 +4,4 @@ #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateComment.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateComment.auth.1.req.vtl index c7a0142b838..c1a5e5e04da 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateComment.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateComment.auth.1.req.vtl @@ -11,7 +11,7 @@ $util.qr($ctx.stash.put("hasAuth", true)) #end #end #if( !$isAuthorized ) - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -65,4 +65,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateComment.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateComment.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateComment.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateComment.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateComment.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateComment.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateComment.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateComment.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateComment.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateComment.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateComment.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateComment.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateProduct.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateProduct.auth.1.req.vtl index ff50c88e7e5..8ea6182b12f 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateProduct.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateProduct.auth.1.req.vtl @@ -11,7 +11,7 @@ $util.qr($ctx.stash.put("hasAuth", true)) #end #end #if( !$isAuthorized ) - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -47,4 +47,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateProduct.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateProduct.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateProduct.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateProduct.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateProduct.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateProduct.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateProduct.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateProduct.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateProduct.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateProduct.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateProduct.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateProduct.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateUser.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateUser.auth.1.req.vtl index ffc9c47fcb9..b577317320d 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateUser.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateUser.auth.1.req.vtl @@ -11,7 +11,7 @@ $util.qr($ctx.stash.put("hasAuth", true)) #end #end #if( !$isAuthorized ) - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -65,4 +65,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateUser.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateUser.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateUser.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateUser.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateUser.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateUser.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateUser.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateUser.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateUser.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateUser.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateUser.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onCreateUser.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteComment.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteComment.auth.1.req.vtl index c7a0142b838..c1a5e5e04da 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteComment.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteComment.auth.1.req.vtl @@ -11,7 +11,7 @@ $util.qr($ctx.stash.put("hasAuth", true)) #end #end #if( !$isAuthorized ) - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -65,4 +65,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteComment.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteComment.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteComment.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteComment.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteComment.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteComment.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteComment.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteComment.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteComment.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteComment.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteComment.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteComment.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteProduct.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteProduct.auth.1.req.vtl index ff50c88e7e5..8ea6182b12f 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteProduct.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteProduct.auth.1.req.vtl @@ -11,7 +11,7 @@ $util.qr($ctx.stash.put("hasAuth", true)) #end #end #if( !$isAuthorized ) - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -47,4 +47,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteProduct.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteProduct.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteProduct.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteProduct.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteProduct.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteProduct.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteProduct.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteProduct.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteProduct.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteProduct.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteProduct.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteProduct.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteUser.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteUser.auth.1.req.vtl index ffc9c47fcb9..b577317320d 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteUser.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteUser.auth.1.req.vtl @@ -11,7 +11,7 @@ $util.qr($ctx.stash.put("hasAuth", true)) #end #end #if( !$isAuthorized ) - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -65,4 +65,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteUser.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteUser.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteUser.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteUser.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteUser.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteUser.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteUser.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteUser.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteUser.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteUser.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteUser.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onDeleteUser.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateComment.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateComment.auth.1.req.vtl index c7a0142b838..c1a5e5e04da 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateComment.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateComment.auth.1.req.vtl @@ -11,7 +11,7 @@ $util.qr($ctx.stash.put("hasAuth", true)) #end #end #if( !$isAuthorized ) - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -65,4 +65,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateComment.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateComment.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateComment.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateComment.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateComment.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateComment.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateComment.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateComment.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateComment.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateComment.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateComment.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateComment.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateProduct.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateProduct.auth.1.req.vtl index ff50c88e7e5..8ea6182b12f 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateProduct.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateProduct.auth.1.req.vtl @@ -11,7 +11,7 @@ $util.qr($ctx.stash.put("hasAuth", true)) #end #end #if( !$isAuthorized ) - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -47,4 +47,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateProduct.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateProduct.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateProduct.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateProduct.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateProduct.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateProduct.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateProduct.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateProduct.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateProduct.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateProduct.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateProduct.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateProduct.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateUser.auth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateUser.auth.1.req.vtl index ffc9c47fcb9..b577317320d 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateUser.auth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateUser.auth.1.req.vtl @@ -11,7 +11,7 @@ $util.qr($ctx.stash.put("hasAuth", true)) #end #end #if( !$isAuthorized ) - #if( $ctx.identity.userArn == $ctx.stash.authRole ) + #if( ($ctx.identity.userArn == $ctx.stash.authRole) || ($ctx.identity.cognitoIdentityPoolId == $ctx.stash.identityPoolId && $ctx.identity.cognitoIdentityAuthType == "authenticated") ) #set( $isAuthorized = true ) #end #end @@ -65,4 +65,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateUser.postAuth.1.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateUser.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateUser.postAuth.1.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateUser.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateUser.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateUser.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateUser.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateUser.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateUser.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateUser.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateUser.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/Subscription.onUpdateUser.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/User.id.req.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/User.id.req.vtl index 1aae0961a3e..a9c5efa2bb8 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/User.id.req.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/User.id.req.vtl @@ -1 +1 @@ -$util.toJson({"version":"2018-05-29","payload":{}}) \ No newline at end of file +$util.toJson({"version":"2018-05-29","payload":{}}) diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/User.id.res.vtl b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/User.id.res.vtl index 137a10a8a5e..447c25b0745 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/User.id.res.vtl +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/resolvers/User.id.res.vtl @@ -17,4 +17,4 @@ $util.qr($ctx.source.put("id", $ownerEntitiesLast)) $util.toJson($ctx.source.id) #end -## [End] Parse owner field auth for Get. ** \ No newline at end of file +## [End] Parse owner field auth for Get. ** diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/stacks/Comment.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/stacks/Comment.json index a0f784ecb95..e803b483f4c 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/stacks/Comment.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/stacks/Comment.json @@ -549,7 +549,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -663,7 +663,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -810,7 +810,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -978,7 +978,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -1143,7 +1143,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -1229,7 +1229,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -1285,7 +1285,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -1341,7 +1341,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -1455,7 +1455,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -1550,7 +1550,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -1637,4 +1637,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/stacks/ConnectionStack.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/stacks/ConnectionStack.json index 3ac3a7923c1..97fa4add3a2 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/stacks/ConnectionStack.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/stacks/ConnectionStack.json @@ -127,7 +127,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -162,4 +162,4 @@ "Type": "String" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/stacks/CustomResources.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/stacks/CustomResources.json index 016991278d0..5fe357d6096 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/stacks/CustomResources.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/stacks/CustomResources.json @@ -58,4 +58,4 @@ "Value": "" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/stacks/FunctionDirectiveStack.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/stacks/FunctionDirectiveStack.json index 98d415f544e..0956fcbbe03 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/stacks/FunctionDirectiveStack.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/stacks/FunctionDirectiveStack.json @@ -230,7 +230,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n{}\n## [End] Stash resolver specific context.. **" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n{}\n## [End] Stash resolver specific context.. **" ] ] }, @@ -307,4 +307,4 @@ "Type": "String" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/stacks/Product.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/stacks/Product.json index 5aef32ef6dc..a4bbb535b23 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/stacks/Product.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/stacks/Product.json @@ -504,7 +504,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -618,7 +618,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -765,7 +765,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -933,7 +933,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -1098,7 +1098,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -1184,7 +1184,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -1240,7 +1240,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -1296,7 +1296,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -1370,4 +1370,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/stacks/User.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/stacks/User.json index 0d99e4037c2..c7b567b840c 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/stacks/User.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/build/stacks/User.json @@ -525,7 +525,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -642,7 +642,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -825,7 +825,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -1029,7 +1029,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -1197,7 +1197,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -1334,7 +1334,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -1396,7 +1396,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -1458,7 +1458,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -1553,7 +1553,7 @@ { "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" ] ] }, @@ -1659,4 +1659,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/cli-inputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/cli-inputs.json index fb275c3cad1..9a2417c4f1f 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/cli-inputs.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/cli-inputs.json @@ -19,4 +19,4 @@ } ] } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/custom-roles.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/custom-roles.json index 8f71cc78ac0..cab084869ac 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/custom-roles.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/custom-roles.json @@ -1,5 +1,5 @@ { "adminRoleNames": [ - "amplify-productcatalog" + "amplify-productcat" ] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/parameters.json index 1e043987be2..eabf4b6c01e 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/parameters.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/parameters.json @@ -8,4 +8,4 @@ "Outputs.UserPoolId" ] } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/resolvers/README.md b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/resolvers/README.md index 89e564c5b31..1634d295144 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/resolvers/README.md +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/resolvers/README.md @@ -1,2 +1,2 @@ Any resolvers that you add in this directory will override the ones automatically generated by Amplify CLI and will be directly copied to the cloud. -For more information, visit [https://docs.amplify.aws/cli/graphql-transformer/resolvers](https://docs.amplify.aws/cli/graphql-transformer/resolvers) \ No newline at end of file +For more information, visit [https://docs.amplify.aws/cli/graphql-transformer/resolvers](https://docs.amplify.aws/cli/graphql-transformer/resolvers) diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/transform.conf.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/transform.conf.json index 98e1e19f038..d0421b1df09 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/transform.conf.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/api/productcatalog/transform.conf.json @@ -1,4 +1,4 @@ { "Version": 5, "ElasticsearchWarning": true -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/auth/productcatalog90174ac4/build/parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/auth/productcatalog90174ac4/build/parameters.json index 2123759baaa..ad6263f05d7 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/auth/productcatalog90174ac4/build/parameters.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/auth/productcatalog90174ac4/build/parameters.json @@ -56,4 +56,4 @@ }, "breakCircularDependency": true, "dependsOn": [] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/auth/productcatalog90174ac4/build/productcatalog90174ac4-cloudformation-template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/auth/productcatalog90174ac4/build/productcatalog90174ac4-cloudformation-template.json index 486545f0c0a..7f83b2af8b3 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/auth/productcatalog90174ac4/build/productcatalog90174ac4-cloudformation-template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/auth/productcatalog90174ac4/build/productcatalog90174ac4-cloudformation-template.json @@ -410,4 +410,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/auth/productcatalog90174ac4/cli-inputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/auth/productcatalog90174ac4/cli-inputs.json index 6fb43f1bdb1..b83052fe40a 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/auth/productcatalog90174ac4/cli-inputs.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/auth/productcatalog90174ac4/cli-inputs.json @@ -45,4 +45,4 @@ "usernameCaseSensitive": false, "useEnabledMfas": true } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/productcatalog/build/cloudformation-template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/productcatalog/build/cloudformation-template.json index 7f2f630d20b..24efba395fd 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/productcatalog/build/cloudformation-template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/productcatalog/build/cloudformation-template.json @@ -137,7 +137,7 @@ ] }, "Description": "graphqlapi", - "Expires": 1773497648 + "Expires": 1776829873 } }, "GraphQLAPINONEDS95A13CF0": { @@ -1150,4 +1150,4 @@ } }, "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/productcatalog90174ac4/build/productcatalog90174ac4-cloudformation-template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/productcatalog90174ac4/build/productcatalog90174ac4-cloudformation-template.json index 486545f0c0a..7f83b2af8b3 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/productcatalog90174ac4/build/productcatalog90174ac4-cloudformation-template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/productcatalog90174ac4/build/productcatalog90174ac4-cloudformation-template.json @@ -410,4 +410,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json index 49ffd71bb52..ab84b6666c0 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json @@ -202,7 +202,7 @@ "authproductcatalog90174ac4": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-main-31323-deployment/amplify-cfn-templates/auth/productcatalog90174ac4-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-x-x-deployment/amplify-cfn-templates/auth/productcatalog90174ac4-cloudformation-template.json", "Parameters": { "identityPoolName": "productcatalog90174ac4_identitypool_90174ac4", "allowUnauthenticatedIdentities": false, @@ -249,14 +249,14 @@ }, "breakCircularDependency": true, "dependsOn": "", - "env": "main" + "env": "x" } } }, "apiproductcatalog": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-main-31323-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", "Parameters": { "AppSyncApiName": "productcatalog", "DynamoDBBillingMode": "PAY_PER_REQUEST", @@ -273,18 +273,18 @@ "unauthRoleName": { "Ref": "UnauthRoleName" }, - "S3DeploymentBucket": "amplify-productcatalog-main-31323-deployment", - "S3DeploymentRootKey": "amplify-appsync-files/51b6d4362e9dc4529fd8298646795247239d2c30", - "env": "main" + "S3DeploymentBucket": "amplify-productcatalog-x-x-deployment", + "S3DeploymentRootKey": "amplify-appsync-files/2904294ac328b706f016848ccf5fa0abe614014d", + "env": "x" } } }, "functionS3Trigger1ef46783": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-main-31323-deployment/amplify-cfn-templates/function/S3Trigger1ef46783-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-x-x-deployment/amplify-cfn-templates/function/S3Trigger1ef46783-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-productcatalog-main-31323-deployment", + "deploymentBucketName": "amplify-productcatalog-x-x-deployment", "s3Key": "amplify-builds/S3Trigger1ef46783-4b4665534739746b326e-build.zip", "apiproductcatalogGraphQLAPIIdOutput": { "Fn::GetAtt": [ @@ -304,19 +304,19 @@ "Outputs.GraphQLAPIKeyOutput" ] }, - "env": "main" + "env": "x" } } }, "functionlowstockproducts": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-main-31323-deployment/amplify-cfn-templates/function/lowstockproducts-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-x-x-deployment/amplify-cfn-templates/function/lowstockproducts-cloudformation-template.json", "Parameters": { "lowStockThreshold": "5", "secretsPathAmplifyAppId": "productcatalog", - "deploymentBucketName": "amplify-productcatalog-main-31323-deployment", - "s3Key": "amplify-builds/lowstockproducts-5a45534e5173597a5842-build.zip", + "deploymentBucketName": "amplify-productcatalog-x-x-deployment", + "s3Key": "amplify-builds/lowstockproducts-5148445a7a3964456a67-build.zip", "apiproductcatalogGraphQLAPIIdOutput": { "Fn::GetAtt": [ "apiproductcatalog", @@ -335,14 +335,14 @@ "Outputs.GraphQLAPIKeyOutput" ] }, - "env": "main" + "env": "x" } } }, "storages338e5b439": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-main-31323-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-x-x-deployment/amplify-cfn-templates/storage/cloudformation-template.json", "Parameters": { "bucketName": "productcatalogf95af07481f845caa6594c26ac9c8ed3", "selectedGuestPermissions": "", @@ -387,7 +387,7 @@ "Outputs.LambdaExecutionRole" ] }, - "env": "main" + "env": "x" } } }, @@ -595,4 +595,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/S3Trigger1ef46783/S3Trigger1ef46783-cloudformation-template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/S3Trigger1ef46783/S3Trigger1ef46783-cloudformation-template.json index 3e8a515ae54..a0a9c061c5f 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/S3Trigger1ef46783/S3Trigger1ef46783-cloudformation-template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/S3Trigger1ef46783/S3Trigger1ef46783-cloudformation-template.json @@ -261,4 +261,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/lowstockproducts/lowstockproducts-cloudformation-template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/lowstockproducts/lowstockproducts-cloudformation-template.json index f4c76b769b7..400ee646907 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/lowstockproducts/lowstockproducts-cloudformation-template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/lowstockproducts/lowstockproducts-cloudformation-template.json @@ -355,4 +355,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json index 49ffd71bb52..ab84b6666c0 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json @@ -202,7 +202,7 @@ "authproductcatalog90174ac4": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-main-31323-deployment/amplify-cfn-templates/auth/productcatalog90174ac4-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-x-x-deployment/amplify-cfn-templates/auth/productcatalog90174ac4-cloudformation-template.json", "Parameters": { "identityPoolName": "productcatalog90174ac4_identitypool_90174ac4", "allowUnauthenticatedIdentities": false, @@ -249,14 +249,14 @@ }, "breakCircularDependency": true, "dependsOn": "", - "env": "main" + "env": "x" } } }, "apiproductcatalog": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-main-31323-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", "Parameters": { "AppSyncApiName": "productcatalog", "DynamoDBBillingMode": "PAY_PER_REQUEST", @@ -273,18 +273,18 @@ "unauthRoleName": { "Ref": "UnauthRoleName" }, - "S3DeploymentBucket": "amplify-productcatalog-main-31323-deployment", - "S3DeploymentRootKey": "amplify-appsync-files/51b6d4362e9dc4529fd8298646795247239d2c30", - "env": "main" + "S3DeploymentBucket": "amplify-productcatalog-x-x-deployment", + "S3DeploymentRootKey": "amplify-appsync-files/2904294ac328b706f016848ccf5fa0abe614014d", + "env": "x" } } }, "functionS3Trigger1ef46783": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-main-31323-deployment/amplify-cfn-templates/function/S3Trigger1ef46783-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-x-x-deployment/amplify-cfn-templates/function/S3Trigger1ef46783-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-productcatalog-main-31323-deployment", + "deploymentBucketName": "amplify-productcatalog-x-x-deployment", "s3Key": "amplify-builds/S3Trigger1ef46783-4b4665534739746b326e-build.zip", "apiproductcatalogGraphQLAPIIdOutput": { "Fn::GetAtt": [ @@ -304,19 +304,19 @@ "Outputs.GraphQLAPIKeyOutput" ] }, - "env": "main" + "env": "x" } } }, "functionlowstockproducts": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-main-31323-deployment/amplify-cfn-templates/function/lowstockproducts-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-x-x-deployment/amplify-cfn-templates/function/lowstockproducts-cloudformation-template.json", "Parameters": { "lowStockThreshold": "5", "secretsPathAmplifyAppId": "productcatalog", - "deploymentBucketName": "amplify-productcatalog-main-31323-deployment", - "s3Key": "amplify-builds/lowstockproducts-5a45534e5173597a5842-build.zip", + "deploymentBucketName": "amplify-productcatalog-x-x-deployment", + "s3Key": "amplify-builds/lowstockproducts-5148445a7a3964456a67-build.zip", "apiproductcatalogGraphQLAPIIdOutput": { "Fn::GetAtt": [ "apiproductcatalog", @@ -335,14 +335,14 @@ "Outputs.GraphQLAPIKeyOutput" ] }, - "env": "main" + "env": "x" } } }, "storages338e5b439": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-main-31323-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-x-x-deployment/amplify-cfn-templates/storage/cloudformation-template.json", "Parameters": { "bucketName": "productcatalogf95af07481f845caa6594c26ac9c8ed3", "selectedGuestPermissions": "", @@ -387,7 +387,7 @@ "Outputs.LambdaExecutionRole" ] }, - "env": "main" + "env": "x" } } }, @@ -595,4 +595,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/awscloudformation/build/storage/s338e5b439/build/cloudformation-template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/awscloudformation/build/storage/s338e5b439/build/cloudformation-template.json index 284b3cf2e07..8e2779a5755 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/awscloudformation/build/storage/s338e5b439/build/cloudformation-template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/awscloudformation/build/storage/s338e5b439/build/cloudformation-template.json @@ -747,4 +747,4 @@ ] } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/backend-config.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/backend-config.json index 673c2ac901f..b1334b1c019 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/backend-config.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/backend-config.json @@ -166,4 +166,4 @@ "service": "S3" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/function/S3Trigger1ef46783/S3Trigger1ef46783-cloudformation-template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/function/S3Trigger1ef46783/S3Trigger1ef46783-cloudformation-template.json index 3e8a515ae54..a0a9c061c5f 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/function/S3Trigger1ef46783/S3Trigger1ef46783-cloudformation-template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/function/S3Trigger1ef46783/S3Trigger1ef46783-cloudformation-template.json @@ -261,4 +261,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/function/S3Trigger1ef46783/amplify.state b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/function/S3Trigger1ef46783/amplify.state index 2ba0f4c74ff..035d15f2746 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/function/S3Trigger1ef46783/amplify.state +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/function/S3Trigger1ef46783/amplify.state @@ -3,4 +3,4 @@ "functionRuntime": "nodejs", "defaultEditorFile": "src/index.js", "useLegacyBuild": true -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/function/S3Trigger1ef46783/function-parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/function/S3Trigger1ef46783/function-parameters.json index 53a471a2cd7..d2785b5fb0f 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/function/S3Trigger1ef46783/function-parameters.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/function/S3Trigger1ef46783/function-parameters.json @@ -6,4 +6,4 @@ ] } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/function/S3Trigger1ef46783/src/package.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/function/S3Trigger1ef46783/src/package.json index c090d8e5360..540015a8b70 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/function/S3Trigger1ef46783/src/package.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/function/S3Trigger1ef46783/src/package.json @@ -13,4 +13,4 @@ "@aws-sdk/protocol-http": "^3.58.0", "@aws-sdk/signature-v4": "^3.58.0" } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/function/lowstockproducts/amplify.state b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/function/lowstockproducts/amplify.state index 045e649ff86..f4f664b5257 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/function/lowstockproducts/amplify.state +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/function/lowstockproducts/amplify.state @@ -6,4 +6,4 @@ "scripts": { "build": "npm install --no-bin-links --production" } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/function/lowstockproducts/custom-policies.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/function/lowstockproducts/custom-policies.json index 528c94f2f26..1f21c530082 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/function/lowstockproducts/custom-policies.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/function/lowstockproducts/custom-policies.json @@ -3,4 +3,4 @@ "Action": [], "Resource": [] } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/function/lowstockproducts/function-parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/function/lowstockproducts/function-parameters.json index e27fadd456a..83d27cce86e 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/function/lowstockproducts/function-parameters.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/function/lowstockproducts/function-parameters.json @@ -16,4 +16,4 @@ "secretNames": [ "PRODUCT_CATALOG_SECRET" ] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/function/lowstockproducts/lowstockproducts-cloudformation-template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/function/lowstockproducts/lowstockproducts-cloudformation-template.json index f4c76b769b7..400ee646907 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/function/lowstockproducts/lowstockproducts-cloudformation-template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/function/lowstockproducts/lowstockproducts-cloudformation-template.json @@ -355,4 +355,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/function/lowstockproducts/parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/function/lowstockproducts/parameters.json index 9e26dfeeb6e..0967ef424bc 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/function/lowstockproducts/parameters.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/function/lowstockproducts/parameters.json @@ -1 +1 @@ -{} \ No newline at end of file +{} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/storage/s338e5b439/build/cloudformation-template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/storage/s338e5b439/build/cloudformation-template.json index 55d3aa17380..281d3376422 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/storage/s338e5b439/build/cloudformation-template.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/storage/s338e5b439/build/cloudformation-template.json @@ -738,4 +738,4 @@ ] } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/storage/s338e5b439/build/parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/storage/s338e5b439/build/parameters.json index e2522a6f51b..6fd2e2e2b7d 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/storage/s338e5b439/build/parameters.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/storage/s338e5b439/build/parameters.json @@ -29,4 +29,4 @@ "s3PermissionsAuthenticatedUploads": "s3:PutObject", "s3PermissionsGuestPublic": "DISALLOW", "s3PermissionsGuestUploads": "DISALLOW" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/storage/s338e5b439/cli-inputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/storage/s338e5b439/cli-inputs.json index 11ca1510d15..b453fcdf61b 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/storage/s338e5b439/cli-inputs.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/storage/s338e5b439/cli-inputs.json @@ -11,4 +11,4 @@ ], "triggerFunction": "S3Trigger1ef46783", "groupAccess": {} -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/tags.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/tags.json index b9321d71b83..71f6abe11a6 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/tags.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/tags.json @@ -7,4 +7,4 @@ "Key": "user:Application", "Value": "{project-name}" } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts index 2336f9c07a2..ce228060d90 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts @@ -39,4 +39,4 @@ export type AmplifyDependentResourcesAttributes = { "Region": "string" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/cli.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/cli.json index 11dc8ca0f7d..6991bfaca44 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/cli.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/cli.json @@ -62,4 +62,4 @@ "debug": { "shareProjectConfig": false } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/team-provider-info.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/team-provider-info.json index 0e304ba648c..9292017d3c1 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/team-provider-info.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/amplify/team-provider-info.json @@ -1,14 +1,14 @@ { - "main": { + "x": { "awscloudformation": { - "AuthRoleName": "amplify-productcatalog-main-31323-authRole", - "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-productcatalog-main-31323-unauthRole", - "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-productcatalog-main-31323-authRole", + "AuthRoleName": "amplify-productcatalog-x-x-authRole", + "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-productcatalog-x-x-unauthRole", + "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-productcatalog-x-x-authRole", "Region": "us-east-1", - "DeploymentBucketName": "amplify-productcatalog-main-31323-deployment", - "UnauthRoleName": "amplify-productcatalog-main-31323-unauthRole", - "StackName": "amplify-productcatalog-main-31323", - "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-productcatalog-main-31323/2d9bb0d0-1a2b-11f1-8beb-0affe952b47f", + "DeploymentBucketName": "amplify-productcatalog-x-x-deployment", + "UnauthRoleName": "amplify-productcatalog-x-x-unauthRole", + "StackName": "amplify-productcatalog-x-x", + "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-productcatalog-x-x/25d38550-387e-11f1-9b94-0afffb3ee03d", "AmplifyAppId": "productcatalog" }, "categories": { @@ -16,15 +16,15 @@ "productcatalog90174ac4": {} }, "function": { - "S3Trigger1ef46783": { - "deploymentBucketName": "amplify-productcatalog-main-31323-deployment", - "s3Key": "amplify-builds/S3Trigger1ef46783-4b4665534739746b326e-build.zip" - }, "lowstockproducts": { "lowStockThreshold": "5", "secretsPathAmplifyAppId": "productcatalog", - "deploymentBucketName": "amplify-productcatalog-main-31323-deployment", - "s3Key": "amplify-builds/lowstockproducts-5a45534e5173597a5842-build.zip" + "deploymentBucketName": "amplify-productcatalog-x-x-deployment", + "s3Key": "amplify-builds/lowstockproducts-5148445a7a3964456a67-build.zip" + }, + "S3Trigger1ef46783": { + "deploymentBucketName": "amplify-productcatalog-x-x-deployment", + "s3Key": "amplify-builds/S3Trigger1ef46783-4b4665534739746b326e-build.zip" } }, "api": { @@ -35,4 +35,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/package.json b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/package.json index 0c31b2e89a0..6a956636c2c 100644 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.generate/package.json +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.generate/package.json @@ -11,9 +11,21 @@ "build": "tsc -b && vite build", "lint": "eslint .", "preview": "vite preview", - "configure": "./configure.sh", + "configure": "./backend/configure.sh", "sanitize": "tsx ../sanitize.ts", - "typecheck": "cd _snapshot.post.generate/amplify && npx tsc --noEmit" + "normalize": "tsx ../normalize.ts", + "typecheck": "cd _snapshot.post.generate/amplify && npx tsc --noEmit", + "test:gen1": "APP_CONFIG_PATH=${APP_CONFIG_PATH:-src/amplifyconfiguration.json} NODE_OPTIONS='--experimental-vm-modules' jest --verbose", + "test:gen2": "APP_CONFIG_PATH=${APP_CONFIG_PATH:-amplify_outputs.json} NODE_OPTIONS='--experimental-vm-modules' jest --verbose", + "test:shared-data": "true", + "test:e2e": "cd ../../packages/amplify-gen2-migration-e2e-system && npx tsx src/cli.ts --app product-catalog --profile ${AWS_PROFILE:-default}", + "deploy": "cd ../../packages/amplify-gen2-migration-e2e-system && npx tsx src/cli.ts --app product-catalog --step deploy --profile ${AWS_PROFILE:-default}", + "pre-push": "npx tsx migration/pre-push.ts", + "post-generate": "npx tsx migration/post-generate.ts", + "post-refactor": "npx tsx migration/post-refactor.ts", + "post-sandbox": "npx tsx migration/post-sandbox.ts", + "pre-sandbox": "true", + "post-push": "true" }, "dependencies": { "@aws-amplify/ui-react": "^6.13.1", @@ -22,7 +34,11 @@ "react-dom": "^19.2.0" }, "devDependencies": { + "@aws-sdk/client-appsync": "^3.936.0", + "@aws-sdk/client-cognito-identity-provider": "^3.936.0", + "@aws-sdk/client-ssm": "^3.936.0", "@eslint/js": "^9.39.1", + "@types/jest": "^29.5.14", "@types/node": "^24.10.1", "@types/react": "^19.2.5", "@types/react-dom": "^19.2.3", @@ -31,6 +47,8 @@ "eslint-plugin-react-hooks": "^7.0.1", "eslint-plugin-react-refresh": "^0.4.24", "globals": "^16.5.0", + "jest": "^29.7.0", + "ts-jest": "^29.3.4", "typescript": "~5.9.3", "typescript-eslint": "^8.46.4", "vite": "^7.2.4" diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.description.txt b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.outputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.outputs.json new file mode 100644 index 00000000000..10aaffb794e --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.outputs.json @@ -0,0 +1,6 @@ +[ + { + "OutputKey": "amplifyproductcataloge2esandboxde12df9a17dataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEventF12E7F98Arn", + "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-productcat2604142-TableManagerCustomProvid-XfT9qQaF59FI" + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.parameters.json new file mode 100644 index 00000000000..b1b54711c9d --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.parameters.json @@ -0,0 +1,6 @@ +[ + { + "ParameterKey": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId", + "ParameterValue": "e5folpqnrzbzpbark3e3agy5ly" + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.template.json new file mode 100644 index 00000000000..0396d3fddfa --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.template.json @@ -0,0 +1,787 @@ +{ + "Resources": { + "AmplifyManagedTableIsCompleteRoleF825222C": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:CreateTable", + "dynamodb:UpdateTable", + "dynamodb:DeleteTable", + "dynamodb:DescribeTable", + "dynamodb:DescribeContinuousBackups", + "dynamodb:DescribeTimeToLive", + "dynamodb:UpdateContinuousBackups", + "dynamodb:UpdateTimeToLive", + "dynamodb:TagResource", + "dynamodb:UntagResource", + "dynamodb:ListTagsOfResource" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/*-${apiId}-${envName}", + { + "apiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "envName": "NONE" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", + { + "tableName": "User-hscmwhprkbaljmcpavj3dcztrq-x" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", + { + "tableName": "Product-hscmwhprkbaljmcpavj3dcztrq-x" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", + { + "tableName": "Comment-hscmwhprkbaljmcpavj3dcztrq-x" + } + ] + } + ] + }, + { + "Action": "lambda:ListTags", + "Effect": "Allow", + "Resource": { + "Fn::Sub": [ + "arn:${AWS::Partition}:lambda:${AWS::Region}:${AWS::AccountId}:function:*TableManager*", + {} + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "CreateUpdateDeleteTablesPolicy" + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/AmplifyManagedTableIsCompleteRole/Resource" + } + }, + "AmplifyManagedTableOnEventRoleB4E71DEA": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:CreateTable", + "dynamodb:UpdateTable", + "dynamodb:DeleteTable", + "dynamodb:DescribeTable", + "dynamodb:DescribeContinuousBackups", + "dynamodb:DescribeTimeToLive", + "dynamodb:UpdateContinuousBackups", + "dynamodb:UpdateTimeToLive", + "dynamodb:TagResource", + "dynamodb:UntagResource", + "dynamodb:ListTagsOfResource" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/*-${apiId}-${envName}", + { + "apiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "envName": "NONE" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", + { + "tableName": "User-hscmwhprkbaljmcpavj3dcztrq-x" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", + { + "tableName": "Product-hscmwhprkbaljmcpavj3dcztrq-x" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", + { + "tableName": "Comment-hscmwhprkbaljmcpavj3dcztrq-x" + } + ] + } + ] + }, + { + "Action": "lambda:ListTags", + "Effect": "Allow", + "Resource": { + "Fn::Sub": [ + "arn:${AWS::Partition}:lambda:${AWS::Region}:${AWS::AccountId}:function:*TableManager*", + {} + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "CreateUpdateDeleteTablesPolicy" + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/AmplifyManagedTableOnEventRole/Resource" + } + }, + "AmplifyManagedTableOnEventRoleDefaultPolicyF6DABCB6": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "states:StartExecution", + "Effect": "Allow", + "Resource": { + "Ref": "AmplifyTableWaiterStateMachine060600BC" + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "AmplifyManagedTableOnEventRoleDefaultPolicyF6DABCB6", + "Roles": [ + { + "Ref": "AmplifyManagedTableOnEventRoleB4E71DEA" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/AmplifyManagedTableOnEventRole/DefaultPolicy/Resource" + } + }, + "TableManagerCustomProviderframeworkonEvent1DFC2ECC": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6.zip" + }, + "Description": "AmplifyManagedTable - onEvent (amplify-productcatalog-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider)", + "Environment": { + "Variables": { + "WAITER_STATE_MACHINE_ARN": { + "Ref": "AmplifyTableWaiterStateMachine060600BC" + } + } + }, + "Handler": "amplify-table-manager-handler.onEvent", + "Role": { + "Fn::GetAtt": [ + "AmplifyManagedTableOnEventRoleB4E71DEA", + "Arn" + ] + }, + "Runtime": "nodejs24.x", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 840 + }, + "DependsOn": [ + "AmplifyManagedTableOnEventRoleDefaultPolicyF6DABCB6", + "AmplifyManagedTableOnEventRoleB4E71DEA" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider/framework-onEvent/Resource", + "aws:asset:path": "asset.f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6", + "aws:asset:is-bundled": false, + "aws:asset:property": "Code" + } + }, + "TableManagerCustomProviderframeworkisComplete2E51021B": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6.zip" + }, + "Description": "AmplifyManagedTable - isComplete (amplify-productcatalog-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider)", + "Handler": "amplify-table-manager-handler.isComplete", + "Role": { + "Fn::GetAtt": [ + "AmplifyManagedTableIsCompleteRoleF825222C", + "Arn" + ] + }, + "Runtime": "nodejs24.x", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 840 + }, + "DependsOn": [ + "AmplifyManagedTableIsCompleteRoleF825222C" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider/framework-isComplete/Resource", + "aws:asset:path": "asset.f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6", + "aws:asset:is-bundled": false, + "aws:asset:property": "Code" + } + }, + "AmplifyTableWaiterStateMachineRole470BE899": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "states.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Role/Resource" + } + }, + "AmplifyTableWaiterStateMachineRoleDefaultPolicy89F3836A": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "TableManagerCustomProviderframeworkisComplete2E51021B", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "TableManagerCustomProviderframeworkisComplete2E51021B", + "Arn" + ] + }, + ":*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "AmplifyTableWaiterStateMachineRoleDefaultPolicy89F3836A", + "Roles": [ + { + "Ref": "AmplifyTableWaiterStateMachineRole470BE899" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Role/DefaultPolicy/Resource" + } + }, + "AmplifyTableWaiterStateMachine060600BC": { + "Type": "AWS::StepFunctions::StateMachine", + "Properties": { + "DefinitionString": { + "Fn::Join": [ + "", + [ + "{\"StartAt\":\"framework-isComplete-task\",\"States\":{\"framework-isComplete-task\":{\"End\":true,\"Retry\":[{\"ErrorEquals\":[\"States.ALL\"],\"IntervalSeconds\":10,\"MaxAttempts\":360,\"BackoffRate\":1}],\"Type\":\"Task\",\"Resource\":\"", + { + "Fn::GetAtt": [ + "TableManagerCustomProviderframeworkisComplete2E51021B", + "Arn" + ] + }, + "\"}}}" + ] + ] + }, + "RoleArn": { + "Fn::GetAtt": [ + "AmplifyTableWaiterStateMachineRole470BE899", + "Arn" + ] + } + }, + "DependsOn": [ + "AmplifyTableWaiterStateMachineRoleDefaultPolicy89F3836A", + "AmplifyTableWaiterStateMachineRole470BE899" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/zWNyw6CMBBFv8V9GbFE92Li0hj4ADK0IymPNmFaiWn67wbQ1Tk3Z3ElyHMO+QEXzpQestG0EB/EnnTtUQ0CF26iwQli5UYSt5fd+HSjUZ917pbEiFOrEeI9WOWNs2v7exJcNMhMnuG6QnABZVAD+RKZkqiIXZgVia3WHjtju+3sF5KwThP0fHxLCacL5IeejcnmYL2ZCKqdX3lj/13PAAAA" + }, + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId": { + "Type": "String" + } + }, + "Outputs": { + "amplifyproductcataloge2esandboxde12df9a17dataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEventF12E7F98Arn": { + "Value": { + "Fn::GetAtt": [ + "TableManagerCustomProviderframeworkonEvent1DFC2ECC", + "Arn" + ] + } + } + } +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataCommentNestedStackCommentNested-x.description.txt b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataCommentNestedStackCommentNested-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataCommentNestedStackCommentNested-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataCommentNestedStackCommentNested-x.outputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataCommentNestedStackCommentNested-x.outputs.json new file mode 100644 index 00000000000..ff25105ffa0 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataCommentNestedStackCommentNested-x.outputs.json @@ -0,0 +1,22 @@ +[ + { + "OutputKey": "GetAttCommentTableStreamArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Comment-hscmwhprkbaljmcpavj3dcztrq-x/stream/2026-04-15T03:53:06.820", + "Description": "Your DynamoDB table StreamArn.", + "ExportName": "e5folpqnrzbzpbark3e3agy5ly:GetAtt:CommentTable:StreamArn" + }, + { + "OutputKey": "amplifyproductcataloge2esandboxde12df9a17dataamplifyDataCommentCommentTableECA430A9TableArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Comment-hscmwhprkbaljmcpavj3dcztrq-x" + }, + { + "OutputKey": "GetAttCommentTableName", + "OutputValue": "Comment-hscmwhprkbaljmcpavj3dcztrq-x", + "Description": "Your DynamoDB table name.", + "ExportName": "e5folpqnrzbzpbark3e3agy5ly:GetAtt:CommentTable:Name" + }, + { + "OutputKey": "amplifyproductcataloge2esandboxde12df9a17dataamplifyDataCommentCommentDataSourceC4EBFBBFName", + "OutputValue": "CommentTable" + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataCommentNestedStackCommentNested-x.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataCommentNestedStackCommentNested-x.parameters.json new file mode 100644 index 00000000000..b5a4815c702 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataCommentNestedStackCommentNested-x.parameters.json @@ -0,0 +1,46 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref", + "ParameterValue": "amplify-productcat2604142-amplifyAuthauthenticatedU-FTyAOUWtFeJb" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "true" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref", + "ParameterValue": "amplify-productcat2604142-amplifyAuthunauthenticate-OzRPKugSY82W" + }, + { + "ParameterKey": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId", + "ParameterValue": "e5folpqnrzbzpbark3e3agy5ly" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef", + "ParameterValue": "us-east-1:ec121e86-e0d7-4f59-beaf-535182dac9c0" + }, + { + "ParameterKey": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceA2D569B5Outputsamplifyproductcataloge2esandboxde12df9a17dataamplifyDataAmplifyTableManagerTab2B02BDE4", + "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-productcat2604142-TableManagerCustomProvid-XfT9qQaF59FI" + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataCommentNestedStackCommentNested-x.template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataCommentNestedStackCommentNested-x.template.json new file mode 100644 index 00000000000..66849e2496c --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataCommentNestedStackCommentNested-x.template.json @@ -0,0 +1,2350 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceA2D569B5Outputsamplifyproductcataloge2esandboxde12df9a17dataamplifyDataAmplifyTableManagerTab2B02BDE4": { + "Type": "String" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId": { + "Type": "String" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name": { + "Type": "String" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref": { + "Type": "String" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref": { + "Type": "String" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + "NONE", + "NONE" + ] + } + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + }, + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Resources": { + "CommentTable": { + "Type": "Custom::ImportedAmplifyDynamoDBTable", + "Properties": { + "ServiceToken": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceA2D569B5Outputsamplifyproductcataloge2esandboxde12df9a17dataamplifyDataAmplifyTableManagerTab2B02BDE4" + }, + "tableName": "Comment-hscmwhprkbaljmcpavj3dcztrq-x", + "attributeDefinitions": [ + { + "attributeName": "id", + "attributeType": "S" + }, + { + "attributeName": "productId", + "attributeType": "S" + } + ], + "keySchema": [ + { + "attributeName": "id", + "keyType": "HASH" + } + ], + "globalSecondaryIndexes": [ + { + "indexName": "byProduct", + "keySchema": [ + { + "attributeName": "productId", + "keyType": "HASH" + } + ], + "projection": { + "projectionType": "ALL" + }, + "provisionedThroughput": { + "readCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "writeCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + } + ], + "provisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "sseSpecification": { + "sseEnabled": false + }, + "streamSpecification": { + "streamViewType": "NEW_AND_OLD_IMAGES" + }, + "deletionProtectionEnabled": true, + "allowDestructiveGraphqlSchemaUpdates": true, + "replaceTableUponGsiUpdate": false, + "isImported": true, + "pointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "billingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Comment/CommentTable/Default/Default" + } + }, + "CommentIAMRoleD5EC5F51": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem", + "dynamodb:ConditionCheckItem", + "dynamodb:DescribeTable", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": "Comment-hscmwhprkbaljmcpavj3dcztrq-x" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": "Comment-hscmwhprkbaljmcpavj3dcztrq-x" + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess" + } + ], + "RoleName": { + "Fn::Join": [ + "", + [ + "CommentIAMRole20388d-", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "-NONE" + ] + ] + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Comment/CommentIAMRole/Resource" + } + }, + "CommentDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "CommentTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + } + }, + "Name": "CommentTable", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "CommentIAMRoleD5EC5F51", + "Arn" + ] + }, + "Type": "AMAZON_DYNAMODB" + }, + "DependsOn": [ + "CommentIAMRoleD5EC5F51" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Comment/CommentDataSource/Resource" + } + }, + "QuerygetCommentauth0FunctionQuerygetCommentauth0FunctionAppSyncFunction4992FD06": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetCommentauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fddbd22b259df4da4b959230f841620be1c5f553f4f3a632bde23b473ddce60a.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Comment/QuerygetCommentauth0Function/QuerygetCommentauth0Function.AppSyncFunction" + } + }, + "QuerygetCommentpostAuth0FunctionQuerygetCommentpostAuth0FunctionAppSyncFunction27405A71": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetCommentpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Comment/QuerygetCommentpostAuth0Function/QuerygetCommentpostAuth0Function.AppSyncFunction" + } + }, + "QueryGetCommentDataResolverFnQueryGetCommentDataResolverFnAppSyncFunction8473E2B0": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "CommentDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryGetCommentDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/08f4d557693d96c1a4efba0f9dc91330e4b19772fd5477c156468843e3d9cb5e.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4c6a2d29f01c6091bd1d9afe16e5849d456c96f17c3b215938c8067399532719.vtl" + } + }, + "DependsOn": [ + "CommentDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Comment/QueryGetCommentDataResolverFn/QueryGetCommentDataResolverFn.AppSyncFunction" + } + }, + "GetCommentResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "FieldName": "getComment", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerygetCommentauth0FunctionQuerygetCommentauth0FunctionAppSyncFunction4992FD06", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetCommentpostAuth0FunctionQuerygetCommentpostAuth0FunctionAppSyncFunction27405A71", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryGetCommentDataResolverFnQueryGetCommentDataResolverFnAppSyncFunction8473E2B0", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "CommentTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Comment/queryGetCommentResolver" + } + }, + "QuerylistCommentsauth0FunctionQuerylistCommentsauth0FunctionAppSyncFunctionC7B0414F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerylistCommentsauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fddbd22b259df4da4b959230f841620be1c5f553f4f3a632bde23b473ddce60a.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Comment/QuerylistCommentsauth0Function/QuerylistCommentsauth0Function.AppSyncFunction" + } + }, + "QuerylistCommentspostAuth0FunctionQuerylistCommentspostAuth0FunctionAppSyncFunctionEDC68EF5": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerylistCommentspostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Comment/QuerylistCommentspostAuth0Function/QuerylistCommentspostAuth0Function.AppSyncFunction" + } + }, + "QueryListCommentsDataResolverFnQueryListCommentsDataResolverFnAppSyncFunction474D4A91": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "CommentDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryListCommentsDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9fcbe070ecd3023c5bf5b966fa9584757db9762eef123bad0820bd87591b2174.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/cc01911d0269d4080ea57505dc445dfc315ef7ad85d3d9d4ea1357858bff451d.vtl" + } + }, + "DependsOn": [ + "CommentDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Comment/QueryListCommentsDataResolverFn/QueryListCommentsDataResolverFn.AppSyncFunction" + } + }, + "ListCommentResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "FieldName": "listComments", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerylistCommentsauth0FunctionQuerylistCommentsauth0FunctionAppSyncFunctionC7B0414F", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerylistCommentspostAuth0FunctionQuerylistCommentspostAuth0FunctionAppSyncFunctionEDC68EF5", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryListCommentsDataResolverFnQueryListCommentsDataResolverFnAppSyncFunction474D4A91", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listComments\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "CommentTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Comment/queryListCommentsResolver" + } + }, + "MutationcreateCommentinit0FunctionMutationcreateCommentinit0FunctionAppSyncFunction77870FAC": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateCommentinit0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a183ddccbd956316c38ef97177b8f088ef0826f62023323f5ae6053d348ccffc.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Comment/MutationcreateCommentinit0Function/MutationcreateCommentinit0Function.AppSyncFunction" + } + }, + "MutationcreateCommentauth0FunctionMutationcreateCommentauth0FunctionAppSyncFunctionE6EA011A": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateCommentauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e8bed2f175c1940f121ba664cb3bae119b229c33405c7046598b847ce2aed656.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Comment/MutationcreateCommentauth0Function/MutationcreateCommentauth0Function.AppSyncFunction" + } + }, + "MutationcreateCommentpostAuth0FunctionMutationcreateCommentpostAuth0FunctionAppSyncFunction4F8AA7FF": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateCommentpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Comment/MutationcreateCommentpostAuth0Function/MutationcreateCommentpostAuth0Function.AppSyncFunction" + } + }, + "MutationCreateCommentDataResolverFnMutationCreateCommentDataResolverFnAppSyncFunctionD019FFE0": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "CommentDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationCreateCommentDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/45364049713897c02d7818d4cca69f32aed6a200c32039bc9accb6eea9db8b40.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "CommentDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Comment/MutationCreateCommentDataResolverFn/MutationCreateCommentDataResolverFn.AppSyncFunction" + } + }, + "CreateCommentResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "FieldName": "createComment", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationcreateCommentinit0FunctionMutationcreateCommentinit0FunctionAppSyncFunction77870FAC", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationcreateCommentauth0FunctionMutationcreateCommentauth0FunctionAppSyncFunctionE6EA011A", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationcreateCommentpostAuth0FunctionMutationcreateCommentpostAuth0FunctionAppSyncFunction4F8AA7FF", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationCreateCommentDataResolverFnMutationCreateCommentDataResolverFnAppSyncFunctionD019FFE0", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "CommentTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Comment/mutationCreateCommentResolver" + } + }, + "MutationupdateCommentinit0FunctionMutationupdateCommentinit0FunctionAppSyncFunction9C9EFBAD": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateCommentinit0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/06db846fd14e6fc371f22b12b5545ba8e2dbfeda85d8c8d586c71c282166657b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Comment/MutationupdateCommentinit0Function/MutationupdateCommentinit0Function.AppSyncFunction" + } + }, + "MutationupdateCommentauth0FunctionMutationupdateCommentauth0FunctionAppSyncFunction4E4C7C30": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "CommentDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateCommentauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/551c8985ebf3ca2b9dda2d756bd762bc2d7d9c413b7640b8a263975a00268670.vtl" + } + }, + "DependsOn": [ + "CommentDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Comment/MutationupdateCommentauth0Function/MutationupdateCommentauth0Function.AppSyncFunction" + } + }, + "MutationupdateCommentpostAuth0FunctionMutationupdateCommentpostAuth0FunctionAppSyncFunctionCDD716F2": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateCommentpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Comment/MutationupdateCommentpostAuth0Function/MutationupdateCommentpostAuth0Function.AppSyncFunction" + } + }, + "MutationUpdateCommentDataResolverFnMutationUpdateCommentDataResolverFnAppSyncFunctionB47372B5": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "CommentDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationUpdateCommentDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/474bf0776ec2164a13191d1a0a9e057154931e4918fea5086f49850d02a5371b.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "CommentDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Comment/MutationUpdateCommentDataResolverFn/MutationUpdateCommentDataResolverFn.AppSyncFunction" + } + }, + "UpdateCommentResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "FieldName": "updateComment", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationupdateCommentinit0FunctionMutationupdateCommentinit0FunctionAppSyncFunction9C9EFBAD", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationupdateCommentauth0FunctionMutationupdateCommentauth0FunctionAppSyncFunction4E4C7C30", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationupdateCommentpostAuth0FunctionMutationupdateCommentpostAuth0FunctionAppSyncFunctionCDD716F2", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationUpdateCommentDataResolverFnMutationUpdateCommentDataResolverFnAppSyncFunctionB47372B5", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "CommentTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Comment/mutationUpdateCommentResolver" + } + }, + "MutationdeleteCommentauth0FunctionMutationdeleteCommentauth0FunctionAppSyncFunction268B298A": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "CommentDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeleteCommentauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/236fd6e0db93ea7eeae6ed3165360d55d345f44c801ff526e4822df60ac8dbe0.vtl" + } + }, + "DependsOn": [ + "CommentDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Comment/MutationdeleteCommentauth0Function/MutationdeleteCommentauth0Function.AppSyncFunction" + } + }, + "MutationdeleteCommentpostAuth0FunctionMutationdeleteCommentpostAuth0FunctionAppSyncFunctionDFFD097E": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeleteCommentpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Comment/MutationdeleteCommentpostAuth0Function/MutationdeleteCommentpostAuth0Function.AppSyncFunction" + } + }, + "MutationDeleteCommentDataResolverFnMutationDeleteCommentDataResolverFnAppSyncFunctionD661C8CB": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "CommentDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationDeleteCommentDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4f7907d1209a2c9953a0c053df402c634e359546d70c7cc5c2e8e21ea734880f.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "CommentDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Comment/MutationDeleteCommentDataResolverFn/MutationDeleteCommentDataResolverFn.AppSyncFunction" + } + }, + "DeleteCommentResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "FieldName": "deleteComment", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationdeleteCommentauth0FunctionMutationdeleteCommentauth0FunctionAppSyncFunction268B298A", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationdeleteCommentpostAuth0FunctionMutationdeleteCommentpostAuth0FunctionAppSyncFunctionDFFD097E", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationDeleteCommentDataResolverFnMutationDeleteCommentDataResolverFnAppSyncFunctionD661C8CB", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "CommentTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Comment/mutationDeleteCommentResolver" + } + }, + "SubscriptiononCreateCommentauth0FunctionSubscriptiononCreateCommentauth0FunctionAppSyncFunction883537CC": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononCreateCommentauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/42461ccf669bff5cf74e51acdeb753b8b1cd7699273fa86b02b3d55b825a6dbf.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Comment/SubscriptiononCreateCommentauth0Function/SubscriptiononCreateCommentauth0Function.AppSyncFunction" + } + }, + "SubscriptiononCreateCommentpostAuth0FunctionSubscriptiononCreateCommentpostAuth0FunctionAppSyncFunction34E6A73D": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononCreateCommentpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Comment/SubscriptiononCreateCommentpostAuth0Function/SubscriptiononCreateCommentpostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnCreateCommentDataResolverFnSubscriptionOnCreateCommentDataResolverFnAppSyncFunction72E30EF8": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnCreateCommentDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Comment/SubscriptionOnCreateCommentDataResolverFn/SubscriptionOnCreateCommentDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononCreateCommentResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "FieldName": "onCreateComment", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononCreateCommentauth0FunctionSubscriptiononCreateCommentauth0FunctionAppSyncFunction883537CC", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononCreateCommentpostAuth0FunctionSubscriptiononCreateCommentpostAuth0FunctionAppSyncFunction34E6A73D", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnCreateCommentDataResolverFnSubscriptionOnCreateCommentDataResolverFnAppSyncFunction72E30EF8", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Comment/subscriptionOnCreateCommentResolver" + } + }, + "SubscriptiononUpdateCommentauth0FunctionSubscriptiononUpdateCommentauth0FunctionAppSyncFunction6F76395C": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononUpdateCommentauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/42461ccf669bff5cf74e51acdeb753b8b1cd7699273fa86b02b3d55b825a6dbf.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Comment/SubscriptiononUpdateCommentauth0Function/SubscriptiononUpdateCommentauth0Function.AppSyncFunction" + } + }, + "SubscriptiononUpdateCommentpostAuth0FunctionSubscriptiononUpdateCommentpostAuth0FunctionAppSyncFunction0EF93814": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononUpdateCommentpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Comment/SubscriptiononUpdateCommentpostAuth0Function/SubscriptiononUpdateCommentpostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnUpdateCommentDataResolverFnSubscriptionOnUpdateCommentDataResolverFnAppSyncFunction6B18681F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnUpdateCommentDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Comment/SubscriptionOnUpdateCommentDataResolverFn/SubscriptionOnUpdateCommentDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononUpdateCommentResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "FieldName": "onUpdateComment", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononUpdateCommentauth0FunctionSubscriptiononUpdateCommentauth0FunctionAppSyncFunction6F76395C", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononUpdateCommentpostAuth0FunctionSubscriptiononUpdateCommentpostAuth0FunctionAppSyncFunction0EF93814", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnUpdateCommentDataResolverFnSubscriptionOnUpdateCommentDataResolverFnAppSyncFunction6B18681F", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Comment/subscriptionOnUpdateCommentResolver" + } + }, + "SubscriptiononDeleteCommentauth0FunctionSubscriptiononDeleteCommentauth0FunctionAppSyncFunctionA85E4D19": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononDeleteCommentauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/42461ccf669bff5cf74e51acdeb753b8b1cd7699273fa86b02b3d55b825a6dbf.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Comment/SubscriptiononDeleteCommentauth0Function/SubscriptiononDeleteCommentauth0Function.AppSyncFunction" + } + }, + "SubscriptiononDeleteCommentpostAuth0FunctionSubscriptiononDeleteCommentpostAuth0FunctionAppSyncFunction67A1094D": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononDeleteCommentpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Comment/SubscriptiononDeleteCommentpostAuth0Function/SubscriptiononDeleteCommentpostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnDeleteCommentDataResolverFnSubscriptionOnDeleteCommentDataResolverFnAppSyncFunctionB17CE9F9": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnDeleteCommentDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Comment/SubscriptionOnDeleteCommentDataResolverFn/SubscriptionOnDeleteCommentDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononDeleteCommentResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "FieldName": "onDeleteComment", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononDeleteCommentauth0FunctionSubscriptiononDeleteCommentauth0FunctionAppSyncFunctionA85E4D19", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononDeleteCommentpostAuth0FunctionSubscriptiononDeleteCommentpostAuth0FunctionAppSyncFunction67A1094D", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnDeleteCommentDataResolverFnSubscriptionOnDeleteCommentDataResolverFnAppSyncFunctionB17CE9F9", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Comment/subscriptionOnDeleteCommentResolver" + } + }, + "QuerycommentsByProductIdauth0FunctionQuerycommentsByProductIdauth0FunctionAppSyncFunction16C8F3B7": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerycommentsByProductIdauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fddbd22b259df4da4b959230f841620be1c5f553f4f3a632bde23b473ddce60a.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Comment/QuerycommentsByProductIdauth0Function/QuerycommentsByProductIdauth0Function.AppSyncFunction" + } + }, + "QuerycommentsByProductIdpostAuth0FunctionQuerycommentsByProductIdpostAuth0FunctionAppSyncFunctionA37AEC4C": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerycommentsByProductIdpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Comment/QuerycommentsByProductIdpostAuth0Function/QuerycommentsByProductIdpostAuth0Function.AppSyncFunction" + } + }, + "QueryCommentsByProductIdDataResolverFnQueryCommentsByProductIdDataResolverFnAppSyncFunction51D11782": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "CommentDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryCommentsByProductIdDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/ecc54c0fe25cd09d1ca80e87254b80f341a73033b231adbd63bf3be5ddb2a79a.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/098c998f215c333f57348ca8912f66057ae6b574fe34013033dc54362ee2372c.vtl" + } + }, + "DependsOn": [ + "CommentDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Comment/QueryCommentsByProductIdDataResolverFn/QueryCommentsByProductIdDataResolverFn.AppSyncFunction" + } + }, + "QuerycommentsByProductIdResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "FieldName": "commentsByProductId", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerycommentsByProductIdauth0FunctionQuerycommentsByProductIdauth0FunctionAppSyncFunction16C8F3B7", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerycommentsByProductIdpostAuth0FunctionQuerycommentsByProductIdpostAuth0FunctionAppSyncFunctionA37AEC4C", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryCommentsByProductIdDataResolverFnQueryCommentsByProductIdDataResolverFnAppSyncFunction51D11782", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"commentsByProductId\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "CommentTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Comment/queryCommentsByProductIdResolver" + } + }, + "CommentAuthorIdDataResolverFnCommentAuthorIdDataResolverFnAppSyncFunction70FFE37E": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "CommentAuthorIdDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/041534e5fd916595f752318f161512d7c7f83b9f2cf32d0f0be381c12253ff68.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/0b623cad229c95b6596975a39c8e10782a443b77ae62114e0e6592efcb147d0a.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Comment/CommentAuthorIdDataResolverFn/CommentAuthorIdDataResolverFn.AppSyncFunction" + } + }, + "CommentauthorIdResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "FieldName": "authorId", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "CommentAuthorIdDataResolverFnCommentAuthorIdDataResolverFnAppSyncFunction70FFE37E", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Comment\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"authorId\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Comment" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Comment/commentAuthorIdResolver" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOwW6DMAyGn6X31GNU230F7bhNsHtlEoNSwEGx06pCvPsEnTrt9PuTP9l/DvlLBtkOr7K3rt8PvoH5g0TJ1Yq2N0XLXxhxJKW4QhHYefWBTUUSUrRkiiQaxj9s+THjVU6zuzGOwTXwjc1ARxQyHkeYqzDc7TDQYnCa5MYW5nLTy6ZExfpx8j+9J7ZriSJw67sUcWv0+3m4UFyMHE4oQirwtoaRAxyT7UnXAsvqfiadkpptXSt2nrvFcHAEZ3m65Dk8v0K2O4v3+5hY/UhQ3fMHIPwRXTYBAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Comment/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Outputs": { + "GetAttCommentTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "CommentTable", + "TableStreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "GetAtt:CommentTable:StreamArn" + ] + ] + } + } + }, + "GetAttCommentTableName": { + "Description": "Your DynamoDB table name.", + "Value": "Comment-hscmwhprkbaljmcpavj3dcztrq-x", + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "GetAtt:CommentTable:Name" + ] + ] + } + } + }, + "amplifyproductcataloge2esandboxde12df9a17dataamplifyDataCommentCommentDataSourceC4EBFBBFName": { + "Value": { + "Fn::GetAtt": [ + "CommentDataSource", + "Name" + ] + } + }, + "amplifyproductcataloge2esandboxde12df9a17dataamplifyDataCommentCommentTableECA430A9TableArn": { + "Value": { + "Fn::GetAtt": [ + "CommentTable", + "TableArn" + ] + } + } + } +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.description.txt b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.outputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.outputs.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.outputs.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.parameters.json new file mode 100644 index 00000000000..72e8b8d580c --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.parameters.json @@ -0,0 +1,30 @@ +[ + { + "ParameterKey": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref", + "ParameterValue": "amplify-productcat2604142-amplifyAuthauthenticatedU-FTyAOUWtFeJb" + }, + { + "ParameterKey": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataCommentNestedStackCommentNestedStackResource258A5736Outputsamplifyproductcataloge2esandboxde12df9a17dataamplifyDataCommentCommentTableECA430A9TableArn", + "ParameterValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Comment-hscmwhprkbaljmcpavj3dcztrq-x" + }, + { + "ParameterKey": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref", + "ParameterValue": "amplify-productcat2604142-amplifyAuthunauthenticate-OzRPKugSY82W" + }, + { + "ParameterKey": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId", + "ParameterValue": "e5folpqnrzbzpbark3e3agy5ly" + }, + { + "ParameterKey": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef", + "ParameterValue": "us-east-1:ec121e86-e0d7-4f59-beaf-535182dac9c0" + }, + { + "ParameterKey": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataCommentNestedStackCommentNestedStackResource258A5736Outputsamplifyproductcataloge2esandboxde12df9a17dataamplifyDataCommentCommentDataSourceC4EBFBBFName", + "ParameterValue": "CommentTable" + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.template.json new file mode 100644 index 00000000000..1189b4a1609 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.template.json @@ -0,0 +1,446 @@ +{ + "Resources": { + "Productcommentsauth0FunctionProductcommentsauth0FunctionAppSyncFunction815DC611": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "Productcommentsauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/19d692f23f76a01898e4b86d8c1a52b7fffdc5da576d1ced4f1661f7d51a727c.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/ConnectionStack/Productcommentsauth0Function/Productcommentsauth0Function.AppSyncFunction" + } + }, + "ProductCommentsDataResolverFnProductCommentsDataResolverFnAppSyncFunction7365B9B6": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataCommentNestedStackCommentNestedStackResource258A5736Outputsamplifyproductcataloge2esandboxde12df9a17dataamplifyDataCommentCommentDataSourceC4EBFBBFName" + }, + "FunctionVersion": "2018-05-29", + "Name": "ProductCommentsDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/034326f059a57bbe900e3eadfd360f7cc9d6b74f9148c3ebf24d322f09376b5a.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/49e7a1f2fb4c809b82bed6b0242a2a3bcfa2c5276ebd2539ff330fee36f8fe18.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/ConnectionStack/ProductCommentsDataResolverFn/ProductCommentsDataResolverFn.AppSyncFunction" + } + }, + "ProductcommentsResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "FieldName": "comments", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "Productcommentsauth0FunctionProductcommentsauth0FunctionAppSyncFunction815DC611", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "ProductCommentsDataResolverFnProductCommentsDataResolverFnAppSyncFunction7365B9B6", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Product\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"comments\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataCommentNestedStackCommentNestedStackResource258A5736Outputsamplifyproductcataloge2esandboxde12df9a17dataamplifyDataCommentCommentTableECA430A9TableArn" + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Product" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/ConnectionStack/productCommentsResolver" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXMQQ6CQAxA0bO4HyoO0b2QuHQBByB1KKSAHUJnIIZwd4OuXv7mW7DXFNITrpq4ZkhGfsH2JA3UVAHdYHDVetOsRlUKCvcDoxnk0Q0UclQyOE36EQdb0cojigvspfDSchdnPMIUrZSkflxo3nfze1QBO5ZuN+Ibgl7Pi7VwuUF66pU5maMEfhOUf7+QP0CWpwAAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/ConnectionStack/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId": { + "Type": "String" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name": { + "Type": "String" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataCommentNestedStackCommentNestedStackResource258A5736Outputsamplifyproductcataloge2esandboxde12df9a17dataamplifyDataCommentCommentDataSourceC4EBFBBFName": { + "Type": "String" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataCommentNestedStackCommentNestedStackResource258A5736Outputsamplifyproductcataloge2esandboxde12df9a17dataamplifyDataCommentCommentTableECA430A9TableArn": { + "Type": "String" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref": { + "Type": "String" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref": { + "Type": "String" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef": { + "Type": "String" + } + } +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.description.txt b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.description.txt new file mode 100644 index 00000000000..6b3d983ba60 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.description.txt @@ -0,0 +1 @@ +An auto-generated nested stack for the @function directive. diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.outputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.outputs.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.outputs.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.parameters.json new file mode 100644 index 00000000000..5dc2148be11 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.parameters.json @@ -0,0 +1,22 @@ +[ + { + "ParameterKey": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref", + "ParameterValue": "amplify-productcat2604142-amplifyAuthauthenticatedU-FTyAOUWtFeJb" + }, + { + "ParameterKey": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref", + "ParameterValue": "amplify-productcat2604142-amplifyAuthunauthenticate-OzRPKugSY82W" + }, + { + "ParameterKey": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId", + "ParameterValue": "e5folpqnrzbzpbark3e3agy5ly" + }, + { + "ParameterKey": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef", + "ParameterValue": "us-east-1:ec121e86-e0d7-4f59-beaf-535182dac9c0" + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.template.json new file mode 100644 index 00000000000..c04b5640bcf --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.template.json @@ -0,0 +1,560 @@ +{ + "Description": "An auto-generated nested stack for the @function directive.", + "AWSTemplateFormatVersion": "2010-09-09", + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + "NONE", + "NONE" + ] + } + ] + }, + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Resources": { + "LowstockproductsGen2QypvnbisslLambdaDataSourceServiceRoleEFE62C84": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/LowstockproductsGen2QypvnbisslLambdaDataSource/ServiceRole/Resource" + } + }, + "LowstockproductsGen2QypvnbisslLambdaDataSourceServiceRoleDefaultPolicyE4ED6B03": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:lowstockproducts-gen2-x", + {} + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:lowstockproducts-gen2-x" + } + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:lowstockproducts-gen2-x", + {} + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:lowstockproducts-gen2-x" + } + ] + }, + ":*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "LowstockproductsGen2QypvnbisslLambdaDataSourceServiceRoleDefaultPolicyE4ED6B03", + "Roles": [ + { + "Ref": "LowstockproductsGen2QypvnbisslLambdaDataSourceServiceRoleEFE62C84" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/LowstockproductsGen2QypvnbisslLambdaDataSource/ServiceRole/DefaultPolicy/Resource" + } + }, + "LowstockproductsGen2QypvnbisslLambdaDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "LambdaConfig": { + "LambdaFunctionArn": { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:lowstockproducts-gen2-x", + {} + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:lowstockproducts-gen2-x" + } + ] + } + }, + "Name": "LowstockproductsGen2QypvnbisslLambdaDataSource", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "LowstockproductsGen2QypvnbisslLambdaDataSourceServiceRoleEFE62C84", + "Arn" + ] + }, + "Type": "AWS_LAMBDA" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/LowstockproductsGen2QypvnbisslLambdaDataSource/Resource" + } + }, + "InvokeLowstockproductsGen2QypvnbisslLambdaDataSourceInvokeLowstockproductsGen2QypvnbisslLambdaDataSourceAppSyncFunctionD8876F84": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "LowstockproductsGen2QypvnbisslLambdaDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "InvokeLowstockproductsGen2QypvnbisslLambdaDataSource", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/bbc7c5408d08a5e351e2944148cb66e6e91adec4c1da961e3e2e82f2a7855d31.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a20e304512b1fde77dc16ed9d5e0ed03817afcab629ce87ef11c99877b7b1e30.vtl" + } + }, + "DependsOn": [ + "LowstockproductsGen2QypvnbisslLambdaDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/InvokeLowstockproductsGen2QypvnbisslLambdaDataSource/InvokeLowstockproductsGen2QypvnbisslLambdaDataSource.AppSyncFunction" + } + }, + "QuerycheckLowStockResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "FieldName": "checkLowStock", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QueryCheckLowStockAuthFNQueryCheckLowStockAuthFNAppSyncFunction691D681D", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "InvokeLowstockproductsGen2QypvnbisslLambdaDataSourceInvokeLowstockproductsGen2QypvnbisslLambdaDataSourceAppSyncFunctionD8876F84", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"checkLowStock\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n{}\n## [End] Stash resolver specific context.. **" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/387d5992f5fc03d05de27289457dcc374a84c42a889acb504aff1031047dde00.vtl" + }, + "TypeName": "Query" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/queryCheckLowStockResolver" + } + }, + "QueryCheckLowStockAuthFNQueryCheckLowStockAuthFNAppSyncFunction691D681D": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryCheckLowStockAuthFN", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/0786554f6c2a0e8f6f26296af55c9fbcab6d462608d0e6622fa29a4767950197.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/QueryCheckLowStockAuthFN/QueryCheckLowStockAuthFN.AppSyncFunction" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOQWvDMAyFf0vvjpalbPc1o6cxRvIDimorQY0jl8huKSH/fdhlh50+vSe9hxpo3mqod3jXyrqp8nyG9Zs0kusj2sm0g7RBHEcOYvCup9XjfHYIxyQ2mwdUMni96kMsrF9l+YkR+5AWSzn/X/3l2iADj2nB0twO0pEGf6NlM4wzrF3w5b7wJ3i2jyyf02Z0f0JVigofGUb3cEh2opj/2Uwx+4gjy7gZCY7goi+3poHXd6h3F2WuliSRZ4LuyV9Irx7YCwEAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Parameters": { + "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId": { + "Type": "String" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref": { + "Type": "String" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref": { + "Type": "String" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef": { + "Type": "String" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name": { + "Type": "String" + } + } +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataProductNestedStackProductNested-x.description.txt b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataProductNestedStackProductNested-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataProductNestedStackProductNested-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataProductNestedStackProductNested-x.outputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataProductNestedStackProductNested-x.outputs.json new file mode 100644 index 00000000000..b458d3ec16a --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataProductNestedStackProductNested-x.outputs.json @@ -0,0 +1,14 @@ +[ + { + "OutputKey": "GetAttProductTableStreamArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Product-hscmwhprkbaljmcpavj3dcztrq-x/stream/2026-04-15T03:53:06.985", + "Description": "Your DynamoDB table StreamArn.", + "ExportName": "e5folpqnrzbzpbark3e3agy5ly:GetAtt:ProductTable:StreamArn" + }, + { + "OutputKey": "GetAttProductTableName", + "OutputValue": "Product-hscmwhprkbaljmcpavj3dcztrq-x", + "Description": "Your DynamoDB table name.", + "ExportName": "e5folpqnrzbzpbark3e3agy5ly:GetAtt:ProductTable:Name" + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataProductNestedStackProductNested-x.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataProductNestedStackProductNested-x.parameters.json new file mode 100644 index 00000000000..b5a4815c702 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataProductNestedStackProductNested-x.parameters.json @@ -0,0 +1,46 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref", + "ParameterValue": "amplify-productcat2604142-amplifyAuthauthenticatedU-FTyAOUWtFeJb" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "true" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref", + "ParameterValue": "amplify-productcat2604142-amplifyAuthunauthenticate-OzRPKugSY82W" + }, + { + "ParameterKey": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId", + "ParameterValue": "e5folpqnrzbzpbark3e3agy5ly" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef", + "ParameterValue": "us-east-1:ec121e86-e0d7-4f59-beaf-535182dac9c0" + }, + { + "ParameterKey": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceA2D569B5Outputsamplifyproductcataloge2esandboxde12df9a17dataamplifyDataAmplifyTableManagerTab2B02BDE4", + "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-productcat2604142-TableManagerCustomProvid-XfT9qQaF59FI" + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataProductNestedStackProductNested-x.template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataProductNestedStackProductNested-x.template.json new file mode 100644 index 00000000000..3f95c94cfec --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataProductNestedStackProductNested-x.template.json @@ -0,0 +1,2037 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceA2D569B5Outputsamplifyproductcataloge2esandboxde12df9a17dataamplifyDataAmplifyTableManagerTab2B02BDE4": { + "Type": "String" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId": { + "Type": "String" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name": { + "Type": "String" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref": { + "Type": "String" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref": { + "Type": "String" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + "NONE", + "NONE" + ] + } + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + }, + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Resources": { + "ProductTable": { + "Type": "Custom::ImportedAmplifyDynamoDBTable", + "Properties": { + "ServiceToken": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceA2D569B5Outputsamplifyproductcataloge2esandboxde12df9a17dataamplifyDataAmplifyTableManagerTab2B02BDE4" + }, + "tableName": "Product-hscmwhprkbaljmcpavj3dcztrq-x", + "attributeDefinitions": [ + { + "attributeName": "id", + "attributeType": "S" + } + ], + "keySchema": [ + { + "attributeName": "id", + "keyType": "HASH" + } + ], + "provisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "sseSpecification": { + "sseEnabled": false + }, + "streamSpecification": { + "streamViewType": "NEW_AND_OLD_IMAGES" + }, + "deletionProtectionEnabled": true, + "allowDestructiveGraphqlSchemaUpdates": true, + "replaceTableUponGsiUpdate": false, + "isImported": true, + "pointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "billingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Product/ProductTable/Default/Default" + } + }, + "ProductIAMRole3DD24A40": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem", + "dynamodb:ConditionCheckItem", + "dynamodb:DescribeTable", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": "Product-hscmwhprkbaljmcpavj3dcztrq-x" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": "Product-hscmwhprkbaljmcpavj3dcztrq-x" + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess" + } + ], + "RoleName": { + "Fn::Join": [ + "", + [ + "ProductIAMRoledb6df0-", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "-NONE" + ] + ] + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Product/ProductIAMRole/Resource" + } + }, + "ProductDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "ProductTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + } + }, + "Name": "ProductTable", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "ProductIAMRole3DD24A40", + "Arn" + ] + }, + "Type": "AMAZON_DYNAMODB" + }, + "DependsOn": [ + "ProductIAMRole3DD24A40" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Product/ProductDataSource/Resource" + } + }, + "QuerygetProductauth0FunctionQuerygetProductauth0FunctionAppSyncFunction11A92755": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetProductauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fc08bc2ef9ba0cfaec6ca6b995100cef403dc3175e48390008f0c858dfc423c5.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Product/QuerygetProductauth0Function/QuerygetProductauth0Function.AppSyncFunction" + } + }, + "QuerygetProductpostAuth0FunctionQuerygetProductpostAuth0FunctionAppSyncFunction4933AC3A": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetProductpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Product/QuerygetProductpostAuth0Function/QuerygetProductpostAuth0Function.AppSyncFunction" + } + }, + "QueryGetProductDataResolverFnQueryGetProductDataResolverFnAppSyncFunction059C4D73": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProductDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryGetProductDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/08f4d557693d96c1a4efba0f9dc91330e4b19772fd5477c156468843e3d9cb5e.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4c6a2d29f01c6091bd1d9afe16e5849d456c96f17c3b215938c8067399532719.vtl" + } + }, + "DependsOn": [ + "ProductDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Product/QueryGetProductDataResolverFn/QueryGetProductDataResolverFn.AppSyncFunction" + } + }, + "GetProductResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "FieldName": "getProduct", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerygetProductauth0FunctionQuerygetProductauth0FunctionAppSyncFunction11A92755", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetProductpostAuth0FunctionQuerygetProductpostAuth0FunctionAppSyncFunction4933AC3A", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryGetProductDataResolverFnQueryGetProductDataResolverFnAppSyncFunction059C4D73", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getProduct\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "ProductTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Product/queryGetProductResolver" + } + }, + "QuerylistProductsauth0FunctionQuerylistProductsauth0FunctionAppSyncFunction621FD020": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerylistProductsauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fc08bc2ef9ba0cfaec6ca6b995100cef403dc3175e48390008f0c858dfc423c5.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Product/QuerylistProductsauth0Function/QuerylistProductsauth0Function.AppSyncFunction" + } + }, + "QuerylistProductspostAuth0FunctionQuerylistProductspostAuth0FunctionAppSyncFunction08A78B52": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerylistProductspostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Product/QuerylistProductspostAuth0Function/QuerylistProductspostAuth0Function.AppSyncFunction" + } + }, + "QueryListProductsDataResolverFnQueryListProductsDataResolverFnAppSyncFunction14032624": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProductDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryListProductsDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9fcbe070ecd3023c5bf5b966fa9584757db9762eef123bad0820bd87591b2174.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/cc01911d0269d4080ea57505dc445dfc315ef7ad85d3d9d4ea1357858bff451d.vtl" + } + }, + "DependsOn": [ + "ProductDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Product/QueryListProductsDataResolverFn/QueryListProductsDataResolverFn.AppSyncFunction" + } + }, + "ListProductResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "FieldName": "listProducts", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerylistProductsauth0FunctionQuerylistProductsauth0FunctionAppSyncFunction621FD020", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerylistProductspostAuth0FunctionQuerylistProductspostAuth0FunctionAppSyncFunction08A78B52", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryListProductsDataResolverFnQueryListProductsDataResolverFnAppSyncFunction14032624", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listProducts\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "ProductTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Product/queryListProductsResolver" + } + }, + "MutationcreateProductinit0FunctionMutationcreateProductinit0FunctionAppSyncFunction23EC383F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateProductinit0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a183ddccbd956316c38ef97177b8f088ef0826f62023323f5ae6053d348ccffc.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Product/MutationcreateProductinit0Function/MutationcreateProductinit0Function.AppSyncFunction" + } + }, + "MutationcreateProductauth0FunctionMutationcreateProductauth0FunctionAppSyncFunctionD9DCDF6C": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateProductauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4a86c52ff2a2d0bd22e0495119880b9fd5ebe148ae6e76030b3ef0274f02e9f6.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Product/MutationcreateProductauth0Function/MutationcreateProductauth0Function.AppSyncFunction" + } + }, + "MutationcreateProductpostAuth0FunctionMutationcreateProductpostAuth0FunctionAppSyncFunctionE9D0520F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateProductpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Product/MutationcreateProductpostAuth0Function/MutationcreateProductpostAuth0Function.AppSyncFunction" + } + }, + "MutationCreateProductDataResolverFnMutationCreateProductDataResolverFnAppSyncFunctionBCF75A20": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProductDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationCreateProductDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/0c112bd477d9e36356f03441397b5d98d3988366e25bc866ececd6587baa69af.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "ProductDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Product/MutationCreateProductDataResolverFn/MutationCreateProductDataResolverFn.AppSyncFunction" + } + }, + "CreateProductResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "FieldName": "createProduct", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationcreateProductinit0FunctionMutationcreateProductinit0FunctionAppSyncFunction23EC383F", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationcreateProductauth0FunctionMutationcreateProductauth0FunctionAppSyncFunctionD9DCDF6C", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationcreateProductpostAuth0FunctionMutationcreateProductpostAuth0FunctionAppSyncFunctionE9D0520F", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationCreateProductDataResolverFnMutationCreateProductDataResolverFnAppSyncFunctionBCF75A20", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createProduct\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "ProductTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Product/mutationCreateProductResolver" + } + }, + "MutationupdateProductinit0FunctionMutationupdateProductinit0FunctionAppSyncFunctionE6639374": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateProductinit0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/06db846fd14e6fc371f22b12b5545ba8e2dbfeda85d8c8d586c71c282166657b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Product/MutationupdateProductinit0Function/MutationupdateProductinit0Function.AppSyncFunction" + } + }, + "MutationupdateProductauth0FunctionMutationupdateProductauth0FunctionAppSyncFunction608283E8": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProductDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateProductauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/28e083cd42813e8939ec8808fd1a712b551c1a0768c8c1d0e8d53bfc38ca1ee2.vtl" + } + }, + "DependsOn": [ + "ProductDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Product/MutationupdateProductauth0Function/MutationupdateProductauth0Function.AppSyncFunction" + } + }, + "MutationupdateProductpostAuth0FunctionMutationupdateProductpostAuth0FunctionAppSyncFunction9B03782C": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateProductpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Product/MutationupdateProductpostAuth0Function/MutationupdateProductpostAuth0Function.AppSyncFunction" + } + }, + "MutationUpdateProductDataResolverFnMutationUpdateProductDataResolverFnAppSyncFunction51653259": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProductDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationUpdateProductDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/474bf0776ec2164a13191d1a0a9e057154931e4918fea5086f49850d02a5371b.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "ProductDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Product/MutationUpdateProductDataResolverFn/MutationUpdateProductDataResolverFn.AppSyncFunction" + } + }, + "UpdateProductResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "FieldName": "updateProduct", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationupdateProductinit0FunctionMutationupdateProductinit0FunctionAppSyncFunctionE6639374", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationupdateProductauth0FunctionMutationupdateProductauth0FunctionAppSyncFunction608283E8", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationupdateProductpostAuth0FunctionMutationupdateProductpostAuth0FunctionAppSyncFunction9B03782C", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationUpdateProductDataResolverFnMutationUpdateProductDataResolverFnAppSyncFunction51653259", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateProduct\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "ProductTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Product/mutationUpdateProductResolver" + } + }, + "MutationdeleteProductauth0FunctionMutationdeleteProductauth0FunctionAppSyncFunction2D3EC535": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProductDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeleteProductauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/084796988d30d89af3a6bf7e3bd77d99aec7a3cccb1c56ac42ca9de77906274e.vtl" + } + }, + "DependsOn": [ + "ProductDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Product/MutationdeleteProductauth0Function/MutationdeleteProductauth0Function.AppSyncFunction" + } + }, + "MutationdeleteProductpostAuth0FunctionMutationdeleteProductpostAuth0FunctionAppSyncFunction3865138D": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeleteProductpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Product/MutationdeleteProductpostAuth0Function/MutationdeleteProductpostAuth0Function.AppSyncFunction" + } + }, + "MutationDeleteProductDataResolverFnMutationDeleteProductDataResolverFnAppSyncFunction06F6C758": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProductDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationDeleteProductDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4f7907d1209a2c9953a0c053df402c634e359546d70c7cc5c2e8e21ea734880f.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "ProductDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Product/MutationDeleteProductDataResolverFn/MutationDeleteProductDataResolverFn.AppSyncFunction" + } + }, + "DeleteProductResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "FieldName": "deleteProduct", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationdeleteProductauth0FunctionMutationdeleteProductauth0FunctionAppSyncFunction2D3EC535", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationdeleteProductpostAuth0FunctionMutationdeleteProductpostAuth0FunctionAppSyncFunction3865138D", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationDeleteProductDataResolverFnMutationDeleteProductDataResolverFnAppSyncFunction06F6C758", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteProduct\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "ProductTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Product/mutationDeleteProductResolver" + } + }, + "SubscriptiononCreateProductauth0FunctionSubscriptiononCreateProductauth0FunctionAppSyncFunction5B0C8398": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononCreateProductauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/48e9848e8fe1466ed0f36f7c3c8edc6b504cccad5b4945e4513ee3ad2192abe0.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Product/SubscriptiononCreateProductauth0Function/SubscriptiononCreateProductauth0Function.AppSyncFunction" + } + }, + "SubscriptiononCreateProductpostAuth0FunctionSubscriptiononCreateProductpostAuth0FunctionAppSyncFunction5CA0C71B": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononCreateProductpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Product/SubscriptiononCreateProductpostAuth0Function/SubscriptiononCreateProductpostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnCreateProductDataResolverFnSubscriptionOnCreateProductDataResolverFnAppSyncFunction5EA5372E": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnCreateProductDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Product/SubscriptionOnCreateProductDataResolverFn/SubscriptionOnCreateProductDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononCreateProductResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "FieldName": "onCreateProduct", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononCreateProductauth0FunctionSubscriptiononCreateProductauth0FunctionAppSyncFunction5B0C8398", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononCreateProductpostAuth0FunctionSubscriptiononCreateProductpostAuth0FunctionAppSyncFunction5CA0C71B", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnCreateProductDataResolverFnSubscriptionOnCreateProductDataResolverFnAppSyncFunction5EA5372E", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateProduct\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Product/subscriptionOnCreateProductResolver" + } + }, + "SubscriptiononUpdateProductauth0FunctionSubscriptiononUpdateProductauth0FunctionAppSyncFunction9C339378": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononUpdateProductauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/48e9848e8fe1466ed0f36f7c3c8edc6b504cccad5b4945e4513ee3ad2192abe0.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Product/SubscriptiononUpdateProductauth0Function/SubscriptiononUpdateProductauth0Function.AppSyncFunction" + } + }, + "SubscriptiononUpdateProductpostAuth0FunctionSubscriptiononUpdateProductpostAuth0FunctionAppSyncFunction328BB63E": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononUpdateProductpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Product/SubscriptiononUpdateProductpostAuth0Function/SubscriptiononUpdateProductpostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnUpdateProductDataResolverFnSubscriptionOnUpdateProductDataResolverFnAppSyncFunction33B56D28": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnUpdateProductDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Product/SubscriptionOnUpdateProductDataResolverFn/SubscriptionOnUpdateProductDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononUpdateProductResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "FieldName": "onUpdateProduct", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononUpdateProductauth0FunctionSubscriptiononUpdateProductauth0FunctionAppSyncFunction9C339378", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononUpdateProductpostAuth0FunctionSubscriptiononUpdateProductpostAuth0FunctionAppSyncFunction328BB63E", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnUpdateProductDataResolverFnSubscriptionOnUpdateProductDataResolverFnAppSyncFunction33B56D28", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateProduct\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Product/subscriptionOnUpdateProductResolver" + } + }, + "SubscriptiononDeleteProductauth0FunctionSubscriptiononDeleteProductauth0FunctionAppSyncFunction3CDB90A3": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononDeleteProductauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/48e9848e8fe1466ed0f36f7c3c8edc6b504cccad5b4945e4513ee3ad2192abe0.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Product/SubscriptiononDeleteProductauth0Function/SubscriptiononDeleteProductauth0Function.AppSyncFunction" + } + }, + "SubscriptiononDeleteProductpostAuth0FunctionSubscriptiononDeleteProductpostAuth0FunctionAppSyncFunctionB9DA21B4": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononDeleteProductpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Product/SubscriptiononDeleteProductpostAuth0Function/SubscriptiononDeleteProductpostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnDeleteProductDataResolverFnSubscriptionOnDeleteProductDataResolverFnAppSyncFunctionA173C409": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnDeleteProductDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Product/SubscriptionOnDeleteProductDataResolverFn/SubscriptionOnDeleteProductDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononDeleteProductResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "FieldName": "onDeleteProduct", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononDeleteProductauth0FunctionSubscriptiononDeleteProductauth0FunctionAppSyncFunction3CDB90A3", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononDeleteProductpostAuth0FunctionSubscriptiononDeleteProductpostAuth0FunctionAppSyncFunctionB9DA21B4", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnDeleteProductDataResolverFnSubscriptionOnDeleteProductDataResolverFnAppSyncFunctionA173C409", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteProduct\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Product/subscriptionOnDeleteProductResolver" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOwW6DMAyGn6X31GNU230F7bhNsHtlEoNSwEGx06pCvPsEnTrt9PuTP9l/DvlLBtkOr7K3rt8PvoH5g0TJ1Yq2N0XLXxhxJKW4QhHYefWBTUUSUrRkiiQaxj9s+THjVU6zuzGOwTXwjc1ARxQyHkeYqzDc7TDQYnCa5MYW5nLTy6ZExfpx8j+9J7ZriSJw67sUcWv0+3m4UFyMHE4oQirwtoaRAxyT7UnXAsvqfiadkpptXSt2nrvFcHAEZ3m65Dk8v0K2O4v3+5hY/UhQ3fMHIPwRXTYBAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Product/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Outputs": { + "GetAttProductTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "ProductTable", + "TableStreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "GetAtt:ProductTable:StreamArn" + ] + ] + } + } + }, + "GetAttProductTableName": { + "Description": "Your DynamoDB table name.", + "Value": "Product-hscmwhprkbaljmcpavj3dcztrq-x", + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "GetAtt:ProductTable:Name" + ] + ] + } + } + } + } +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataUserNestedStackUserNestedStackR-x.description.txt b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataUserNestedStackUserNestedStackR-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataUserNestedStackUserNestedStackR-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataUserNestedStackUserNestedStackR-x.outputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataUserNestedStackUserNestedStackR-x.outputs.json new file mode 100644 index 00000000000..4b275abea98 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataUserNestedStackUserNestedStackR-x.outputs.json @@ -0,0 +1,14 @@ +[ + { + "OutputKey": "GetAttUserTableName", + "OutputValue": "User-hscmwhprkbaljmcpavj3dcztrq-x", + "Description": "Your DynamoDB table name.", + "ExportName": "e5folpqnrzbzpbark3e3agy5ly:GetAtt:UserTable:Name" + }, + { + "OutputKey": "GetAttUserTableStreamArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/User-hscmwhprkbaljmcpavj3dcztrq-x/stream/2026-04-15T03:52:18.290", + "Description": "Your DynamoDB table StreamArn.", + "ExportName": "e5folpqnrzbzpbark3e3agy5ly:GetAtt:UserTable:StreamArn" + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataUserNestedStackUserNestedStackR-x.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataUserNestedStackUserNestedStackR-x.parameters.json new file mode 100644 index 00000000000..b5a4815c702 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataUserNestedStackUserNestedStackR-x.parameters.json @@ -0,0 +1,46 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref", + "ParameterValue": "amplify-productcat2604142-amplifyAuthauthenticatedU-FTyAOUWtFeJb" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "true" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref", + "ParameterValue": "amplify-productcat2604142-amplifyAuthunauthenticate-OzRPKugSY82W" + }, + { + "ParameterKey": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId", + "ParameterValue": "e5folpqnrzbzpbark3e3agy5ly" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef", + "ParameterValue": "us-east-1:ec121e86-e0d7-4f59-beaf-535182dac9c0" + }, + { + "ParameterKey": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceA2D569B5Outputsamplifyproductcataloge2esandboxde12df9a17dataamplifyDataAmplifyTableManagerTab2B02BDE4", + "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-productcat2604142-TableManagerCustomProvid-XfT9qQaF59FI" + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataUserNestedStackUserNestedStackR-x.template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataUserNestedStackUserNestedStackR-x.template.json new file mode 100644 index 00000000000..0715399663a --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-amplifyDataUserNestedStackUserNestedStackR-x.template.json @@ -0,0 +1,2128 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceA2D569B5Outputsamplifyproductcataloge2esandboxde12df9a17dataamplifyDataAmplifyTableManagerTab2B02BDE4": { + "Type": "String" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId": { + "Type": "String" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name": { + "Type": "String" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref": { + "Type": "String" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref": { + "Type": "String" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + "NONE", + "NONE" + ] + } + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + }, + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Resources": { + "UserTable": { + "Type": "Custom::ImportedAmplifyDynamoDBTable", + "Properties": { + "ServiceToken": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceA2D569B5Outputsamplifyproductcataloge2esandboxde12df9a17dataamplifyDataAmplifyTableManagerTab2B02BDE4" + }, + "tableName": "User-hscmwhprkbaljmcpavj3dcztrq-x", + "attributeDefinitions": [ + { + "attributeName": "id", + "attributeType": "S" + } + ], + "keySchema": [ + { + "attributeName": "id", + "keyType": "HASH" + } + ], + "provisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "sseSpecification": { + "sseEnabled": false + }, + "streamSpecification": { + "streamViewType": "NEW_AND_OLD_IMAGES" + }, + "deletionProtectionEnabled": true, + "allowDestructiveGraphqlSchemaUpdates": true, + "replaceTableUponGsiUpdate": false, + "isImported": true, + "pointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "billingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/User/UserTable/Default/Default" + } + }, + "UserIAMRole93CEE926": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem", + "dynamodb:ConditionCheckItem", + "dynamodb:DescribeTable", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": "User-hscmwhprkbaljmcpavj3dcztrq-x" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": "User-hscmwhprkbaljmcpavj3dcztrq-x" + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess" + } + ], + "RoleName": { + "Fn::Join": [ + "", + [ + "UserIAMRole0e5381-", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "-NONE" + ] + ] + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/User/UserIAMRole/Resource" + } + }, + "UserDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "UserTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + } + }, + "Name": "UserTable", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "UserIAMRole93CEE926", + "Arn" + ] + }, + "Type": "AMAZON_DYNAMODB" + }, + "DependsOn": [ + "UserIAMRole93CEE926" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/User/UserDataSource/Resource" + } + }, + "QuerygetUserauth0FunctionQuerygetUserauth0FunctionAppSyncFunction9E6250B0": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetUserauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fbd21e9b79a4a24ea24fbe0658b32e1727d47bf3420300b297bfc012f9ebdb6b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/User/QuerygetUserauth0Function/QuerygetUserauth0Function.AppSyncFunction" + } + }, + "QuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction2792AC60": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetUserpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/User/QuerygetUserpostAuth0Function/QuerygetUserpostAuth0Function.AppSyncFunction" + } + }, + "QueryGetUserDataResolverFnQueryGetUserDataResolverFnAppSyncFunction36A3E4CF": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "UserDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryGetUserDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/08f4d557693d96c1a4efba0f9dc91330e4b19772fd5477c156468843e3d9cb5e.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4c6a2d29f01c6091bd1d9afe16e5849d456c96f17c3b215938c8067399532719.vtl" + } + }, + "DependsOn": [ + "UserDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/User/QueryGetUserDataResolverFn/QueryGetUserDataResolverFn.AppSyncFunction" + } + }, + "GetUserResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "FieldName": "getUser", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerygetUserauth0FunctionQuerygetUserauth0FunctionAppSyncFunction9E6250B0", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction2792AC60", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryGetUserDataResolverFnQueryGetUserDataResolverFnAppSyncFunction36A3E4CF", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getUser\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "UserTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/User/queryGetUserResolver" + } + }, + "QuerylistUsersauth0FunctionQuerylistUsersauth0FunctionAppSyncFunctionA1FF61AB": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerylistUsersauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fbd21e9b79a4a24ea24fbe0658b32e1727d47bf3420300b297bfc012f9ebdb6b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/User/QuerylistUsersauth0Function/QuerylistUsersauth0Function.AppSyncFunction" + } + }, + "QuerylistUserspostAuth0FunctionQuerylistUserspostAuth0FunctionAppSyncFunction37C5583D": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerylistUserspostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/User/QuerylistUserspostAuth0Function/QuerylistUserspostAuth0Function.AppSyncFunction" + } + }, + "QueryListUsersDataResolverFnQueryListUsersDataResolverFnAppSyncFunction83574EBA": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "UserDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryListUsersDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9fcbe070ecd3023c5bf5b966fa9584757db9762eef123bad0820bd87591b2174.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/cc01911d0269d4080ea57505dc445dfc315ef7ad85d3d9d4ea1357858bff451d.vtl" + } + }, + "DependsOn": [ + "UserDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/User/QueryListUsersDataResolverFn/QueryListUsersDataResolverFn.AppSyncFunction" + } + }, + "ListUserResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "FieldName": "listUsers", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerylistUsersauth0FunctionQuerylistUsersauth0FunctionAppSyncFunctionA1FF61AB", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerylistUserspostAuth0FunctionQuerylistUserspostAuth0FunctionAppSyncFunction37C5583D", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryListUsersDataResolverFnQueryListUsersDataResolverFnAppSyncFunction83574EBA", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listUsers\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "UserTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/User/queryListUsersResolver" + } + }, + "MutationcreateUserinit0FunctionMutationcreateUserinit0FunctionAppSyncFunctionEDF87EC6": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateUserinit0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a183ddccbd956316c38ef97177b8f088ef0826f62023323f5ae6053d348ccffc.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/User/MutationcreateUserinit0Function/MutationcreateUserinit0Function.AppSyncFunction" + } + }, + "MutationcreateUserauth0FunctionMutationcreateUserauth0FunctionAppSyncFunction30556A6C": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateUserauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/b79b1328a675b134823edb148ce94c640dc7b73abbedf291dd00a63923559753.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/User/MutationcreateUserauth0Function/MutationcreateUserauth0Function.AppSyncFunction" + } + }, + "MutationcreateUserpostAuth0FunctionMutationcreateUserpostAuth0FunctionAppSyncFunction176E20CB": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateUserpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/User/MutationcreateUserpostAuth0Function/MutationcreateUserpostAuth0Function.AppSyncFunction" + } + }, + "MutationCreateUserDataResolverFnMutationCreateUserDataResolverFnAppSyncFunction22E7974E": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "UserDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationCreateUserDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/2a8e840a12b4e9d428fcf697121b3906e4bbeb570cf4fdd1d361db41eb54d0e9.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "UserDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/User/MutationCreateUserDataResolverFn/MutationCreateUserDataResolverFn.AppSyncFunction" + } + }, + "CreateUserResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "FieldName": "createUser", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationcreateUserinit0FunctionMutationcreateUserinit0FunctionAppSyncFunctionEDF87EC6", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationcreateUserauth0FunctionMutationcreateUserauth0FunctionAppSyncFunction30556A6C", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationcreateUserpostAuth0FunctionMutationcreateUserpostAuth0FunctionAppSyncFunction176E20CB", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationCreateUserDataResolverFnMutationCreateUserDataResolverFnAppSyncFunction22E7974E", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createUser\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "UserTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/User/mutationCreateUserResolver" + } + }, + "MutationupdateUserinit0FunctionMutationupdateUserinit0FunctionAppSyncFunctionC2E8A924": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateUserinit0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/06db846fd14e6fc371f22b12b5545ba8e2dbfeda85d8c8d586c71c282166657b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/User/MutationupdateUserinit0Function/MutationupdateUserinit0Function.AppSyncFunction" + } + }, + "MutationupdateUserauth0FunctionMutationupdateUserauth0FunctionAppSyncFunctionDF95DA65": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "UserDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateUserauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/eac36e6c831f967791298d7536d76dfe1f66e488e6c8af6e79bc9ee04643c3c1.vtl" + } + }, + "DependsOn": [ + "UserDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/User/MutationupdateUserauth0Function/MutationupdateUserauth0Function.AppSyncFunction" + } + }, + "MutationupdateUserpostAuth0FunctionMutationupdateUserpostAuth0FunctionAppSyncFunctionD4B80000": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateUserpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/User/MutationupdateUserpostAuth0Function/MutationupdateUserpostAuth0Function.AppSyncFunction" + } + }, + "MutationUpdateUserDataResolverFnMutationUpdateUserDataResolverFnAppSyncFunction6ADF3910": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "UserDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationUpdateUserDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/474bf0776ec2164a13191d1a0a9e057154931e4918fea5086f49850d02a5371b.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "UserDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/User/MutationUpdateUserDataResolverFn/MutationUpdateUserDataResolverFn.AppSyncFunction" + } + }, + "UpdateUserResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "FieldName": "updateUser", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationupdateUserinit0FunctionMutationupdateUserinit0FunctionAppSyncFunctionC2E8A924", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationupdateUserauth0FunctionMutationupdateUserauth0FunctionAppSyncFunctionDF95DA65", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationupdateUserpostAuth0FunctionMutationupdateUserpostAuth0FunctionAppSyncFunctionD4B80000", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationUpdateUserDataResolverFnMutationUpdateUserDataResolverFnAppSyncFunction6ADF3910", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateUser\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "UserTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/User/mutationUpdateUserResolver" + } + }, + "MutationdeleteUserauth0FunctionMutationdeleteUserauth0FunctionAppSyncFunction9B900ACD": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "UserDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeleteUserauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4bbc6340e5b05716be1bba2764290bf6c01cdf7656f240252a984bb92ae3ff83.vtl" + } + }, + "DependsOn": [ + "UserDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/User/MutationdeleteUserauth0Function/MutationdeleteUserauth0Function.AppSyncFunction" + } + }, + "MutationdeleteUserpostAuth0FunctionMutationdeleteUserpostAuth0FunctionAppSyncFunction9B804910": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeleteUserpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/User/MutationdeleteUserpostAuth0Function/MutationdeleteUserpostAuth0Function.AppSyncFunction" + } + }, + "MutationDeleteUserDataResolverFnMutationDeleteUserDataResolverFnAppSyncFunction0B4F366A": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "UserDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationDeleteUserDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4f7907d1209a2c9953a0c053df402c634e359546d70c7cc5c2e8e21ea734880f.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "UserDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/User/MutationDeleteUserDataResolverFn/MutationDeleteUserDataResolverFn.AppSyncFunction" + } + }, + "DeleteUserResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "FieldName": "deleteUser", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationdeleteUserauth0FunctionMutationdeleteUserauth0FunctionAppSyncFunction9B900ACD", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationdeleteUserpostAuth0FunctionMutationdeleteUserpostAuth0FunctionAppSyncFunction9B804910", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationDeleteUserDataResolverFnMutationDeleteUserDataResolverFnAppSyncFunction0B4F366A", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteUser\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "UserTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/User/mutationDeleteUserResolver" + } + }, + "SubscriptiononCreateUserauth0FunctionSubscriptiononCreateUserauth0FunctionAppSyncFunctionE9B4721A": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononCreateUserauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/28a4bf55c2e7814ffcc0bed87dda3c7fbc1362917c2ab2ab5f93cfae10ea8f41.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/User/SubscriptiononCreateUserauth0Function/SubscriptiononCreateUserauth0Function.AppSyncFunction" + } + }, + "SubscriptiononCreateUserpostAuth0FunctionSubscriptiononCreateUserpostAuth0FunctionAppSyncFunction62AE12DA": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononCreateUserpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/User/SubscriptiononCreateUserpostAuth0Function/SubscriptiononCreateUserpostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnCreateUserDataResolverFnSubscriptionOnCreateUserDataResolverFnAppSyncFunction23B2F1B9": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnCreateUserDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/User/SubscriptionOnCreateUserDataResolverFn/SubscriptionOnCreateUserDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononCreateUserResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "FieldName": "onCreateUser", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononCreateUserauth0FunctionSubscriptiononCreateUserauth0FunctionAppSyncFunctionE9B4721A", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononCreateUserpostAuth0FunctionSubscriptiononCreateUserpostAuth0FunctionAppSyncFunction62AE12DA", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnCreateUserDataResolverFnSubscriptionOnCreateUserDataResolverFnAppSyncFunction23B2F1B9", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateUser\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/User/subscriptionOnCreateUserResolver" + } + }, + "SubscriptiononUpdateUserauth0FunctionSubscriptiononUpdateUserauth0FunctionAppSyncFunction78530C9F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononUpdateUserauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/28a4bf55c2e7814ffcc0bed87dda3c7fbc1362917c2ab2ab5f93cfae10ea8f41.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/User/SubscriptiononUpdateUserauth0Function/SubscriptiononUpdateUserauth0Function.AppSyncFunction" + } + }, + "SubscriptiononUpdateUserpostAuth0FunctionSubscriptiononUpdateUserpostAuth0FunctionAppSyncFunctionF3EF85D1": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononUpdateUserpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/User/SubscriptiononUpdateUserpostAuth0Function/SubscriptiononUpdateUserpostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnUpdateUserDataResolverFnSubscriptionOnUpdateUserDataResolverFnAppSyncFunction93FA5DF6": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnUpdateUserDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/User/SubscriptionOnUpdateUserDataResolverFn/SubscriptionOnUpdateUserDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononUpdateUserResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "FieldName": "onUpdateUser", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononUpdateUserauth0FunctionSubscriptiononUpdateUserauth0FunctionAppSyncFunction78530C9F", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononUpdateUserpostAuth0FunctionSubscriptiononUpdateUserpostAuth0FunctionAppSyncFunctionF3EF85D1", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnUpdateUserDataResolverFnSubscriptionOnUpdateUserDataResolverFnAppSyncFunction93FA5DF6", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateUser\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/User/subscriptionOnUpdateUserResolver" + } + }, + "SubscriptiononDeleteUserauth0FunctionSubscriptiononDeleteUserauth0FunctionAppSyncFunction0C5B7186": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononDeleteUserauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/28a4bf55c2e7814ffcc0bed87dda3c7fbc1362917c2ab2ab5f93cfae10ea8f41.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/User/SubscriptiononDeleteUserauth0Function/SubscriptiononDeleteUserauth0Function.AppSyncFunction" + } + }, + "SubscriptiononDeleteUserpostAuth0FunctionSubscriptiononDeleteUserpostAuth0FunctionAppSyncFunction24A5E815": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononDeleteUserpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/User/SubscriptiononDeleteUserpostAuth0Function/SubscriptiononDeleteUserpostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnDeleteUserDataResolverFnSubscriptionOnDeleteUserDataResolverFnAppSyncFunction2BEB0972": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnDeleteUserDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/User/SubscriptionOnDeleteUserDataResolverFn/SubscriptionOnDeleteUserDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononDeleteUserResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "FieldName": "onDeleteUser", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononDeleteUserauth0FunctionSubscriptiononDeleteUserauth0FunctionAppSyncFunction0C5B7186", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononDeleteUserpostAuth0FunctionSubscriptiononDeleteUserpostAuth0FunctionAppSyncFunction24A5E815", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnDeleteUserDataResolverFnSubscriptionOnDeleteUserDataResolverFnAppSyncFunction2BEB0972", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteUser\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/User/subscriptionOnDeleteUserResolver" + } + }, + "UserIdDataResolverFnUserIdDataResolverFnAppSyncFunction9936DA1E": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "UserIdDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/041534e5fd916595f752318f161512d7c7f83b9f2cf32d0f0be381c12253ff68.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/16a1c0c1ac88deddf57fba8864075da6242bd5dd6dc3e0209246c76a0626dfee.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/User/UserIdDataResolverFn/UserIdDataResolverFn.AppSyncFunction" + } + }, + "UseridResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "FieldName": "id", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "UserIdDataResolverFnUserIdDataResolverFnAppSyncFunction9936DA1E", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"User\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"id\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "User" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/User/userIdResolver" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOwW6DMAyGn6X31GNU230F7bhNsHtlEoNSwEGx06pCvPsEnTrt9PuTP9l/DvlLBtkOr7K3rt8PvoH5g0TJ1Yq2N0XLXxhxJKW4QhHYefWBTUUSUrRkiiQaxj9s+THjVU6zuzGOwTXwjc1ARxQyHkeYqzDc7TDQYnCa5MYW5nLTy6ZExfpx8j+9J7ZriSJw67sUcWv0+3m4UFyMHE4oQirwtoaRAxyT7UnXAsvqfiadkpptXSt2nrvFcHAEZ3m65Dk8v0K2O4v3+5hY/UhQ3fMHIPwRXTYBAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/User/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Outputs": { + "GetAttUserTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "UserTable", + "TableStreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "GetAtt:UserTable:StreamArn" + ] + ] + } + } + }, + "GetAttUserTableName": { + "Description": "Your DynamoDB table name.", + "Value": "User-hscmwhprkbaljmcpavj3dcztrq-x", + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "GetAtt:UserTable:Name" + ] + ] + } + } + } + } +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-auth179371D7-x.description.txt b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-auth179371D7-x.description.txt new file mode 100644 index 00000000000..b66e3e0b9e2 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-auth179371D7-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"AmplifySandbox","createdWith":"1.11.2","stackType":"auth-Cognito","metadata":{}} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-auth179371D7-x.outputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-auth179371D7-x.outputs.json new file mode 100644 index 00000000000..6e5d7f3cf6c --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-auth179371D7-x.outputs.json @@ -0,0 +1,22 @@ +[ + { + "OutputKey": "amplifyproductcataloge2esandboxde12df9a17authamplifyAuthUserPool28A7874FRef", + "OutputValue": "us-east-1_tRO9BruHe" + }, + { + "OutputKey": "amplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref", + "OutputValue": "amplify-productcat2604142-amplifyAuthauthenticatedU-FTyAOUWtFeJb" + }, + { + "OutputKey": "amplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef", + "OutputValue": "us-east-1:ec121e86-e0d7-4f59-beaf-535182dac9c0" + }, + { + "OutputKey": "amplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref", + "OutputValue": "amplify-productcat2604142-amplifyAuthunauthenticate-OzRPKugSY82W" + }, + { + "OutputKey": "amplifyproductcataloge2esandboxde12df9a17authamplifyAuthUserPoolAppClient577E72DBRef", + "OutputValue": "27q6muiijfov65g35g37t9bldv" + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-auth179371D7-x.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-auth179371D7-x.parameters.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-auth179371D7-x.parameters.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-auth179371D7-x.template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-auth179371D7-x.template.json new file mode 100644 index 00000000000..40c636eaa37 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-auth179371D7-x.template.json @@ -0,0 +1,673 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", + "Resources": { + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AccountRecoverySetting": { + "RecoveryMechanisms": [ + { + "Name": "verified_email", + "Priority": 1 + } + ] + }, + "AdminCreateUserConfig": { + "AllowAdminCreateUserOnly": false + }, + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": 8, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false, + "TemporaryPasswordValidityDays": 7 + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "SmsVerificationMessage": "The verification code to your new account is {####}", + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolTags": { + "amplify:deployment-type": "sandbox", + "amplify:friendly-name": "amplifyAuth", + "created-by": "amplify" + }, + "UsernameAttributes": [ + "email" + ], + "UsernameConfiguration": { + "CaseSensitive": false + }, + "VerificationMessageTemplate": { + "DefaultEmailOption": "CONFIRM_WITH_CODE", + "EmailMessage": "Your verification code is {####}", + "EmailSubject": "Your verification code", + "SmsMessage": "The verification code to your new account is {####}" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/auth/amplifyAuth/UserPool/Resource" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 43200, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": { + "Ref": "amplifyAuthUserPool4BA7F805" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlows": [ + "code" + ], + "AllowedOAuthFlowsUserPoolClient": true, + "AllowedOAuthScopes": [ + "profile", + "phone", + "email", + "openid", + "aws.cognito.signin.user.admin" + ], + "CallbackURLs": [ + "https://example.com" + ], + "ExplicitAuthFlows": [ + "ALLOW_CUSTOM_AUTH", + "ALLOW_USER_SRP_AUTH", + "ALLOW_REFRESH_TOKEN_AUTH" + ], + "PreventUserExistenceErrors": "ENABLED", + "SupportedIdentityProviders": [ + "COGNITO" + ], + "UserPoolId": { + "Ref": "amplifyAuthUserPool4BA7F805" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/auth/amplifyAuth/UserPoolAppClient/Resource" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": false, + "CognitoIdentityProviders": [ + { + "ClientId": { + "Ref": "amplifyAuthUserPoolAppClient2626C6F8" + }, + "ProviderName": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + { + "Ref": "amplifyAuthUserPool4BA7F805" + } + ] + ] + } + } + ], + "IdentityPoolTags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "SupportedLoginProviders": {} + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/auth/amplifyAuth/IdentityPool" + } + }, + "amplifyAuthauthenticatedUserRoleD8DA3689": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/auth/amplifyAuth/authenticatedUserRole/Resource" + } + }, + "amplifyAuthauthenticatedUserRoleDefaultPolicy82E52873": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "appsync:GraphQL", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:appsync:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":apis/hscmwhprkbaljmcpavj3dcztrq/*" + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "amplifyAuthauthenticatedUserRoleDefaultPolicy82E52873", + "Roles": [ + { + "Ref": "amplifyAuthauthenticatedUserRoleD8DA3689" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/auth/amplifyAuth/authenticatedUserRole/DefaultPolicy/Resource" + } + }, + "amplifyAuthunauthenticatedUserRole2B524D9E": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "unauthenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/auth/amplifyAuth/unauthenticatedUserRole/Resource" + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + }, + "RoleMappings": { + "UserPoolWebClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + { + "Ref": "amplifyAuthUserPool4BA7F805" + }, + ":", + { + "Ref": "amplifyAuthUserPoolAppClient2626C6F8" + } + ] + ] + }, + "Type": "Token" + } + }, + "Roles": { + "unauthenticated": { + "Fn::GetAtt": [ + "amplifyAuthunauthenticatedUserRole2B524D9E", + "Arn" + ] + }, + "authenticated": { + "Fn::GetAtt": [ + "amplifyAuthauthenticatedUserRoleD8DA3689", + "Arn" + ] + } + } + }, + "DependsOn": [ + "amplifyAuthIdentityPool3FDE84CC", + "amplifyAuthUserPoolAppClient2626C6F8" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/auth/amplifyAuth/IdentityPoolRoleAttachment" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/02Lyw6CMBBFv4V9GbGJ7g0rN4ZgXJvajjpQ2oSOEtL03w0SlNU99yVB7gooMjWEXJs2t3SDeMLAaM6sdCvUEK5R+4cj9hAvAfvKeyvKu/vxAqUldLyu/snRoGPicTmvfe0tHpiVfnboOAlSHcQpnIZfrbwlPU52ppSScN4gNGHzlhK2eyiyJhDl/csxdQj1rB8nXeTo3wAAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/auth/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifyproductcataloge2esandboxde12df9a17authamplifyAuthUserPool28A7874FRef": { + "Value": { + "Ref": "amplifyAuthUserPool4BA7F805" + } + }, + "amplifyproductcataloge2esandboxde12df9a17authamplifyAuthUserPoolAppClient577E72DBRef": { + "Value": { + "Ref": "amplifyAuthUserPoolAppClient2626C6F8" + } + }, + "amplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef": { + "Value": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } + }, + "amplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref": { + "Value": { + "Ref": "amplifyAuthauthenticatedUserRoleD8DA3689" + } + }, + "amplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref": { + "Value": { + "Ref": "amplifyAuthunauthenticatedUserRole2B524D9E" + } + } + } +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-data7552DF31-x.description.txt b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-data7552DF31-x.description.txt new file mode 100644 index 00000000000..e1c50802cb1 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-data7552DF31-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"AmplifySandbox","createdWith":"1.21.2","stackType":"api-AppSync","metadata":{"dataSources":"dynamodb","authorizationModes":"amazon_cognito_identity_pools,amazon_cognito_user_pools,api_key,aws_iam","customOperations":"queries"}} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-data7552DF31-x.outputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-data7552DF31-x.outputs.json new file mode 100644 index 00000000000..d62487ccdd6 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-data7552DF31-x.outputs.json @@ -0,0 +1,18 @@ +[ + { + "OutputKey": "amplifyproductcataloge2esandboxde12df9a17dataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiBE7E87FF7DestinationBucketArn", + "OutputValue": "arn:aws:s3:::amplify-productcat2604142-amplifydataamplifycodege-1n47heiknjee" + }, + { + "OutputKey": "amplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPIDefaultApiKey877BF6C7ApiKey", + "OutputValue": "da2-fakeapikey00000000000000" + }, + { + "OutputKey": "amplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId", + "OutputValue": "e5folpqnrzbzpbark3e3agy5ly" + }, + { + "OutputKey": "amplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1GraphQLUrl", + "OutputValue": "https://vp2rn7qbp5fbrblcdmbrcmjka4.appsync-api.us-east-1.amazonaws.com/graphql" + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-data7552DF31-x.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-data7552DF31-x.parameters.json new file mode 100644 index 00000000000..970aba1fe25 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-data7552DF31-x.parameters.json @@ -0,0 +1,38 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthUserPool28A7874FRef", + "ParameterValue": "us-east-1_tRO9BruHe" + }, + { + "ParameterKey": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref", + "ParameterValue": "amplify-productcat2604142-amplifyAuthauthenticatedU-FTyAOUWtFeJb" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "true" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref", + "ParameterValue": "amplify-productcat2604142-amplifyAuthunauthenticate-OzRPKugSY82W" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef", + "ParameterValue": "us-east-1:ec121e86-e0d7-4f59-beaf-535182dac9c0" + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-data7552DF31-x.template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-data7552DF31-x.template.json new file mode 100644 index 00000000000..0c025811c58 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-data7552DF31-x.template.json @@ -0,0 +1,2198 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.21.2\",\"stackType\":\"api-AppSync\",\"metadata\":{\"dataSources\":\"dynamodb\",\"authorizationModes\":\"amazon_cognito_identity_pools,amazon_cognito_user_pools,api_key,aws_iam\",\"customOperations\":\"queries\"}}", + "Resources": { + "amplifyDataGraphQLAPI42A6FA33": { + "Type": "AWS::AppSync::GraphQLApi", + "Properties": { + "AdditionalAuthenticationProviders": [ + { + "AuthenticationType": "API_KEY" + }, + { + "AuthenticationType": "AMAZON_COGNITO_USER_POOLS", + "UserPoolConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "UserPoolId": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthUserPool28A7874FRef" + } + } + } + ], + "AuthenticationType": "AWS_IAM", + "Name": "amplifyData", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/GraphQLAPI/Resource" + } + }, + "amplifyDataGraphQLAPITransformerSchemaFF50A789": { + "Type": "AWS::AppSync::GraphQLSchema", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "DefinitionS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/17703bb6fe87457f325daa687db3f3cf32d35fd479b3cb0c7a264a0135f94f98.graphql" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/GraphQLAPI/TransformerSchema" + } + }, + "amplifyDataGraphQLAPIDefaultApiKey1C8ED374": { + "Type": "AWS::AppSync::ApiKey", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "Description": "graphqlapi", + "Expires": 1776830768 + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/GraphQLAPI/DefaultApiKey" + } + }, + "amplifyDataGraphQLAPINONEDS684BF699": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "Name": "NONE_DS", + "Type": "NONE" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/GraphQLAPI/NONE_DS/Resource" + } + }, + "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/4130c753b591b3e4349fd6aa26a18a08eaf3f351e015ea04fe79cfb964580571.json" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/AmplifyTableManager.NestedStack/AmplifyTableManager.NestedStackResource", + "aws:asset:path": "amplifyproductcataloge2esandboxde12df9a17dataamplifyDataAmplifyTableManagerD41D434F.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "amplifyDataUserNestedStackUserNestedStackResource9488907F": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceA2D569B5Outputsamplifyproductcataloge2esandboxde12df9a17dataamplifyDataAmplifyTableManagerTab2B02BDE4": { + "Fn::GetAtt": [ + "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833", + "Outputs.amplifyproductcataloge2esandboxde12df9a17dataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEventF12E7F98Arn" + ] + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef" + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/073962d1333072abc1140546dd47bec571f494e22dcae8e02536cd30bfb712ad.json" + ] + ] + } + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/User.NestedStack/User.NestedStackResource", + "aws:asset:path": "amplifyproductcataloge2esandboxde12df9a17dataamplifyDataUserAF040B3B.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "amplifyDataProductNestedStackProductNestedStackResource648F4D75": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceA2D569B5Outputsamplifyproductcataloge2esandboxde12df9a17dataamplifyDataAmplifyTableManagerTab2B02BDE4": { + "Fn::GetAtt": [ + "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833", + "Outputs.amplifyproductcataloge2esandboxde12df9a17dataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEventF12E7F98Arn" + ] + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef" + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/96f56139493bb534999cd8c8944d7eaa02673ad48903d9bd17119d6400a77d26.json" + ] + ] + } + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Product.NestedStack/Product.NestedStackResource", + "aws:asset:path": "amplifyproductcataloge2esandboxde12df9a17dataamplifyDataProduct8A62F072.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "amplifyDataCommentNestedStackCommentNestedStackResource87C7BB35": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceA2D569B5Outputsamplifyproductcataloge2esandboxde12df9a17dataamplifyDataAmplifyTableManagerTab2B02BDE4": { + "Fn::GetAtt": [ + "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833", + "Outputs.amplifyproductcataloge2esandboxde12df9a17dataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEventF12E7F98Arn" + ] + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef" + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/ff05f2c27329ee8d16dd8f20710853d5ae09ea28bd7e85b5c442abe16b4d2845.json" + ] + ] + } + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/Comment.NestedStack/Comment.NestedStackResource", + "aws:asset:path": "amplifyproductcataloge2esandboxde12df9a17dataamplifyDataComment804479C6.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "amplifyDataFunctionDirectiveStackNestedStackFunctionDirectiveStackNestedStackResource1246A302": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/f576a291735354c4ddeb200d086b50fe12fb17ad3285d2bd64122d755361ac1d.json" + ] + ] + } + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack.NestedStack/FunctionDirectiveStack.NestedStackResource", + "aws:asset:path": "amplifyproductcataloge2esandboxde12df9a17dataamplifyDataFunctionDirectiveStackDC56B79A.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "amplifyDataConnectionStackNestedStackConnectionStackNestedStackResourceAB0F312B": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPINONEDS24528D33Name": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataCommentNestedStackCommentNestedStackResource258A5736Outputsamplifyproductcataloge2esandboxde12df9a17dataamplifyDataCommentCommentDataSourceC4EBFBBFName": { + "Fn::GetAtt": [ + "amplifyDataCommentNestedStackCommentNestedStackResource87C7BB35", + "Outputs.amplifyproductcataloge2esandboxde12df9a17dataamplifyDataCommentCommentDataSourceC4EBFBBFName" + ] + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17dataamplifyDataCommentNestedStackCommentNestedStackResource258A5736Outputsamplifyproductcataloge2esandboxde12df9a17dataamplifyDataCommentCommentTableECA430A9TableArn": { + "Fn::GetAtt": [ + "amplifyDataCommentNestedStackCommentNestedStackResource87C7BB35", + "Outputs.amplifyproductcataloge2esandboxde12df9a17dataamplifyDataCommentCommentTableECA430A9TableArn" + ] + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef" + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/0688a824fa63db4b00291fca880e58fa4c9c0a08ba77769480746d0e8ef8d524.json" + ] + ] + } + }, + "DependsOn": [ + "amplifyDataCommentNestedStackCommentNestedStackResource87C7BB35", + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/ConnectionStack.NestedStack/ConnectionStack.NestedStackResource", + "aws:asset:path": "amplifyproductcataloge2esandboxde12df9a17dataamplifyDataConnectionStackFAF003F2.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "amplifyDataAuthRolePolicy01567A5654": { + "Type": "AWS::IAM::ManagedPolicy", + "Properties": { + "Description": "", + "Path": "/", + "PolicyDocument": { + "Statement": [ + { + "Action": "appsync:GraphQL", + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/*", + { + "apiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "typeName": "User" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/*", + { + "apiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "typeName": "Product" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/*", + { + "apiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "typeName": "Comment" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "typeName": "Query", + "fieldName": "checkLowStock" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "typeName": "Query", + "fieldName": "getUser" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "typeName": "Query", + "fieldName": "listUsers" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "typeName": "Mutation", + "fieldName": "createUser" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "typeName": "Mutation", + "fieldName": "updateUser" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "typeName": "Mutation", + "fieldName": "deleteUser" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "typeName": "Subscription", + "fieldName": "onCreateUser" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "typeName": "Subscription", + "fieldName": "onUpdateUser" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "typeName": "Subscription", + "fieldName": "onDeleteUser" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "typeName": "Query", + "fieldName": "getProduct" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "typeName": "Query", + "fieldName": "listProducts" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "typeName": "Mutation", + "fieldName": "createProduct" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "typeName": "Mutation", + "fieldName": "updateProduct" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "typeName": "Mutation", + "fieldName": "deleteProduct" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "typeName": "Subscription", + "fieldName": "onCreateProduct" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "typeName": "Subscription", + "fieldName": "onUpdateProduct" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "typeName": "Subscription", + "fieldName": "onDeleteProduct" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/*", + { + "apiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "typeName": "ModelCommentConnection" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "typeName": "Query", + "fieldName": "getComment" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "typeName": "Query", + "fieldName": "listComments" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "typeName": "Mutation", + "fieldName": "createComment" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "typeName": "Mutation", + "fieldName": "updateComment" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "typeName": "Mutation", + "fieldName": "deleteComment" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "typeName": "Query", + "fieldName": "commentsByProductId" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "typeName": "Subscription", + "fieldName": "onCreateComment" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "typeName": "Subscription", + "fieldName": "onUpdateComment" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "typeName": "Subscription", + "fieldName": "onDeleteComment" + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "Roles": [ + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/AuthRolePolicy01/Resource" + } + }, + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA": { + "Type": "AWS::S3::Bucket", + "Properties": { + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD" + ], + "AllowedOrigins": [ + { + "Fn::Join": [ + "", + [ + "https://", + { + "Ref": "AWS::Region" + }, + ".console.aws.amazon.com/amplify" + ] + ] + } + ] + } + ] + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "aws-cdk:cr-owned:9d50d713", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/Resource" + } + }, + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucketPolicyF1C1C548": { + "Type": "AWS::S3::BucketPolicy", + "Properties": { + "Bucket": { + "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" + }, + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "s3:PutBucketPolicy", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*" + ], + "Effect": "Allow", + "Principal": { + "AWS": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + } + }, + "Resource": [ + { + "Fn::GetAtt": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/Policy/Resource" + } + }, + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucketAutoDeleteObjectsCustomResource437F26F5": { + "Type": "Custom::S3AutoDeleteObjects", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "Arn" + ] + }, + "BucketName": { + "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" + } + }, + "DependsOn": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucketPolicyF1C1C548" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/AutoDeleteObjectsCustomResource/Default" + } + }, + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentAwsCliLayerE322F905": { + "Type": "AWS::Lambda::LayerVersion", + "Properties": { + "Content": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "e2659170a0721541efa761a8d5d04d5e36cbbf691c4b15a9053002b7c825055d.zip" + }, + "Description": "/opt/awscli/aws" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsDeployment/AwsCliLayer/Resource", + "aws:asset:path": "asset.e2659170a0721541efa761a8d5d04d5e36cbbf691c4b15a9053002b7c825055d.zip", + "aws:asset:is-bundled": false, + "aws:asset:property": "Content" + } + }, + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB21775929": { + "Type": "Custom::CDKBucketDeployment", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBC5D8AB21", + "Arn" + ] + }, + "SourceBucketNames": [ + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + } + ], + "SourceObjectKeys": [ + "823de282b641aab4799dcde4fbbeb66b540bb216a8aa93a4eab8bf15784d32fe.zip" + ], + "SourceMarkers": [ + {} + ], + "DestinationBucketName": { + "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" + }, + "WaitForDistributionInvalidation": true, + "Prune": true, + "OutputObjectKeys": true, + "DestinationBucketArn": { + "Fn::GetAtt": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", + "Arn" + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsDeployment/CustomResource-1536MiB/Default" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ] + }, + "ManagedPolicyArns": [ + { + "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" + }, + "Timeout": 900, + "MemorySize": 128, + "Handler": "index.handler", + "Role": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Description": { + "Fn::Join": [ + "", + [ + "Lambda function for auto-deleting objects in ", + { + "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" + }, + " S3 bucket." + ] + ] + } + }, + "DependsOn": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", + "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", + "aws:asset:property": "Code" + } + }, + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/ServiceRole/Resource" + } + }, + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleDefaultPolicyFF1C635B": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "s3:GetObject*", + "s3:GetBucket*", + "s3:List*" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":s3:::", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + } + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":s3:::", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/*" + ] + ] + } + ] + }, + { + "Action": [ + "s3:GetObject*", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*", + "s3:PutObject", + "s3:PutObjectLegalHold", + "s3:PutObjectRetention", + "s3:PutObjectTagging", + "s3:PutObjectVersionTagging", + "s3:Abort*" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + }, + { + "Action": [ + "s3:GetObject*", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*", + "s3:PutObject", + "s3:PutObjectLegalHold", + "s3:PutObjectRetention", + "s3:PutObjectTagging", + "s3:PutObjectVersionTagging", + "s3:Abort*" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "modelIntrospectionSchemaBucketF566B665", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "modelIntrospectionSchemaBucketF566B665", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleDefaultPolicyFF1C635B", + "Roles": [ + { + "Ref": "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/ServiceRole/DefaultPolicy/Resource" + } + }, + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBC5D8AB21": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "3423a042b818e31c1e34a19d6689ab2e5f9b70fcbe9e71df66f241b20a200bd9.zip" + }, + "Environment": { + "Variables": { + "AWS_CA_BUNDLE": "/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem" + } + }, + "Handler": "index.handler", + "Layers": [ + { + "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentAwsCliLayerE322F905" + } + ], + "MemorySize": 1536, + "Role": { + "Fn::GetAtt": [ + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2", + "Arn" + ] + }, + "Runtime": "python3.13", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 900 + }, + "DependsOn": [ + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleDefaultPolicyFF1C635B", + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/Resource", + "aws:asset:path": "asset.3423a042b818e31c1e34a19d6689ab2e5f9b70fcbe9e71df66f241b20a200bd9", + "aws:asset:is-bundled": false, + "aws:asset:property": "Code" + } + }, + "modelIntrospectionSchemaBucketF566B665": { + "Type": "AWS::S3::Bucket", + "Properties": { + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "aws-cdk:cr-owned:1633825f", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/modelIntrospectionSchemaBucket/Resource" + } + }, + "modelIntrospectionSchemaBucketPolicy4DAB0D15": { + "Type": "AWS::S3::BucketPolicy", + "Properties": { + "Bucket": { + "Ref": "modelIntrospectionSchemaBucketF566B665" + }, + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:*", + "Condition": { + "Bool": { + "aws:SecureTransport": "false" + } + }, + "Effect": "Deny", + "Principal": { + "AWS": "*" + }, + "Resource": [ + { + "Fn::GetAtt": [ + "modelIntrospectionSchemaBucketF566B665", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "modelIntrospectionSchemaBucketF566B665", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + }, + { + "Action": [ + "s3:PutBucketPolicy", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*" + ], + "Effect": "Allow", + "Principal": { + "AWS": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + } + }, + "Resource": [ + { + "Fn::GetAtt": [ + "modelIntrospectionSchemaBucketF566B665", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "modelIntrospectionSchemaBucketF566B665", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/modelIntrospectionSchemaBucket/Policy/Resource" + } + }, + "modelIntrospectionSchemaBucketAutoDeleteObjectsCustomResourceFE57309F": { + "Type": "Custom::S3AutoDeleteObjects", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "Arn" + ] + }, + "BucketName": { + "Ref": "modelIntrospectionSchemaBucketF566B665" + } + }, + "DependsOn": [ + "modelIntrospectionSchemaBucketPolicy4DAB0D15" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/modelIntrospectionSchemaBucket/AutoDeleteObjectsCustomResource/Default" + } + }, + "modelIntrospectionSchemaBucketDeploymentAwsCliLayer13C432F7": { + "Type": "AWS::Lambda::LayerVersion", + "Properties": { + "Content": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "e2659170a0721541efa761a8d5d04d5e36cbbf691c4b15a9053002b7c825055d.zip" + }, + "Description": "/opt/awscli/aws" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/modelIntrospectionSchemaBucketDeployment/AwsCliLayer/Resource", + "aws:asset:path": "asset.e2659170a0721541efa761a8d5d04d5e36cbbf691c4b15a9053002b7c825055d.zip", + "aws:asset:is-bundled": false, + "aws:asset:property": "Content" + } + }, + "modelIntrospectionSchemaBucketDeploymentCustomResource1536MiB104B97EC": { + "Type": "Custom::CDKBucketDeployment", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBC5D8AB21", + "Arn" + ] + }, + "SourceBucketNames": [ + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + } + ], + "SourceObjectKeys": [ + "e7d7d4ab2ee5cfcb8cf875260b730471f85177346350a770a6a49af60aa1d5bc.zip" + ], + "SourceMarkers": [ + {} + ], + "DestinationBucketName": { + "Ref": "modelIntrospectionSchemaBucketF566B665" + }, + "WaitForDistributionInvalidation": true, + "Prune": true, + "OutputObjectKeys": true + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/modelIntrospectionSchemaBucketDeployment/CustomResource-1536MiB/Default" + } + }, + "AMPLIFYDATAGRAPHQLENDPOINTParameter1C2CBB16": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/productcatalog/e2e-sandbox-x/AMPLIFY_DATA_GRAPHQL_ENDPOINT", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "GraphQLUrl" + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/AMPLIFY_DATA_GRAPHQL_ENDPOINTParameter/Resource" + } + }, + "AMPLIFYDATAMODELINTROSPECTIONSCHEMABUCKETNAMEParameter47BF4F44": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/productcatalog/e2e-sandbox-x/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_BUCKET_NAME", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": { + "Ref": "modelIntrospectionSchemaBucketF566B665" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_BUCKET_NAMEParameter/Resource" + } + }, + "AMPLIFYDATAMODELINTROSPECTIONSCHEMAKEYParameterB6AEAE8A": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/productcatalog/e2e-sandbox-x/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_KEY", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": "modelIntrospectionSchema.json" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_KEYParameter/Resource" + } + }, + "AMPLIFYDATADEFAULTNAMEParameterE7C23CC4": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/productcatalog/e2e-sandbox-x/AMPLIFY_DATA_DEFAULT_NAME", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": "amplifyData" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/AMPLIFY_DATA_DEFAULT_NAMEParameter/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/6WSTW/bMAyGf0tzVrQ0xXbYzXWwHtq1WQzsMhQBIzOuEn24It3MEPzfB1lt0o9TsRPJV+KLhyDncv51JmdncKCpqvdTozcy3iIx1hWD2osVku+CQgEHWkdoW+qdkvEqQPvwaIpWXwKhKLduVH7dFK1+VVXqAS0koWj1Nfbi1jtcAEOVTcutO1WDoIt1BCJkkkUKosbW+N6iY3nZqT3y4iik3zJmdWTIabLM2Z84sfqvdpPvk9fTpTnoQo5P9OxadOwXaJDxbrNDxTQZxH913z/TLL3Rqj8x5foTZLmhYmBMQ38O7GPz/SA0WBl/goMG6xPeW2HlzbibMZ4+5WwQBuymBhnLrbuBHsNvDKS9E5V2jUH27kfnFCflmJTbozgIIitjxUG7ZgkBLDKG0f+lGAYx7r9iaLRr0lu+xrIj9vZ4kwnxJc9Qa5OA1nAgZbQsDlQaPTK+8X/nswz+SdcY0hkNwvka5Y6+PM3n8vybnJ3tSOtp6Bxri3KV4z9LiFeHOAMAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthUserPool28A7874FRef": { + "Type": "String" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref": { + "Type": "String" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref": { + "Type": "String" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef": { + "Type": "String" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId": { + "Value": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + } + }, + "amplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1GraphQLUrl": { + "Value": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "GraphQLUrl" + ] + } + }, + "amplifyproductcataloge2esandboxde12df9a17dataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiBE7E87FF7DestinationBucketArn": { + "Value": { + "Fn::GetAtt": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB21775929", + "DestinationBucketArn" + ] + } + }, + "amplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPIDefaultApiKey877BF6C7ApiKey": { + "Value": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPIDefaultApiKey1C8ED374", + "ApiKey" + ] + } + } + } +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-function1351588B-x.description.txt b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-function1351588B-x.description.txt new file mode 100644 index 00000000000..907003893a9 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-function1351588B-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"AmplifySandbox","createdWith":"1.18.0","stackType":"function-Lambda","metadata":{}} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-function1351588B-x.outputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-function1351588B-x.outputs.json new file mode 100644 index 00000000000..1feb3409700 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-function1351588B-x.outputs.json @@ -0,0 +1,14 @@ +[ + { + "OutputKey": "amplifyproductcataloge2esandboxde12df9a17functionS3Trigger1ef46783gen2xlambda81A9091AArn", + "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:S3Trigger1ef46783-gen2-x" + }, + { + "OutputKey": "amplifyproductcataloge2esandboxde12df9a17functionlowstockproductsgen2xlambdaDF5C10EARef", + "OutputValue": "lowstockproducts-gen2-x" + }, + { + "OutputKey": "amplifyproductcataloge2esandboxde12df9a17functionS3Trigger1ef46783gen2xlambda81A9091ARef", + "OutputValue": "S3Trigger1ef46783-gen2-x" + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-function1351588B-x.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-function1351588B-x.parameters.json new file mode 100644 index 00000000000..2171dab8825 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-function1351588B-x.parameters.json @@ -0,0 +1,14 @@ +[ + { + "ParameterKey": "referencetoamplifyproductcataloge2esandboxde12df9a17dataNestedStackdataNestedStackResourceD8EBCEB1Outputsamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId", + "ParameterValue": "e5folpqnrzbzpbark3e3agy5ly" + }, + { + "ParameterKey": "referencetoamplifyproductcataloge2esandboxde12df9a17dataNestedStackdataNestedStackResourceD8EBCEB1Outputsamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPIDefaultApiKey877BF6C7ApiKey", + "ParameterValue": "da2-fakeapikey00000000000000" + }, + { + "ParameterKey": "referencetoamplifyproductcataloge2esandboxde12df9a17dataNestedStackdataNestedStackResourceD8EBCEB1Outputsamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1GraphQLUrl", + "ParameterValue": "https://vp2rn7qbp5fbrblcdmbrcmjka4.appsync-api.us-east-1.amazonaws.com/graphql" + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-function1351588B-x.template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-function1351588B-x.template.json new file mode 100644 index 00000000000..d94dbf1de6f --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-function1351588B-x.template.json @@ -0,0 +1,698 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.18.0\",\"stackType\":\"function-Lambda\",\"metadata\":{}}", + "Resources": { + "S3Trigger1ef46783gen2xlambdaServiceRoleC68A807C": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "S3Trigger1ef46783-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/function/S3Trigger1ef46783-gen2-x-lambda/ServiceRole/Resource" + } + }, + "S3Trigger1ef46783gen2xlambdaServiceRoleDefaultPolicy8F63ACC8": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "appsync:GraphQL", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":appsync:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":apis/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataNestedStackdataNestedStackResourceD8EBCEB1Outputsamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "/types/Mutation/*" + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "S3Trigger1ef46783gen2xlambdaServiceRoleDefaultPolicy8F63ACC8", + "Roles": [ + { + "Ref": "S3Trigger1ef46783gen2xlambdaServiceRoleC68A807C" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/function/S3Trigger1ef46783-gen2-x-lambda/ServiceRole/DefaultPolicy/Resource" + } + }, + "S3Trigger1ef46783gen2xlambda5180B18B": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Architectures": [ + "x86_64" + ], + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "9e821eababa829077bc1c07365ae1d9d01b5527ce0ab051608b55befc213b14a.zip" + }, + "Environment": { + "Variables": { + "ENV": "gen2-x", + "REGION": "us-east-1", + "AMPLIFY_SSM_ENV_CONFIG": "{}", + "API_PRODUCTCATALOG_GRAPHQLAPIKEYOUTPUT": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataNestedStackdataNestedStackResourceD8EBCEB1Outputsamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPIDefaultApiKey877BF6C7ApiKey" + }, + "API_PRODUCTCATALOG_GRAPHQLAPIENDPOINTOUTPUT": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataNestedStackdataNestedStackResourceD8EBCEB1Outputsamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1GraphQLUrl" + }, + "API_PRODUCTCATALOG_GRAPHQLAPIIDOUTPUT": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataNestedStackdataNestedStackResourceD8EBCEB1Outputsamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + } + } + }, + "EphemeralStorage": { + "Size": 512 + }, + "FunctionName": "S3Trigger1ef46783-gen2-x", + "Handler": "index.handler", + "MemorySize": 128, + "Role": { + "Fn::GetAtt": [ + "S3Trigger1ef46783gen2xlambdaServiceRoleC68A807C", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "S3Trigger1ef46783-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 25 + }, + "DependsOn": [ + "S3Trigger1ef46783gen2xlambdaServiceRoleDefaultPolicy8F63ACC8", + "S3Trigger1ef46783gen2xlambdaServiceRoleC68A807C" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/function/S3Trigger1ef46783-gen2-x-lambda/Resource", + "aws:asset:path": "asset.9e821eababa829077bc1c07365ae1d9d01b5527ce0ab051608b55befc213b14a", + "aws:asset:is-bundled": true, + "aws:asset:property": "Code" + } + }, + "lowstockproductsgen2xlambdaServiceRole1A2BDD2D": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "lowstockproducts-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/function/lowstockproducts-gen2-x-lambda/ServiceRole/Resource" + } + }, + "lowstockproductsgen2xlambdaServiceRoleDefaultPolicy0E3D6F62": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "appsync:GraphQL", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":appsync:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":apis/", + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataNestedStackdataNestedStackResourceD8EBCEB1Outputsamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + }, + "/types/Query/*" + ] + ] + } + }, + { + "Action": "ssm:GetParameters", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":ssm:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":parameter/amplify/productcatalog/e2e-sandbox-x/PRODUCT_CATALOG_SECRET" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":ssm:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":parameter/amplify/shared/productcatalog/PRODUCT_CATALOG_SECRET" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "lowstockproductsgen2xlambdaServiceRoleDefaultPolicy0E3D6F62", + "Roles": [ + { + "Ref": "lowstockproductsgen2xlambdaServiceRole1A2BDD2D" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/function/lowstockproducts-gen2-x-lambda/ServiceRole/DefaultPolicy/Resource" + } + }, + "lowstockproductsgen2xlambda7E599665": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Architectures": [ + "x86_64" + ], + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "fd5da4e6462455bc211b03dcbcd7a1ad87b4dd3fa0da7463b999cd2ff558d107.zip" + }, + "Environment": { + "Variables": { + "LOW_STOCK_THRESHOLD": "5", + "PRODUCT_CATALOG_SECRET": "", + "ENV": "gen2-x", + "REGION": "us-east-1", + "AMPLIFY_SSM_ENV_CONFIG": "{\"PRODUCT_CATALOG_SECRET\":{\"path\":\"/amplify/productcatalog/e2e-sandbox-x/PRODUCT_CATALOG_SECRET\",\"sharedPath\":\"/amplify/shared/productcatalog/PRODUCT_CATALOG_SECRET\"}}", + "API_PRODUCTCATALOG_GRAPHQLAPIKEYOUTPUT": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataNestedStackdataNestedStackResourceD8EBCEB1Outputsamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPIDefaultApiKey877BF6C7ApiKey" + }, + "API_PRODUCTCATALOG_GRAPHQLAPIENDPOINTOUTPUT": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataNestedStackdataNestedStackResourceD8EBCEB1Outputsamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1GraphQLUrl" + }, + "API_PRODUCTCATALOG_GRAPHQLAPIIDOUTPUT": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17dataNestedStackdataNestedStackResourceD8EBCEB1Outputsamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + } + } + }, + "EphemeralStorage": { + "Size": 512 + }, + "FunctionName": "lowstockproducts-gen2-x", + "Handler": "index.handler", + "MemorySize": 128, + "Role": { + "Fn::GetAtt": [ + "lowstockproductsgen2xlambdaServiceRole1A2BDD2D", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "lowstockproducts-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 25 + }, + "DependsOn": [ + "lowstockproductsgen2xlambdaServiceRoleDefaultPolicy0E3D6F62", + "lowstockproductsgen2xlambdaServiceRole1A2BDD2D" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/function/lowstockproducts-gen2-x-lambda/Resource", + "aws:asset:path": "asset.fd5da4e6462455bc211b03dcbcd7a1ad87b4dd3fa0da7463b999cd2ff558d107", + "aws:asset:is-bundled": true, + "aws:asset:property": "Code" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/zWNzQqDMBCEn8X7urWR9l6FHqXoA8iarBJ/EujGShHfvaj09M3A8I1CdUswiWiRWJshHm2Da8ES2FSB9AC0SL2ONDWGaucN94LFgefsdLDegaUJ19KPDHnrDr78aPV3r2faQNKaRDgIPnaApJjNeuCQkTCcesxb95ducOyqQJ113Qb7M/Zy+SiF1zsmUS/Wxu/ZBTsxlid/7OrnScwAAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/function/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifyproductcataloge2esandboxde12df9a17functionS3Trigger1ef46783gen2xlambda81A9091AArn": { + "Value": { + "Fn::GetAtt": [ + "S3Trigger1ef46783gen2xlambda5180B18B", + "Arn" + ] + } + }, + "amplifyproductcataloge2esandboxde12df9a17functionS3Trigger1ef46783gen2xlambda81A9091ARef": { + "Value": { + "Ref": "S3Trigger1ef46783gen2xlambda5180B18B" + } + }, + "amplifyproductcataloge2esandboxde12df9a17functionlowstockproductsgen2xlambdaDF5C10EARef": { + "Value": { + "Ref": "lowstockproductsgen2xlambda7E599665" + } + } + }, + "Parameters": { + "referencetoamplifyproductcataloge2esandboxde12df9a17dataNestedStackdataNestedStackResourceD8EBCEB1Outputsamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId": { + "Type": "String" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17dataNestedStackdataNestedStackResourceD8EBCEB1Outputsamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPIDefaultApiKey877BF6C7ApiKey": { + "Type": "String" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17dataNestedStackdataNestedStackResourceD8EBCEB1Outputsamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1GraphQLUrl": { + "Type": "String" + } + } +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x.description.txt b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x.description.txt new file mode 100644 index 00000000000..950d1c3cb96 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"AmplifySandbox","createdWith":"1.4.3","stackType":"storage-S3","metadata":{}} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x.outputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x.outputs.json new file mode 100644 index 00000000000..227741ec3ba --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x.outputs.json @@ -0,0 +1,6 @@ +[ + { + "OutputKey": "amplifyproductcataloge2esandboxde12df9a17storageproductcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketF3C6AA2ERef", + "OutputValue": "amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic" + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x.parameters.json new file mode 100644 index 00000000000..dcb2fe9fc75 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x.parameters.json @@ -0,0 +1,10 @@ +[ + { + "ParameterKey": "referencetoamplifyproductcataloge2esandboxde12df9a17functionNestedStackfunctionNestedStackResource2A71F224Outputsamplifyproductcataloge2esandboxde12df9a17functionS3Trigger1ef46783gen2xlambda81A9091AArn", + "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:S3Trigger1ef46783-gen2-x" + }, + { + "ParameterKey": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref", + "ParameterValue": "amplify-productcat2604142-amplifyAuthauthenticatedU-FTyAOUWtFeJb" + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x.template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x.template.json new file mode 100644 index 00000000000..e05ad59362f --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x-storage0EC3F24A-x.template.json @@ -0,0 +1,932 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", + "Resources": { + "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketACEF49E5": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "BucketKeyEnabled": false, + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "MaxAge": 3000 + } + ] + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "productcatalogf95af07481f845caa6594c26ac9c8ed3x-gen2-x" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/productcatalogf95af07481f845caa6594c26ac9c8ed3x-gen2-x/Bucket/Resource" + } + }, + "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketPolicy5224AA3C": { + "Type": "AWS::S3::BucketPolicy", + "Properties": { + "Bucket": { + "Ref": "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketACEF49E5" + }, + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:*", + "Condition": { + "Bool": { + "aws:SecureTransport": "false" + } + }, + "Effect": "Deny", + "Principal": { + "AWS": "*" + }, + "Resource": [ + { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketACEF49E5", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketACEF49E5", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + }, + { + "Action": [ + "s3:PutBucketPolicy", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*" + ], + "Effect": "Allow", + "Principal": { + "AWS": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + } + }, + "Resource": [ + { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketACEF49E5", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketACEF49E5", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/productcatalogf95af07481f845caa6594c26ac9c8ed3x-gen2-x/Bucket/Policy/Resource" + } + }, + "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketAutoDeleteObjectsCustomResource1B906272": { + "Type": "Custom::S3AutoDeleteObjects", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "Arn" + ] + }, + "BucketName": { + "Ref": "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketACEF49E5" + } + }, + "DependsOn": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketPolicy5224AA3C" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/productcatalogf95af07481f845caa6594c26ac9c8ed3x-gen2-x/Bucket/AutoDeleteObjectsCustomResource/Default" + } + }, + "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketNotifications33A3C5B4": { + "Type": "Custom::S3BucketNotifications", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "BucketNotificationsHandler050a0587b7544547bf325f094a3db8347ECC3691", + "Arn" + ] + }, + "BucketName": { + "Ref": "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketACEF49E5" + }, + "NotificationConfiguration": { + "LambdaFunctionConfigurations": [ + { + "Events": [ + "s3:ObjectCreated:*" + ], + "LambdaFunctionArn": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17functionNestedStackfunctionNestedStackResource2A71F224Outputsamplifyproductcataloge2esandboxde12df9a17functionS3Trigger1ef46783gen2xlambda81A9091AArn" + } + }, + { + "Events": [ + "s3:ObjectRemoved:*" + ], + "LambdaFunctionArn": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17functionNestedStackfunctionNestedStackResource2A71F224Outputsamplifyproductcataloge2esandboxde12df9a17functionS3Trigger1ef46783gen2xlambda81A9091AArn" + } + } + ] + }, + "Managed": true, + "SkipDestinationValidation": false + }, + "DependsOn": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketAllowBucketNotificationsToamplifyproductcataloge2esandboxde12df9a17functionS3Trigger1ef46783gen2xlambda7E3D5F7A60F0C41B", + "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketPolicy5224AA3C" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/productcatalogf95af07481f845caa6594c26ac9c8ed3x-gen2-x/Bucket/Notifications/Resource" + } + }, + "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketAllowBucketNotificationsToamplifyproductcataloge2esandboxde12df9a17functionS3Trigger1ef46783gen2xlambda7E3D5F7A60F0C41B": { + "Type": "AWS::Lambda::Permission", + "Properties": { + "Action": "lambda:InvokeFunction", + "FunctionName": { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17functionNestedStackfunctionNestedStackResource2A71F224Outputsamplifyproductcataloge2esandboxde12df9a17functionS3Trigger1ef46783gen2xlambda81A9091AArn" + }, + "Principal": "s3.amazonaws.com", + "SourceAccount": { + "Ref": "AWS::AccountId" + }, + "SourceArn": { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketACEF49E5", + "Arn" + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/productcatalogf95af07481f845caa6594c26ac9c8ed3x-gen2-x/Bucket/AllowBucketNotificationsToamplifyproductcataloge2esandboxde12df9a17functionS3Trigger1ef46783gen2xlambda7E3D5F7A" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ] + }, + "ManagedPolicyArns": [ + { + "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" + }, + "Timeout": 900, + "MemorySize": 128, + "Handler": "index.handler", + "Role": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Description": { + "Fn::Join": [ + "", + [ + "Lambda function for auto-deleting objects in ", + { + "Ref": "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketACEF49E5" + }, + " S3 bucket." + ] + ] + } + }, + "DependsOn": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", + "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", + "aws:asset:property": "Code" + } + }, + "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Role/Resource" + } + }, + "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleDefaultPolicy2CF63D36": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:PutBucketNotification", + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketACEF49E5", + "Arn" + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleDefaultPolicy2CF63D36", + "Roles": [ + { + "Ref": "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Role/DefaultPolicy/Resource" + } + }, + "BucketNotificationsHandler050a0587b7544547bf325f094a3db8347ECC3691": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Description": "AWS CloudFormation handler for \"Custom::S3BucketNotifications\" resources (@aws-cdk/aws-s3)", + "Code": { + "ZipFile": "import boto3 # type: ignore\nimport json\nimport logging\nimport urllib.request\n\ns3 = boto3.client(\"s3\")\n\nEVENTBRIDGE_CONFIGURATION = 'EventBridgeConfiguration'\nCONFIGURATION_TYPES = [\"TopicConfigurations\", \"QueueConfigurations\", \"LambdaFunctionConfigurations\"]\n\ndef handler(event: dict, context):\n response_status = \"SUCCESS\"\n error_message = \"\"\n try:\n props = event[\"ResourceProperties\"]\n notification_configuration = props[\"NotificationConfiguration\"]\n managed = props.get('Managed', 'true').lower() == 'true'\n skipDestinationValidation = props.get('SkipDestinationValidation', 'false').lower() == 'true'\n stack_id = event['StackId']\n old = event.get(\"OldResourceProperties\", {}).get(\"NotificationConfiguration\", {})\n if managed:\n config = handle_managed(event[\"RequestType\"], notification_configuration)\n else:\n config = handle_unmanaged(props[\"BucketName\"], stack_id, event[\"RequestType\"], notification_configuration, old)\n s3.put_bucket_notification_configuration(Bucket=props[\"BucketName\"], NotificationConfiguration=config, SkipDestinationValidation=skipDestinationValidation)\n except Exception as e:\n logging.exception(\"Failed to put bucket notification configuration\")\n response_status = \"FAILED\"\n error_message = f\"Error: {str(e)}. \"\n finally:\n submit_response(event, context, response_status, error_message)\n\ndef handle_managed(request_type, notification_configuration):\n if request_type == 'Delete':\n return {}\n return notification_configuration\n\ndef handle_unmanaged(bucket, stack_id, request_type, notification_configuration, old):\n def get_id(n):\n n['Id'] = ''\n sorted_notifications = sort_filter_rules(n)\n strToHash=json.dumps(sorted_notifications, sort_keys=True).replace('\"Name\": \"prefix\"', '\"Name\": \"Prefix\"').replace('\"Name\": \"suffix\"', '\"Name\": \"Suffix\"')\n return f\"{stack_id}-{hash(strToHash)}\"\n def with_id(n):\n n['Id'] = get_id(n)\n return n\n\n external_notifications = {}\n existing_notifications = s3.get_bucket_notification_configuration(Bucket=bucket)\n for t in CONFIGURATION_TYPES:\n if request_type == 'Update':\n old_incoming_ids = [get_id(n) for n in old.get(t, [])]\n external_notifications[t] = [n for n in existing_notifications.get(t, []) if not get_id(n) in old_incoming_ids] \n elif request_type == 'Delete':\n external_notifications[t] = [n for n in existing_notifications.get(t, []) if not n['Id'].startswith(f\"{stack_id}-\")]\n elif request_type == 'Create':\n external_notifications[t] = [n for n in existing_notifications.get(t, [])]\n if EVENTBRIDGE_CONFIGURATION in existing_notifications:\n external_notifications[EVENTBRIDGE_CONFIGURATION] = existing_notifications[EVENTBRIDGE_CONFIGURATION]\n\n if request_type == 'Delete':\n return external_notifications\n\n notifications = {}\n for t in CONFIGURATION_TYPES:\n external = external_notifications.get(t, [])\n incoming = [with_id(n) for n in notification_configuration.get(t, [])]\n notifications[t] = external + incoming\n\n if EVENTBRIDGE_CONFIGURATION in notification_configuration:\n notifications[EVENTBRIDGE_CONFIGURATION] = notification_configuration[EVENTBRIDGE_CONFIGURATION]\n elif EVENTBRIDGE_CONFIGURATION in external_notifications:\n notifications[EVENTBRIDGE_CONFIGURATION] = external_notifications[EVENTBRIDGE_CONFIGURATION]\n\n return notifications\n\ndef submit_response(event: dict, context, response_status: str, error_message: str):\n response_body = json.dumps(\n {\n \"Status\": response_status,\n \"Reason\": f\"{error_message}See the details in CloudWatch Log Stream: {context.log_stream_name}\",\n \"PhysicalResourceId\": event.get(\"PhysicalResourceId\") or event[\"LogicalResourceId\"],\n \"StackId\": event[\"StackId\"],\n \"RequestId\": event[\"RequestId\"],\n \"LogicalResourceId\": event[\"LogicalResourceId\"],\n \"NoEcho\": False,\n }\n ).encode(\"utf-8\")\n headers = {\"content-type\": \"\", \"content-length\": str(len(response_body))}\n try:\n req = urllib.request.Request(url=event[\"ResponseURL\"], headers=headers, data=response_body, method=\"PUT\")\n with urllib.request.urlopen(req) as response:\n print(response.read().decode(\"utf-8\"))\n print(\"Status code: \" + response.reason)\n except Exception as e:\n print(\"send(..) failed executing request.urlopen(..): \" + str(e))\n\ndef sort_filter_rules(json_obj):\n if not isinstance(json_obj, dict):\n return json_obj\n for key, value in json_obj.items():\n if isinstance(value, dict):\n json_obj[key] = sort_filter_rules(value)\n elif isinstance(value, list):\n json_obj[key] = [sort_filter_rules(item) for item in value]\n if \"Filter\" in json_obj and \"Key\" in json_obj[\"Filter\"] and \"FilterRules\" in json_obj[\"Filter\"][\"Key\"]:\n filter_rules = json_obj[\"Filter\"][\"Key\"][\"FilterRules\"]\n sorted_filter_rules = sorted(filter_rules, key=lambda x: x[\"Name\"])\n json_obj[\"Filter\"][\"Key\"][\"FilterRules\"] = sorted_filter_rules\n return json_obj" + }, + "Handler": "index.handler", + "Role": { + "Fn::GetAtt": [ + "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC", + "Arn" + ] + }, + "Runtime": "python3.13", + "Timeout": 300, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "DependsOn": [ + "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleDefaultPolicy2CF63D36", + "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Resource" + } + }, + "PRODUCTCATALOGF95AF07481F845CAA6594C26AC9C8ED316AD6GEN2QYPVNBISSLBUCKETNAMEParameterA82FC17A": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/productcatalog/e2e-sandbox-x/PRODUCTCATALOGF_95_AF_07481_F_845_CAA_6594_C_26_AC_9_C_8_ED_316_AD_6_GEN_2_QYPVNBISSL_BUCKET_NAME", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": { + "Ref": "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketACEF49E5" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/PRODUCTCATALOGF_95_AF_07481_F_845_CAA_6594_C_26_AC_9_C_8_ED_316_AD_6_GEN_2_QYPVNBISSL_BUCKET_NAMEParameter/Resource" + } + }, + "amplifyproductcataloge2esandboxde12df9a17storageAccess479CEF9A9": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:PutObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketACEF49E5", + "Arn" + ] + }, + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketACEF49E5", + "Arn" + ] + }, + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketACEF49E5", + "Arn" + ] + }, + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketACEF49E5", + "Arn" + ] + }, + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketACEF49E5", + "Arn" + ] + }, + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketACEF49E5", + "Arn" + ] + }, + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/*", + "public/", + "protected/*", + "protected/", + "private/*", + "private/" + ] + } + }, + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketACEF49E5", + "Arn" + ] + } + }, + { + "Action": "s3:DeleteObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketACEF49E5", + "Arn" + ] + }, + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketACEF49E5", + "Arn" + ] + }, + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketACEF49E5", + "Arn" + ] + }, + "/private/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "amplifyproductcataloge2esandboxde12df9a17storageAccess479CEF9A9", + "Roles": [ + { + "Ref": "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/amplify-productcatalog-e2e-sandbox-x--storageAccess4/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/5VNy07DMBD8lubsLCUVHLi16Rmi5IgQcpJttElsS95NC7L876ixoHDkNDOaVwHFwxa2G33hvOunfKYWwjOyYN+I7ialL/weeAfhsHQTiipPNrHXkBn6IJs9Zb/L1zzvYLUYUnS/iDvijIIv7YidcBbfVLIqN1P3eVtN+h/bqdCIFjRo1+moZm3aXkN5shV6Q8zkrCJtINRuxuvbirfzxKJiNhAa8WSHSnttUNCv/reIUZULizM1slt8l8Z++B+r8u5MPfqDZlR7ZpRG9EB2iMq6HmHku3NRwP0jbDcjE+V+sUIGoU74BdUQSEOcAQAA" + }, + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "referencetoamplifyproductcataloge2esandboxde12df9a17functionNestedStackfunctionNestedStackResource2A71F224Outputsamplifyproductcataloge2esandboxde12df9a17functionS3Trigger1ef46783gen2xlambda81A9091AArn": { + "Type": "String" + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref": { + "Type": "String" + } + }, + "Outputs": { + "amplifyproductcataloge2esandboxde12df9a17storageproductcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketF3C6AA2ERef": { + "Value": { + "Ref": "productcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketACEF49E5" + } + } + } +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x.description.txt b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x.description.txt new file mode 100644 index 00000000000..d1c87f28683 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"AmplifySandbox","createdWith":"1.22.0","stackType":"root","metadata":{}} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x.outputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x.outputs.json new file mode 100644 index 00000000000..29fd2266a13 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x.outputs.json @@ -0,0 +1,138 @@ +[ + { + "OutputKey": "webClientId", + "OutputValue": "27q6muiijfov65g35g37t9bldv" + }, + { + "OutputKey": "socialProviders", + "OutputValue": "" + }, + { + "OutputKey": "usernameAttributes", + "OutputValue": "[\"email\"]" + }, + { + "OutputKey": "bucketName", + "OutputValue": "amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic" + }, + { + "OutputKey": "signupAttributes", + "OutputValue": "[\"email\"]" + }, + { + "OutputKey": "oauthClientId", + "OutputValue": "27q6muiijfov65g35g37t9bldv" + }, + { + "OutputKey": "allowUnauthenticatedIdentities", + "OutputValue": "false" + }, + { + "OutputKey": "oauthCognitoDomain", + "OutputValue": "" + }, + { + "OutputKey": "oauthScope", + "OutputValue": "[\"profile\",\"phone\",\"email\",\"openid\",\"aws.cognito.signin.user.admin\"]" + }, + { + "OutputKey": "oauthRedirectSignOut", + "OutputValue": "" + }, + { + "OutputKey": "awsAppsyncAdditionalAuthenticationTypes", + "OutputValue": "API_KEY,AMAZON_COGNITO_USER_POOLS" + }, + { + "OutputKey": "mfaTypes", + "OutputValue": "[]" + }, + { + "OutputKey": "mfaConfiguration", + "OutputValue": "OFF" + }, + { + "OutputKey": "storageRegion", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "oauthResponseType", + "OutputValue": "code" + }, + { + "OutputKey": "awsAppsyncApiKey", + "OutputValue": "da2-fakeapikey00000000000000" + }, + { + "OutputKey": "awsAppsyncAuthenticationType", + "OutputValue": "AWS_IAM" + }, + { + "OutputKey": "oauthRedirectSignIn", + "OutputValue": "https://example.com" + }, + { + "OutputKey": "passwordPolicyMinLength", + "OutputValue": "8" + }, + { + "OutputKey": "awsAppsyncApiEndpoint", + "OutputValue": "https://vp2rn7qbp5fbrblcdmbrcmjka4.appsync-api.us-east-1.amazonaws.com/graphql" + }, + { + "OutputKey": "awsAppsyncApiId", + "OutputValue": "e5folpqnrzbzpbark3e3agy5ly" + }, + { + "OutputKey": "authRegion", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "buckets", + "OutputValue": "[\"{\\\"name\\\":\\\"productcatalogf95af07481f845caa6594c26ac9c8ed3x-gen2-x\\\",\\\"bucketName\\\":\\\"amplify-productcat2604142-productcatalogf95af07481-jsxqtusiufic\\\",\\\"storageRegion\\\":\\\"us-east-1\\\",\\\"paths\\\":{\\\"public/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]},\\\"protected/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]},\\\"private/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]}}}\"]" + }, + { + "OutputKey": "amplifyApiModelSchemaS3Uri", + "OutputValue": "s3://amplify-productcat2604142-amplifydataamplifycodege-1n47heiknjee/model-schema.graphql" + }, + { + "OutputKey": "groups", + "OutputValue": "[]" + }, + { + "OutputKey": "definedFunctions", + "OutputValue": "[\"S3Trigger1ef46783-gen2-x\",\"lowstockproducts-gen2-x\"]" + }, + { + "OutputKey": "passwordlessOptions", + "OutputValue": "" + }, + { + "OutputKey": "awsAppsyncRegion", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "deploymentType", + "OutputValue": "sandbox" + }, + { + "OutputKey": "passwordPolicyRequirements", + "OutputValue": "[]" + }, + { + "OutputKey": "region", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "userPoolId", + "OutputValue": "us-east-1_tRO9BruHe" + }, + { + "OutputKey": "identityPoolId", + "OutputValue": "us-east-1:ec121e86-e0d7-4f59-beaf-535182dac9c0" + }, + { + "OutputKey": "verificationMechanisms", + "OutputValue": "[\"email\"]" + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x.parameters.json new file mode 100644 index 00000000000..9b7e2669975 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x.parameters.json @@ -0,0 +1,7 @@ +[ + { + "ParameterKey": "BootstrapVersion", + "ParameterValue": "/cdk-bootstrap/hnb659fds/version", + "ResolvedValue": "30" + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x.template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x.template.json new file mode 100644 index 00000000000..abf67183337 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-e2e-sandbox-x.template.json @@ -0,0 +1,829 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.22.0\",\"stackType\":\"root\",\"metadata\":{}}", + "Metadata": { + "AWS::Amplify::Platform": { + "version": "1", + "stackOutputs": [ + "deploymentType", + "region" + ] + }, + "AWS::Amplify::Auth": { + "version": "1", + "stackOutputs": [ + "userPoolId", + "webClientId", + "identityPoolId", + "authRegion", + "allowUnauthenticatedIdentities", + "signupAttributes", + "usernameAttributes", + "verificationMechanisms", + "passwordPolicyMinLength", + "passwordPolicyRequirements", + "mfaConfiguration", + "mfaTypes", + "passwordlessOptions", + "socialProviders", + "oauthCognitoDomain", + "oauthScope", + "oauthRedirectSignIn", + "oauthRedirectSignOut", + "oauthResponseType", + "oauthClientId", + "groups" + ] + }, + "AWS::Amplify::GraphQL": { + "version": "1", + "stackOutputs": [ + "awsAppsyncApiId", + "awsAppsyncApiEndpoint", + "awsAppsyncAuthenticationType", + "awsAppsyncRegion", + "amplifyApiModelSchemaS3Uri", + "awsAppsyncApiKey", + "awsAppsyncAdditionalAuthenticationTypes" + ] + }, + "AWS::Amplify::Function": { + "version": "1", + "stackOutputs": [ + "definedFunctions" + ] + }, + "AWS::Amplify::Storage": { + "version": "1", + "stackOutputs": [ + "buckets", + "storageRegion", + "bucketName" + ] + } + }, + "Outputs": { + "deploymentType": { + "Value": "sandbox" + }, + "region": { + "Value": { + "Ref": "AWS::Region" + } + }, + "userPoolId": { + "Value": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifyproductcataloge2esandboxde12df9a17authamplifyAuthUserPool28A7874FRef" + ] + } + }, + "webClientId": { + "Value": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifyproductcataloge2esandboxde12df9a17authamplifyAuthUserPoolAppClient577E72DBRef" + ] + } + }, + "identityPoolId": { + "Value": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef" + ] + } + }, + "authRegion": { + "Value": { + "Ref": "AWS::Region" + } + }, + "allowUnauthenticatedIdentities": { + "Value": "false" + }, + "signupAttributes": { + "Value": "[\"email\"]" + }, + "usernameAttributes": { + "Value": "[\"email\"]" + }, + "verificationMechanisms": { + "Value": "[\"email\"]" + }, + "passwordPolicyMinLength": { + "Value": "8" + }, + "passwordPolicyRequirements": { + "Value": "[]" + }, + "mfaConfiguration": { + "Value": "OFF" + }, + "mfaTypes": { + "Value": "[]" + }, + "passwordlessOptions": { + "Value": "" + }, + "socialProviders": { + "Value": "" + }, + "oauthCognitoDomain": { + "Value": "" + }, + "oauthScope": { + "Value": "[\"profile\",\"phone\",\"email\",\"openid\",\"aws.cognito.signin.user.admin\"]" + }, + "oauthRedirectSignIn": { + "Value": "https://example.com" + }, + "oauthRedirectSignOut": { + "Value": "" + }, + "oauthResponseType": { + "Value": "code" + }, + "oauthClientId": { + "Value": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifyproductcataloge2esandboxde12df9a17authamplifyAuthUserPoolAppClient577E72DBRef" + ] + } + }, + "groups": { + "Value": "[]" + }, + "awsAppsyncApiId": { + "Value": { + "Fn::GetAtt": [ + "data7552DF31", + "Outputs.amplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + ] + } + }, + "awsAppsyncApiEndpoint": { + "Value": { + "Fn::GetAtt": [ + "data7552DF31", + "Outputs.amplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1GraphQLUrl" + ] + } + }, + "awsAppsyncAuthenticationType": { + "Value": "AWS_IAM" + }, + "awsAppsyncRegion": { + "Value": { + "Ref": "AWS::Region" + } + }, + "amplifyApiModelSchemaS3Uri": { + "Value": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Fn::Select": [ + 0, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "data7552DF31", + "Outputs.amplifyproductcataloge2esandboxde12df9a17dataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiBE7E87FF7DestinationBucketArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "/model-schema.graphql" + ] + ] + } + }, + "awsAppsyncApiKey": { + "Value": { + "Fn::GetAtt": [ + "data7552DF31", + "Outputs.amplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPIDefaultApiKey877BF6C7ApiKey" + ] + } + }, + "awsAppsyncAdditionalAuthenticationTypes": { + "Value": "API_KEY,AMAZON_COGNITO_USER_POOLS" + }, + "definedFunctions": { + "Value": { + "Fn::Join": [ + "", + [ + "[\"", + { + "Fn::GetAtt": [ + "function1351588B", + "Outputs.amplifyproductcataloge2esandboxde12df9a17functionS3Trigger1ef46783gen2xlambda81A9091ARef" + ] + }, + "\",\"", + { + "Fn::GetAtt": [ + "function1351588B", + "Outputs.amplifyproductcataloge2esandboxde12df9a17functionlowstockproductsgen2xlambdaDF5C10EARef" + ] + }, + "\"]" + ] + ] + } + }, + "storageRegion": { + "Value": { + "Ref": "AWS::Region" + } + }, + "bucketName": { + "Value": { + "Fn::GetAtt": [ + "storage0EC3F24A", + "Outputs.amplifyproductcataloge2esandboxde12df9a17storageproductcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketF3C6AA2ERef" + ] + } + }, + "buckets": { + "Value": { + "Fn::Join": [ + "", + [ + "[\"{\\\"name\\\":\\\"productcatalogf95af07481f845caa6594c26ac9c8ed3x-gen2-x\\\",\\\"bucketName\\\":\\\"", + { + "Fn::GetAtt": [ + "storage0EC3F24A", + "Outputs.amplifyproductcataloge2esandboxde12df9a17storageproductcatalogf95af07481f845caa6594c26ac9c8ed3xgen2xBucketF3C6AA2ERef" + ] + }, + "\\\",\\\"storageRegion\\\":\\\"", + { + "Ref": "AWS::Region" + }, + "\\\",\\\"paths\\\":{\\\"public/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]},\\\"protected/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]},\\\"private/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]}}}\"]" + ] + ] + } + } + }, + "Resources": { + "auth179371D7": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/ae7997bfeca9dd3cdad97e1618e9c51c280b5ed0f1ac99b9b781fcd83e6dd338.json" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/auth.NestedStack/auth.NestedStackResource", + "aws:asset:path": "amplifyproductcataloge2esandboxde12df9a17authC70E9B16.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "data7552DF31": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthUserPool28A7874FRef": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifyproductcataloge2esandboxde12df9a17authamplifyAuthUserPool28A7874FRef" + ] + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref" + ] + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifyproductcataloge2esandboxde12df9a17authamplifyAuthunauthenticatedUserRole6E374C83Ref" + ] + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifyproductcataloge2esandboxde12df9a17authamplifyAuthIdentityPool9A695D5FRef" + ] + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/fa835081b02a068aafc50a8073572c765e3656a1d89d01d7ede1ec8cfa08bfd7.json" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/data.NestedStack/data.NestedStackResource", + "aws:asset:path": "amplifyproductcataloge2esandboxde12df9a17data274AFB11.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "storage0EC3F24A": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetoamplifyproductcataloge2esandboxde12df9a17functionNestedStackfunctionNestedStackResource2A71F224Outputsamplifyproductcataloge2esandboxde12df9a17functionS3Trigger1ef46783gen2xlambda81A9091AArn": { + "Fn::GetAtt": [ + "function1351588B", + "Outputs.amplifyproductcataloge2esandboxde12df9a17functionS3Trigger1ef46783gen2xlambda81A9091AArn" + ] + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17authNestedStackauthNestedStackResourceD8FBBF8AOutputsamplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifyproductcataloge2esandboxde12df9a17authamplifyAuthauthenticatedUserRole858AD406Ref" + ] + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/bffc1bc69ce64787ccfdd47e1117b7e9592651dd6a1aa8b4aa1ffd7c99c89c19.json" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/storage.NestedStack/storage.NestedStackResource", + "aws:asset:path": "amplifyproductcataloge2esandboxde12df9a17storageFDC2A5D8.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "function1351588B": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetoamplifyproductcataloge2esandboxde12df9a17dataNestedStackdataNestedStackResourceD8EBCEB1Outputsamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId": { + "Fn::GetAtt": [ + "data7552DF31", + "Outputs.amplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1ApiId" + ] + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17dataNestedStackdataNestedStackResourceD8EBCEB1Outputsamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPIDefaultApiKey877BF6C7ApiKey": { + "Fn::GetAtt": [ + "data7552DF31", + "Outputs.amplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPIDefaultApiKey877BF6C7ApiKey" + ] + }, + "referencetoamplifyproductcataloge2esandboxde12df9a17dataNestedStackdataNestedStackResourceD8EBCEB1Outputsamplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1GraphQLUrl": { + "Fn::GetAtt": [ + "data7552DF31", + "Outputs.amplifyproductcataloge2esandboxde12df9a17dataamplifyDataGraphQLAPI1B67C9C1GraphQLUrl" + ] + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/f5f4f41b5387c5a66cc1e3b54ba6f37e8092984b8acfd75512e9ed4d1ca2f6b8.json" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/function.NestedStack/function.NestedStackResource", + "aws:asset:path": "amplifyproductcataloge2esandboxde12df9a17function67B2193A.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/zPSMzI10DNQTCwv1k1OydbNyUzSqw4uSUzO1nFOy/MvLSkoLQGxwEK1Onn5Kal6WcX6ZUZGeoZmegaKWcWZmbpFpXklmbmpekEQGgAGekjOVAAAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-productcatalog-e2e-sandbox-x/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "BootstrapVersion": { + "Type": "AWS::SSM::Parameter::Value", + "Default": "/cdk-bootstrap/hnb659fds/version", + "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]" + } + }, + "Rules": { + "CheckBootstrapVersion": { + "Assertions": [ + { + "Assert": { + "Fn::Not": [ + { + "Fn::Contains": [ + [ + "1", + "2", + "3", + "4", + "5" + ], + { + "Ref": "BootstrapVersion" + } + ] + } + ] + }, + "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI." + } + ] + } + } +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataAmplifyTableManagerNestedStackA-O5M5LWLKCGO7.description.txt b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataAmplifyTableManagerNestedStackA-O5M5LWLKCGO7.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataAmplifyTableManagerNestedStackA-O5M5LWLKCGO7.outputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataAmplifyTableManagerNestedStackA-O5M5LWLKCGO7.outputs.json deleted file mode 100644 index 39fe2a07967..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataAmplifyTableManagerNestedStackA-O5M5LWLKCGO7.outputs.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - { - "OutputKey": "amplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEventF63962B6Arn", - "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-productcatalog-ge-TableManagerCustomProvid-jl7Q3dvgUQ4v" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataAmplifyTableManagerNestedStackA-O5M5LWLKCGO7.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataAmplifyTableManagerNestedStackA-O5M5LWLKCGO7.parameters.json deleted file mode 100644 index 5c85c991093..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataAmplifyTableManagerNestedStackA-O5M5LWLKCGO7.parameters.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId", - "ParameterValue": "3afyqracmndnzmjr344badj4ja" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataAmplifyTableManagerNestedStackA-O5M5LWLKCGO7.template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataAmplifyTableManagerNestedStackA-O5M5LWLKCGO7.template.json deleted file mode 100644 index a00989a0c64..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataAmplifyTableManagerNestedStackA-O5M5LWLKCGO7.template.json +++ /dev/null @@ -1,811 +0,0 @@ -{ - "Resources": { - "AmplifyManagedTableIsCompleteRoleF825222C": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:CreateTable", - "dynamodb:UpdateTable", - "dynamodb:DeleteTable", - "dynamodb:DescribeTable", - "dynamodb:DescribeContinuousBackups", - "dynamodb:DescribeTimeToLive", - "dynamodb:UpdateContinuousBackups", - "dynamodb:UpdateTimeToLive", - "dynamodb:TagResource", - "dynamodb:UntagResource", - "dynamodb:ListTagsOfResource" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/*-${apiId}-${envName}", - { - "apiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "envName": "NONE" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", - { - "tableName": "User-3oy6oxkj6ffojmc2upd52ftdsq-main" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", - { - "tableName": "Product-3oy6oxkj6ffojmc2upd52ftdsq-main" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", - { - "tableName": "Comment-3oy6oxkj6ffojmc2upd52ftdsq-main" - } - ] - } - ] - }, - { - "Action": "lambda:ListTags", - "Effect": "Allow", - "Resource": { - "Fn::Sub": [ - "arn:${AWS::Partition}:lambda:${AWS::Region}:${AWS::AccountId}:function:*TableManager*", - {} - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "CreateUpdateDeleteTablesPolicy" - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/AmplifyTableManager/AmplifyManagedTableIsCompleteRole/Resource" - } - }, - "AmplifyManagedTableOnEventRoleB4E71DEA": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:CreateTable", - "dynamodb:UpdateTable", - "dynamodb:DeleteTable", - "dynamodb:DescribeTable", - "dynamodb:DescribeContinuousBackups", - "dynamodb:DescribeTimeToLive", - "dynamodb:UpdateContinuousBackups", - "dynamodb:UpdateTimeToLive", - "dynamodb:TagResource", - "dynamodb:UntagResource", - "dynamodb:ListTagsOfResource" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/*-${apiId}-${envName}", - { - "apiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "envName": "NONE" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", - { - "tableName": "User-3oy6oxkj6ffojmc2upd52ftdsq-main" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", - { - "tableName": "Product-3oy6oxkj6ffojmc2upd52ftdsq-main" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", - { - "tableName": "Comment-3oy6oxkj6ffojmc2upd52ftdsq-main" - } - ] - } - ] - }, - { - "Action": "lambda:ListTags", - "Effect": "Allow", - "Resource": { - "Fn::Sub": [ - "arn:${AWS::Partition}:lambda:${AWS::Region}:${AWS::AccountId}:function:*TableManager*", - {} - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "CreateUpdateDeleteTablesPolicy" - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/AmplifyTableManager/AmplifyManagedTableOnEventRole/Resource" - } - }, - "AmplifyManagedTableOnEventRoleDefaultPolicyF6DABCB6": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "states:StartExecution", - "Effect": "Allow", - "Resource": { - "Ref": "AmplifyTableWaiterStateMachine060600BC" - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "AmplifyManagedTableOnEventRoleDefaultPolicyF6DABCB6", - "Roles": [ - { - "Ref": "AmplifyManagedTableOnEventRoleB4E71DEA" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/AmplifyTableManager/AmplifyManagedTableOnEventRole/DefaultPolicy/Resource" - } - }, - "TableManagerCustomProviderframeworkonEvent1DFC2ECC": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6.zip" - }, - "Description": "AmplifyManagedTable - onEvent (amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider)", - "Environment": { - "Variables": { - "WAITER_STATE_MACHINE_ARN": { - "Ref": "AmplifyTableWaiterStateMachine060600BC" - } - } - }, - "Handler": "amplify-table-manager-handler.onEvent", - "Role": { - "Fn::GetAtt": [ - "AmplifyManagedTableOnEventRoleB4E71DEA", - "Arn" - ] - }, - "Runtime": "nodejs24.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 840 - }, - "DependsOn": [ - "AmplifyManagedTableOnEventRoleDefaultPolicyF6DABCB6", - "AmplifyManagedTableOnEventRoleB4E71DEA" - ], - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider/framework-onEvent/Resource", - "aws:asset:path": "asset.f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6", - "aws:asset:is-bundled": false, - "aws:asset:property": "Code" - } - }, - "TableManagerCustomProviderframeworkisComplete2E51021B": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6.zip" - }, - "Description": "AmplifyManagedTable - isComplete (amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider)", - "Handler": "amplify-table-manager-handler.isComplete", - "Role": { - "Fn::GetAtt": [ - "AmplifyManagedTableIsCompleteRoleF825222C", - "Arn" - ] - }, - "Runtime": "nodejs24.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 840 - }, - "DependsOn": [ - "AmplifyManagedTableIsCompleteRoleF825222C" - ], - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider/framework-isComplete/Resource", - "aws:asset:path": "asset.f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6", - "aws:asset:is-bundled": false, - "aws:asset:property": "Code" - } - }, - "AmplifyTableWaiterStateMachineRole470BE899": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "states.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Role/Resource" - } - }, - "AmplifyTableWaiterStateMachineRoleDefaultPolicy89F3836A": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "lambda:InvokeFunction", - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "TableManagerCustomProviderframeworkisComplete2E51021B", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "TableManagerCustomProviderframeworkisComplete2E51021B", - "Arn" - ] - }, - ":*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "AmplifyTableWaiterStateMachineRoleDefaultPolicy89F3836A", - "Roles": [ - { - "Ref": "AmplifyTableWaiterStateMachineRole470BE899" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Role/DefaultPolicy/Resource" - } - }, - "AmplifyTableWaiterStateMachine060600BC": { - "Type": "AWS::StepFunctions::StateMachine", - "Properties": { - "DefinitionString": { - "Fn::Join": [ - "", - [ - "{\"StartAt\":\"framework-isComplete-task\",\"States\":{\"framework-isComplete-task\":{\"End\":true,\"Retry\":[{\"ErrorEquals\":[\"States.ALL\"],\"IntervalSeconds\":10,\"MaxAttempts\":360,\"BackoffRate\":1}],\"Type\":\"Task\",\"Resource\":\"", - { - "Fn::GetAtt": [ - "TableManagerCustomProviderframeworkisComplete2E51021B", - "Arn" - ] - }, - "\"}}}" - ] - ] - }, - "RoleArn": { - "Fn::GetAtt": [ - "AmplifyTableWaiterStateMachineRole470BE899", - "Arn" - ] - } - }, - "DependsOn": [ - "AmplifyTableWaiterStateMachineRoleDefaultPolicy89F3836A", - "AmplifyTableWaiterStateMachineRole470BE899" - ], - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/zWNyw6CMBBFv4V9GXm4cCsmLo2BDyBDGclAaROmSEzDvxtAV+fcnMXNIDunkES4SKzbITbcQHiQeGorj3pQuEgdGEcIpTOkbi+78+kM6882D1uVwbFpEcJ9ttqzs1v7+6okr1GEvMB1g5IcilkP5AsUWlVJ4uZJk9pr5bFj2+1nv7Aq61qCXk7vLIP0AknUC3M8zdbzSFAe/ALgt1g4zwAAAA==" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/AmplifyTableManager/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId": { - "Type": "String" - } - }, - "Outputs": { - "amplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEventF63962B6Arn": { - "Value": { - "Fn::GetAtt": [ - "TableManagerCustomProviderframeworkonEvent1DFC2ECC", - "Arn" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataCommentNestedStackCommentNested-1SDUGMKBEGLFN.description.txt b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataCommentNestedStackCommentNested-1SDUGMKBEGLFN.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataCommentNestedStackCommentNested-1SDUGMKBEGLFN.outputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataCommentNestedStackCommentNested-1SDUGMKBEGLFN.outputs.json deleted file mode 100644 index ebefbad7dce..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataCommentNestedStackCommentNested-1SDUGMKBEGLFN.outputs.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "OutputKey": "GetAttCommentTableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Comment-3oy6oxkj6ffojmc2upd52ftdsq-main/stream/2026-03-07T14:16:20.992", - "Description": "Your DynamoDB table StreamArn.", - "ExportName": "3afyqracmndnzmjr344badj4ja:GetAtt:CommentTable:StreamArn" - }, - { - "OutputKey": "amplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataCommentCommentTable6DCC82BATableArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Comment-3oy6oxkj6ffojmc2upd52ftdsq-main" - }, - { - "OutputKey": "GetAttCommentTableName", - "OutputValue": "Comment-3oy6oxkj6ffojmc2upd52ftdsq-main", - "Description": "Your DynamoDB table name.", - "ExportName": "3afyqracmndnzmjr344badj4ja:GetAtt:CommentTable:Name" - }, - { - "OutputKey": "amplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataCommentCommentDataSource7F5D9C3FName", - "OutputValue": "CommentTable" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataCommentNestedStackCommentNested-1SDUGMKBEGLFN.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataCommentNestedStackCommentNested-1SDUGMKBEGLFN.parameters.json deleted file mode 100644 index 345b7898056..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataCommentNestedStackCommentNested-1SDUGMKBEGLFN.parameters.json +++ /dev/null @@ -1,46 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource48E34D24Outputsamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataAmplifyTableManagerTableMa77FBE8F3", - "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-productcatalog-ge-TableManagerCustomProvid-jl7Q3dvgUQ4v" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "true" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId", - "ParameterValue": "3afyqracmndnzmjr344badj4ja" - }, - { - "ParameterKey": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef", - "ParameterValue": "us-east-1:c464f123-eaf0-4289-98b3-381197fa3d7f" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref", - "ParameterValue": "amplify-productcatalog-ge-amplifyAuthauthenticatedU-7u6GoubHxSy7" - }, - { - "ParameterKey": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef", - "ParameterValue": "amplify-productcatalog-ge-amplifyAuthunauthenticate-JMPocA8XyO6M" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataCommentNestedStackCommentNested-1SDUGMKBEGLFN.template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataCommentNestedStackCommentNested-1SDUGMKBEGLFN.template.json deleted file mode 100644 index 931c34183ca..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataCommentNestedStackCommentNested-1SDUGMKBEGLFN.template.json +++ /dev/null @@ -1,2274 +0,0 @@ -{ - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource48E34D24Outputsamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataAmplifyTableManagerTableMa77FBE8F3": { - "Type": "String" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId": { - "Type": "String" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name": { - "Type": "String" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref": { - "Type": "String" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef": { - "Type": "String" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef": { - "Type": "String" - } - }, - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - "NONE", - "NONE" - ] - } - ] - }, - "ShouldUsePayPerRequestBilling": { - "Fn::Equals": [ - { - "Ref": "DynamoDBBillingMode" - }, - "PAY_PER_REQUEST" - ] - }, - "ShouldUsePointInTimeRecovery": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "true" - ] - }, - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Resources": { - "CommentTable": { - "Type": "Custom::ImportedAmplifyDynamoDBTable", - "Properties": { - "ServiceToken": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource48E34D24Outputsamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataAmplifyTableManagerTableMa77FBE8F3" - }, - "tableName": "Comment-3oy6oxkj6ffojmc2upd52ftdsq-main", - "attributeDefinitions": [ - { - "attributeName": "id", - "attributeType": "S" - }, - { - "attributeName": "productId", - "attributeType": "S" - } - ], - "keySchema": [ - { - "attributeName": "id", - "keyType": "HASH" - } - ], - "globalSecondaryIndexes": [ - { - "indexName": "byProduct", - "keySchema": [ - { - "attributeName": "productId", - "keyType": "HASH" - } - ], - "projection": { - "projectionType": "ALL" - }, - "provisionedThroughput": { - "readCapacityUnits": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "writeCapacityUnits": { - "Ref": "DynamoDBModelTableWriteIOPS" - } - } - } - ], - "provisionedThroughput": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - { - "Ref": "AWS::NoValue" - }, - { - "ReadCapacityUnits": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "WriteCapacityUnits": { - "Ref": "DynamoDBModelTableWriteIOPS" - } - } - ] - }, - "sseSpecification": { - "sseEnabled": false - }, - "streamSpecification": { - "streamViewType": "NEW_AND_OLD_IMAGES" - }, - "deletionProtectionEnabled": true, - "allowDestructiveGraphqlSchemaUpdates": true, - "replaceTableUponGsiUpdate": false, - "isImported": true, - "pointInTimeRecoverySpecification": { - "Fn::If": [ - "ShouldUsePointInTimeRecovery", - { - "PointInTimeRecoveryEnabled": true - }, - { - "Ref": "AWS::NoValue" - } - ] - }, - "billingMode": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - "PAY_PER_REQUEST", - { - "Ref": "AWS::NoValue" - } - ] - } - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain", - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Comment/CommentTable/Default/Default" - } - }, - "CommentIAMRoleD5EC5F51": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:DeleteItem", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:Query", - "dynamodb:UpdateItem", - "dynamodb:ConditionCheckItem", - "dynamodb:DescribeTable", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", - { - "tablename": "Comment-3oy6oxkj6ffojmc2upd52ftdsq-main" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", - { - "tablename": "Comment-3oy6oxkj6ffojmc2upd52ftdsq-main" - } - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "DynamoDBAccess" - } - ], - "RoleName": { - "Fn::Join": [ - "", - [ - "CommentIAMRole20388d-", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "-NONE" - ] - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Comment/CommentIAMRole/Resource" - } - }, - "CommentDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DynamoDBConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "TableName": { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "CommentTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - } - }, - "Name": "CommentTable", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "CommentIAMRoleD5EC5F51", - "Arn" - ] - }, - "Type": "AMAZON_DYNAMODB" - }, - "DependsOn": [ - "CommentIAMRoleD5EC5F51" - ], - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Comment/CommentDataSource/Resource" - } - }, - "QuerygetCommentauth0FunctionQuerygetCommentauth0FunctionAppSyncFunction4992FD06": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetCommentauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fddbd22b259df4da4b959230f841620be1c5f553f4f3a632bde23b473ddce60a.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Comment/QuerygetCommentauth0Function/QuerygetCommentauth0Function.AppSyncFunction" - } - }, - "QuerygetCommentpostAuth0FunctionQuerygetCommentpostAuth0FunctionAppSyncFunction27405A71": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetCommentpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Comment/QuerygetCommentpostAuth0Function/QuerygetCommentpostAuth0Function.AppSyncFunction" - } - }, - "QueryGetCommentDataResolverFnQueryGetCommentDataResolverFnAppSyncFunction8473E2B0": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "CommentDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryGetCommentDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/08f4d557693d96c1a4efba0f9dc91330e4b19772fd5477c156468843e3d9cb5e.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4c6a2d29f01c6091bd1d9afe16e5849d456c96f17c3b215938c8067399532719.vtl" - } - }, - "DependsOn": [ - "CommentDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Comment/QueryGetCommentDataResolverFn/QueryGetCommentDataResolverFn.AppSyncFunction" - } - }, - "GetCommentResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "FieldName": "getComment", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerygetCommentauth0FunctionQuerygetCommentauth0FunctionAppSyncFunction4992FD06", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetCommentpostAuth0FunctionQuerygetCommentpostAuth0FunctionAppSyncFunction27405A71", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryGetCommentDataResolverFnQueryGetCommentDataResolverFnAppSyncFunction8473E2B0", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "CommentTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Comment/queryGetCommentResolver" - } - }, - "QuerylistCommentsauth0FunctionQuerylistCommentsauth0FunctionAppSyncFunctionC7B0414F": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerylistCommentsauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fddbd22b259df4da4b959230f841620be1c5f553f4f3a632bde23b473ddce60a.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Comment/QuerylistCommentsauth0Function/QuerylistCommentsauth0Function.AppSyncFunction" - } - }, - "QuerylistCommentspostAuth0FunctionQuerylistCommentspostAuth0FunctionAppSyncFunctionEDC68EF5": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerylistCommentspostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Comment/QuerylistCommentspostAuth0Function/QuerylistCommentspostAuth0Function.AppSyncFunction" - } - }, - "QueryListCommentsDataResolverFnQueryListCommentsDataResolverFnAppSyncFunction474D4A91": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "CommentDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryListCommentsDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9fcbe070ecd3023c5bf5b966fa9584757db9762eef123bad0820bd87591b2174.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/cc01911d0269d4080ea57505dc445dfc315ef7ad85d3d9d4ea1357858bff451d.vtl" - } - }, - "DependsOn": [ - "CommentDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Comment/QueryListCommentsDataResolverFn/QueryListCommentsDataResolverFn.AppSyncFunction" - } - }, - "ListCommentResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "FieldName": "listComments", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerylistCommentsauth0FunctionQuerylistCommentsauth0FunctionAppSyncFunctionC7B0414F", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerylistCommentspostAuth0FunctionQuerylistCommentspostAuth0FunctionAppSyncFunctionEDC68EF5", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryListCommentsDataResolverFnQueryListCommentsDataResolverFnAppSyncFunction474D4A91", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listComments\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "CommentTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Comment/queryListCommentsResolver" - } - }, - "MutationcreateCommentinit0FunctionMutationcreateCommentinit0FunctionAppSyncFunction77870FAC": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateCommentinit0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a183ddccbd956316c38ef97177b8f088ef0826f62023323f5ae6053d348ccffc.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Comment/MutationcreateCommentinit0Function/MutationcreateCommentinit0Function.AppSyncFunction" - } - }, - "MutationcreateCommentauth0FunctionMutationcreateCommentauth0FunctionAppSyncFunctionE6EA011A": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateCommentauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e8bed2f175c1940f121ba664cb3bae119b229c33405c7046598b847ce2aed656.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Comment/MutationcreateCommentauth0Function/MutationcreateCommentauth0Function.AppSyncFunction" - } - }, - "MutationcreateCommentpostAuth0FunctionMutationcreateCommentpostAuth0FunctionAppSyncFunction4F8AA7FF": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateCommentpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Comment/MutationcreateCommentpostAuth0Function/MutationcreateCommentpostAuth0Function.AppSyncFunction" - } - }, - "MutationCreateCommentDataResolverFnMutationCreateCommentDataResolverFnAppSyncFunctionD019FFE0": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "CommentDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationCreateCommentDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/45364049713897c02d7818d4cca69f32aed6a200c32039bc9accb6eea9db8b40.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "CommentDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Comment/MutationCreateCommentDataResolverFn/MutationCreateCommentDataResolverFn.AppSyncFunction" - } - }, - "CreateCommentResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "FieldName": "createComment", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationcreateCommentinit0FunctionMutationcreateCommentinit0FunctionAppSyncFunction77870FAC", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationcreateCommentauth0FunctionMutationcreateCommentauth0FunctionAppSyncFunctionE6EA011A", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationcreateCommentpostAuth0FunctionMutationcreateCommentpostAuth0FunctionAppSyncFunction4F8AA7FF", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationCreateCommentDataResolverFnMutationCreateCommentDataResolverFnAppSyncFunctionD019FFE0", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "CommentTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Comment/mutationCreateCommentResolver" - } - }, - "MutationupdateCommentinit0FunctionMutationupdateCommentinit0FunctionAppSyncFunction9C9EFBAD": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateCommentinit0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/06db846fd14e6fc371f22b12b5545ba8e2dbfeda85d8c8d586c71c282166657b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Comment/MutationupdateCommentinit0Function/MutationupdateCommentinit0Function.AppSyncFunction" - } - }, - "MutationupdateCommentauth0FunctionMutationupdateCommentauth0FunctionAppSyncFunction4E4C7C30": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "CommentDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateCommentauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/551c8985ebf3ca2b9dda2d756bd762bc2d7d9c413b7640b8a263975a00268670.vtl" - } - }, - "DependsOn": [ - "CommentDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Comment/MutationupdateCommentauth0Function/MutationupdateCommentauth0Function.AppSyncFunction" - } - }, - "MutationupdateCommentpostAuth0FunctionMutationupdateCommentpostAuth0FunctionAppSyncFunctionCDD716F2": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateCommentpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Comment/MutationupdateCommentpostAuth0Function/MutationupdateCommentpostAuth0Function.AppSyncFunction" - } - }, - "MutationUpdateCommentDataResolverFnMutationUpdateCommentDataResolverFnAppSyncFunctionB47372B5": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "CommentDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationUpdateCommentDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/474bf0776ec2164a13191d1a0a9e057154931e4918fea5086f49850d02a5371b.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "CommentDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Comment/MutationUpdateCommentDataResolverFn/MutationUpdateCommentDataResolverFn.AppSyncFunction" - } - }, - "UpdateCommentResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "FieldName": "updateComment", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationupdateCommentinit0FunctionMutationupdateCommentinit0FunctionAppSyncFunction9C9EFBAD", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationupdateCommentauth0FunctionMutationupdateCommentauth0FunctionAppSyncFunction4E4C7C30", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationupdateCommentpostAuth0FunctionMutationupdateCommentpostAuth0FunctionAppSyncFunctionCDD716F2", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationUpdateCommentDataResolverFnMutationUpdateCommentDataResolverFnAppSyncFunctionB47372B5", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "CommentTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Comment/mutationUpdateCommentResolver" - } - }, - "MutationdeleteCommentauth0FunctionMutationdeleteCommentauth0FunctionAppSyncFunction268B298A": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "CommentDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeleteCommentauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/236fd6e0db93ea7eeae6ed3165360d55d345f44c801ff526e4822df60ac8dbe0.vtl" - } - }, - "DependsOn": [ - "CommentDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Comment/MutationdeleteCommentauth0Function/MutationdeleteCommentauth0Function.AppSyncFunction" - } - }, - "MutationdeleteCommentpostAuth0FunctionMutationdeleteCommentpostAuth0FunctionAppSyncFunctionDFFD097E": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeleteCommentpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Comment/MutationdeleteCommentpostAuth0Function/MutationdeleteCommentpostAuth0Function.AppSyncFunction" - } - }, - "MutationDeleteCommentDataResolverFnMutationDeleteCommentDataResolverFnAppSyncFunctionD661C8CB": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "CommentDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationDeleteCommentDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4f7907d1209a2c9953a0c053df402c634e359546d70c7cc5c2e8e21ea734880f.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "CommentDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Comment/MutationDeleteCommentDataResolverFn/MutationDeleteCommentDataResolverFn.AppSyncFunction" - } - }, - "DeleteCommentResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "FieldName": "deleteComment", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationdeleteCommentauth0FunctionMutationdeleteCommentauth0FunctionAppSyncFunction268B298A", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationdeleteCommentpostAuth0FunctionMutationdeleteCommentpostAuth0FunctionAppSyncFunctionDFFD097E", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationDeleteCommentDataResolverFnMutationDeleteCommentDataResolverFnAppSyncFunctionD661C8CB", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "CommentTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Comment/mutationDeleteCommentResolver" - } - }, - "SubscriptiononCreateCommentauth0FunctionSubscriptiononCreateCommentauth0FunctionAppSyncFunction883537CC": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononCreateCommentauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/42461ccf669bff5cf74e51acdeb753b8b1cd7699273fa86b02b3d55b825a6dbf.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Comment/SubscriptiononCreateCommentauth0Function/SubscriptiononCreateCommentauth0Function.AppSyncFunction" - } - }, - "SubscriptiononCreateCommentpostAuth0FunctionSubscriptiononCreateCommentpostAuth0FunctionAppSyncFunction34E6A73D": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononCreateCommentpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Comment/SubscriptiononCreateCommentpostAuth0Function/SubscriptiononCreateCommentpostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnCreateCommentDataResolverFnSubscriptionOnCreateCommentDataResolverFnAppSyncFunction72E30EF8": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnCreateCommentDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Comment/SubscriptionOnCreateCommentDataResolverFn/SubscriptionOnCreateCommentDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononCreateCommentResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "FieldName": "onCreateComment", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononCreateCommentauth0FunctionSubscriptiononCreateCommentauth0FunctionAppSyncFunction883537CC", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononCreateCommentpostAuth0FunctionSubscriptiononCreateCommentpostAuth0FunctionAppSyncFunction34E6A73D", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnCreateCommentDataResolverFnSubscriptionOnCreateCommentDataResolverFnAppSyncFunction72E30EF8", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Comment/subscriptionOnCreateCommentResolver" - } - }, - "SubscriptiononUpdateCommentauth0FunctionSubscriptiononUpdateCommentauth0FunctionAppSyncFunction6F76395C": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononUpdateCommentauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/42461ccf669bff5cf74e51acdeb753b8b1cd7699273fa86b02b3d55b825a6dbf.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Comment/SubscriptiononUpdateCommentauth0Function/SubscriptiononUpdateCommentauth0Function.AppSyncFunction" - } - }, - "SubscriptiononUpdateCommentpostAuth0FunctionSubscriptiononUpdateCommentpostAuth0FunctionAppSyncFunction0EF93814": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononUpdateCommentpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Comment/SubscriptiononUpdateCommentpostAuth0Function/SubscriptiononUpdateCommentpostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnUpdateCommentDataResolverFnSubscriptionOnUpdateCommentDataResolverFnAppSyncFunction6B18681F": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnUpdateCommentDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Comment/SubscriptionOnUpdateCommentDataResolverFn/SubscriptionOnUpdateCommentDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononUpdateCommentResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "FieldName": "onUpdateComment", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononUpdateCommentauth0FunctionSubscriptiononUpdateCommentauth0FunctionAppSyncFunction6F76395C", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononUpdateCommentpostAuth0FunctionSubscriptiononUpdateCommentpostAuth0FunctionAppSyncFunction0EF93814", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnUpdateCommentDataResolverFnSubscriptionOnUpdateCommentDataResolverFnAppSyncFunction6B18681F", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Comment/subscriptionOnUpdateCommentResolver" - } - }, - "SubscriptiononDeleteCommentauth0FunctionSubscriptiononDeleteCommentauth0FunctionAppSyncFunctionA85E4D19": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononDeleteCommentauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/42461ccf669bff5cf74e51acdeb753b8b1cd7699273fa86b02b3d55b825a6dbf.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Comment/SubscriptiononDeleteCommentauth0Function/SubscriptiononDeleteCommentauth0Function.AppSyncFunction" - } - }, - "SubscriptiononDeleteCommentpostAuth0FunctionSubscriptiononDeleteCommentpostAuth0FunctionAppSyncFunction67A1094D": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononDeleteCommentpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Comment/SubscriptiononDeleteCommentpostAuth0Function/SubscriptiononDeleteCommentpostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnDeleteCommentDataResolverFnSubscriptionOnDeleteCommentDataResolverFnAppSyncFunctionB17CE9F9": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnDeleteCommentDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Comment/SubscriptionOnDeleteCommentDataResolverFn/SubscriptionOnDeleteCommentDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononDeleteCommentResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "FieldName": "onDeleteComment", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononDeleteCommentauth0FunctionSubscriptiononDeleteCommentauth0FunctionAppSyncFunctionA85E4D19", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononDeleteCommentpostAuth0FunctionSubscriptiononDeleteCommentpostAuth0FunctionAppSyncFunction67A1094D", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnDeleteCommentDataResolverFnSubscriptionOnDeleteCommentDataResolverFnAppSyncFunctionB17CE9F9", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Comment/subscriptionOnDeleteCommentResolver" - } - }, - "QuerycommentsByProductIdauth0FunctionQuerycommentsByProductIdauth0FunctionAppSyncFunction16C8F3B7": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerycommentsByProductIdauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fddbd22b259df4da4b959230f841620be1c5f553f4f3a632bde23b473ddce60a.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Comment/QuerycommentsByProductIdauth0Function/QuerycommentsByProductIdauth0Function.AppSyncFunction" - } - }, - "QuerycommentsByProductIdpostAuth0FunctionQuerycommentsByProductIdpostAuth0FunctionAppSyncFunctionA37AEC4C": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerycommentsByProductIdpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Comment/QuerycommentsByProductIdpostAuth0Function/QuerycommentsByProductIdpostAuth0Function.AppSyncFunction" - } - }, - "QueryCommentsByProductIdDataResolverFnQueryCommentsByProductIdDataResolverFnAppSyncFunction51D11782": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "CommentDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryCommentsByProductIdDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/ecc54c0fe25cd09d1ca80e87254b80f341a73033b231adbd63bf3be5ddb2a79a.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/098c998f215c333f57348ca8912f66057ae6b574fe34013033dc54362ee2372c.vtl" - } - }, - "DependsOn": [ - "CommentDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Comment/QueryCommentsByProductIdDataResolverFn/QueryCommentsByProductIdDataResolverFn.AppSyncFunction" - } - }, - "QuerycommentsByProductIdResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "FieldName": "commentsByProductId", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerycommentsByProductIdauth0FunctionQuerycommentsByProductIdauth0FunctionAppSyncFunction16C8F3B7", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerycommentsByProductIdpostAuth0FunctionQuerycommentsByProductIdpostAuth0FunctionAppSyncFunctionA37AEC4C", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryCommentsByProductIdDataResolverFnQueryCommentsByProductIdDataResolverFnAppSyncFunction51D11782", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"commentsByProductId\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "CommentTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Comment/queryCommentsByProductIdResolver" - } - }, - "CommentAuthorIdDataResolverFnCommentAuthorIdDataResolverFnAppSyncFunction70FFE37E": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "CommentAuthorIdDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/041534e5fd916595f752318f161512d7c7f83b9f2cf32d0f0be381c12253ff68.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/0b623cad229c95b6596975a39c8e10782a443b77ae62114e0e6592efcb147d0a.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Comment/CommentAuthorIdDataResolverFn/CommentAuthorIdDataResolverFn.AppSyncFunction" - } - }, - "CommentauthorIdResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "FieldName": "authorId", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "CommentAuthorIdDataResolverFnCommentAuthorIdDataResolverFnAppSyncFunction70FFE37E", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Comment\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"authorId\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Comment" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Comment/commentAuthorIdResolver" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOwW6DMAyGn6X34LV0h11Xqh63CXavTGJQCjgodlpViHefoFOnnX5/8if7zyF/3cF2gzfJrOuy3tcwfZAouUrRdqZo+AsjDqQUFygCO68+sClJQoqWTJFEw/CHDT9nvMl5cnfGIbgavrHu6YBCxuMAUxn6hx16mg2Oo9zZwnRc9WN9RMXqefI/nRLbpUQRuPFtirg2+v3cXynORvZnFCEVeF/CyB4OyXakS4F5cT+TjknNuq4UW8/tbDg4gou8XPMcdm+w3VzE+ywmVj8QlI/8AXh83Gc2AQAA" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Comment/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Outputs": { - "GetAttCommentTableStreamArn": { - "Description": "Your DynamoDB table StreamArn.", - "Value": { - "Fn::GetAtt": [ - "CommentTable", - "TableStreamArn" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "GetAtt:CommentTable:StreamArn" - ] - ] - } - } - }, - "GetAttCommentTableName": { - "Description": "Your DynamoDB table name.", - "Value": "Comment-3oy6oxkj6ffojmc2upd52ftdsq-main", - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "GetAtt:CommentTable:Name" - ] - ] - } - } - }, - "amplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataCommentCommentDataSource7F5D9C3FName": { - "Value": { - "Fn::GetAtt": [ - "CommentDataSource", - "Name" - ] - } - }, - "amplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataCommentCommentTable6DCC82BATableArn": { - "Value": { - "Fn::GetAtt": [ - "CommentTable", - "TableArn" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataConnectionStackNestedStackConne-14CH1K13V4BU2.description.txt b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataConnectionStackNestedStackConne-14CH1K13V4BU2.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataConnectionStackNestedStackConne-14CH1K13V4BU2.outputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataConnectionStackNestedStackConne-14CH1K13V4BU2.outputs.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataConnectionStackNestedStackConne-14CH1K13V4BU2.outputs.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataConnectionStackNestedStackConne-14CH1K13V4BU2.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataConnectionStackNestedStackConne-14CH1K13V4BU2.parameters.json deleted file mode 100644 index abb8b0a9781..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataConnectionStackNestedStackConne-14CH1K13V4BU2.parameters.json +++ /dev/null @@ -1,30 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataCommentNestedStackCommentNestedStackResource7E5BA67DOutputsamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataCommentCommentDataSource7F5D9C3FName", - "ParameterValue": "CommentTable" - }, - { - "ParameterKey": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId", - "ParameterValue": "3afyqracmndnzmjr344badj4ja" - }, - { - "ParameterKey": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataCommentNestedStackCommentNestedStackResource7E5BA67DOutputsamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataCommentCommentTable6DCC82BATableArn", - "ParameterValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Comment-3oy6oxkj6ffojmc2upd52ftdsq-main" - }, - { - "ParameterKey": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef", - "ParameterValue": "us-east-1:c464f123-eaf0-4289-98b3-381197fa3d7f" - }, - { - "ParameterKey": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref", - "ParameterValue": "amplify-productcatalog-ge-amplifyAuthauthenticatedU-7u6GoubHxSy7" - }, - { - "ParameterKey": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef", - "ParameterValue": "amplify-productcatalog-ge-amplifyAuthunauthenticate-JMPocA8XyO6M" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataConnectionStackNestedStackConne-14CH1K13V4BU2.template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataConnectionStackNestedStackConne-14CH1K13V4BU2.template.json deleted file mode 100644 index 9d274055b8f..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataConnectionStackNestedStackConne-14CH1K13V4BU2.template.json +++ /dev/null @@ -1,440 +0,0 @@ -{ - "Resources": { - "Productcommentsauth0FunctionProductcommentsauth0FunctionAppSyncFunction815DC611": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "Productcommentsauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/19d692f23f76a01898e4b86d8c1a52b7fffdc5da576d1ced4f1661f7d51a727c.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/ConnectionStack/Productcommentsauth0Function/Productcommentsauth0Function.AppSyncFunction" - } - }, - "ProductCommentsDataResolverFnProductCommentsDataResolverFnAppSyncFunction7365B9B6": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataCommentNestedStackCommentNestedStackResource7E5BA67DOutputsamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataCommentCommentDataSource7F5D9C3FName" - }, - "FunctionVersion": "2018-05-29", - "Name": "ProductCommentsDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/034326f059a57bbe900e3eadfd360f7cc9d6b74f9148c3ebf24d322f09376b5a.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/49e7a1f2fb4c809b82bed6b0242a2a3bcfa2c5276ebd2539ff330fee36f8fe18.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/ConnectionStack/ProductCommentsDataResolverFn/ProductCommentsDataResolverFn.AppSyncFunction" - } - }, - "ProductcommentsResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "FieldName": "comments", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "Productcommentsauth0FunctionProductcommentsauth0FunctionAppSyncFunction815DC611", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "ProductCommentsDataResolverFnProductCommentsDataResolverFnAppSyncFunction7365B9B6", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Product\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"comments\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataCommentNestedStackCommentNestedStackResource7E5BA67DOutputsamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataCommentCommentTable6DCC82BATableArn" - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Product" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/ConnectionStack/productCommentsResolver" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXMsQ6CMBCA4WdhLycUB1chcXSAByBnOUgBr6TXQgzh3Q06ffmXX4O+5pAluElquimd7Qv2J0mgrgloJoWbtLsULYpQELifKCmgjGaiUKKQwmWRDxvYq54fkU2wjivHvR2ixzNU1XNN4uaV/HGo36MJOFgeDsWuIxjlsmoN+Q2yZBRrUx852DdB/fcLM5uzFKcAAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/ConnectionStack/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId": { - "Type": "String" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name": { - "Type": "String" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataCommentNestedStackCommentNestedStackResource7E5BA67DOutputsamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataCommentCommentDataSource7F5D9C3FName": { - "Type": "String" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataCommentNestedStackCommentNestedStackResource7E5BA67DOutputsamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataCommentCommentTable6DCC82BATableArn": { - "Type": "String" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref": { - "Type": "String" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef": { - "Type": "String" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef": { - "Type": "String" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataFunctionDirectiveStackNestedSta-1BS3LXKQVDIA.description.txt b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataFunctionDirectiveStackNestedSta-1BS3LXKQVDIA.description.txt deleted file mode 100644 index 87d574fa42f..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataFunctionDirectiveStackNestedSta-1BS3LXKQVDIA.description.txt +++ /dev/null @@ -1 +0,0 @@ -An auto-generated nested stack for the @function directive. \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataFunctionDirectiveStackNestedSta-1BS3LXKQVDIA.outputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataFunctionDirectiveStackNestedSta-1BS3LXKQVDIA.outputs.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataFunctionDirectiveStackNestedSta-1BS3LXKQVDIA.outputs.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataFunctionDirectiveStackNestedSta-1BS3LXKQVDIA.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataFunctionDirectiveStackNestedSta-1BS3LXKQVDIA.parameters.json deleted file mode 100644 index 3bd71908d18..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataFunctionDirectiveStackNestedSta-1BS3LXKQVDIA.parameters.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId", - "ParameterValue": "3afyqracmndnzmjr344badj4ja" - }, - { - "ParameterKey": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef", - "ParameterValue": "us-east-1:c464f123-eaf0-4289-98b3-381197fa3d7f" - }, - { - "ParameterKey": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref", - "ParameterValue": "amplify-productcatalog-ge-amplifyAuthauthenticatedU-7u6GoubHxSy7" - }, - { - "ParameterKey": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef", - "ParameterValue": "amplify-productcatalog-ge-amplifyAuthunauthenticate-JMPocA8XyO6M" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataFunctionDirectiveStackNestedSta-1BS3LXKQVDIA.template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataFunctionDirectiveStackNestedSta-1BS3LXKQVDIA.template.json deleted file mode 100644 index 397647855ea..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataFunctionDirectiveStackNestedSta-1BS3LXKQVDIA.template.json +++ /dev/null @@ -1,556 +0,0 @@ -{ - "Description": "An auto-generated nested stack for the @function directive.", - "AWSTemplateFormatVersion": "2010-09-09", - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - "NONE", - "NONE" - ] - } - ] - }, - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Resources": { - "LowstockproductsGen2MainLambdaDataSourceServiceRoleB6CBBDA5": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/FunctionDirectiveStack/LowstockproductsGen2MainLambdaDataSource/ServiceRole/Resource" - } - }, - "LowstockproductsGen2MainLambdaDataSourceServiceRoleDefaultPolicyEFAB1392": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "lambda:InvokeFunction", - "Effect": "Allow", - "Resource": [ - { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:lowstockproducts-gen2-main", - {} - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:lowstockproducts-gen2-main" - } - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:lowstockproducts-gen2-main", - {} - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:lowstockproducts-gen2-main" - } - ] - }, - ":*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "LowstockproductsGen2MainLambdaDataSourceServiceRoleDefaultPolicyEFAB1392", - "Roles": [ - { - "Ref": "LowstockproductsGen2MainLambdaDataSourceServiceRoleB6CBBDA5" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/FunctionDirectiveStack/LowstockproductsGen2MainLambdaDataSource/ServiceRole/DefaultPolicy/Resource" - } - }, - "LowstockproductsGen2MainLambdaDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "LambdaConfig": { - "LambdaFunctionArn": { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:lowstockproducts-gen2-main", - {} - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:lowstockproducts-gen2-main" - } - ] - } - }, - "Name": "LowstockproductsGen2MainLambdaDataSource", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "LowstockproductsGen2MainLambdaDataSourceServiceRoleB6CBBDA5", - "Arn" - ] - }, - "Type": "AWS_LAMBDA" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/FunctionDirectiveStack/LowstockproductsGen2MainLambdaDataSource/Resource" - } - }, - "InvokeLowstockproductsGen2MainLambdaDataSourceInvokeLowstockproductsGen2MainLambdaDataSourceAppSyncFunction518A14DE": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "LowstockproductsGen2MainLambdaDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "InvokeLowstockproductsGen2MainLambdaDataSource", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9052ad9a2afc16177c1b8220b7dc6007037c95f168e001ca219e59354e1cb630.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a20e304512b1fde77dc16ed9d5e0ed03817afcab629ce87ef11c99877b7b1e30.vtl" - } - }, - "DependsOn": [ - "LowstockproductsGen2MainLambdaDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/FunctionDirectiveStack/InvokeLowstockproductsGen2MainLambdaDataSource/InvokeLowstockproductsGen2MainLambdaDataSource.AppSyncFunction" - } - }, - "QuerycheckLowStockResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "FieldName": "checkLowStock", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QueryCheckLowStockAuthFNQueryCheckLowStockAuthFNAppSyncFunction691D681D", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "InvokeLowstockproductsGen2MainLambdaDataSourceInvokeLowstockproductsGen2MainLambdaDataSourceAppSyncFunction518A14DE", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"checkLowStock\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n{}\n## [End] Stash resolver specific context.. **" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/387d5992f5fc03d05de27289457dcc374a84c42a889acb504aff1031047dde00.vtl" - }, - "TypeName": "Query" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/FunctionDirectiveStack/queryCheckLowStockResolver" - } - }, - "QueryCheckLowStockAuthFNQueryCheckLowStockAuthFNAppSyncFunction691D681D": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryCheckLowStockAuthFN", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/0786554f6c2a0e8f6f26296af55c9fbcab6d462608d0e6622fa29a4767950197.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/FunctionDirectiveStack/QueryCheckLowStockAuthFN/QueryCheckLowStockAuthFN.AppSyncFunction" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOQW/CMAyFfwv31IPCYdfRaadpmtofgEziVqapg+oEhKr+d5SgHXb6/J79nlxDfdjBdoN3rawbK89nWH5II7kuoh1N00sTxHHkIAbvelo8TmeH8JXEZvOISgavV32IheW7LD8xYhfSbCnn/6u/XBOk5yHNWJqbXlrS4G80r4ZxgqUNvtwX/gbP9pHla1qN7k+oSlHhI8PoHo7JjhTzP6spZhdxYBlWI8ERXPTtVtewe4ft5qLM1Zwk8kTQvvgElyxBfQsBAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/FunctionDirectiveStack/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Parameters": { - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId": { - "Type": "String" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref": { - "Type": "String" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef": { - "Type": "String" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef": { - "Type": "String" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name": { - "Type": "String" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataProductNestedStackProductNested-94KUT6LENLW2.description.txt b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataProductNestedStackProductNested-94KUT6LENLW2.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataProductNestedStackProductNested-94KUT6LENLW2.outputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataProductNestedStackProductNested-94KUT6LENLW2.outputs.json deleted file mode 100644 index 0147545f543..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataProductNestedStackProductNested-94KUT6LENLW2.outputs.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "OutputKey": "GetAttProductTableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Product-3oy6oxkj6ffojmc2upd52ftdsq-main/stream/2026-03-07T14:16:20.704", - "Description": "Your DynamoDB table StreamArn.", - "ExportName": "3afyqracmndnzmjr344badj4ja:GetAtt:ProductTable:StreamArn" - }, - { - "OutputKey": "GetAttProductTableName", - "OutputValue": "Product-3oy6oxkj6ffojmc2upd52ftdsq-main", - "Description": "Your DynamoDB table name.", - "ExportName": "3afyqracmndnzmjr344badj4ja:GetAtt:ProductTable:Name" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataProductNestedStackProductNested-94KUT6LENLW2.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataProductNestedStackProductNested-94KUT6LENLW2.parameters.json deleted file mode 100644 index 345b7898056..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataProductNestedStackProductNested-94KUT6LENLW2.parameters.json +++ /dev/null @@ -1,46 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource48E34D24Outputsamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataAmplifyTableManagerTableMa77FBE8F3", - "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-productcatalog-ge-TableManagerCustomProvid-jl7Q3dvgUQ4v" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "true" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId", - "ParameterValue": "3afyqracmndnzmjr344badj4ja" - }, - { - "ParameterKey": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef", - "ParameterValue": "us-east-1:c464f123-eaf0-4289-98b3-381197fa3d7f" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref", - "ParameterValue": "amplify-productcatalog-ge-amplifyAuthauthenticatedU-7u6GoubHxSy7" - }, - { - "ParameterKey": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef", - "ParameterValue": "amplify-productcatalog-ge-amplifyAuthunauthenticate-JMPocA8XyO6M" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataProductNestedStackProductNested-94KUT6LENLW2.template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataProductNestedStackProductNested-94KUT6LENLW2.template.json deleted file mode 100644 index dd8f2d848a1..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataProductNestedStackProductNested-94KUT6LENLW2.template.json +++ /dev/null @@ -1,1973 +0,0 @@ -{ - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource48E34D24Outputsamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataAmplifyTableManagerTableMa77FBE8F3": { - "Type": "String" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId": { - "Type": "String" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name": { - "Type": "String" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref": { - "Type": "String" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef": { - "Type": "String" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef": { - "Type": "String" - } - }, - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - "NONE", - "NONE" - ] - } - ] - }, - "ShouldUsePayPerRequestBilling": { - "Fn::Equals": [ - { - "Ref": "DynamoDBBillingMode" - }, - "PAY_PER_REQUEST" - ] - }, - "ShouldUsePointInTimeRecovery": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "true" - ] - }, - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Resources": { - "ProductTable": { - "Type": "Custom::ImportedAmplifyDynamoDBTable", - "Properties": { - "ServiceToken": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource48E34D24Outputsamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataAmplifyTableManagerTableMa77FBE8F3" - }, - "tableName": "Product-3oy6oxkj6ffojmc2upd52ftdsq-main", - "attributeDefinitions": [ - { - "attributeName": "id", - "attributeType": "S" - } - ], - "keySchema": [ - { - "attributeName": "id", - "keyType": "HASH" - } - ], - "provisionedThroughput": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - { - "Ref": "AWS::NoValue" - }, - { - "ReadCapacityUnits": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "WriteCapacityUnits": { - "Ref": "DynamoDBModelTableWriteIOPS" - } - } - ] - }, - "sseSpecification": { - "sseEnabled": false - }, - "streamSpecification": { - "streamViewType": "NEW_AND_OLD_IMAGES" - }, - "deletionProtectionEnabled": true, - "allowDestructiveGraphqlSchemaUpdates": true, - "replaceTableUponGsiUpdate": false, - "isImported": true, - "pointInTimeRecoverySpecification": { - "Fn::If": [ - "ShouldUsePointInTimeRecovery", - { - "PointInTimeRecoveryEnabled": true - }, - { - "Ref": "AWS::NoValue" - } - ] - }, - "billingMode": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - "PAY_PER_REQUEST", - { - "Ref": "AWS::NoValue" - } - ] - } - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain", - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Product/ProductTable/Default/Default" - } - }, - "ProductIAMRole3DD24A40": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:DeleteItem", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:Query", - "dynamodb:UpdateItem", - "dynamodb:ConditionCheckItem", - "dynamodb:DescribeTable", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", - { - "tablename": "Product-3oy6oxkj6ffojmc2upd52ftdsq-main" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", - { - "tablename": "Product-3oy6oxkj6ffojmc2upd52ftdsq-main" - } - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "DynamoDBAccess" - } - ], - "RoleName": { - "Fn::Join": [ - "", - [ - "ProductIAMRoledb6df0-", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "-NONE" - ] - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Product/ProductIAMRole/Resource" - } - }, - "ProductDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DynamoDBConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "TableName": { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "ProductTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - } - }, - "Name": "ProductTable", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "ProductIAMRole3DD24A40", - "Arn" - ] - }, - "Type": "AMAZON_DYNAMODB" - }, - "DependsOn": [ - "ProductIAMRole3DD24A40" - ], - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Product/ProductDataSource/Resource" - } - }, - "QuerygetProductauth0FunctionQuerygetProductauth0FunctionAppSyncFunction11A92755": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetProductauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fc08bc2ef9ba0cfaec6ca6b995100cef403dc3175e48390008f0c858dfc423c5.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Product/QuerygetProductauth0Function/QuerygetProductauth0Function.AppSyncFunction" - } - }, - "QuerygetProductpostAuth0FunctionQuerygetProductpostAuth0FunctionAppSyncFunction4933AC3A": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetProductpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Product/QuerygetProductpostAuth0Function/QuerygetProductpostAuth0Function.AppSyncFunction" - } - }, - "QueryGetProductDataResolverFnQueryGetProductDataResolverFnAppSyncFunction059C4D73": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ProductDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryGetProductDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/08f4d557693d96c1a4efba0f9dc91330e4b19772fd5477c156468843e3d9cb5e.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4c6a2d29f01c6091bd1d9afe16e5849d456c96f17c3b215938c8067399532719.vtl" - } - }, - "DependsOn": [ - "ProductDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Product/QueryGetProductDataResolverFn/QueryGetProductDataResolverFn.AppSyncFunction" - } - }, - "GetProductResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "FieldName": "getProduct", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerygetProductauth0FunctionQuerygetProductauth0FunctionAppSyncFunction11A92755", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetProductpostAuth0FunctionQuerygetProductpostAuth0FunctionAppSyncFunction4933AC3A", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryGetProductDataResolverFnQueryGetProductDataResolverFnAppSyncFunction059C4D73", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getProduct\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "ProductTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Product/queryGetProductResolver" - } - }, - "QuerylistProductsauth0FunctionQuerylistProductsauth0FunctionAppSyncFunction621FD020": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerylistProductsauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fc08bc2ef9ba0cfaec6ca6b995100cef403dc3175e48390008f0c858dfc423c5.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Product/QuerylistProductsauth0Function/QuerylistProductsauth0Function.AppSyncFunction" - } - }, - "QuerylistProductspostAuth0FunctionQuerylistProductspostAuth0FunctionAppSyncFunction08A78B52": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerylistProductspostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Product/QuerylistProductspostAuth0Function/QuerylistProductspostAuth0Function.AppSyncFunction" - } - }, - "QueryListProductsDataResolverFnQueryListProductsDataResolverFnAppSyncFunction14032624": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ProductDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryListProductsDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9fcbe070ecd3023c5bf5b966fa9584757db9762eef123bad0820bd87591b2174.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/cc01911d0269d4080ea57505dc445dfc315ef7ad85d3d9d4ea1357858bff451d.vtl" - } - }, - "DependsOn": [ - "ProductDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Product/QueryListProductsDataResolverFn/QueryListProductsDataResolverFn.AppSyncFunction" - } - }, - "ListProductResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "FieldName": "listProducts", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerylistProductsauth0FunctionQuerylistProductsauth0FunctionAppSyncFunction621FD020", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerylistProductspostAuth0FunctionQuerylistProductspostAuth0FunctionAppSyncFunction08A78B52", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryListProductsDataResolverFnQueryListProductsDataResolverFnAppSyncFunction14032624", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listProducts\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "ProductTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Product/queryListProductsResolver" - } - }, - "MutationcreateProductinit0FunctionMutationcreateProductinit0FunctionAppSyncFunction23EC383F": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateProductinit0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a183ddccbd956316c38ef97177b8f088ef0826f62023323f5ae6053d348ccffc.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Product/MutationcreateProductinit0Function/MutationcreateProductinit0Function.AppSyncFunction" - } - }, - "MutationcreateProductauth0FunctionMutationcreateProductauth0FunctionAppSyncFunctionD9DCDF6C": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateProductauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4a86c52ff2a2d0bd22e0495119880b9fd5ebe148ae6e76030b3ef0274f02e9f6.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Product/MutationcreateProductauth0Function/MutationcreateProductauth0Function.AppSyncFunction" - } - }, - "MutationcreateProductpostAuth0FunctionMutationcreateProductpostAuth0FunctionAppSyncFunctionE9D0520F": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateProductpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Product/MutationcreateProductpostAuth0Function/MutationcreateProductpostAuth0Function.AppSyncFunction" - } - }, - "MutationCreateProductDataResolverFnMutationCreateProductDataResolverFnAppSyncFunctionBCF75A20": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ProductDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationCreateProductDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/0c112bd477d9e36356f03441397b5d98d3988366e25bc866ececd6587baa69af.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "ProductDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Product/MutationCreateProductDataResolverFn/MutationCreateProductDataResolverFn.AppSyncFunction" - } - }, - "CreateProductResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "FieldName": "createProduct", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationcreateProductinit0FunctionMutationcreateProductinit0FunctionAppSyncFunction23EC383F", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationcreateProductauth0FunctionMutationcreateProductauth0FunctionAppSyncFunctionD9DCDF6C", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationcreateProductpostAuth0FunctionMutationcreateProductpostAuth0FunctionAppSyncFunctionE9D0520F", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationCreateProductDataResolverFnMutationCreateProductDataResolverFnAppSyncFunctionBCF75A20", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createProduct\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "ProductTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Product/mutationCreateProductResolver" - } - }, - "MutationupdateProductinit0FunctionMutationupdateProductinit0FunctionAppSyncFunctionE6639374": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateProductinit0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/06db846fd14e6fc371f22b12b5545ba8e2dbfeda85d8c8d586c71c282166657b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Product/MutationupdateProductinit0Function/MutationupdateProductinit0Function.AppSyncFunction" - } - }, - "MutationupdateProductauth0FunctionMutationupdateProductauth0FunctionAppSyncFunction608283E8": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ProductDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateProductauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/28e083cd42813e8939ec8808fd1a712b551c1a0768c8c1d0e8d53bfc38ca1ee2.vtl" - } - }, - "DependsOn": [ - "ProductDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Product/MutationupdateProductauth0Function/MutationupdateProductauth0Function.AppSyncFunction" - } - }, - "MutationupdateProductpostAuth0FunctionMutationupdateProductpostAuth0FunctionAppSyncFunction9B03782C": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateProductpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Product/MutationupdateProductpostAuth0Function/MutationupdateProductpostAuth0Function.AppSyncFunction" - } - }, - "MutationUpdateProductDataResolverFnMutationUpdateProductDataResolverFnAppSyncFunction51653259": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ProductDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationUpdateProductDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/474bf0776ec2164a13191d1a0a9e057154931e4918fea5086f49850d02a5371b.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "ProductDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Product/MutationUpdateProductDataResolverFn/MutationUpdateProductDataResolverFn.AppSyncFunction" - } - }, - "UpdateProductResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "FieldName": "updateProduct", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationupdateProductinit0FunctionMutationupdateProductinit0FunctionAppSyncFunctionE6639374", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationupdateProductauth0FunctionMutationupdateProductauth0FunctionAppSyncFunction608283E8", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationupdateProductpostAuth0FunctionMutationupdateProductpostAuth0FunctionAppSyncFunction9B03782C", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationUpdateProductDataResolverFnMutationUpdateProductDataResolverFnAppSyncFunction51653259", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateProduct\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "ProductTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Product/mutationUpdateProductResolver" - } - }, - "MutationdeleteProductauth0FunctionMutationdeleteProductauth0FunctionAppSyncFunction2D3EC535": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ProductDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeleteProductauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/084796988d30d89af3a6bf7e3bd77d99aec7a3cccb1c56ac42ca9de77906274e.vtl" - } - }, - "DependsOn": [ - "ProductDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Product/MutationdeleteProductauth0Function/MutationdeleteProductauth0Function.AppSyncFunction" - } - }, - "MutationdeleteProductpostAuth0FunctionMutationdeleteProductpostAuth0FunctionAppSyncFunction3865138D": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeleteProductpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Product/MutationdeleteProductpostAuth0Function/MutationdeleteProductpostAuth0Function.AppSyncFunction" - } - }, - "MutationDeleteProductDataResolverFnMutationDeleteProductDataResolverFnAppSyncFunction06F6C758": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ProductDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationDeleteProductDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4f7907d1209a2c9953a0c053df402c634e359546d70c7cc5c2e8e21ea734880f.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "ProductDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Product/MutationDeleteProductDataResolverFn/MutationDeleteProductDataResolverFn.AppSyncFunction" - } - }, - "DeleteProductResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "FieldName": "deleteProduct", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationdeleteProductauth0FunctionMutationdeleteProductauth0FunctionAppSyncFunction2D3EC535", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationdeleteProductpostAuth0FunctionMutationdeleteProductpostAuth0FunctionAppSyncFunction3865138D", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationDeleteProductDataResolverFnMutationDeleteProductDataResolverFnAppSyncFunction06F6C758", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteProduct\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "ProductTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Product/mutationDeleteProductResolver" - } - }, - "SubscriptiononCreateProductauth0FunctionSubscriptiononCreateProductauth0FunctionAppSyncFunction5B0C8398": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononCreateProductauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/48e9848e8fe1466ed0f36f7c3c8edc6b504cccad5b4945e4513ee3ad2192abe0.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Product/SubscriptiononCreateProductauth0Function/SubscriptiononCreateProductauth0Function.AppSyncFunction" - } - }, - "SubscriptiononCreateProductpostAuth0FunctionSubscriptiononCreateProductpostAuth0FunctionAppSyncFunction5CA0C71B": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononCreateProductpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Product/SubscriptiononCreateProductpostAuth0Function/SubscriptiononCreateProductpostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnCreateProductDataResolverFnSubscriptionOnCreateProductDataResolverFnAppSyncFunction5EA5372E": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnCreateProductDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Product/SubscriptionOnCreateProductDataResolverFn/SubscriptionOnCreateProductDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononCreateProductResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "FieldName": "onCreateProduct", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononCreateProductauth0FunctionSubscriptiononCreateProductauth0FunctionAppSyncFunction5B0C8398", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononCreateProductpostAuth0FunctionSubscriptiononCreateProductpostAuth0FunctionAppSyncFunction5CA0C71B", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnCreateProductDataResolverFnSubscriptionOnCreateProductDataResolverFnAppSyncFunction5EA5372E", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateProduct\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Product/subscriptionOnCreateProductResolver" - } - }, - "SubscriptiononUpdateProductauth0FunctionSubscriptiononUpdateProductauth0FunctionAppSyncFunction9C339378": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononUpdateProductauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/48e9848e8fe1466ed0f36f7c3c8edc6b504cccad5b4945e4513ee3ad2192abe0.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Product/SubscriptiononUpdateProductauth0Function/SubscriptiononUpdateProductauth0Function.AppSyncFunction" - } - }, - "SubscriptiononUpdateProductpostAuth0FunctionSubscriptiononUpdateProductpostAuth0FunctionAppSyncFunction328BB63E": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononUpdateProductpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Product/SubscriptiononUpdateProductpostAuth0Function/SubscriptiononUpdateProductpostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnUpdateProductDataResolverFnSubscriptionOnUpdateProductDataResolverFnAppSyncFunction33B56D28": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnUpdateProductDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Product/SubscriptionOnUpdateProductDataResolverFn/SubscriptionOnUpdateProductDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononUpdateProductResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "FieldName": "onUpdateProduct", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononUpdateProductauth0FunctionSubscriptiononUpdateProductauth0FunctionAppSyncFunction9C339378", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononUpdateProductpostAuth0FunctionSubscriptiononUpdateProductpostAuth0FunctionAppSyncFunction328BB63E", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnUpdateProductDataResolverFnSubscriptionOnUpdateProductDataResolverFnAppSyncFunction33B56D28", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateProduct\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Product/subscriptionOnUpdateProductResolver" - } - }, - "SubscriptiononDeleteProductauth0FunctionSubscriptiononDeleteProductauth0FunctionAppSyncFunction3CDB90A3": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononDeleteProductauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/48e9848e8fe1466ed0f36f7c3c8edc6b504cccad5b4945e4513ee3ad2192abe0.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Product/SubscriptiononDeleteProductauth0Function/SubscriptiononDeleteProductauth0Function.AppSyncFunction" - } - }, - "SubscriptiononDeleteProductpostAuth0FunctionSubscriptiononDeleteProductpostAuth0FunctionAppSyncFunctionB9DA21B4": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononDeleteProductpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Product/SubscriptiononDeleteProductpostAuth0Function/SubscriptiononDeleteProductpostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnDeleteProductDataResolverFnSubscriptionOnDeleteProductDataResolverFnAppSyncFunctionA173C409": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnDeleteProductDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Product/SubscriptionOnDeleteProductDataResolverFn/SubscriptionOnDeleteProductDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononDeleteProductResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "FieldName": "onDeleteProduct", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononDeleteProductauth0FunctionSubscriptiononDeleteProductauth0FunctionAppSyncFunction3CDB90A3", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononDeleteProductpostAuth0FunctionSubscriptiononDeleteProductpostAuth0FunctionAppSyncFunctionB9DA21B4", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnDeleteProductDataResolverFnSubscriptionOnDeleteProductDataResolverFnAppSyncFunctionA173C409", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteProduct\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Product/subscriptionOnDeleteProductResolver" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOwW6DMAyGn6X34LV0h11Xqh63CXavTGJQCjgodlpViHefoFOnnX5/8if7zyF/3cF2gzfJrOuy3tcwfZAouUrRdqZo+AsjDqQUFygCO68+sClJQoqWTJFEw/CHDT9nvMl5cnfGIbgavrHu6YBCxuMAUxn6hx16mg2Oo9zZwnRc9WN9RMXqefI/nRLbpUQRuPFtirg2+v3cXynORvZnFCEVeF/CyB4OyXakS4F5cT+TjknNuq4UW8/tbDg4gou8XPMcdm+w3VzE+ywmVj8QlI/8AXh83Gc2AQAA" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Product/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Outputs": { - "GetAttProductTableStreamArn": { - "Description": "Your DynamoDB table StreamArn.", - "Value": { - "Fn::GetAtt": [ - "ProductTable", - "TableStreamArn" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "GetAtt:ProductTable:StreamArn" - ] - ] - } - } - }, - "GetAttProductTableName": { - "Description": "Your DynamoDB table name.", - "Value": "Product-3oy6oxkj6ffojmc2upd52ftdsq-main", - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "GetAtt:ProductTable:Name" - ] - ] - } - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataUserNestedStackUserNestedStackR-BDNKNCM67IKR.description.txt b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataUserNestedStackUserNestedStackR-BDNKNCM67IKR.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataUserNestedStackUserNestedStackR-BDNKNCM67IKR.outputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataUserNestedStackUserNestedStackR-BDNKNCM67IKR.outputs.json deleted file mode 100644 index 6509cc254fb..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataUserNestedStackUserNestedStackR-BDNKNCM67IKR.outputs.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "OutputKey": "GetAttUserTableName", - "OutputValue": "User-3oy6oxkj6ffojmc2upd52ftdsq-main", - "Description": "Your DynamoDB table name.", - "ExportName": "3afyqracmndnzmjr344badj4ja:GetAtt:UserTable:Name" - }, - { - "OutputKey": "GetAttUserTableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/User-3oy6oxkj6ffojmc2upd52ftdsq-main/stream/2026-03-07T14:15:18.466", - "Description": "Your DynamoDB table StreamArn.", - "ExportName": "3afyqracmndnzmjr344badj4ja:GetAtt:UserTable:StreamArn" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataUserNestedStackUserNestedStackR-BDNKNCM67IKR.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataUserNestedStackUserNestedStackR-BDNKNCM67IKR.parameters.json deleted file mode 100644 index 345b7898056..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataUserNestedStackUserNestedStackR-BDNKNCM67IKR.parameters.json +++ /dev/null @@ -1,46 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource48E34D24Outputsamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataAmplifyTableManagerTableMa77FBE8F3", - "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-productcatalog-ge-TableManagerCustomProvid-jl7Q3dvgUQ4v" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "true" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId", - "ParameterValue": "3afyqracmndnzmjr344badj4ja" - }, - { - "ParameterKey": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef", - "ParameterValue": "us-east-1:c464f123-eaf0-4289-98b3-381197fa3d7f" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref", - "ParameterValue": "amplify-productcatalog-ge-amplifyAuthauthenticatedU-7u6GoubHxSy7" - }, - { - "ParameterKey": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef", - "ParameterValue": "amplify-productcatalog-ge-amplifyAuthunauthenticate-JMPocA8XyO6M" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataUserNestedStackUserNestedStackR-BDNKNCM67IKR.template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataUserNestedStackUserNestedStackR-BDNKNCM67IKR.template.json deleted file mode 100644 index 7f9f6879cbd..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79-amplifyDataUserNestedStackUserNestedStackR-BDNKNCM67IKR.template.json +++ /dev/null @@ -1,2060 +0,0 @@ -{ - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource48E34D24Outputsamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataAmplifyTableManagerTableMa77FBE8F3": { - "Type": "String" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId": { - "Type": "String" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name": { - "Type": "String" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref": { - "Type": "String" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef": { - "Type": "String" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef": { - "Type": "String" - } - }, - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - "NONE", - "NONE" - ] - } - ] - }, - "ShouldUsePayPerRequestBilling": { - "Fn::Equals": [ - { - "Ref": "DynamoDBBillingMode" - }, - "PAY_PER_REQUEST" - ] - }, - "ShouldUsePointInTimeRecovery": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "true" - ] - }, - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Resources": { - "UserTable": { - "Type": "Custom::ImportedAmplifyDynamoDBTable", - "Properties": { - "ServiceToken": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource48E34D24Outputsamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataAmplifyTableManagerTableMa77FBE8F3" - }, - "tableName": "User-3oy6oxkj6ffojmc2upd52ftdsq-main", - "attributeDefinitions": [ - { - "attributeName": "id", - "attributeType": "S" - } - ], - "keySchema": [ - { - "attributeName": "id", - "keyType": "HASH" - } - ], - "provisionedThroughput": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - { - "Ref": "AWS::NoValue" - }, - { - "ReadCapacityUnits": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "WriteCapacityUnits": { - "Ref": "DynamoDBModelTableWriteIOPS" - } - } - ] - }, - "sseSpecification": { - "sseEnabled": false - }, - "streamSpecification": { - "streamViewType": "NEW_AND_OLD_IMAGES" - }, - "deletionProtectionEnabled": true, - "allowDestructiveGraphqlSchemaUpdates": true, - "replaceTableUponGsiUpdate": false, - "isImported": true, - "pointInTimeRecoverySpecification": { - "Fn::If": [ - "ShouldUsePointInTimeRecovery", - { - "PointInTimeRecoveryEnabled": true - }, - { - "Ref": "AWS::NoValue" - } - ] - }, - "billingMode": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - "PAY_PER_REQUEST", - { - "Ref": "AWS::NoValue" - } - ] - } - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain", - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/User/UserTable/Default/Default" - } - }, - "UserIAMRole93CEE926": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:DeleteItem", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:Query", - "dynamodb:UpdateItem", - "dynamodb:ConditionCheckItem", - "dynamodb:DescribeTable", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", - { - "tablename": "User-3oy6oxkj6ffojmc2upd52ftdsq-main" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", - { - "tablename": "User-3oy6oxkj6ffojmc2upd52ftdsq-main" - } - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "DynamoDBAccess" - } - ], - "RoleName": { - "Fn::Join": [ - "", - [ - "UserIAMRole0e5381-", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "-NONE" - ] - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/User/UserIAMRole/Resource" - } - }, - "UserDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DynamoDBConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "TableName": { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "UserTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - } - }, - "Name": "UserTable", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "UserIAMRole93CEE926", - "Arn" - ] - }, - "Type": "AMAZON_DYNAMODB" - }, - "DependsOn": [ - "UserIAMRole93CEE926" - ], - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/User/UserDataSource/Resource" - } - }, - "QuerygetUserauth0FunctionQuerygetUserauth0FunctionAppSyncFunction9E6250B0": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetUserauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fbd21e9b79a4a24ea24fbe0658b32e1727d47bf3420300b297bfc012f9ebdb6b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/User/QuerygetUserauth0Function/QuerygetUserauth0Function.AppSyncFunction" - } - }, - "QuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction2792AC60": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetUserpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/User/QuerygetUserpostAuth0Function/QuerygetUserpostAuth0Function.AppSyncFunction" - } - }, - "QueryGetUserDataResolverFnQueryGetUserDataResolverFnAppSyncFunction36A3E4CF": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "UserDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryGetUserDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/08f4d557693d96c1a4efba0f9dc91330e4b19772fd5477c156468843e3d9cb5e.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4c6a2d29f01c6091bd1d9afe16e5849d456c96f17c3b215938c8067399532719.vtl" - } - }, - "DependsOn": [ - "UserDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/User/QueryGetUserDataResolverFn/QueryGetUserDataResolverFn.AppSyncFunction" - } - }, - "GetUserResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "FieldName": "getUser", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerygetUserauth0FunctionQuerygetUserauth0FunctionAppSyncFunction9E6250B0", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction2792AC60", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryGetUserDataResolverFnQueryGetUserDataResolverFnAppSyncFunction36A3E4CF", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getUser\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "UserTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/User/queryGetUserResolver" - } - }, - "QuerylistUsersauth0FunctionQuerylistUsersauth0FunctionAppSyncFunctionA1FF61AB": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerylistUsersauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fbd21e9b79a4a24ea24fbe0658b32e1727d47bf3420300b297bfc012f9ebdb6b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/User/QuerylistUsersauth0Function/QuerylistUsersauth0Function.AppSyncFunction" - } - }, - "QuerylistUserspostAuth0FunctionQuerylistUserspostAuth0FunctionAppSyncFunction37C5583D": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerylistUserspostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/User/QuerylistUserspostAuth0Function/QuerylistUserspostAuth0Function.AppSyncFunction" - } - }, - "QueryListUsersDataResolverFnQueryListUsersDataResolverFnAppSyncFunction83574EBA": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "UserDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryListUsersDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9fcbe070ecd3023c5bf5b966fa9584757db9762eef123bad0820bd87591b2174.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/cc01911d0269d4080ea57505dc445dfc315ef7ad85d3d9d4ea1357858bff451d.vtl" - } - }, - "DependsOn": [ - "UserDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/User/QueryListUsersDataResolverFn/QueryListUsersDataResolverFn.AppSyncFunction" - } - }, - "ListUserResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "FieldName": "listUsers", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerylistUsersauth0FunctionQuerylistUsersauth0FunctionAppSyncFunctionA1FF61AB", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerylistUserspostAuth0FunctionQuerylistUserspostAuth0FunctionAppSyncFunction37C5583D", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryListUsersDataResolverFnQueryListUsersDataResolverFnAppSyncFunction83574EBA", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listUsers\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "UserTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/User/queryListUsersResolver" - } - }, - "MutationcreateUserinit0FunctionMutationcreateUserinit0FunctionAppSyncFunctionEDF87EC6": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateUserinit0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a183ddccbd956316c38ef97177b8f088ef0826f62023323f5ae6053d348ccffc.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/User/MutationcreateUserinit0Function/MutationcreateUserinit0Function.AppSyncFunction" - } - }, - "MutationcreateUserauth0FunctionMutationcreateUserauth0FunctionAppSyncFunction30556A6C": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateUserauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/b79b1328a675b134823edb148ce94c640dc7b73abbedf291dd00a63923559753.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/User/MutationcreateUserauth0Function/MutationcreateUserauth0Function.AppSyncFunction" - } - }, - "MutationcreateUserpostAuth0FunctionMutationcreateUserpostAuth0FunctionAppSyncFunction176E20CB": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateUserpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/User/MutationcreateUserpostAuth0Function/MutationcreateUserpostAuth0Function.AppSyncFunction" - } - }, - "MutationCreateUserDataResolverFnMutationCreateUserDataResolverFnAppSyncFunction22E7974E": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "UserDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationCreateUserDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/2a8e840a12b4e9d428fcf697121b3906e4bbeb570cf4fdd1d361db41eb54d0e9.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "UserDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/User/MutationCreateUserDataResolverFn/MutationCreateUserDataResolverFn.AppSyncFunction" - } - }, - "CreateUserResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "FieldName": "createUser", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationcreateUserinit0FunctionMutationcreateUserinit0FunctionAppSyncFunctionEDF87EC6", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationcreateUserauth0FunctionMutationcreateUserauth0FunctionAppSyncFunction30556A6C", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationcreateUserpostAuth0FunctionMutationcreateUserpostAuth0FunctionAppSyncFunction176E20CB", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationCreateUserDataResolverFnMutationCreateUserDataResolverFnAppSyncFunction22E7974E", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createUser\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "UserTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/User/mutationCreateUserResolver" - } - }, - "MutationupdateUserinit0FunctionMutationupdateUserinit0FunctionAppSyncFunctionC2E8A924": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateUserinit0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/06db846fd14e6fc371f22b12b5545ba8e2dbfeda85d8c8d586c71c282166657b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/User/MutationupdateUserinit0Function/MutationupdateUserinit0Function.AppSyncFunction" - } - }, - "MutationupdateUserauth0FunctionMutationupdateUserauth0FunctionAppSyncFunctionDF95DA65": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "UserDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateUserauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/eac36e6c831f967791298d7536d76dfe1f66e488e6c8af6e79bc9ee04643c3c1.vtl" - } - }, - "DependsOn": [ - "UserDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/User/MutationupdateUserauth0Function/MutationupdateUserauth0Function.AppSyncFunction" - } - }, - "MutationupdateUserpostAuth0FunctionMutationupdateUserpostAuth0FunctionAppSyncFunctionD4B80000": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateUserpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/User/MutationupdateUserpostAuth0Function/MutationupdateUserpostAuth0Function.AppSyncFunction" - } - }, - "MutationUpdateUserDataResolverFnMutationUpdateUserDataResolverFnAppSyncFunction6ADF3910": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "UserDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationUpdateUserDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/474bf0776ec2164a13191d1a0a9e057154931e4918fea5086f49850d02a5371b.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "UserDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/User/MutationUpdateUserDataResolverFn/MutationUpdateUserDataResolverFn.AppSyncFunction" - } - }, - "UpdateUserResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "FieldName": "updateUser", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationupdateUserinit0FunctionMutationupdateUserinit0FunctionAppSyncFunctionC2E8A924", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationupdateUserauth0FunctionMutationupdateUserauth0FunctionAppSyncFunctionDF95DA65", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationupdateUserpostAuth0FunctionMutationupdateUserpostAuth0FunctionAppSyncFunctionD4B80000", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationUpdateUserDataResolverFnMutationUpdateUserDataResolverFnAppSyncFunction6ADF3910", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateUser\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "UserTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/User/mutationUpdateUserResolver" - } - }, - "MutationdeleteUserauth0FunctionMutationdeleteUserauth0FunctionAppSyncFunction9B900ACD": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "UserDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeleteUserauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4bbc6340e5b05716be1bba2764290bf6c01cdf7656f240252a984bb92ae3ff83.vtl" - } - }, - "DependsOn": [ - "UserDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/User/MutationdeleteUserauth0Function/MutationdeleteUserauth0Function.AppSyncFunction" - } - }, - "MutationdeleteUserpostAuth0FunctionMutationdeleteUserpostAuth0FunctionAppSyncFunction9B804910": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeleteUserpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/User/MutationdeleteUserpostAuth0Function/MutationdeleteUserpostAuth0Function.AppSyncFunction" - } - }, - "MutationDeleteUserDataResolverFnMutationDeleteUserDataResolverFnAppSyncFunction0B4F366A": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "UserDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationDeleteUserDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4f7907d1209a2c9953a0c053df402c634e359546d70c7cc5c2e8e21ea734880f.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "UserDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/User/MutationDeleteUserDataResolverFn/MutationDeleteUserDataResolverFn.AppSyncFunction" - } - }, - "DeleteUserResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "FieldName": "deleteUser", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationdeleteUserauth0FunctionMutationdeleteUserauth0FunctionAppSyncFunction9B900ACD", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationdeleteUserpostAuth0FunctionMutationdeleteUserpostAuth0FunctionAppSyncFunction9B804910", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationDeleteUserDataResolverFnMutationDeleteUserDataResolverFnAppSyncFunction0B4F366A", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteUser\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "UserTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/User/mutationDeleteUserResolver" - } - }, - "SubscriptiononCreateUserauth0FunctionSubscriptiononCreateUserauth0FunctionAppSyncFunctionE9B4721A": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononCreateUserauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/28a4bf55c2e7814ffcc0bed87dda3c7fbc1362917c2ab2ab5f93cfae10ea8f41.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/User/SubscriptiononCreateUserauth0Function/SubscriptiononCreateUserauth0Function.AppSyncFunction" - } - }, - "SubscriptiononCreateUserpostAuth0FunctionSubscriptiononCreateUserpostAuth0FunctionAppSyncFunction62AE12DA": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononCreateUserpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/User/SubscriptiononCreateUserpostAuth0Function/SubscriptiononCreateUserpostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnCreateUserDataResolverFnSubscriptionOnCreateUserDataResolverFnAppSyncFunction23B2F1B9": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnCreateUserDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/User/SubscriptionOnCreateUserDataResolverFn/SubscriptionOnCreateUserDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononCreateUserResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "FieldName": "onCreateUser", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononCreateUserauth0FunctionSubscriptiononCreateUserauth0FunctionAppSyncFunctionE9B4721A", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononCreateUserpostAuth0FunctionSubscriptiononCreateUserpostAuth0FunctionAppSyncFunction62AE12DA", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnCreateUserDataResolverFnSubscriptionOnCreateUserDataResolverFnAppSyncFunction23B2F1B9", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateUser\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/User/subscriptionOnCreateUserResolver" - } - }, - "SubscriptiononUpdateUserauth0FunctionSubscriptiononUpdateUserauth0FunctionAppSyncFunction78530C9F": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononUpdateUserauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/28a4bf55c2e7814ffcc0bed87dda3c7fbc1362917c2ab2ab5f93cfae10ea8f41.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/User/SubscriptiononUpdateUserauth0Function/SubscriptiononUpdateUserauth0Function.AppSyncFunction" - } - }, - "SubscriptiononUpdateUserpostAuth0FunctionSubscriptiononUpdateUserpostAuth0FunctionAppSyncFunctionF3EF85D1": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononUpdateUserpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/User/SubscriptiononUpdateUserpostAuth0Function/SubscriptiononUpdateUserpostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnUpdateUserDataResolverFnSubscriptionOnUpdateUserDataResolverFnAppSyncFunction93FA5DF6": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnUpdateUserDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/User/SubscriptionOnUpdateUserDataResolverFn/SubscriptionOnUpdateUserDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononUpdateUserResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "FieldName": "onUpdateUser", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononUpdateUserauth0FunctionSubscriptiononUpdateUserauth0FunctionAppSyncFunction78530C9F", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononUpdateUserpostAuth0FunctionSubscriptiononUpdateUserpostAuth0FunctionAppSyncFunctionF3EF85D1", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnUpdateUserDataResolverFnSubscriptionOnUpdateUserDataResolverFnAppSyncFunction93FA5DF6", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateUser\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/User/subscriptionOnUpdateUserResolver" - } - }, - "SubscriptiononDeleteUserauth0FunctionSubscriptiononDeleteUserauth0FunctionAppSyncFunction0C5B7186": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononDeleteUserauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/28a4bf55c2e7814ffcc0bed87dda3c7fbc1362917c2ab2ab5f93cfae10ea8f41.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/User/SubscriptiononDeleteUserauth0Function/SubscriptiononDeleteUserauth0Function.AppSyncFunction" - } - }, - "SubscriptiononDeleteUserpostAuth0FunctionSubscriptiononDeleteUserpostAuth0FunctionAppSyncFunction24A5E815": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononDeleteUserpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/User/SubscriptiononDeleteUserpostAuth0Function/SubscriptiononDeleteUserpostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnDeleteUserDataResolverFnSubscriptionOnDeleteUserDataResolverFnAppSyncFunction2BEB0972": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnDeleteUserDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/User/SubscriptionOnDeleteUserDataResolverFn/SubscriptionOnDeleteUserDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononDeleteUserResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "FieldName": "onDeleteUser", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononDeleteUserauth0FunctionSubscriptiononDeleteUserauth0FunctionAppSyncFunction0C5B7186", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononDeleteUserpostAuth0FunctionSubscriptiononDeleteUserpostAuth0FunctionAppSyncFunction24A5E815", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnDeleteUserDataResolverFnSubscriptionOnDeleteUserDataResolverFnAppSyncFunction2BEB0972", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteUser\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/User/subscriptionOnDeleteUserResolver" - } - }, - "UserIdDataResolverFnUserIdDataResolverFnAppSyncFunction9936DA1E": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "UserIdDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/041534e5fd916595f752318f161512d7c7f83b9f2cf32d0f0be381c12253ff68.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/16a1c0c1ac88deddf57fba8864075da6242bd5dd6dc3e0209246c76a0626dfee.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/User/UserIdDataResolverFn/UserIdDataResolverFn.AppSyncFunction" - } - }, - "UseridResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "FieldName": "id", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "UserIdDataResolverFnUserIdDataResolverFnAppSyncFunction9936DA1E", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"User\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"id\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "User" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/User/userIdResolver" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOwW6DMAyGn6X34LV0h11Xqh63CXavTGJQCjgodlpViHefoFOnnX5/8if7zyF/3cF2gzfJrOuy3tcwfZAouUrRdqZo+AsjDqQUFygCO68+sClJQoqWTJFEw/CHDT9nvMl5cnfGIbgavrHu6YBCxuMAUxn6hx16mg2Oo9zZwnRc9WN9RMXqefI/nRLbpUQRuPFtirg2+v3cXynORvZnFCEVeF/CyB4OyXakS4F5cT+TjknNuq4UW8/tbDg4gou8XPMcdm+w3VzE+ywmVj8QlI/8AXh83Gc2AQAA" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/User/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Outputs": { - "GetAttUserTableStreamArn": { - "Description": "Your DynamoDB table StreamArn.", - "Value": { - "Fn::GetAtt": [ - "UserTable", - "TableStreamArn" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "GetAtt:UserTable:StreamArn" - ] - ] - } - } - }, - "GetAttUserTableName": { - "Description": "Your DynamoDB table name.", - "Value": "User-3oy6oxkj6ffojmc2upd52ftdsq-main", - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "GetAtt:UserTable:Name" - ] - ] - } - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.description.txt b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.description.txt deleted file mode 100644 index 813452072ac..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.11.1","stackType":"auth-Cognito","metadata":{}} \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.outputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.outputs.json deleted file mode 100644 index aefb61e43ae..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.outputs.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "OutputKey": "amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef", - "OutputValue": "us-east-1:c464f123-eaf0-4289-98b3-381197fa3d7f" - }, - { - "OutputKey": "amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthUserPoolAppClient99A19E4CRef", - "OutputValue": "61e6oq3acg1at7f9da6cfna70d" - }, - { - "OutputKey": "amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef", - "OutputValue": "amplify-productcatalog-ge-amplifyAuthunauthenticate-JMPocA8XyO6M" - }, - { - "OutputKey": "amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref", - "OutputValue": "amplify-productcatalog-ge-amplifyAuthauthenticatedU-7u6GoubHxSy7" - }, - { - "OutputKey": "amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthUserPool0E44954DRef", - "OutputValue": "us-east-1_OFRBVzhq5" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.parameters.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.parameters.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.template.json deleted file mode 100644 index 9b0e41e3665..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-auth179371D7-1RF1TAQPAA1WW.template.json +++ /dev/null @@ -1,685 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.11.1\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", - "Resources": { - "amplifyAuthUserPool4BA7F805": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AccountRecoverySetting": { - "RecoveryMechanisms": [ - { - "Name": "verified_email", - "Priority": 1 - } - ] - }, - "AdminCreateUserConfig": { - "AllowAdminCreateUserOnly": false - }, - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": "Your verification code is {####}", - "EmailVerificationSubject": "Your verification code", - "MfaConfiguration": "OFF", - "Policies": { - "PasswordPolicy": { - "MinimumLength": 8, - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false, - "TemporaryPasswordValidityDays": 7 - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "SmsVerificationMessage": "The verification code to your new account is {####}", - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolTags": { - "amplify:app-id": "productcatalog", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "amplify:friendly-name": "amplifyAuth", - "created-by": "amplify" - }, - "UsernameAttributes": [ - "email" - ], - "UsernameConfiguration": { - "CaseSensitive": false - }, - "VerificationMessageTemplate": { - "DefaultEmailOption": "CONFIRM_WITH_CODE", - "EmailMessage": "Your verification code is {####}", - "EmailSubject": "Your verification code", - "SmsMessage": "The verification code to your new account is {####}" - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/UserPool/Resource" - } - }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 43200, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": { - "Ref": "amplifyAuthUserPool4BA7F805" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, - "amplifyAuthUserPoolAppClient2626C6F8": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlows": [ - "code" - ], - "AllowedOAuthFlowsUserPoolClient": true, - "AllowedOAuthScopes": [ - "profile", - "phone", - "email", - "openid", - "aws.cognito.signin.user.admin" - ], - "CallbackURLs": [ - "https://example.com" - ], - "ExplicitAuthFlows": [ - "ALLOW_CUSTOM_AUTH", - "ALLOW_USER_SRP_AUTH", - "ALLOW_REFRESH_TOKEN_AUTH" - ], - "PreventUserExistenceErrors": "ENABLED", - "SupportedIdentityProviders": [ - "COGNITO" - ], - "UserPoolId": { - "Ref": "amplifyAuthUserPool4BA7F805" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/UserPoolAppClient/Resource" - } - }, - "amplifyAuthIdentityPool3FDE84CC": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": false, - "CognitoIdentityProviders": [ - { - "ClientId": { - "Ref": "amplifyAuthUserPoolAppClient2626C6F8" - }, - "ProviderName": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - { - "Ref": "amplifyAuthUserPool4BA7F805" - } - ] - ] - } - } - ], - "IdentityPoolTags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "SupportedLoginProviders": {} - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/IdentityPool" - } - }, - "amplifyAuthauthenticatedUserRoleD8DA3689": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "authenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/authenticatedUserRole/Resource" - } - }, - "amplifyAuthauthenticatedUserRoleDefaultPolicy82E52873": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "appsync:GraphQL", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:appsync:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":apis/3oy6oxkj6ffojmc2upd52ftdsq/*" - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "amplifyAuthauthenticatedUserRoleDefaultPolicy82E52873", - "Roles": [ - { - "Ref": "amplifyAuthauthenticatedUserRoleD8DA3689" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/authenticatedUserRole/DefaultPolicy/Resource" - } - }, - "amplifyAuthunauthenticatedUserRole2B524D9E": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "unauthenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/unauthenticatedUserRole/Resource" - } - }, - "amplifyAuthIdentityPoolRoleAttachment045F17C8": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - }, - "RoleMappings": { - "UserPoolWebClientRoleMapping": { - "AmbiguousRoleResolution": "AuthenticatedRole", - "IdentityProvider": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - { - "Ref": "amplifyAuthUserPool4BA7F805" - }, - ":", - { - "Ref": "amplifyAuthUserPoolAppClient2626C6F8" - } - ] - ] - }, - "Type": "Token" - } - }, - "Roles": { - "unauthenticated": { - "Fn::GetAtt": [ - "amplifyAuthunauthenticatedUserRole2B524D9E", - "Arn" - ] - }, - "authenticated": { - "Fn::GetAtt": [ - "amplifyAuthauthenticatedUserRoleD8DA3689", - "Arn" - ] - } - } - }, - "DependsOn": [ - "amplifyAuthIdentityPool3FDE84CC", - "amplifyAuthUserPoolAppClient2626C6F8" - ], - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/amplifyAuth/IdentityPoolRoleAttachment" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/02LvQ6CMBSFn4W9XKFxcDVMLsZgnE1tr3qhtAm9SkjTdzdIUKbznT8JcltCkakh5Nq0uaUbxCMGRnNmpVuhhnCN2j8csYd4CdifvLeiursfL1BZQsfr6p8cDDomHpfz2tfe4p5Z6WeHjpMg1UGcwmn41ZO3pMfJzpRSEs4bhCZs3lJCuYMiawJR3r8cU4dQz/oBzysbsN8AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Outputs": { - "amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthUserPool0E44954DRef": { - "Value": { - "Ref": "amplifyAuthUserPool4BA7F805" - } - }, - "amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthUserPoolAppClient99A19E4CRef": { - "Value": { - "Ref": "amplifyAuthUserPoolAppClient2626C6F8" - } - }, - "amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef": { - "Value": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } - }, - "amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref": { - "Value": { - "Ref": "amplifyAuthauthenticatedUserRoleD8DA3689" - } - }, - "amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef": { - "Value": { - "Ref": "amplifyAuthunauthenticatedUserRole2B524D9E" - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-data7552DF31-9HLXO190CBWY.description.txt b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-data7552DF31-9HLXO190CBWY.description.txt deleted file mode 100644 index e0c9e600428..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-data7552DF31-9HLXO190CBWY.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.21.0","stackType":"api-AppSync","metadata":{"dataSources":"dynamodb","authorizationModes":"amazon_cognito_identity_pools,amazon_cognito_user_pools,api_key,aws_iam","customOperations":"queries"}} \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-data7552DF31-9HLXO190CBWY.outputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-data7552DF31-9HLXO190CBWY.outputs.json deleted file mode 100644 index e1fd9659186..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-data7552DF31-9HLXO190CBWY.outputs.json +++ /dev/null @@ -1,18 +0,0 @@ -[ - { - "OutputKey": "amplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiBE3458598DestinationBucketArn", - "OutputValue": "arn:aws:s3:::amplify-productcatalog-ge-amplifydataamplifycodege-ng0qcpijfecm" - }, - { - "OutputKey": "amplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CGraphQLUrl", - "OutputValue": "https://ezubvwgxara45chr4bilqahity.appsync-api.us-east-1.amazonaws.com/graphql" - }, - { - "OutputKey": "amplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId", - "OutputValue": "3afyqracmndnzmjr344badj4ja" - }, - { - "OutputKey": "amplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPIDefaultApiKeyDA6BE9EAApiKey", - "OutputValue": "da2-fakeapikey00000000000000" - } -] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-data7552DF31-9HLXO190CBWY.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-data7552DF31-9HLXO190CBWY.parameters.json deleted file mode 100644 index 94e0d46a9d4..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-data7552DF31-9HLXO190CBWY.parameters.json +++ /dev/null @@ -1,38 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "true" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef", - "ParameterValue": "us-east-1:c464f123-eaf0-4289-98b3-381197fa3d7f" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref", - "ParameterValue": "amplify-productcatalog-ge-amplifyAuthauthenticatedU-7u6GoubHxSy7" - }, - { - "ParameterKey": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthUserPool0E44954DRef", - "ParameterValue": "us-east-1_OFRBVzhq5" - }, - { - "ParameterKey": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef", - "ParameterValue": "amplify-productcatalog-ge-amplifyAuthunauthenticate-JMPocA8XyO6M" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-data7552DF31-9HLXO190CBWY.template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-data7552DF31-9HLXO190CBWY.template.json deleted file mode 100644 index 8b898d6914e..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-data7552DF31-9HLXO190CBWY.template.json +++ /dev/null @@ -1,2258 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.21.0\",\"stackType\":\"api-AppSync\",\"metadata\":{\"dataSources\":\"dynamodb\",\"authorizationModes\":\"amazon_cognito_identity_pools,amazon_cognito_user_pools,api_key,aws_iam\",\"customOperations\":\"queries\"}}", - "Resources": { - "amplifyDataGraphQLAPI42A6FA33": { - "Type": "AWS::AppSync::GraphQLApi", - "Properties": { - "AdditionalAuthenticationProviders": [ - { - "AuthenticationType": "API_KEY" - }, - { - "AuthenticationType": "AMAZON_COGNITO_USER_POOLS", - "UserPoolConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "UserPoolId": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthUserPool0E44954DRef" - } - } - } - ], - "AuthenticationType": "AWS_IAM", - "Name": "amplifyData", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/GraphQLAPI/Resource" - } - }, - "amplifyDataGraphQLAPITransformerSchemaFF50A789": { - "Type": "AWS::AppSync::GraphQLSchema", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "DefinitionS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/17703bb6fe87457f325daa687db3f3cf32d35fd479b3cb0c7a264a0135f94f98.graphql" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/GraphQLAPI/TransformerSchema" - } - }, - "amplifyDataGraphQLAPIDefaultApiKey1C8ED374": { - "Type": "AWS::AppSync::ApiKey", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "Description": "graphqlapi", - "Expires": 1773501867 - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/GraphQLAPI/DefaultApiKey" - } - }, - "amplifyDataGraphQLAPINONEDS684BF699": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "Name": "NONE_DS", - "Type": "NONE" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/GraphQLAPI/NONE_DS/Resource" - } - }, - "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/94e7c519625a89a3da6548177977c88600051856e6cbdb698e1f5753be9df993.json" - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/AmplifyTableManager.NestedStack/AmplifyTableManager.NestedStackResource", - "aws:asset:path": "amplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataAmplifyTableManager8D42453D.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "amplifyDataUserNestedStackUserNestedStackResource9488907F": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "DynamoDBModelTableWriteIOPS": { - "Ref": "DynamoDBModelTableWriteIOPS" - }, - "DynamoDBBillingMode": { - "Ref": "DynamoDBBillingMode" - }, - "DynamoDBEnablePointInTimeRecovery": { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "DynamoDBEnableServerSideEncryption": { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource48E34D24Outputsamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataAmplifyTableManagerTableMa77FBE8F3": { - "Fn::GetAtt": [ - "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833", - "Outputs.amplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEventF63962B6Arn" - ] - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef" - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/71593b305322749ceec899014aecf78039b493719e101f555396bb0872a84d0e.json" - ] - ] - } - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/User.NestedStack/User.NestedStackResource", - "aws:asset:path": "amplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataUser394A2EB8.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "amplifyDataProductNestedStackProductNestedStackResource648F4D75": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "DynamoDBModelTableWriteIOPS": { - "Ref": "DynamoDBModelTableWriteIOPS" - }, - "DynamoDBBillingMode": { - "Ref": "DynamoDBBillingMode" - }, - "DynamoDBEnablePointInTimeRecovery": { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "DynamoDBEnableServerSideEncryption": { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource48E34D24Outputsamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataAmplifyTableManagerTableMa77FBE8F3": { - "Fn::GetAtt": [ - "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833", - "Outputs.amplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEventF63962B6Arn" - ] - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef" - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/3cda462867cca8330ab651f9c3e4c374366e16a583acdfa9825279f7eb148536.json" - ] - ] - } - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Product.NestedStack/Product.NestedStackResource", - "aws:asset:path": "amplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataProduct317F9470.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "amplifyDataCommentNestedStackCommentNestedStackResource87C7BB35": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "DynamoDBModelTableWriteIOPS": { - "Ref": "DynamoDBModelTableWriteIOPS" - }, - "DynamoDBBillingMode": { - "Ref": "DynamoDBBillingMode" - }, - "DynamoDBEnablePointInTimeRecovery": { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "DynamoDBEnableServerSideEncryption": { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource48E34D24Outputsamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataAmplifyTableManagerTableMa77FBE8F3": { - "Fn::GetAtt": [ - "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833", - "Outputs.amplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEventF63962B6Arn" - ] - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef" - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/f8661a610da64fef33169ef6897099dec7ee9f8c2c5da962ef7316022b8d91bb.json" - ] - ] - } - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/Comment.NestedStack/Comment.NestedStackResource", - "aws:asset:path": "amplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataComment6A03519C.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "amplifyDataFunctionDirectiveStackNestedStackFunctionDirectiveStackNestedStackResource1246A302": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/e9d9f4d143bd168efd2298736a3b537ce4230a9562d123a401d472337619dd7f.json" - ] - ] - } - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/FunctionDirectiveStack.NestedStack/FunctionDirectiveStack.NestedStackResource", - "aws:asset:path": "amplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataFunctionDirectiveStack2F151550.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "amplifyDataConnectionStackNestedStackConnectionStackNestedStackResourceAB0F312B": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPINONEDSC7F42872Name": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataCommentNestedStackCommentNestedStackResource7E5BA67DOutputsamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataCommentCommentDataSource7F5D9C3FName": { - "Fn::GetAtt": [ - "amplifyDataCommentNestedStackCommentNestedStackResource87C7BB35", - "Outputs.amplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataCommentCommentDataSource7F5D9C3FName" - ] - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataCommentNestedStackCommentNestedStackResource7E5BA67DOutputsamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataCommentCommentTable6DCC82BATableArn": { - "Fn::GetAtt": [ - "amplifyDataCommentNestedStackCommentNestedStackResource87C7BB35", - "Outputs.amplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataCommentCommentTable6DCC82BATableArn" - ] - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef" - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/1c9d37a1bfd2db9cea79f47badedd25cb0bdfbe6289b7c37c7b29095c8b6f71f.json" - ] - ] - } - }, - "DependsOn": [ - "amplifyDataCommentNestedStackCommentNestedStackResource87C7BB35", - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/ConnectionStack.NestedStack/ConnectionStack.NestedStackResource", - "aws:asset:path": "amplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataConnectionStackC708F1E4.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "amplifyDataAuthRolePolicy01567A5654": { - "Type": "AWS::IAM::ManagedPolicy", - "Properties": { - "Description": "", - "Path": "/", - "PolicyDocument": { - "Statement": [ - { - "Action": "appsync:GraphQL", - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/*", - { - "apiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "typeName": "User" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/*", - { - "apiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "typeName": "Product" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/*", - { - "apiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "typeName": "Comment" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "typeName": "Query", - "fieldName": "checkLowStock" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "typeName": "Query", - "fieldName": "getUser" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "typeName": "Query", - "fieldName": "listUsers" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "typeName": "Mutation", - "fieldName": "createUser" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "typeName": "Mutation", - "fieldName": "updateUser" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "typeName": "Mutation", - "fieldName": "deleteUser" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "typeName": "Subscription", - "fieldName": "onCreateUser" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "typeName": "Subscription", - "fieldName": "onUpdateUser" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "typeName": "Subscription", - "fieldName": "onDeleteUser" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "typeName": "Query", - "fieldName": "getProduct" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "typeName": "Query", - "fieldName": "listProducts" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "typeName": "Mutation", - "fieldName": "createProduct" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "typeName": "Mutation", - "fieldName": "updateProduct" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "typeName": "Mutation", - "fieldName": "deleteProduct" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "typeName": "Subscription", - "fieldName": "onCreateProduct" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "typeName": "Subscription", - "fieldName": "onUpdateProduct" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "typeName": "Subscription", - "fieldName": "onDeleteProduct" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/*", - { - "apiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "typeName": "ModelCommentConnection" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "typeName": "Query", - "fieldName": "getComment" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "typeName": "Query", - "fieldName": "listComments" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "typeName": "Mutation", - "fieldName": "createComment" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "typeName": "Mutation", - "fieldName": "updateComment" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "typeName": "Mutation", - "fieldName": "deleteComment" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "typeName": "Query", - "fieldName": "commentsByProductId" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "typeName": "Subscription", - "fieldName": "onCreateComment" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "typeName": "Subscription", - "fieldName": "onUpdateComment" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "typeName": "Subscription", - "fieldName": "onDeleteComment" - } - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "Roles": [ - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/AuthRolePolicy01/Resource" - } - }, - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA": { - "Type": "AWS::S3::Bucket", - "Properties": { - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD" - ], - "AllowedOrigins": [ - { - "Fn::Join": [ - "", - [ - "https://", - { - "Ref": "AWS::Region" - }, - ".console.aws.amazon.com/amplify" - ] - ] - } - ] - } - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "aws-cdk:cr-owned:cba0717f", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/Resource" - } - }, - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucketPolicyF1C1C548": { - "Type": "AWS::S3::BucketPolicy", - "Properties": { - "Bucket": { - "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" - }, - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "s3:PutBucketPolicy", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*" - ], - "Effect": "Allow", - "Principal": { - "AWS": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - } - }, - "Resource": [ - { - "Fn::GetAtt": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/Policy/Resource" - } - }, - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucketAutoDeleteObjectsCustomResource437F26F5": { - "Type": "Custom::S3AutoDeleteObjects", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "Arn" - ] - }, - "BucketName": { - "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" - } - }, - "DependsOn": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucketPolicyF1C1C548" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/AutoDeleteObjectsCustomResource/Default" - } - }, - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentAwsCliLayerE322F905": { - "Type": "AWS::Lambda::LayerVersion", - "Properties": { - "Content": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "0cfdecad2260a3a84ad0c2d08a77e03c9d25e26c7b52f26b1e1faf97aef92f18.zip" - }, - "Description": "/opt/awscli/aws" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsDeployment/AwsCliLayer/Resource", - "aws:asset:path": "asset.0cfdecad2260a3a84ad0c2d08a77e03c9d25e26c7b52f26b1e1faf97aef92f18.zip", - "aws:asset:is-bundled": false, - "aws:asset:property": "Content" - } - }, - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB21775929": { - "Type": "Custom::CDKBucketDeployment", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBC5D8AB21", - "Arn" - ] - }, - "SourceBucketNames": [ - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - } - ], - "SourceObjectKeys": [ - "f5375657c272b5b40192665c588d189b42024035ed79ada348d7914ef9ab2757.zip" - ], - "SourceMarkers": [ - {} - ], - "DestinationBucketName": { - "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" - }, - "WaitForDistributionInvalidation": true, - "Prune": true, - "OutputObjectKeys": true, - "DestinationBucketArn": { - "Fn::GetAtt": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", - "Arn" - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsDeployment/CustomResource-1536MiB/Default" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ] - }, - "ManagedPolicyArns": [ - { - "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" - }, - "Timeout": 900, - "MemorySize": 128, - "Handler": "index.handler", - "Role": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Description": { - "Fn::Join": [ - "", - [ - "Lambda function for auto-deleting objects in ", - { - "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" - }, - " S3 bucket." - ] - ] - } - }, - "DependsOn": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - ], - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", - "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", - "aws:asset:property": "Code" - } - }, - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/ServiceRole/Resource" - } - }, - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleDefaultPolicyFF1C635B": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "s3:GetObject*", - "s3:GetBucket*", - "s3:List*" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":s3:::", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - } - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":s3:::", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/*" - ] - ] - } - ] - }, - { - "Action": [ - "s3:GetObject*", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*", - "s3:PutObject", - "s3:PutObjectLegalHold", - "s3:PutObjectRetention", - "s3:PutObjectTagging", - "s3:PutObjectVersionTagging", - "s3:Abort*" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - }, - { - "Action": [ - "s3:GetObject*", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*", - "s3:PutObject", - "s3:PutObjectLegalHold", - "s3:PutObjectRetention", - "s3:PutObjectTagging", - "s3:PutObjectVersionTagging", - "s3:Abort*" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "modelIntrospectionSchemaBucketF566B665", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "modelIntrospectionSchemaBucketF566B665", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleDefaultPolicyFF1C635B", - "Roles": [ - { - "Ref": "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/ServiceRole/DefaultPolicy/Resource" - } - }, - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBC5D8AB21": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "3423a042b818e31c1e34a19d6689ab2e5f9b70fcbe9e71df66f241b20a200bd9.zip" - }, - "Environment": { - "Variables": { - "AWS_CA_BUNDLE": "/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem" - } - }, - "Handler": "index.handler", - "Layers": [ - { - "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentAwsCliLayerE322F905" - } - ], - "MemorySize": 1536, - "Role": { - "Fn::GetAtt": [ - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2", - "Arn" - ] - }, - "Runtime": "python3.13", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 900 - }, - "DependsOn": [ - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleDefaultPolicyFF1C635B", - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2" - ], - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/Resource", - "aws:asset:path": "asset.3423a042b818e31c1e34a19d6689ab2e5f9b70fcbe9e71df66f241b20a200bd9", - "aws:asset:is-bundled": false, - "aws:asset:property": "Code" - } - }, - "modelIntrospectionSchemaBucketF566B665": { - "Type": "AWS::S3::Bucket", - "Properties": { - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "aws-cdk:cr-owned:dfbddb53", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/modelIntrospectionSchemaBucket/Resource" - } - }, - "modelIntrospectionSchemaBucketPolicy4DAB0D15": { - "Type": "AWS::S3::BucketPolicy", - "Properties": { - "Bucket": { - "Ref": "modelIntrospectionSchemaBucketF566B665" - }, - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:*", - "Condition": { - "Bool": { - "aws:SecureTransport": "false" - } - }, - "Effect": "Deny", - "Principal": { - "AWS": "*" - }, - "Resource": [ - { - "Fn::GetAtt": [ - "modelIntrospectionSchemaBucketF566B665", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "modelIntrospectionSchemaBucketF566B665", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - }, - { - "Action": [ - "s3:PutBucketPolicy", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*" - ], - "Effect": "Allow", - "Principal": { - "AWS": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - } - }, - "Resource": [ - { - "Fn::GetAtt": [ - "modelIntrospectionSchemaBucketF566B665", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "modelIntrospectionSchemaBucketF566B665", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/modelIntrospectionSchemaBucket/Policy/Resource" - } - }, - "modelIntrospectionSchemaBucketAutoDeleteObjectsCustomResourceFE57309F": { - "Type": "Custom::S3AutoDeleteObjects", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "Arn" - ] - }, - "BucketName": { - "Ref": "modelIntrospectionSchemaBucketF566B665" - } - }, - "DependsOn": [ - "modelIntrospectionSchemaBucketPolicy4DAB0D15" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/modelIntrospectionSchemaBucket/AutoDeleteObjectsCustomResource/Default" - } - }, - "modelIntrospectionSchemaBucketDeploymentAwsCliLayer13C432F7": { - "Type": "AWS::Lambda::LayerVersion", - "Properties": { - "Content": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "0cfdecad2260a3a84ad0c2d08a77e03c9d25e26c7b52f26b1e1faf97aef92f18.zip" - }, - "Description": "/opt/awscli/aws" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/modelIntrospectionSchemaBucketDeployment/AwsCliLayer/Resource", - "aws:asset:path": "asset.0cfdecad2260a3a84ad0c2d08a77e03c9d25e26c7b52f26b1e1faf97aef92f18.zip", - "aws:asset:is-bundled": false, - "aws:asset:property": "Content" - } - }, - "modelIntrospectionSchemaBucketDeploymentCustomResource1536MiB104B97EC": { - "Type": "Custom::CDKBucketDeployment", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBC5D8AB21", - "Arn" - ] - }, - "SourceBucketNames": [ - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - } - ], - "SourceObjectKeys": [ - "e7d7d4ab2ee5cfcb8cf875260b730471f85177346350a770a6a49af60aa1d5bc.zip" - ], - "SourceMarkers": [ - {} - ], - "DestinationBucketName": { - "Ref": "modelIntrospectionSchemaBucketF566B665" - }, - "WaitForDistributionInvalidation": true, - "Prune": true, - "OutputObjectKeys": true - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/modelIntrospectionSchemaBucketDeployment/CustomResource-1536MiB/Default" - } - }, - "AMPLIFYDATAGRAPHQLENDPOINTParameter1C2CBB16": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/productcatalog/gen2main-branch-4b79ec0f9a/AMPLIFY_DATA_GRAPHQL_ENDPOINT", - "Tags": { - "amplify:app-id": "productcatalog", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "GraphQLUrl" - ] - } - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/AMPLIFY_DATA_GRAPHQL_ENDPOINTParameter/Resource" - } - }, - "AMPLIFYDATAMODELINTROSPECTIONSCHEMABUCKETNAMEParameter47BF4F44": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/productcatalog/gen2main-branch-4b79ec0f9a/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_BUCKET_NAME", - "Tags": { - "amplify:app-id": "productcatalog", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": { - "Ref": "modelIntrospectionSchemaBucketF566B665" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_BUCKET_NAMEParameter/Resource" - } - }, - "AMPLIFYDATAMODELINTROSPECTIONSCHEMAKEYParameterB6AEAE8A": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/productcatalog/gen2main-branch-4b79ec0f9a/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_KEY", - "Tags": { - "amplify:app-id": "productcatalog", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": "modelIntrospectionSchema.json" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_KEYParameter/Resource" - } - }, - "AMPLIFYDATADEFAULTNAMEParameterE7C23CC4": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/productcatalog/gen2main-branch-4b79ec0f9a/AMPLIFY_DATA_DEFAULT_NAME", - "Tags": { - "amplify:app-id": "productcatalog", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": "amplifyData" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/AMPLIFY_DATA_DEFAULT_NAMEParameter/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/12RwW6DMBBEvyV3x01oD70SovbQNEqD1CvamIU4MTb1miBk8e+VoYG2p5l9Xo1G64hHT2u+WkBLS5Ffl0qeuN8jOcxTB+LKjkimsQIZtJR5qGvqtOD+1UJ9/lJxLTdAyJJCD+RjF9fy15SKM1YQQFzLN+zY3mjcgoN0DE0KPU89o8fMAxE64nEQlmOtTFehdnzTiCu67QTCNvcjHTqMNkT+uFEORknRzXiceyah4v4dNJSYzzt/wdGooeOg89I9QkF1yoH7pNA76NB+oiVpNEulLhU6o18aLVwgk0mKCfaMqOI+dVbq8gAWKnRoh/z70PdsuEPqoJS6DG/jryQNOVNNfxMq3v1YKlOhUAYtCSV53FKi5NDxT/6/nIM1N5mjDefsmTY58gs93KKIr5/5anEhKZe20U5WyI+jfgM2uM3NQAIAAA==" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthUserPool0E44954DRef": { - "Type": "String" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref": { - "Type": "String" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef": { - "Type": "String" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef": { - "Type": "String" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Outputs": { - "amplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId": { - "Value": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - } - }, - "amplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CGraphQLUrl": { - "Value": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "GraphQLUrl" - ] - } - }, - "amplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiBE3458598DestinationBucketArn": { - "Value": { - "Fn::GetAtt": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB21775929", - "DestinationBucketArn" - ] - } - }, - "amplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPIDefaultApiKeyDA6BE9EAApiKey": { - "Value": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPIDefaultApiKey1C8ED374", - "ApiKey" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-function1351588B-1GIYZGXVX4DTG.description.txt b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-function1351588B-1GIYZGXVX4DTG.description.txt deleted file mode 100644 index 6cad6da1b61..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-function1351588B-1GIYZGXVX4DTG.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.17.0","stackType":"function-Lambda","metadata":{}} \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-function1351588B-1GIYZGXVX4DTG.outputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-function1351588B-1GIYZGXVX4DTG.outputs.json deleted file mode 100644 index d918a82e8ce..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-function1351588B-1GIYZGXVX4DTG.outputs.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "OutputKey": "amplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda22206BBBArn", - "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:S3Trigger1ef46783-gen2-main" - }, - { - "OutputKey": "amplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda22206BBBRef", - "OutputValue": "S3Trigger1ef46783-gen2-main" - }, - { - "OutputKey": "amplifyproductcataloggen2mainbranch4b79ec0f9afunctionlowstockproductsgen2mainlambda27C27D88Ref", - "OutputValue": "lowstockproducts-gen2-main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-function1351588B-1GIYZGXVX4DTG.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-function1351588B-1GIYZGXVX4DTG.parameters.json deleted file mode 100644 index 184b541218f..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-function1351588B-1GIYZGXVX4DTG.parameters.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataNestedStackdataNestedStackResource4BE83A16Outputsamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPIDefaultApiKeyDA6BE9EAApiKey", - "ParameterValue": "da2-kk7yuee625g6jdpnt5zi37yyxq" - }, - { - "ParameterKey": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataNestedStackdataNestedStackResource4BE83A16Outputsamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId", - "ParameterValue": "3afyqracmndnzmjr344badj4ja" - }, - { - "ParameterKey": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataNestedStackdataNestedStackResource4BE83A16Outputsamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CGraphQLUrl", - "ParameterValue": "https://ezubvwgxara45chr4bilqahity.appsync-api.us-east-1.amazonaws.com/graphql" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-function1351588B-1GIYZGXVX4DTG.template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-function1351588B-1GIYZGXVX4DTG.template.json deleted file mode 100644 index 2702d1467b7..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-function1351588B-1GIYZGXVX4DTG.template.json +++ /dev/null @@ -1,718 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.17.0\",\"stackType\":\"function-Lambda\",\"metadata\":{}}", - "Resources": { - "S3Trigger1ef46783gen2mainlambdaServiceRole086175AE": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "S3Trigger1ef46783-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/function/S3Trigger1ef46783-gen2-main-lambda/ServiceRole/Resource" - } - }, - "S3Trigger1ef46783gen2mainlambdaServiceRoleDefaultPolicy7DA76D24": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "appsync:GraphQL", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":appsync:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":apis/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataNestedStackdataNestedStackResource4BE83A16Outputsamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "/types/Mutation/*" - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "S3Trigger1ef46783gen2mainlambdaServiceRoleDefaultPolicy7DA76D24", - "Roles": [ - { - "Ref": "S3Trigger1ef46783gen2mainlambdaServiceRole086175AE" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/function/S3Trigger1ef46783-gen2-main-lambda/ServiceRole/DefaultPolicy/Resource" - } - }, - "S3Trigger1ef46783gen2mainlambda72F51867": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Architectures": [ - "x86_64" - ], - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "9e1eebe0706016d25a584ace537443d0f7bd169feac2d34f4a901c6f14badec3.zip" - }, - "Environment": { - "Variables": { - "ENV": "gen2-main", - "REGION": "us-east-1", - "AMPLIFY_SSM_ENV_CONFIG": "{}", - "API_PRODUCTCATALOG_GRAPHQLAPIKEYOUTPUT": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataNestedStackdataNestedStackResource4BE83A16Outputsamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPIDefaultApiKeyDA6BE9EAApiKey" - }, - "API_PRODUCTCATALOG_GRAPHQLAPIENDPOINTOUTPUT": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataNestedStackdataNestedStackResource4BE83A16Outputsamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CGraphQLUrl" - }, - "API_PRODUCTCATALOG_GRAPHQLAPIIDOUTPUT": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataNestedStackdataNestedStackResource4BE83A16Outputsamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - } - } - }, - "EphemeralStorage": { - "Size": 512 - }, - "FunctionName": "S3Trigger1ef46783-gen2-main", - "Handler": "index.handler", - "MemorySize": 128, - "Role": { - "Fn::GetAtt": [ - "S3Trigger1ef46783gen2mainlambdaServiceRole086175AE", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "S3Trigger1ef46783-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 25 - }, - "DependsOn": [ - "S3Trigger1ef46783gen2mainlambdaServiceRoleDefaultPolicy7DA76D24", - "S3Trigger1ef46783gen2mainlambdaServiceRole086175AE" - ], - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/function/S3Trigger1ef46783-gen2-main-lambda/Resource", - "aws:asset:path": "asset.9e1eebe0706016d25a584ace537443d0f7bd169feac2d34f4a901c6f14badec3", - "aws:asset:is-bundled": true, - "aws:asset:property": "Code" - } - }, - "lowstockproductsgen2mainlambdaServiceRole71006F75": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "lowstockproducts-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/function/lowstockproducts-gen2-main-lambda/ServiceRole/Resource" - } - }, - "lowstockproductsgen2mainlambdaServiceRoleDefaultPolicy5EC00794": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "appsync:GraphQL", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":appsync:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":apis/", - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataNestedStackdataNestedStackResource4BE83A16Outputsamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - }, - "/types/Query/*" - ] - ] - } - }, - { - "Action": "ssm:GetParameters", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":ssm:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":parameter/amplify/productcatalog/gen2main-branch-4b79ec0f9a/PRODUCT_CATALOG_SECRET" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":ssm:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":parameter/amplify/shared/productcatalog/PRODUCT_CATALOG_SECRET" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "lowstockproductsgen2mainlambdaServiceRoleDefaultPolicy5EC00794", - "Roles": [ - { - "Ref": "lowstockproductsgen2mainlambdaServiceRole71006F75" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/function/lowstockproducts-gen2-main-lambda/ServiceRole/DefaultPolicy/Resource" - } - }, - "lowstockproductsgen2mainlambda333CD17D": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Architectures": [ - "x86_64" - ], - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "f925b7fab6d08d2101dd98b239dd11f6a9195d60dfcffa210bae8e3ea6b71a88.zip" - }, - "Environment": { - "Variables": { - "LOW_STOCK_THRESHOLD": "5", - "PRODUCT_CATALOG_SECRET": "", - "ENV": "gen2-main", - "REGION": "us-east-1", - "AMPLIFY_SSM_ENV_CONFIG": "{\"PRODUCT_CATALOG_SECRET\":{\"path\":\"/amplify/productcatalog/gen2main-branch-4b79ec0f9a/PRODUCT_CATALOG_SECRET\",\"sharedPath\":\"/amplify/shared/productcatalog/PRODUCT_CATALOG_SECRET\"}}", - "API_PRODUCTCATALOG_GRAPHQLAPIKEYOUTPUT": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataNestedStackdataNestedStackResource4BE83A16Outputsamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPIDefaultApiKeyDA6BE9EAApiKey" - }, - "API_PRODUCTCATALOG_GRAPHQLAPIENDPOINTOUTPUT": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataNestedStackdataNestedStackResource4BE83A16Outputsamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CGraphQLUrl" - }, - "API_PRODUCTCATALOG_GRAPHQLAPIIDOUTPUT": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataNestedStackdataNestedStackResource4BE83A16Outputsamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - } - } - }, - "EphemeralStorage": { - "Size": 512 - }, - "FunctionName": "lowstockproducts-gen2-main", - "Handler": "index.handler", - "MemorySize": 128, - "Role": { - "Fn::GetAtt": [ - "lowstockproductsgen2mainlambdaServiceRole71006F75", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "lowstockproducts-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 25 - }, - "DependsOn": [ - "lowstockproductsgen2mainlambdaServiceRoleDefaultPolicy5EC00794", - "lowstockproductsgen2mainlambdaServiceRole71006F75" - ], - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/function/lowstockproducts-gen2-main-lambda/Resource", - "aws:asset:path": "asset.f925b7fab6d08d2101dd98b239dd11f6a9195d60dfcffa210bae8e3ea6b71a88", - "aws:asset:is-bundled": true, - "aws:asset:property": "Code" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/zWNwQqDMBBEv8X7urWxh16r0KMU/QBZk1WiMUI3Vor470WlpzcDwxuF6nbFJKJFYm2G2NkG14IlsKkC6QFokXp1NDaGaj8Z7gWLA8/Z62AnD5ZGXMvJMeStP/ianNXfvZ5pA0lrEuEg+NgBkmI264FDRsJw6jFv/V+6wbGrAnXWdxvsz9jL5aMUXu+YRL1YG79nH+zIWJ78AUYTNcnMAAAA" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/function/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Outputs": { - "amplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda22206BBBArn": { - "Value": { - "Fn::GetAtt": [ - "S3Trigger1ef46783gen2mainlambda72F51867", - "Arn" - ] - } - }, - "amplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda22206BBBRef": { - "Value": { - "Ref": "S3Trigger1ef46783gen2mainlambda72F51867" - } - }, - "amplifyproductcataloggen2mainbranch4b79ec0f9afunctionlowstockproductsgen2mainlambda27C27D88Ref": { - "Value": { - "Ref": "lowstockproductsgen2mainlambda333CD17D" - } - } - }, - "Parameters": { - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataNestedStackdataNestedStackResource4BE83A16Outputsamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId": { - "Type": "String" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataNestedStackdataNestedStackResource4BE83A16Outputsamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPIDefaultApiKeyDA6BE9EAApiKey": { - "Type": "String" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataNestedStackdataNestedStackResource4BE83A16Outputsamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CGraphQLUrl": { - "Type": "String" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.description.txt b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.description.txt deleted file mode 100644 index 4600cb981f5..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.4.3","stackType":"storage-S3","metadata":{}} \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.outputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.outputs.json deleted file mode 100644 index f4da805a47d..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.outputs.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - { - "OutputKey": "amplifyproductcataloggen2mainbranch4b79ec0f9astorageproductcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketBD2F9EF2Ref", - "OutputValue": "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.parameters.json deleted file mode 100644 index b18b6e95938..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.parameters.json +++ /dev/null @@ -1,10 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref", - "ParameterValue": "amplify-productcatalog-ge-amplifyAuthauthenticatedU-7u6GoubHxSy7" - }, - { - "ParameterKey": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9afunctionNestedStackfunctionNestedStackResource6DAC5252Outputsamplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda22206BBBArn", - "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:S3Trigger1ef46783-gen2-main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.template.json deleted file mode 100644 index 45b5330f3a8..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a-storage0EC3F24A-13PB5LDXDDFTY.template.json +++ /dev/null @@ -1,938 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", - "Resources": { - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "BucketKeyEnabled": false, - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "MaxAge": 3000 - } - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/Resource" - } - }, - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketPolicyF51DAA81": { - "Type": "AWS::S3::BucketPolicy", - "Properties": { - "Bucket": { - "Ref": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83" - }, - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:*", - "Condition": { - "Bool": { - "aws:SecureTransport": "false" - } - }, - "Effect": "Deny", - "Principal": { - "AWS": "*" - }, - "Resource": [ - { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - }, - { - "Action": [ - "s3:PutBucketPolicy", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*" - ], - "Effect": "Allow", - "Principal": { - "AWS": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - } - }, - "Resource": [ - { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/Policy/Resource" - } - }, - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketAutoDeleteObjectsCustomResource6974B5B5": { - "Type": "Custom::S3AutoDeleteObjects", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "Arn" - ] - }, - "BucketName": { - "Ref": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83" - } - }, - "DependsOn": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketPolicyF51DAA81" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/AutoDeleteObjectsCustomResource/Default" - } - }, - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketNotifications20779ED4": { - "Type": "Custom::S3BucketNotifications", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "BucketNotificationsHandler050a0587b7544547bf325f094a3db8347ECC3691", - "Arn" - ] - }, - "BucketName": { - "Ref": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83" - }, - "NotificationConfiguration": { - "LambdaFunctionConfigurations": [ - { - "Events": [ - "s3:ObjectCreated:*" - ], - "LambdaFunctionArn": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9afunctionNestedStackfunctionNestedStackResource6DAC5252Outputsamplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda22206BBBArn" - } - }, - { - "Events": [ - "s3:ObjectRemoved:*" - ], - "LambdaFunctionArn": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9afunctionNestedStackfunctionNestedStackResource6DAC5252Outputsamplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda22206BBBArn" - } - } - ] - }, - "Managed": true, - "SkipDestinationValidation": false - }, - "DependsOn": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketAllowBucketNotificationsToamplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda8226525A5BBBE747", - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketPolicyF51DAA81" - ], - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/Notifications/Resource" - } - }, - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketAllowBucketNotificationsToamplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda8226525A5BBBE747": { - "Type": "AWS::Lambda::Permission", - "Properties": { - "Action": "lambda:InvokeFunction", - "FunctionName": { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9afunctionNestedStackfunctionNestedStackResource6DAC5252Outputsamplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda22206BBBArn" - }, - "Principal": "s3.amazonaws.com", - "SourceAccount": { - "Ref": "AWS::AccountId" - }, - "SourceArn": { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - } - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main/Bucket/AllowBucketNotificationsToamplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda8226525A" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ] - }, - "ManagedPolicyArns": [ - { - "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" - }, - "Timeout": 900, - "MemorySize": 128, - "Handler": "index.handler", - "Role": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Description": { - "Fn::Join": [ - "", - [ - "Lambda function for auto-deleting objects in ", - { - "Ref": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83" - }, - " S3 bucket." - ] - ] - } - }, - "DependsOn": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - ], - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", - "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", - "aws:asset:property": "Code" - } - }, - "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Role/Resource" - } - }, - "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleDefaultPolicy2CF63D36": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:PutBucketNotification", - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleDefaultPolicy2CF63D36", - "Roles": [ - { - "Ref": "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Role/DefaultPolicy/Resource" - } - }, - "BucketNotificationsHandler050a0587b7544547bf325f094a3db8347ECC3691": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Description": "AWS CloudFormation handler for \"Custom::S3BucketNotifications\" resources (@aws-cdk/aws-s3)", - "Code": { - "ZipFile": "import boto3 # type: ignore\nimport json\nimport logging\nimport urllib.request\n\ns3 = boto3.client(\"s3\")\n\nEVENTBRIDGE_CONFIGURATION = 'EventBridgeConfiguration'\nCONFIGURATION_TYPES = [\"TopicConfigurations\", \"QueueConfigurations\", \"LambdaFunctionConfigurations\"]\n\ndef handler(event: dict, context):\n response_status = \"SUCCESS\"\n error_message = \"\"\n try:\n props = event[\"ResourceProperties\"]\n notification_configuration = props[\"NotificationConfiguration\"]\n managed = props.get('Managed', 'true').lower() == 'true'\n skipDestinationValidation = props.get('SkipDestinationValidation', 'false').lower() == 'true'\n stack_id = event['StackId']\n old = event.get(\"OldResourceProperties\", {}).get(\"NotificationConfiguration\", {})\n if managed:\n config = handle_managed(event[\"RequestType\"], notification_configuration)\n else:\n config = handle_unmanaged(props[\"BucketName\"], stack_id, event[\"RequestType\"], notification_configuration, old)\n s3.put_bucket_notification_configuration(Bucket=props[\"BucketName\"], NotificationConfiguration=config, SkipDestinationValidation=skipDestinationValidation)\n except Exception as e:\n logging.exception(\"Failed to put bucket notification configuration\")\n response_status = \"FAILED\"\n error_message = f\"Error: {str(e)}. \"\n finally:\n submit_response(event, context, response_status, error_message)\n\ndef handle_managed(request_type, notification_configuration):\n if request_type == 'Delete':\n return {}\n return notification_configuration\n\ndef handle_unmanaged(bucket, stack_id, request_type, notification_configuration, old):\n def get_id(n):\n n['Id'] = ''\n sorted_notifications = sort_filter_rules(n)\n strToHash=json.dumps(sorted_notifications, sort_keys=True).replace('\"Name\": \"prefix\"', '\"Name\": \"Prefix\"').replace('\"Name\": \"suffix\"', '\"Name\": \"Suffix\"')\n return f\"{stack_id}-{hash(strToHash)}\"\n def with_id(n):\n n['Id'] = get_id(n)\n return n\n\n external_notifications = {}\n existing_notifications = s3.get_bucket_notification_configuration(Bucket=bucket)\n for t in CONFIGURATION_TYPES:\n if request_type == 'Update':\n old_incoming_ids = [get_id(n) for n in old.get(t, [])]\n external_notifications[t] = [n for n in existing_notifications.get(t, []) if not get_id(n) in old_incoming_ids] \n elif request_type == 'Delete':\n external_notifications[t] = [n for n in existing_notifications.get(t, []) if not n['Id'].startswith(f\"{stack_id}-\")]\n elif request_type == 'Create':\n external_notifications[t] = [n for n in existing_notifications.get(t, [])]\n if EVENTBRIDGE_CONFIGURATION in existing_notifications:\n external_notifications[EVENTBRIDGE_CONFIGURATION] = existing_notifications[EVENTBRIDGE_CONFIGURATION]\n\n if request_type == 'Delete':\n return external_notifications\n\n notifications = {}\n for t in CONFIGURATION_TYPES:\n external = external_notifications.get(t, [])\n incoming = [with_id(n) for n in notification_configuration.get(t, [])]\n notifications[t] = external + incoming\n\n if EVENTBRIDGE_CONFIGURATION in notification_configuration:\n notifications[EVENTBRIDGE_CONFIGURATION] = notification_configuration[EVENTBRIDGE_CONFIGURATION]\n elif EVENTBRIDGE_CONFIGURATION in external_notifications:\n notifications[EVENTBRIDGE_CONFIGURATION] = external_notifications[EVENTBRIDGE_CONFIGURATION]\n\n return notifications\n\ndef submit_response(event: dict, context, response_status: str, error_message: str):\n response_body = json.dumps(\n {\n \"Status\": response_status,\n \"Reason\": f\"{error_message}See the details in CloudWatch Log Stream: {context.log_stream_name}\",\n \"PhysicalResourceId\": event.get(\"PhysicalResourceId\") or event[\"LogicalResourceId\"],\n \"StackId\": event[\"StackId\"],\n \"RequestId\": event[\"RequestId\"],\n \"LogicalResourceId\": event[\"LogicalResourceId\"],\n \"NoEcho\": False,\n }\n ).encode(\"utf-8\")\n headers = {\"content-type\": \"\", \"content-length\": str(len(response_body))}\n try:\n req = urllib.request.Request(url=event[\"ResponseURL\"], headers=headers, data=response_body, method=\"PUT\")\n with urllib.request.urlopen(req) as response:\n print(response.read().decode(\"utf-8\"))\n print(\"Status code: \" + response.reason)\n except Exception as e:\n print(\"send(..) failed executing request.urlopen(..): \" + str(e))\n\ndef sort_filter_rules(json_obj):\n if not isinstance(json_obj, dict):\n return json_obj\n for key, value in json_obj.items():\n if isinstance(value, dict):\n json_obj[key] = sort_filter_rules(value)\n elif isinstance(value, list):\n json_obj[key] = [sort_filter_rules(item) for item in value]\n if \"Filter\" in json_obj and \"Key\" in json_obj[\"Filter\"] and \"FilterRules\" in json_obj[\"Filter\"][\"Key\"]:\n filter_rules = json_obj[\"Filter\"][\"Key\"][\"FilterRules\"]\n sorted_filter_rules = sorted(filter_rules, key=lambda x: x[\"Name\"])\n json_obj[\"Filter\"][\"Key\"][\"FilterRules\"] = sorted_filter_rules\n return json_obj" - }, - "Handler": "index.handler", - "Role": { - "Fn::GetAtt": [ - "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC", - "Arn" - ] - }, - "Runtime": "python3.13", - "Timeout": 300, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "DependsOn": [ - "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleDefaultPolicy2CF63D36", - "BucketNotificationsHandler050a0587b7544547bf325f094a3db834RoleB6FB88EC" - ], - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/BucketNotificationsHandler050a0587b7544547bf325f094a3db834/Resource" - } - }, - "PRODUCTCATALOGF95AF07481F845CAA6594C26AC9C8ED331323GEN2MAINBUCKETNAMEParameterAE2B6C43": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/productcatalog/gen2main-branch-4b79ec0f9a/PRODUCTCATALOGF_95_AF_07481_F_845_CAA_6594_C_26_AC_9_C_8_ED_331323_GEN_2_MAIN_BUCKET_NAME", - "Tags": { - "amplify:app-id": "productcatalog", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": { - "Ref": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/PRODUCTCATALOGF_95_AF_07481_F_845_CAA_6594_C_26_AC_9_C_8_ED_331323_GEN_2_MAIN_BUCKET_NAMEParameter/Resource" - } - }, - "amplifyproductcataloggen2mainbranch4b79ec0f9astorageAccess4028BDDB5": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:PutObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - }, - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - }, - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - }, - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - }, - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - }, - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - }, - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/*", - "public/", - "protected/*", - "protected/", - "private/*", - "private/" - ] - } - }, - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - } - }, - { - "Action": "s3:DeleteObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - }, - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - }, - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83", - "Arn" - ] - }, - "/private/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "amplifyproductcataloggen2mainbranch4b79ec0f9astorageAccess4028BDDB5", - "Roles": [ - { - "Ref": "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/amplify-productcatalog-gen2main-branch-4b79ec0f9a--storageAccess4/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WMwY6DMAxEv6X34G3ZHvbacq8QfEBlEhe5kESKDdUq4t+rhe1We3ozHs+UUB4PsN/hQwrrhmLkDvKFRMm1inYw+JBrlk/I58kOpKa6hV+1oY4j2+/3efOLGdF3DqG6hZqSZxGOwTB6yE0c6ed/5bv+Kop4yK0mDn2NCT0ppTV/mWUx1SQafUMSp2S3sT/9L6pTnNlROqOQOYmQtoo9h34xITqCu3zMZQmHL9jv7sJcpCkoe4Jm4xOpWX2AHwEAAA==" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9afunctionNestedStackfunctionNestedStackResource6DAC5252Outputsamplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda22206BBBArn": { - "Type": "String" - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref": { - "Type": "String" - } - }, - "Outputs": { - "amplifyproductcataloggen2mainbranch4b79ec0f9astorageproductcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketBD2F9EF2Ref": { - "Value": { - "Ref": "productcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucket67A98B83" - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a.description.txt b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a.description.txt deleted file mode 100644 index b40731368ef..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.21.0","stackType":"root","metadata":{}} \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a.outputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a.outputs.json deleted file mode 100644 index e3f3e69cf45..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a.outputs.json +++ /dev/null @@ -1,138 +0,0 @@ -[ - { - "OutputKey": "webClientId", - "OutputValue": "61e6oq3acg1at7f9da6cfna70d" - }, - { - "OutputKey": "socialProviders", - "OutputValue": "" - }, - { - "OutputKey": "usernameAttributes", - "OutputValue": "[\"email\"]" - }, - { - "OutputKey": "bucketName", - "OutputValue": "amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam" - }, - { - "OutputKey": "signupAttributes", - "OutputValue": "[\"email\"]" - }, - { - "OutputKey": "oauthClientId", - "OutputValue": "61e6oq3acg1at7f9da6cfna70d" - }, - { - "OutputKey": "allowUnauthenticatedIdentities", - "OutputValue": "false" - }, - { - "OutputKey": "oauthCognitoDomain", - "OutputValue": "" - }, - { - "OutputKey": "oauthScope", - "OutputValue": "[\"profile\",\"phone\",\"email\",\"openid\",\"aws.cognito.signin.user.admin\"]" - }, - { - "OutputKey": "oauthRedirectSignOut", - "OutputValue": "" - }, - { - "OutputKey": "awsAppsyncAdditionalAuthenticationTypes", - "OutputValue": "API_KEY,AMAZON_COGNITO_USER_POOLS" - }, - { - "OutputKey": "mfaTypes", - "OutputValue": "[]" - }, - { - "OutputKey": "mfaConfiguration", - "OutputValue": "OFF" - }, - { - "OutputKey": "storageRegion", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "oauthResponseType", - "OutputValue": "code" - }, - { - "OutputKey": "awsAppsyncApiKey", - "OutputValue": "da2-fakeapikey00000000000000" - }, - { - "OutputKey": "awsAppsyncAuthenticationType", - "OutputValue": "AWS_IAM" - }, - { - "OutputKey": "oauthRedirectSignIn", - "OutputValue": "https://example.com" - }, - { - "OutputKey": "passwordPolicyMinLength", - "OutputValue": "8" - }, - { - "OutputKey": "awsAppsyncApiEndpoint", - "OutputValue": "https://ezubvwgxara45chr4bilqahity.appsync-api.us-east-1.amazonaws.com/graphql" - }, - { - "OutputKey": "awsAppsyncApiId", - "OutputValue": "3afyqracmndnzmjr344badj4ja" - }, - { - "OutputKey": "authRegion", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "buckets", - "OutputValue": "[\"{\\\"name\\\":\\\"productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main\\\",\\\"bucketName\\\":\\\"amplify-productcatalog-ge-productcatalogf95af07481-vzyggfkxkyam\\\",\\\"storageRegion\\\":\\\"us-east-1\\\",\\\"paths\\\":{\\\"public/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]},\\\"protected/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]},\\\"private/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]}}}\"]" - }, - { - "OutputKey": "amplifyApiModelSchemaS3Uri", - "OutputValue": "s3://amplify-productcatalog-ge-amplifydataamplifycodege-ng0qcpijfecm/model-schema.graphql" - }, - { - "OutputKey": "groups", - "OutputValue": "[]" - }, - { - "OutputKey": "definedFunctions", - "OutputValue": "[\"S3Trigger1ef46783-gen2-main\",\"lowstockproducts-gen2-main\"]" - }, - { - "OutputKey": "passwordlessOptions", - "OutputValue": "" - }, - { - "OutputKey": "awsAppsyncRegion", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "deploymentType", - "OutputValue": "branch" - }, - { - "OutputKey": "passwordPolicyRequirements", - "OutputValue": "[]" - }, - { - "OutputKey": "region", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "userPoolId", - "OutputValue": "us-east-1_OFRBVzhq5" - }, - { - "OutputKey": "identityPoolId", - "OutputValue": "us-east-1:c464f123-eaf0-4289-98b3-381197fa3d7f" - }, - { - "OutputKey": "verificationMechanisms", - "OutputValue": "[\"email\"]" - } -] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a.parameters.json deleted file mode 100644 index 74596fb6f32..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a.parameters.json +++ /dev/null @@ -1,7 +0,0 @@ -[ - { - "ParameterKey": "BootstrapVersion", - "ParameterValue": "/cdk-bootstrap/hnb659fds/version", - "ResolvedValue": "30" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a.template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a.template.json deleted file mode 100644 index 14c7ce81fa3..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-gen2main-branch-4b79ec0f9a.template.json +++ /dev/null @@ -1,1176 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.21.0\",\"stackType\":\"root\",\"metadata\":{}}", - "Metadata": { - "AWS::Amplify::Platform": { - "version": "1", - "stackOutputs": [ - "deploymentType", - "region" - ] - }, - "AWS::Amplify::Auth": { - "version": "1", - "stackOutputs": [ - "userPoolId", - "webClientId", - "identityPoolId", - "authRegion", - "allowUnauthenticatedIdentities", - "signupAttributes", - "usernameAttributes", - "verificationMechanisms", - "passwordPolicyMinLength", - "passwordPolicyRequirements", - "mfaConfiguration", - "mfaTypes", - "passwordlessOptions", - "socialProviders", - "oauthCognitoDomain", - "oauthScope", - "oauthRedirectSignIn", - "oauthRedirectSignOut", - "oauthResponseType", - "oauthClientId", - "groups" - ] - }, - "AWS::Amplify::GraphQL": { - "version": "1", - "stackOutputs": [ - "awsAppsyncApiId", - "awsAppsyncApiEndpoint", - "awsAppsyncAuthenticationType", - "awsAppsyncRegion", - "amplifyApiModelSchemaS3Uri", - "awsAppsyncApiKey", - "awsAppsyncAdditionalAuthenticationTypes" - ] - }, - "AWS::Amplify::Function": { - "version": "1", - "stackOutputs": [ - "definedFunctions" - ] - }, - "AWS::Amplify::Storage": { - "version": "1", - "stackOutputs": [ - "buckets", - "storageRegion", - "bucketName" - ] - } - }, - "Outputs": { - "deploymentType": { - "Value": "branch" - }, - "region": { - "Value": { - "Ref": "AWS::Region" - } - }, - "userPoolId": { - "Value": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthUserPool0E44954DRef" - ] - } - }, - "webClientId": { - "Value": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthUserPoolAppClient99A19E4CRef" - ] - } - }, - "identityPoolId": { - "Value": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef" - ] - } - }, - "authRegion": { - "Value": { - "Ref": "AWS::Region" - } - }, - "allowUnauthenticatedIdentities": { - "Value": "false" - }, - "signupAttributes": { - "Value": "[\"email\"]" - }, - "usernameAttributes": { - "Value": "[\"email\"]" - }, - "verificationMechanisms": { - "Value": "[\"email\"]" - }, - "passwordPolicyMinLength": { - "Value": "8" - }, - "passwordPolicyRequirements": { - "Value": "[]" - }, - "mfaConfiguration": { - "Value": "OFF" - }, - "mfaTypes": { - "Value": "[]" - }, - "passwordlessOptions": { - "Value": "" - }, - "socialProviders": { - "Value": "" - }, - "oauthCognitoDomain": { - "Value": "" - }, - "oauthScope": { - "Value": "[\"profile\",\"phone\",\"email\",\"openid\",\"aws.cognito.signin.user.admin\"]" - }, - "oauthRedirectSignIn": { - "Value": "https://example.com" - }, - "oauthRedirectSignOut": { - "Value": "" - }, - "oauthResponseType": { - "Value": "code" - }, - "oauthClientId": { - "Value": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthUserPoolAppClient99A19E4CRef" - ] - } - }, - "groups": { - "Value": "[]" - }, - "awsAppsyncApiId": { - "Value": { - "Fn::GetAtt": [ - "data7552DF31", - "Outputs.amplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - ] - } - }, - "awsAppsyncApiEndpoint": { - "Value": { - "Fn::GetAtt": [ - "data7552DF31", - "Outputs.amplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CGraphQLUrl" - ] - } - }, - "awsAppsyncAuthenticationType": { - "Value": "AWS_IAM" - }, - "awsAppsyncRegion": { - "Value": { - "Ref": "AWS::Region" - } - }, - "amplifyApiModelSchemaS3Uri": { - "Value": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Fn::Select": [ - 0, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "data7552DF31", - "Outputs.amplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiBE3458598DestinationBucketArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "/model-schema.graphql" - ] - ] - } - }, - "awsAppsyncApiKey": { - "Value": { - "Fn::GetAtt": [ - "data7552DF31", - "Outputs.amplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPIDefaultApiKeyDA6BE9EAApiKey" - ] - } - }, - "awsAppsyncAdditionalAuthenticationTypes": { - "Value": "API_KEY,AMAZON_COGNITO_USER_POOLS" - }, - "definedFunctions": { - "Value": { - "Fn::Join": [ - "", - [ - "[\"", - { - "Fn::GetAtt": [ - "function1351588B", - "Outputs.amplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda22206BBBRef" - ] - }, - "\",\"", - { - "Fn::GetAtt": [ - "function1351588B", - "Outputs.amplifyproductcataloggen2mainbranch4b79ec0f9afunctionlowstockproductsgen2mainlambda27C27D88Ref" - ] - }, - "\"]" - ] - ] - } - }, - "storageRegion": { - "Value": { - "Ref": "AWS::Region" - } - }, - "bucketName": { - "Value": { - "Fn::GetAtt": [ - "storage0EC3F24A", - "Outputs.amplifyproductcataloggen2mainbranch4b79ec0f9astorageproductcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketBD2F9EF2Ref" - ] - } - }, - "buckets": { - "Value": { - "Fn::Join": [ - "", - [ - "[\"{\\\"name\\\":\\\"productcatalogf95af07481f845caa6594c26ac9c8ed331323-gen2-main\\\",\\\"bucketName\\\":\\\"", - { - "Fn::GetAtt": [ - "storage0EC3F24A", - "Outputs.amplifyproductcataloggen2mainbranch4b79ec0f9astorageproductcatalogf95af07481f845caa6594c26ac9c8ed331323gen2mainBucketBD2F9EF2Ref" - ] - }, - "\\\",\\\"storageRegion\\\":\\\"", - { - "Ref": "AWS::Region" - }, - "\\\",\\\"paths\\\":{\\\"public/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]},\\\"protected/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]},\\\"private/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]}}}\"]" - ] - ] - } - } - }, - "Resources": { - "AmplifyBranchLinkerCustomResourceLambdaServiceRole3DDCBC03": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/AmplifyBranchLinker/CustomResourceLambda/ServiceRole/Resource" - } - }, - "AmplifyBranchLinkerCustomResourceLambdaServiceRoleDefaultPolicy86099CA1": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "amplify:GetBranch", - "amplify:UpdateBranch" - ], - "Effect": "Allow", - "Resource": "arn:aws:amplify:*:*:apps/productcatalog/branches/gen2-main" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "AmplifyBranchLinkerCustomResourceLambdaServiceRoleDefaultPolicy86099CA1", - "Roles": [ - { - "Ref": "AmplifyBranchLinkerCustomResourceLambdaServiceRole3DDCBC03" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/AmplifyBranchLinker/CustomResourceLambda/ServiceRole/DefaultPolicy/Resource" - } - }, - "AmplifyBranchLinkerCustomResourceLambda582AC093": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "a45f725f5c6f5b670043b803123ddc5a6a8314f6fcd79e4a859a026c0a31f3fd.zip" - }, - "Handler": "index.handler", - "Role": { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceLambdaServiceRole3DDCBC03", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 10 - }, - "DependsOn": [ - "AmplifyBranchLinkerCustomResourceLambdaServiceRoleDefaultPolicy86099CA1", - "AmplifyBranchLinkerCustomResourceLambdaServiceRole3DDCBC03" - ], - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/AmplifyBranchLinker/CustomResourceLambda/Resource", - "aws:asset:path": "asset.a45f725f5c6f5b670043b803123ddc5a6a8314f6fcd79e4a859a026c0a31f3fd", - "aws:asset:is-bundled": true, - "aws:asset:property": "Code" - } - }, - "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRole92A035EB": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/AmplifyBranchLinker/CustomResourceProvider/framework-onEvent/ServiceRole/Resource" - } - }, - "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRoleDefaultPolicy38AAE412": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "lambda:InvokeFunction", - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceLambda582AC093", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceLambda582AC093", - "Arn" - ] - }, - ":*" - ] - ] - } - ] - }, - { - "Action": "lambda:GetFunction", - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceLambda582AC093", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRoleDefaultPolicy38AAE412", - "Roles": [ - { - "Ref": "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRole92A035EB" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/AmplifyBranchLinker/CustomResourceProvider/framework-onEvent/ServiceRole/DefaultPolicy/Resource" - } - }, - "AmplifyBranchLinkerCustomResourceProviderframeworkonEvent3B23F900": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "07a90cc3efdfc34da22208dcd9d211f06f5b0e01b21e778edc7c3966b1f61d57.zip" - }, - "Description": "AWS CDK resource provider framework - onEvent (amplify-productcatalog-gen2main-branch-4b79ec0f9a/AmplifyBranchLinker/CustomResourceProvider)", - "Environment": { - "Variables": { - "USER_ON_EVENT_FUNCTION_ARN": { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceLambda582AC093", - "Arn" - ] - } - } - }, - "Handler": "framework.onEvent", - "LoggingConfig": { - "ApplicationLogLevel": "FATAL", - "LogFormat": "JSON" - }, - "Role": { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRole92A035EB", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 900 - }, - "DependsOn": [ - "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRoleDefaultPolicy38AAE412", - "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRole92A035EB" - ], - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/AmplifyBranchLinker/CustomResourceProvider/framework-onEvent/Resource", - "aws:asset:path": "asset.07a90cc3efdfc34da22208dcd9d211f06f5b0e01b21e778edc7c3966b1f61d57", - "aws:asset:is-bundled": false, - "aws:asset:property": "Code" - } - }, - "AmplifyBranchLinkerCustomResource96E36FC1": { - "Type": "Custom::AmplifyBranchLinkerResource", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceProviderframeworkonEvent3B23F900", - "Arn" - ] - }, - "appId": "productcatalog", - "branchName": "gen2-main" - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/AmplifyBranchLinker/CustomResource/Default" - } - }, - "auth179371D7": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/667fcd0771e279ea215d29e52f399487e24f7386c1860288852daf655b1597be.json" - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/auth.NestedStack/auth.NestedStackResource", - "aws:asset:path": "amplifyproductcataloggen2mainbranch4b79ec0f9aauthEC6EF783.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "data7552DF31": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthUserPool0E44954DRef": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthUserPool0E44954DRef" - ] - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref" - ] - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthunauthenticatedUserRole84BD6ECBRef" - ] - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthIdentityPool3AA33B1CRef" - ] - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/ed0be247f98bc4f9480c3f01423554fa80fd99c51d322b1e82fe4af8bc565ba3.json" - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/data.NestedStack/data.NestedStackResource", - "aws:asset:path": "amplifyproductcataloggen2mainbranch4b79ec0f9adata7DA06D89.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "storage0EC3F24A": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9afunctionNestedStackfunctionNestedStackResource6DAC5252Outputsamplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda22206BBBArn": { - "Fn::GetAtt": [ - "function1351588B", - "Outputs.amplifyproductcataloggen2mainbranch4b79ec0f9afunctionS3Trigger1ef46783gen2mainlambda22206BBBArn" - ] - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9aauthNestedStackauthNestedStackResourceED3C90A5Outputsamplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifyproductcataloggen2mainbranch4b79ec0f9aauthamplifyAuthauthenticatedUserRole66B9FD31Ref" - ] - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/e6ee5d5e6b2bfbeebb42219dea0a23b768a857c7433dd1406edecf551d547ec2.json" - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/storage.NestedStack/storage.NestedStackResource", - "aws:asset:path": "amplifyproductcataloggen2mainbranch4b79ec0f9astorage5D5EB4EB.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "function1351588B": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataNestedStackdataNestedStackResource4BE83A16Outputsamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId": { - "Fn::GetAtt": [ - "data7552DF31", - "Outputs.amplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CApiId" - ] - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataNestedStackdataNestedStackResource4BE83A16Outputsamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPIDefaultApiKeyDA6BE9EAApiKey": { - "Fn::GetAtt": [ - "data7552DF31", - "Outputs.amplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPIDefaultApiKeyDA6BE9EAApiKey" - ] - }, - "referencetoamplifyproductcataloggen2mainbranch4b79ec0f9adataNestedStackdataNestedStackResource4BE83A16Outputsamplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CGraphQLUrl": { - "Fn::GetAtt": [ - "data7552DF31", - "Outputs.amplifyproductcataloggen2mainbranch4b79ec0f9adataamplifyDataGraphQLAPI1717433CGraphQLUrl" - ] - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "productcatalog" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/e0f15ee4eac68f5715d888b82b051cf3aa0a5773584c5586fda3a52d67feea2f.json" - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/function.NestedStack/function.NestedStackResource", - "aws:asset:path": "amplifyproductcataloggen2mainbranch4b79ec0f9afunction4E040D0C.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/02PzWrDQAyEnyV3WU2cHHptDD22wXkAo6yVIP/slpU2oRi/e/C6LT19I4YZNCWWhx1uN/TQwrV9McgFp7OR66G6+s9kX8mAHtpMA42XlhofWu4UPzLek3cmwYPQiFMdBl5SmacwiPtezlXNoPuGVNkU3xaA7vGYXM92JGVY63Gqrv6v9VfMM+TI2egm/gYuqYWxiawhRceKpxju0nKEKjv1j5Gf+afzrhmWCdjpy70scfeK202nIkVM3mRkrFc+AUTtSG0ZAQAA" - }, - "Metadata": { - "aws:cdk:path": "amplify-productcatalog-gen2main-branch-4b79ec0f9a/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "BootstrapVersion": { - "Type": "AWS::SSM::Parameter::Value", - "Default": "/cdk-bootstrap/hnb659fds/version", - "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]" - } - }, - "Rules": { - "CheckBootstrapVersion": { - "Assertions": [ - { - "Assert": { - "Fn::Not": [ - { - "Fn::Contains": [ - [ - "1", - "2", - "3", - "4", - "5" - ], - { - "Ref": "BootstrapVersion" - } - ] - } - ] - }, - "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI." - } - ] - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63-FunctionDirectiveStack-1X1DEXAOL9FGJ.description.txt b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63-FunctionDirectiveStack-1X1DEXAOL9FGJ.description.txt deleted file mode 100644 index 87d574fa42f..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63-FunctionDirectiveStack-1X1DEXAOL9FGJ.description.txt +++ /dev/null @@ -1 +0,0 @@ -An auto-generated nested stack for the @function directive. \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63-FunctionDirectiveStack-1X1DEXAOL9FGJ.outputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63-FunctionDirectiveStack-1X1DEXAOL9FGJ.outputs.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63-FunctionDirectiveStack-1X1DEXAOL9FGJ.outputs.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63-FunctionDirectiveStack-1X1DEXAOL9FGJ.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63-FunctionDirectiveStack-1X1DEXAOL9FGJ.parameters.json deleted file mode 100644 index e33b95bc202..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63-FunctionDirectiveStack-1X1DEXAOL9FGJ.parameters.json +++ /dev/null @@ -1,30 +0,0 @@ -[ - { - "ParameterKey": "referencetotransformerrootstackunauthRoleName49F3C1FERef", - "ParameterValue": "amplify-productcatalog-main-31323-unauthRole" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", - "ParameterValue": "amplify-appsync-files/51b6d4362e9dc4529fd8298646795247239d2c30" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", - "ParameterValue": "3oy6oxkj6ffojmc2upd52ftdsq" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", - "ParameterValue": "amplify-productcatalog-main-31323-deployment" - }, - { - "ParameterKey": "referencetotransformerrootstackauthRoleNameFB872D50Ref", - "ParameterValue": "amplify-productcatalog-main-31323-authRole" - }, - { - "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", - "ParameterValue": "main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63-FunctionDirectiveStack-1X1DEXAOL9FGJ.template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63-FunctionDirectiveStack-1X1DEXAOL9FGJ.template.json deleted file mode 100644 index 6171fe10ff0..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63-FunctionDirectiveStack-1X1DEXAOL9FGJ.template.json +++ /dev/null @@ -1,310 +0,0 @@ -{ - "Description": "An auto-generated nested stack for the @function directive.", - "AWSTemplateFormatVersion": "2010-09-09", - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - }, - "NONE" - ] - } - ] - } - }, - "Resources": { - "LowstockproductsLambdaDataSourceServiceRole5CDC1376": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - } - } - }, - "LowstockproductsLambdaDataSourceServiceRoleDefaultPolicyE62E3A80": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "lambda:InvokeFunction", - "Effect": "Allow", - "Resource": [ - { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:lowstockproducts-${env}", - { - "env": { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - } - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:lowstockproducts" - } - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:lowstockproducts-${env}", - { - "env": { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - } - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:lowstockproducts" - } - ] - }, - ":*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "LowstockproductsLambdaDataSourceServiceRoleDefaultPolicyE62E3A80", - "Roles": [ - { - "Ref": "LowstockproductsLambdaDataSourceServiceRole5CDC1376" - } - ] - } - }, - "LowstockproductsLambdaDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "LambdaConfig": { - "LambdaFunctionArn": { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:lowstockproducts-${env}", - { - "env": { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - } - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:lowstockproducts" - } - ] - } - }, - "Name": "LowstockproductsLambdaDataSource", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "LowstockproductsLambdaDataSourceServiceRole5CDC1376", - "Arn" - ] - }, - "Type": "AWS_LAMBDA" - } - }, - "InvokeLowstockproductsLambdaDataSourceInvokeLowstockproductsLambdaDataSourceAppSyncFunctionFA1A1E78": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "LowstockproductsLambdaDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "InvokeLowstockproductsLambdaDataSource", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/InvokeLowstockproductsLambdaDataSource.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/InvokeLowstockproductsLambdaDataSource.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "LowstockproductsLambdaDataSource" - ] - }, - "QuerycheckLowStockResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "checkLowStock", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QueryCheckLowStockAuthFNQueryCheckLowStockAuthFNAppSyncFunction691D681D", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "InvokeLowstockproductsLambdaDataSourceInvokeLowstockproductsLambdaDataSourceAppSyncFunctionFA1A1E78", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"checkLowStock\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:46acac6f-21d1-433c-93b9-d9d908c696fc\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n{}\n## [End] Stash resolver specific context.. **" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.checkLowStock.res.vtl" - ] - ] - }, - "TypeName": "Query" - } - }, - "QueryCheckLowStockAuthFNQueryCheckLowStockAuthFNAppSyncFunction691D681D": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryCheckLowStockAuthFN", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.checkLowStock.auth.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - } - }, - "Parameters": { - "referencetotransformerrootstackenv10C5A902Ref": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Type": "String" - }, - "referencetotransformerrootstackauthRoleNameFB872D50Ref": { - "Type": "String" - }, - "referencetotransformerrootstackunauthRoleName49F3C1FERef": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Type": "String" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-Comment-5H0ZI7LX8KTD.description.txt b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-Comment-5H0ZI7LX8KTD.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-Comment-5H0ZI7LX8KTD.outputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-Comment-5H0ZI7LX8KTD.outputs.json deleted file mode 100644 index 75aef3c3ce0..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-Comment-5H0ZI7LX8KTD.outputs.json +++ /dev/null @@ -1,28 +0,0 @@ -[ - { - "OutputKey": "GetAttCommentDataSourceName", - "OutputValue": "CommentTable", - "Description": "Your model DataSource name.", - "ExportName": "3oy6oxkj6ffojmc2upd52ftdsq:GetAtt:CommentDataSource:Name" - }, - { - "OutputKey": "GetAttCommentTableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Comment-3oy6oxkj6ffojmc2upd52ftdsq-main/stream/2026-03-07T14:16:20.992", - "Description": "Your DynamoDB table StreamArn.", - "ExportName": "3oy6oxkj6ffojmc2upd52ftdsq:GetAtt:CommentTable:StreamArn" - }, - { - "OutputKey": "transformerrootstackCommentCommentDataSourceA0E54655Name", - "OutputValue": "CommentTable" - }, - { - "OutputKey": "transformerrootstackCommentCommentTable5427FDE2Ref", - "OutputValue": "Comment-3oy6oxkj6ffojmc2upd52ftdsq-main" - }, - { - "OutputKey": "GetAttCommentTableName", - "OutputValue": "Comment-3oy6oxkj6ffojmc2upd52ftdsq-main", - "Description": "Your DynamoDB table name.", - "ExportName": "3oy6oxkj6ffojmc2upd52ftdsq:GetAtt:CommentTable:Name" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-Comment-5H0ZI7LX8KTD.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-Comment-5H0ZI7LX8KTD.parameters.json deleted file mode 100644 index f99ec75bd8a..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-Comment-5H0ZI7LX8KTD.parameters.json +++ /dev/null @@ -1,66 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserSubscriptionOnCreateUserDataResolverFnSubscriptionOnCreateUserDataResolverFnAppSyncFunctionCAFEE24EFunctionId", - "ParameterValue": "ohgtfmzzb5fcbku37u4xxa3d54" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", - "ParameterValue": "amplify-appsync-files/51b6d4362e9dc4529fd8298646795247239d2c30" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", - "ParameterValue": "3oy6oxkj6ffojmc2upd52ftdsq" - }, - { - "ParameterKey": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserMutationcreateUserinit0FunctionMutationcreateUserinit0FunctionAppSyncFunction5CF77F6AFunctionId", - "ParameterValue": "eahdpvdvdjhw5ejcm6mzyp6lae" - }, - { - "ParameterKey": "referencetotransformerrootstackunauthRoleName49F3C1FERef", - "ParameterValue": "amplify-productcatalog-main-31323-unauthRole" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "false" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserMutationupdateUserinit0FunctionMutationupdateUserinit0FunctionAppSyncFunction90E2C98AFunctionId", - "ParameterValue": "uduwhs6xxvf3ror7wbe7domohi" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", - "ParameterValue": "amplify-productcatalog-main-31323-deployment" - }, - { - "ParameterKey": "referencetotransformerrootstackauthRoleNameFB872D50Ref", - "ParameterValue": "amplify-productcatalog-main-31323-authRole" - }, - { - "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", - "ParameterValue": "main" - }, - { - "ParameterKey": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId", - "ParameterValue": "tbj7jtlninfzndyh3dmgps2snq" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-Comment-5H0ZI7LX8KTD.template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-Comment-5H0ZI7LX8KTD.template.json deleted file mode 100644 index dd31011ebe7..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-Comment-5H0ZI7LX8KTD.template.json +++ /dev/null @@ -1,1640 +0,0 @@ -{ - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "referencetotransformerrootstackenv10C5A902Ref": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Type": "String" - }, - "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId": { - "Type": "String" - }, - "referencetotransformerrootstackauthRoleNameFB872D50Ref": { - "Type": "String" - }, - "referencetotransformerrootstackunauthRoleName49F3C1FERef": { - "Type": "String" - }, - "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserMutationcreateUserinit0FunctionMutationcreateUserinit0FunctionAppSyncFunction5CF77F6AFunctionId": { - "Type": "String" - }, - "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserMutationupdateUserinit0FunctionMutationupdateUserinit0FunctionAppSyncFunction90E2C98AFunctionId": { - "Type": "String" - }, - "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserSubscriptionOnCreateUserDataResolverFnSubscriptionOnCreateUserDataResolverFnAppSyncFunctionCAFEE24EFunctionId": { - "Type": "String" - } - }, - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - }, - "NONE" - ] - } - ] - }, - "ShouldUseServerSideEncryption": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "true" - ] - }, - "ShouldUsePayPerRequestBilling": { - "Fn::Equals": [ - { - "Ref": "DynamoDBBillingMode" - }, - "PAY_PER_REQUEST" - ] - }, - "ShouldUsePointInTimeRecovery": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "true" - ] - } - }, - "Resources": { - "CommentTable": { - "Type": "AWS::DynamoDB::Table", - "Properties": { - "AttributeDefinitions": [ - { - "AttributeName": "id", - "AttributeType": "S" - }, - { - "AttributeName": "productId", - "AttributeType": "S" - } - ], - "BillingMode": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - "PAY_PER_REQUEST", - { - "Ref": "AWS::NoValue" - } - ] - }, - "GlobalSecondaryIndexes": [ - { - "IndexName": "byProduct", - "KeySchema": [ - { - "AttributeName": "productId", - "KeyType": "HASH" - } - ], - "Projection": { - "ProjectionType": "ALL" - }, - "ProvisionedThroughput": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - { - "Ref": "AWS::NoValue" - }, - { - "ReadCapacityUnits": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "WriteCapacityUnits": { - "Ref": "DynamoDBModelTableWriteIOPS" - } - } - ] - } - } - ], - "KeySchema": [ - { - "AttributeName": "id", - "KeyType": "HASH" - } - ], - "PointInTimeRecoverySpecification": { - "Fn::If": [ - "ShouldUsePointInTimeRecovery", - { - "PointInTimeRecoveryEnabled": true - }, - { - "Ref": "AWS::NoValue" - } - ] - }, - "ProvisionedThroughput": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - { - "Ref": "AWS::NoValue" - }, - { - "ReadCapacityUnits": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "WriteCapacityUnits": { - "Ref": "DynamoDBModelTableWriteIOPS" - } - } - ] - }, - "SSESpecification": { - "SSEEnabled": { - "Fn::If": [ - "ShouldUseServerSideEncryption", - true, - false - ] - } - }, - "StreamSpecification": { - "StreamViewType": "NEW_AND_OLD_IMAGES" - }, - "TableName": { - "Fn::Join": [ - "", - [ - "Comment-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete" - }, - "CommentIAMRoleD5EC5F51": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:DeleteItem", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:Query", - "dynamodb:UpdateItem", - "dynamodb:ConditionCheckItem", - "dynamodb:DescribeTable", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", - { - "tablename": { - "Fn::Join": [ - "", - [ - "Comment-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - ] - }, - { - "Fn::Sub": [ - "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", - { - "tablename": { - "Fn::Join": [ - "", - [ - "Comment-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "DynamoDBAccess" - } - ], - "RoleName": { - "Fn::Join": [ - "", - [ - "CommentIAMRole20388d-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - }, - "CommentIAMRoleDefaultPolicyA8D6F6B5": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator", - "dynamodb:Query", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:ConditionCheckItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:UpdateItem", - "dynamodb:DeleteItem", - "dynamodb:DescribeTable" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "CommentTable", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "CommentTable", - "Arn" - ] - }, - "/index/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "CommentIAMRoleDefaultPolicyA8D6F6B5", - "Roles": [ - { - "Ref": "CommentIAMRoleD5EC5F51" - } - ] - } - }, - "CommentDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DynamoDBConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "TableName": { - "Ref": "CommentTable" - } - }, - "Name": "CommentTable", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "CommentIAMRoleD5EC5F51", - "Arn" - ] - }, - "Type": "AMAZON_DYNAMODB" - }, - "DependsOn": [ - "CommentIAMRoleD5EC5F51" - ] - }, - "QuerygetCommentauth0FunctionQuerygetCommentauth0FunctionAppSyncFunction4992FD06": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetCommentauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getComment.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "QueryGetCommentDataResolverFnQueryGetCommentDataResolverFnAppSyncFunction8473E2B0": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "CommentDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryGetCommentDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getComment.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getComment.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "CommentDataSource" - ] - }, - "GetCommentResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "getComment", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerygetCommentauth0FunctionQuerygetCommentauth0FunctionAppSyncFunction4992FD06", - "FunctionId" - ] - }, - { - "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId" - }, - { - "Fn::GetAtt": [ - "QueryGetCommentDataResolverFnQueryGetCommentDataResolverFnAppSyncFunction8473E2B0", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "CommentTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:46acac6f-21d1-433c-93b9-d9d908c696fc\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - } - }, - "QueryListCommentsDataResolverFnQueryListCommentsDataResolverFnAppSyncFunction474D4A91": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "CommentDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryListCommentsDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.listComments.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.listComments.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "CommentDataSource" - ] - }, - "ListCommentResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "listComments", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerygetCommentauth0FunctionQuerygetCommentauth0FunctionAppSyncFunction4992FD06", - "FunctionId" - ] - }, - { - "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId" - }, - { - "Fn::GetAtt": [ - "QueryListCommentsDataResolverFnQueryListCommentsDataResolverFnAppSyncFunction474D4A91", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listComments\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "CommentTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:46acac6f-21d1-433c-93b9-d9d908c696fc\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - } - }, - "MutationcreateCommentauth0FunctionMutationcreateCommentauth0FunctionAppSyncFunctionE6EA011A": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateCommentauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createComment.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "MutationCreateCommentDataResolverFnMutationCreateCommentDataResolverFnAppSyncFunctionD019FFE0": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "CommentDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationCreateCommentDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createComment.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createComment.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "CommentDataSource" - ] - }, - "CreateCommentResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "createComment", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserMutationcreateUserinit0FunctionMutationcreateUserinit0FunctionAppSyncFunction5CF77F6AFunctionId" - }, - { - "Fn::GetAtt": [ - "MutationcreateCommentauth0FunctionMutationcreateCommentauth0FunctionAppSyncFunctionE6EA011A", - "FunctionId" - ] - }, - { - "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId" - }, - { - "Fn::GetAtt": [ - "MutationCreateCommentDataResolverFnMutationCreateCommentDataResolverFnAppSyncFunctionD019FFE0", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "CommentTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:46acac6f-21d1-433c-93b9-d9d908c696fc\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "MutationupdateCommentauth0FunctionMutationupdateCommentauth0FunctionAppSyncFunction4E4C7C30": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "CommentDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateCommentauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateComment.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateComment.auth.1.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "CommentDataSource" - ] - }, - "MutationUpdateCommentDataResolverFnMutationUpdateCommentDataResolverFnAppSyncFunctionB47372B5": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "CommentDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationUpdateCommentDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateComment.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateComment.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "CommentDataSource" - ] - }, - "UpdateCommentResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "updateComment", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserMutationupdateUserinit0FunctionMutationupdateUserinit0FunctionAppSyncFunction90E2C98AFunctionId" - }, - { - "Fn::GetAtt": [ - "MutationupdateCommentauth0FunctionMutationupdateCommentauth0FunctionAppSyncFunction4E4C7C30", - "FunctionId" - ] - }, - { - "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId" - }, - { - "Fn::GetAtt": [ - "MutationUpdateCommentDataResolverFnMutationUpdateCommentDataResolverFnAppSyncFunctionB47372B5", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "CommentTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:46acac6f-21d1-433c-93b9-d9d908c696fc\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "MutationdeleteCommentauth0FunctionMutationdeleteCommentauth0FunctionAppSyncFunction268B298A": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "CommentDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeleteCommentauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteComment.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteComment.auth.1.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "CommentDataSource" - ] - }, - "MutationDeleteCommentDataResolverFnMutationDeleteCommentDataResolverFnAppSyncFunctionD661C8CB": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "CommentDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationDeleteCommentDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteComment.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteComment.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "CommentDataSource" - ] - }, - "DeleteCommentResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "deleteComment", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationdeleteCommentauth0FunctionMutationdeleteCommentauth0FunctionAppSyncFunction268B298A", - "FunctionId" - ] - }, - { - "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId" - }, - { - "Fn::GetAtt": [ - "MutationDeleteCommentDataResolverFnMutationDeleteCommentDataResolverFnAppSyncFunctionD661C8CB", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "CommentTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:46acac6f-21d1-433c-93b9-d9d908c696fc\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "SubscriptiononCreateCommentauth0FunctionSubscriptiononCreateCommentauth0FunctionAppSyncFunction883537CC": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononCreateCommentauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Subscription.onCreateComment.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "SubscriptiononCreateCommentResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onCreateComment", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononCreateCommentauth0FunctionSubscriptiononCreateCommentauth0FunctionAppSyncFunction883537CC", - "FunctionId" - ] - }, - { - "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId" - }, - { - "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserSubscriptionOnCreateUserDataResolverFnSubscriptionOnCreateUserDataResolverFnAppSyncFunctionCAFEE24EFunctionId" - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:46acac6f-21d1-433c-93b9-d9d908c696fc\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - }, - "SubscriptiononUpdateCommentResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onUpdateComment", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononCreateCommentauth0FunctionSubscriptiononCreateCommentauth0FunctionAppSyncFunction883537CC", - "FunctionId" - ] - }, - { - "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId" - }, - { - "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserSubscriptionOnCreateUserDataResolverFnSubscriptionOnCreateUserDataResolverFnAppSyncFunctionCAFEE24EFunctionId" - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:46acac6f-21d1-433c-93b9-d9d908c696fc\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - }, - "SubscriptiononDeleteCommentResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onDeleteComment", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononCreateCommentauth0FunctionSubscriptiononCreateCommentauth0FunctionAppSyncFunction883537CC", - "FunctionId" - ] - }, - { - "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId" - }, - { - "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserSubscriptionOnCreateUserDataResolverFnSubscriptionOnCreateUserDataResolverFnAppSyncFunctionCAFEE24EFunctionId" - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:46acac6f-21d1-433c-93b9-d9d908c696fc\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - }, - "QueryCommentsByProductIdDataResolverFnQueryCommentsByProductIdDataResolverFnAppSyncFunction51D11782": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "CommentDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryCommentsByProductIdDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.commentsByProductId.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.commentsByProductId.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "CommentDataSource" - ] - }, - "QuerycommentsByProductIdResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "commentsByProductId", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerygetCommentauth0FunctionQuerygetCommentauth0FunctionAppSyncFunction4992FD06", - "FunctionId" - ] - }, - { - "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId" - }, - { - "Fn::GetAtt": [ - "QueryCommentsByProductIdDataResolverFnQueryCommentsByProductIdDataResolverFnAppSyncFunction51D11782", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"commentsByProductId\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "CommentTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:46acac6f-21d1-433c-93b9-d9d908c696fc\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - } - }, - "CommentAuthorIdDataResolverFnCommentAuthorIdDataResolverFnAppSyncFunction70FFE37E": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "CommentAuthorIdDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Comment.authorId.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Comment.authorId.res.vtl" - ] - ] - } - } - }, - "CommentauthorIdResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "authorId", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "CommentAuthorIdDataResolverFnCommentAuthorIdDataResolverFnAppSyncFunction70FFE37E", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Comment\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"authorId\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:46acac6f-21d1-433c-93b9-d9d908c696fc\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Comment" - } - } - }, - "Outputs": { - "GetAttCommentTableStreamArn": { - "Description": "Your DynamoDB table StreamArn.", - "Value": { - "Fn::GetAtt": [ - "CommentTable", - "StreamArn" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:CommentTable:StreamArn" - ] - ] - } - } - }, - "GetAttCommentTableName": { - "Description": "Your DynamoDB table name.", - "Value": { - "Ref": "CommentTable" - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:CommentTable:Name" - ] - ] - } - } - }, - "GetAttCommentDataSourceName": { - "Description": "Your model DataSource name.", - "Value": { - "Fn::GetAtt": [ - "CommentDataSource", - "Name" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:CommentDataSource:Name" - ] - ] - } - } - }, - "transformerrootstackCommentCommentDataSourceA0E54655Name": { - "Value": { - "Fn::GetAtt": [ - "CommentDataSource", - "Name" - ] - } - }, - "transformerrootstackCommentCommentTable5427FDE2Ref": { - "Value": { - "Ref": "CommentTable" - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-ConnectionStack-1NV3QHAFJT8I6.description.txt b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-ConnectionStack-1NV3QHAFJT8I6.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-ConnectionStack-1NV3QHAFJT8I6.outputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-ConnectionStack-1NV3QHAFJT8I6.outputs.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-ConnectionStack-1NV3QHAFJT8I6.outputs.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-ConnectionStack-1NV3QHAFJT8I6.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-ConnectionStack-1NV3QHAFJT8I6.parameters.json deleted file mode 100644 index b1af82d56e0..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-ConnectionStack-1NV3QHAFJT8I6.parameters.json +++ /dev/null @@ -1,34 +0,0 @@ -[ - { - "ParameterKey": "referencetotransformerrootstackunauthRoleName49F3C1FERef", - "ParameterValue": "amplify-productcatalog-main-31323-unauthRole" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", - "ParameterValue": "amplify-appsync-files/51b6d4362e9dc4529fd8298646795247239d2c30" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "referencetotransformerrootstackCommentNestedStackCommentNestedStackResource199283FBOutputstransformerrootstackCommentCommentTable5427FDE2Ref", - "ParameterValue": "Comment-3oy6oxkj6ffojmc2upd52ftdsq-main" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", - "ParameterValue": "3oy6oxkj6ffojmc2upd52ftdsq" - }, - { - "ParameterKey": "referencetotransformerrootstackCommentNestedStackCommentNestedStackResource199283FBOutputstransformerrootstackCommentCommentDataSourceA0E54655Name", - "ParameterValue": "CommentTable" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", - "ParameterValue": "amplify-productcatalog-main-31323-deployment" - }, - { - "ParameterKey": "referencetotransformerrootstackauthRoleNameFB872D50Ref", - "ParameterValue": "amplify-productcatalog-main-31323-authRole" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-ConnectionStack-1NV3QHAFJT8I6.template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-ConnectionStack-1NV3QHAFJT8I6.template.json deleted file mode 100644 index 576ee2aa859..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-ConnectionStack-1NV3QHAFJT8I6.template.json +++ /dev/null @@ -1,165 +0,0 @@ -{ - "Resources": { - "Productcommentsauth0FunctionProductcommentsauth0FunctionAppSyncFunction815DC611": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "Productcommentsauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Product.comments.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "ProductCommentsDataResolverFnProductCommentsDataResolverFnAppSyncFunction7365B9B6": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackCommentNestedStackCommentNestedStackResource199283FBOutputstransformerrootstackCommentCommentDataSourceA0E54655Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "ProductCommentsDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Product.comments.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Product.comments.res.vtl" - ] - ] - } - } - }, - "ProductcommentsResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "comments", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "Productcommentsauth0FunctionProductcommentsauth0FunctionAppSyncFunction815DC611", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "ProductCommentsDataResolverFnProductCommentsDataResolverFnAppSyncFunction7365B9B6", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Product\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"comments\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "referencetotransformerrootstackCommentNestedStackCommentNestedStackResource199283FBOutputstransformerrootstackCommentCommentTable5427FDE2Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:46acac6f-21d1-433c-93b9-d9d908c696fc\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Product" - } - } - }, - "Parameters": { - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Type": "String" - }, - "referencetotransformerrootstackCommentNestedStackCommentNestedStackResource199283FBOutputstransformerrootstackCommentCommentDataSourceA0E54655Name": { - "Type": "String" - }, - "referencetotransformerrootstackCommentNestedStackCommentNestedStackResource199283FBOutputstransformerrootstackCommentCommentTable5427FDE2Ref": { - "Type": "String" - }, - "referencetotransformerrootstackauthRoleNameFB872D50Ref": { - "Type": "String" - }, - "referencetotransformerrootstackunauthRoleName49F3C1FERef": { - "Type": "String" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-CustomResourcesjson-1S3TZFNTYZ2QO.description.txt b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-CustomResourcesjson-1S3TZFNTYZ2QO.description.txt deleted file mode 100644 index 293dec5639e..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-CustomResourcesjson-1S3TZFNTYZ2QO.description.txt +++ /dev/null @@ -1 +0,0 @@ -An auto-generated nested stack. \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-CustomResourcesjson-1S3TZFNTYZ2QO.outputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-CustomResourcesjson-1S3TZFNTYZ2QO.outputs.json deleted file mode 100644 index 5e9753d822a..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-CustomResourcesjson-1S3TZFNTYZ2QO.outputs.json +++ /dev/null @@ -1,7 +0,0 @@ -[ - { - "OutputKey": "EmptyOutput", - "OutputValue": "", - "Description": "An empty output. You may delete this if you have at least one resource above." - } -] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-CustomResourcesjson-1S3TZFNTYZ2QO.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-CustomResourcesjson-1S3TZFNTYZ2QO.parameters.json deleted file mode 100644 index 533e559c1df..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-CustomResourcesjson-1S3TZFNTYZ2QO.parameters.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "ParameterKey": "S3DeploymentBucket", - "ParameterValue": "amplify-productcatalog-main-31323-deployment" - }, - { - "ParameterKey": "AppSyncApiId", - "ParameterValue": "3oy6oxkj6ffojmc2upd52ftdsq" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "S3DeploymentRootKey", - "ParameterValue": "amplify-appsync-files/51b6d4362e9dc4529fd8298646795247239d2c30" - }, - { - "ParameterKey": "AppSyncApiName", - "ParameterValue": "productcatalog" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-CustomResourcesjson-1S3TZFNTYZ2QO.template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-CustomResourcesjson-1S3TZFNTYZ2QO.template.json deleted file mode 100644 index 016991278d0..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-CustomResourcesjson-1S3TZFNTYZ2QO.template.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "An auto-generated nested stack.", - "Metadata": {}, - "Parameters": { - "AppSyncApiId": { - "Type": "String", - "Description": "The id of the AppSync API associated with this project." - }, - "AppSyncApiName": { - "Type": "String", - "Description": "The name of the AppSync API", - "Default": "AppSyncSimpleTransform" - }, - "env": { - "Type": "String", - "Description": "The environment name. e.g. Dev, Test, or Production", - "Default": "NONE" - }, - "S3DeploymentBucket": { - "Type": "String", - "Description": "The S3 bucket containing all deployment assets for the project." - }, - "S3DeploymentRootKey": { - "Type": "String", - "Description": "An S3 key relative to the S3DeploymentBucket that points to the root\nof the deployment directory." - } - }, - "Resources": { - "EmptyResource": { - "Type": "Custom::EmptyResource", - "Condition": "AlwaysFalse" - } - }, - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - ] - }, - "AlwaysFalse": { - "Fn::Equals": [ - "true", - "false" - ] - } - }, - "Outputs": { - "EmptyOutput": { - "Description": "An empty output. You may delete this if you have at least one resource above.", - "Value": "" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-Product-Q3D0HUSSSDG4.description.txt b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-Product-Q3D0HUSSSDG4.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-Product-Q3D0HUSSSDG4.outputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-Product-Q3D0HUSSSDG4.outputs.json deleted file mode 100644 index bf08239f358..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-Product-Q3D0HUSSSDG4.outputs.json +++ /dev/null @@ -1,20 +0,0 @@ -[ - { - "OutputKey": "GetAttProductTableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Product-3oy6oxkj6ffojmc2upd52ftdsq-main/stream/2026-03-07T14:16:20.704", - "Description": "Your DynamoDB table StreamArn.", - "ExportName": "3oy6oxkj6ffojmc2upd52ftdsq:GetAtt:ProductTable:StreamArn" - }, - { - "OutputKey": "GetAttProductTableName", - "OutputValue": "Product-3oy6oxkj6ffojmc2upd52ftdsq-main", - "Description": "Your DynamoDB table name.", - "ExportName": "3oy6oxkj6ffojmc2upd52ftdsq:GetAtt:ProductTable:Name" - }, - { - "OutputKey": "GetAttProductDataSourceName", - "OutputValue": "ProductTable", - "Description": "Your model DataSource name.", - "ExportName": "3oy6oxkj6ffojmc2upd52ftdsq:GetAtt:ProductDataSource:Name" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-Product-Q3D0HUSSSDG4.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-Product-Q3D0HUSSSDG4.parameters.json deleted file mode 100644 index f99ec75bd8a..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-Product-Q3D0HUSSSDG4.parameters.json +++ /dev/null @@ -1,66 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserSubscriptionOnCreateUserDataResolverFnSubscriptionOnCreateUserDataResolverFnAppSyncFunctionCAFEE24EFunctionId", - "ParameterValue": "ohgtfmzzb5fcbku37u4xxa3d54" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", - "ParameterValue": "amplify-appsync-files/51b6d4362e9dc4529fd8298646795247239d2c30" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", - "ParameterValue": "3oy6oxkj6ffojmc2upd52ftdsq" - }, - { - "ParameterKey": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserMutationcreateUserinit0FunctionMutationcreateUserinit0FunctionAppSyncFunction5CF77F6AFunctionId", - "ParameterValue": "eahdpvdvdjhw5ejcm6mzyp6lae" - }, - { - "ParameterKey": "referencetotransformerrootstackunauthRoleName49F3C1FERef", - "ParameterValue": "amplify-productcatalog-main-31323-unauthRole" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "false" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserMutationupdateUserinit0FunctionMutationupdateUserinit0FunctionAppSyncFunction90E2C98AFunctionId", - "ParameterValue": "uduwhs6xxvf3ror7wbe7domohi" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", - "ParameterValue": "amplify-productcatalog-main-31323-deployment" - }, - { - "ParameterKey": "referencetotransformerrootstackauthRoleNameFB872D50Ref", - "ParameterValue": "amplify-productcatalog-main-31323-authRole" - }, - { - "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", - "ParameterValue": "main" - }, - { - "ParameterKey": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId", - "ParameterValue": "tbj7jtlninfzndyh3dmgps2snq" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-Product-Q3D0HUSSSDG4.template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-Product-Q3D0HUSSSDG4.template.json deleted file mode 100644 index 28143b86d0e..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-Product-Q3D0HUSSSDG4.template.json +++ /dev/null @@ -1,1373 +0,0 @@ -{ - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "referencetotransformerrootstackenv10C5A902Ref": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Type": "String" - }, - "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId": { - "Type": "String" - }, - "referencetotransformerrootstackauthRoleNameFB872D50Ref": { - "Type": "String" - }, - "referencetotransformerrootstackunauthRoleName49F3C1FERef": { - "Type": "String" - }, - "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserMutationcreateUserinit0FunctionMutationcreateUserinit0FunctionAppSyncFunction5CF77F6AFunctionId": { - "Type": "String" - }, - "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserMutationupdateUserinit0FunctionMutationupdateUserinit0FunctionAppSyncFunction90E2C98AFunctionId": { - "Type": "String" - }, - "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserSubscriptionOnCreateUserDataResolverFnSubscriptionOnCreateUserDataResolverFnAppSyncFunctionCAFEE24EFunctionId": { - "Type": "String" - } - }, - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - }, - "NONE" - ] - } - ] - }, - "ShouldUseServerSideEncryption": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "true" - ] - }, - "ShouldUsePayPerRequestBilling": { - "Fn::Equals": [ - { - "Ref": "DynamoDBBillingMode" - }, - "PAY_PER_REQUEST" - ] - }, - "ShouldUsePointInTimeRecovery": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "true" - ] - } - }, - "Resources": { - "ProductTable": { - "Type": "AWS::DynamoDB::Table", - "Properties": { - "AttributeDefinitions": [ - { - "AttributeName": "id", - "AttributeType": "S" - } - ], - "BillingMode": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - "PAY_PER_REQUEST", - { - "Ref": "AWS::NoValue" - } - ] - }, - "KeySchema": [ - { - "AttributeName": "id", - "KeyType": "HASH" - } - ], - "PointInTimeRecoverySpecification": { - "Fn::If": [ - "ShouldUsePointInTimeRecovery", - { - "PointInTimeRecoveryEnabled": true - }, - { - "Ref": "AWS::NoValue" - } - ] - }, - "ProvisionedThroughput": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - { - "Ref": "AWS::NoValue" - }, - { - "ReadCapacityUnits": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "WriteCapacityUnits": { - "Ref": "DynamoDBModelTableWriteIOPS" - } - } - ] - }, - "SSESpecification": { - "SSEEnabled": { - "Fn::If": [ - "ShouldUseServerSideEncryption", - true, - false - ] - } - }, - "StreamSpecification": { - "StreamViewType": "NEW_AND_OLD_IMAGES" - }, - "TableName": { - "Fn::Join": [ - "", - [ - "Product-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete" - }, - "ProductIAMRole3DD24A40": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:DeleteItem", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:Query", - "dynamodb:UpdateItem", - "dynamodb:ConditionCheckItem", - "dynamodb:DescribeTable", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", - { - "tablename": { - "Fn::Join": [ - "", - [ - "Product-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - ] - }, - { - "Fn::Sub": [ - "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", - { - "tablename": { - "Fn::Join": [ - "", - [ - "Product-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "DynamoDBAccess" - } - ], - "RoleName": { - "Fn::Join": [ - "", - [ - "ProductIAMRoledb6df0-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - }, - "ProductIAMRoleDefaultPolicyA9E80687": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator", - "dynamodb:Query", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:ConditionCheckItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:UpdateItem", - "dynamodb:DeleteItem", - "dynamodb:DescribeTable" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "ProductTable", - "Arn" - ] - }, - { - "Ref": "AWS::NoValue" - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "ProductIAMRoleDefaultPolicyA9E80687", - "Roles": [ - { - "Ref": "ProductIAMRole3DD24A40" - } - ] - } - }, - "ProductDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DynamoDBConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "TableName": { - "Ref": "ProductTable" - } - }, - "Name": "ProductTable", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "ProductIAMRole3DD24A40", - "Arn" - ] - }, - "Type": "AMAZON_DYNAMODB" - }, - "DependsOn": [ - "ProductIAMRole3DD24A40" - ] - }, - "QuerygetProductauth0FunctionQuerygetProductauth0FunctionAppSyncFunction11A92755": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetProductauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getProduct.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "QueryGetProductDataResolverFnQueryGetProductDataResolverFnAppSyncFunction059C4D73": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ProductDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryGetProductDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getProduct.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getProduct.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "ProductDataSource" - ] - }, - "GetProductResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "getProduct", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerygetProductauth0FunctionQuerygetProductauth0FunctionAppSyncFunction11A92755", - "FunctionId" - ] - }, - { - "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId" - }, - { - "Fn::GetAtt": [ - "QueryGetProductDataResolverFnQueryGetProductDataResolverFnAppSyncFunction059C4D73", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getProduct\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "ProductTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:46acac6f-21d1-433c-93b9-d9d908c696fc\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - } - }, - "QueryListProductsDataResolverFnQueryListProductsDataResolverFnAppSyncFunction14032624": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ProductDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryListProductsDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.listProducts.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.listProducts.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "ProductDataSource" - ] - }, - "ListProductResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "listProducts", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerygetProductauth0FunctionQuerygetProductauth0FunctionAppSyncFunction11A92755", - "FunctionId" - ] - }, - { - "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId" - }, - { - "Fn::GetAtt": [ - "QueryListProductsDataResolverFnQueryListProductsDataResolverFnAppSyncFunction14032624", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listProducts\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "ProductTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:46acac6f-21d1-433c-93b9-d9d908c696fc\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - } - }, - "MutationcreateProductauth0FunctionMutationcreateProductauth0FunctionAppSyncFunctionD9DCDF6C": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateProductauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createProduct.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "MutationCreateProductDataResolverFnMutationCreateProductDataResolverFnAppSyncFunctionBCF75A20": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ProductDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationCreateProductDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createProduct.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createProduct.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "ProductDataSource" - ] - }, - "CreateProductResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "createProduct", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserMutationcreateUserinit0FunctionMutationcreateUserinit0FunctionAppSyncFunction5CF77F6AFunctionId" - }, - { - "Fn::GetAtt": [ - "MutationcreateProductauth0FunctionMutationcreateProductauth0FunctionAppSyncFunctionD9DCDF6C", - "FunctionId" - ] - }, - { - "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId" - }, - { - "Fn::GetAtt": [ - "MutationCreateProductDataResolverFnMutationCreateProductDataResolverFnAppSyncFunctionBCF75A20", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createProduct\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "ProductTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:46acac6f-21d1-433c-93b9-d9d908c696fc\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "MutationupdateProductauth0FunctionMutationupdateProductauth0FunctionAppSyncFunction608283E8": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ProductDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateProductauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateProduct.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateProduct.auth.1.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "ProductDataSource" - ] - }, - "MutationUpdateProductDataResolverFnMutationUpdateProductDataResolverFnAppSyncFunction51653259": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ProductDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationUpdateProductDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateProduct.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateProduct.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "ProductDataSource" - ] - }, - "UpdateProductResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "updateProduct", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserMutationupdateUserinit0FunctionMutationupdateUserinit0FunctionAppSyncFunction90E2C98AFunctionId" - }, - { - "Fn::GetAtt": [ - "MutationupdateProductauth0FunctionMutationupdateProductauth0FunctionAppSyncFunction608283E8", - "FunctionId" - ] - }, - { - "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId" - }, - { - "Fn::GetAtt": [ - "MutationUpdateProductDataResolverFnMutationUpdateProductDataResolverFnAppSyncFunction51653259", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateProduct\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "ProductTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:46acac6f-21d1-433c-93b9-d9d908c696fc\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "MutationdeleteProductauth0FunctionMutationdeleteProductauth0FunctionAppSyncFunction2D3EC535": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ProductDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeleteProductauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteProduct.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteProduct.auth.1.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "ProductDataSource" - ] - }, - "MutationDeleteProductDataResolverFnMutationDeleteProductDataResolverFnAppSyncFunction06F6C758": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ProductDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationDeleteProductDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteProduct.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteProduct.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "ProductDataSource" - ] - }, - "DeleteProductResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "deleteProduct", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationdeleteProductauth0FunctionMutationdeleteProductauth0FunctionAppSyncFunction2D3EC535", - "FunctionId" - ] - }, - { - "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId" - }, - { - "Fn::GetAtt": [ - "MutationDeleteProductDataResolverFnMutationDeleteProductDataResolverFnAppSyncFunction06F6C758", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteProduct\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "ProductTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:46acac6f-21d1-433c-93b9-d9d908c696fc\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "SubscriptiononCreateProductauth0FunctionSubscriptiononCreateProductauth0FunctionAppSyncFunction5B0C8398": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononCreateProductauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Subscription.onCreateProduct.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "SubscriptiononCreateProductResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onCreateProduct", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononCreateProductauth0FunctionSubscriptiononCreateProductauth0FunctionAppSyncFunction5B0C8398", - "FunctionId" - ] - }, - { - "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId" - }, - { - "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserSubscriptionOnCreateUserDataResolverFnSubscriptionOnCreateUserDataResolverFnAppSyncFunctionCAFEE24EFunctionId" - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateProduct\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:46acac6f-21d1-433c-93b9-d9d908c696fc\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - }, - "SubscriptiononUpdateProductResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onUpdateProduct", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononCreateProductauth0FunctionSubscriptiononCreateProductauth0FunctionAppSyncFunction5B0C8398", - "FunctionId" - ] - }, - { - "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId" - }, - { - "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserSubscriptionOnCreateUserDataResolverFnSubscriptionOnCreateUserDataResolverFnAppSyncFunctionCAFEE24EFunctionId" - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateProduct\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:46acac6f-21d1-433c-93b9-d9d908c696fc\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - }, - "SubscriptiononDeleteProductResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onDeleteProduct", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononCreateProductauth0FunctionSubscriptiononCreateProductauth0FunctionAppSyncFunction5B0C8398", - "FunctionId" - ] - }, - { - "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId" - }, - { - "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserSubscriptionOnCreateUserDataResolverFnSubscriptionOnCreateUserDataResolverFnAppSyncFunctionCAFEE24EFunctionId" - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteProduct\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:46acac6f-21d1-433c-93b9-d9d908c696fc\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - } - }, - "Outputs": { - "GetAttProductTableStreamArn": { - "Description": "Your DynamoDB table StreamArn.", - "Value": { - "Fn::GetAtt": [ - "ProductTable", - "StreamArn" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:ProductTable:StreamArn" - ] - ] - } - } - }, - "GetAttProductTableName": { - "Description": "Your DynamoDB table name.", - "Value": { - "Ref": "ProductTable" - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:ProductTable:Name" - ] - ] - } - } - }, - "GetAttProductDataSourceName": { - "Description": "Your model DataSource name.", - "Value": { - "Fn::GetAtt": [ - "ProductDataSource", - "Name" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:ProductDataSource:Name" - ] - ] - } - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-User-E17AO1EBVG8O.description.txt b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-User-E17AO1EBVG8O.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-User-E17AO1EBVG8O.outputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-User-E17AO1EBVG8O.outputs.json deleted file mode 100644 index 0a306743d10..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-User-E17AO1EBVG8O.outputs.json +++ /dev/null @@ -1,36 +0,0 @@ -[ - { - "OutputKey": "GetAttUserTableName", - "OutputValue": "User-3oy6oxkj6ffojmc2upd52ftdsq-main", - "Description": "Your DynamoDB table name.", - "ExportName": "3oy6oxkj6ffojmc2upd52ftdsq:GetAtt:UserTable:Name" - }, - { - "OutputKey": "transformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId", - "OutputValue": "tbj7jtlninfzndyh3dmgps2snq" - }, - { - "OutputKey": "transformerrootstackUserMutationupdateUserinit0FunctionMutationupdateUserinit0FunctionAppSyncFunction90E2C98AFunctionId", - "OutputValue": "uduwhs6xxvf3ror7wbe7domohi" - }, - { - "OutputKey": "transformerrootstackUserSubscriptionOnCreateUserDataResolverFnSubscriptionOnCreateUserDataResolverFnAppSyncFunctionCAFEE24EFunctionId", - "OutputValue": "ohgtfmzzb5fcbku37u4xxa3d54" - }, - { - "OutputKey": "GetAttUserDataSourceName", - "OutputValue": "UserTable", - "Description": "Your model DataSource name.", - "ExportName": "3oy6oxkj6ffojmc2upd52ftdsq:GetAtt:UserDataSource:Name" - }, - { - "OutputKey": "GetAttUserTableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/User-3oy6oxkj6ffojmc2upd52ftdsq-main/stream/2026-03-07T14:15:18.466", - "Description": "Your DynamoDB table StreamArn.", - "ExportName": "3oy6oxkj6ffojmc2upd52ftdsq:GetAtt:UserTable:StreamArn" - }, - { - "OutputKey": "transformerrootstackUserMutationcreateUserinit0FunctionMutationcreateUserinit0FunctionAppSyncFunction5CF77F6AFunctionId", - "OutputValue": "eahdpvdvdjhw5ejcm6mzyp6lae" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-User-E17AO1EBVG8O.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-User-E17AO1EBVG8O.parameters.json deleted file mode 100644 index be616cb7416..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-User-E17AO1EBVG8O.parameters.json +++ /dev/null @@ -1,50 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetotransformerrootstackunauthRoleName49F3C1FERef", - "ParameterValue": "amplify-productcatalog-main-31323-unauthRole" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", - "ParameterValue": "amplify-appsync-files/51b6d4362e9dc4529fd8298646795247239d2c30" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "false" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", - "ParameterValue": "3oy6oxkj6ffojmc2upd52ftdsq" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", - "ParameterValue": "amplify-productcatalog-main-31323-deployment" - }, - { - "ParameterKey": "referencetotransformerrootstackauthRoleNameFB872D50Ref", - "ParameterValue": "amplify-productcatalog-main-31323-authRole" - }, - { - "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", - "ParameterValue": "main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-User-E17AO1EBVG8O.template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-User-E17AO1EBVG8O.template.json deleted file mode 100644 index 0aeeb96e388..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G-User-E17AO1EBVG8O.template.json +++ /dev/null @@ -1,1662 +0,0 @@ -{ - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "referencetotransformerrootstackenv10C5A902Ref": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Type": "String" - }, - "referencetotransformerrootstackauthRoleNameFB872D50Ref": { - "Type": "String" - }, - "referencetotransformerrootstackunauthRoleName49F3C1FERef": { - "Type": "String" - } - }, - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - }, - "NONE" - ] - } - ] - }, - "ShouldUseServerSideEncryption": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "true" - ] - }, - "ShouldUsePayPerRequestBilling": { - "Fn::Equals": [ - { - "Ref": "DynamoDBBillingMode" - }, - "PAY_PER_REQUEST" - ] - }, - "ShouldUsePointInTimeRecovery": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "true" - ] - } - }, - "Resources": { - "UserTable": { - "Type": "AWS::DynamoDB::Table", - "Properties": { - "AttributeDefinitions": [ - { - "AttributeName": "id", - "AttributeType": "S" - } - ], - "BillingMode": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - "PAY_PER_REQUEST", - { - "Ref": "AWS::NoValue" - } - ] - }, - "KeySchema": [ - { - "AttributeName": "id", - "KeyType": "HASH" - } - ], - "PointInTimeRecoverySpecification": { - "Fn::If": [ - "ShouldUsePointInTimeRecovery", - { - "PointInTimeRecoveryEnabled": true - }, - { - "Ref": "AWS::NoValue" - } - ] - }, - "ProvisionedThroughput": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - { - "Ref": "AWS::NoValue" - }, - { - "ReadCapacityUnits": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "WriteCapacityUnits": { - "Ref": "DynamoDBModelTableWriteIOPS" - } - } - ] - }, - "SSESpecification": { - "SSEEnabled": { - "Fn::If": [ - "ShouldUseServerSideEncryption", - true, - false - ] - } - }, - "StreamSpecification": { - "StreamViewType": "NEW_AND_OLD_IMAGES" - }, - "TableName": { - "Fn::Join": [ - "", - [ - "User-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete" - }, - "UserIAMRole93CEE926": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:DeleteItem", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:Query", - "dynamodb:UpdateItem", - "dynamodb:ConditionCheckItem", - "dynamodb:DescribeTable", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", - { - "tablename": { - "Fn::Join": [ - "", - [ - "User-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - ] - }, - { - "Fn::Sub": [ - "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", - { - "tablename": { - "Fn::Join": [ - "", - [ - "User-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "DynamoDBAccess" - } - ], - "RoleName": { - "Fn::Join": [ - "", - [ - "UserIAMRole0e5381-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - }, - "UserIAMRoleDefaultPolicyCDAB2AF7": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator", - "dynamodb:Query", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:ConditionCheckItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:UpdateItem", - "dynamodb:DeleteItem", - "dynamodb:DescribeTable" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "UserTable", - "Arn" - ] - }, - { - "Ref": "AWS::NoValue" - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "UserIAMRoleDefaultPolicyCDAB2AF7", - "Roles": [ - { - "Ref": "UserIAMRole93CEE926" - } - ] - } - }, - "UserDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DynamoDBConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "TableName": { - "Ref": "UserTable" - } - }, - "Name": "UserTable", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "UserIAMRole93CEE926", - "Arn" - ] - }, - "Type": "AMAZON_DYNAMODB" - }, - "DependsOn": [ - "UserIAMRole93CEE926" - ] - }, - "QuerygetUserauth0FunctionQuerygetUserauth0FunctionAppSyncFunction9E6250B0": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetUserauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getUser.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "QuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction2792AC60": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetUserpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getUser.postAuth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "QueryGetUserDataResolverFnQueryGetUserDataResolverFnAppSyncFunction36A3E4CF": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "UserDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryGetUserDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getUser.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getUser.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "UserDataSource" - ] - }, - "GetUserResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "getUser", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerygetUserauth0FunctionQuerygetUserauth0FunctionAppSyncFunction9E6250B0", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction2792AC60", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryGetUserDataResolverFnQueryGetUserDataResolverFnAppSyncFunction36A3E4CF", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getUser\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "UserTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:46acac6f-21d1-433c-93b9-d9d908c696fc\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - } - }, - "QueryListUsersDataResolverFnQueryListUsersDataResolverFnAppSyncFunction83574EBA": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "UserDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryListUsersDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.listUsers.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.listUsers.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "UserDataSource" - ] - }, - "ListUserResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "listUsers", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerygetUserauth0FunctionQuerygetUserauth0FunctionAppSyncFunction9E6250B0", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction2792AC60", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryListUsersDataResolverFnQueryListUsersDataResolverFnAppSyncFunction83574EBA", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listUsers\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "UserTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:46acac6f-21d1-433c-93b9-d9d908c696fc\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - } - }, - "MutationcreateUserinit0FunctionMutationcreateUserinit0FunctionAppSyncFunctionEDF87EC6": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateUserinit0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createUser.init.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "MutationcreateUserauth0FunctionMutationcreateUserauth0FunctionAppSyncFunction30556A6C": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateUserauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createUser.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "MutationCreateUserDataResolverFnMutationCreateUserDataResolverFnAppSyncFunction22E7974E": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "UserDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationCreateUserDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createUser.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createUser.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "UserDataSource" - ] - }, - "CreateUserResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "createUser", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationcreateUserinit0FunctionMutationcreateUserinit0FunctionAppSyncFunctionEDF87EC6", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationcreateUserauth0FunctionMutationcreateUserauth0FunctionAppSyncFunction30556A6C", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction2792AC60", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationCreateUserDataResolverFnMutationCreateUserDataResolverFnAppSyncFunction22E7974E", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createUser\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "UserTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:46acac6f-21d1-433c-93b9-d9d908c696fc\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "MutationupdateUserinit0FunctionMutationupdateUserinit0FunctionAppSyncFunctionC2E8A924": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateUserinit0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateUser.init.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "MutationupdateUserauth0FunctionMutationupdateUserauth0FunctionAppSyncFunctionDF95DA65": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "UserDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateUserauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateUser.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateUser.auth.1.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "UserDataSource" - ] - }, - "MutationUpdateUserDataResolverFnMutationUpdateUserDataResolverFnAppSyncFunction6ADF3910": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "UserDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationUpdateUserDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateUser.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateUser.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "UserDataSource" - ] - }, - "UpdateUserResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "updateUser", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationupdateUserinit0FunctionMutationupdateUserinit0FunctionAppSyncFunctionC2E8A924", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationupdateUserauth0FunctionMutationupdateUserauth0FunctionAppSyncFunctionDF95DA65", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction2792AC60", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationUpdateUserDataResolverFnMutationUpdateUserDataResolverFnAppSyncFunction6ADF3910", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateUser\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "UserTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:46acac6f-21d1-433c-93b9-d9d908c696fc\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "MutationdeleteUserauth0FunctionMutationdeleteUserauth0FunctionAppSyncFunction9B900ACD": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "UserDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeleteUserauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteUser.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteUser.auth.1.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "UserDataSource" - ] - }, - "MutationDeleteUserDataResolverFnMutationDeleteUserDataResolverFnAppSyncFunction0B4F366A": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "UserDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationDeleteUserDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteUser.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteUser.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "UserDataSource" - ] - }, - "DeleteUserResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "deleteUser", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationdeleteUserauth0FunctionMutationdeleteUserauth0FunctionAppSyncFunction9B900ACD", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction2792AC60", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationDeleteUserDataResolverFnMutationDeleteUserDataResolverFnAppSyncFunction0B4F366A", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteUser\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "UserTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:46acac6f-21d1-433c-93b9-d9d908c696fc\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "SubscriptiononCreateUserauth0FunctionSubscriptiononCreateUserauth0FunctionAppSyncFunctionE9B4721A": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononCreateUserauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Subscription.onCreateUser.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "SubscriptionOnCreateUserDataResolverFnSubscriptionOnCreateUserDataResolverFnAppSyncFunction23B2F1B9": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnCreateUserDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Subscription.onCreateUser.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Subscription.onCreateUser.res.vtl" - ] - ] - } - } - }, - "SubscriptiononCreateUserResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onCreateUser", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononCreateUserauth0FunctionSubscriptiononCreateUserauth0FunctionAppSyncFunctionE9B4721A", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction2792AC60", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnCreateUserDataResolverFnSubscriptionOnCreateUserDataResolverFnAppSyncFunction23B2F1B9", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateUser\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:46acac6f-21d1-433c-93b9-d9d908c696fc\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - }, - "SubscriptiononUpdateUserResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onUpdateUser", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononCreateUserauth0FunctionSubscriptiononCreateUserauth0FunctionAppSyncFunctionE9B4721A", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction2792AC60", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnCreateUserDataResolverFnSubscriptionOnCreateUserDataResolverFnAppSyncFunction23B2F1B9", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateUser\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:46acac6f-21d1-433c-93b9-d9d908c696fc\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - }, - "SubscriptiononDeleteUserResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onDeleteUser", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononCreateUserauth0FunctionSubscriptiononCreateUserauth0FunctionAppSyncFunctionE9B4721A", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction2792AC60", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnCreateUserDataResolverFnSubscriptionOnCreateUserDataResolverFnAppSyncFunction23B2F1B9", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteUser\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:46acac6f-21d1-433c-93b9-d9d908c696fc\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - }, - "UserIdDataResolverFnUserIdDataResolverFnAppSyncFunction9936DA1E": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "UserIdDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/User.id.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/User.id.res.vtl" - ] - ] - } - } - }, - "UseridResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "id", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "UserIdDataResolverFnUserIdDataResolverFnAppSyncFunction9936DA1E", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"User\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"id\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:46acac6f-21d1-433c-93b9-d9d908c696fc\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-main\",\"lowstockproducts-main\",\"amplify-productcatalog\"]))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "User" - } - } - }, - "Outputs": { - "GetAttUserTableStreamArn": { - "Description": "Your DynamoDB table StreamArn.", - "Value": { - "Fn::GetAtt": [ - "UserTable", - "StreamArn" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:UserTable:StreamArn" - ] - ] - } - } - }, - "GetAttUserTableName": { - "Description": "Your DynamoDB table name.", - "Value": { - "Ref": "UserTable" - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:UserTable:Name" - ] - ] - } - } - }, - "GetAttUserDataSourceName": { - "Description": "Your model DataSource name.", - "Value": { - "Fn::GetAtt": [ - "UserDataSource", - "Name" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:UserDataSource:Name" - ] - ] - } - } - }, - "transformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId": { - "Value": { - "Fn::GetAtt": [ - "QuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction2792AC60", - "FunctionId" - ] - } - }, - "transformerrootstackUserMutationcreateUserinit0FunctionMutationcreateUserinit0FunctionAppSyncFunction5CF77F6AFunctionId": { - "Value": { - "Fn::GetAtt": [ - "MutationcreateUserinit0FunctionMutationcreateUserinit0FunctionAppSyncFunctionEDF87EC6", - "FunctionId" - ] - } - }, - "transformerrootstackUserMutationupdateUserinit0FunctionMutationupdateUserinit0FunctionAppSyncFunction90E2C98AFunctionId": { - "Value": { - "Fn::GetAtt": [ - "MutationupdateUserinit0FunctionMutationupdateUserinit0FunctionAppSyncFunctionC2E8A924", - "FunctionId" - ] - } - }, - "transformerrootstackUserSubscriptionOnCreateUserDataResolverFnSubscriptionOnCreateUserDataResolverFnAppSyncFunctionCAFEE24EFunctionId": { - "Value": { - "Fn::GetAtt": [ - "SubscriptionOnCreateUserDataResolverFnSubscriptionOnCreateUserDataResolverFnAppSyncFunction23B2F1B9", - "FunctionId" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G.description.txt b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G.outputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G.outputs.json deleted file mode 100644 index 14f36bce100..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G.outputs.json +++ /dev/null @@ -1,20 +0,0 @@ -[ - { - "OutputKey": "GraphQLAPIIdOutput", - "OutputValue": "3oy6oxkj6ffojmc2upd52ftdsq", - "Description": "Your GraphQL API ID.", - "ExportName": "amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G:GraphQLApiId" - }, - { - "OutputKey": "GraphQLAPIEndpointOutput", - "OutputValue": "https://vy5ne7iiovgsxdk3ke4itswbju.appsync-api.us-east-1.amazonaws.com/graphql", - "Description": "Your GraphQL API endpoint.", - "ExportName": "amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G:GraphQLApiEndpoint" - }, - { - "OutputKey": "GraphQLAPIKeyOutput", - "OutputValue": "da2-fakeapikey00000000000000", - "Description": "Your GraphQL API ID.", - "ExportName": "amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G:GraphQLApiKey" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G.parameters.json deleted file mode 100644 index 449fba6f38b..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G.parameters.json +++ /dev/null @@ -1,50 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "authRoleName", - "ParameterValue": "amplify-productcatalog-main-31323-authRole" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "false" - }, - { - "ParameterKey": "unauthRoleName", - "ParameterValue": "amplify-productcatalog-main-31323-unauthRole" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "S3DeploymentBucket", - "ParameterValue": "amplify-productcatalog-main-31323-deployment" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "S3DeploymentRootKey", - "ParameterValue": "amplify-appsync-files/51b6d4362e9dc4529fd8298646795247239d2c30" - }, - { - "ParameterKey": "AppSyncApiName", - "ParameterValue": "productcatalog" - }, - { - "ParameterKey": "AuthCognitoUserPoolId", - "ParameterValue": "us-east-1_66BkqNfdX" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G.template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G.template.json deleted file mode 100644 index 34ebd9379be..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63G.template.json +++ /dev/null @@ -1,1152 +0,0 @@ -{ - "Parameters": { - "env": { - "Type": "String", - "Default": "NONE" - }, - "AppSyncApiName": { - "Type": "String", - "Default": "AppSyncSimpleTransform" - }, - "authRoleName": { - "Type": "String" - }, - "unauthRoleName": { - "Type": "String" - }, - "AuthCognitoUserPoolId": { - "Type": "String" - }, - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "S3DeploymentBucket": { - "Type": "String", - "Description": "An S3 Bucket name where assets are deployed" - }, - "S3DeploymentRootKey": { - "Type": "String", - "Description": "An S3 key relative to the S3DeploymentBucket that points to the root of the deployment directory." - } - }, - "Resources": { - "GraphQLAPI": { - "Type": "AWS::AppSync::GraphQLApi", - "Properties": { - "AdditionalAuthenticationProviders": [ - { - "AuthenticationType": "API_KEY" - }, - { - "AuthenticationType": "AMAZON_COGNITO_USER_POOLS", - "UserPoolConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "UserPoolId": { - "Ref": "AuthCognitoUserPoolId" - } - } - } - ], - "AuthenticationType": "AWS_IAM", - "Name": { - "Fn::Join": [ - "", - [ - { - "Ref": "AppSyncApiName" - }, - "-", - { - "Ref": "env" - } - ] - ] - } - } - }, - "GraphQLAPITransformerSchema3CB2AE18": { - "Type": "AWS::AppSync::GraphQLSchema", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "DefinitionS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/schema.graphql" - ] - ] - } - } - }, - "GraphQLAPIDefaultApiKey215A6DD7": { - "Type": "AWS::AppSync::ApiKey", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "Description": "graphqlapi", - "Expires": 1773498418 - } - }, - "GraphQLAPINONEDS95A13CF0": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "Name": "NONE_DS", - "Type": "NONE" - } - }, - "User": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "DynamoDBModelTableWriteIOPS": { - "Ref": "DynamoDBModelTableWriteIOPS" - }, - "DynamoDBBillingMode": { - "Ref": "DynamoDBBillingMode" - }, - "DynamoDBEnablePointInTimeRecovery": { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "DynamoDBEnableServerSideEncryption": { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "referencetotransformerrootstackenv10C5A902Ref": { - "Ref": "env" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Ref": "S3DeploymentBucket" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Ref": "S3DeploymentRootKey" - }, - "referencetotransformerrootstackauthRoleNameFB872D50Ref": { - "Ref": "authRoleName" - }, - "referencetotransformerrootstackunauthRoleName49F3C1FERef": { - "Ref": "unauthRoleName" - } - }, - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/stacks/User.json" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "Product": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "DynamoDBModelTableWriteIOPS": { - "Ref": "DynamoDBModelTableWriteIOPS" - }, - "DynamoDBBillingMode": { - "Ref": "DynamoDBBillingMode" - }, - "DynamoDBEnablePointInTimeRecovery": { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "DynamoDBEnableServerSideEncryption": { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "referencetotransformerrootstackenv10C5A902Ref": { - "Ref": "env" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Ref": "S3DeploymentBucket" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Ref": "S3DeploymentRootKey" - }, - "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId": { - "Fn::GetAtt": [ - "User", - "Outputs.transformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId" - ] - }, - "referencetotransformerrootstackauthRoleNameFB872D50Ref": { - "Ref": "authRoleName" - }, - "referencetotransformerrootstackunauthRoleName49F3C1FERef": { - "Ref": "unauthRoleName" - }, - "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserMutationcreateUserinit0FunctionMutationcreateUserinit0FunctionAppSyncFunction5CF77F6AFunctionId": { - "Fn::GetAtt": [ - "User", - "Outputs.transformerrootstackUserMutationcreateUserinit0FunctionMutationcreateUserinit0FunctionAppSyncFunction5CF77F6AFunctionId" - ] - }, - "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserMutationupdateUserinit0FunctionMutationupdateUserinit0FunctionAppSyncFunction90E2C98AFunctionId": { - "Fn::GetAtt": [ - "User", - "Outputs.transformerrootstackUserMutationupdateUserinit0FunctionMutationupdateUserinit0FunctionAppSyncFunction90E2C98AFunctionId" - ] - }, - "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserSubscriptionOnCreateUserDataResolverFnSubscriptionOnCreateUserDataResolverFnAppSyncFunctionCAFEE24EFunctionId": { - "Fn::GetAtt": [ - "User", - "Outputs.transformerrootstackUserSubscriptionOnCreateUserDataResolverFnSubscriptionOnCreateUserDataResolverFnAppSyncFunctionCAFEE24EFunctionId" - ] - } - }, - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/stacks/Product.json" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "Comment": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "DynamoDBModelTableWriteIOPS": { - "Ref": "DynamoDBModelTableWriteIOPS" - }, - "DynamoDBBillingMode": { - "Ref": "DynamoDBBillingMode" - }, - "DynamoDBEnablePointInTimeRecovery": { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "DynamoDBEnableServerSideEncryption": { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "referencetotransformerrootstackenv10C5A902Ref": { - "Ref": "env" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Ref": "S3DeploymentBucket" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Ref": "S3DeploymentRootKey" - }, - "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId": { - "Fn::GetAtt": [ - "User", - "Outputs.transformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId" - ] - }, - "referencetotransformerrootstackauthRoleNameFB872D50Ref": { - "Ref": "authRoleName" - }, - "referencetotransformerrootstackunauthRoleName49F3C1FERef": { - "Ref": "unauthRoleName" - }, - "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserMutationcreateUserinit0FunctionMutationcreateUserinit0FunctionAppSyncFunction5CF77F6AFunctionId": { - "Fn::GetAtt": [ - "User", - "Outputs.transformerrootstackUserMutationcreateUserinit0FunctionMutationcreateUserinit0FunctionAppSyncFunction5CF77F6AFunctionId" - ] - }, - "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserMutationupdateUserinit0FunctionMutationupdateUserinit0FunctionAppSyncFunction90E2C98AFunctionId": { - "Fn::GetAtt": [ - "User", - "Outputs.transformerrootstackUserMutationupdateUserinit0FunctionMutationupdateUserinit0FunctionAppSyncFunction90E2C98AFunctionId" - ] - }, - "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserSubscriptionOnCreateUserDataResolverFnSubscriptionOnCreateUserDataResolverFnAppSyncFunctionCAFEE24EFunctionId": { - "Fn::GetAtt": [ - "User", - "Outputs.transformerrootstackUserSubscriptionOnCreateUserDataResolverFnSubscriptionOnCreateUserDataResolverFnAppSyncFunctionCAFEE24EFunctionId" - ] - } - }, - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/stacks/Comment.json" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "FunctionDirectiveStack": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetotransformerrootstackenv10C5A902Ref": { - "Ref": "env" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Ref": "S3DeploymentBucket" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Ref": "S3DeploymentRootKey" - }, - "referencetotransformerrootstackauthRoleNameFB872D50Ref": { - "Ref": "authRoleName" - }, - "referencetotransformerrootstackunauthRoleName49F3C1FERef": { - "Ref": "unauthRoleName" - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - } - }, - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/stacks/FunctionDirectiveStack.json" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "ConnectionStack": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Ref": "S3DeploymentBucket" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Ref": "S3DeploymentRootKey" - }, - "referencetotransformerrootstackCommentNestedStackCommentNestedStackResource199283FBOutputstransformerrootstackCommentCommentDataSourceA0E54655Name": { - "Fn::GetAtt": [ - "Comment", - "Outputs.transformerrootstackCommentCommentDataSourceA0E54655Name" - ] - }, - "referencetotransformerrootstackCommentNestedStackCommentNestedStackResource199283FBOutputstransformerrootstackCommentCommentTable5427FDE2Ref": { - "Fn::GetAtt": [ - "Comment", - "Outputs.transformerrootstackCommentCommentTable5427FDE2Ref" - ] - }, - "referencetotransformerrootstackauthRoleNameFB872D50Ref": { - "Ref": "authRoleName" - }, - "referencetotransformerrootstackunauthRoleName49F3C1FERef": { - "Ref": "unauthRoleName" - } - }, - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/stacks/ConnectionStack.json" - ] - ] - } - }, - "DependsOn": [ - "Comment", - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "AuthRolePolicy01921FC820": { - "Type": "AWS::IAM::ManagedPolicy", - "Properties": { - "Description": "", - "Path": "/", - "PolicyDocument": { - "Statement": [ - { - "Action": "appsync:GraphQL", - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/*", - { - "apiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "typeName": "User" - } - ] - }, - { - "Fn::Sub": [ - "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/*", - { - "apiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "typeName": "Product" - } - ] - }, - { - "Fn::Sub": [ - "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/*", - { - "apiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "typeName": "Comment" - } - ] - }, - { - "Fn::Sub": [ - "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "typeName": "Query", - "fieldName": "checkLowStock" - } - ] - }, - { - "Fn::Sub": [ - "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "typeName": "Query", - "fieldName": "getUser" - } - ] - }, - { - "Fn::Sub": [ - "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "typeName": "Query", - "fieldName": "listUsers" - } - ] - }, - { - "Fn::Sub": [ - "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "typeName": "Mutation", - "fieldName": "createUser" - } - ] - }, - { - "Fn::Sub": [ - "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "typeName": "Mutation", - "fieldName": "updateUser" - } - ] - }, - { - "Fn::Sub": [ - "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "typeName": "Mutation", - "fieldName": "deleteUser" - } - ] - }, - { - "Fn::Sub": [ - "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "typeName": "Subscription", - "fieldName": "onCreateUser" - } - ] - }, - { - "Fn::Sub": [ - "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "typeName": "Subscription", - "fieldName": "onUpdateUser" - } - ] - }, - { - "Fn::Sub": [ - "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "typeName": "Subscription", - "fieldName": "onDeleteUser" - } - ] - }, - { - "Fn::Sub": [ - "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "typeName": "Query", - "fieldName": "getProduct" - } - ] - }, - { - "Fn::Sub": [ - "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "typeName": "Query", - "fieldName": "listProducts" - } - ] - }, - { - "Fn::Sub": [ - "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "typeName": "Mutation", - "fieldName": "createProduct" - } - ] - }, - { - "Fn::Sub": [ - "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "typeName": "Mutation", - "fieldName": "updateProduct" - } - ] - }, - { - "Fn::Sub": [ - "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "typeName": "Mutation", - "fieldName": "deleteProduct" - } - ] - }, - { - "Fn::Sub": [ - "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "typeName": "Subscription", - "fieldName": "onCreateProduct" - } - ] - }, - { - "Fn::Sub": [ - "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "typeName": "Subscription", - "fieldName": "onUpdateProduct" - } - ] - }, - { - "Fn::Sub": [ - "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "typeName": "Subscription", - "fieldName": "onDeleteProduct" - } - ] - }, - { - "Fn::Sub": [ - "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/*", - { - "apiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "typeName": "ModelCommentConnection" - } - ] - }, - { - "Fn::Sub": [ - "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "typeName": "Query", - "fieldName": "getComment" - } - ] - }, - { - "Fn::Sub": [ - "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "typeName": "Query", - "fieldName": "listComments" - } - ] - }, - { - "Fn::Sub": [ - "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "typeName": "Mutation", - "fieldName": "createComment" - } - ] - }, - { - "Fn::Sub": [ - "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "typeName": "Mutation", - "fieldName": "updateComment" - } - ] - }, - { - "Fn::Sub": [ - "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "typeName": "Mutation", - "fieldName": "deleteComment" - } - ] - }, - { - "Fn::Sub": [ - "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "typeName": "Query", - "fieldName": "commentsByProductId" - } - ] - }, - { - "Fn::Sub": [ - "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "typeName": "Subscription", - "fieldName": "onCreateComment" - } - ] - }, - { - "Fn::Sub": [ - "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "typeName": "Subscription", - "fieldName": "onUpdateComment" - } - ] - }, - { - "Fn::Sub": [ - "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", - { - "apiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "typeName": "Subscription", - "fieldName": "onDeleteComment" - } - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "Roles": [ - { - "Ref": "authRoleName" - } - ] - } - }, - "CustomResourcesjson": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "AppSyncApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "AppSyncApiName": { - "Ref": "AppSyncApiName" - }, - "env": { - "Ref": "env" - }, - "S3DeploymentBucket": { - "Ref": "S3DeploymentBucket" - }, - "S3DeploymentRootKey": { - "Ref": "S3DeploymentRootKey" - } - }, - "TemplateURL": { - "Fn::Join": [ - "/", - [ - "https://s3.amazonaws.com", - { - "Ref": "S3DeploymentBucket" - }, - { - "Ref": "S3DeploymentRootKey" - }, - "stacks", - "CustomResources.json" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPI", - "GraphQLAPITransformerSchema3CB2AE18", - "User", - "Product", - "Comment", - "FunctionDirectiveStack", - "ConnectionStack" - ] - } - }, - "Outputs": { - "GraphQLAPIKeyOutput": { - "Description": "Your GraphQL API ID.", - "Value": { - "Fn::GetAtt": [ - "GraphQLAPIDefaultApiKey215A6DD7", - "ApiKey" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "AWS::StackName" - }, - "GraphQLApiKey" - ] - ] - } - } - }, - "GraphQLAPIIdOutput": { - "Description": "Your GraphQL API ID.", - "Value": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "AWS::StackName" - }, - "GraphQLApiId" - ] - ] - } - } - }, - "GraphQLAPIEndpointOutput": { - "Description": "Your GraphQL API endpoint.", - "Value": { - "Fn::GetAtt": [ - "GraphQLAPI", - "GraphQLUrl" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "AWS::StackName" - }, - "GraphQLApiEndpoint" - ] - ] - } - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.description.txt b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.description.txt deleted file mode 100644 index 28ba956271c..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"auth-Cognito","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.outputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.outputs.json deleted file mode 100644 index 08d883b597f..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.outputs.json +++ /dev/null @@ -1,35 +0,0 @@ -[ - { - "OutputKey": "UserPoolId", - "OutputValue": "us-east-1_66BkqNfdX", - "Description": "Id for the user pool" - }, - { - "OutputKey": "AppClientIDWeb", - "OutputValue": "7ogg1fkk68io03i95o0viqhibk", - "Description": "The user pool app client id for web" - }, - { - "OutputKey": "AppClientID", - "OutputValue": "27jbakm3s7vgm116b36evi830d", - "Description": "The user pool app client id" - }, - { - "OutputKey": "IdentityPoolId", - "OutputValue": "us-east-1:46acac6f-21d1-433c-93b9-d9d908c696fc", - "Description": "Id for the identity pool" - }, - { - "OutputKey": "UserPoolArn", - "OutputValue": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_66BkqNfdX", - "Description": "Arn for the user pool" - }, - { - "OutputKey": "IdentityPoolName", - "OutputValue": "productcatalog90174ac4_identitypool_90174ac4__main" - }, - { - "OutputKey": "UserPoolName", - "OutputValue": "productcatalog90174ac4_userpool_90174ac4" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.parameters.json deleted file mode 100644 index 4203c53bea4..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.parameters.json +++ /dev/null @@ -1,146 +0,0 @@ -[ - { - "ParameterKey": "usernameAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "authRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-productcatalog-main-31323-authRole" - }, - { - "ParameterKey": "autoVerifiedAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "allowUnauthenticatedIdentities", - "ParameterValue": "false" - }, - { - "ParameterKey": "smsVerificationMessage", - "ParameterValue": "Your verification code is {####}" - }, - { - "ParameterKey": "userpoolClientReadAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "breakCircularDependency", - "ParameterValue": "true" - }, - { - "ParameterKey": "mfaTypes", - "ParameterValue": "SMS Text Message" - }, - { - "ParameterKey": "emailVerificationSubject", - "ParameterValue": "Your verification code" - }, - { - "ParameterKey": "sharedId", - "ParameterValue": "90174ac4" - }, - { - "ParameterKey": "useDefault", - "ParameterValue": "default" - }, - { - "ParameterKey": "userpoolClientGenerateSecret", - "ParameterValue": "false" - }, - { - "ParameterKey": "mfaConfiguration", - "ParameterValue": "OFF" - }, - { - "ParameterKey": "identityPoolName", - "ParameterValue": "productcatalog90174ac4_identitypool_90174ac4" - }, - { - "ParameterKey": "userPoolGroupList", - "ParameterValue": "" - }, - { - "ParameterKey": "authSelections", - "ParameterValue": "identityPoolAndUserPool" - }, - { - "ParameterKey": "resourceNameTruncated", - "ParameterValue": "produc90174ac4" - }, - { - "ParameterKey": "smsAuthenticationMessage", - "ParameterValue": "Your authentication code is {####}" - }, - { - "ParameterKey": "passwordPolicyMinLength", - "ParameterValue": "8" - }, - { - "ParameterKey": "userPoolName", - "ParameterValue": "productcatalog90174ac4_userpool_90174ac4" - }, - { - "ParameterKey": "userpoolClientWriteAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "dependsOn", - "ParameterValue": "" - }, - { - "ParameterKey": "useEnabledMfas", - "ParameterValue": "true" - }, - { - "ParameterKey": "usernameCaseSensitive", - "ParameterValue": "false" - }, - { - "ParameterKey": "resourceName", - "ParameterValue": "productcatalog90174ac4" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "serviceName", - "ParameterValue": "Cognito" - }, - { - "ParameterKey": "emailVerificationMessage", - "ParameterValue": "Your verification code is {####}" - }, - { - "ParameterKey": "userpoolClientRefreshTokenValidity", - "ParameterValue": "30" - }, - { - "ParameterKey": "userpoolClientSetAttributes", - "ParameterValue": "false" - }, - { - "ParameterKey": "unauthRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-productcatalog-main-31323-unauthRole" - }, - { - "ParameterKey": "requiredAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "passwordPolicyCharacters", - "ParameterValue": "" - }, - { - "ParameterKey": "aliasAttributes", - "ParameterValue": "" - }, - { - "ParameterKey": "userpoolClientLambdaRole", - "ParameterValue": "produc90174ac4_userpoolclient_lambda_role" - }, - { - "ParameterKey": "defaultPasswordPolicy", - "ParameterValue": "false" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.template.json deleted file mode 100644 index 486545f0c0a..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-authproductcatalog90174ac4-1DKM3MK2JKRFC.template.json +++ /dev/null @@ -1,413 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "env": { - "Type": "String" - }, - "identityPoolName": { - "Type": "String" - }, - "allowUnauthenticatedIdentities": { - "Type": "String" - }, - "resourceNameTruncated": { - "Type": "String" - }, - "userPoolName": { - "Type": "String" - }, - "autoVerifiedAttributes": { - "Type": "CommaDelimitedList" - }, - "mfaConfiguration": { - "Type": "String" - }, - "mfaTypes": { - "Type": "CommaDelimitedList" - }, - "smsAuthenticationMessage": { - "Type": "String" - }, - "smsVerificationMessage": { - "Type": "String" - }, - "emailVerificationSubject": { - "Type": "String" - }, - "emailVerificationMessage": { - "Type": "String" - }, - "defaultPasswordPolicy": { - "Type": "String" - }, - "passwordPolicyMinLength": { - "Type": "String" - }, - "passwordPolicyCharacters": { - "Type": "CommaDelimitedList" - }, - "requiredAttributes": { - "Type": "CommaDelimitedList" - }, - "aliasAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientGenerateSecret": { - "Type": "String" - }, - "userpoolClientRefreshTokenValidity": { - "Type": "String" - }, - "userpoolClientWriteAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientReadAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientLambdaRole": { - "Type": "String" - }, - "userpoolClientSetAttributes": { - "Type": "String" - }, - "sharedId": { - "Type": "String" - }, - "resourceName": { - "Type": "String" - }, - "authSelections": { - "Type": "String" - }, - "useDefault": { - "Type": "String" - }, - "usernameAttributes": { - "Type": "CommaDelimitedList" - }, - "userPoolGroupList": { - "Type": "CommaDelimitedList" - }, - "serviceName": { - "Type": "String" - }, - "usernameCaseSensitive": { - "Type": "String" - }, - "useEnabledMfas": { - "Type": "String" - }, - "authRoleArn": { - "Type": "String" - }, - "unauthRoleArn": { - "Type": "String" - }, - "breakCircularDependency": { - "Type": "String" - }, - "dependsOn": { - "Type": "CommaDelimitedList" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - }, - "Resources": { - "UserPool": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": { - "Ref": "emailVerificationMessage" - }, - "EmailVerificationSubject": { - "Ref": "emailVerificationSubject" - }, - "MfaConfiguration": { - "Ref": "mfaConfiguration" - }, - "Policies": { - "PasswordPolicy": { - "MinimumLength": { - "Ref": "passwordPolicyMinLength" - }, - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "userPoolName" - }, - { - "Fn::Join": [ - "", - [ - { - "Ref": "userPoolName" - }, - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "UsernameAttributes": { - "Ref": "usernameAttributes" - }, - "UsernameConfiguration": { - "CaseSensitive": false - } - } - }, - "UserPoolClientWeb": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "produc90174ac4_app_clientWeb", - "RefreshTokenValidity": { - "Ref": "userpoolClientRefreshTokenValidity" - }, - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": { - "Ref": "UserPool" - } - }, - "DependsOn": [ - "UserPool" - ] - }, - "UserPoolClient": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "produc90174ac4_app_client", - "GenerateSecret": { - "Ref": "userpoolClientGenerateSecret" - }, - "RefreshTokenValidity": { - "Ref": "userpoolClientRefreshTokenValidity" - }, - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": { - "Ref": "UserPool" - } - }, - "DependsOn": [ - "UserPool" - ] - }, - "UserPoolClientRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - }, - "Action": "sts:AssumeRole" - } - ] - }, - "RoleName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "userpoolClientLambdaRole" - }, - { - "Fn::Join": [ - "", - [ - "upClientLambdaRole90174ac4", - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - { - "Ref": "AWS::StackName" - } - ] - } - ] - }, - "-", - { - "Ref": "env" - } - ] - ] - } - ] - } - } - }, - "IdentityPool": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": { - "Ref": "allowUnauthenticatedIdentities" - }, - "CognitoIdentityProviders": [ - { - "ClientId": { - "Ref": "UserPoolClient" - }, - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": { - "Ref": "UserPool" - } - } - ] - } - }, - { - "ClientId": { - "Ref": "UserPoolClientWeb" - }, - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": { - "Ref": "UserPool" - } - } - ] - } - } - ], - "IdentityPoolName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "productcatalog90174ac4_identitypool_90174ac4", - { - "Fn::Join": [ - "", - [ - "productcatalog90174ac4_identitypool_90174ac4__", - { - "Ref": "env" - } - ] - ] - } - ] - } - } - }, - "IdentityPoolRoleMap": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": { - "Ref": "IdentityPool" - }, - "Roles": { - "unauthenticated": { - "Ref": "unauthRoleArn" - }, - "authenticated": { - "Ref": "authRoleArn" - } - } - }, - "DependsOn": [ - "IdentityPool" - ] - } - }, - "Outputs": { - "IdentityPoolId": { - "Description": "Id for the identity pool", - "Value": { - "Ref": "IdentityPool" - } - }, - "IdentityPoolName": { - "Value": { - "Fn::GetAtt": [ - "IdentityPool", - "Name" - ] - } - }, - "UserPoolId": { - "Description": "Id for the user pool", - "Value": { - "Ref": "UserPool" - } - }, - "UserPoolArn": { - "Description": "Arn for the user pool", - "Value": { - "Fn::GetAtt": [ - "UserPool", - "Arn" - ] - } - }, - "UserPoolName": { - "Value": { - "Ref": "userPoolName" - } - }, - "AppClientIDWeb": { - "Description": "The user pool app client id for web", - "Value": { - "Ref": "UserPoolClientWeb" - } - }, - "AppClientID": { - "Description": "The user pool app client id", - "Value": { - "Ref": "UserPoolClient" - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-functionS3Trigger1ef46783-A20ASF1LYE8T.description.txt b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-functionS3Trigger1ef46783-A20ASF1LYE8T.description.txt deleted file mode 100644 index 445081e4df1..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-functionS3Trigger1ef46783-A20ASF1LYE8T.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"function-Lambda","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-functionS3Trigger1ef46783-A20ASF1LYE8T.outputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-functionS3Trigger1ef46783-A20ASF1LYE8T.outputs.json deleted file mode 100644 index e101600fa21..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-functionS3Trigger1ef46783-A20ASF1LYE8T.outputs.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "OutputKey": "LambdaExecutionRoleArn", - "OutputValue": "arn:aws:iam::123456789012:role/S3Trigger1ef46783LambdaRole1ef46783-main" - }, - { - "OutputKey": "Region", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "Arn", - "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:S3Trigger1ef46783-main" - }, - { - "OutputKey": "Name", - "OutputValue": "S3Trigger1ef46783-main" - }, - { - "OutputKey": "LambdaExecutionRole", - "OutputValue": "S3Trigger1ef46783LambdaRole1ef46783-main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-functionS3Trigger1ef46783-A20ASF1LYE8T.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-functionS3Trigger1ef46783-A20ASF1LYE8T.parameters.json deleted file mode 100644 index 6f94fd81063..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-functionS3Trigger1ef46783-A20ASF1LYE8T.parameters.json +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "ParameterKey": "s3Key", - "ParameterValue": "amplify-builds/S3Trigger1ef46783-4b4665534739746b326e-build.zip" - }, - { - "ParameterKey": "deploymentBucketName", - "ParameterValue": "amplify-productcatalog-main-31323-deployment" - }, - { - "ParameterKey": "apiproductcatalogGraphQLAPIKeyOutput", - "ParameterValue": "da2-fakeapikey00000000000000" - }, - { - "ParameterKey": "apiproductcatalogGraphQLAPIEndpointOutput", - "ParameterValue": "https://vy5ne7iiovgsxdk3ke4itswbju.appsync-api.us-east-1.amazonaws.com/graphql" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "apiproductcatalogGraphQLAPIIdOutput", - "ParameterValue": "3oy6oxkj6ffojmc2upd52ftdsq" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-functionS3Trigger1ef46783-A20ASF1LYE8T.template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-functionS3Trigger1ef46783-A20ASF1LYE8T.template.json deleted file mode 100644 index 3e8a515ae54..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-functionS3Trigger1ef46783-A20ASF1LYE8T.template.json +++ /dev/null @@ -1,264 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "Parameters": { - "env": { - "Type": "String" - }, - "apiproductcatalogGraphQLAPIIdOutput": { - "Type": "String", - "Default": "apiproductcatalogGraphQLAPIIdOutput" - }, - "apiproductcatalogGraphQLAPIEndpointOutput": { - "Type": "String", - "Default": "apiproductcatalogGraphQLAPIEndpointOutput" - }, - "apiproductcatalogGraphQLAPIKeyOutput": { - "Type": "String", - "Default": "apiproductcatalogGraphQLAPIKeyOutput" - }, - "deploymentBucketName": { - "Type": "String" - }, - "s3Key": { - "Type": "String" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - }, - "Resources": { - "LambdaFunction": { - "Type": "AWS::Lambda::Function", - "Metadata": { - "aws:asset:path": "./src", - "aws:asset:property": "Code" - }, - "Properties": { - "Handler": "index.handler", - "FunctionName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "S3Trigger1ef46783", - { - "Fn::Join": [ - "", - [ - "S3Trigger1ef46783", - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "Environment": { - "Variables": { - "ENV": { - "Ref": "env" - }, - "REGION": { - "Ref": "AWS::Region" - }, - "API_PRODUCTCATALOG_GRAPHQLAPIIDOUTPUT": { - "Ref": "apiproductcatalogGraphQLAPIIdOutput" - }, - "API_PRODUCTCATALOG_GRAPHQLAPIENDPOINTOUTPUT": { - "Ref": "apiproductcatalogGraphQLAPIEndpointOutput" - }, - "API_PRODUCTCATALOG_GRAPHQLAPIKEYOUTPUT": { - "Ref": "apiproductcatalogGraphQLAPIKeyOutput" - } - } - }, - "Role": { - "Fn::GetAtt": [ - "LambdaExecutionRole", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Timeout": 25, - "Code": { - "S3Bucket": { - "Ref": "deploymentBucketName" - }, - "S3Key": { - "Ref": "s3Key" - } - } - } - }, - "LambdaExecutionRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "RoleName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "S3Trigger1ef46783LambdaRole1ef46783", - { - "Fn::Join": [ - "", - [ - "S3Trigger1ef46783LambdaRole1ef46783", - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": [ - "lambda.amazonaws.com" - ] - }, - "Action": [ - "sts:AssumeRole" - ] - } - ] - } - } - }, - "lambdaexecutionpolicy": { - "DependsOn": [ - "LambdaExecutionRole" - ], - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyName": "lambda-execution-policy", - "Roles": [ - { - "Ref": "LambdaExecutionRole" - } - ], - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "logs:CreateLogGroup", - "logs:CreateLogStream", - "logs:PutLogEvents" - ], - "Resource": { - "Fn::Sub": [ - "arn:aws:logs:${region}:${account}:log-group:/aws/lambda/${lambda}:log-stream:*", - { - "region": { - "Ref": "AWS::Region" - }, - "account": { - "Ref": "AWS::AccountId" - }, - "lambda": { - "Ref": "LambdaFunction" - } - } - ] - } - } - ] - } - } - }, - "AmplifyResourcesPolicy": { - "DependsOn": [ - "LambdaExecutionRole" - ], - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyName": "amplify-lambda-execution-policy", - "Roles": [ - { - "Ref": "LambdaExecutionRole" - } - ], - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "appsync:GraphQL" - ], - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:appsync:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":apis/", - { - "Ref": "apiproductcatalogGraphQLAPIIdOutput" - }, - "/types/Mutation/*" - ] - ] - } - ] - } - ] - } - } - } - }, - "Outputs": { - "Name": { - "Value": { - "Ref": "LambdaFunction" - } - }, - "Arn": { - "Value": { - "Fn::GetAtt": [ - "LambdaFunction", - "Arn" - ] - } - }, - "Region": { - "Value": { - "Ref": "AWS::Region" - } - }, - "LambdaExecutionRole": { - "Value": { - "Ref": "LambdaExecutionRole" - } - }, - "LambdaExecutionRoleArn": { - "Value": { - "Fn::GetAtt": [ - "LambdaExecutionRole", - "Arn" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-functionlowstockproducts-18T1OLHG7OP8.description.txt b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-functionlowstockproducts-18T1OLHG7OP8.description.txt deleted file mode 100644 index 445081e4df1..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-functionlowstockproducts-18T1OLHG7OP8.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"function-Lambda","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-functionlowstockproducts-18T1OLHG7OP8.outputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-functionlowstockproducts-18T1OLHG7OP8.outputs.json deleted file mode 100644 index b6e2957461d..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-functionlowstockproducts-18T1OLHG7OP8.outputs.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "OutputKey": "LambdaExecutionRoleArn", - "OutputValue": "arn:aws:iam::123456789012:role/productcatalogLambdaRole1ca4fb61-main" - }, - { - "OutputKey": "Region", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "Arn", - "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:lowstockproducts-main" - }, - { - "OutputKey": "Name", - "OutputValue": "lowstockproducts-main" - }, - { - "OutputKey": "LambdaExecutionRole", - "OutputValue": "productcatalogLambdaRole1ca4fb61-main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-functionlowstockproducts-18T1OLHG7OP8.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-functionlowstockproducts-18T1OLHG7OP8.parameters.json deleted file mode 100644 index cc65ac7868a..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-functionlowstockproducts-18T1OLHG7OP8.parameters.json +++ /dev/null @@ -1,38 +0,0 @@ -[ - { - "ParameterKey": "CloudWatchRule", - "ParameterValue": "NONE" - }, - { - "ParameterKey": "s3Key", - "ParameterValue": "amplify-builds/lowstockproducts-5a45534e5173597a5842-build.zip" - }, - { - "ParameterKey": "lowStockThreshold", - "ParameterValue": "5" - }, - { - "ParameterKey": "deploymentBucketName", - "ParameterValue": "amplify-productcatalog-main-31323-deployment" - }, - { - "ParameterKey": "apiproductcatalogGraphQLAPIKeyOutput", - "ParameterValue": "da2-fakeapikey00000000000000" - }, - { - "ParameterKey": "apiproductcatalogGraphQLAPIEndpointOutput", - "ParameterValue": "https://vy5ne7iiovgsxdk3ke4itswbju.appsync-api.us-east-1.amazonaws.com/graphql" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "secretsPathAmplifyAppId", - "ParameterValue": "productcatalog" - }, - { - "ParameterKey": "apiproductcatalogGraphQLAPIIdOutput", - "ParameterValue": "3oy6oxkj6ffojmc2upd52ftdsq" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-functionlowstockproducts-18T1OLHG7OP8.template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-functionlowstockproducts-18T1OLHG7OP8.template.json deleted file mode 100644 index f4c76b769b7..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-functionlowstockproducts-18T1OLHG7OP8.template.json +++ /dev/null @@ -1,358 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "Parameters": { - "CloudWatchRule": { - "Type": "String", - "Default": "NONE", - "Description": " Schedule Expression" - }, - "deploymentBucketName": { - "Type": "String" - }, - "env": { - "Type": "String" - }, - "s3Key": { - "Type": "String" - }, - "lowStockThreshold": { - "Type": "String" - }, - "apiproductcatalogGraphQLAPIIdOutput": { - "Type": "String", - "Default": "apiproductcatalogGraphQLAPIIdOutput" - }, - "apiproductcatalogGraphQLAPIEndpointOutput": { - "Type": "String", - "Default": "apiproductcatalogGraphQLAPIEndpointOutput" - }, - "apiproductcatalogGraphQLAPIKeyOutput": { - "Type": "String", - "Default": "apiproductcatalogGraphQLAPIKeyOutput" - }, - "secretsPathAmplifyAppId": { - "Type": "String" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - }, - "Resources": { - "LambdaFunction": { - "Type": "AWS::Lambda::Function", - "Metadata": { - "aws:asset:path": "./src", - "aws:asset:property": "Code" - }, - "Properties": { - "Code": { - "S3Bucket": { - "Ref": "deploymentBucketName" - }, - "S3Key": { - "Ref": "s3Key" - } - }, - "Handler": "index.handler", - "FunctionName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "lowstockproducts", - { - "Fn::Join": [ - "", - [ - "lowstockproducts", - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "Environment": { - "Variables": { - "ENV": { - "Ref": "env" - }, - "REGION": { - "Ref": "AWS::Region" - }, - "API_PRODUCTCATALOG_GRAPHQLAPIIDOUTPUT": { - "Ref": "apiproductcatalogGraphQLAPIIdOutput" - }, - "API_PRODUCTCATALOG_GRAPHQLAPIENDPOINTOUTPUT": { - "Ref": "apiproductcatalogGraphQLAPIEndpointOutput" - }, - "API_PRODUCTCATALOG_GRAPHQLAPIKEYOUTPUT": { - "Ref": "apiproductcatalogGraphQLAPIKeyOutput" - }, - "LOW_STOCK_THRESHOLD": { - "Ref": "lowStockThreshold" - }, - "PRODUCT_CATALOG_SECRET": { - "Fn::Join": [ - "", - [ - { - "Fn::Sub": [ - "/amplify/${appId}/${env}/AMPLIFY_${functionName}_", - { - "appId": { - "Ref": "secretsPathAmplifyAppId" - }, - "env": { - "Ref": "env" - }, - "functionName": "lowstockproducts" - } - ] - }, - "PRODUCT_CATALOG_SECRET" - ] - ] - } - } - }, - "Role": { - "Fn::GetAtt": [ - "LambdaExecutionRole", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Layers": [], - "Timeout": 25 - } - }, - "LambdaExecutionRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "RoleName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "productcatalogLambdaRole1ca4fb61", - { - "Fn::Join": [ - "", - [ - "productcatalogLambdaRole1ca4fb61", - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": [ - "lambda.amazonaws.com" - ] - }, - "Action": [ - "sts:AssumeRole" - ] - } - ] - } - } - }, - "lambdaexecutionpolicy": { - "DependsOn": [ - "LambdaExecutionRole" - ], - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyName": "lambda-execution-policy", - "Roles": [ - { - "Ref": "LambdaExecutionRole" - } - ], - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "logs:CreateLogGroup", - "logs:CreateLogStream", - "logs:PutLogEvents" - ], - "Resource": { - "Fn::Sub": [ - "arn:aws:logs:${region}:${account}:log-group:/aws/lambda/${lambda}:log-stream:*", - { - "region": { - "Ref": "AWS::Region" - }, - "account": { - "Ref": "AWS::AccountId" - }, - "lambda": { - "Ref": "LambdaFunction" - } - } - ] - } - } - ] - } - } - }, - "AmplifyResourcesPolicy": { - "DependsOn": [ - "LambdaExecutionRole" - ], - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyName": "amplify-lambda-execution-policy", - "Roles": [ - { - "Ref": "LambdaExecutionRole" - } - ], - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "appsync:GraphQL" - ], - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:appsync:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":apis/", - { - "Ref": "apiproductcatalogGraphQLAPIIdOutput" - }, - "/types/Query/*" - ] - ] - } - ] - } - ] - } - } - }, - "AmplifyFunctionSecretsPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyName": "amplify-function-secrets-policy", - "Roles": [ - { - "Ref": "LambdaExecutionRole" - } - ], - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "ssm:GetParameter", - "ssm:GetParameters" - ], - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:ssm:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":parameter", - { - "Fn::Sub": [ - "/amplify/${appId}/${env}/AMPLIFY_${functionName}_", - { - "appId": { - "Ref": "secretsPathAmplifyAppId" - }, - "env": { - "Ref": "env" - }, - "functionName": "lowstockproducts" - } - ] - }, - "*" - ] - ] - } - } - ] - } - }, - "DependsOn": [ - "LambdaExecutionRole" - ] - } - }, - "Outputs": { - "Name": { - "Value": { - "Ref": "LambdaFunction" - } - }, - "Arn": { - "Value": { - "Fn::GetAtt": [ - "LambdaFunction", - "Arn" - ] - } - }, - "Region": { - "Value": { - "Ref": "AWS::Region" - } - }, - "LambdaExecutionRole": { - "Value": { - "Ref": "LambdaExecutionRole" - } - }, - "LambdaExecutionRoleArn": { - "Value": { - "Fn::GetAtt": [ - "LambdaExecutionRole", - "Arn" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.description.txt b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.description.txt deleted file mode 100644 index f0c7a6514ea..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"storage-S3","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.outputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.outputs.json deleted file mode 100644 index 2fb3ab767d6..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.outputs.json +++ /dev/null @@ -1,11 +0,0 @@ -[ - { - "OutputKey": "BucketName", - "OutputValue": "productcatalogf95af07481f845caa6594c26ac9c8ed331323-main", - "Description": "Bucket name for the S3 bucket" - }, - { - "OutputKey": "Region", - "OutputValue": "us-east-1" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.parameters.json deleted file mode 100644 index b4c7fbdd595..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.parameters.json +++ /dev/null @@ -1,102 +0,0 @@ -[ - { - "ParameterKey": "bucketName", - "ParameterValue": "productcatalogf95af07481f845caa6594c26ac9c8ed3" - }, - { - "ParameterKey": "functionS3Trigger1ef46783Name", - "ParameterValue": "S3Trigger1ef46783-main" - }, - { - "ParameterKey": "s3PublicPolicy", - "ParameterValue": "Public_policy_38e5b439" - }, - { - "ParameterKey": "AuthenticatedAllowList", - "ParameterValue": "ALLOW" - }, - { - "ParameterKey": "functionS3Trigger1ef46783LambdaExecutionRole", - "ParameterValue": "S3Trigger1ef46783LambdaRole1ef46783-main" - }, - { - "ParameterKey": "unauthRoleName", - "ParameterValue": "amplify-productcatalog-main-31323-unauthRole" - }, - { - "ParameterKey": "s3PrivatePolicy", - "ParameterValue": "Private_policy_38e5b439" - }, - { - "ParameterKey": "selectedGuestPermissions", - "ParameterValue": "" - }, - { - "ParameterKey": "s3PermissionsAuthenticatedPublic", - "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" - }, - { - "ParameterKey": "s3PermissionsAuthenticatedUploads", - "ParameterValue": "s3:PutObject" - }, - { - "ParameterKey": "s3UploadsPolicy", - "ParameterValue": "Uploads_policy_38e5b439" - }, - { - "ParameterKey": "functionS3Trigger1ef46783Arn", - "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:S3Trigger1ef46783-main" - }, - { - "ParameterKey": "s3PermissionsAuthenticatedProtected", - "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" - }, - { - "ParameterKey": "s3PermissionsGuestUploads", - "ParameterValue": "DISALLOW" - }, - { - "ParameterKey": "s3ReadPolicy", - "ParameterValue": "read_policy_38e5b439" - }, - { - "ParameterKey": "selectedAuthenticatedPermissions", - "ParameterValue": "s3:PutObject,s3:GetObject,s3:ListBucket,s3:DeleteObject" - }, - { - "ParameterKey": "s3PermissionsGuestPublic", - "ParameterValue": "DISALLOW" - }, - { - "ParameterKey": "s3PermissionsAuthenticatedPrivate", - "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "unauthPolicyName", - "ParameterValue": "s3_amplify_38e5b439" - }, - { - "ParameterKey": "authRoleName", - "ParameterValue": "amplify-productcatalog-main-31323-authRole" - }, - { - "ParameterKey": "GuestAllowList", - "ParameterValue": "DISALLOW" - }, - { - "ParameterKey": "triggerFunction", - "ParameterValue": "S3Trigger1ef46783" - }, - { - "ParameterKey": "authPolicyName", - "ParameterValue": "s3_amplify_38e5b439" - }, - { - "ParameterKey": "s3ProtectedPolicy", - "ParameterValue": "Protected_policy_38e5b439" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.template.json deleted file mode 100644 index 284b3cf2e07..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323-storages338e5b439-DQ7IMC8LEGGI.template.json +++ /dev/null @@ -1,750 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-S3\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "env": { - "Type": "String" - }, - "bucketName": { - "Type": "String" - }, - "authRoleName": { - "Type": "String" - }, - "unauthRoleName": { - "Type": "String" - }, - "authPolicyName": { - "Type": "String" - }, - "unauthPolicyName": { - "Type": "String" - }, - "s3PublicPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3PrivatePolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3ProtectedPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3UploadsPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3ReadPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3PermissionsAuthenticatedPublic": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedProtected": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedPrivate": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedUploads": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsGuestPublic": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsGuestUploads": { - "Type": "String", - "Default": "DISALLOW" - }, - "AuthenticatedAllowList": { - "Type": "String", - "Default": "DISALLOW" - }, - "GuestAllowList": { - "Type": "String", - "Default": "DISALLOW" - }, - "selectedGuestPermissions": { - "Type": "CommaDelimitedList", - "Default": "NONE" - }, - "selectedAuthenticatedPermissions": { - "Type": "CommaDelimitedList", - "Default": "NONE" - }, - "functionS3Trigger1ef46783Arn": { - "Type": "String", - "Default": "functionS3Trigger1ef46783Arn" - }, - "functionS3Trigger1ef46783Name": { - "Type": "String", - "Default": "functionS3Trigger1ef46783Name" - }, - "functionS3Trigger1ef46783LambdaExecutionRole": { - "Type": "String", - "Default": "functionS3Trigger1ef46783LambdaExecutionRole" - }, - "triggerFunction": { - "Type": "String" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - }, - "CreateAuthPublic": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "s3PermissionsAuthenticatedPublic" - }, - "DISALLOW" - ] - } - ] - }, - "CreateAuthProtected": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "s3PermissionsAuthenticatedProtected" - }, - "DISALLOW" - ] - } - ] - }, - "CreateAuthPrivate": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "s3PermissionsAuthenticatedPrivate" - }, - "DISALLOW" - ] - } - ] - }, - "CreateAuthUploads": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "s3PermissionsAuthenticatedUploads" - }, - "DISALLOW" - ] - } - ] - }, - "CreateGuestPublic": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "s3PermissionsGuestPublic" - }, - "DISALLOW" - ] - } - ] - }, - "CreateGuestUploads": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "s3PermissionsGuestUploads" - }, - "DISALLOW" - ] - } - ] - }, - "AuthReadAndList": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "AuthenticatedAllowList" - }, - "DISALLOW" - ] - } - ] - }, - "GuestReadAndList": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "GuestAllowList" - }, - "DISALLOW" - ] - } - ] - } - }, - "Outputs": { - "BucketName": { - "Description": "Bucket name for the S3 bucket", - "Value": { - "Ref": "S3Bucket" - } - }, - "Region": { - "Value": { - "Ref": "AWS::Region" - } - } - }, - "Resources": { - "S3Bucket": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "bucketName" - }, - { - "Fn::Join": [ - "", - [ - { - "Ref": "bucketName" - }, - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - { - "Ref": "AWS::StackName" - } - ] - } - ] - }, - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "Id": "S3CORSRuleId1", - "MaxAge": 3000 - } - ] - }, - "NotificationConfiguration": { - "LambdaConfigurations": [ - { - "Event": "s3:ObjectCreated:*", - "Function": { - "Ref": "functionS3Trigger1ef46783Arn" - } - }, - { - "Event": "s3:ObjectRemoved:*", - "Function": { - "Ref": "functionS3Trigger1ef46783Arn" - } - } - ] - }, - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - } - }, - "DependsOn": [ - "TriggerPermissions" - ], - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain" - }, - "TriggerPermissions": { - "Type": "AWS::Lambda::Permission", - "Properties": { - "Action": "lambda:InvokeFunction", - "FunctionName": { - "Ref": "functionS3Trigger1ef46783Name" - }, - "Principal": "s3.amazonaws.com", - "SourceAccount": { - "Ref": "AWS::AccountId" - }, - "SourceArn": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "bucketName" - }, - { - "Fn::Join": [ - "", - [ - { - "Ref": "bucketName" - }, - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - { - "Ref": "AWS::StackName" - } - ] - } - ] - }, - "-", - { - "Ref": "env" - } - ] - ] - } - ] - } - ] - ] - } - } - }, - "S3AuthPublicPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - { - "Ref": "s3PermissionsAuthenticatedPublic" - } - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, - "/public/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": { - "Ref": "s3PublicPolicy" - }, - "Roles": [ - { - "Ref": "authRoleName" - } - ] - }, - "DependsOn": [ - "S3Bucket" - ], - "Condition": "CreateAuthPublic" - }, - "S3AuthProtectedPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - { - "Ref": "s3PermissionsAuthenticatedProtected" - } - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, - "/protected/${cognito-identity.amazonaws.com:sub}/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": { - "Ref": "s3ProtectedPolicy" - }, - "Roles": [ - { - "Ref": "authRoleName" - } - ] - }, - "DependsOn": [ - "S3Bucket" - ], - "Condition": "CreateAuthProtected" - }, - "S3AuthPrivatePolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - { - "Ref": "s3PermissionsAuthenticatedPrivate" - } - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, - "/private/${cognito-identity.amazonaws.com:sub}/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": { - "Ref": "s3PrivatePolicy" - }, - "Roles": [ - { - "Ref": "authRoleName" - } - ] - }, - "DependsOn": [ - "S3Bucket" - ], - "Condition": "CreateAuthPrivate" - }, - "S3AuthUploadPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - { - "Ref": "s3PermissionsAuthenticatedUploads" - } - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, - "/uploads/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": { - "Ref": "s3UploadsPolicy" - }, - "Roles": [ - { - "Ref": "authRoleName" - } - ] - }, - "DependsOn": [ - "S3Bucket" - ], - "Condition": "CreateAuthUploads" - }, - "S3AuthReadPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, - "/protected/*" - ] - ] - } - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/", - "public/*", - "protected/", - "protected/*", - "private/${cognito-identity.amazonaws.com:sub}/", - "private/${cognito-identity.amazonaws.com:sub}/*" - ] - } - }, - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - } - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": { - "Ref": "s3ReadPolicy" - }, - "Roles": [ - { - "Ref": "authRoleName" - } - ] - }, - "DependsOn": [ - "S3Bucket" - ], - "Condition": "AuthReadAndList" - }, - "S3GuestReadPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, - "/protected/*" - ] - ] - } - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/", - "public/*", - "protected/", - "protected/*" - ] - } - }, - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - } - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": { - "Ref": "s3ReadPolicy" - }, - "Roles": [ - { - "Ref": "unauthRoleName" - } - ] - }, - "DependsOn": [ - "S3Bucket" - ], - "Condition": "GuestReadAndList" - }, - "S3TriggerBucketPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "s3:ListBucket" - ], - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - } - ] - ] - } - ] - }, - { - "Effect": "Allow", - "Action": [ - "s3:PutObject", - "s3:GetObject", - "s3:ListBucket", - "s3:DeleteObject" - ], - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, - "/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "amplify-lambda-execution-policy-storage", - "Roles": [ - { - "Ref": "functionS3Trigger1ef46783LambdaExecutionRole" - } - ] - }, - "DependsOn": [ - "S3Bucket" - ] - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323.description.txt b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323.description.txt deleted file mode 100644 index daf66c0bc85..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323.description.txt +++ /dev/null @@ -1 +0,0 @@ -Root Stack for AWS Amplify CLI \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323.outputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323.outputs.json deleted file mode 100644 index 9afd4084482..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323.outputs.json +++ /dev/null @@ -1,42 +0,0 @@ -[ - { - "OutputKey": "AuthRoleName", - "OutputValue": "amplify-productcatalog-main-31323-authRole" - }, - { - "OutputKey": "UnauthRoleArn", - "OutputValue": "arn:aws:iam::123456789012:role/amplify-productcatalog-main-31323-unauthRole" - }, - { - "OutputKey": "AuthRoleArn", - "OutputValue": "arn:aws:iam::123456789012:role/amplify-productcatalog-main-31323-authRole" - }, - { - "OutputKey": "Region", - "OutputValue": "us-east-1", - "Description": "CloudFormation provider root stack Region", - "ExportName": "amplify-productcatalog-main-31323-Region" - }, - { - "OutputKey": "DeploymentBucketName", - "OutputValue": "amplify-productcatalog-main-31323-deployment", - "Description": "CloudFormation provider root stack deployment bucket name", - "ExportName": "amplify-productcatalog-main-31323-DeploymentBucketName" - }, - { - "OutputKey": "UnauthRoleName", - "OutputValue": "amplify-productcatalog-main-31323-unauthRole" - }, - { - "OutputKey": "StackName", - "OutputValue": "amplify-productcatalog-main-31323", - "Description": "CloudFormation provider root stack ID", - "ExportName": "amplify-productcatalog-main-31323-StackName" - }, - { - "OutputKey": "StackId", - "OutputValue": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-productcatalog-main-31323/2d9bb0d0-1a2b-11f1-8beb-0affe952b47f", - "Description": "CloudFormation provider root stack name", - "ExportName": "amplify-productcatalog-main-31323-StackId" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323.parameters.json deleted file mode 100644 index 0a72a7910d5..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323.parameters.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "ParameterKey": "AuthRoleName", - "ParameterValue": "amplify-productcatalog-main-31323-authRole" - }, - { - "ParameterKey": "DeploymentBucketName", - "ParameterValue": "amplify-productcatalog-main-31323-deployment" - }, - { - "ParameterKey": "UnauthRoleName", - "ParameterValue": "amplify-productcatalog-main-31323-unauthRole" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323.template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323.template.json deleted file mode 100644 index 2463bc707bc..00000000000 --- a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-main-31323.template.json +++ /dev/null @@ -1,598 +0,0 @@ -{ - "Description": "Root Stack for AWS Amplify CLI", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "DeploymentBucketName": { - "Type": "String", - "Default": "DeploymentBucket", - "Description": "Name of the common deployment bucket provided by the parent stack" - }, - "AuthRoleName": { - "Type": "String", - "Default": "AuthRoleName", - "Description": "Name of the common deployment bucket provided by the parent stack" - }, - "UnauthRoleName": { - "Type": "String", - "Default": "UnAuthRoleName", - "Description": "Name of the common deployment bucket provided by the parent stack" - } - }, - "Outputs": { - "Region": { - "Description": "CloudFormation provider root stack Region", - "Value": { - "Ref": "AWS::Region" - }, - "Export": { - "Name": { - "Fn::Sub": "${AWS::StackName}-Region" - } - } - }, - "StackName": { - "Description": "CloudFormation provider root stack ID", - "Value": { - "Ref": "AWS::StackName" - }, - "Export": { - "Name": { - "Fn::Sub": "${AWS::StackName}-StackName" - } - } - }, - "StackId": { - "Description": "CloudFormation provider root stack name", - "Value": { - "Ref": "AWS::StackId" - }, - "Export": { - "Name": { - "Fn::Sub": "${AWS::StackName}-StackId" - } - } - }, - "AuthRoleArn": { - "Value": { - "Fn::GetAtt": [ - "AuthRole", - "Arn" - ] - } - }, - "UnauthRoleArn": { - "Value": { - "Fn::GetAtt": [ - "UnauthRole", - "Arn" - ] - } - }, - "DeploymentBucketName": { - "Description": "CloudFormation provider root stack deployment bucket name", - "Value": { - "Ref": "DeploymentBucketName" - }, - "Export": { - "Name": { - "Fn::Sub": "${AWS::StackName}-DeploymentBucketName" - } - } - }, - "AuthRoleName": { - "Value": { - "Ref": "AuthRole" - } - }, - "UnauthRoleName": { - "Value": { - "Ref": "UnauthRole" - } - } - }, - "Resources": { - "DeploymentBucket": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketName": { - "Ref": "DeploymentBucketName" - }, - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - } - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain" - }, - "DeploymentBucketBlockHTTP": { - "Type": "AWS::S3::BucketPolicy", - "Properties": { - "Bucket": { - "Ref": "DeploymentBucketName" - }, - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:*", - "Effect": "Deny", - "Principal": "*", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "DeploymentBucketName" - }, - "/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "DeploymentBucketName" - } - ] - ] - } - ], - "Condition": { - "Bool": { - "aws:SecureTransport": false - } - } - } - ] - } - } - }, - "AuthRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Sid": "", - "Effect": "Deny", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - }, - "Action": "sts:AssumeRoleWithWebIdentity" - } - ] - }, - "RoleName": { - "Ref": "AuthRoleName" - } - } - }, - "UnauthRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Sid": "", - "Effect": "Deny", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - }, - "Action": "sts:AssumeRoleWithWebIdentity" - } - ] - }, - "RoleName": { - "Ref": "UnauthRoleName" - } - } - }, - "apiproductcatalog": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-main-31323-deployment/amplify-cfn-templates/api/cloudformation-template.json", - "Parameters": { - "AppSyncApiName": "productcatalog", - "DynamoDBBillingMode": "PAY_PER_REQUEST", - "DynamoDBEnableServerSideEncryption": false, - "AuthCognitoUserPoolId": { - "Fn::GetAtt": [ - "authproductcatalog90174ac4", - "Outputs.UserPoolId" - ] - }, - "authRoleName": { - "Ref": "AuthRoleName" - }, - "unauthRoleName": { - "Ref": "UnauthRoleName" - }, - "S3DeploymentBucket": "amplify-productcatalog-main-31323-deployment", - "S3DeploymentRootKey": "amplify-appsync-files/51b6d4362e9dc4529fd8298646795247239d2c30", - "env": "main" - } - } - }, - "authproductcatalog90174ac4": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-main-31323-deployment/amplify-cfn-templates/auth/productcatalog90174ac4-cloudformation-template.json", - "Parameters": { - "identityPoolName": "productcatalog90174ac4_identitypool_90174ac4", - "allowUnauthenticatedIdentities": false, - "resourceNameTruncated": "produc90174ac4", - "userPoolName": "productcatalog90174ac4_userpool_90174ac4", - "autoVerifiedAttributes": "email", - "mfaConfiguration": "OFF", - "mfaTypes": "SMS Text Message", - "smsAuthenticationMessage": "Your authentication code is {####}", - "smsVerificationMessage": "Your verification code is {####}", - "emailVerificationSubject": "Your verification code", - "emailVerificationMessage": "Your verification code is {####}", - "defaultPasswordPolicy": false, - "passwordPolicyMinLength": 8, - "passwordPolicyCharacters": "", - "requiredAttributes": "email", - "aliasAttributes": "", - "userpoolClientGenerateSecret": false, - "userpoolClientRefreshTokenValidity": 30, - "userpoolClientWriteAttributes": "email", - "userpoolClientReadAttributes": "email", - "userpoolClientLambdaRole": "produc90174ac4_userpoolclient_lambda_role", - "userpoolClientSetAttributes": false, - "sharedId": "90174ac4", - "resourceName": "productcatalog90174ac4", - "authSelections": "identityPoolAndUserPool", - "useDefault": "default", - "usernameAttributes": "email", - "userPoolGroupList": "", - "serviceName": "Cognito", - "usernameCaseSensitive": false, - "useEnabledMfas": true, - "authRoleArn": { - "Fn::GetAtt": [ - "AuthRole", - "Arn" - ] - }, - "unauthRoleArn": { - "Fn::GetAtt": [ - "UnauthRole", - "Arn" - ] - }, - "breakCircularDependency": true, - "dependsOn": "", - "env": "main" - } - } - }, - "functionS3Trigger1ef46783": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-main-31323-deployment/amplify-cfn-templates/function/S3Trigger1ef46783-cloudformation-template.json", - "Parameters": { - "deploymentBucketName": "amplify-productcatalog-main-31323-deployment", - "s3Key": "amplify-builds/S3Trigger1ef46783-4b4665534739746b326e-build.zip", - "apiproductcatalogGraphQLAPIIdOutput": { - "Fn::GetAtt": [ - "apiproductcatalog", - "Outputs.GraphQLAPIIdOutput" - ] - }, - "apiproductcatalogGraphQLAPIEndpointOutput": { - "Fn::GetAtt": [ - "apiproductcatalog", - "Outputs.GraphQLAPIEndpointOutput" - ] - }, - "apiproductcatalogGraphQLAPIKeyOutput": { - "Fn::GetAtt": [ - "apiproductcatalog", - "Outputs.GraphQLAPIKeyOutput" - ] - }, - "env": "main" - } - } - }, - "functionlowstockproducts": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-main-31323-deployment/amplify-cfn-templates/function/lowstockproducts-cloudformation-template.json", - "Parameters": { - "lowStockThreshold": "5", - "secretsPathAmplifyAppId": "productcatalog", - "deploymentBucketName": "amplify-productcatalog-main-31323-deployment", - "s3Key": "amplify-builds/lowstockproducts-5a45534e5173597a5842-build.zip", - "apiproductcatalogGraphQLAPIIdOutput": { - "Fn::GetAtt": [ - "apiproductcatalog", - "Outputs.GraphQLAPIIdOutput" - ] - }, - "apiproductcatalogGraphQLAPIEndpointOutput": { - "Fn::GetAtt": [ - "apiproductcatalog", - "Outputs.GraphQLAPIEndpointOutput" - ] - }, - "apiproductcatalogGraphQLAPIKeyOutput": { - "Fn::GetAtt": [ - "apiproductcatalog", - "Outputs.GraphQLAPIKeyOutput" - ] - }, - "env": "main" - } - } - }, - "storages338e5b439": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-main-31323-deployment/amplify-cfn-templates/storage/cloudformation-template.json", - "Parameters": { - "bucketName": "productcatalogf95af07481f845caa6594c26ac9c8ed3", - "selectedGuestPermissions": "", - "selectedAuthenticatedPermissions": "s3:PutObject,s3:GetObject,s3:ListBucket,s3:DeleteObject", - "unauthRoleName": { - "Ref": "UnauthRoleName" - }, - "authRoleName": { - "Ref": "AuthRoleName" - }, - "triggerFunction": "S3Trigger1ef46783", - "s3PrivatePolicy": "Private_policy_38e5b439", - "s3ProtectedPolicy": "Protected_policy_38e5b439", - "s3PublicPolicy": "Public_policy_38e5b439", - "s3ReadPolicy": "read_policy_38e5b439", - "s3UploadsPolicy": "Uploads_policy_38e5b439", - "authPolicyName": "s3_amplify_38e5b439", - "unauthPolicyName": "s3_amplify_38e5b439", - "AuthenticatedAllowList": "ALLOW", - "GuestAllowList": "DISALLOW", - "s3PermissionsAuthenticatedPrivate": "s3:PutObject,s3:GetObject,s3:DeleteObject", - "s3PermissionsAuthenticatedProtected": "s3:PutObject,s3:GetObject,s3:DeleteObject", - "s3PermissionsAuthenticatedPublic": "s3:PutObject,s3:GetObject,s3:DeleteObject", - "s3PermissionsAuthenticatedUploads": "s3:PutObject", - "s3PermissionsGuestPublic": "DISALLOW", - "s3PermissionsGuestUploads": "DISALLOW", - "functionS3Trigger1ef46783Name": { - "Fn::GetAtt": [ - "functionS3Trigger1ef46783", - "Outputs.Name" - ] - }, - "functionS3Trigger1ef46783Arn": { - "Fn::GetAtt": [ - "functionS3Trigger1ef46783", - "Outputs.Arn" - ] - }, - "functionS3Trigger1ef46783LambdaExecutionRole": { - "Fn::GetAtt": [ - "functionS3Trigger1ef46783", - "Outputs.LambdaExecutionRole" - ] - }, - "env": "main" - } - } - }, - "UpdateRolesWithIDPFunction": { - "DependsOn": [ - "AuthRole", - "UnauthRole", - "authproductcatalog90174ac4" - ], - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "ZipFile": { - "Fn::Join": [ - "\n", - [ - "const response = require('cfn-response');", - "const { IAMClient, GetRoleCommand, UpdateAssumeRolePolicyCommand } = require('@aws-sdk/client-iam');", - "exports.handler = function(event, context) {", - " // Don't return promise, response.send() marks context as done internally", - " const ignoredPromise = handleEvent(event, context)", - "};", - "async function handleEvent(event, context) {", - " try {", - " let authRoleName = event.ResourceProperties.authRoleName;", - " let unauthRoleName = event.ResourceProperties.unauthRoleName;", - " let idpId = event.ResourceProperties.idpId;", - " let authParamsJson = {", - " 'Version': '2012-10-17',", - " 'Statement': [{", - " 'Effect': 'Allow',", - " 'Principal': {'Federated': 'cognito-identity.amazonaws.com'},", - " 'Action': 'sts:AssumeRoleWithWebIdentity',", - " 'Condition': {", - " 'StringEquals': {'cognito-identity.amazonaws.com:aud': idpId},", - " 'ForAnyValue:StringLike': {'cognito-identity.amazonaws.com:amr': 'authenticated'}", - " }", - " }]", - " };", - " let unauthParamsJson = {", - " 'Version': '2012-10-17',", - " 'Statement': [{", - " 'Effect': 'Allow',", - " 'Principal': {'Federated': 'cognito-identity.amazonaws.com'},", - " 'Action': 'sts:AssumeRoleWithWebIdentity',", - " 'Condition': {", - " 'StringEquals': {'cognito-identity.amazonaws.com:aud': idpId},", - " 'ForAnyValue:StringLike': {'cognito-identity.amazonaws.com:amr': 'unauthenticated'}", - " }", - " }]", - " };", - " if (event.RequestType === 'Delete') {", - " try {", - " delete authParamsJson.Statement[0].Condition;", - " delete unauthParamsJson.Statement[0].Condition;", - " authParamsJson.Statement[0].Effect = 'Deny'", - " unauthParamsJson.Statement[0].Effect = 'Deny'", - " let authParams = {PolicyDocument: JSON.stringify(authParamsJson), RoleName: authRoleName};", - " let unauthParams = {PolicyDocument: JSON.stringify(unauthParamsJson), RoleName: unauthRoleName};", - " const iam = new IAMClient({region: event.ResourceProperties.region});", - " let res = await Promise.all([", - " iam.send(new GetRoleCommand({RoleName: authParams.RoleName})),", - " iam.send(new GetRoleCommand({RoleName: unauthParams.RoleName}))", - " ]);", - " res = await Promise.all([", - " iam.send(new UpdateAssumeRolePolicyCommand(authParams)),", - " iam.send(new UpdateAssumeRolePolicyCommand(unauthParams))", - " ]);", - " response.send(event, context, response.SUCCESS, {});", - " } catch (err) {", - " console.log(err.stack);", - " response.send(event, context, response.SUCCESS, {Error: err});", - " }", - " } else if (event.RequestType === 'Update' || event.RequestType === 'Create') {", - " const iam = new IAMClient({region: event.ResourceProperties.region});", - " let authParams = {PolicyDocument: JSON.stringify(authParamsJson), RoleName: authRoleName};", - " let unauthParams = {PolicyDocument: JSON.stringify(unauthParamsJson), RoleName: unauthRoleName};", - " const res = await Promise.all([", - " iam.send(new UpdateAssumeRolePolicyCommand(authParams)),", - " iam.send(new UpdateAssumeRolePolicyCommand(unauthParams))", - " ]);", - " response.send(event, context, response.SUCCESS, {});", - " }", - " } catch (err) {", - " console.log(err.stack);", - " response.send(event, context, response.FAILED, {Error: err});", - " }", - "};" - ] - ] - } - }, - "Handler": "index.handler", - "Runtime": "nodejs22.x", - "Timeout": 300, - "Role": { - "Fn::GetAtt": [ - "UpdateRolesWithIDPFunctionRole", - "Arn" - ] - } - } - }, - "UpdateRolesWithIDPFunctionOutputs": { - "Type": "Custom::LambdaCallout", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "UpdateRolesWithIDPFunction", - "Arn" - ] - }, - "region": { - "Ref": "AWS::Region" - }, - "idpId": { - "Fn::GetAtt": [ - "authproductcatalog90174ac4", - "Outputs.IdentityPoolId" - ] - }, - "authRoleName": { - "Ref": "AuthRole" - }, - "unauthRoleName": { - "Ref": "UnauthRole" - } - } - }, - "UpdateRolesWithIDPFunctionRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "RoleName": { - "Fn::Join": [ - "", - [ - { - "Ref": "AuthRole" - }, - "-idp" - ] - ] - }, - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": [ - "lambda.amazonaws.com" - ] - }, - "Action": [ - "sts:AssumeRole" - ] - } - ] - }, - "Policies": [ - { - "PolicyName": "UpdateRolesWithIDPFunctionPolicy", - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "logs:CreateLogGroup", - "logs:CreateLogStream", - "logs:PutLogEvents" - ], - "Resource": "arn:aws:logs:*:*:*" - }, - { - "Effect": "Allow", - "Action": [ - "iam:UpdateAssumeRolePolicy", - "iam:GetRole" - ], - "Resource": { - "Fn::GetAtt": [ - "AuthRole", - "Arn" - ] - } - }, - { - "Effect": "Allow", - "Action": [ - "iam:UpdateAssumeRolePolicy", - "iam:GetRole" - ], - "Resource": { - "Fn::GetAtt": [ - "UnauthRole", - "Arn" - ] - } - } - ] - } - } - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-FunctionDirectiveStack-x.description.txt b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-FunctionDirectiveStack-x.description.txt new file mode 100644 index 00000000000..6b3d983ba60 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-FunctionDirectiveStack-x.description.txt @@ -0,0 +1 @@ +An auto-generated nested stack for the @function directive. diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-FunctionDirectiveStack-x.outputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-FunctionDirectiveStack-x.outputs.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-FunctionDirectiveStack-x.outputs.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-FunctionDirectiveStack-x.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-FunctionDirectiveStack-x.parameters.json new file mode 100644 index 00000000000..76040b9c780 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-FunctionDirectiveStack-x.parameters.json @@ -0,0 +1,30 @@ +[ + { + "ParameterKey": "referencetotransformerrootstackunauthRoleName49F3C1FERef", + "ParameterValue": "amplify-productcatalog-x-x-unauthRole" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", + "ParameterValue": "amplify-appsync-files/2904294ac328b706f016848ccf5fa0abe614014d" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", + "ParameterValue": "hscmwhprkbaljmcpavj3dcztrq" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", + "ParameterValue": "amplify-productcatalog-x-x-deployment" + }, + { + "ParameterKey": "referencetotransformerrootstackauthRoleNameFB872D50Ref", + "ParameterValue": "amplify-productcatalog-x-x-authRole" + }, + { + "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", + "ParameterValue": "x" + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-FunctionDirectiveStack-x.template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-FunctionDirectiveStack-x.template.json new file mode 100644 index 00000000000..0956fcbbe03 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-FunctionDirectiveStack-x.template.json @@ -0,0 +1,310 @@ +{ + "Description": "An auto-generated nested stack for the @function directive.", + "AWSTemplateFormatVersion": "2010-09-09", + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + } + }, + "Resources": { + "LowstockproductsLambdaDataSourceServiceRole5CDC1376": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + } + } + }, + "LowstockproductsLambdaDataSourceServiceRoleDefaultPolicyE62E3A80": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:lowstockproducts-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:lowstockproducts" + } + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:lowstockproducts-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:lowstockproducts" + } + ] + }, + ":*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "LowstockproductsLambdaDataSourceServiceRoleDefaultPolicyE62E3A80", + "Roles": [ + { + "Ref": "LowstockproductsLambdaDataSourceServiceRole5CDC1376" + } + ] + } + }, + "LowstockproductsLambdaDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "LambdaConfig": { + "LambdaFunctionArn": { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:lowstockproducts-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:lowstockproducts" + } + ] + } + }, + "Name": "LowstockproductsLambdaDataSource", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "LowstockproductsLambdaDataSourceServiceRole5CDC1376", + "Arn" + ] + }, + "Type": "AWS_LAMBDA" + } + }, + "InvokeLowstockproductsLambdaDataSourceInvokeLowstockproductsLambdaDataSourceAppSyncFunctionFA1A1E78": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "LowstockproductsLambdaDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "InvokeLowstockproductsLambdaDataSource", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeLowstockproductsLambdaDataSource.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeLowstockproductsLambdaDataSource.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "LowstockproductsLambdaDataSource" + ] + }, + "QuerycheckLowStockResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "checkLowStock", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QueryCheckLowStockAuthFNQueryCheckLowStockAuthFNAppSyncFunction691D681D", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "InvokeLowstockproductsLambdaDataSourceInvokeLowstockproductsLambdaDataSourceAppSyncFunctionFA1A1E78", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"checkLowStock\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n{}\n## [End] Stash resolver specific context.. **" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.checkLowStock.res.vtl" + ] + ] + }, + "TypeName": "Query" + } + }, + "QueryCheckLowStockAuthFNQueryCheckLowStockAuthFNAppSyncFunction691D681D": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryCheckLowStockAuthFN", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.checkLowStock.auth.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + } + }, + "Parameters": { + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackauthRoleNameFB872D50Ref": { + "Type": "String" + }, + "referencetotransformerrootstackunauthRoleName49F3C1FERef": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Type": "String" + } + } +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-Comment-x.description.txt b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-Comment-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-Comment-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-Comment-x.outputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-Comment-x.outputs.json new file mode 100644 index 00000000000..92e0ee1cd80 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-Comment-x.outputs.json @@ -0,0 +1,28 @@ +[ + { + "OutputKey": "GetAttCommentDataSourceName", + "OutputValue": "CommentTable", + "Description": "Your model DataSource name.", + "ExportName": "hscmwhprkbaljmcpavj3dcztrq:GetAtt:CommentDataSource:Name" + }, + { + "OutputKey": "GetAttCommentTableStreamArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Comment-hscmwhprkbaljmcpavj3dcztrq-x/stream/2026-04-15T03:53:06.820", + "Description": "Your DynamoDB table StreamArn.", + "ExportName": "hscmwhprkbaljmcpavj3dcztrq:GetAtt:CommentTable:StreamArn" + }, + { + "OutputKey": "transformerrootstackCommentCommentDataSourceA0E54655Name", + "OutputValue": "CommentTable" + }, + { + "OutputKey": "transformerrootstackCommentCommentTable5427FDE2Ref", + "OutputValue": "Comment-hscmwhprkbaljmcpavj3dcztrq-x" + }, + { + "OutputKey": "GetAttCommentTableName", + "OutputValue": "Comment-hscmwhprkbaljmcpavj3dcztrq-x", + "Description": "Your DynamoDB table name.", + "ExportName": "hscmwhprkbaljmcpavj3dcztrq:GetAtt:CommentTable:Name" + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-Comment-x.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-Comment-x.parameters.json new file mode 100644 index 00000000000..a846facd140 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-Comment-x.parameters.json @@ -0,0 +1,66 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserSubscriptionOnCreateUserDataResolverFnSubscriptionOnCreateUserDataResolverFnAppSyncFunctionCAFEE24EFunctionId", + "ParameterValue": "qfwkpcbq4fgfjakokec32roplu" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", + "ParameterValue": "amplify-appsync-files/2904294ac328b706f016848ccf5fa0abe614014d" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", + "ParameterValue": "hscmwhprkbaljmcpavj3dcztrq" + }, + { + "ParameterKey": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserMutationcreateUserinit0FunctionMutationcreateUserinit0FunctionAppSyncFunction5CF77F6AFunctionId", + "ParameterValue": "lw2jye7ga5ddlhesqzclrligny" + }, + { + "ParameterKey": "referencetotransformerrootstackunauthRoleName49F3C1FERef", + "ParameterValue": "amplify-productcatalog-x-x-unauthRole" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserMutationupdateUserinit0FunctionMutationupdateUserinit0FunctionAppSyncFunction90E2C98AFunctionId", + "ParameterValue": "x4iwoozno5dlboqsjxv4ol2r7y" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", + "ParameterValue": "amplify-productcatalog-x-x-deployment" + }, + { + "ParameterKey": "referencetotransformerrootstackauthRoleNameFB872D50Ref", + "ParameterValue": "amplify-productcatalog-x-x-authRole" + }, + { + "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", + "ParameterValue": "x" + }, + { + "ParameterKey": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId", + "ParameterValue": "jnj2c6vawvazfpixdbasl5x6be" + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-Comment-x.template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-Comment-x.template.json new file mode 100644 index 00000000000..b6359c2f89b --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-Comment-x.template.json @@ -0,0 +1,1640 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackauthRoleNameFB872D50Ref": { + "Type": "String" + }, + "referencetotransformerrootstackunauthRoleName49F3C1FERef": { + "Type": "String" + }, + "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserMutationcreateUserinit0FunctionMutationcreateUserinit0FunctionAppSyncFunction5CF77F6AFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserMutationupdateUserinit0FunctionMutationupdateUserinit0FunctionAppSyncFunction90E2C98AFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserSubscriptionOnCreateUserDataResolverFnSubscriptionOnCreateUserDataResolverFnAppSyncFunctionCAFEE24EFunctionId": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "CommentTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + }, + { + "AttributeName": "productId", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "GlobalSecondaryIndexes": [ + { + "IndexName": "byProduct", + "KeySchema": [ + { + "AttributeName": "productId", + "KeyType": "HASH" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + } + ], + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "Comment-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Retain" + }, + "CommentIAMRoleD5EC5F51": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem", + "dynamodb:ConditionCheckItem", + "dynamodb:DescribeTable", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "Comment-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "Comment-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess" + } + ], + "RoleName": { + "Fn::Join": [ + "", + [ + "CommentIAMRole20388d-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "CommentIAMRoleDefaultPolicyA8D6F6B5": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "CommentTable", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "CommentTable", + "Arn" + ] + }, + "/index/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "CommentIAMRoleDefaultPolicyA8D6F6B5", + "Roles": [ + { + "Ref": "CommentIAMRoleD5EC5F51" + } + ] + } + }, + "CommentDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "CommentTable" + } + }, + "Name": "CommentTable", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "CommentIAMRoleD5EC5F51", + "Arn" + ] + }, + "Type": "AMAZON_DYNAMODB" + }, + "DependsOn": [ + "CommentIAMRoleD5EC5F51" + ] + }, + "QuerygetCommentauth0FunctionQuerygetCommentauth0FunctionAppSyncFunction4992FD06": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetCommentauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getComment.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "QueryGetCommentDataResolverFnQueryGetCommentDataResolverFnAppSyncFunction8473E2B0": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "CommentDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryGetCommentDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getComment.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getComment.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "CommentDataSource" + ] + }, + "GetCommentResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getComment", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerygetCommentauth0FunctionQuerygetCommentauth0FunctionAppSyncFunction4992FD06", + "FunctionId" + ] + }, + { + "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetCommentDataResolverFnQueryGetCommentDataResolverFnAppSyncFunction8473E2B0", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "CommentTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + } + }, + "QueryListCommentsDataResolverFnQueryListCommentsDataResolverFnAppSyncFunction474D4A91": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "CommentDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryListCommentsDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listComments.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listComments.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "CommentDataSource" + ] + }, + "ListCommentResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listComments", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerygetCommentauth0FunctionQuerygetCommentauth0FunctionAppSyncFunction4992FD06", + "FunctionId" + ] + }, + { + "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListCommentsDataResolverFnQueryListCommentsDataResolverFnAppSyncFunction474D4A91", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listComments\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "CommentTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + } + }, + "MutationcreateCommentauth0FunctionMutationcreateCommentauth0FunctionAppSyncFunctionE6EA011A": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateCommentauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createComment.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "MutationCreateCommentDataResolverFnMutationCreateCommentDataResolverFnAppSyncFunctionD019FFE0": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "CommentDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationCreateCommentDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createComment.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createComment.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "CommentDataSource" + ] + }, + "CreateCommentResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createComment", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserMutationcreateUserinit0FunctionMutationcreateUserinit0FunctionAppSyncFunction5CF77F6AFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationcreateCommentauth0FunctionMutationcreateCommentauth0FunctionAppSyncFunctionE6EA011A", + "FunctionId" + ] + }, + { + "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreateCommentDataResolverFnMutationCreateCommentDataResolverFnAppSyncFunctionD019FFE0", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "CommentTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "MutationupdateCommentauth0FunctionMutationupdateCommentauth0FunctionAppSyncFunction4E4C7C30": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "CommentDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateCommentauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateComment.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateComment.auth.1.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "CommentDataSource" + ] + }, + "MutationUpdateCommentDataResolverFnMutationUpdateCommentDataResolverFnAppSyncFunctionB47372B5": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "CommentDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationUpdateCommentDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateComment.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateComment.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "CommentDataSource" + ] + }, + "UpdateCommentResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateComment", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserMutationupdateUserinit0FunctionMutationupdateUserinit0FunctionAppSyncFunction90E2C98AFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationupdateCommentauth0FunctionMutationupdateCommentauth0FunctionAppSyncFunction4E4C7C30", + "FunctionId" + ] + }, + { + "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdateCommentDataResolverFnMutationUpdateCommentDataResolverFnAppSyncFunctionB47372B5", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "CommentTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "MutationdeleteCommentauth0FunctionMutationdeleteCommentauth0FunctionAppSyncFunction268B298A": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "CommentDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeleteCommentauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteComment.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteComment.auth.1.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "CommentDataSource" + ] + }, + "MutationDeleteCommentDataResolverFnMutationDeleteCommentDataResolverFnAppSyncFunctionD661C8CB": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "CommentDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationDeleteCommentDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteComment.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteComment.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "CommentDataSource" + ] + }, + "DeleteCommentResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteComment", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationdeleteCommentauth0FunctionMutationdeleteCommentauth0FunctionAppSyncFunction268B298A", + "FunctionId" + ] + }, + { + "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeleteCommentDataResolverFnMutationDeleteCommentDataResolverFnAppSyncFunctionD661C8CB", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "CommentTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "SubscriptiononCreateCommentauth0FunctionSubscriptiononCreateCommentauth0FunctionAppSyncFunction883537CC": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononCreateCommentauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Subscription.onCreateComment.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "SubscriptiononCreateCommentResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateComment", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononCreateCommentauth0FunctionSubscriptiononCreateCommentauth0FunctionAppSyncFunction883537CC", + "FunctionId" + ] + }, + { + "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId" + }, + { + "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserSubscriptionOnCreateUserDataResolverFnSubscriptionOnCreateUserDataResolverFnAppSyncFunctionCAFEE24EFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + }, + "SubscriptiononUpdateCommentResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateComment", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononCreateCommentauth0FunctionSubscriptiononCreateCommentauth0FunctionAppSyncFunction883537CC", + "FunctionId" + ] + }, + { + "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId" + }, + { + "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserSubscriptionOnCreateUserDataResolverFnSubscriptionOnCreateUserDataResolverFnAppSyncFunctionCAFEE24EFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + }, + "SubscriptiononDeleteCommentResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteComment", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononCreateCommentauth0FunctionSubscriptiononCreateCommentauth0FunctionAppSyncFunction883537CC", + "FunctionId" + ] + }, + { + "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId" + }, + { + "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserSubscriptionOnCreateUserDataResolverFnSubscriptionOnCreateUserDataResolverFnAppSyncFunctionCAFEE24EFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteComment\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + }, + "QueryCommentsByProductIdDataResolverFnQueryCommentsByProductIdDataResolverFnAppSyncFunction51D11782": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "CommentDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryCommentsByProductIdDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.commentsByProductId.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.commentsByProductId.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "CommentDataSource" + ] + }, + "QuerycommentsByProductIdResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "commentsByProductId", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerygetCommentauth0FunctionQuerygetCommentauth0FunctionAppSyncFunction4992FD06", + "FunctionId" + ] + }, + { + "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId" + }, + { + "Fn::GetAtt": [ + "QueryCommentsByProductIdDataResolverFnQueryCommentsByProductIdDataResolverFnAppSyncFunction51D11782", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"commentsByProductId\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "CommentTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + } + }, + "CommentAuthorIdDataResolverFnCommentAuthorIdDataResolverFnAppSyncFunction70FFE37E": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "CommentAuthorIdDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Comment.authorId.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Comment.authorId.res.vtl" + ] + ] + } + } + }, + "CommentauthorIdResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "authorId", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "CommentAuthorIdDataResolverFnCommentAuthorIdDataResolverFnAppSyncFunction70FFE37E", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Comment\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"authorId\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Comment" + } + } + }, + "Outputs": { + "GetAttCommentTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "CommentTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:CommentTable:StreamArn" + ] + ] + } + } + }, + "GetAttCommentTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "CommentTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:CommentTable:Name" + ] + ] + } + } + }, + "GetAttCommentDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "CommentDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:CommentDataSource:Name" + ] + ] + } + } + }, + "transformerrootstackCommentCommentDataSourceA0E54655Name": { + "Value": { + "Fn::GetAtt": [ + "CommentDataSource", + "Name" + ] + } + }, + "transformerrootstackCommentCommentTable5427FDE2Ref": { + "Value": { + "Ref": "CommentTable" + } + } + } +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-ConnectionStack-x.description.txt b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-ConnectionStack-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-ConnectionStack-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-ConnectionStack-x.outputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-ConnectionStack-x.outputs.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-ConnectionStack-x.outputs.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-ConnectionStack-x.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-ConnectionStack-x.parameters.json new file mode 100644 index 00000000000..ac2d7c6cd10 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-ConnectionStack-x.parameters.json @@ -0,0 +1,34 @@ +[ + { + "ParameterKey": "referencetotransformerrootstackunauthRoleName49F3C1FERef", + "ParameterValue": "amplify-productcatalog-x-x-unauthRole" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", + "ParameterValue": "amplify-appsync-files/2904294ac328b706f016848ccf5fa0abe614014d" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "referencetotransformerrootstackCommentNestedStackCommentNestedStackResource199283FBOutputstransformerrootstackCommentCommentTable5427FDE2Ref", + "ParameterValue": "Comment-hscmwhprkbaljmcpavj3dcztrq-x" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", + "ParameterValue": "hscmwhprkbaljmcpavj3dcztrq" + }, + { + "ParameterKey": "referencetotransformerrootstackCommentNestedStackCommentNestedStackResource199283FBOutputstransformerrootstackCommentCommentDataSourceA0E54655Name", + "ParameterValue": "CommentTable" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", + "ParameterValue": "amplify-productcatalog-x-x-deployment" + }, + { + "ParameterKey": "referencetotransformerrootstackauthRoleNameFB872D50Ref", + "ParameterValue": "amplify-productcatalog-x-x-authRole" + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-ConnectionStack-x.template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-ConnectionStack-x.template.json new file mode 100644 index 00000000000..97fa4add3a2 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-ConnectionStack-x.template.json @@ -0,0 +1,165 @@ +{ + "Resources": { + "Productcommentsauth0FunctionProductcommentsauth0FunctionAppSyncFunction815DC611": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "Productcommentsauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Product.comments.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "ProductCommentsDataResolverFnProductCommentsDataResolverFnAppSyncFunction7365B9B6": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackCommentNestedStackCommentNestedStackResource199283FBOutputstransformerrootstackCommentCommentDataSourceA0E54655Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "ProductCommentsDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Product.comments.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Product.comments.res.vtl" + ] + ] + } + } + }, + "ProductcommentsResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "comments", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "Productcommentsauth0FunctionProductcommentsauth0FunctionAppSyncFunction815DC611", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "ProductCommentsDataResolverFnProductCommentsDataResolverFnAppSyncFunction7365B9B6", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Product\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"comments\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackCommentNestedStackCommentNestedStackResource199283FBOutputstransformerrootstackCommentCommentTable5427FDE2Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Product" + } + } + }, + "Parameters": { + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackCommentNestedStackCommentNestedStackResource199283FBOutputstransformerrootstackCommentCommentDataSourceA0E54655Name": { + "Type": "String" + }, + "referencetotransformerrootstackCommentNestedStackCommentNestedStackResource199283FBOutputstransformerrootstackCommentCommentTable5427FDE2Ref": { + "Type": "String" + }, + "referencetotransformerrootstackauthRoleNameFB872D50Ref": { + "Type": "String" + }, + "referencetotransformerrootstackunauthRoleName49F3C1FERef": { + "Type": "String" + } + } +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-CustomResourcesjson-x.description.txt b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-CustomResourcesjson-x.description.txt new file mode 100644 index 00000000000..21e1447423e --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-CustomResourcesjson-x.description.txt @@ -0,0 +1 @@ +An auto-generated nested stack. diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-CustomResourcesjson-x.outputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-CustomResourcesjson-x.outputs.json new file mode 100644 index 00000000000..291e7aad7f7 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-CustomResourcesjson-x.outputs.json @@ -0,0 +1,7 @@ +[ + { + "OutputKey": "EmptyOutput", + "OutputValue": "", + "Description": "An empty output. You may delete this if you have at least one resource above." + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-CustomResourcesjson-x.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-CustomResourcesjson-x.parameters.json new file mode 100644 index 00000000000..4c6bbf11a64 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-CustomResourcesjson-x.parameters.json @@ -0,0 +1,22 @@ +[ + { + "ParameterKey": "S3DeploymentBucket", + "ParameterValue": "amplify-productcatalog-x-x-deployment" + }, + { + "ParameterKey": "AppSyncApiId", + "ParameterValue": "hscmwhprkbaljmcpavj3dcztrq" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "S3DeploymentRootKey", + "ParameterValue": "amplify-appsync-files/2904294ac328b706f016848ccf5fa0abe614014d" + }, + { + "ParameterKey": "AppSyncApiName", + "ParameterValue": "productcatalog" + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-CustomResourcesjson-x.template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-CustomResourcesjson-x.template.json new file mode 100644 index 00000000000..5fe357d6096 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-CustomResourcesjson-x.template.json @@ -0,0 +1,61 @@ +{ + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "An auto-generated nested stack.", + "Metadata": {}, + "Parameters": { + "AppSyncApiId": { + "Type": "String", + "Description": "The id of the AppSync API associated with this project." + }, + "AppSyncApiName": { + "Type": "String", + "Description": "The name of the AppSync API", + "Default": "AppSyncSimpleTransform" + }, + "env": { + "Type": "String", + "Description": "The environment name. e.g. Dev, Test, or Production", + "Default": "NONE" + }, + "S3DeploymentBucket": { + "Type": "String", + "Description": "The S3 bucket containing all deployment assets for the project." + }, + "S3DeploymentRootKey": { + "Type": "String", + "Description": "An S3 key relative to the S3DeploymentBucket that points to the root\nof the deployment directory." + } + }, + "Resources": { + "EmptyResource": { + "Type": "Custom::EmptyResource", + "Condition": "AlwaysFalse" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + } + ] + }, + "AlwaysFalse": { + "Fn::Equals": [ + "true", + "false" + ] + } + }, + "Outputs": { + "EmptyOutput": { + "Description": "An empty output. You may delete this if you have at least one resource above.", + "Value": "" + } + } +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-Product-x.description.txt b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-Product-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-Product-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-Product-x.outputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-Product-x.outputs.json new file mode 100644 index 00000000000..3779de0e801 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-Product-x.outputs.json @@ -0,0 +1,20 @@ +[ + { + "OutputKey": "GetAttProductTableStreamArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Product-hscmwhprkbaljmcpavj3dcztrq-x/stream/2026-04-15T03:53:06.985", + "Description": "Your DynamoDB table StreamArn.", + "ExportName": "hscmwhprkbaljmcpavj3dcztrq:GetAtt:ProductTable:StreamArn" + }, + { + "OutputKey": "GetAttProductTableName", + "OutputValue": "Product-hscmwhprkbaljmcpavj3dcztrq-x", + "Description": "Your DynamoDB table name.", + "ExportName": "hscmwhprkbaljmcpavj3dcztrq:GetAtt:ProductTable:Name" + }, + { + "OutputKey": "GetAttProductDataSourceName", + "OutputValue": "ProductTable", + "Description": "Your model DataSource name.", + "ExportName": "hscmwhprkbaljmcpavj3dcztrq:GetAtt:ProductDataSource:Name" + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-Product-x.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-Product-x.parameters.json new file mode 100644 index 00000000000..a846facd140 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-Product-x.parameters.json @@ -0,0 +1,66 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserSubscriptionOnCreateUserDataResolverFnSubscriptionOnCreateUserDataResolverFnAppSyncFunctionCAFEE24EFunctionId", + "ParameterValue": "qfwkpcbq4fgfjakokec32roplu" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", + "ParameterValue": "amplify-appsync-files/2904294ac328b706f016848ccf5fa0abe614014d" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", + "ParameterValue": "hscmwhprkbaljmcpavj3dcztrq" + }, + { + "ParameterKey": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserMutationcreateUserinit0FunctionMutationcreateUserinit0FunctionAppSyncFunction5CF77F6AFunctionId", + "ParameterValue": "lw2jye7ga5ddlhesqzclrligny" + }, + { + "ParameterKey": "referencetotransformerrootstackunauthRoleName49F3C1FERef", + "ParameterValue": "amplify-productcatalog-x-x-unauthRole" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserMutationupdateUserinit0FunctionMutationupdateUserinit0FunctionAppSyncFunction90E2C98AFunctionId", + "ParameterValue": "x4iwoozno5dlboqsjxv4ol2r7y" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", + "ParameterValue": "amplify-productcatalog-x-x-deployment" + }, + { + "ParameterKey": "referencetotransformerrootstackauthRoleNameFB872D50Ref", + "ParameterValue": "amplify-productcatalog-x-x-authRole" + }, + { + "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", + "ParameterValue": "x" + }, + { + "ParameterKey": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId", + "ParameterValue": "jnj2c6vawvazfpixdbasl5x6be" + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-Product-x.template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-Product-x.template.json new file mode 100644 index 00000000000..b141facbb1b --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-Product-x.template.json @@ -0,0 +1,1373 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackauthRoleNameFB872D50Ref": { + "Type": "String" + }, + "referencetotransformerrootstackunauthRoleName49F3C1FERef": { + "Type": "String" + }, + "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserMutationcreateUserinit0FunctionMutationcreateUserinit0FunctionAppSyncFunction5CF77F6AFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserMutationupdateUserinit0FunctionMutationupdateUserinit0FunctionAppSyncFunction90E2C98AFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserSubscriptionOnCreateUserDataResolverFnSubscriptionOnCreateUserDataResolverFnAppSyncFunctionCAFEE24EFunctionId": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "ProductTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "Product-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Retain" + }, + "ProductIAMRole3DD24A40": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem", + "dynamodb:ConditionCheckItem", + "dynamodb:DescribeTable", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "Product-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "Product-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess" + } + ], + "RoleName": { + "Fn::Join": [ + "", + [ + "ProductIAMRoledb6df0-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "ProductIAMRoleDefaultPolicyA9E80687": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "ProductTable", + "Arn" + ] + }, + { + "Ref": "AWS::NoValue" + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "ProductIAMRoleDefaultPolicyA9E80687", + "Roles": [ + { + "Ref": "ProductIAMRole3DD24A40" + } + ] + } + }, + "ProductDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "ProductTable" + } + }, + "Name": "ProductTable", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "ProductIAMRole3DD24A40", + "Arn" + ] + }, + "Type": "AMAZON_DYNAMODB" + }, + "DependsOn": [ + "ProductIAMRole3DD24A40" + ] + }, + "QuerygetProductauth0FunctionQuerygetProductauth0FunctionAppSyncFunction11A92755": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetProductauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getProduct.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "QueryGetProductDataResolverFnQueryGetProductDataResolverFnAppSyncFunction059C4D73": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProductDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryGetProductDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getProduct.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getProduct.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ProductDataSource" + ] + }, + "GetProductResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getProduct", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerygetProductauth0FunctionQuerygetProductauth0FunctionAppSyncFunction11A92755", + "FunctionId" + ] + }, + { + "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetProductDataResolverFnQueryGetProductDataResolverFnAppSyncFunction059C4D73", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getProduct\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ProductTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + } + }, + "QueryListProductsDataResolverFnQueryListProductsDataResolverFnAppSyncFunction14032624": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProductDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryListProductsDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listProducts.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listProducts.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ProductDataSource" + ] + }, + "ListProductResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listProducts", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerygetProductauth0FunctionQuerygetProductauth0FunctionAppSyncFunction11A92755", + "FunctionId" + ] + }, + { + "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListProductsDataResolverFnQueryListProductsDataResolverFnAppSyncFunction14032624", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listProducts\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ProductTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + } + }, + "MutationcreateProductauth0FunctionMutationcreateProductauth0FunctionAppSyncFunctionD9DCDF6C": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateProductauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createProduct.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "MutationCreateProductDataResolverFnMutationCreateProductDataResolverFnAppSyncFunctionBCF75A20": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProductDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationCreateProductDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createProduct.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createProduct.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ProductDataSource" + ] + }, + "CreateProductResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createProduct", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserMutationcreateUserinit0FunctionMutationcreateUserinit0FunctionAppSyncFunction5CF77F6AFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationcreateProductauth0FunctionMutationcreateProductauth0FunctionAppSyncFunctionD9DCDF6C", + "FunctionId" + ] + }, + { + "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreateProductDataResolverFnMutationCreateProductDataResolverFnAppSyncFunctionBCF75A20", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createProduct\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ProductTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "MutationupdateProductauth0FunctionMutationupdateProductauth0FunctionAppSyncFunction608283E8": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProductDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateProductauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateProduct.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateProduct.auth.1.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ProductDataSource" + ] + }, + "MutationUpdateProductDataResolverFnMutationUpdateProductDataResolverFnAppSyncFunction51653259": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProductDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationUpdateProductDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateProduct.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateProduct.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ProductDataSource" + ] + }, + "UpdateProductResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateProduct", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserMutationupdateUserinit0FunctionMutationupdateUserinit0FunctionAppSyncFunction90E2C98AFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationupdateProductauth0FunctionMutationupdateProductauth0FunctionAppSyncFunction608283E8", + "FunctionId" + ] + }, + { + "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdateProductDataResolverFnMutationUpdateProductDataResolverFnAppSyncFunction51653259", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateProduct\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ProductTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "MutationdeleteProductauth0FunctionMutationdeleteProductauth0FunctionAppSyncFunction2D3EC535": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProductDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeleteProductauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteProduct.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteProduct.auth.1.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ProductDataSource" + ] + }, + "MutationDeleteProductDataResolverFnMutationDeleteProductDataResolverFnAppSyncFunction06F6C758": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProductDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationDeleteProductDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteProduct.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteProduct.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ProductDataSource" + ] + }, + "DeleteProductResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteProduct", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationdeleteProductauth0FunctionMutationdeleteProductauth0FunctionAppSyncFunction2D3EC535", + "FunctionId" + ] + }, + { + "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeleteProductDataResolverFnMutationDeleteProductDataResolverFnAppSyncFunction06F6C758", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteProduct\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ProductTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "SubscriptiononCreateProductauth0FunctionSubscriptiononCreateProductauth0FunctionAppSyncFunction5B0C8398": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononCreateProductauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Subscription.onCreateProduct.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "SubscriptiononCreateProductResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateProduct", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononCreateProductauth0FunctionSubscriptiononCreateProductauth0FunctionAppSyncFunction5B0C8398", + "FunctionId" + ] + }, + { + "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId" + }, + { + "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserSubscriptionOnCreateUserDataResolverFnSubscriptionOnCreateUserDataResolverFnAppSyncFunctionCAFEE24EFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateProduct\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + }, + "SubscriptiononUpdateProductResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateProduct", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononCreateProductauth0FunctionSubscriptiononCreateProductauth0FunctionAppSyncFunction5B0C8398", + "FunctionId" + ] + }, + { + "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId" + }, + { + "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserSubscriptionOnCreateUserDataResolverFnSubscriptionOnCreateUserDataResolverFnAppSyncFunctionCAFEE24EFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateProduct\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + }, + "SubscriptiononDeleteProductResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteProduct", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononCreateProductauth0FunctionSubscriptiononCreateProductauth0FunctionAppSyncFunction5B0C8398", + "FunctionId" + ] + }, + { + "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId" + }, + { + "Ref": "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserSubscriptionOnCreateUserDataResolverFnSubscriptionOnCreateUserDataResolverFnAppSyncFunctionCAFEE24EFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteProduct\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + } + }, + "Outputs": { + "GetAttProductTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "ProductTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ProductTable:StreamArn" + ] + ] + } + } + }, + "GetAttProductTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "ProductTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ProductTable:Name" + ] + ] + } + } + }, + "GetAttProductDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "ProductDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ProductDataSource:Name" + ] + ] + } + } + } + } +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-User-x.description.txt b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-User-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-User-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-User-x.outputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-User-x.outputs.json new file mode 100644 index 00000000000..4530211ff03 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-User-x.outputs.json @@ -0,0 +1,36 @@ +[ + { + "OutputKey": "GetAttUserTableName", + "OutputValue": "User-hscmwhprkbaljmcpavj3dcztrq-x", + "Description": "Your DynamoDB table name.", + "ExportName": "hscmwhprkbaljmcpavj3dcztrq:GetAtt:UserTable:Name" + }, + { + "OutputKey": "transformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId", + "OutputValue": "jnj2c6vawvazfpixdbasl5x6be" + }, + { + "OutputKey": "transformerrootstackUserMutationupdateUserinit0FunctionMutationupdateUserinit0FunctionAppSyncFunction90E2C98AFunctionId", + "OutputValue": "x4iwoozno5dlboqsjxv4ol2r7y" + }, + { + "OutputKey": "transformerrootstackUserSubscriptionOnCreateUserDataResolverFnSubscriptionOnCreateUserDataResolverFnAppSyncFunctionCAFEE24EFunctionId", + "OutputValue": "qfwkpcbq4fgfjakokec32roplu" + }, + { + "OutputKey": "GetAttUserDataSourceName", + "OutputValue": "UserTable", + "Description": "Your model DataSource name.", + "ExportName": "hscmwhprkbaljmcpavj3dcztrq:GetAtt:UserDataSource:Name" + }, + { + "OutputKey": "GetAttUserTableStreamArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/User-hscmwhprkbaljmcpavj3dcztrq-x/stream/2026-04-15T03:52:18.290", + "Description": "Your DynamoDB table StreamArn.", + "ExportName": "hscmwhprkbaljmcpavj3dcztrq:GetAtt:UserTable:StreamArn" + }, + { + "OutputKey": "transformerrootstackUserMutationcreateUserinit0FunctionMutationcreateUserinit0FunctionAppSyncFunction5CF77F6AFunctionId", + "OutputValue": "lw2jye7ga5ddlhesqzclrligny" + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-User-x.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-User-x.parameters.json new file mode 100644 index 00000000000..558daeee02f --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-User-x.parameters.json @@ -0,0 +1,50 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetotransformerrootstackunauthRoleName49F3C1FERef", + "ParameterValue": "amplify-productcatalog-x-x-unauthRole" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", + "ParameterValue": "amplify-appsync-files/2904294ac328b706f016848ccf5fa0abe614014d" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "false" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", + "ParameterValue": "hscmwhprkbaljmcpavj3dcztrq" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", + "ParameterValue": "amplify-productcatalog-x-x-deployment" + }, + { + "ParameterKey": "referencetotransformerrootstackauthRoleNameFB872D50Ref", + "ParameterValue": "amplify-productcatalog-x-x-authRole" + }, + { + "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", + "ParameterValue": "x" + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-User-x.template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-User-x.template.json new file mode 100644 index 00000000000..bf02f362e29 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x-User-x.template.json @@ -0,0 +1,1662 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackauthRoleNameFB872D50Ref": { + "Type": "String" + }, + "referencetotransformerrootstackunauthRoleName49F3C1FERef": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "UserTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "User-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Retain" + }, + "UserIAMRole93CEE926": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem", + "dynamodb:ConditionCheckItem", + "dynamodb:DescribeTable", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "User-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "User-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess" + } + ], + "RoleName": { + "Fn::Join": [ + "", + [ + "UserIAMRole0e5381-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "UserIAMRoleDefaultPolicyCDAB2AF7": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "UserTable", + "Arn" + ] + }, + { + "Ref": "AWS::NoValue" + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "UserIAMRoleDefaultPolicyCDAB2AF7", + "Roles": [ + { + "Ref": "UserIAMRole93CEE926" + } + ] + } + }, + "UserDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "UserTable" + } + }, + "Name": "UserTable", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "UserIAMRole93CEE926", + "Arn" + ] + }, + "Type": "AMAZON_DYNAMODB" + }, + "DependsOn": [ + "UserIAMRole93CEE926" + ] + }, + "QuerygetUserauth0FunctionQuerygetUserauth0FunctionAppSyncFunction9E6250B0": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetUserauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getUser.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "QuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction2792AC60": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetUserpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getUser.postAuth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "QueryGetUserDataResolverFnQueryGetUserDataResolverFnAppSyncFunction36A3E4CF": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "UserDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryGetUserDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getUser.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getUser.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "UserDataSource" + ] + }, + "GetUserResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getUser", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerygetUserauth0FunctionQuerygetUserauth0FunctionAppSyncFunction9E6250B0", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction2792AC60", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryGetUserDataResolverFnQueryGetUserDataResolverFnAppSyncFunction36A3E4CF", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getUser\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "UserTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + } + }, + "QueryListUsersDataResolverFnQueryListUsersDataResolverFnAppSyncFunction83574EBA": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "UserDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryListUsersDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listUsers.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listUsers.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "UserDataSource" + ] + }, + "ListUserResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listUsers", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerygetUserauth0FunctionQuerygetUserauth0FunctionAppSyncFunction9E6250B0", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction2792AC60", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryListUsersDataResolverFnQueryListUsersDataResolverFnAppSyncFunction83574EBA", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listUsers\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "UserTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + } + }, + "MutationcreateUserinit0FunctionMutationcreateUserinit0FunctionAppSyncFunctionEDF87EC6": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateUserinit0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createUser.init.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "MutationcreateUserauth0FunctionMutationcreateUserauth0FunctionAppSyncFunction30556A6C": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateUserauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createUser.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "MutationCreateUserDataResolverFnMutationCreateUserDataResolverFnAppSyncFunction22E7974E": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "UserDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationCreateUserDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createUser.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createUser.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "UserDataSource" + ] + }, + "CreateUserResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createUser", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationcreateUserinit0FunctionMutationcreateUserinit0FunctionAppSyncFunctionEDF87EC6", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationcreateUserauth0FunctionMutationcreateUserauth0FunctionAppSyncFunction30556A6C", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction2792AC60", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationCreateUserDataResolverFnMutationCreateUserDataResolverFnAppSyncFunction22E7974E", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createUser\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "UserTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "MutationupdateUserinit0FunctionMutationupdateUserinit0FunctionAppSyncFunctionC2E8A924": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateUserinit0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateUser.init.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "MutationupdateUserauth0FunctionMutationupdateUserauth0FunctionAppSyncFunctionDF95DA65": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "UserDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateUserauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateUser.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateUser.auth.1.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "UserDataSource" + ] + }, + "MutationUpdateUserDataResolverFnMutationUpdateUserDataResolverFnAppSyncFunction6ADF3910": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "UserDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationUpdateUserDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateUser.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateUser.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "UserDataSource" + ] + }, + "UpdateUserResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateUser", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationupdateUserinit0FunctionMutationupdateUserinit0FunctionAppSyncFunctionC2E8A924", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationupdateUserauth0FunctionMutationupdateUserauth0FunctionAppSyncFunctionDF95DA65", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction2792AC60", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationUpdateUserDataResolverFnMutationUpdateUserDataResolverFnAppSyncFunction6ADF3910", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateUser\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "UserTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "MutationdeleteUserauth0FunctionMutationdeleteUserauth0FunctionAppSyncFunction9B900ACD": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "UserDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeleteUserauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteUser.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteUser.auth.1.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "UserDataSource" + ] + }, + "MutationDeleteUserDataResolverFnMutationDeleteUserDataResolverFnAppSyncFunction0B4F366A": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "UserDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationDeleteUserDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteUser.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteUser.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "UserDataSource" + ] + }, + "DeleteUserResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteUser", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationdeleteUserauth0FunctionMutationdeleteUserauth0FunctionAppSyncFunction9B900ACD", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction2792AC60", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationDeleteUserDataResolverFnMutationDeleteUserDataResolverFnAppSyncFunction0B4F366A", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteUser\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "UserTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "SubscriptiononCreateUserauth0FunctionSubscriptiononCreateUserauth0FunctionAppSyncFunctionE9B4721A": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononCreateUserauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Subscription.onCreateUser.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "SubscriptionOnCreateUserDataResolverFnSubscriptionOnCreateUserDataResolverFnAppSyncFunction23B2F1B9": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnCreateUserDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Subscription.onCreateUser.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Subscription.onCreateUser.res.vtl" + ] + ] + } + } + }, + "SubscriptiononCreateUserResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateUser", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononCreateUserauth0FunctionSubscriptiononCreateUserauth0FunctionAppSyncFunctionE9B4721A", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction2792AC60", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnCreateUserDataResolverFnSubscriptionOnCreateUserDataResolverFnAppSyncFunction23B2F1B9", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateUser\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + }, + "SubscriptiononUpdateUserResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateUser", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononCreateUserauth0FunctionSubscriptiononCreateUserauth0FunctionAppSyncFunctionE9B4721A", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction2792AC60", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnCreateUserDataResolverFnSubscriptionOnCreateUserDataResolverFnAppSyncFunction23B2F1B9", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateUser\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + }, + "SubscriptiononDeleteUserResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteUser", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononCreateUserauth0FunctionSubscriptiononCreateUserauth0FunctionAppSyncFunctionE9B4721A", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction2792AC60", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnCreateUserDataResolverFnSubscriptionOnCreateUserDataResolverFnAppSyncFunction23B2F1B9", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteUser\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + }, + "UserIdDataResolverFnUserIdDataResolverFnAppSyncFunction9936DA1E": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "UserIdDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/User.id.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/User.id.res.vtl" + ] + ] + } + } + }, + "UseridResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "id", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "UserIdDataResolverFnUserIdDataResolverFnAppSyncFunction9936DA1E", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"User\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"id\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackauthRoleNameFB872D50Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetotransformerrootstackunauthRoleName49F3C1FERef" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:1e75f5e8-00d2-4619-8a36-ba53a08d35c1\"))\n$util.qr($ctx.stash.put(\"adminRoles\", [\"S3Trigger1ef46783-x\",\"lowstockproducts-x\",\"amplify-productcat\"]))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "User" + } + } + }, + "Outputs": { + "GetAttUserTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "UserTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:UserTable:StreamArn" + ] + ] + } + } + }, + "GetAttUserTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "UserTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:UserTable:Name" + ] + ] + } + } + }, + "GetAttUserDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "UserDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:UserDataSource:Name" + ] + ] + } + } + }, + "transformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId": { + "Value": { + "Fn::GetAtt": [ + "QuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction2792AC60", + "FunctionId" + ] + } + }, + "transformerrootstackUserMutationcreateUserinit0FunctionMutationcreateUserinit0FunctionAppSyncFunction5CF77F6AFunctionId": { + "Value": { + "Fn::GetAtt": [ + "MutationcreateUserinit0FunctionMutationcreateUserinit0FunctionAppSyncFunctionEDF87EC6", + "FunctionId" + ] + } + }, + "transformerrootstackUserMutationupdateUserinit0FunctionMutationupdateUserinit0FunctionAppSyncFunction90E2C98AFunctionId": { + "Value": { + "Fn::GetAtt": [ + "MutationupdateUserinit0FunctionMutationupdateUserinit0FunctionAppSyncFunctionC2E8A924", + "FunctionId" + ] + } + }, + "transformerrootstackUserSubscriptionOnCreateUserDataResolverFnSubscriptionOnCreateUserDataResolverFnAppSyncFunctionCAFEE24EFunctionId": { + "Value": { + "Fn::GetAtt": [ + "SubscriptionOnCreateUserDataResolverFnSubscriptionOnCreateUserDataResolverFnAppSyncFunction23B2F1B9", + "FunctionId" + ] + } + } + } +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x.description.txt b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x.description.txt new file mode 100644 index 00000000000..f9e13281dee --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"api-AppSync","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x.outputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x.outputs.json new file mode 100644 index 00000000000..a5ce604a7a1 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x.outputs.json @@ -0,0 +1,20 @@ +[ + { + "OutputKey": "GraphQLAPIIdOutput", + "OutputValue": "hscmwhprkbaljmcpavj3dcztrq", + "Description": "Your GraphQL API ID.", + "ExportName": "amplify-productcatalog-x-x-apiproductcatalog-x:GraphQLApiId" + }, + { + "OutputKey": "GraphQLAPIEndpointOutput", + "OutputValue": "https://nmunek64lresdpc5z6pnhpsbh4.appsync-api.us-east-1.amazonaws.com/graphql", + "Description": "Your GraphQL API endpoint.", + "ExportName": "amplify-productcatalog-x-x-apiproductcatalog-x:GraphQLApiEndpoint" + }, + { + "OutputKey": "GraphQLAPIKeyOutput", + "OutputValue": "da2-fakeapikey00000000000000", + "Description": "Your GraphQL API ID.", + "ExportName": "amplify-productcatalog-x-x-apiproductcatalog-x:GraphQLApiKey" + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x.parameters.json new file mode 100644 index 00000000000..474c5fc1493 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x.parameters.json @@ -0,0 +1,50 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "authRoleName", + "ParameterValue": "amplify-productcatalog-x-x-authRole" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "false" + }, + { + "ParameterKey": "unauthRoleName", + "ParameterValue": "amplify-productcatalog-x-x-unauthRole" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "S3DeploymentBucket", + "ParameterValue": "amplify-productcatalog-x-x-deployment" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "S3DeploymentRootKey", + "ParameterValue": "amplify-appsync-files/2904294ac328b706f016848ccf5fa0abe614014d" + }, + { + "ParameterKey": "AppSyncApiName", + "ParameterValue": "productcatalog" + }, + { + "ParameterKey": "AuthCognitoUserPoolId", + "ParameterValue": "us-east-1_HpX9WE297" + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x.template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x.template.json new file mode 100644 index 00000000000..24efba395fd --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-apiproductcatalog-x.template.json @@ -0,0 +1,1153 @@ +{ + "Parameters": { + "env": { + "Type": "String", + "Default": "NONE" + }, + "AppSyncApiName": { + "Type": "String", + "Default": "AppSyncSimpleTransform" + }, + "authRoleName": { + "Type": "String" + }, + "unauthRoleName": { + "Type": "String" + }, + "AuthCognitoUserPoolId": { + "Type": "String" + }, + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "S3DeploymentBucket": { + "Type": "String", + "Description": "An S3 Bucket name where assets are deployed" + }, + "S3DeploymentRootKey": { + "Type": "String", + "Description": "An S3 key relative to the S3DeploymentBucket that points to the root of the deployment directory." + } + }, + "Resources": { + "GraphQLAPI": { + "Type": "AWS::AppSync::GraphQLApi", + "Properties": { + "AdditionalAuthenticationProviders": [ + { + "AuthenticationType": "API_KEY" + }, + { + "AuthenticationType": "AMAZON_COGNITO_USER_POOLS", + "UserPoolConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "UserPoolId": { + "Ref": "AuthCognitoUserPoolId" + } + } + } + ], + "AuthenticationType": "AWS_IAM", + "Name": { + "Fn::Join": [ + "", + [ + { + "Ref": "AppSyncApiName" + }, + "-", + { + "Ref": "env" + } + ] + ] + } + } + }, + "GraphQLAPITransformerSchema3CB2AE18": { + "Type": "AWS::AppSync::GraphQLSchema", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "DefinitionS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/schema.graphql" + ] + ] + } + } + }, + "GraphQLAPIDefaultApiKey215A6DD7": { + "Type": "AWS::AppSync::ApiKey", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "Description": "graphqlapi", + "Expires": 1776829873 + } + }, + "GraphQLAPINONEDS95A13CF0": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "Name": "NONE_DS", + "Type": "NONE" + } + }, + "User": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackauthRoleNameFB872D50Ref": { + "Ref": "authRoleName" + }, + "referencetotransformerrootstackunauthRoleName49F3C1FERef": { + "Ref": "unauthRoleName" + } + }, + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/User.json" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "Product": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId": { + "Fn::GetAtt": [ + "User", + "Outputs.transformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId" + ] + }, + "referencetotransformerrootstackauthRoleNameFB872D50Ref": { + "Ref": "authRoleName" + }, + "referencetotransformerrootstackunauthRoleName49F3C1FERef": { + "Ref": "unauthRoleName" + }, + "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserMutationcreateUserinit0FunctionMutationcreateUserinit0FunctionAppSyncFunction5CF77F6AFunctionId": { + "Fn::GetAtt": [ + "User", + "Outputs.transformerrootstackUserMutationcreateUserinit0FunctionMutationcreateUserinit0FunctionAppSyncFunction5CF77F6AFunctionId" + ] + }, + "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserMutationupdateUserinit0FunctionMutationupdateUserinit0FunctionAppSyncFunction90E2C98AFunctionId": { + "Fn::GetAtt": [ + "User", + "Outputs.transformerrootstackUserMutationupdateUserinit0FunctionMutationupdateUserinit0FunctionAppSyncFunction90E2C98AFunctionId" + ] + }, + "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserSubscriptionOnCreateUserDataResolverFnSubscriptionOnCreateUserDataResolverFnAppSyncFunctionCAFEE24EFunctionId": { + "Fn::GetAtt": [ + "User", + "Outputs.transformerrootstackUserSubscriptionOnCreateUserDataResolverFnSubscriptionOnCreateUserDataResolverFnAppSyncFunctionCAFEE24EFunctionId" + ] + } + }, + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/Product.json" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "Comment": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId": { + "Fn::GetAtt": [ + "User", + "Outputs.transformerrootstackUserQuerygetUserpostAuth0FunctionQuerygetUserpostAuth0FunctionAppSyncFunction083DF5E5FunctionId" + ] + }, + "referencetotransformerrootstackauthRoleNameFB872D50Ref": { + "Ref": "authRoleName" + }, + "referencetotransformerrootstackunauthRoleName49F3C1FERef": { + "Ref": "unauthRoleName" + }, + "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserMutationcreateUserinit0FunctionMutationcreateUserinit0FunctionAppSyncFunction5CF77F6AFunctionId": { + "Fn::GetAtt": [ + "User", + "Outputs.transformerrootstackUserMutationcreateUserinit0FunctionMutationcreateUserinit0FunctionAppSyncFunction5CF77F6AFunctionId" + ] + }, + "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserMutationupdateUserinit0FunctionMutationupdateUserinit0FunctionAppSyncFunction90E2C98AFunctionId": { + "Fn::GetAtt": [ + "User", + "Outputs.transformerrootstackUserMutationupdateUserinit0FunctionMutationupdateUserinit0FunctionAppSyncFunction90E2C98AFunctionId" + ] + }, + "referencetotransformerrootstackUserNestedStackUserNestedStackResource01084C14OutputstransformerrootstackUserSubscriptionOnCreateUserDataResolverFnSubscriptionOnCreateUserDataResolverFnAppSyncFunctionCAFEE24EFunctionId": { + "Fn::GetAtt": [ + "User", + "Outputs.transformerrootstackUserSubscriptionOnCreateUserDataResolverFnSubscriptionOnCreateUserDataResolverFnAppSyncFunctionCAFEE24EFunctionId" + ] + } + }, + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/Comment.json" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "FunctionDirectiveStack": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackauthRoleNameFB872D50Ref": { + "Ref": "authRoleName" + }, + "referencetotransformerrootstackunauthRoleName49F3C1FERef": { + "Ref": "unauthRoleName" + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + } + }, + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/FunctionDirectiveStack.json" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "ConnectionStack": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackCommentNestedStackCommentNestedStackResource199283FBOutputstransformerrootstackCommentCommentDataSourceA0E54655Name": { + "Fn::GetAtt": [ + "Comment", + "Outputs.transformerrootstackCommentCommentDataSourceA0E54655Name" + ] + }, + "referencetotransformerrootstackCommentNestedStackCommentNestedStackResource199283FBOutputstransformerrootstackCommentCommentTable5427FDE2Ref": { + "Fn::GetAtt": [ + "Comment", + "Outputs.transformerrootstackCommentCommentTable5427FDE2Ref" + ] + }, + "referencetotransformerrootstackauthRoleNameFB872D50Ref": { + "Ref": "authRoleName" + }, + "referencetotransformerrootstackunauthRoleName49F3C1FERef": { + "Ref": "unauthRoleName" + } + }, + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/ConnectionStack.json" + ] + ] + } + }, + "DependsOn": [ + "Comment", + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "AuthRolePolicy01921FC820": { + "Type": "AWS::IAM::ManagedPolicy", + "Properties": { + "Description": "", + "Path": "/", + "PolicyDocument": { + "Statement": [ + { + "Action": "appsync:GraphQL", + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/*", + { + "apiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "typeName": "User" + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/*", + { + "apiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "typeName": "Product" + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/*", + { + "apiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "typeName": "Comment" + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "typeName": "Query", + "fieldName": "checkLowStock" + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "typeName": "Query", + "fieldName": "getUser" + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "typeName": "Query", + "fieldName": "listUsers" + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "typeName": "Mutation", + "fieldName": "createUser" + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "typeName": "Mutation", + "fieldName": "updateUser" + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "typeName": "Mutation", + "fieldName": "deleteUser" + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "typeName": "Subscription", + "fieldName": "onCreateUser" + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "typeName": "Subscription", + "fieldName": "onUpdateUser" + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "typeName": "Subscription", + "fieldName": "onDeleteUser" + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "typeName": "Query", + "fieldName": "getProduct" + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "typeName": "Query", + "fieldName": "listProducts" + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "typeName": "Mutation", + "fieldName": "createProduct" + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "typeName": "Mutation", + "fieldName": "updateProduct" + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "typeName": "Mutation", + "fieldName": "deleteProduct" + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "typeName": "Subscription", + "fieldName": "onCreateProduct" + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "typeName": "Subscription", + "fieldName": "onUpdateProduct" + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "typeName": "Subscription", + "fieldName": "onDeleteProduct" + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/*", + { + "apiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "typeName": "ModelCommentConnection" + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "typeName": "Query", + "fieldName": "getComment" + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "typeName": "Query", + "fieldName": "listComments" + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "typeName": "Mutation", + "fieldName": "createComment" + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "typeName": "Mutation", + "fieldName": "updateComment" + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "typeName": "Mutation", + "fieldName": "deleteComment" + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "typeName": "Query", + "fieldName": "commentsByProductId" + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "typeName": "Subscription", + "fieldName": "onCreateComment" + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "typeName": "Subscription", + "fieldName": "onUpdateComment" + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:appsync:${AWS::Region}:${AWS::AccountId}:apis/${apiId}/types/${typeName}/fields/${fieldName}", + { + "apiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "typeName": "Subscription", + "fieldName": "onDeleteComment" + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "Roles": [ + { + "Ref": "authRoleName" + } + ] + } + }, + "CustomResourcesjson": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "AppSyncApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "AppSyncApiName": { + "Ref": "AppSyncApiName" + }, + "env": { + "Ref": "env" + }, + "S3DeploymentBucket": { + "Ref": "S3DeploymentBucket" + }, + "S3DeploymentRootKey": { + "Ref": "S3DeploymentRootKey" + } + }, + "TemplateURL": { + "Fn::Join": [ + "/", + [ + "https://s3.amazonaws.com", + { + "Ref": "S3DeploymentBucket" + }, + { + "Ref": "S3DeploymentRootKey" + }, + "stacks", + "CustomResources.json" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPI", + "GraphQLAPITransformerSchema3CB2AE18", + "User", + "Product", + "Comment", + "FunctionDirectiveStack", + "ConnectionStack" + ] + } + }, + "Outputs": { + "GraphQLAPIKeyOutput": { + "Description": "Your GraphQL API ID.", + "Value": { + "Fn::GetAtt": [ + "GraphQLAPIDefaultApiKey215A6DD7", + "ApiKey" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "AWS::StackName" + }, + "GraphQLApiKey" + ] + ] + } + } + }, + "GraphQLAPIIdOutput": { + "Description": "Your GraphQL API ID.", + "Value": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "AWS::StackName" + }, + "GraphQLApiId" + ] + ] + } + } + }, + "GraphQLAPIEndpointOutput": { + "Description": "Your GraphQL API endpoint.", + "Value": { + "Fn::GetAtt": [ + "GraphQLAPI", + "GraphQLUrl" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "AWS::StackName" + }, + "GraphQLApiEndpoint" + ] + ] + } + } + } + }, + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-authproductcatalog90174ac4-x.description.txt b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-authproductcatalog90174ac4-x.description.txt new file mode 100644 index 00000000000..348d1236678 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-authproductcatalog90174ac4-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"auth-Cognito","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-authproductcatalog90174ac4-x.outputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-authproductcatalog90174ac4-x.outputs.json new file mode 100644 index 00000000000..aba8e0decc9 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-authproductcatalog90174ac4-x.outputs.json @@ -0,0 +1,35 @@ +[ + { + "OutputKey": "UserPoolId", + "OutputValue": "us-east-1_HpX9WE297", + "Description": "Id for the user pool" + }, + { + "OutputKey": "AppClientIDWeb", + "OutputValue": "5t4ot0q04ialfrcrbs42ja7pul", + "Description": "The user pool app client id for web" + }, + { + "OutputKey": "AppClientID", + "OutputValue": "4kaqq4k3inp7kumdv6bqelrm7", + "Description": "The user pool app client id" + }, + { + "OutputKey": "IdentityPoolId", + "OutputValue": "us-east-1:a3f1cc1e-f560-4202-ba02-4c435dec114d", + "Description": "Id for the identity pool" + }, + { + "OutputKey": "UserPoolArn", + "OutputValue": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_HpX9WE297", + "Description": "Arn for the user pool" + }, + { + "OutputKey": "IdentityPoolName", + "OutputValue": "productcatalog90174ac4_identitypool_90174ac4__x" + }, + { + "OutputKey": "UserPoolName", + "OutputValue": "productcatalog90174ac4_userpool_90174ac4" + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-authproductcatalog90174ac4-x.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-authproductcatalog90174ac4-x.parameters.json new file mode 100644 index 00000000000..5c0a9bc4f77 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-authproductcatalog90174ac4-x.parameters.json @@ -0,0 +1,146 @@ +[ + { + "ParameterKey": "usernameAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "authRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-productcatalog-x-x-authRole" + }, + { + "ParameterKey": "autoVerifiedAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "allowUnauthenticatedIdentities", + "ParameterValue": "false" + }, + { + "ParameterKey": "smsVerificationMessage", + "ParameterValue": "Your verification code is {####}" + }, + { + "ParameterKey": "userpoolClientReadAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "breakCircularDependency", + "ParameterValue": "true" + }, + { + "ParameterKey": "mfaTypes", + "ParameterValue": "SMS Text Message" + }, + { + "ParameterKey": "emailVerificationSubject", + "ParameterValue": "Your verification code" + }, + { + "ParameterKey": "sharedId", + "ParameterValue": "90174ac4" + }, + { + "ParameterKey": "useDefault", + "ParameterValue": "default" + }, + { + "ParameterKey": "userpoolClientGenerateSecret", + "ParameterValue": "false" + }, + { + "ParameterKey": "mfaConfiguration", + "ParameterValue": "OFF" + }, + { + "ParameterKey": "identityPoolName", + "ParameterValue": "productcatalog90174ac4_identitypool_90174ac4" + }, + { + "ParameterKey": "userPoolGroupList", + "ParameterValue": "" + }, + { + "ParameterKey": "authSelections", + "ParameterValue": "identityPoolAndUserPool" + }, + { + "ParameterKey": "resourceNameTruncated", + "ParameterValue": "produc90174ac4" + }, + { + "ParameterKey": "smsAuthenticationMessage", + "ParameterValue": "Your authentication code is {####}" + }, + { + "ParameterKey": "passwordPolicyMinLength", + "ParameterValue": "8" + }, + { + "ParameterKey": "userPoolName", + "ParameterValue": "productcatalog90174ac4_userpool_90174ac4" + }, + { + "ParameterKey": "userpoolClientWriteAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "dependsOn", + "ParameterValue": "" + }, + { + "ParameterKey": "useEnabledMfas", + "ParameterValue": "true" + }, + { + "ParameterKey": "usernameCaseSensitive", + "ParameterValue": "false" + }, + { + "ParameterKey": "resourceName", + "ParameterValue": "productcatalog90174ac4" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "serviceName", + "ParameterValue": "Cognito" + }, + { + "ParameterKey": "emailVerificationMessage", + "ParameterValue": "Your verification code is {####}" + }, + { + "ParameterKey": "userpoolClientRefreshTokenValidity", + "ParameterValue": "30" + }, + { + "ParameterKey": "userpoolClientSetAttributes", + "ParameterValue": "false" + }, + { + "ParameterKey": "unauthRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-productcatalog-x-x-unauthRole" + }, + { + "ParameterKey": "requiredAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "passwordPolicyCharacters", + "ParameterValue": "" + }, + { + "ParameterKey": "aliasAttributes", + "ParameterValue": "" + }, + { + "ParameterKey": "userpoolClientLambdaRole", + "ParameterValue": "produc90174ac4_userpoolclient_lambda_role" + }, + { + "ParameterKey": "defaultPasswordPolicy", + "ParameterValue": "false" + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-authproductcatalog90174ac4-x.template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-authproductcatalog90174ac4-x.template.json new file mode 100644 index 00000000000..7f83b2af8b3 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-authproductcatalog90174ac4-x.template.json @@ -0,0 +1,413 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "identityPoolName": { + "Type": "String" + }, + "allowUnauthenticatedIdentities": { + "Type": "String" + }, + "resourceNameTruncated": { + "Type": "String" + }, + "userPoolName": { + "Type": "String" + }, + "autoVerifiedAttributes": { + "Type": "CommaDelimitedList" + }, + "mfaConfiguration": { + "Type": "String" + }, + "mfaTypes": { + "Type": "CommaDelimitedList" + }, + "smsAuthenticationMessage": { + "Type": "String" + }, + "smsVerificationMessage": { + "Type": "String" + }, + "emailVerificationSubject": { + "Type": "String" + }, + "emailVerificationMessage": { + "Type": "String" + }, + "defaultPasswordPolicy": { + "Type": "String" + }, + "passwordPolicyMinLength": { + "Type": "String" + }, + "passwordPolicyCharacters": { + "Type": "CommaDelimitedList" + }, + "requiredAttributes": { + "Type": "CommaDelimitedList" + }, + "aliasAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientGenerateSecret": { + "Type": "String" + }, + "userpoolClientRefreshTokenValidity": { + "Type": "String" + }, + "userpoolClientWriteAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientReadAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientLambdaRole": { + "Type": "String" + }, + "userpoolClientSetAttributes": { + "Type": "String" + }, + "sharedId": { + "Type": "String" + }, + "resourceName": { + "Type": "String" + }, + "authSelections": { + "Type": "String" + }, + "useDefault": { + "Type": "String" + }, + "usernameAttributes": { + "Type": "CommaDelimitedList" + }, + "userPoolGroupList": { + "Type": "CommaDelimitedList" + }, + "serviceName": { + "Type": "String" + }, + "usernameCaseSensitive": { + "Type": "String" + }, + "useEnabledMfas": { + "Type": "String" + }, + "authRoleArn": { + "Type": "String" + }, + "unauthRoleArn": { + "Type": "String" + }, + "breakCircularDependency": { + "Type": "String" + }, + "dependsOn": { + "Type": "CommaDelimitedList" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + } + }, + "Resources": { + "UserPool": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": { + "Ref": "emailVerificationMessage" + }, + "EmailVerificationSubject": { + "Ref": "emailVerificationSubject" + }, + "MfaConfiguration": { + "Ref": "mfaConfiguration" + }, + "Policies": { + "PasswordPolicy": { + "MinimumLength": { + "Ref": "passwordPolicyMinLength" + }, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + { + "Ref": "userPoolName" + }, + { + "Fn::Join": [ + "", + [ + { + "Ref": "userPoolName" + }, + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "UsernameAttributes": { + "Ref": "usernameAttributes" + }, + "UsernameConfiguration": { + "CaseSensitive": false + } + } + }, + "UserPoolClientWeb": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "produc90174ac4_app_clientWeb", + "RefreshTokenValidity": { + "Ref": "userpoolClientRefreshTokenValidity" + }, + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": { + "Ref": "UserPool" + } + }, + "DependsOn": [ + "UserPool" + ] + }, + "UserPoolClient": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "produc90174ac4_app_client", + "GenerateSecret": { + "Ref": "userpoolClientGenerateSecret" + }, + "RefreshTokenValidity": { + "Ref": "userpoolClientRefreshTokenValidity" + }, + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": { + "Ref": "UserPool" + } + }, + "DependsOn": [ + "UserPool" + ] + }, + "UserPoolClientRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + }, + "Action": "sts:AssumeRole" + } + ] + }, + "RoleName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + { + "Ref": "userpoolClientLambdaRole" + }, + { + "Fn::Join": [ + "", + [ + "upClientLambdaRole90174ac4", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + { + "Ref": "AWS::StackName" + } + ] + } + ] + }, + "-", + { + "Ref": "env" + } + ] + ] + } + ] + } + } + }, + "IdentityPool": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": { + "Ref": "allowUnauthenticatedIdentities" + }, + "CognitoIdentityProviders": [ + { + "ClientId": { + "Ref": "UserPoolClient" + }, + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": { + "Ref": "UserPool" + } + } + ] + } + }, + { + "ClientId": { + "Ref": "UserPoolClientWeb" + }, + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": { + "Ref": "UserPool" + } + } + ] + } + } + ], + "IdentityPoolName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "productcatalog90174ac4_identitypool_90174ac4", + { + "Fn::Join": [ + "", + [ + "productcatalog90174ac4_identitypool_90174ac4__", + { + "Ref": "env" + } + ] + ] + } + ] + } + } + }, + "IdentityPoolRoleMap": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": { + "Ref": "IdentityPool" + }, + "Roles": { + "unauthenticated": { + "Ref": "unauthRoleArn" + }, + "authenticated": { + "Ref": "authRoleArn" + } + } + }, + "DependsOn": [ + "IdentityPool" + ] + } + }, + "Outputs": { + "IdentityPoolId": { + "Description": "Id for the identity pool", + "Value": { + "Ref": "IdentityPool" + } + }, + "IdentityPoolName": { + "Value": { + "Fn::GetAtt": [ + "IdentityPool", + "Name" + ] + } + }, + "UserPoolId": { + "Description": "Id for the user pool", + "Value": { + "Ref": "UserPool" + } + }, + "UserPoolArn": { + "Description": "Arn for the user pool", + "Value": { + "Fn::GetAtt": [ + "UserPool", + "Arn" + ] + } + }, + "UserPoolName": { + "Value": { + "Ref": "userPoolName" + } + }, + "AppClientIDWeb": { + "Description": "The user pool app client id for web", + "Value": { + "Ref": "UserPoolClientWeb" + } + }, + "AppClientID": { + "Description": "The user pool app client id", + "Value": { + "Ref": "UserPoolClient" + } + } + } +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-functionS3Trigger1ef46783-x.description.txt b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-functionS3Trigger1ef46783-x.description.txt new file mode 100644 index 00000000000..6cc2b5048c0 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-functionS3Trigger1ef46783-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"function-Lambda","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-functionS3Trigger1ef46783-x.outputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-functionS3Trigger1ef46783-x.outputs.json new file mode 100644 index 00000000000..88f84bf42c9 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-functionS3Trigger1ef46783-x.outputs.json @@ -0,0 +1,22 @@ +[ + { + "OutputKey": "LambdaExecutionRoleArn", + "OutputValue": "arn:aws:iam::123456789012:role/S3Trigger1ef46783LambdaRole1ef46783-x" + }, + { + "OutputKey": "Region", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "Arn", + "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:S3Trigger1ef46783-x" + }, + { + "OutputKey": "Name", + "OutputValue": "S3Trigger1ef46783-x" + }, + { + "OutputKey": "LambdaExecutionRole", + "OutputValue": "S3Trigger1ef46783LambdaRole1ef46783-x" + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-functionS3Trigger1ef46783-x.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-functionS3Trigger1ef46783-x.parameters.json new file mode 100644 index 00000000000..b23da319ed9 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-functionS3Trigger1ef46783-x.parameters.json @@ -0,0 +1,26 @@ +[ + { + "ParameterKey": "s3Key", + "ParameterValue": "amplify-builds/S3Trigger1ef46783-4b4665534739746b326e-build.zip" + }, + { + "ParameterKey": "deploymentBucketName", + "ParameterValue": "amplify-productcatalog-x-x-deployment" + }, + { + "ParameterKey": "apiproductcatalogGraphQLAPIKeyOutput", + "ParameterValue": "da2-fakeapikey00000000000000" + }, + { + "ParameterKey": "apiproductcatalogGraphQLAPIEndpointOutput", + "ParameterValue": "https://nmunek64lresdpc5z6pnhpsbh4.appsync-api.us-east-1.amazonaws.com/graphql" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "apiproductcatalogGraphQLAPIIdOutput", + "ParameterValue": "hscmwhprkbaljmcpavj3dcztrq" + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-functionS3Trigger1ef46783-x.template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-functionS3Trigger1ef46783-x.template.json new file mode 100644 index 00000000000..a0a9c061c5f --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-functionS3Trigger1ef46783-x.template.json @@ -0,0 +1,264 @@ +{ + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Parameters": { + "env": { + "Type": "String" + }, + "apiproductcatalogGraphQLAPIIdOutput": { + "Type": "String", + "Default": "apiproductcatalogGraphQLAPIIdOutput" + }, + "apiproductcatalogGraphQLAPIEndpointOutput": { + "Type": "String", + "Default": "apiproductcatalogGraphQLAPIEndpointOutput" + }, + "apiproductcatalogGraphQLAPIKeyOutput": { + "Type": "String", + "Default": "apiproductcatalogGraphQLAPIKeyOutput" + }, + "deploymentBucketName": { + "Type": "String" + }, + "s3Key": { + "Type": "String" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + } + }, + "Resources": { + "LambdaFunction": { + "Type": "AWS::Lambda::Function", + "Metadata": { + "aws:asset:path": "./src", + "aws:asset:property": "Code" + }, + "Properties": { + "Handler": "index.handler", + "FunctionName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "S3Trigger1ef46783", + { + "Fn::Join": [ + "", + [ + "S3Trigger1ef46783", + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "Environment": { + "Variables": { + "ENV": { + "Ref": "env" + }, + "REGION": { + "Ref": "AWS::Region" + }, + "API_PRODUCTCATALOG_GRAPHQLAPIIDOUTPUT": { + "Ref": "apiproductcatalogGraphQLAPIIdOutput" + }, + "API_PRODUCTCATALOG_GRAPHQLAPIENDPOINTOUTPUT": { + "Ref": "apiproductcatalogGraphQLAPIEndpointOutput" + }, + "API_PRODUCTCATALOG_GRAPHQLAPIKEYOUTPUT": { + "Ref": "apiproductcatalogGraphQLAPIKeyOutput" + } + } + }, + "Role": { + "Fn::GetAtt": [ + "LambdaExecutionRole", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Timeout": 25, + "Code": { + "S3Bucket": { + "Ref": "deploymentBucketName" + }, + "S3Key": { + "Ref": "s3Key" + } + } + } + }, + "LambdaExecutionRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "RoleName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "S3Trigger1ef46783LambdaRole1ef46783", + { + "Fn::Join": [ + "", + [ + "S3Trigger1ef46783LambdaRole1ef46783", + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": [ + "lambda.amazonaws.com" + ] + }, + "Action": [ + "sts:AssumeRole" + ] + } + ] + } + } + }, + "lambdaexecutionpolicy": { + "DependsOn": [ + "LambdaExecutionRole" + ], + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyName": "lambda-execution-policy", + "Roles": [ + { + "Ref": "LambdaExecutionRole" + } + ], + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "logs:CreateLogGroup", + "logs:CreateLogStream", + "logs:PutLogEvents" + ], + "Resource": { + "Fn::Sub": [ + "arn:aws:logs:${region}:${account}:log-group:/aws/lambda/${lambda}:log-stream:*", + { + "region": { + "Ref": "AWS::Region" + }, + "account": { + "Ref": "AWS::AccountId" + }, + "lambda": { + "Ref": "LambdaFunction" + } + } + ] + } + } + ] + } + } + }, + "AmplifyResourcesPolicy": { + "DependsOn": [ + "LambdaExecutionRole" + ], + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyName": "amplify-lambda-execution-policy", + "Roles": [ + { + "Ref": "LambdaExecutionRole" + } + ], + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "appsync:GraphQL" + ], + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:appsync:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":apis/", + { + "Ref": "apiproductcatalogGraphQLAPIIdOutput" + }, + "/types/Mutation/*" + ] + ] + } + ] + } + ] + } + } + } + }, + "Outputs": { + "Name": { + "Value": { + "Ref": "LambdaFunction" + } + }, + "Arn": { + "Value": { + "Fn::GetAtt": [ + "LambdaFunction", + "Arn" + ] + } + }, + "Region": { + "Value": { + "Ref": "AWS::Region" + } + }, + "LambdaExecutionRole": { + "Value": { + "Ref": "LambdaExecutionRole" + } + }, + "LambdaExecutionRoleArn": { + "Value": { + "Fn::GetAtt": [ + "LambdaExecutionRole", + "Arn" + ] + } + } + } +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-functionlowstockproducts-x.description.txt b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-functionlowstockproducts-x.description.txt new file mode 100644 index 00000000000..6cc2b5048c0 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-functionlowstockproducts-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"function-Lambda","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-functionlowstockproducts-x.outputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-functionlowstockproducts-x.outputs.json new file mode 100644 index 00000000000..a6bafa19eeb --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-functionlowstockproducts-x.outputs.json @@ -0,0 +1,22 @@ +[ + { + "OutputKey": "LambdaExecutionRoleArn", + "OutputValue": "arn:aws:iam::123456789012:role/productcatalogLambdaRole1ca4fb61-x" + }, + { + "OutputKey": "Region", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "Arn", + "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:lowstockproducts-x" + }, + { + "OutputKey": "Name", + "OutputValue": "lowstockproducts-x" + }, + { + "OutputKey": "LambdaExecutionRole", + "OutputValue": "productcatalogLambdaRole1ca4fb61-x" + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-functionlowstockproducts-x.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-functionlowstockproducts-x.parameters.json new file mode 100644 index 00000000000..a796412a084 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-functionlowstockproducts-x.parameters.json @@ -0,0 +1,38 @@ +[ + { + "ParameterKey": "CloudWatchRule", + "ParameterValue": "NONE" + }, + { + "ParameterKey": "s3Key", + "ParameterValue": "amplify-builds/lowstockproducts-5148445a7a3964456a67-build.zip" + }, + { + "ParameterKey": "lowStockThreshold", + "ParameterValue": "5" + }, + { + "ParameterKey": "deploymentBucketName", + "ParameterValue": "amplify-productcatalog-x-x-deployment" + }, + { + "ParameterKey": "apiproductcatalogGraphQLAPIKeyOutput", + "ParameterValue": "da2-fakeapikey00000000000000" + }, + { + "ParameterKey": "apiproductcatalogGraphQLAPIEndpointOutput", + "ParameterValue": "https://nmunek64lresdpc5z6pnhpsbh4.appsync-api.us-east-1.amazonaws.com/graphql" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "secretsPathAmplifyAppId", + "ParameterValue": "productcatalog" + }, + { + "ParameterKey": "apiproductcatalogGraphQLAPIIdOutput", + "ParameterValue": "hscmwhprkbaljmcpavj3dcztrq" + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-functionlowstockproducts-x.template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-functionlowstockproducts-x.template.json new file mode 100644 index 00000000000..400ee646907 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-functionlowstockproducts-x.template.json @@ -0,0 +1,358 @@ +{ + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Parameters": { + "CloudWatchRule": { + "Type": "String", + "Default": "NONE", + "Description": " Schedule Expression" + }, + "deploymentBucketName": { + "Type": "String" + }, + "env": { + "Type": "String" + }, + "s3Key": { + "Type": "String" + }, + "lowStockThreshold": { + "Type": "String" + }, + "apiproductcatalogGraphQLAPIIdOutput": { + "Type": "String", + "Default": "apiproductcatalogGraphQLAPIIdOutput" + }, + "apiproductcatalogGraphQLAPIEndpointOutput": { + "Type": "String", + "Default": "apiproductcatalogGraphQLAPIEndpointOutput" + }, + "apiproductcatalogGraphQLAPIKeyOutput": { + "Type": "String", + "Default": "apiproductcatalogGraphQLAPIKeyOutput" + }, + "secretsPathAmplifyAppId": { + "Type": "String" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + } + }, + "Resources": { + "LambdaFunction": { + "Type": "AWS::Lambda::Function", + "Metadata": { + "aws:asset:path": "./src", + "aws:asset:property": "Code" + }, + "Properties": { + "Code": { + "S3Bucket": { + "Ref": "deploymentBucketName" + }, + "S3Key": { + "Ref": "s3Key" + } + }, + "Handler": "index.handler", + "FunctionName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "lowstockproducts", + { + "Fn::Join": [ + "", + [ + "lowstockproducts", + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "Environment": { + "Variables": { + "ENV": { + "Ref": "env" + }, + "REGION": { + "Ref": "AWS::Region" + }, + "API_PRODUCTCATALOG_GRAPHQLAPIIDOUTPUT": { + "Ref": "apiproductcatalogGraphQLAPIIdOutput" + }, + "API_PRODUCTCATALOG_GRAPHQLAPIENDPOINTOUTPUT": { + "Ref": "apiproductcatalogGraphQLAPIEndpointOutput" + }, + "API_PRODUCTCATALOG_GRAPHQLAPIKEYOUTPUT": { + "Ref": "apiproductcatalogGraphQLAPIKeyOutput" + }, + "LOW_STOCK_THRESHOLD": { + "Ref": "lowStockThreshold" + }, + "PRODUCT_CATALOG_SECRET": { + "Fn::Join": [ + "", + [ + { + "Fn::Sub": [ + "/amplify/${appId}/${env}/AMPLIFY_${functionName}_", + { + "appId": { + "Ref": "secretsPathAmplifyAppId" + }, + "env": { + "Ref": "env" + }, + "functionName": "lowstockproducts" + } + ] + }, + "PRODUCT_CATALOG_SECRET" + ] + ] + } + } + }, + "Role": { + "Fn::GetAtt": [ + "LambdaExecutionRole", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Layers": [], + "Timeout": 25 + } + }, + "LambdaExecutionRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "RoleName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "productcatalogLambdaRole1ca4fb61", + { + "Fn::Join": [ + "", + [ + "productcatalogLambdaRole1ca4fb61", + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": [ + "lambda.amazonaws.com" + ] + }, + "Action": [ + "sts:AssumeRole" + ] + } + ] + } + } + }, + "lambdaexecutionpolicy": { + "DependsOn": [ + "LambdaExecutionRole" + ], + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyName": "lambda-execution-policy", + "Roles": [ + { + "Ref": "LambdaExecutionRole" + } + ], + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "logs:CreateLogGroup", + "logs:CreateLogStream", + "logs:PutLogEvents" + ], + "Resource": { + "Fn::Sub": [ + "arn:aws:logs:${region}:${account}:log-group:/aws/lambda/${lambda}:log-stream:*", + { + "region": { + "Ref": "AWS::Region" + }, + "account": { + "Ref": "AWS::AccountId" + }, + "lambda": { + "Ref": "LambdaFunction" + } + } + ] + } + } + ] + } + } + }, + "AmplifyResourcesPolicy": { + "DependsOn": [ + "LambdaExecutionRole" + ], + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyName": "amplify-lambda-execution-policy", + "Roles": [ + { + "Ref": "LambdaExecutionRole" + } + ], + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "appsync:GraphQL" + ], + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:appsync:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":apis/", + { + "Ref": "apiproductcatalogGraphQLAPIIdOutput" + }, + "/types/Query/*" + ] + ] + } + ] + } + ] + } + } + }, + "AmplifyFunctionSecretsPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyName": "amplify-function-secrets-policy", + "Roles": [ + { + "Ref": "LambdaExecutionRole" + } + ], + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "ssm:GetParameter", + "ssm:GetParameters" + ], + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:ssm:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":parameter", + { + "Fn::Sub": [ + "/amplify/${appId}/${env}/AMPLIFY_${functionName}_", + { + "appId": { + "Ref": "secretsPathAmplifyAppId" + }, + "env": { + "Ref": "env" + }, + "functionName": "lowstockproducts" + } + ] + }, + "*" + ] + ] + } + } + ] + } + }, + "DependsOn": [ + "LambdaExecutionRole" + ] + } + }, + "Outputs": { + "Name": { + "Value": { + "Ref": "LambdaFunction" + } + }, + "Arn": { + "Value": { + "Fn::GetAtt": [ + "LambdaFunction", + "Arn" + ] + } + }, + "Region": { + "Value": { + "Ref": "AWS::Region" + } + }, + "LambdaExecutionRole": { + "Value": { + "Ref": "LambdaExecutionRole" + } + }, + "LambdaExecutionRoleArn": { + "Value": { + "Fn::GetAtt": [ + "LambdaExecutionRole", + "Arn" + ] + } + } + } +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-storages338e5b439-x.description.txt b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-storages338e5b439-x.description.txt new file mode 100644 index 00000000000..e01eac85f24 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-storages338e5b439-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"storage-S3","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-storages338e5b439-x.outputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-storages338e5b439-x.outputs.json new file mode 100644 index 00000000000..53083f86368 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-storages338e5b439-x.outputs.json @@ -0,0 +1,11 @@ +[ + { + "OutputKey": "BucketName", + "OutputValue": "productcatalogf95af07481f845caa6594c26ac9c8ed3x-x", + "Description": "Bucket name for the S3 bucket" + }, + { + "OutputKey": "Region", + "OutputValue": "us-east-1" + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-storages338e5b439-x.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-storages338e5b439-x.parameters.json new file mode 100644 index 00000000000..ae628ef2dbe --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-storages338e5b439-x.parameters.json @@ -0,0 +1,102 @@ +[ + { + "ParameterKey": "bucketName", + "ParameterValue": "productcatalogf95af07481f845caa6594c26ac9c8ed3" + }, + { + "ParameterKey": "functionS3Trigger1ef46783Name", + "ParameterValue": "S3Trigger1ef46783-x" + }, + { + "ParameterKey": "s3PublicPolicy", + "ParameterValue": "Public_policy_38e5b439" + }, + { + "ParameterKey": "AuthenticatedAllowList", + "ParameterValue": "ALLOW" + }, + { + "ParameterKey": "functionS3Trigger1ef46783LambdaExecutionRole", + "ParameterValue": "S3Trigger1ef46783LambdaRole1ef46783-x" + }, + { + "ParameterKey": "unauthRoleName", + "ParameterValue": "amplify-productcatalog-x-x-unauthRole" + }, + { + "ParameterKey": "s3PrivatePolicy", + "ParameterValue": "Private_policy_38e5b439" + }, + { + "ParameterKey": "selectedGuestPermissions", + "ParameterValue": "" + }, + { + "ParameterKey": "s3PermissionsAuthenticatedPublic", + "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" + }, + { + "ParameterKey": "s3PermissionsAuthenticatedUploads", + "ParameterValue": "s3:PutObject" + }, + { + "ParameterKey": "s3UploadsPolicy", + "ParameterValue": "Uploads_policy_38e5b439" + }, + { + "ParameterKey": "functionS3Trigger1ef46783Arn", + "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:S3Trigger1ef46783-x" + }, + { + "ParameterKey": "s3PermissionsAuthenticatedProtected", + "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" + }, + { + "ParameterKey": "s3PermissionsGuestUploads", + "ParameterValue": "DISALLOW" + }, + { + "ParameterKey": "s3ReadPolicy", + "ParameterValue": "read_policy_38e5b439" + }, + { + "ParameterKey": "selectedAuthenticatedPermissions", + "ParameterValue": "s3:PutObject,s3:GetObject,s3:ListBucket,s3:DeleteObject" + }, + { + "ParameterKey": "s3PermissionsGuestPublic", + "ParameterValue": "DISALLOW" + }, + { + "ParameterKey": "s3PermissionsAuthenticatedPrivate", + "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "unauthPolicyName", + "ParameterValue": "s3_amplify_38e5b439" + }, + { + "ParameterKey": "authRoleName", + "ParameterValue": "amplify-productcatalog-x-x-authRole" + }, + { + "ParameterKey": "GuestAllowList", + "ParameterValue": "DISALLOW" + }, + { + "ParameterKey": "triggerFunction", + "ParameterValue": "S3Trigger1ef46783" + }, + { + "ParameterKey": "authPolicyName", + "ParameterValue": "s3_amplify_38e5b439" + }, + { + "ParameterKey": "s3ProtectedPolicy", + "ParameterValue": "Protected_policy_38e5b439" + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-storages338e5b439-x.template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-storages338e5b439-x.template.json new file mode 100644 index 00000000000..8e2779a5755 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x-storages338e5b439-x.template.json @@ -0,0 +1,750 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-S3\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "bucketName": { + "Type": "String" + }, + "authRoleName": { + "Type": "String" + }, + "unauthRoleName": { + "Type": "String" + }, + "authPolicyName": { + "Type": "String" + }, + "unauthPolicyName": { + "Type": "String" + }, + "s3PublicPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3PrivatePolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3ProtectedPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3UploadsPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3ReadPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3PermissionsAuthenticatedPublic": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedProtected": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedPrivate": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedUploads": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsGuestPublic": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsGuestUploads": { + "Type": "String", + "Default": "DISALLOW" + }, + "AuthenticatedAllowList": { + "Type": "String", + "Default": "DISALLOW" + }, + "GuestAllowList": { + "Type": "String", + "Default": "DISALLOW" + }, + "selectedGuestPermissions": { + "Type": "CommaDelimitedList", + "Default": "NONE" + }, + "selectedAuthenticatedPermissions": { + "Type": "CommaDelimitedList", + "Default": "NONE" + }, + "functionS3Trigger1ef46783Arn": { + "Type": "String", + "Default": "functionS3Trigger1ef46783Arn" + }, + "functionS3Trigger1ef46783Name": { + "Type": "String", + "Default": "functionS3Trigger1ef46783Name" + }, + "functionS3Trigger1ef46783LambdaExecutionRole": { + "Type": "String", + "Default": "functionS3Trigger1ef46783LambdaExecutionRole" + }, + "triggerFunction": { + "Type": "String" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + }, + "CreateAuthPublic": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "s3PermissionsAuthenticatedPublic" + }, + "DISALLOW" + ] + } + ] + }, + "CreateAuthProtected": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "s3PermissionsAuthenticatedProtected" + }, + "DISALLOW" + ] + } + ] + }, + "CreateAuthPrivate": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "s3PermissionsAuthenticatedPrivate" + }, + "DISALLOW" + ] + } + ] + }, + "CreateAuthUploads": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "s3PermissionsAuthenticatedUploads" + }, + "DISALLOW" + ] + } + ] + }, + "CreateGuestPublic": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "s3PermissionsGuestPublic" + }, + "DISALLOW" + ] + } + ] + }, + "CreateGuestUploads": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "s3PermissionsGuestUploads" + }, + "DISALLOW" + ] + } + ] + }, + "AuthReadAndList": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "AuthenticatedAllowList" + }, + "DISALLOW" + ] + } + ] + }, + "GuestReadAndList": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "GuestAllowList" + }, + "DISALLOW" + ] + } + ] + } + }, + "Outputs": { + "BucketName": { + "Description": "Bucket name for the S3 bucket", + "Value": { + "Ref": "S3Bucket" + } + }, + "Region": { + "Value": { + "Ref": "AWS::Region" + } + } + }, + "Resources": { + "S3Bucket": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + { + "Ref": "bucketName" + }, + { + "Fn::Join": [ + "", + [ + { + "Ref": "bucketName" + }, + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + { + "Ref": "AWS::StackName" + } + ] + } + ] + }, + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "Id": "S3CORSRuleId1", + "MaxAge": 3000 + } + ] + }, + "NotificationConfiguration": { + "LambdaConfigurations": [ + { + "Event": "s3:ObjectCreated:*", + "Function": { + "Ref": "functionS3Trigger1ef46783Arn" + } + }, + { + "Event": "s3:ObjectRemoved:*", + "Function": { + "Ref": "functionS3Trigger1ef46783Arn" + } + } + ] + }, + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + } + }, + "DependsOn": [ + "TriggerPermissions" + ], + "UpdateReplacePolicy": "Retain", + "DeletionPolicy": "Retain" + }, + "TriggerPermissions": { + "Type": "AWS::Lambda::Permission", + "Properties": { + "Action": "lambda:InvokeFunction", + "FunctionName": { + "Ref": "functionS3Trigger1ef46783Name" + }, + "Principal": "s3.amazonaws.com", + "SourceAccount": { + "Ref": "AWS::AccountId" + }, + "SourceArn": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Fn::If": [ + "ShouldNotCreateEnvResources", + { + "Ref": "bucketName" + }, + { + "Fn::Join": [ + "", + [ + { + "Ref": "bucketName" + }, + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + { + "Ref": "AWS::StackName" + } + ] + } + ] + }, + "-", + { + "Ref": "env" + } + ] + ] + } + ] + } + ] + ] + } + } + }, + "S3AuthPublicPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + { + "Ref": "s3PermissionsAuthenticatedPublic" + } + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + }, + "/public/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": { + "Ref": "s3PublicPolicy" + }, + "Roles": [ + { + "Ref": "authRoleName" + } + ] + }, + "DependsOn": [ + "S3Bucket" + ], + "Condition": "CreateAuthPublic" + }, + "S3AuthProtectedPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + { + "Ref": "s3PermissionsAuthenticatedProtected" + } + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + }, + "/protected/${cognito-identity.amazonaws.com:sub}/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": { + "Ref": "s3ProtectedPolicy" + }, + "Roles": [ + { + "Ref": "authRoleName" + } + ] + }, + "DependsOn": [ + "S3Bucket" + ], + "Condition": "CreateAuthProtected" + }, + "S3AuthPrivatePolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + { + "Ref": "s3PermissionsAuthenticatedPrivate" + } + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + }, + "/private/${cognito-identity.amazonaws.com:sub}/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": { + "Ref": "s3PrivatePolicy" + }, + "Roles": [ + { + "Ref": "authRoleName" + } + ] + }, + "DependsOn": [ + "S3Bucket" + ], + "Condition": "CreateAuthPrivate" + }, + "S3AuthUploadPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + { + "Ref": "s3PermissionsAuthenticatedUploads" + } + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + }, + "/uploads/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": { + "Ref": "s3UploadsPolicy" + }, + "Roles": [ + { + "Ref": "authRoleName" + } + ] + }, + "DependsOn": [ + "S3Bucket" + ], + "Condition": "CreateAuthUploads" + }, + "S3AuthReadPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + }, + "/protected/*" + ] + ] + } + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/", + "public/*", + "protected/", + "protected/*", + "private/${cognito-identity.amazonaws.com:sub}/", + "private/${cognito-identity.amazonaws.com:sub}/*" + ] + } + }, + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + } + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": { + "Ref": "s3ReadPolicy" + }, + "Roles": [ + { + "Ref": "authRoleName" + } + ] + }, + "DependsOn": [ + "S3Bucket" + ], + "Condition": "AuthReadAndList" + }, + "S3GuestReadPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + }, + "/protected/*" + ] + ] + } + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/", + "public/*", + "protected/", + "protected/*" + ] + } + }, + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + } + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": { + "Ref": "s3ReadPolicy" + }, + "Roles": [ + { + "Ref": "unauthRoleName" + } + ] + }, + "DependsOn": [ + "S3Bucket" + ], + "Condition": "GuestReadAndList" + }, + "S3TriggerBucketPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "s3:ListBucket" + ], + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + } + ] + ] + } + ] + }, + { + "Effect": "Allow", + "Action": [ + "s3:PutObject", + "s3:GetObject", + "s3:ListBucket", + "s3:DeleteObject" + ], + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + }, + "/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "amplify-lambda-execution-policy-storage", + "Roles": [ + { + "Ref": "functionS3Trigger1ef46783LambdaExecutionRole" + } + ] + }, + "DependsOn": [ + "S3Bucket" + ] + } + } +} diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x.description.txt b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x.description.txt new file mode 100644 index 00000000000..6e1d8ff2351 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x.description.txt @@ -0,0 +1 @@ +Root Stack for AWS Amplify CLI diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x.outputs.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x.outputs.json new file mode 100644 index 00000000000..0110bcd41cc --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x.outputs.json @@ -0,0 +1,42 @@ +[ + { + "OutputKey": "AuthRoleName", + "OutputValue": "amplify-productcatalog-x-x-authRole" + }, + { + "OutputKey": "UnauthRoleArn", + "OutputValue": "arn:aws:iam::123456789012:role/amplify-productcatalog-x-x-unauthRole" + }, + { + "OutputKey": "AuthRoleArn", + "OutputValue": "arn:aws:iam::123456789012:role/amplify-productcatalog-x-x-authRole" + }, + { + "OutputKey": "Region", + "OutputValue": "us-east-1", + "Description": "CloudFormation provider root stack Region", + "ExportName": "amplify-productcatalog-x-x-Region" + }, + { + "OutputKey": "DeploymentBucketName", + "OutputValue": "amplify-productcatalog-x-x-deployment", + "Description": "CloudFormation provider root stack deployment bucket name", + "ExportName": "amplify-productcatalog-x-x-DeploymentBucketName" + }, + { + "OutputKey": "UnauthRoleName", + "OutputValue": "amplify-productcatalog-x-x-unauthRole" + }, + { + "OutputKey": "StackName", + "OutputValue": "amplify-productcatalog-x-x", + "Description": "CloudFormation provider root stack ID", + "ExportName": "amplify-productcatalog-x-x-StackName" + }, + { + "OutputKey": "StackId", + "OutputValue": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-productcatalog-x-x/25d38550-387e-11f1-9b94-0afffb3ee03d", + "Description": "CloudFormation provider root stack name", + "ExportName": "amplify-productcatalog-x-x-StackId" + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x.parameters.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x.parameters.json new file mode 100644 index 00000000000..a8887d6fd06 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x.parameters.json @@ -0,0 +1,14 @@ +[ + { + "ParameterKey": "AuthRoleName", + "ParameterValue": "amplify-productcatalog-x-x-authRole" + }, + { + "ParameterKey": "DeploymentBucketName", + "ParameterValue": "amplify-productcatalog-x-x-deployment" + }, + { + "ParameterKey": "UnauthRoleName", + "ParameterValue": "amplify-productcatalog-x-x-unauthRole" + } +] diff --git a/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x.template.json b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x.template.json new file mode 100644 index 00000000000..ab84b6666c0 --- /dev/null +++ b/amplify-migration-apps/product-catalog/_snapshot.pre.refactor/amplify-productcatalog-x-x.template.json @@ -0,0 +1,598 @@ +{ + "Description": "Root Stack for AWS Amplify CLI", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "DeploymentBucketName": { + "Type": "String", + "Default": "DeploymentBucket", + "Description": "Name of the common deployment bucket provided by the parent stack" + }, + "AuthRoleName": { + "Type": "String", + "Default": "AuthRoleName", + "Description": "Name of the common deployment bucket provided by the parent stack" + }, + "UnauthRoleName": { + "Type": "String", + "Default": "UnAuthRoleName", + "Description": "Name of the common deployment bucket provided by the parent stack" + } + }, + "Outputs": { + "Region": { + "Description": "CloudFormation provider root stack Region", + "Value": { + "Ref": "AWS::Region" + }, + "Export": { + "Name": { + "Fn::Sub": "${AWS::StackName}-Region" + } + } + }, + "StackName": { + "Description": "CloudFormation provider root stack ID", + "Value": { + "Ref": "AWS::StackName" + }, + "Export": { + "Name": { + "Fn::Sub": "${AWS::StackName}-StackName" + } + } + }, + "StackId": { + "Description": "CloudFormation provider root stack name", + "Value": { + "Ref": "AWS::StackId" + }, + "Export": { + "Name": { + "Fn::Sub": "${AWS::StackName}-StackId" + } + } + }, + "AuthRoleArn": { + "Value": { + "Fn::GetAtt": [ + "AuthRole", + "Arn" + ] + } + }, + "UnauthRoleArn": { + "Value": { + "Fn::GetAtt": [ + "UnauthRole", + "Arn" + ] + } + }, + "DeploymentBucketName": { + "Description": "CloudFormation provider root stack deployment bucket name", + "Value": { + "Ref": "DeploymentBucketName" + }, + "Export": { + "Name": { + "Fn::Sub": "${AWS::StackName}-DeploymentBucketName" + } + } + }, + "AuthRoleName": { + "Value": { + "Ref": "AuthRole" + } + }, + "UnauthRoleName": { + "Value": { + "Ref": "UnauthRole" + } + } + }, + "Resources": { + "DeploymentBucket": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketName": { + "Ref": "DeploymentBucketName" + }, + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + } + }, + "UpdateReplacePolicy": "Retain", + "DeletionPolicy": "Retain" + }, + "DeploymentBucketBlockHTTP": { + "Type": "AWS::S3::BucketPolicy", + "Properties": { + "Bucket": { + "Ref": "DeploymentBucketName" + }, + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:*", + "Effect": "Deny", + "Principal": "*", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "DeploymentBucketName" + }, + "/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "DeploymentBucketName" + } + ] + ] + } + ], + "Condition": { + "Bool": { + "aws:SecureTransport": false + } + } + } + ] + } + } + }, + "AuthRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Sid": "", + "Effect": "Deny", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + }, + "Action": "sts:AssumeRoleWithWebIdentity" + } + ] + }, + "RoleName": { + "Ref": "AuthRoleName" + } + } + }, + "UnauthRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Sid": "", + "Effect": "Deny", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + }, + "Action": "sts:AssumeRoleWithWebIdentity" + } + ] + }, + "RoleName": { + "Ref": "UnauthRoleName" + } + } + }, + "authproductcatalog90174ac4": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-x-x-deployment/amplify-cfn-templates/auth/productcatalog90174ac4-cloudformation-template.json", + "Parameters": { + "identityPoolName": "productcatalog90174ac4_identitypool_90174ac4", + "allowUnauthenticatedIdentities": false, + "resourceNameTruncated": "produc90174ac4", + "userPoolName": "productcatalog90174ac4_userpool_90174ac4", + "autoVerifiedAttributes": "email", + "mfaConfiguration": "OFF", + "mfaTypes": "SMS Text Message", + "smsAuthenticationMessage": "Your authentication code is {####}", + "smsVerificationMessage": "Your verification code is {####}", + "emailVerificationSubject": "Your verification code", + "emailVerificationMessage": "Your verification code is {####}", + "defaultPasswordPolicy": false, + "passwordPolicyMinLength": 8, + "passwordPolicyCharacters": "", + "requiredAttributes": "email", + "aliasAttributes": "", + "userpoolClientGenerateSecret": false, + "userpoolClientRefreshTokenValidity": 30, + "userpoolClientWriteAttributes": "email", + "userpoolClientReadAttributes": "email", + "userpoolClientLambdaRole": "produc90174ac4_userpoolclient_lambda_role", + "userpoolClientSetAttributes": false, + "sharedId": "90174ac4", + "resourceName": "productcatalog90174ac4", + "authSelections": "identityPoolAndUserPool", + "useDefault": "default", + "usernameAttributes": "email", + "userPoolGroupList": "", + "serviceName": "Cognito", + "usernameCaseSensitive": false, + "useEnabledMfas": true, + "authRoleArn": { + "Fn::GetAtt": [ + "AuthRole", + "Arn" + ] + }, + "unauthRoleArn": { + "Fn::GetAtt": [ + "UnauthRole", + "Arn" + ] + }, + "breakCircularDependency": true, + "dependsOn": "", + "env": "x" + } + } + }, + "apiproductcatalog": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "Parameters": { + "AppSyncApiName": "productcatalog", + "DynamoDBBillingMode": "PAY_PER_REQUEST", + "DynamoDBEnableServerSideEncryption": false, + "AuthCognitoUserPoolId": { + "Fn::GetAtt": [ + "authproductcatalog90174ac4", + "Outputs.UserPoolId" + ] + }, + "authRoleName": { + "Ref": "AuthRoleName" + }, + "unauthRoleName": { + "Ref": "UnauthRoleName" + }, + "S3DeploymentBucket": "amplify-productcatalog-x-x-deployment", + "S3DeploymentRootKey": "amplify-appsync-files/2904294ac328b706f016848ccf5fa0abe614014d", + "env": "x" + } + } + }, + "functionS3Trigger1ef46783": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-x-x-deployment/amplify-cfn-templates/function/S3Trigger1ef46783-cloudformation-template.json", + "Parameters": { + "deploymentBucketName": "amplify-productcatalog-x-x-deployment", + "s3Key": "amplify-builds/S3Trigger1ef46783-4b4665534739746b326e-build.zip", + "apiproductcatalogGraphQLAPIIdOutput": { + "Fn::GetAtt": [ + "apiproductcatalog", + "Outputs.GraphQLAPIIdOutput" + ] + }, + "apiproductcatalogGraphQLAPIEndpointOutput": { + "Fn::GetAtt": [ + "apiproductcatalog", + "Outputs.GraphQLAPIEndpointOutput" + ] + }, + "apiproductcatalogGraphQLAPIKeyOutput": { + "Fn::GetAtt": [ + "apiproductcatalog", + "Outputs.GraphQLAPIKeyOutput" + ] + }, + "env": "x" + } + } + }, + "functionlowstockproducts": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-x-x-deployment/amplify-cfn-templates/function/lowstockproducts-cloudformation-template.json", + "Parameters": { + "lowStockThreshold": "5", + "secretsPathAmplifyAppId": "productcatalog", + "deploymentBucketName": "amplify-productcatalog-x-x-deployment", + "s3Key": "amplify-builds/lowstockproducts-5148445a7a3964456a67-build.zip", + "apiproductcatalogGraphQLAPIIdOutput": { + "Fn::GetAtt": [ + "apiproductcatalog", + "Outputs.GraphQLAPIIdOutput" + ] + }, + "apiproductcatalogGraphQLAPIEndpointOutput": { + "Fn::GetAtt": [ + "apiproductcatalog", + "Outputs.GraphQLAPIEndpointOutput" + ] + }, + "apiproductcatalogGraphQLAPIKeyOutput": { + "Fn::GetAtt": [ + "apiproductcatalog", + "Outputs.GraphQLAPIKeyOutput" + ] + }, + "env": "x" + } + } + }, + "storages338e5b439": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-productcatalog-x-x-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "Parameters": { + "bucketName": "productcatalogf95af07481f845caa6594c26ac9c8ed3", + "selectedGuestPermissions": "", + "selectedAuthenticatedPermissions": "s3:PutObject,s3:GetObject,s3:ListBucket,s3:DeleteObject", + "unauthRoleName": { + "Ref": "UnauthRoleName" + }, + "authRoleName": { + "Ref": "AuthRoleName" + }, + "triggerFunction": "S3Trigger1ef46783", + "s3PrivatePolicy": "Private_policy_38e5b439", + "s3ProtectedPolicy": "Protected_policy_38e5b439", + "s3PublicPolicy": "Public_policy_38e5b439", + "s3ReadPolicy": "read_policy_38e5b439", + "s3UploadsPolicy": "Uploads_policy_38e5b439", + "authPolicyName": "s3_amplify_38e5b439", + "unauthPolicyName": "s3_amplify_38e5b439", + "AuthenticatedAllowList": "ALLOW", + "GuestAllowList": "DISALLOW", + "s3PermissionsAuthenticatedPrivate": "s3:PutObject,s3:GetObject,s3:DeleteObject", + "s3PermissionsAuthenticatedProtected": "s3:PutObject,s3:GetObject,s3:DeleteObject", + "s3PermissionsAuthenticatedPublic": "s3:PutObject,s3:GetObject,s3:DeleteObject", + "s3PermissionsAuthenticatedUploads": "s3:PutObject", + "s3PermissionsGuestPublic": "DISALLOW", + "s3PermissionsGuestUploads": "DISALLOW", + "functionS3Trigger1ef46783Name": { + "Fn::GetAtt": [ + "functionS3Trigger1ef46783", + "Outputs.Name" + ] + }, + "functionS3Trigger1ef46783Arn": { + "Fn::GetAtt": [ + "functionS3Trigger1ef46783", + "Outputs.Arn" + ] + }, + "functionS3Trigger1ef46783LambdaExecutionRole": { + "Fn::GetAtt": [ + "functionS3Trigger1ef46783", + "Outputs.LambdaExecutionRole" + ] + }, + "env": "x" + } + } + }, + "UpdateRolesWithIDPFunction": { + "DependsOn": [ + "AuthRole", + "UnauthRole", + "authproductcatalog90174ac4" + ], + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "ZipFile": { + "Fn::Join": [ + "\n", + [ + "const response = require('cfn-response');", + "const { IAMClient, GetRoleCommand, UpdateAssumeRolePolicyCommand } = require('@aws-sdk/client-iam');", + "exports.handler = function(event, context) {", + " // Don't return promise, response.send() marks context as done internally", + " const ignoredPromise = handleEvent(event, context)", + "};", + "async function handleEvent(event, context) {", + " try {", + " let authRoleName = event.ResourceProperties.authRoleName;", + " let unauthRoleName = event.ResourceProperties.unauthRoleName;", + " let idpId = event.ResourceProperties.idpId;", + " let authParamsJson = {", + " 'Version': '2012-10-17',", + " 'Statement': [{", + " 'Effect': 'Allow',", + " 'Principal': {'Federated': 'cognito-identity.amazonaws.com'},", + " 'Action': 'sts:AssumeRoleWithWebIdentity',", + " 'Condition': {", + " 'StringEquals': {'cognito-identity.amazonaws.com:aud': idpId},", + " 'ForAnyValue:StringLike': {'cognito-identity.amazonaws.com:amr': 'authenticated'}", + " }", + " }]", + " };", + " let unauthParamsJson = {", + " 'Version': '2012-10-17',", + " 'Statement': [{", + " 'Effect': 'Allow',", + " 'Principal': {'Federated': 'cognito-identity.amazonaws.com'},", + " 'Action': 'sts:AssumeRoleWithWebIdentity',", + " 'Condition': {", + " 'StringEquals': {'cognito-identity.amazonaws.com:aud': idpId},", + " 'ForAnyValue:StringLike': {'cognito-identity.amazonaws.com:amr': 'unauthenticated'}", + " }", + " }]", + " };", + " if (event.RequestType === 'Delete') {", + " try {", + " delete authParamsJson.Statement[0].Condition;", + " delete unauthParamsJson.Statement[0].Condition;", + " authParamsJson.Statement[0].Effect = 'Deny'", + " unauthParamsJson.Statement[0].Effect = 'Deny'", + " let authParams = {PolicyDocument: JSON.stringify(authParamsJson), RoleName: authRoleName};", + " let unauthParams = {PolicyDocument: JSON.stringify(unauthParamsJson), RoleName: unauthRoleName};", + " const iam = new IAMClient({region: event.ResourceProperties.region});", + " let res = await Promise.all([", + " iam.send(new GetRoleCommand({RoleName: authParams.RoleName})),", + " iam.send(new GetRoleCommand({RoleName: unauthParams.RoleName}))", + " ]);", + " res = await Promise.all([", + " iam.send(new UpdateAssumeRolePolicyCommand(authParams)),", + " iam.send(new UpdateAssumeRolePolicyCommand(unauthParams))", + " ]);", + " response.send(event, context, response.SUCCESS, {});", + " } catch (err) {", + " console.log(err.stack);", + " response.send(event, context, response.SUCCESS, {Error: err});", + " }", + " } else if (event.RequestType === 'Update' || event.RequestType === 'Create') {", + " const iam = new IAMClient({region: event.ResourceProperties.region});", + " let authParams = {PolicyDocument: JSON.stringify(authParamsJson), RoleName: authRoleName};", + " let unauthParams = {PolicyDocument: JSON.stringify(unauthParamsJson), RoleName: unauthRoleName};", + " const res = await Promise.all([", + " iam.send(new UpdateAssumeRolePolicyCommand(authParams)),", + " iam.send(new UpdateAssumeRolePolicyCommand(unauthParams))", + " ]);", + " response.send(event, context, response.SUCCESS, {});", + " }", + " } catch (err) {", + " console.log(err.stack);", + " response.send(event, context, response.FAILED, {Error: err});", + " }", + "};" + ] + ] + } + }, + "Handler": "index.handler", + "Runtime": "nodejs22.x", + "Timeout": 300, + "Role": { + "Fn::GetAtt": [ + "UpdateRolesWithIDPFunctionRole", + "Arn" + ] + } + } + }, + "UpdateRolesWithIDPFunctionOutputs": { + "Type": "Custom::LambdaCallout", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "UpdateRolesWithIDPFunction", + "Arn" + ] + }, + "region": { + "Ref": "AWS::Region" + }, + "idpId": { + "Fn::GetAtt": [ + "authproductcatalog90174ac4", + "Outputs.IdentityPoolId" + ] + }, + "authRoleName": { + "Ref": "AuthRole" + }, + "unauthRoleName": { + "Ref": "UnauthRole" + } + } + }, + "UpdateRolesWithIDPFunctionRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "RoleName": { + "Fn::Join": [ + "", + [ + { + "Ref": "AuthRole" + }, + "-idp" + ] + ] + }, + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": [ + "lambda.amazonaws.com" + ] + }, + "Action": [ + "sts:AssumeRole" + ] + } + ] + }, + "Policies": [ + { + "PolicyName": "UpdateRolesWithIDPFunctionPolicy", + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "logs:CreateLogGroup", + "logs:CreateLogStream", + "logs:PutLogEvents" + ], + "Resource": "arn:aws:logs:*:*:*" + }, + { + "Effect": "Allow", + "Action": [ + "iam:UpdateAssumeRolePolicy", + "iam:GetRole" + ], + "Resource": { + "Fn::GetAtt": [ + "AuthRole", + "Arn" + ] + } + }, + { + "Effect": "Allow", + "Action": [ + "iam:UpdateAssumeRolePolicy", + "iam:GetRole" + ], + "Resource": { + "Fn::GetAtt": [ + "UnauthRole", + "Arn" + ] + } + } + ] + } + } + ] + } + } + } +} diff --git a/amplify-migration-apps/product-catalog/package.json b/amplify-migration-apps/product-catalog/package.json index b80417f99bc..25f0220d0c3 100644 --- a/amplify-migration-apps/product-catalog/package.json +++ b/amplify-migration-apps/product-catalog/package.json @@ -13,6 +13,7 @@ "preview": "vite preview", "configure": "./backend/configure.sh", "sanitize": "tsx ../sanitize.ts", + "normalize": "tsx ../normalize.ts", "typecheck": "cd _snapshot.post.generate/amplify && npx tsc --noEmit", "test:gen1": "APP_CONFIG_PATH=${APP_CONFIG_PATH:-src/amplifyconfiguration.json} NODE_OPTIONS='--experimental-vm-modules' jest --verbose", "test:gen2": "APP_CONFIG_PATH=${APP_CONFIG_PATH:-amplify_outputs.json} NODE_OPTIONS='--experimental-vm-modules' jest --verbose", diff --git a/amplify-migration-apps/project-boards/_snapshot.post.generate/amplify.yml b/amplify-migration-apps/project-boards/_snapshot.post.generate/amplify.yml index 52c312768f5..19475262460 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.generate/amplify.yml +++ b/amplify-migration-apps/project-boards/_snapshot.post.generate/amplify.yml @@ -8,16 +8,11 @@ backend: - npx ampx pipeline-deploy --branch $AWS_BRANCH --app-id $AWS_APP_ID frontend: phases: - preBuild: - commands: - - npm install build: commands: - - npm run build + - mkdir dist + - touch dist/index.html artifacts: baseDirectory: dist files: - "**/*" - cache: - paths: - - node_modules/**/* diff --git a/amplify-migration-apps/project-boards/_snapshot.post.generate/amplify/backend.ts b/amplify-migration-apps/project-boards/_snapshot.post.generate/amplify/backend.ts index c6d0f9595bd..739119cc133 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.generate/amplify/backend.ts +++ b/amplify-migration-apps/project-boards/_snapshot.post.generate/amplify/backend.ts @@ -44,7 +44,7 @@ cfnGraphqlApi.additionalAuthenticationProviders = [ ]; const s3Bucket = backend.storage.resources.cfnResources.cfnBucket; // Use this bucket name post refactor -// s3Bucket.bucketName = 'projectboards34b9a7f3c2ca489293910116c994688b02940-main'; +// s3Bucket.bucketName = 'projectboards34b9a7f3c2ca489293910116c994688bx-x'; s3Bucket.bucketEncryption = { serverSideEncryptionConfiguration: [ { diff --git a/amplify-migration-apps/project-boards/_snapshot.post.generate/amplify/data/resource.ts b/amplify-migration-apps/project-boards/_snapshot.post.generate/amplify/data/resource.ts index dc5e2fac153..917c2fdc210 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.generate/amplify/data/resource.ts +++ b/amplify-migration-apps/project-boards/_snapshot.post.generate/amplify/data/resource.ts @@ -49,10 +49,10 @@ export const data = defineData({ migratedAmplifyGen1DynamoDbTableMappings: [ { //The "branchname" variable needs to be the same as your deployment branch if you want to reuse your Gen1 app tables - branchName: 'main', + branchName: 'x', modelNameToTableNameMapping: { - Project: 'Project-47mmg7n7zzcmnhcdcrkmgul4xe-main', - Todo: 'Todo-47mmg7n7zzcmnhcdcrkmgul4xe-main', + Project: 'Project-feqgb7ww75f5lklhnep4rre3va-x', + Todo: 'Todo-feqgb7ww75f5lklhnep4rre3va-x', }, }, ], diff --git a/amplify-migration-apps/project-boards/_snapshot.post.generate/amplify/storage/resource.ts b/amplify-migration-apps/project-boards/_snapshot.post.generate/amplify/storage/resource.ts index 05ba81f7182..5162047287f 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.generate/amplify/storage/resource.ts +++ b/amplify-migration-apps/project-boards/_snapshot.post.generate/amplify/storage/resource.ts @@ -3,7 +3,7 @@ import { defineStorage } from '@aws-amplify/backend'; const branchName = process.env.AWS_BRANCH ?? 'sandbox'; export const storage = defineStorage({ - name: `projectboards34b9a7f3c2ca489293910116c994688b02940-${branchName}`, + name: `projectboards34b9a7f3c2ca489293910116c994688bx-${branchName}`, access: (allow) => ({ 'public/*': [ allow.guest.to(['read']), diff --git a/amplify-migration-apps/project-boards/_snapshot.post.generate/package.json b/amplify-migration-apps/project-boards/_snapshot.post.generate/package.json index 481fd3b4c00..05192b9b20b 100644 --- a/amplify-migration-apps/project-boards/_snapshot.post.generate/package.json +++ b/amplify-migration-apps/project-boards/_snapshot.post.generate/package.json @@ -11,9 +11,21 @@ "build": "tsc -b && vite build", "lint": "eslint .", "preview": "vite preview", - "configure": "./configure.sh", - "sanitize": "cd _snapshot.generate.input && tsx ../sanitize.ts", - "typecheck": "cd _snapshot.generate.expected/amplify && npx tsc --noEmit" + "configure": "./backend/configure.sh", + "sanitize": "tsx ../sanitize.ts", + "normalize": "tsx ../normalize.ts", + "typecheck": "cd _snapshot.post.generate/amplify && npx tsc --noEmit", + "test:gen1": "APP_CONFIG_PATH=${APP_CONFIG_PATH:-src/amplifyconfiguration.json} NODE_OPTIONS='--experimental-vm-modules' jest --verbose", + "test:gen2": "APP_CONFIG_PATH=${APP_CONFIG_PATH:-amplify_outputs.json} NODE_OPTIONS='--experimental-vm-modules' jest --verbose", + "test:shared-data": "true", + "test:e2e": "cd ../../packages/amplify-gen2-migration-e2e-system && npx tsx src/cli.ts --app project-boards --profile ${AWS_PROFILE:-default}", + "deploy": "cd ../../packages/amplify-gen2-migration-e2e-system && npx tsx src/cli.ts --app project-boards --step deploy --profile ${AWS_PROFILE:-default}", + "pre-push": "true", + "post-generate": "npx tsx migration/post-generate.ts", + "post-refactor": "npx tsx migration/post-refactor.ts", + "post-sandbox": "true", + "pre-sandbox": "true", + "post-push": "true" }, "dependencies": { "@aws-amplify/ui-react": "^6.13.0", @@ -26,8 +38,10 @@ "@aws-amplify/backend": "^1.18.0", "@aws-amplify/backend-cli": "^1.8.0", "@aws-amplify/backend-data": "^1.6.2", + "@aws-sdk/client-cognito-identity-provider": "^3.936.0", "@eslint/js": "^9.36.0", "@types/aws-lambda": "^8.10.92", + "@types/jest": "^29.5.14", "@types/node": "*", "@types/react": "^19.1.16", "@types/react-dom": "^19.1.9", @@ -41,6 +55,8 @@ "eslint-plugin-react-hooks": "^5.2.0", "eslint-plugin-react-refresh": "^0.4.22", "globals": "^16.4.0", + "jest": "^29.7.0", + "ts-jest": "^29.3.4", "tsx": "^4.20.6", "typescript": "~5.9.3", "typescript-eslint": "^8.45.0", diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-e2e-sandbox-x-auth179371D7-x.__to__.amplify-projectboards-e2e-sandbox-x-auth179371D7-x-holding.mappings.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-e2e-sandbox-x-auth179371D7-x.__to__.amplify-projectboards-e2e-sandbox-x-auth179371D7-x-holding.mappings.json new file mode 100644 index 00000000000..94c2aed9d18 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-e2e-sandbox-x-auth179371D7-x.__to__.amplify-projectboards-e2e-sandbox-x-auth179371D7-x-holding.mappings.json @@ -0,0 +1,52 @@ +[ + { + "Source": { + "StackName": "amplify-projectboards-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + }, + "Destination": { + "StackName": "amplify-projectboards-e2e-sandbox-x-auth179371D7-x-holding", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + } + }, + { + "Source": { + "StackName": "amplify-projectboards-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + }, + "Destination": { + "StackName": "amplify-projectboards-e2e-sandbox-x-auth179371D7-x-holding", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + } + }, + { + "Source": { + "StackName": "amplify-projectboards-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + }, + "Destination": { + "StackName": "amplify-projectboards-e2e-sandbox-x-auth179371D7-x-holding", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + } + }, + { + "Source": { + "StackName": "amplify-projectboards-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + }, + "Destination": { + "StackName": "amplify-projectboards-e2e-sandbox-x-auth179371D7-x-holding", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + } + }, + { + "Source": { + "StackName": "amplify-projectboards-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + }, + "Destination": { + "StackName": "amplify-projectboards-e2e-sandbox-x-auth179371D7-x-holding", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + } + } +] diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-e2e-sandbox-x-auth179371D7-x.__to__.amplify-projectboards-e2e-sandbox-x-auth179371D7-x-holding.source.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-e2e-sandbox-x-auth179371D7-x.__to__.amplify-projectboards-e2e-sandbox-x-auth179371D7-x-holding.source.template.json new file mode 100644 index 00000000000..9f86e91cb3f --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-e2e-sandbox-x-auth179371D7-x.__to__.amplify-projectboards-e2e-sandbox-x-auth179371D7-x-holding.source.template.json @@ -0,0 +1,386 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", + "Resources": { + "amplifyAuthauthenticatedUserRoleD8DA3689": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:f53c9465-a0fb-4a04-81d2-b13c6999b9a2" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/auth/amplifyAuth/authenticatedUserRole/Resource" + } + }, + "amplifyAuthunauthenticatedUserRole2B524D9E": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:f53c9465-a0fb-4a04-81d2-b13c6999b9a2" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "unauthenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/auth/amplifyAuth/unauthenticatedUserRole/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/02LwQrCMBBEv6X3dK0BvUtPXkQqniUmq26bbqBZLRLy71Kk2tPMvJnRoDcVVIUZY2ldV3q6QjpgFHQnMbZTZoyXZMOdSQKkc8ThGIJX9Y1/fja1J2RZVn+yd8hC8p7Py9wEjzsRYx89smRFpoc0wWk4ac5ZcXAIbVy9tIb1FqqijUTl8GShHqH56gf10GUazgAAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/auth/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifyprojectboardse2esandboxb2cbfff775authamplifyAuthUserPoolE690205FRef": { + "Value": "us-east-1_KIRz8bn0l" + }, + "amplifyprojectboardse2esandboxb2cbfff775authamplifyAuthUserPoolAppClient619348A5Ref": { + "Value": "5u0pu7spa0tin8np6oitsr50ke" + }, + "amplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref": { + "Value": "us-east-1:f53c9465-a0fb-4a04-81d2-b13c6999b9a2" + }, + "amplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref": { + "Value": "amplify-projectboa2604142-amplifyAuthauthenticatedU-1jxM3hVSjIDm" + }, + "amplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref": { + "Value": "amplify-projectboa2604142-amplifyAuthunauthenticate-LvEI2or1a1b4" + } + } +} diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-e2e-sandbox-x-auth179371D7-x.__to__.amplify-projectboards-e2e-sandbox-x-auth179371D7-x-holding.target.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-e2e-sandbox-x-auth179371D7-x.__to__.amplify-projectboards-e2e-sandbox-x-auth179371D7-x-holding.target.template.json new file mode 100644 index 00000000000..c791452caf0 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-e2e-sandbox-x-auth179371D7-x.__to__.amplify-projectboards-e2e-sandbox-x-auth179371D7-x-holding.target.template.json @@ -0,0 +1,211 @@ +{ + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "Temporary holding stack for Gen2 migration", + "Resources": { + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AccountRecoverySetting": { + "RecoveryMechanisms": [ + { + "Name": "verified_email", + "Priority": 1 + } + ] + }, + "AdminCreateUserConfig": { + "AllowAdminCreateUserOnly": false + }, + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": 8, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false, + "TemporaryPasswordValidityDays": 7 + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "SmsVerificationMessage": "The verification code to your new account is {####}", + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolTags": { + "amplify:deployment-type": "sandbox", + "amplify:friendly-name": "amplifyAuth", + "created-by": "amplify" + }, + "UsernameAttributes": [ + "email" + ], + "UsernameConfiguration": { + "CaseSensitive": false + }, + "VerificationMessageTemplate": { + "DefaultEmailOption": "CONFIRM_WITH_CODE", + "EmailMessage": "Your verification code is {####}", + "EmailSubject": "Your verification code", + "SmsMessage": "The verification code to your new account is {####}" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/auth/amplifyAuth/UserPool/Resource" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 43200, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": "us-east-1_KIRz8bn0l" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlows": [ + "code" + ], + "AllowedOAuthFlowsUserPoolClient": true, + "AllowedOAuthScopes": [ + "profile", + "phone", + "email", + "openid", + "aws.cognito.signin.user.admin" + ], + "CallbackURLs": [ + "https://example.com" + ], + "ExplicitAuthFlows": [ + "ALLOW_CUSTOM_AUTH", + "ALLOW_USER_SRP_AUTH", + "ALLOW_REFRESH_TOKEN_AUTH" + ], + "PreventUserExistenceErrors": "ENABLED", + "SupportedIdentityProviders": [ + "COGNITO" + ], + "UserPoolId": "us-east-1_KIRz8bn0l" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/auth/amplifyAuth/UserPoolAppClient/Resource" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": true, + "CognitoIdentityProviders": [ + { + "ClientId": "5u0pu7spa0tin8np6oitsr50ke", + "ProviderName": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_KIRz8bn0l" + ] + ] + } + } + ], + "IdentityPoolTags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "SupportedLoginProviders": {} + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/auth/amplifyAuth/IdentityPool" + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:f53c9465-a0fb-4a04-81d2-b13c6999b9a2", + "RoleMappings": { + "UserPoolWebClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_KIRz8bn0l", + ":", + "5u0pu7spa0tin8np6oitsr50ke" + ] + ] + }, + "Type": "Token" + } + }, + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-projectboa2604142-amplifyAuthunauthenticate-LvEI2or1a1b4", + "authenticated": "arn:aws:iam::123456789012:role/amplify-projectboa2604142-amplifyAuthauthenticatedU-1jxM3hVSjIDm" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/auth/amplifyAuth/IdentityPoolRoleAttachment" + } + } + }, + "Outputs": {} +} diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x.__to__.amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x-holding.mappings.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x.__to__.amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x-holding.mappings.json new file mode 100644 index 00000000000..58606e0c806 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x.__to__.amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x-holding.mappings.json @@ -0,0 +1,12 @@ +[ + { + "Source": { + "StackName": "amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x", + "LogicalResourceId": "projectboards34b9a7f3c2ca489293910116c994688bxgen2xBucket0114CDD0" + }, + "Destination": { + "StackName": "amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x-holding", + "LogicalResourceId": "projectboards34b9a7f3c2ca489293910116c994688bxgen2xBucket0114CDD0" + } + } +] diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x.__to__.amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x-holding.source.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x.__to__.amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x-holding.source.template.json new file mode 100644 index 00000000000..bfdcfd78250 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x.__to__.amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x-holding.source.template.json @@ -0,0 +1,631 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", + "Resources": { + "projectboards34b9a7f3c2ca489293910116c994688bxgen2xBucketPolicyA46B3F94": { + "Type": "AWS::S3::BucketPolicy", + "Properties": { + "Bucket": "amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:*", + "Condition": { + "Bool": { + "aws:SecureTransport": "false" + } + }, + "Effect": "Deny", + "Principal": { + "AWS": "*" + }, + "Resource": [ + "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + "/*" + ] + ] + } + ] + }, + { + "Action": [ + "s3:PutBucketPolicy", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*" + ], + "Effect": "Allow", + "Principal": { + "AWS": "arn:aws:iam::123456789012:role/amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + }, + "Resource": [ + "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/storage/projectboards34b9a7f3c2ca489293910116c994688bx-gen2-x/Bucket/Policy/Resource" + } + }, + "projectboards34b9a7f3c2ca489293910116c994688bxgen2xBucketAutoDeleteObjectsCustomResourceEA4B9FA5": { + "Type": "Custom::S3AutoDeleteObjects", + "Properties": { + "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "BucketName": "amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/storage/projectboards34b9a7f3c2ca489293910116c994688bx-gen2-x/Bucket/AutoDeleteObjectsCustomResource/Default" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ] + }, + "ManagedPolicyArns": [ + { + "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" + }, + "Timeout": 900, + "MemorySize": 128, + "Handler": "index.handler", + "Role": "arn:aws:iam::123456789012:role/amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Runtime": "nodejs22.x", + "Description": { + "Fn::Join": [ + "", + [ + "Lambda function for auto-deleting objects in ", + "amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + " S3 bucket." + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", + "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", + "aws:asset:property": "Code" + } + }, + "PROJECTBOARDS34B9A7F3C2CA489293910116C994688B39ACFGEN2GUBUKOEDPUBUCKETNAMEParameter4A2DFBF7": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/projectboards/e2e-sandbox-x/PROJECTBOARDS_34_B_9_A_7_F_3_C_2_CA_489293910116_C_994688_B_39_ACF_GEN_2_GUBUKOEDPU_BUCKET_NAME", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": "amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/storage/PROJECTBOARDS_34_B_9_A_7_F_3_C_2_CA_489293910116_C_994688_B_39_ACF_GEN_2_GUBUKOEDPU_BUCKET_NAMEParameter/Resource" + } + }, + "amplifyprojectboardse2esandboxb2cbfff775storageAccess3692CDB92": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + "/public/*" + ] + ] + } + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/*", + "public/" + ] + } + }, + "Effect": "Allow", + "Resource": "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "amplifyprojectboardse2esandboxb2cbfff775storageAccess3692CDB92", + "Roles": [ + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/storage/amplify-projectboards-e2e-sandbox-x--storageAccess3/Resource" + } + }, + "amplifyprojectboardse2esandboxb2cbfff775storageAccess426533AE4": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:PutObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/*", + "public/", + "protected/*", + "protected/", + "private/*", + "private/" + ] + } + }, + "Effect": "Allow", + "Resource": "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h" + }, + { + "Action": "s3:DeleteObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + "/private/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "amplifyprojectboardse2esandboxb2cbfff775storageAccess426533AE4", + "Roles": [ + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/storage/amplify-projectboards-e2e-sandbox-x--storageAccess4/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/5WNy07DMBBFv6VZO0NIBQt2fawhapYIIdcZokliW/JMWpDlf0epJQJLVnNH5z5qqB8qqDb6yqXpxnKiM8RnZMGuFW1Gpa/8HnkLcT+bEUUdPlxWr7Gw9EmueCp+hxc/b+GGGLJ1N4s/4oSCL+cBjXCR3lRGjZ/IfK2t+f9Hdw60ogUtult1UswWYiuBXN/ooC0KhmXj50mKtIW4rmeVkjrMLN6ekP0cDC5o1X9QE/yFOgx7zah2zCit6J5cn5TzHcLAd5e6hvtHqDYDE5VhdkIW4ZTvN8L1/x56AQAA" + }, + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/storage/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref": { + "Type": "String" + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref": { + "Type": "String" + } + }, + "Outputs": { + "amplifyprojectboardse2esandboxb2cbfff775storageprojectboards34b9a7f3c2ca489293910116c994688bxgen2xBucket352B0D2BRef": { + "Value": "amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h" + } + } +} diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x.__to__.amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x-holding.target.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x.__to__.amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x-holding.target.template.json new file mode 100644 index 00000000000..5b8992220e6 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x.__to__.amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x-holding.target.template.json @@ -0,0 +1,71 @@ +{ + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "Temporary holding stack for Gen2 migration", + "Resources": { + "projectboards34b9a7f3c2ca489293910116c994688bxgen2xBucket0114CDD0": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "BucketKeyEnabled": false, + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "MaxAge": 3000 + } + ] + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "projectboards34b9a7f3c2ca489293910116c994688bx-gen2-x" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/storage/projectboards34b9a7f3c2ca489293910116c994688bx-gen2-x/Bucket/Resource" + } + } + }, + "Outputs": {} +} diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.mappings.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.mappings.json deleted file mode 100644 index ff5c6741705..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.mappings.json +++ /dev/null @@ -1,52 +0,0 @@ -[ - { - "Source": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" - }, - "Destination": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" - } - }, - { - "Source": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" - }, - "Destination": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" - } - }, - { - "Source": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" - }, - "Destination": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" - } - }, - { - "Source": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" - }, - "Destination": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" - } - }, - { - "Source": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" - }, - "Destination": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" - } - } -] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.source.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.source.template.json deleted file mode 100644 index 29d614e77f0..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.source.template.json +++ /dev/null @@ -1,398 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.11.1\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", - "Resources": { - "amplifyAuthauthenticatedUserRoleD8DA3689": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:f8ab7c96-56f6-46d4-8346-0a5235221fba" - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "authenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/authenticatedUserRole/Resource" - } - }, - "amplifyAuthunauthenticatedUserRole2B524D9E": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:f8ab7c96-56f6-46d4-8346-0a5235221fba" - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "unauthenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/unauthenticatedUserRole/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/02LwQrCMBBEv8V7urbBg1fpyYtIxbPEZNVt0w00q0VC/l2KVHuamTczGvSmgnJlxlhY1xWerpAOGAXdSYztlBnjJdlwZ5IA6RxxOIbgVX3jn59N7QlZltWf7B2ykLzn8zI3weNOxNhHjyxZkekhTXAaTppzVhwcQhvXL62h2kK5aiNRMTxZqEdovvoBH9Args4AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Outputs": { - "amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthUserPool33BA12FBRef": { - "Value": "us-east-1_pXlpWF7QY" - }, - "amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthUserPoolAppClient0435B83FRef": { - "Value": "oqgm3faeod0cr1b4v63iv4a7a" - }, - "amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref": { - "Value": "us-east-1:f8ab7c96-56f6-46d4-8346-0a5235221fba" - }, - "amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef": { - "Value": "amplify-projectboards-ge-amplifyAuthauthenticatedU-HuWvFKttqdhF" - }, - "amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef": { - "Value": "amplify-projectboards-ge-amplifyAuthunauthenticate-GHLvLgqZHYnT" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.target.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.target.template.json deleted file mode 100644 index 8656382c8f9..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ-holding.target.template.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "Temporary holding stack for Gen2 migration", - "Resources": { - "amplifyAuthUserPool4BA7F805": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AccountRecoverySetting": { - "RecoveryMechanisms": [ - { - "Name": "verified_email", - "Priority": 1 - } - ] - }, - "AdminCreateUserConfig": { - "AllowAdminCreateUserOnly": false - }, - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": "Your verification code is {####}", - "EmailVerificationSubject": "Your verification code", - "MfaConfiguration": "OFF", - "Policies": { - "PasswordPolicy": { - "MinimumLength": 8, - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false, - "TemporaryPasswordValidityDays": 7 - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "SmsVerificationMessage": "The verification code to your new account is {####}", - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolTags": { - "amplify:app-id": "projectboards", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "amplify:friendly-name": "amplifyAuth", - "created-by": "amplify" - }, - "UsernameAttributes": [ - "email" - ], - "UsernameConfiguration": { - "CaseSensitive": false - }, - "VerificationMessageTemplate": { - "DefaultEmailOption": "CONFIRM_WITH_CODE", - "EmailMessage": "Your verification code is {####}", - "EmailSubject": "Your verification code", - "SmsMessage": "The verification code to your new account is {####}" - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/UserPool/Resource" - } - }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 43200, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": "us-east-1_pXlpWF7QY" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, - "amplifyAuthUserPoolAppClient2626C6F8": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlows": [ - "code" - ], - "AllowedOAuthFlowsUserPoolClient": true, - "AllowedOAuthScopes": [ - "profile", - "phone", - "email", - "openid", - "aws.cognito.signin.user.admin" - ], - "CallbackURLs": [ - "https://example.com" - ], - "ExplicitAuthFlows": [ - "ALLOW_CUSTOM_AUTH", - "ALLOW_USER_SRP_AUTH", - "ALLOW_REFRESH_TOKEN_AUTH" - ], - "PreventUserExistenceErrors": "ENABLED", - "SupportedIdentityProviders": [ - "COGNITO" - ], - "UserPoolId": "us-east-1_pXlpWF7QY" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/UserPoolAppClient/Resource" - } - }, - "amplifyAuthIdentityPool3FDE84CC": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": true, - "CognitoIdentityProviders": [ - { - "ClientId": "oqgm3faeod0cr1b4v63iv4a7a", - "ProviderName": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - "us-east-1_pXlpWF7QY" - ] - ] - } - } - ], - "IdentityPoolTags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "SupportedLoginProviders": {} - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/IdentityPool" - } - }, - "amplifyAuthIdentityPoolRoleAttachment045F17C8": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": "us-east-1:f8ab7c96-56f6-46d4-8346-0a5235221fba", - "RoleMappings": { - "UserPoolWebClientRoleMapping": { - "AmbiguousRoleResolution": "AuthenticatedRole", - "IdentityProvider": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - "us-east-1_pXlpWF7QY", - ":", - "oqgm3faeod0cr1b4v63iv4a7a" - ] - ] - }, - "Type": "Token" - } - }, - "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-projectboards-ge-amplifyAuthunauthenticate-GHLvLgqZHYnT", - "authenticated": "arn:aws:iam::123456789012:role/amplify-projectboards-ge-amplifyAuthauthenticatedU-HuWvFKttqdhF" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/IdentityPoolRoleAttachment" - } - } - }, - "Outputs": {} -} \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.mappings.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.mappings.json deleted file mode 100644 index a5ea8fd59de..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.mappings.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "Source": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ", - "LogicalResourceId": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F" - }, - "Destination": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding", - "LogicalResourceId": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F" - } - } -] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.source.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.source.template.json deleted file mode 100644 index ead58590739..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.source.template.json +++ /dev/null @@ -1,621 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", - "Resources": { - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketPolicy8CF7A616": { - "Type": "AWS::S3::BucketPolicy", - "Properties": { - "Bucket": "amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:*", - "Condition": { - "Bool": { - "aws:SecureTransport": "false" - } - }, - "Effect": "Deny", - "Principal": { - "AWS": "*" - }, - "Resource": [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - "/*" - ] - ] - } - ] - }, - { - "Action": [ - "s3:PutBucketPolicy", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*" - ], - "Effect": "Allow", - "Principal": { - "AWS": "arn:aws:iam::123456789012:role/amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - }, - "Resource": [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - "/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/projectboards34b9a7f3c2ca489293910116c994688b02940-gen2-main/Bucket/Policy/Resource" - } - }, - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketAutoDeleteObjectsCustomResource1C396A89": { - "Type": "Custom::S3AutoDeleteObjects", - "Properties": { - "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "BucketName": "amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv" - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/projectboards34b9a7f3c2ca489293910116c994688b02940-gen2-main/Bucket/AutoDeleteObjectsCustomResource/Default" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ] - }, - "ManagedPolicyArns": [ - { - "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" - }, - "Timeout": 900, - "MemorySize": 128, - "Handler": "index.handler", - "Role": "arn:aws:iam::123456789012:role/amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Runtime": "nodejs22.x", - "Description": { - "Fn::Join": [ - "", - [ - "Lambda function for auto-deleting objects in ", - "amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - " S3 bucket." - ] - ] - } - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", - "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", - "aws:asset:property": "Code" - } - }, - "PROJECTBOARDS34B9A7F3C2CA489293910116C994688B02940GEN2MAINBUCKETNAMEParameter612A82C7": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/projectboards/gen2main-branch-886dbd2dec/PROJECTBOARDS_34_B_9_A_7_F_3_C_2_CA_489293910116_C_994688_B_02940_GEN_2_MAIN_BUCKET_NAME", - "Tags": { - "amplify:app-id": "projectboards", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": "amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/PROJECTBOARDS_34_B_9_A_7_F_3_C_2_CA_489293910116_C_994688_B_02940_GEN_2_MAIN_BUCKET_NAMEParameter/Resource" - } - }, - "amplifyprojectboardsgen2mainbranch886dbd2decstorageAccess3390DFFBD": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - "/public/*" - ] - ] - } - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/*", - "public/" - ] - } - }, - "Effect": "Allow", - "Resource": "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "amplifyprojectboardsgen2mainbranch886dbd2decstorageAccess3390DFFBD", - "Roles": [ - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/amplify-projectboards-gen2main-branch-886dbd2dec--storageAccess3/Resource" - } - }, - "amplifyprojectboardsgen2mainbranch886dbd2decstorageAccess4C92335C8": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:PutObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/*", - "public/", - "protected/*", - "protected/", - "private/*", - "private/" - ] - } - }, - "Effect": "Allow", - "Resource": "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv" - }, - { - "Action": "s3:DeleteObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - "/private/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "amplifyprojectboardsgen2mainbranch886dbd2decstorageAccess4C92335C8", - "Roles": [ - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/amplify-projectboards-gen2main-branch-886dbd2dec--storageAccess4/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WLTQ6CMBCFz8K+jIgu3Cp7Q+AAppaRjNA26QwQ03B3QyASV+97fznk5yNkiZ44NU2X9vSEeEcWbGrRplN64kfkE8TbYDoUVbzcRquUvifz2ePVz4rZQqwlkGtLHbRFwbCsfmZWpC3E/b89Z1UMLN5WyH4IBpdq57+qDH6kBsNNM6orM0otuiXXzsr5BuHNhzHP4XiBLHkzURoGJ2QRqlW/LyyDFv0AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef": { - "Type": "String" - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef": { - "Type": "String" - } - }, - "Outputs": { - "amplifyprojectboardsgen2mainbranch886dbd2decstorageprojectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucket2623A05BRef": { - "Value": "amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.target.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.target.template.json deleted file mode 100644 index 7375ab1657a..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ-holding.target.template.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "Temporary holding stack for Gen2 migration", - "Resources": { - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "BucketKeyEnabled": false, - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "MaxAge": 3000 - } - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "projectboards34b9a7f3c2ca489293910116c994688b02940-gen2-main" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/projectboards34b9a7f3c2ca489293910116c994688b02940-gen2-main/Bucket/Resource" - } - } - }, - "Outputs": {} -} \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.mappings.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.mappings.json deleted file mode 100644 index 07eccbab939..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.mappings.json +++ /dev/null @@ -1,52 +0,0 @@ -[ - { - "Source": { - "StackName": "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV", - "LogicalResourceId": "UserPool" - }, - "Destination": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", - "LogicalResourceId": "amplifyAuthUserPool4BA7F805" - } - }, - { - "Source": { - "StackName": "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV", - "LogicalResourceId": "UserPoolClientWeb" - }, - "Destination": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", - "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" - } - }, - { - "Source": { - "StackName": "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV", - "LogicalResourceId": "UserPoolClient" - }, - "Destination": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", - "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" - } - }, - { - "Source": { - "StackName": "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV", - "LogicalResourceId": "IdentityPool" - }, - "Destination": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", - "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" - } - }, - { - "Source": { - "StackName": "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV", - "LogicalResourceId": "IdentityPoolRoleMap" - }, - "Destination": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ", - "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" - } - } -] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.source.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.source.template.json deleted file mode 100644 index 0a3ee93ddce..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.source.template.json +++ /dev/null @@ -1,190 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "env": { - "Type": "String" - }, - "identityPoolName": { - "Type": "String" - }, - "allowUnauthenticatedIdentities": { - "Type": "String" - }, - "resourceNameTruncated": { - "Type": "String" - }, - "userPoolName": { - "Type": "String" - }, - "autoVerifiedAttributes": { - "Type": "CommaDelimitedList" - }, - "mfaConfiguration": { - "Type": "String" - }, - "mfaTypes": { - "Type": "CommaDelimitedList" - }, - "smsAuthenticationMessage": { - "Type": "String" - }, - "smsVerificationMessage": { - "Type": "String" - }, - "emailVerificationSubject": { - "Type": "String" - }, - "emailVerificationMessage": { - "Type": "String" - }, - "defaultPasswordPolicy": { - "Type": "String" - }, - "passwordPolicyMinLength": { - "Type": "String" - }, - "passwordPolicyCharacters": { - "Type": "CommaDelimitedList" - }, - "requiredAttributes": { - "Type": "CommaDelimitedList" - }, - "aliasAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientGenerateSecret": { - "Type": "String" - }, - "userpoolClientRefreshTokenValidity": { - "Type": "String" - }, - "userpoolClientWriteAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientReadAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientLambdaRole": { - "Type": "String" - }, - "userpoolClientSetAttributes": { - "Type": "String" - }, - "sharedId": { - "Type": "String" - }, - "resourceName": { - "Type": "String" - }, - "authSelections": { - "Type": "String" - }, - "useDefault": { - "Type": "String" - }, - "usernameAttributes": { - "Type": "CommaDelimitedList" - }, - "userPoolGroupList": { - "Type": "CommaDelimitedList" - }, - "serviceName": { - "Type": "String" - }, - "usernameCaseSensitive": { - "Type": "String" - }, - "useEnabledMfas": { - "Type": "String" - }, - "authRoleArn": { - "Type": "String" - }, - "unauthRoleArn": { - "Type": "String" - }, - "breakCircularDependency": { - "Type": "String" - }, - "dependsOn": { - "Type": "CommaDelimitedList" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - "main", - "NONE" - ] - } - }, - "Resources": { - "UserPoolClientRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - }, - "Action": "sts:AssumeRole" - } - ] - }, - "RoleName": { - "Fn::Join": [ - "", - [ - "upClientLambdaRole54040ecc", - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV" - ] - } - ] - }, - "-", - "main" - ] - ] - } - } - } - }, - "Outputs": { - "IdentityPoolId": { - "Description": "Id for the identity pool", - "Value": "us-east-1:88399477-86ba-4d93-aa1a-13242b53b791" - }, - "IdentityPoolName": { - "Value": "projectboards54040ecc_identitypool_54040ecc__main" - }, - "UserPoolId": { - "Description": "Id for the user pool", - "Value": "us-east-1_ct5s4IEz3" - }, - "UserPoolArn": { - "Description": "Arn for the user pool", - "Value": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_ct5s4IEz3" - }, - "UserPoolName": { - "Value": "projectboards54040ecc_userpool_54040ecc" - }, - "AppClientIDWeb": { - "Description": "The user pool app client id for web", - "Value": "1vpeihq8svf62sepfnkuvp8sld" - }, - "AppClientID": { - "Description": "The user pool app client id", - "Value": "3dbqrlfs0a0g4a6ihsanen6i5" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.target.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.target.template.json deleted file mode 100644 index 9e7b4fc0c68..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.target.template.json +++ /dev/null @@ -1,524 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.11.1\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", - "Resources": { - "amplifyAuthauthenticatedUserRoleD8DA3689": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:f8ab7c96-56f6-46d4-8346-0a5235221fba" - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "authenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/authenticatedUserRole/Resource" - } - }, - "amplifyAuthunauthenticatedUserRole2B524D9E": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:f8ab7c96-56f6-46d4-8346-0a5235221fba" - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "unauthenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/unauthenticatedUserRole/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/02LwQrCMBBEv8V7urbBg1fpyYtIxbPEZNVt0w00q0VC/l2KVHuamTczGvSmgnJlxlhY1xWerpAOGAXdSYztlBnjJdlwZ5IA6RxxOIbgVX3jn59N7QlZltWf7B2ykLzn8zI3weNOxNhHjyxZkekhTXAaTppzVhwcQhvXL62h2kK5aiNRMTxZqEdovvoBH9Args4AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - }, - "amplifyAuthUserPool4BA7F805": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": "Your verification code is {####}", - "EmailVerificationSubject": "Your verification code", - "MfaConfiguration": "OFF", - "Policies": { - "PasswordPolicy": { - "MinimumLength": "8", - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolName": { - "Fn::Join": [ - "", - [ - "projectboards54040ecc_userpool_54040ecc", - "-", - "main" - ] - ] - }, - "UsernameAttributes": [ - "email" - ], - "UsernameConfiguration": { - "CaseSensitive": false - } - } - }, - "amplifyAuthUserPoolAppClient2626C6F8": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "projec54040ecc_app_clientWeb", - "RefreshTokenValidity": "30", - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": "us-east-1_ct5s4IEz3" - } - }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "projec54040ecc_app_client", - "GenerateSecret": "false", - "RefreshTokenValidity": "30", - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": "us-east-1_ct5s4IEz3" - } - }, - "amplifyAuthIdentityPool3FDE84CC": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": "true", - "CognitoIdentityProviders": [ - { - "ClientId": "3dbqrlfs0a0g4a6ihsanen6i5", - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": "us-east-1_ct5s4IEz3" - } - ] - } - }, - { - "ClientId": "1vpeihq8svf62sepfnkuvp8sld", - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": "us-east-1_ct5s4IEz3" - } - ] - } - } - ], - "IdentityPoolName": { - "Fn::Join": [ - "", - [ - "projectboards54040ecc_identitypool_54040ecc__", - "main" - ] - ] - } - } - }, - "amplifyAuthIdentityPoolRoleAttachment045F17C8": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": "us-east-1:88399477-86ba-4d93-aa1a-13242b53b791", - "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-projectboards-main-02940-unauthRole", - "authenticated": "arn:aws:iam::123456789012:role/amplify-projectboards-main-02940-authRole" - } - } - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Outputs": { - "amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthUserPool33BA12FBRef": { - "Value": "us-east-1_pXlpWF7QY" - }, - "amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthUserPoolAppClient0435B83FRef": { - "Value": "oqgm3faeod0cr1b4v63iv4a7a" - }, - "amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref": { - "Value": "us-east-1:f8ab7c96-56f6-46d4-8346-0a5235221fba" - }, - "amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef": { - "Value": "amplify-projectboards-ge-amplifyAuthauthenticatedU-HuWvFKttqdhF" - }, - "amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef": { - "Value": "amplify-projectboards-ge-amplifyAuthunauthenticate-GHLvLgqZHYnT" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.mappings.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.mappings.json deleted file mode 100644 index 129799390d2..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.mappings.json +++ /dev/null @@ -1,12 +0,0 @@ -[ - { - "Source": { - "StackName": "amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY", - "LogicalResourceId": "S3Bucket" - }, - "Destination": { - "StackName": "amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ", - "LogicalResourceId": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F" - } - } -] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.source.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.source.template.json deleted file mode 100644 index 5df877c8f45..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.source.template.json +++ /dev/null @@ -1,469 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-S3\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "env": { - "Type": "String" - }, - "bucketName": { - "Type": "String" - }, - "authRoleName": { - "Type": "String" - }, - "unauthRoleName": { - "Type": "String" - }, - "authPolicyName": { - "Type": "String" - }, - "unauthPolicyName": { - "Type": "String" - }, - "s3PublicPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3PrivatePolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3ProtectedPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3UploadsPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3ReadPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3PermissionsAuthenticatedPublic": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedProtected": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedPrivate": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedUploads": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsGuestPublic": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsGuestUploads": { - "Type": "String", - "Default": "DISALLOW" - }, - "AuthenticatedAllowList": { - "Type": "String", - "Default": "DISALLOW" - }, - "GuestAllowList": { - "Type": "String", - "Default": "DISALLOW" - }, - "selectedGuestPermissions": { - "Type": "CommaDelimitedList", - "Default": "NONE" - }, - "selectedAuthenticatedPermissions": { - "Type": "CommaDelimitedList", - "Default": "NONE" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - "main", - "NONE" - ] - }, - "CreateAuthPublic": { - "Fn::Not": [ - { - "Fn::Equals": [ - "s3:PutObject,s3:GetObject,s3:DeleteObject", - "DISALLOW" - ] - } - ] - }, - "CreateAuthProtected": { - "Fn::Not": [ - { - "Fn::Equals": [ - "s3:PutObject,s3:GetObject,s3:DeleteObject", - "DISALLOW" - ] - } - ] - }, - "CreateAuthPrivate": { - "Fn::Not": [ - { - "Fn::Equals": [ - "s3:PutObject,s3:GetObject,s3:DeleteObject", - "DISALLOW" - ] - } - ] - }, - "CreateAuthUploads": { - "Fn::Not": [ - { - "Fn::Equals": [ - "s3:PutObject", - "DISALLOW" - ] - } - ] - }, - "CreateGuestPublic": { - "Fn::Not": [ - { - "Fn::Equals": [ - "s3:GetObject", - "DISALLOW" - ] - } - ] - }, - "CreateGuestUploads": { - "Fn::Not": [ - { - "Fn::Equals": [ - "DISALLOW", - "DISALLOW" - ] - } - ] - }, - "AuthReadAndList": { - "Fn::Not": [ - { - "Fn::Equals": [ - "ALLOW", - "DISALLOW" - ] - } - ] - }, - "GuestReadAndList": { - "Fn::Not": [ - { - "Fn::Equals": [ - "ALLOW", - "DISALLOW" - ] - } - ] - } - }, - "Outputs": { - "BucketName": { - "Description": "Bucket name for the S3 bucket", - "Value": "projectboards34b9a7f3c2ca489293910116c994688b02940-main" - }, - "Region": { - "Value": "us-east-1" - } - }, - "Resources": { - "S3AuthPublicPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - "s3:PutObject,s3:GetObject,s3:DeleteObject" - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "projectboards34b9a7f3c2ca489293910116c994688b02940-main", - "/public/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "Public_policy_69f8ff1c", - "Roles": [ - "amplify-projectboards-main-02940-authRole" - ] - }, - "Condition": "CreateAuthPublic" - }, - "S3AuthProtectedPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - "s3:PutObject,s3:GetObject,s3:DeleteObject" - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "projectboards34b9a7f3c2ca489293910116c994688b02940-main", - "/protected/${cognito-identity.amazonaws.com:sub}/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "Protected_policy_69f8ff1c", - "Roles": [ - "amplify-projectboards-main-02940-authRole" - ] - }, - "Condition": "CreateAuthProtected" - }, - "S3AuthPrivatePolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - "s3:PutObject,s3:GetObject,s3:DeleteObject" - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "projectboards34b9a7f3c2ca489293910116c994688b02940-main", - "/private/${cognito-identity.amazonaws.com:sub}/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "Private_policy_69f8ff1c", - "Roles": [ - "amplify-projectboards-main-02940-authRole" - ] - }, - "Condition": "CreateAuthPrivate" - }, - "S3AuthUploadPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - "s3:PutObject" - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "projectboards34b9a7f3c2ca489293910116c994688b02940-main", - "/uploads/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "Uploads_policy_69f8ff1c", - "Roles": [ - "amplify-projectboards-main-02940-authRole" - ] - }, - "Condition": "CreateAuthUploads" - }, - "S3GuestPublicPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - "s3:GetObject" - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "projectboards34b9a7f3c2ca489293910116c994688b02940-main", - "/public/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "Public_policy_69f8ff1c", - "Roles": [ - "amplify-projectboards-main-02940-unauthRole" - ] - }, - "Condition": "CreateGuestPublic" - }, - "S3AuthReadPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "projectboards34b9a7f3c2ca489293910116c994688b02940-main", - "/protected/*" - ] - ] - } - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/", - "public/*", - "protected/", - "protected/*", - "private/${cognito-identity.amazonaws.com:sub}/", - "private/${cognito-identity.amazonaws.com:sub}/*" - ] - } - }, - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "projectboards34b9a7f3c2ca489293910116c994688b02940-main" - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "read_policy_69f8ff1c", - "Roles": [ - "amplify-projectboards-main-02940-authRole" - ] - }, - "Condition": "AuthReadAndList" - }, - "S3GuestReadPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "projectboards34b9a7f3c2ca489293910116c994688b02940-main", - "/protected/*" - ] - ] - } - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/", - "public/*", - "protected/", - "protected/*" - ] - } - }, - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "projectboards34b9a7f3c2ca489293910116c994688b02940-main" - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "read_policy_69f8ff1c", - "Roles": [ - "amplify-projectboards-main-02940-unauthRole" - ] - }, - "Condition": "GuestReadAndList" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.target.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.target.template.json deleted file mode 100644 index 3f1975883b2..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.__to__.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.target.template.json +++ /dev/null @@ -1,685 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", - "Resources": { - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketPolicy8CF7A616": { - "Type": "AWS::S3::BucketPolicy", - "Properties": { - "Bucket": "amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:*", - "Condition": { - "Bool": { - "aws:SecureTransport": "false" - } - }, - "Effect": "Deny", - "Principal": { - "AWS": "*" - }, - "Resource": [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - "/*" - ] - ] - } - ] - }, - { - "Action": [ - "s3:PutBucketPolicy", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*" - ], - "Effect": "Allow", - "Principal": { - "AWS": "arn:aws:iam::123456789012:role/amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - }, - "Resource": [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - "/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/projectboards34b9a7f3c2ca489293910116c994688b02940-gen2-main/Bucket/Policy/Resource" - } - }, - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketAutoDeleteObjectsCustomResource1C396A89": { - "Type": "Custom::S3AutoDeleteObjects", - "Properties": { - "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "BucketName": "amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv" - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/projectboards34b9a7f3c2ca489293910116c994688b02940-gen2-main/Bucket/AutoDeleteObjectsCustomResource/Default" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ] - }, - "ManagedPolicyArns": [ - { - "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" - }, - "Timeout": 900, - "MemorySize": 128, - "Handler": "index.handler", - "Role": "arn:aws:iam::123456789012:role/amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Runtime": "nodejs22.x", - "Description": { - "Fn::Join": [ - "", - [ - "Lambda function for auto-deleting objects in ", - "amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - " S3 bucket." - ] - ] - } - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", - "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", - "aws:asset:property": "Code" - } - }, - "PROJECTBOARDS34B9A7F3C2CA489293910116C994688B02940GEN2MAINBUCKETNAMEParameter612A82C7": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/projectboards/gen2main-branch-886dbd2dec/PROJECTBOARDS_34_B_9_A_7_F_3_C_2_CA_489293910116_C_994688_B_02940_GEN_2_MAIN_BUCKET_NAME", - "Tags": { - "amplify:app-id": "projectboards", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": "amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/PROJECTBOARDS_34_B_9_A_7_F_3_C_2_CA_489293910116_C_994688_B_02940_GEN_2_MAIN_BUCKET_NAMEParameter/Resource" - } - }, - "amplifyprojectboardsgen2mainbranch886dbd2decstorageAccess3390DFFBD": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - "/public/*" - ] - ] - } - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/*", - "public/" - ] - } - }, - "Effect": "Allow", - "Resource": "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "amplifyprojectboardsgen2mainbranch886dbd2decstorageAccess3390DFFBD", - "Roles": [ - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/amplify-projectboards-gen2main-branch-886dbd2dec--storageAccess3/Resource" - } - }, - "amplifyprojectboardsgen2mainbranch886dbd2decstorageAccess4C92335C8": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:PutObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/*", - "public/", - "protected/*", - "protected/", - "private/*", - "private/" - ] - } - }, - "Effect": "Allow", - "Resource": "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv" - }, - { - "Action": "s3:DeleteObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - "/private/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "amplifyprojectboardsgen2mainbranch886dbd2decstorageAccess4C92335C8", - "Roles": [ - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/amplify-projectboards-gen2main-branch-886dbd2dec--storageAccess4/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WLTQ6CMBCFz8K+jIgu3Cp7Q+AAppaRjNA26QwQ03B3QyASV+97fznk5yNkiZ44NU2X9vSEeEcWbGrRplN64kfkE8TbYDoUVbzcRquUvifz2ePVz4rZQqwlkGtLHbRFwbCsfmZWpC3E/b89Z1UMLN5WyH4IBpdq57+qDH6kBsNNM6orM0otuiXXzsr5BuHNhzHP4XiBLHkzURoGJ2QRqlW/LyyDFv0AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - }, - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketName": { - "Fn::Join": [ - "", - [ - "projectboards34b9a7f3c2ca489293910116c994688b", - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - "amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY" - ] - } - ] - }, - "-", - "main" - ] - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "Id": "S3CORSRuleId1", - "MaxAge": 3000 - } - ] - }, - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - } - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef": { - "Type": "String" - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef": { - "Type": "String" - } - }, - "Outputs": { - "amplifyprojectboardsgen2mainbranch886dbd2decstorageprojectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucket2623A05BRef": { - "Value": "amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-x-x-authprojectboards54040ecc-x.__to__.amplify-projectboards-e2e-sandbox-x-auth179371D7-x.mappings.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-x-x-authprojectboards54040ecc-x.__to__.amplify-projectboards-e2e-sandbox-x-auth179371D7-x.mappings.json new file mode 100644 index 00000000000..c89b930f12c --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-x-x-authprojectboards54040ecc-x.__to__.amplify-projectboards-e2e-sandbox-x-auth179371D7-x.mappings.json @@ -0,0 +1,52 @@ +[ + { + "Source": { + "StackName": "amplify-projectboards-x-x-authprojectboards54040ecc-x", + "LogicalResourceId": "UserPool" + }, + "Destination": { + "StackName": "amplify-projectboards-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + } + }, + { + "Source": { + "StackName": "amplify-projectboards-x-x-authprojectboards54040ecc-x", + "LogicalResourceId": "UserPoolClientWeb" + }, + "Destination": { + "StackName": "amplify-projectboards-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + } + }, + { + "Source": { + "StackName": "amplify-projectboards-x-x-authprojectboards54040ecc-x", + "LogicalResourceId": "UserPoolClient" + }, + "Destination": { + "StackName": "amplify-projectboards-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + } + }, + { + "Source": { + "StackName": "amplify-projectboards-x-x-authprojectboards54040ecc-x", + "LogicalResourceId": "IdentityPool" + }, + "Destination": { + "StackName": "amplify-projectboards-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + } + }, + { + "Source": { + "StackName": "amplify-projectboards-x-x-authprojectboards54040ecc-x", + "LogicalResourceId": "IdentityPoolRoleMap" + }, + "Destination": { + "StackName": "amplify-projectboards-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + } + } +] diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-x-x-authprojectboards54040ecc-x.__to__.amplify-projectboards-e2e-sandbox-x-auth179371D7-x.source.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-x-x-authprojectboards54040ecc-x.__to__.amplify-projectboards-e2e-sandbox-x-auth179371D7-x.source.template.json new file mode 100644 index 00000000000..7f03f14488c --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-x-x-authprojectboards54040ecc-x.__to__.amplify-projectboards-e2e-sandbox-x-auth179371D7-x.source.template.json @@ -0,0 +1,190 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "identityPoolName": { + "Type": "String" + }, + "allowUnauthenticatedIdentities": { + "Type": "String" + }, + "resourceNameTruncated": { + "Type": "String" + }, + "userPoolName": { + "Type": "String" + }, + "autoVerifiedAttributes": { + "Type": "CommaDelimitedList" + }, + "mfaConfiguration": { + "Type": "String" + }, + "mfaTypes": { + "Type": "CommaDelimitedList" + }, + "smsAuthenticationMessage": { + "Type": "String" + }, + "smsVerificationMessage": { + "Type": "String" + }, + "emailVerificationSubject": { + "Type": "String" + }, + "emailVerificationMessage": { + "Type": "String" + }, + "defaultPasswordPolicy": { + "Type": "String" + }, + "passwordPolicyMinLength": { + "Type": "String" + }, + "passwordPolicyCharacters": { + "Type": "CommaDelimitedList" + }, + "requiredAttributes": { + "Type": "CommaDelimitedList" + }, + "aliasAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientGenerateSecret": { + "Type": "String" + }, + "userpoolClientRefreshTokenValidity": { + "Type": "String" + }, + "userpoolClientWriteAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientReadAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientLambdaRole": { + "Type": "String" + }, + "userpoolClientSetAttributes": { + "Type": "String" + }, + "sharedId": { + "Type": "String" + }, + "resourceName": { + "Type": "String" + }, + "authSelections": { + "Type": "String" + }, + "useDefault": { + "Type": "String" + }, + "usernameAttributes": { + "Type": "CommaDelimitedList" + }, + "userPoolGroupList": { + "Type": "CommaDelimitedList" + }, + "serviceName": { + "Type": "String" + }, + "usernameCaseSensitive": { + "Type": "String" + }, + "useEnabledMfas": { + "Type": "String" + }, + "authRoleArn": { + "Type": "String" + }, + "unauthRoleArn": { + "Type": "String" + }, + "breakCircularDependency": { + "Type": "String" + }, + "dependsOn": { + "Type": "CommaDelimitedList" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + "x", + "NONE" + ] + } + }, + "Resources": { + "UserPoolClientRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + }, + "Action": "sts:AssumeRole" + } + ] + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "upClientLambdaRole54040ecc", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + "amplify-projectboards-x-x-authprojectboards54040ecc-x" + ] + } + ] + }, + "-", + "x" + ] + ] + } + } + } + }, + "Outputs": { + "IdentityPoolId": { + "Description": "Id for the identity pool", + "Value": "us-east-1:b610ff34-8e52-4e93-9822-f56e9fca42fd" + }, + "IdentityPoolName": { + "Value": "projectboards54040ecc_identitypool_54040ecc__x" + }, + "UserPoolId": { + "Description": "Id for the user pool", + "Value": "us-east-1_RF9bhQiUc" + }, + "UserPoolArn": { + "Description": "Arn for the user pool", + "Value": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_RF9bhQiUc" + }, + "UserPoolName": { + "Value": "projectboards54040ecc_userpool_54040ecc" + }, + "AppClientIDWeb": { + "Description": "The user pool app client id for web", + "Value": "4165deda0ocqapbc08njs6jr0t" + }, + "AppClientID": { + "Description": "The user pool app client id", + "Value": "sqgpogjacv674kd5vogpkfpj5" + } + } +} diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-x-x-authprojectboards54040ecc-x.__to__.amplify-projectboards-e2e-sandbox-x-auth179371D7-x.target.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-x-x-authprojectboards54040ecc-x.__to__.amplify-projectboards-e2e-sandbox-x-auth179371D7-x.target.template.json new file mode 100644 index 00000000000..9af3b33398c --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-x-x-authprojectboards54040ecc-x.__to__.amplify-projectboards-e2e-sandbox-x-auth179371D7-x.target.template.json @@ -0,0 +1,512 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", + "Resources": { + "amplifyAuthauthenticatedUserRoleD8DA3689": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:f53c9465-a0fb-4a04-81d2-b13c6999b9a2" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/auth/amplifyAuth/authenticatedUserRole/Resource" + } + }, + "amplifyAuthunauthenticatedUserRole2B524D9E": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:f53c9465-a0fb-4a04-81d2-b13c6999b9a2" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "unauthenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/auth/amplifyAuth/unauthenticatedUserRole/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/02LwQrCMBBEv6X3dK0BvUtPXkQqniUmq26bbqBZLRLy71Kk2tPMvJnRoDcVVIUZY2ldV3q6QjpgFHQnMbZTZoyXZMOdSQKkc8ThGIJX9Y1/fja1J2RZVn+yd8hC8p7Py9wEjzsRYx89smRFpoc0wWk4ac5ZcXAIbVy9tIb1FqqijUTl8GShHqH56gf10GUazgAAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/auth/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + }, + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": "8", + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolName": { + "Fn::Join": [ + "", + [ + "projectboards54040ecc_userpool_54040ecc", + "-", + "x" + ] + ] + }, + "UsernameAttributes": [ + "email" + ], + "UsernameConfiguration": { + "CaseSensitive": false + } + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "projec54040ecc_app_clientWeb", + "RefreshTokenValidity": "30", + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": "us-east-1_RF9bhQiUc" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "projec54040ecc_app_client", + "GenerateSecret": "false", + "RefreshTokenValidity": "30", + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": "us-east-1_RF9bhQiUc" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": "true", + "CognitoIdentityProviders": [ + { + "ClientId": "sqgpogjacv674kd5vogpkfpj5", + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": "us-east-1_RF9bhQiUc" + } + ] + } + }, + { + "ClientId": "4165deda0ocqapbc08njs6jr0t", + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": "us-east-1_RF9bhQiUc" + } + ] + } + } + ], + "IdentityPoolName": { + "Fn::Join": [ + "", + [ + "projectboards54040ecc_identitypool_54040ecc__", + "x" + ] + ] + } + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:b610ff34-8e52-4e93-9822-f56e9fca42fd", + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-projectboards-x-x-unauthRole", + "authenticated": "arn:aws:iam::123456789012:role/amplify-projectboards-x-x-authRole" + } + } + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifyprojectboardse2esandboxb2cbfff775authamplifyAuthUserPoolE690205FRef": { + "Value": "us-east-1_KIRz8bn0l" + }, + "amplifyprojectboardse2esandboxb2cbfff775authamplifyAuthUserPoolAppClient619348A5Ref": { + "Value": "5u0pu7spa0tin8np6oitsr50ke" + }, + "amplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref": { + "Value": "us-east-1:f53c9465-a0fb-4a04-81d2-b13c6999b9a2" + }, + "amplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref": { + "Value": "amplify-projectboa2604142-amplifyAuthauthenticatedU-1jxM3hVSjIDm" + }, + "amplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref": { + "Value": "amplify-projectboa2604142-amplifyAuthunauthenticate-LvEI2or1a1b4" + } + } +} diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-x-x-storages369f8ff1c-x.__to__.amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x.mappings.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-x-x-storages369f8ff1c-x.__to__.amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x.mappings.json new file mode 100644 index 00000000000..f6543ed9893 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-x-x-storages369f8ff1c-x.__to__.amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x.mappings.json @@ -0,0 +1,12 @@ +[ + { + "Source": { + "StackName": "amplify-projectboards-x-x-storages369f8ff1c-x", + "LogicalResourceId": "S3Bucket" + }, + "Destination": { + "StackName": "amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x", + "LogicalResourceId": "projectboards34b9a7f3c2ca489293910116c994688bxgen2xBucket0114CDD0" + } + } +] diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-x-x-storages369f8ff1c-x.__to__.amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x.source.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-x-x-storages369f8ff1c-x.__to__.amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x.source.template.json new file mode 100644 index 00000000000..f5035e419d6 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-x-x-storages369f8ff1c-x.__to__.amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x.source.template.json @@ -0,0 +1,469 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-S3\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "bucketName": { + "Type": "String" + }, + "authRoleName": { + "Type": "String" + }, + "unauthRoleName": { + "Type": "String" + }, + "authPolicyName": { + "Type": "String" + }, + "unauthPolicyName": { + "Type": "String" + }, + "s3PublicPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3PrivatePolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3ProtectedPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3UploadsPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3ReadPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3PermissionsAuthenticatedPublic": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedProtected": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedPrivate": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedUploads": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsGuestPublic": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsGuestUploads": { + "Type": "String", + "Default": "DISALLOW" + }, + "AuthenticatedAllowList": { + "Type": "String", + "Default": "DISALLOW" + }, + "GuestAllowList": { + "Type": "String", + "Default": "DISALLOW" + }, + "selectedGuestPermissions": { + "Type": "CommaDelimitedList", + "Default": "NONE" + }, + "selectedAuthenticatedPermissions": { + "Type": "CommaDelimitedList", + "Default": "NONE" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + "x", + "NONE" + ] + }, + "CreateAuthPublic": { + "Fn::Not": [ + { + "Fn::Equals": [ + "s3:PutObject,s3:GetObject,s3:DeleteObject", + "DISALLOW" + ] + } + ] + }, + "CreateAuthProtected": { + "Fn::Not": [ + { + "Fn::Equals": [ + "s3:PutObject,s3:GetObject,s3:DeleteObject", + "DISALLOW" + ] + } + ] + }, + "CreateAuthPrivate": { + "Fn::Not": [ + { + "Fn::Equals": [ + "s3:PutObject,s3:GetObject,s3:DeleteObject", + "DISALLOW" + ] + } + ] + }, + "CreateAuthUploads": { + "Fn::Not": [ + { + "Fn::Equals": [ + "s3:PutObject", + "DISALLOW" + ] + } + ] + }, + "CreateGuestPublic": { + "Fn::Not": [ + { + "Fn::Equals": [ + "s3:GetObject", + "DISALLOW" + ] + } + ] + }, + "CreateGuestUploads": { + "Fn::Not": [ + { + "Fn::Equals": [ + "DISALLOW", + "DISALLOW" + ] + } + ] + }, + "AuthReadAndList": { + "Fn::Not": [ + { + "Fn::Equals": [ + "ALLOW", + "DISALLOW" + ] + } + ] + }, + "GuestReadAndList": { + "Fn::Not": [ + { + "Fn::Equals": [ + "ALLOW", + "DISALLOW" + ] + } + ] + } + }, + "Outputs": { + "BucketName": { + "Description": "Bucket name for the S3 bucket", + "Value": "projectboards34b9a7f3c2ca489293910116c994688bx-x" + }, + "Region": { + "Value": "us-east-1" + } + }, + "Resources": { + "S3AuthPublicPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + "s3:PutObject,s3:GetObject,s3:DeleteObject" + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "projectboards34b9a7f3c2ca489293910116c994688bx-x", + "/public/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "Public_policy_69f8ff1c", + "Roles": [ + "amplify-projectboards-x-x-authRole" + ] + }, + "Condition": "CreateAuthPublic" + }, + "S3AuthProtectedPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + "s3:PutObject,s3:GetObject,s3:DeleteObject" + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "projectboards34b9a7f3c2ca489293910116c994688bx-x", + "/protected/${cognito-identity.amazonaws.com:sub}/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "Protected_policy_69f8ff1c", + "Roles": [ + "amplify-projectboards-x-x-authRole" + ] + }, + "Condition": "CreateAuthProtected" + }, + "S3AuthPrivatePolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + "s3:PutObject,s3:GetObject,s3:DeleteObject" + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "projectboards34b9a7f3c2ca489293910116c994688bx-x", + "/private/${cognito-identity.amazonaws.com:sub}/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "Private_policy_69f8ff1c", + "Roles": [ + "amplify-projectboards-x-x-authRole" + ] + }, + "Condition": "CreateAuthPrivate" + }, + "S3AuthUploadPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + "s3:PutObject" + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "projectboards34b9a7f3c2ca489293910116c994688bx-x", + "/uploads/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "Uploads_policy_69f8ff1c", + "Roles": [ + "amplify-projectboards-x-x-authRole" + ] + }, + "Condition": "CreateAuthUploads" + }, + "S3GuestPublicPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + "s3:GetObject" + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "projectboards34b9a7f3c2ca489293910116c994688bx-x", + "/public/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "Public_policy_69f8ff1c", + "Roles": [ + "amplify-projectboards-x-x-unauthRole" + ] + }, + "Condition": "CreateGuestPublic" + }, + "S3AuthReadPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "projectboards34b9a7f3c2ca489293910116c994688bx-x", + "/protected/*" + ] + ] + } + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/", + "public/*", + "protected/", + "protected/*", + "private/${cognito-identity.amazonaws.com:sub}/", + "private/${cognito-identity.amazonaws.com:sub}/*" + ] + } + }, + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "projectboards34b9a7f3c2ca489293910116c994688bx-x" + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "read_policy_69f8ff1c", + "Roles": [ + "amplify-projectboards-x-x-authRole" + ] + }, + "Condition": "AuthReadAndList" + }, + "S3GuestReadPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "projectboards34b9a7f3c2ca489293910116c994688bx-x", + "/protected/*" + ] + ] + } + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/", + "public/*", + "protected/", + "protected/*" + ] + } + }, + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "projectboards34b9a7f3c2ca489293910116c994688bx-x" + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "read_policy_69f8ff1c", + "Roles": [ + "amplify-projectboards-x-x-unauthRole" + ] + }, + "Condition": "GuestReadAndList" + } + } +} diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-x-x-storages369f8ff1c-x.__to__.amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x.target.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-x-x-storages369f8ff1c-x.__to__.amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x.target.template.json new file mode 100644 index 00000000000..0f3e4194365 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/refactor.__from__.amplify-projectboards-x-x-storages369f8ff1c-x.__to__.amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x.target.template.json @@ -0,0 +1,695 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", + "Resources": { + "projectboards34b9a7f3c2ca489293910116c994688bxgen2xBucketPolicyA46B3F94": { + "Type": "AWS::S3::BucketPolicy", + "Properties": { + "Bucket": "amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:*", + "Condition": { + "Bool": { + "aws:SecureTransport": "false" + } + }, + "Effect": "Deny", + "Principal": { + "AWS": "*" + }, + "Resource": [ + "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + "/*" + ] + ] + } + ] + }, + { + "Action": [ + "s3:PutBucketPolicy", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*" + ], + "Effect": "Allow", + "Principal": { + "AWS": "arn:aws:iam::123456789012:role/amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + }, + "Resource": [ + "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/storage/projectboards34b9a7f3c2ca489293910116c994688bx-gen2-x/Bucket/Policy/Resource" + } + }, + "projectboards34b9a7f3c2ca489293910116c994688bxgen2xBucketAutoDeleteObjectsCustomResourceEA4B9FA5": { + "Type": "Custom::S3AutoDeleteObjects", + "Properties": { + "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "BucketName": "amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/storage/projectboards34b9a7f3c2ca489293910116c994688bx-gen2-x/Bucket/AutoDeleteObjectsCustomResource/Default" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ] + }, + "ManagedPolicyArns": [ + { + "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" + }, + "Timeout": 900, + "MemorySize": 128, + "Handler": "index.handler", + "Role": "arn:aws:iam::123456789012:role/amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Runtime": "nodejs22.x", + "Description": { + "Fn::Join": [ + "", + [ + "Lambda function for auto-deleting objects in ", + "amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + " S3 bucket." + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", + "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", + "aws:asset:property": "Code" + } + }, + "PROJECTBOARDS34B9A7F3C2CA489293910116C994688B39ACFGEN2GUBUKOEDPUBUCKETNAMEParameter4A2DFBF7": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/projectboards/e2e-sandbox-x/PROJECTBOARDS_34_B_9_A_7_F_3_C_2_CA_489293910116_C_994688_B_39_ACF_GEN_2_GUBUKOEDPU_BUCKET_NAME", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": "amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/storage/PROJECTBOARDS_34_B_9_A_7_F_3_C_2_CA_489293910116_C_994688_B_39_ACF_GEN_2_GUBUKOEDPU_BUCKET_NAMEParameter/Resource" + } + }, + "amplifyprojectboardse2esandboxb2cbfff775storageAccess3692CDB92": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + "/public/*" + ] + ] + } + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/*", + "public/" + ] + } + }, + "Effect": "Allow", + "Resource": "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "amplifyprojectboardse2esandboxb2cbfff775storageAccess3692CDB92", + "Roles": [ + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/storage/amplify-projectboards-e2e-sandbox-x--storageAccess3/Resource" + } + }, + "amplifyprojectboardse2esandboxb2cbfff775storageAccess426533AE4": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:PutObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/*", + "public/", + "protected/*", + "protected/", + "private/*", + "private/" + ] + } + }, + "Effect": "Allow", + "Resource": "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h" + }, + { + "Action": "s3:DeleteObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + "/private/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "amplifyprojectboardse2esandboxb2cbfff775storageAccess426533AE4", + "Roles": [ + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/storage/amplify-projectboards-e2e-sandbox-x--storageAccess4/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/5WNy07DMBBFv6VZO0NIBQt2fawhapYIIdcZokliW/JMWpDlf0epJQJLVnNH5z5qqB8qqDb6yqXpxnKiM8RnZMGuFW1Gpa/8HnkLcT+bEUUdPlxWr7Gw9EmueCp+hxc/b+GGGLJ1N4s/4oSCL+cBjXCR3lRGjZ/IfK2t+f9Hdw60ogUtult1UswWYiuBXN/ooC0KhmXj50mKtIW4rmeVkjrMLN6ekP0cDC5o1X9QE/yFOgx7zah2zCit6J5cn5TzHcLAd5e6hvtHqDYDE5VhdkIW4ZTvN8L1/x56AQAA" + }, + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/storage/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + }, + "projectboards34b9a7f3c2ca489293910116c994688bxgen2xBucket0114CDD0": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketName": { + "Fn::Join": [ + "", + [ + "projectboards34b9a7f3c2ca489293910116c994688b", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + "amplify-projectboards-x-x-storages369f8ff1c-x" + ] + } + ] + }, + "-", + "x" + ] + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "Id": "S3CORSRuleId1", + "MaxAge": 3000 + } + ] + }, + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + } + }, + "UpdateReplacePolicy": "Retain", + "DeletionPolicy": "Retain" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref": { + "Type": "String" + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref": { + "Type": "String" + } + }, + "Outputs": { + "amplifyprojectboardse2esandboxb2cbfff775storageprojectboards34b9a7f3c2ca489293910116c994688bxgen2xBucket352B0D2BRef": { + "Value": "amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h" + } + } +} diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-e2e-sandbox-x-auth179371D7-x.parameters.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-e2e-sandbox-x-auth179371D7-x.parameters.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-e2e-sandbox-x-auth179371D7-x.parameters.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-e2e-sandbox-x-auth179371D7-x.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-e2e-sandbox-x-auth179371D7-x.template.json new file mode 100644 index 00000000000..1c928dfca3e --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-e2e-sandbox-x-auth179371D7-x.template.json @@ -0,0 +1,590 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", + "Resources": { + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AccountRecoverySetting": { + "RecoveryMechanisms": [ + { + "Name": "verified_email", + "Priority": 1 + } + ] + }, + "AdminCreateUserConfig": { + "AllowAdminCreateUserOnly": false + }, + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": 8, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false, + "TemporaryPasswordValidityDays": 7 + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "SmsVerificationMessage": "The verification code to your new account is {####}", + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolTags": { + "amplify:deployment-type": "sandbox", + "amplify:friendly-name": "amplifyAuth", + "created-by": "amplify" + }, + "UsernameAttributes": [ + "email" + ], + "UsernameConfiguration": { + "CaseSensitive": false + }, + "VerificationMessageTemplate": { + "DefaultEmailOption": "CONFIRM_WITH_CODE", + "EmailMessage": "Your verification code is {####}", + "EmailSubject": "Your verification code", + "SmsMessage": "The verification code to your new account is {####}" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/auth/amplifyAuth/UserPool/Resource" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 43200, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": "us-east-1_KIRz8bn0l" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlows": [ + "code" + ], + "AllowedOAuthFlowsUserPoolClient": true, + "AllowedOAuthScopes": [ + "profile", + "phone", + "email", + "openid", + "aws.cognito.signin.user.admin" + ], + "CallbackURLs": [ + "https://example.com" + ], + "ExplicitAuthFlows": [ + "ALLOW_CUSTOM_AUTH", + "ALLOW_USER_SRP_AUTH", + "ALLOW_REFRESH_TOKEN_AUTH" + ], + "PreventUserExistenceErrors": "ENABLED", + "SupportedIdentityProviders": [ + "COGNITO" + ], + "UserPoolId": "us-east-1_KIRz8bn0l" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/auth/amplifyAuth/UserPoolAppClient/Resource" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": true, + "CognitoIdentityProviders": [ + { + "ClientId": "5u0pu7spa0tin8np6oitsr50ke", + "ProviderName": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_KIRz8bn0l" + ] + ] + } + } + ], + "IdentityPoolTags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "SupportedLoginProviders": {} + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/auth/amplifyAuth/IdentityPool" + } + }, + "amplifyAuthauthenticatedUserRoleD8DA3689": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:f53c9465-a0fb-4a04-81d2-b13c6999b9a2" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/auth/amplifyAuth/authenticatedUserRole/Resource" + } + }, + "amplifyAuthunauthenticatedUserRole2B524D9E": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:f53c9465-a0fb-4a04-81d2-b13c6999b9a2" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "unauthenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/auth/amplifyAuth/unauthenticatedUserRole/Resource" + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:f53c9465-a0fb-4a04-81d2-b13c6999b9a2", + "RoleMappings": { + "UserPoolWebClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_KIRz8bn0l", + ":", + "5u0pu7spa0tin8np6oitsr50ke" + ] + ] + }, + "Type": "Token" + } + }, + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-projectboa2604142-amplifyAuthunauthenticate-LvEI2or1a1b4", + "authenticated": "arn:aws:iam::123456789012:role/amplify-projectboa2604142-amplifyAuthauthenticatedU-1jxM3hVSjIDm" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/auth/amplifyAuth/IdentityPoolRoleAttachment" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/02LwQrCMBBEv6X3dK0BvUtPXkQqniUmq26bbqBZLRLy71Kk2tPMvJnRoDcVVIUZY2ldV3q6QjpgFHQnMbZTZoyXZMOdSQKkc8ThGIJX9Y1/fja1J2RZVn+yd8hC8p7Py9wEjzsRYx89smRFpoc0wWk4ac5ZcXAIbVy9tIb1FqqijUTl8GShHqH56gf10GUazgAAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/auth/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifyprojectboardse2esandboxb2cbfff775authamplifyAuthUserPoolE690205FRef": { + "Value": "us-east-1_KIRz8bn0l" + }, + "amplifyprojectboardse2esandboxb2cbfff775authamplifyAuthUserPoolAppClient619348A5Ref": { + "Value": "5u0pu7spa0tin8np6oitsr50ke" + }, + "amplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref": { + "Value": "us-east-1:f53c9465-a0fb-4a04-81d2-b13c6999b9a2" + }, + "amplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref": { + "Value": "amplify-projectboa2604142-amplifyAuthauthenticatedU-1jxM3hVSjIDm" + }, + "amplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref": { + "Value": "amplify-projectboa2604142-amplifyAuthunauthenticate-LvEI2or1a1b4" + } + } +} diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x.parameters.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x.parameters.json new file mode 100644 index 00000000000..68cd7ce1552 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x.parameters.json @@ -0,0 +1,10 @@ +[ + { + "ParameterKey": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref", + "ParameterValue": "amplify-projectboa2604142-amplifyAuthauthenticatedU-1jxM3hVSjIDm" + }, + { + "ParameterKey": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref", + "ParameterValue": "amplify-projectboa2604142-amplifyAuthunauthenticate-LvEI2or1a1b4" + } +] diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x.template.json new file mode 100644 index 00000000000..858b53624b3 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x.template.json @@ -0,0 +1,695 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", + "Resources": { + "projectboards34b9a7f3c2ca489293910116c994688bxgen2xBucket0114CDD0": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "BucketKeyEnabled": false, + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "MaxAge": 3000 + } + ] + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "projectboards34b9a7f3c2ca489293910116c994688bx-gen2-x" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/storage/projectboards34b9a7f3c2ca489293910116c994688bx-gen2-x/Bucket/Resource" + } + }, + "projectboards34b9a7f3c2ca489293910116c994688bxgen2xBucketPolicyA46B3F94": { + "Type": "AWS::S3::BucketPolicy", + "Properties": { + "Bucket": "amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:*", + "Condition": { + "Bool": { + "aws:SecureTransport": "false" + } + }, + "Effect": "Deny", + "Principal": { + "AWS": "*" + }, + "Resource": [ + "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + "/*" + ] + ] + } + ] + }, + { + "Action": [ + "s3:PutBucketPolicy", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*" + ], + "Effect": "Allow", + "Principal": { + "AWS": "arn:aws:iam::123456789012:role/amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + }, + "Resource": [ + "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/storage/projectboards34b9a7f3c2ca489293910116c994688bx-gen2-x/Bucket/Policy/Resource" + } + }, + "projectboards34b9a7f3c2ca489293910116c994688bxgen2xBucketAutoDeleteObjectsCustomResourceEA4B9FA5": { + "Type": "Custom::S3AutoDeleteObjects", + "Properties": { + "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "BucketName": "amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/storage/projectboards34b9a7f3c2ca489293910116c994688bx-gen2-x/Bucket/AutoDeleteObjectsCustomResource/Default" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ] + }, + "ManagedPolicyArns": [ + { + "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" + }, + "Timeout": 900, + "MemorySize": 128, + "Handler": "index.handler", + "Role": "arn:aws:iam::123456789012:role/amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Runtime": "nodejs22.x", + "Description": { + "Fn::Join": [ + "", + [ + "Lambda function for auto-deleting objects in ", + "amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + " S3 bucket." + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", + "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", + "aws:asset:property": "Code" + } + }, + "PROJECTBOARDS34B9A7F3C2CA489293910116C994688B39ACFGEN2GUBUKOEDPUBUCKETNAMEParameter4A2DFBF7": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/projectboards/e2e-sandbox-x/PROJECTBOARDS_34_B_9_A_7_F_3_C_2_CA_489293910116_C_994688_B_39_ACF_GEN_2_GUBUKOEDPU_BUCKET_NAME", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": "amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/storage/PROJECTBOARDS_34_B_9_A_7_F_3_C_2_CA_489293910116_C_994688_B_39_ACF_GEN_2_GUBUKOEDPU_BUCKET_NAMEParameter/Resource" + } + }, + "amplifyprojectboardse2esandboxb2cbfff775storageAccess3692CDB92": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + "/public/*" + ] + ] + } + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/*", + "public/" + ] + } + }, + "Effect": "Allow", + "Resource": "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "amplifyprojectboardse2esandboxb2cbfff775storageAccess3692CDB92", + "Roles": [ + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/storage/amplify-projectboards-e2e-sandbox-x--storageAccess3/Resource" + } + }, + "amplifyprojectboardse2esandboxb2cbfff775storageAccess426533AE4": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:PutObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/*", + "public/", + "protected/*", + "protected/", + "private/*", + "private/" + ] + } + }, + "Effect": "Allow", + "Resource": "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h" + }, + { + "Action": "s3:DeleteObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h", + "/private/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "amplifyprojectboardse2esandboxb2cbfff775storageAccess426533AE4", + "Roles": [ + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/storage/amplify-projectboards-e2e-sandbox-x--storageAccess4/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/5WNy07DMBBFv6VZO0NIBQt2fawhapYIIdcZokliW/JMWpDlf0epJQJLVnNH5z5qqB8qqDb6yqXpxnKiM8RnZMGuFW1Gpa/8HnkLcT+bEUUdPlxWr7Gw9EmueCp+hxc/b+GGGLJ1N4s/4oSCL+cBjXCR3lRGjZ/IfK2t+f9Hdw60ogUtult1UswWYiuBXN/ooC0KhmXj50mKtIW4rmeVkjrMLN6ekP0cDC5o1X9QE/yFOgx7zah2zCit6J5cn5TzHcLAd5e6hvtHqDYDE5VhdkIW4ZTvN8L1/x56AQAA" + }, + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/storage/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref": { + "Type": "String" + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref": { + "Type": "String" + } + }, + "Outputs": { + "amplifyprojectboardse2esandboxb2cbfff775storageprojectboards34b9a7f3c2ca489293910116c994688bxgen2xBucket352B0D2BRef": { + "Value": "amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h" + } + } +} diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.parameters.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.parameters.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.parameters.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.template.json deleted file mode 100644 index e004bc868c5..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.template.json +++ /dev/null @@ -1,604 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.11.1\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", - "Resources": { - "amplifyAuthUserPool4BA7F805": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AccountRecoverySetting": { - "RecoveryMechanisms": [ - { - "Name": "verified_email", - "Priority": 1 - } - ] - }, - "AdminCreateUserConfig": { - "AllowAdminCreateUserOnly": false - }, - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": "Your verification code is {####}", - "EmailVerificationSubject": "Your verification code", - "MfaConfiguration": "OFF", - "Policies": { - "PasswordPolicy": { - "MinimumLength": 8, - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false, - "TemporaryPasswordValidityDays": 7 - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "SmsVerificationMessage": "The verification code to your new account is {####}", - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolTags": { - "amplify:app-id": "projectboards", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "amplify:friendly-name": "amplifyAuth", - "created-by": "amplify" - }, - "UsernameAttributes": [ - "email" - ], - "UsernameConfiguration": { - "CaseSensitive": false - }, - "VerificationMessageTemplate": { - "DefaultEmailOption": "CONFIRM_WITH_CODE", - "EmailMessage": "Your verification code is {####}", - "EmailSubject": "Your verification code", - "SmsMessage": "The verification code to your new account is {####}" - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/UserPool/Resource" - } - }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 43200, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": "us-east-1_pXlpWF7QY" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, - "amplifyAuthUserPoolAppClient2626C6F8": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlows": [ - "code" - ], - "AllowedOAuthFlowsUserPoolClient": true, - "AllowedOAuthScopes": [ - "profile", - "phone", - "email", - "openid", - "aws.cognito.signin.user.admin" - ], - "CallbackURLs": [ - "https://example.com" - ], - "ExplicitAuthFlows": [ - "ALLOW_CUSTOM_AUTH", - "ALLOW_USER_SRP_AUTH", - "ALLOW_REFRESH_TOKEN_AUTH" - ], - "PreventUserExistenceErrors": "ENABLED", - "SupportedIdentityProviders": [ - "COGNITO" - ], - "UserPoolId": "us-east-1_pXlpWF7QY" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/UserPoolAppClient/Resource" - } - }, - "amplifyAuthIdentityPool3FDE84CC": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": true, - "CognitoIdentityProviders": [ - { - "ClientId": "oqgm3faeod0cr1b4v63iv4a7a", - "ProviderName": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - "us-east-1_pXlpWF7QY" - ] - ] - } - } - ], - "IdentityPoolTags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "SupportedLoginProviders": {} - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/IdentityPool" - } - }, - "amplifyAuthauthenticatedUserRoleD8DA3689": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:f8ab7c96-56f6-46d4-8346-0a5235221fba" - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "authenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/authenticatedUserRole/Resource" - } - }, - "amplifyAuthunauthenticatedUserRole2B524D9E": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": "us-east-1:f8ab7c96-56f6-46d4-8346-0a5235221fba" - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "unauthenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/unauthenticatedUserRole/Resource" - } - }, - "amplifyAuthIdentityPoolRoleAttachment045F17C8": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": "us-east-1:f8ab7c96-56f6-46d4-8346-0a5235221fba", - "RoleMappings": { - "UserPoolWebClientRoleMapping": { - "AmbiguousRoleResolution": "AuthenticatedRole", - "IdentityProvider": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - "us-east-1_pXlpWF7QY", - ":", - "oqgm3faeod0cr1b4v63iv4a7a" - ] - ] - }, - "Type": "Token" - } - }, - "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-projectboards-ge-amplifyAuthunauthenticate-GHLvLgqZHYnT", - "authenticated": "arn:aws:iam::123456789012:role/amplify-projectboards-ge-amplifyAuthauthenticatedU-HuWvFKttqdhF" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/IdentityPoolRoleAttachment" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/02LwQrCMBBEv8V7urbBg1fpyYtIxbPEZNVt0w00q0VC/l2KVHuamTczGvSmgnJlxlhY1xWerpAOGAXdSYztlBnjJdlwZ5IA6RxxOIbgVX3jn59N7QlZltWf7B2ykLzn8zI3weNOxNhHjyxZkekhTXAaTppzVhwcQhvXL62h2kK5aiNRMTxZqEdovvoBH9Args4AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Outputs": { - "amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthUserPool33BA12FBRef": { - "Value": "us-east-1_pXlpWF7QY" - }, - "amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthUserPoolAppClient0435B83FRef": { - "Value": "oqgm3faeod0cr1b4v63iv4a7a" - }, - "amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref": { - "Value": "us-east-1:f8ab7c96-56f6-46d4-8346-0a5235221fba" - }, - "amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef": { - "Value": "amplify-projectboards-ge-amplifyAuthauthenticatedU-HuWvFKttqdhF" - }, - "amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef": { - "Value": "amplify-projectboards-ge-amplifyAuthunauthenticate-GHLvLgqZHYnT" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.parameters.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.parameters.json deleted file mode 100644 index b67d4202af4..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.parameters.json +++ /dev/null @@ -1,10 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef", - "ParameterValue": "amplify-projectboards-ge-amplifyAuthunauthenticate-GHLvLgqZHYnT" - }, - { - "ParameterKey": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef", - "ParameterValue": "amplify-projectboards-ge-amplifyAuthauthenticatedU-HuWvFKttqdhF" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.template.json deleted file mode 100644 index 89a6d81ca6f..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.template.json +++ /dev/null @@ -1,693 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", - "Resources": { - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "BucketKeyEnabled": false, - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "MaxAge": 3000 - } - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "projectboards34b9a7f3c2ca489293910116c994688b02940-gen2-main" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/projectboards34b9a7f3c2ca489293910116c994688b02940-gen2-main/Bucket/Resource" - } - }, - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketPolicy8CF7A616": { - "Type": "AWS::S3::BucketPolicy", - "Properties": { - "Bucket": "amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:*", - "Condition": { - "Bool": { - "aws:SecureTransport": "false" - } - }, - "Effect": "Deny", - "Principal": { - "AWS": "*" - }, - "Resource": [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - "/*" - ] - ] - } - ] - }, - { - "Action": [ - "s3:PutBucketPolicy", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*" - ], - "Effect": "Allow", - "Principal": { - "AWS": "arn:aws:iam::123456789012:role/amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - }, - "Resource": [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - "/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/projectboards34b9a7f3c2ca489293910116c994688b02940-gen2-main/Bucket/Policy/Resource" - } - }, - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketAutoDeleteObjectsCustomResource1C396A89": { - "Type": "Custom::S3AutoDeleteObjects", - "Properties": { - "ServiceToken": "arn:aws:lambda:us-east-1:123456789012:function:amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ/CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "BucketName": "amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv" - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/projectboards34b9a7f3c2ca489293910116c994688b02940-gen2-main/Bucket/AutoDeleteObjectsCustomResource/Default" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ] - }, - "ManagedPolicyArns": [ - { - "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" - }, - "Timeout": 900, - "MemorySize": 128, - "Handler": "index.handler", - "Role": "arn:aws:iam::123456789012:role/amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ/CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Runtime": "nodejs22.x", - "Description": { - "Fn::Join": [ - "", - [ - "Lambda function for auto-deleting objects in ", - "amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - " S3 bucket." - ] - ] - } - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", - "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", - "aws:asset:property": "Code" - } - }, - "PROJECTBOARDS34B9A7F3C2CA489293910116C994688B02940GEN2MAINBUCKETNAMEParameter612A82C7": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/projectboards/gen2main-branch-886dbd2dec/PROJECTBOARDS_34_B_9_A_7_F_3_C_2_CA_489293910116_C_994688_B_02940_GEN_2_MAIN_BUCKET_NAME", - "Tags": { - "amplify:app-id": "projectboards", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": "amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/PROJECTBOARDS_34_B_9_A_7_F_3_C_2_CA_489293910116_C_994688_B_02940_GEN_2_MAIN_BUCKET_NAMEParameter/Resource" - } - }, - "amplifyprojectboardsgen2mainbranch886dbd2decstorageAccess3390DFFBD": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - "/public/*" - ] - ] - } - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/*", - "public/" - ] - } - }, - "Effect": "Allow", - "Resource": "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "amplifyprojectboardsgen2mainbranch886dbd2decstorageAccess3390DFFBD", - "Roles": [ - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/amplify-projectboards-gen2main-branch-886dbd2dec--storageAccess3/Resource" - } - }, - "amplifyprojectboardsgen2mainbranch886dbd2decstorageAccess4C92335C8": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:PutObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/*", - "public/", - "protected/*", - "protected/", - "private/*", - "private/" - ] - } - }, - "Effect": "Allow", - "Resource": "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv" - }, - { - "Action": "s3:DeleteObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv", - "/private/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "amplifyprojectboardsgen2mainbranch886dbd2decstorageAccess4C92335C8", - "Roles": [ - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/amplify-projectboards-gen2main-branch-886dbd2dec--storageAccess4/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WLTQ6CMBCFz8K+jIgu3Cp7Q+AAppaRjNA26QwQ03B3QyASV+97fznk5yNkiZ44NU2X9vSEeEcWbGrRplN64kfkE8TbYDoUVbzcRquUvifz2ePVz4rZQqwlkGtLHbRFwbCsfmZWpC3E/b89Z1UMLN5WyH4IBpdq57+qDH6kBsNNM6orM0otuiXXzsr5BuHNhzHP4XiBLHkzURoGJ2QRqlW/LyyDFv0AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef": { - "Type": "String" - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef": { - "Type": "String" - } - }, - "Outputs": { - "amplifyprojectboardsgen2mainbranch886dbd2decstorageprojectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucket2623A05BRef": { - "Value": "amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.parameters.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.parameters.json deleted file mode 100644 index 368e5fea599..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.parameters.json +++ /dev/null @@ -1,146 +0,0 @@ -[ - { - "ParameterKey": "usernameAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "authRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-projectboards-main-02940-authRole" - }, - { - "ParameterKey": "autoVerifiedAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "allowUnauthenticatedIdentities", - "ParameterValue": "true" - }, - { - "ParameterKey": "smsVerificationMessage", - "ParameterValue": "Your verification code is {####}" - }, - { - "ParameterKey": "userpoolClientReadAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "breakCircularDependency", - "ParameterValue": "true" - }, - { - "ParameterKey": "mfaTypes", - "ParameterValue": "SMS Text Message" - }, - { - "ParameterKey": "emailVerificationSubject", - "ParameterValue": "Your verification code" - }, - { - "ParameterKey": "sharedId", - "ParameterValue": "54040ecc" - }, - { - "ParameterKey": "useDefault", - "ParameterValue": "default" - }, - { - "ParameterKey": "userpoolClientGenerateSecret", - "ParameterValue": "false" - }, - { - "ParameterKey": "mfaConfiguration", - "ParameterValue": "OFF" - }, - { - "ParameterKey": "identityPoolName", - "ParameterValue": "projectboards54040ecc_identitypool_54040ecc" - }, - { - "ParameterKey": "userPoolGroupList", - "ParameterValue": "" - }, - { - "ParameterKey": "authSelections", - "ParameterValue": "identityPoolAndUserPool" - }, - { - "ParameterKey": "resourceNameTruncated", - "ParameterValue": "projec54040ecc" - }, - { - "ParameterKey": "smsAuthenticationMessage", - "ParameterValue": "Your authentication code is {####}" - }, - { - "ParameterKey": "passwordPolicyMinLength", - "ParameterValue": "8" - }, - { - "ParameterKey": "userPoolName", - "ParameterValue": "projectboards54040ecc_userpool_54040ecc" - }, - { - "ParameterKey": "userpoolClientWriteAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "dependsOn", - "ParameterValue": "" - }, - { - "ParameterKey": "useEnabledMfas", - "ParameterValue": "true" - }, - { - "ParameterKey": "usernameCaseSensitive", - "ParameterValue": "false" - }, - { - "ParameterKey": "resourceName", - "ParameterValue": "projectboards54040ecc" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "serviceName", - "ParameterValue": "Cognito" - }, - { - "ParameterKey": "emailVerificationMessage", - "ParameterValue": "Your verification code is {####}" - }, - { - "ParameterKey": "userpoolClientRefreshTokenValidity", - "ParameterValue": "30" - }, - { - "ParameterKey": "userpoolClientSetAttributes", - "ParameterValue": "false" - }, - { - "ParameterKey": "unauthRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-projectboards-main-02940-unauthRole" - }, - { - "ParameterKey": "requiredAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "passwordPolicyCharacters", - "ParameterValue": "" - }, - { - "ParameterKey": "aliasAttributes", - "ParameterValue": "" - }, - { - "ParameterKey": "userpoolClientLambdaRole", - "ParameterValue": "projec54040ecc_userpoolclient_lambda_role" - }, - { - "ParameterKey": "defaultPasswordPolicy", - "ParameterValue": "false" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.template.json deleted file mode 100644 index 92d9ab6fde9..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.template.json +++ /dev/null @@ -1,316 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "env": { - "Type": "String" - }, - "identityPoolName": { - "Type": "String" - }, - "allowUnauthenticatedIdentities": { - "Type": "String" - }, - "resourceNameTruncated": { - "Type": "String" - }, - "userPoolName": { - "Type": "String" - }, - "autoVerifiedAttributes": { - "Type": "CommaDelimitedList" - }, - "mfaConfiguration": { - "Type": "String" - }, - "mfaTypes": { - "Type": "CommaDelimitedList" - }, - "smsAuthenticationMessage": { - "Type": "String" - }, - "smsVerificationMessage": { - "Type": "String" - }, - "emailVerificationSubject": { - "Type": "String" - }, - "emailVerificationMessage": { - "Type": "String" - }, - "defaultPasswordPolicy": { - "Type": "String" - }, - "passwordPolicyMinLength": { - "Type": "String" - }, - "passwordPolicyCharacters": { - "Type": "CommaDelimitedList" - }, - "requiredAttributes": { - "Type": "CommaDelimitedList" - }, - "aliasAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientGenerateSecret": { - "Type": "String" - }, - "userpoolClientRefreshTokenValidity": { - "Type": "String" - }, - "userpoolClientWriteAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientReadAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientLambdaRole": { - "Type": "String" - }, - "userpoolClientSetAttributes": { - "Type": "String" - }, - "sharedId": { - "Type": "String" - }, - "resourceName": { - "Type": "String" - }, - "authSelections": { - "Type": "String" - }, - "useDefault": { - "Type": "String" - }, - "usernameAttributes": { - "Type": "CommaDelimitedList" - }, - "userPoolGroupList": { - "Type": "CommaDelimitedList" - }, - "serviceName": { - "Type": "String" - }, - "usernameCaseSensitive": { - "Type": "String" - }, - "useEnabledMfas": { - "Type": "String" - }, - "authRoleArn": { - "Type": "String" - }, - "unauthRoleArn": { - "Type": "String" - }, - "breakCircularDependency": { - "Type": "String" - }, - "dependsOn": { - "Type": "CommaDelimitedList" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - "main", - "NONE" - ] - } - }, - "Resources": { - "UserPool": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": "Your verification code is {####}", - "EmailVerificationSubject": "Your verification code", - "MfaConfiguration": "OFF", - "Policies": { - "PasswordPolicy": { - "MinimumLength": "8", - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolName": { - "Fn::Join": [ - "", - [ - "projectboards54040ecc_userpool_54040ecc", - "-", - "main" - ] - ] - }, - "UsernameAttributes": [ - "email" - ], - "UsernameConfiguration": { - "CaseSensitive": false - } - } - }, - "UserPoolClientWeb": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "projec54040ecc_app_clientWeb", - "RefreshTokenValidity": "30", - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": "us-east-1_ct5s4IEz3" - } - }, - "UserPoolClient": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "projec54040ecc_app_client", - "GenerateSecret": "false", - "RefreshTokenValidity": "30", - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": "us-east-1_ct5s4IEz3" - } - }, - "UserPoolClientRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - }, - "Action": "sts:AssumeRole" - } - ] - }, - "RoleName": { - "Fn::Join": [ - "", - [ - "upClientLambdaRole54040ecc", - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - "amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV" - ] - } - ] - }, - "-", - "main" - ] - ] - } - } - }, - "IdentityPool": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": "true", - "CognitoIdentityProviders": [ - { - "ClientId": "3dbqrlfs0a0g4a6ihsanen6i5", - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": "us-east-1_ct5s4IEz3" - } - ] - } - }, - { - "ClientId": "1vpeihq8svf62sepfnkuvp8sld", - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": "us-east-1_ct5s4IEz3" - } - ] - } - } - ], - "IdentityPoolName": { - "Fn::Join": [ - "", - [ - "projectboards54040ecc_identitypool_54040ecc__", - "main" - ] - ] - } - } - }, - "IdentityPoolRoleMap": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": "us-east-1:88399477-86ba-4d93-aa1a-13242b53b791", - "Roles": { - "unauthenticated": "arn:aws:iam::123456789012:role/amplify-projectboards-main-02940-unauthRole", - "authenticated": "arn:aws:iam::123456789012:role/amplify-projectboards-main-02940-authRole" - } - } - } - }, - "Outputs": { - "IdentityPoolId": { - "Description": "Id for the identity pool", - "Value": "us-east-1:88399477-86ba-4d93-aa1a-13242b53b791" - }, - "IdentityPoolName": { - "Value": "projectboards54040ecc_identitypool_54040ecc__main" - }, - "UserPoolId": { - "Description": "Id for the user pool", - "Value": "us-east-1_ct5s4IEz3" - }, - "UserPoolArn": { - "Description": "Arn for the user pool", - "Value": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_ct5s4IEz3" - }, - "UserPoolName": { - "Value": "projectboards54040ecc_userpool_54040ecc" - }, - "AppClientIDWeb": { - "Description": "The user pool app client id for web", - "Value": "1vpeihq8svf62sepfnkuvp8sld" - }, - "AppClientID": { - "Description": "The user pool app client id", - "Value": "3dbqrlfs0a0g4a6ihsanen6i5" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.parameters.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.parameters.json deleted file mode 100644 index 43cd6f2f29e..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.parameters.json +++ /dev/null @@ -1,86 +0,0 @@ -[ - { - "ParameterKey": "s3PermissionsGuestPublic", - "ParameterValue": "s3:GetObject" - }, - { - "ParameterKey": "bucketName", - "ParameterValue": "projectboards34b9a7f3c2ca489293910116c994688b" - }, - { - "ParameterKey": "s3PublicPolicy", - "ParameterValue": "Public_policy_69f8ff1c" - }, - { - "ParameterKey": "AuthenticatedAllowList", - "ParameterValue": "ALLOW" - }, - { - "ParameterKey": "unauthRoleName", - "ParameterValue": "amplify-projectboards-main-02940-unauthRole" - }, - { - "ParameterKey": "s3PrivatePolicy", - "ParameterValue": "Private_policy_69f8ff1c" - }, - { - "ParameterKey": "selectedGuestPermissions", - "ParameterValue": "s3:GetObject,s3:ListBucket" - }, - { - "ParameterKey": "s3PermissionsAuthenticatedPublic", - "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" - }, - { - "ParameterKey": "s3PermissionsAuthenticatedPrivate", - "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" - }, - { - "ParameterKey": "s3PermissionsAuthenticatedUploads", - "ParameterValue": "s3:PutObject" - }, - { - "ParameterKey": "s3UploadsPolicy", - "ParameterValue": "Uploads_policy_69f8ff1c" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "unauthPolicyName", - "ParameterValue": "s3_amplify_69f8ff1c" - }, - { - "ParameterKey": "authRoleName", - "ParameterValue": "amplify-projectboards-main-02940-authRole" - }, - { - "ParameterKey": "GuestAllowList", - "ParameterValue": "ALLOW" - }, - { - "ParameterKey": "authPolicyName", - "ParameterValue": "s3_amplify_69f8ff1c" - }, - { - "ParameterKey": "s3ProtectedPolicy", - "ParameterValue": "Protected_policy_69f8ff1c" - }, - { - "ParameterKey": "s3PermissionsAuthenticatedProtected", - "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" - }, - { - "ParameterKey": "s3PermissionsGuestUploads", - "ParameterValue": "DISALLOW" - }, - { - "ParameterKey": "s3ReadPolicy", - "ParameterValue": "read_policy_69f8ff1c" - }, - { - "ParameterKey": "selectedAuthenticatedPermissions", - "ParameterValue": "s3:PutObject,s3:GetObject,s3:ListBucket,s3:DeleteObject" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.template.json deleted file mode 100644 index 1ebeee344f7..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.template.json +++ /dev/null @@ -1,533 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-S3\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "env": { - "Type": "String" - }, - "bucketName": { - "Type": "String" - }, - "authRoleName": { - "Type": "String" - }, - "unauthRoleName": { - "Type": "String" - }, - "authPolicyName": { - "Type": "String" - }, - "unauthPolicyName": { - "Type": "String" - }, - "s3PublicPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3PrivatePolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3ProtectedPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3UploadsPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3ReadPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3PermissionsAuthenticatedPublic": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedProtected": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedPrivate": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedUploads": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsGuestPublic": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsGuestUploads": { - "Type": "String", - "Default": "DISALLOW" - }, - "AuthenticatedAllowList": { - "Type": "String", - "Default": "DISALLOW" - }, - "GuestAllowList": { - "Type": "String", - "Default": "DISALLOW" - }, - "selectedGuestPermissions": { - "Type": "CommaDelimitedList", - "Default": "NONE" - }, - "selectedAuthenticatedPermissions": { - "Type": "CommaDelimitedList", - "Default": "NONE" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - "main", - "NONE" - ] - }, - "CreateAuthPublic": { - "Fn::Not": [ - { - "Fn::Equals": [ - "s3:PutObject,s3:GetObject,s3:DeleteObject", - "DISALLOW" - ] - } - ] - }, - "CreateAuthProtected": { - "Fn::Not": [ - { - "Fn::Equals": [ - "s3:PutObject,s3:GetObject,s3:DeleteObject", - "DISALLOW" - ] - } - ] - }, - "CreateAuthPrivate": { - "Fn::Not": [ - { - "Fn::Equals": [ - "s3:PutObject,s3:GetObject,s3:DeleteObject", - "DISALLOW" - ] - } - ] - }, - "CreateAuthUploads": { - "Fn::Not": [ - { - "Fn::Equals": [ - "s3:PutObject", - "DISALLOW" - ] - } - ] - }, - "CreateGuestPublic": { - "Fn::Not": [ - { - "Fn::Equals": [ - "s3:GetObject", - "DISALLOW" - ] - } - ] - }, - "CreateGuestUploads": { - "Fn::Not": [ - { - "Fn::Equals": [ - "DISALLOW", - "DISALLOW" - ] - } - ] - }, - "AuthReadAndList": { - "Fn::Not": [ - { - "Fn::Equals": [ - "ALLOW", - "DISALLOW" - ] - } - ] - }, - "GuestReadAndList": { - "Fn::Not": [ - { - "Fn::Equals": [ - "ALLOW", - "DISALLOW" - ] - } - ] - } - }, - "Outputs": { - "BucketName": { - "Description": "Bucket name for the S3 bucket", - "Value": "projectboards34b9a7f3c2ca489293910116c994688b02940-main" - }, - "Region": { - "Value": "us-east-1" - } - }, - "Resources": { - "S3Bucket": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketName": { - "Fn::Join": [ - "", - [ - "projectboards34b9a7f3c2ca489293910116c994688b", - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - "amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY" - ] - } - ] - }, - "-", - "main" - ] - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "Id": "S3CORSRuleId1", - "MaxAge": 3000 - } - ] - }, - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - } - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain" - }, - "S3AuthPublicPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - "s3:PutObject,s3:GetObject,s3:DeleteObject" - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "projectboards34b9a7f3c2ca489293910116c994688b02940-main", - "/public/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "Public_policy_69f8ff1c", - "Roles": [ - "amplify-projectboards-main-02940-authRole" - ] - }, - "Condition": "CreateAuthPublic" - }, - "S3AuthProtectedPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - "s3:PutObject,s3:GetObject,s3:DeleteObject" - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "projectboards34b9a7f3c2ca489293910116c994688b02940-main", - "/protected/${cognito-identity.amazonaws.com:sub}/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "Protected_policy_69f8ff1c", - "Roles": [ - "amplify-projectboards-main-02940-authRole" - ] - }, - "Condition": "CreateAuthProtected" - }, - "S3AuthPrivatePolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - "s3:PutObject,s3:GetObject,s3:DeleteObject" - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "projectboards34b9a7f3c2ca489293910116c994688b02940-main", - "/private/${cognito-identity.amazonaws.com:sub}/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "Private_policy_69f8ff1c", - "Roles": [ - "amplify-projectboards-main-02940-authRole" - ] - }, - "Condition": "CreateAuthPrivate" - }, - "S3AuthUploadPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - "s3:PutObject" - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "projectboards34b9a7f3c2ca489293910116c994688b02940-main", - "/uploads/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "Uploads_policy_69f8ff1c", - "Roles": [ - "amplify-projectboards-main-02940-authRole" - ] - }, - "Condition": "CreateAuthUploads" - }, - "S3GuestPublicPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - "s3:GetObject" - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "projectboards34b9a7f3c2ca489293910116c994688b02940-main", - "/public/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": "Public_policy_69f8ff1c", - "Roles": [ - "amplify-projectboards-main-02940-unauthRole" - ] - }, - "Condition": "CreateGuestPublic" - }, - "S3AuthReadPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "projectboards34b9a7f3c2ca489293910116c994688b02940-main", - "/protected/*" - ] - ] - } - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/", - "public/*", - "protected/", - "protected/*", - "private/${cognito-identity.amazonaws.com:sub}/", - "private/${cognito-identity.amazonaws.com:sub}/*" - ] - } - }, - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "projectboards34b9a7f3c2ca489293910116c994688b02940-main" - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "read_policy_69f8ff1c", - "Roles": [ - "amplify-projectboards-main-02940-authRole" - ] - }, - "Condition": "AuthReadAndList" - }, - "S3GuestReadPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "projectboards34b9a7f3c2ca489293910116c994688b02940-main", - "/protected/*" - ] - ] - } - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/", - "public/*", - "protected/", - "protected/*" - ] - } - }, - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - "projectboards34b9a7f3c2ca489293910116c994688b02940-main" - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "read_policy_69f8ff1c", - "Roles": [ - "amplify-projectboards-main-02940-unauthRole" - ] - }, - "Condition": "GuestReadAndList" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-x-x-authprojectboards54040ecc-x.parameters.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-x-x-authprojectboards54040ecc-x.parameters.json new file mode 100644 index 00000000000..538f804bf99 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-x-x-authprojectboards54040ecc-x.parameters.json @@ -0,0 +1,146 @@ +[ + { + "ParameterKey": "usernameAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "authRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-projectboards-x-x-authRole" + }, + { + "ParameterKey": "autoVerifiedAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "allowUnauthenticatedIdentities", + "ParameterValue": "true" + }, + { + "ParameterKey": "smsVerificationMessage", + "ParameterValue": "Your verification code is {####}" + }, + { + "ParameterKey": "userpoolClientReadAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "breakCircularDependency", + "ParameterValue": "true" + }, + { + "ParameterKey": "mfaTypes", + "ParameterValue": "SMS Text Message" + }, + { + "ParameterKey": "emailVerificationSubject", + "ParameterValue": "Your verification code" + }, + { + "ParameterKey": "sharedId", + "ParameterValue": "54040ecc" + }, + { + "ParameterKey": "useDefault", + "ParameterValue": "default" + }, + { + "ParameterKey": "userpoolClientGenerateSecret", + "ParameterValue": "false" + }, + { + "ParameterKey": "mfaConfiguration", + "ParameterValue": "OFF" + }, + { + "ParameterKey": "identityPoolName", + "ParameterValue": "projectboards54040ecc_identitypool_54040ecc" + }, + { + "ParameterKey": "userPoolGroupList", + "ParameterValue": "" + }, + { + "ParameterKey": "authSelections", + "ParameterValue": "identityPoolAndUserPool" + }, + { + "ParameterKey": "resourceNameTruncated", + "ParameterValue": "projec54040ecc" + }, + { + "ParameterKey": "smsAuthenticationMessage", + "ParameterValue": "Your authentication code is {####}" + }, + { + "ParameterKey": "passwordPolicyMinLength", + "ParameterValue": "8" + }, + { + "ParameterKey": "userPoolName", + "ParameterValue": "projectboards54040ecc_userpool_54040ecc" + }, + { + "ParameterKey": "userpoolClientWriteAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "dependsOn", + "ParameterValue": "" + }, + { + "ParameterKey": "useEnabledMfas", + "ParameterValue": "true" + }, + { + "ParameterKey": "usernameCaseSensitive", + "ParameterValue": "false" + }, + { + "ParameterKey": "resourceName", + "ParameterValue": "projectboards54040ecc" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "serviceName", + "ParameterValue": "Cognito" + }, + { + "ParameterKey": "emailVerificationMessage", + "ParameterValue": "Your verification code is {####}" + }, + { + "ParameterKey": "userpoolClientRefreshTokenValidity", + "ParameterValue": "30" + }, + { + "ParameterKey": "userpoolClientSetAttributes", + "ParameterValue": "false" + }, + { + "ParameterKey": "unauthRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-projectboards-x-x-unauthRole" + }, + { + "ParameterKey": "requiredAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "passwordPolicyCharacters", + "ParameterValue": "" + }, + { + "ParameterKey": "aliasAttributes", + "ParameterValue": "" + }, + { + "ParameterKey": "userpoolClientLambdaRole", + "ParameterValue": "projec54040ecc_userpoolclient_lambda_role" + }, + { + "ParameterKey": "defaultPasswordPolicy", + "ParameterValue": "false" + } +] diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-x-x-authprojectboards54040ecc-x.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-x-x-authprojectboards54040ecc-x.template.json new file mode 100644 index 00000000000..ed9ca557aa6 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-x-x-authprojectboards54040ecc-x.template.json @@ -0,0 +1,316 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "identityPoolName": { + "Type": "String" + }, + "allowUnauthenticatedIdentities": { + "Type": "String" + }, + "resourceNameTruncated": { + "Type": "String" + }, + "userPoolName": { + "Type": "String" + }, + "autoVerifiedAttributes": { + "Type": "CommaDelimitedList" + }, + "mfaConfiguration": { + "Type": "String" + }, + "mfaTypes": { + "Type": "CommaDelimitedList" + }, + "smsAuthenticationMessage": { + "Type": "String" + }, + "smsVerificationMessage": { + "Type": "String" + }, + "emailVerificationSubject": { + "Type": "String" + }, + "emailVerificationMessage": { + "Type": "String" + }, + "defaultPasswordPolicy": { + "Type": "String" + }, + "passwordPolicyMinLength": { + "Type": "String" + }, + "passwordPolicyCharacters": { + "Type": "CommaDelimitedList" + }, + "requiredAttributes": { + "Type": "CommaDelimitedList" + }, + "aliasAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientGenerateSecret": { + "Type": "String" + }, + "userpoolClientRefreshTokenValidity": { + "Type": "String" + }, + "userpoolClientWriteAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientReadAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientLambdaRole": { + "Type": "String" + }, + "userpoolClientSetAttributes": { + "Type": "String" + }, + "sharedId": { + "Type": "String" + }, + "resourceName": { + "Type": "String" + }, + "authSelections": { + "Type": "String" + }, + "useDefault": { + "Type": "String" + }, + "usernameAttributes": { + "Type": "CommaDelimitedList" + }, + "userPoolGroupList": { + "Type": "CommaDelimitedList" + }, + "serviceName": { + "Type": "String" + }, + "usernameCaseSensitive": { + "Type": "String" + }, + "useEnabledMfas": { + "Type": "String" + }, + "authRoleArn": { + "Type": "String" + }, + "unauthRoleArn": { + "Type": "String" + }, + "breakCircularDependency": { + "Type": "String" + }, + "dependsOn": { + "Type": "CommaDelimitedList" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + "x", + "NONE" + ] + } + }, + "Resources": { + "UserPool": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": "8", + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolName": { + "Fn::Join": [ + "", + [ + "projectboards54040ecc_userpool_54040ecc", + "-", + "x" + ] + ] + }, + "UsernameAttributes": [ + "email" + ], + "UsernameConfiguration": { + "CaseSensitive": false + } + } + }, + "UserPoolClientWeb": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "projec54040ecc_app_clientWeb", + "RefreshTokenValidity": "30", + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": "us-east-1_RF9bhQiUc" + } + }, + "UserPoolClient": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "projec54040ecc_app_client", + "GenerateSecret": "false", + "RefreshTokenValidity": "30", + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": "us-east-1_RF9bhQiUc" + } + }, + "UserPoolClientRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + }, + "Action": "sts:AssumeRole" + } + ] + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "upClientLambdaRole54040ecc", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + "amplify-projectboards-x-x-authprojectboards54040ecc-x" + ] + } + ] + }, + "-", + "x" + ] + ] + } + } + }, + "IdentityPool": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": "true", + "CognitoIdentityProviders": [ + { + "ClientId": "sqgpogjacv674kd5vogpkfpj5", + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": "us-east-1_RF9bhQiUc" + } + ] + } + }, + { + "ClientId": "4165deda0ocqapbc08njs6jr0t", + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": "us-east-1_RF9bhQiUc" + } + ] + } + } + ], + "IdentityPoolName": { + "Fn::Join": [ + "", + [ + "projectboards54040ecc_identitypool_54040ecc__", + "x" + ] + ] + } + } + }, + "IdentityPoolRoleMap": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:b610ff34-8e52-4e93-9822-f56e9fca42fd", + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-projectboards-x-x-unauthRole", + "authenticated": "arn:aws:iam::123456789012:role/amplify-projectboards-x-x-authRole" + } + } + } + }, + "Outputs": { + "IdentityPoolId": { + "Description": "Id for the identity pool", + "Value": "us-east-1:b610ff34-8e52-4e93-9822-f56e9fca42fd" + }, + "IdentityPoolName": { + "Value": "projectboards54040ecc_identitypool_54040ecc__x" + }, + "UserPoolId": { + "Description": "Id for the user pool", + "Value": "us-east-1_RF9bhQiUc" + }, + "UserPoolArn": { + "Description": "Arn for the user pool", + "Value": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_RF9bhQiUc" + }, + "UserPoolName": { + "Value": "projectboards54040ecc_userpool_54040ecc" + }, + "AppClientIDWeb": { + "Description": "The user pool app client id for web", + "Value": "4165deda0ocqapbc08njs6jr0t" + }, + "AppClientID": { + "Description": "The user pool app client id", + "Value": "sqgpogjacv674kd5vogpkfpj5" + } + } +} diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-x-x-storages369f8ff1c-x.parameters.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-x-x-storages369f8ff1c-x.parameters.json new file mode 100644 index 00000000000..b9e8bca762a --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-x-x-storages369f8ff1c-x.parameters.json @@ -0,0 +1,86 @@ +[ + { + "ParameterKey": "s3PermissionsGuestPublic", + "ParameterValue": "s3:GetObject" + }, + { + "ParameterKey": "bucketName", + "ParameterValue": "projectboards34b9a7f3c2ca489293910116c994688b" + }, + { + "ParameterKey": "s3PublicPolicy", + "ParameterValue": "Public_policy_69f8ff1c" + }, + { + "ParameterKey": "AuthenticatedAllowList", + "ParameterValue": "ALLOW" + }, + { + "ParameterKey": "unauthRoleName", + "ParameterValue": "amplify-projectboards-x-x-unauthRole" + }, + { + "ParameterKey": "s3PrivatePolicy", + "ParameterValue": "Private_policy_69f8ff1c" + }, + { + "ParameterKey": "selectedGuestPermissions", + "ParameterValue": "s3:GetObject,s3:ListBucket" + }, + { + "ParameterKey": "s3PermissionsAuthenticatedPublic", + "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" + }, + { + "ParameterKey": "s3PermissionsAuthenticatedPrivate", + "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" + }, + { + "ParameterKey": "s3PermissionsAuthenticatedUploads", + "ParameterValue": "s3:PutObject" + }, + { + "ParameterKey": "s3UploadsPolicy", + "ParameterValue": "Uploads_policy_69f8ff1c" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "unauthPolicyName", + "ParameterValue": "s3_amplify_69f8ff1c" + }, + { + "ParameterKey": "authRoleName", + "ParameterValue": "amplify-projectboards-x-x-authRole" + }, + { + "ParameterKey": "GuestAllowList", + "ParameterValue": "ALLOW" + }, + { + "ParameterKey": "authPolicyName", + "ParameterValue": "s3_amplify_69f8ff1c" + }, + { + "ParameterKey": "s3ProtectedPolicy", + "ParameterValue": "Protected_policy_69f8ff1c" + }, + { + "ParameterKey": "s3PermissionsAuthenticatedProtected", + "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" + }, + { + "ParameterKey": "s3PermissionsGuestUploads", + "ParameterValue": "DISALLOW" + }, + { + "ParameterKey": "s3ReadPolicy", + "ParameterValue": "read_policy_69f8ff1c" + }, + { + "ParameterKey": "selectedAuthenticatedPermissions", + "ParameterValue": "s3:PutObject,s3:GetObject,s3:ListBucket,s3:DeleteObject" + } +] diff --git a/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-x-x-storages369f8ff1c-x.template.json b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-x-x-storages369f8ff1c-x.template.json new file mode 100644 index 00000000000..2def6503388 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.post.refactor/update.amplify-projectboards-x-x-storages369f8ff1c-x.template.json @@ -0,0 +1,533 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-S3\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "bucketName": { + "Type": "String" + }, + "authRoleName": { + "Type": "String" + }, + "unauthRoleName": { + "Type": "String" + }, + "authPolicyName": { + "Type": "String" + }, + "unauthPolicyName": { + "Type": "String" + }, + "s3PublicPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3PrivatePolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3ProtectedPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3UploadsPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3ReadPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3PermissionsAuthenticatedPublic": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedProtected": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedPrivate": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedUploads": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsGuestPublic": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsGuestUploads": { + "Type": "String", + "Default": "DISALLOW" + }, + "AuthenticatedAllowList": { + "Type": "String", + "Default": "DISALLOW" + }, + "GuestAllowList": { + "Type": "String", + "Default": "DISALLOW" + }, + "selectedGuestPermissions": { + "Type": "CommaDelimitedList", + "Default": "NONE" + }, + "selectedAuthenticatedPermissions": { + "Type": "CommaDelimitedList", + "Default": "NONE" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + "x", + "NONE" + ] + }, + "CreateAuthPublic": { + "Fn::Not": [ + { + "Fn::Equals": [ + "s3:PutObject,s3:GetObject,s3:DeleteObject", + "DISALLOW" + ] + } + ] + }, + "CreateAuthProtected": { + "Fn::Not": [ + { + "Fn::Equals": [ + "s3:PutObject,s3:GetObject,s3:DeleteObject", + "DISALLOW" + ] + } + ] + }, + "CreateAuthPrivate": { + "Fn::Not": [ + { + "Fn::Equals": [ + "s3:PutObject,s3:GetObject,s3:DeleteObject", + "DISALLOW" + ] + } + ] + }, + "CreateAuthUploads": { + "Fn::Not": [ + { + "Fn::Equals": [ + "s3:PutObject", + "DISALLOW" + ] + } + ] + }, + "CreateGuestPublic": { + "Fn::Not": [ + { + "Fn::Equals": [ + "s3:GetObject", + "DISALLOW" + ] + } + ] + }, + "CreateGuestUploads": { + "Fn::Not": [ + { + "Fn::Equals": [ + "DISALLOW", + "DISALLOW" + ] + } + ] + }, + "AuthReadAndList": { + "Fn::Not": [ + { + "Fn::Equals": [ + "ALLOW", + "DISALLOW" + ] + } + ] + }, + "GuestReadAndList": { + "Fn::Not": [ + { + "Fn::Equals": [ + "ALLOW", + "DISALLOW" + ] + } + ] + } + }, + "Outputs": { + "BucketName": { + "Description": "Bucket name for the S3 bucket", + "Value": "projectboards34b9a7f3c2ca489293910116c994688bx-x" + }, + "Region": { + "Value": "us-east-1" + } + }, + "Resources": { + "S3Bucket": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketName": { + "Fn::Join": [ + "", + [ + "projectboards34b9a7f3c2ca489293910116c994688b", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + "amplify-projectboards-x-x-storages369f8ff1c-x" + ] + } + ] + }, + "-", + "x" + ] + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "Id": "S3CORSRuleId1", + "MaxAge": 3000 + } + ] + }, + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + } + }, + "UpdateReplacePolicy": "Retain", + "DeletionPolicy": "Retain" + }, + "S3AuthPublicPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + "s3:PutObject,s3:GetObject,s3:DeleteObject" + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "projectboards34b9a7f3c2ca489293910116c994688bx-x", + "/public/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "Public_policy_69f8ff1c", + "Roles": [ + "amplify-projectboards-x-x-authRole" + ] + }, + "Condition": "CreateAuthPublic" + }, + "S3AuthProtectedPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + "s3:PutObject,s3:GetObject,s3:DeleteObject" + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "projectboards34b9a7f3c2ca489293910116c994688bx-x", + "/protected/${cognito-identity.amazonaws.com:sub}/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "Protected_policy_69f8ff1c", + "Roles": [ + "amplify-projectboards-x-x-authRole" + ] + }, + "Condition": "CreateAuthProtected" + }, + "S3AuthPrivatePolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + "s3:PutObject,s3:GetObject,s3:DeleteObject" + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "projectboards34b9a7f3c2ca489293910116c994688bx-x", + "/private/${cognito-identity.amazonaws.com:sub}/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "Private_policy_69f8ff1c", + "Roles": [ + "amplify-projectboards-x-x-authRole" + ] + }, + "Condition": "CreateAuthPrivate" + }, + "S3AuthUploadPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + "s3:PutObject" + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "projectboards34b9a7f3c2ca489293910116c994688bx-x", + "/uploads/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "Uploads_policy_69f8ff1c", + "Roles": [ + "amplify-projectboards-x-x-authRole" + ] + }, + "Condition": "CreateAuthUploads" + }, + "S3GuestPublicPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + "s3:GetObject" + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "projectboards34b9a7f3c2ca489293910116c994688bx-x", + "/public/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": "Public_policy_69f8ff1c", + "Roles": [ + "amplify-projectboards-x-x-unauthRole" + ] + }, + "Condition": "CreateGuestPublic" + }, + "S3AuthReadPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "projectboards34b9a7f3c2ca489293910116c994688bx-x", + "/protected/*" + ] + ] + } + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/", + "public/*", + "protected/", + "protected/*", + "private/${cognito-identity.amazonaws.com:sub}/", + "private/${cognito-identity.amazonaws.com:sub}/*" + ] + } + }, + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "projectboards34b9a7f3c2ca489293910116c994688bx-x" + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "read_policy_69f8ff1c", + "Roles": [ + "amplify-projectboards-x-x-authRole" + ] + }, + "Condition": "AuthReadAndList" + }, + "S3GuestReadPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "projectboards34b9a7f3c2ca489293910116c994688bx-x", + "/protected/*" + ] + ] + } + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/", + "public/*", + "protected/", + "protected/*" + ] + } + }, + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + "projectboards34b9a7f3c2ca489293910116c994688bx-x" + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "read_policy_69f8ff1c", + "Roles": [ + "amplify-projectboards-x-x-unauthRole" + ] + }, + "Condition": "GuestReadAndList" + } + } +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/.gitignore b/amplify-migration-apps/project-boards/_snapshot.pre.generate/.gitignore index 4a025af5313..8c9162f3547 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/.gitignore +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/.gitignore @@ -36,7 +36,6 @@ dist/ node_modules/ aws-exports.js awsconfiguration.json -amplifyconfiguration.json amplifyconfiguration.dart amplify-build-config.json amplify-gradle-config.json diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json index 69a15612985..eb9b39b8a84 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json @@ -1,14 +1,14 @@ { "providers": { "awscloudformation": { - "AuthRoleName": "amplify-projectboards-main-02940-authRole", - "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-projectboards-main-02940-unauthRole", - "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-projectboards-main-02940-authRole", + "AuthRoleName": "amplify-projectboards-x-x-authRole", + "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-projectboards-x-x-unauthRole", + "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-projectboards-x-x-authRole", "Region": "us-east-1", - "DeploymentBucketName": "amplify-projectboards-main-02940-deployment", - "UnauthRoleName": "amplify-projectboards-main-02940-unauthRole", - "StackName": "amplify-projectboards-main-02940", - "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-projectboards-main-02940/b1077460-19ca-11f1-a5bd-12cb2662bcfd", + "DeploymentBucketName": "amplify-projectboards-x-x-deployment", + "UnauthRoleName": "amplify-projectboards-x-x-unauthRole", + "StackName": "amplify-projectboards-x-x", + "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-projectboards-x-x/39c2f9b0-387e-11f1-b834-0affdb5fc025", "AmplifyAppId": "projectboards" } }, @@ -39,17 +39,17 @@ ] }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-main-02940-deployment/amplify-cfn-templates/auth/projectboards54040ecc-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-x-x-deployment/amplify-cfn-templates/auth/projectboards54040ecc-cloudformation-template.json", "logicalId": "authprojectboards54040ecc" }, - "lastPushTimeStamp": "2026-03-07T02:19:47.726Z", + "lastPushTimeStamp": "2026-04-15T03:55:48.117Z", "output": { - "UserPoolId": "us-east-1_ct5s4IEz3", - "AppClientIDWeb": "1vpeihq8svf62sepfnkuvp8sld", - "AppClientID": "3dbqrlfs0a0g4a6ihsanen6i5", - "IdentityPoolId": "us-east-1:88399477-86ba-4d93-aa1a-13242b53b791", - "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_ct5s4IEz3", - "IdentityPoolName": "projectboards54040ecc_identitypool_54040ecc__main", + "UserPoolId": "us-east-1_RF9bhQiUc", + "AppClientIDWeb": "4165deda0ocqapbc08njs6jr0t", + "AppClientID": "sqgpogjacv674kd5vogpkfpj5", + "IdentityPoolId": "us-east-1:b610ff34-8e52-4e93-9822-f56e9fca42fd", + "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_RF9bhQiUc", + "IdentityPoolName": "projectboards54040ecc_identitypool_54040ecc__x", "UserPoolName": "projectboards54040ecc_userpool_54040ecc" }, "lastPushDirHash": "E3+cSQzjNpCq8eW8BAT1Q2+3/EQ=" @@ -85,13 +85,13 @@ } ] }, - "GraphQLAPIIdOutput": "47mmg7n7zzcmnhcdcrkmgul4xe", - "GraphQLAPIEndpointOutput": "https://adjkcv4xardypnioiv3g5zdds4.appsync-api.us-east-1.amazonaws.com/graphql", + "GraphQLAPIIdOutput": "feqgb7ww75f5lklhnep4rre3va", + "GraphQLAPIEndpointOutput": "https://uuqax34aozdp5n47sh44q2ytka.appsync-api.us-east-1.amazonaws.com/graphql", "GraphQLAPIKeyOutput": "da2-fakeapikey00000000000000" }, - "lastPushTimeStamp": "2026-03-07T02:19:47.726Z", + "lastPushTimeStamp": "2026-04-15T03:55:48.117Z", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-main-02940-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", "logicalId": "apiprojectboards" }, "lastPushDirHash": "p24ky1jOuJOZckvld1ejFE/umaw=" @@ -102,13 +102,13 @@ "service": "S3", "providerPlugin": "awscloudformation", "dependsOn": [], - "lastPushTimeStamp": "2026-03-07T02:19:47.726Z", + "lastPushTimeStamp": "2026-04-15T03:55:48.117Z", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-main-02940-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-x-x-deployment/amplify-cfn-templates/storage/cloudformation-template.json", "logicalId": "storages369f8ff1c" }, "output": { - "BucketName": "projectboards34b9a7f3c2ca489293910116c994688b02940-main", + "BucketName": "projectboards34b9a7f3c2ca489293910116c994688bx-x", "Region": "us-east-1" }, "lastPushDirHash": "u4iGgqx/vZoQIk/sJXOHoJlvkjc=" @@ -119,27 +119,27 @@ "build": true, "providerPlugin": "awscloudformation", "service": "Lambda", - "lastBuildTimeStamp": "2026-03-07T02:14:35.367Z", + "lastBuildTimeStamp": "2026-04-15T03:51:20.076Z", "lastBuildType": "PROD", - "lastPackageTimeStamp": "2026-03-07T02:14:35.422Z", + "lastPackageTimeStamp": "2026-04-15T03:51:20.095Z", "distZipFilename": "quotegenerator-51737a6b73437548654c-build.zip", "s3Bucket": { - "deploymentBucketName": "amplify-projectboards-main-02940-deployment", + "deploymentBucketName": "amplify-projectboards-x-x-deployment", "s3Key": "amplify-builds/quotegenerator-51737a6b73437548654c-build.zip" }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-main-02940-deployment/amplify-cfn-templates/function/quotegenerator-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-x-x-deployment/amplify-cfn-templates/function/quotegenerator-cloudformation-template.json", "logicalId": "functionquotegenerator" }, - "lastPushTimeStamp": "2026-03-07T02:19:47.726Z", + "lastPushTimeStamp": "2026-04-15T03:55:48.117Z", "output": { - "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/projectboardsLambdaRolef283f87f-main", + "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/projectboardsLambdaRolef283f87f-x", "Region": "us-east-1", - "Arn": "arn:aws:lambda:us-east-1:123456789012:function:quotegenerator-main", - "Name": "quotegenerator-main", - "LambdaExecutionRole": "projectboardsLambdaRolef283f87f-main" + "Arn": "arn:aws:lambda:us-east-1:123456789012:function:quotegenerator-x", + "Name": "quotegenerator-x", + "LambdaExecutionRole": "projectboardsLambdaRolef283f87f-x" }, "lastPushDirHash": "rmG4tVJKaeLg6WPjY18l2OAzag4=" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/cloudformation-template.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/cloudformation-template.json index 2fa4c923964..458b4e96b54 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/cloudformation-template.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/cloudformation-template.json @@ -127,7 +127,7 @@ "ApiId" ] }, - "Expires": 1773454476 + "Expires": 1776829881 } }, "GraphQLAPINONEDS95A13CF0": { @@ -531,7 +531,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -628,7 +628,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -725,7 +725,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -822,7 +822,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -919,7 +919,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1049,4 +1049,4 @@ } }, "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/parameters.json index 419856d1321..b40670fa1b1 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/parameters.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/parameters.json @@ -8,6 +8,6 @@ "Outputs.UserPoolId" ] }, - "S3DeploymentBucket": "amplify-projectboards-main-02940-deployment", + "S3DeploymentBucket": "amplify-projectboards-x-x-deployment", "S3DeploymentRootKey": "amplify-appsync-files/182d69537a429ad74cd4e2ced5fdadbb4cbf17fc" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/InvokeQuotegeneratorLambdaDataSource.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/InvokeQuotegeneratorLambdaDataSource.req.vtl index dd90b6f6376..01114f78993 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/InvokeQuotegeneratorLambdaDataSource.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/InvokeQuotegeneratorLambdaDataSource.req.vtl @@ -12,4 +12,4 @@ "prev": $util.toJson($ctx.prev) } } -## [End] Invoke AWS Lambda data source: QuotegeneratorLambdaDataSource. ** \ No newline at end of file +## [End] Invoke AWS Lambda data source: QuotegeneratorLambdaDataSource. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/InvokeQuotegeneratorLambdaDataSource.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/InvokeQuotegeneratorLambdaDataSource.res.vtl index e6b83d8b6ab..1316903313e 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/InvokeQuotegeneratorLambdaDataSource.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/InvokeQuotegeneratorLambdaDataSource.res.vtl @@ -3,4 +3,4 @@ $util.error($ctx.error.message, $ctx.error.type) #end $util.toJson($ctx.result) -## [End] Handle error or return result. ** \ No newline at end of file +## [End] Handle error or return result. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.createProject.auth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.createProject.auth.1.req.vtl index bd515ae3245..e49fc3223df 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.createProject.auth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.createProject.auth.1.req.vtl @@ -49,4 +49,4 @@ $util.unauthorized() #end #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.createProject.init.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.createProject.init.1.req.vtl index df6b4cbbc5c..407b5845fc2 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.createProject.init.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.createProject.init.1.req.vtl @@ -8,4 +8,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.createProject.postAuth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.createProject.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.createProject.postAuth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.createProject.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.createProject.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.createProject.req.vtl index 6ade2d502a3..c026957a16e 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.createProject.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.createProject.req.vtl @@ -63,4 +63,4 @@ $util.qr($mergedValues.put("__typename", "Project")) $util.qr($PutObject.put("key", $Key)) #end $util.toJson($PutObject) -## [End] Create Request template. ** \ No newline at end of file +## [End] Create Request template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.createProject.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.createProject.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.createProject.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.createProject.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.createTodo.auth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.createTodo.auth.1.req.vtl index b074fcd47a3..a13011bfca8 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.createTodo.auth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.createTodo.auth.1.req.vtl @@ -49,4 +49,4 @@ $util.unauthorized() #end #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.createTodo.init.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.createTodo.init.1.req.vtl index df6b4cbbc5c..407b5845fc2 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.createTodo.init.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.createTodo.init.1.req.vtl @@ -8,4 +8,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.createTodo.postAuth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.createTodo.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.createTodo.postAuth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.createTodo.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.createTodo.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.createTodo.req.vtl index f03395e5eaa..ba7382bb4e2 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.createTodo.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.createTodo.req.vtl @@ -63,4 +63,4 @@ $util.qr($mergedValues.put("__typename", "Todo")) $util.qr($PutObject.put("key", $Key)) #end $util.toJson($PutObject) -## [End] Create Request template. ** \ No newline at end of file +## [End] Create Request template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.createTodo.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.createTodo.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.createTodo.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.createTodo.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.deleteProject.auth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.deleteProject.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.deleteProject.auth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.deleteProject.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.deleteProject.auth.1.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.deleteProject.auth.1.res.vtl index d60b77ecdd7..a616f67a6c4 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.deleteProject.auth.1.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.deleteProject.auth.1.res.vtl @@ -24,4 +24,4 @@ $util.unauthorized() $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.deleteProject.postAuth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.deleteProject.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.deleteProject.postAuth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.deleteProject.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.deleteProject.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.deleteProject.req.vtl index ace459bd501..d2cb40cd15d 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.deleteProject.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.deleteProject.req.vtl @@ -55,4 +55,4 @@ $util.qr($DeleteRequest.put("key", $Key)) $util.qr($DeleteRequest.put("condition", $Conditions)) #end $util.toJson($DeleteRequest) -## [End] Delete Request template. ** \ No newline at end of file +## [End] Delete Request template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.deleteProject.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.deleteProject.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.deleteProject.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.deleteProject.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.deleteTodo.auth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.deleteTodo.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.deleteTodo.auth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.deleteTodo.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.deleteTodo.auth.1.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.deleteTodo.auth.1.res.vtl index d60b77ecdd7..a616f67a6c4 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.deleteTodo.auth.1.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.deleteTodo.auth.1.res.vtl @@ -24,4 +24,4 @@ $util.unauthorized() $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.deleteTodo.postAuth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.deleteTodo.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.deleteTodo.postAuth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.deleteTodo.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.deleteTodo.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.deleteTodo.req.vtl index ace459bd501..d2cb40cd15d 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.deleteTodo.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.deleteTodo.req.vtl @@ -55,4 +55,4 @@ $util.qr($DeleteRequest.put("key", $Key)) $util.qr($DeleteRequest.put("condition", $Conditions)) #end $util.toJson($DeleteRequest) -## [End] Delete Request template. ** \ No newline at end of file +## [End] Delete Request template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.deleteTodo.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.deleteTodo.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.deleteTodo.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.deleteTodo.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateProject.auth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateProject.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateProject.auth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateProject.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateProject.auth.1.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateProject.auth.1.res.vtl index f7af8a41604..dd719b0da67 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateProject.auth.1.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateProject.auth.1.res.vtl @@ -52,4 +52,4 @@ $util.unauthorized() $util.error("Unauthorized on ${deniedFields.keySet()}", "Unauthorized") #end $util.toJson({}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateProject.init.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateProject.init.1.req.vtl index ab5766fb051..dde2512aea8 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateProject.init.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateProject.init.1.req.vtl @@ -6,4 +6,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateProject.postAuth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateProject.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateProject.postAuth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateProject.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateProject.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateProject.req.vtl index a1bd67d21b6..648b67d7c57 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateProject.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateProject.req.vtl @@ -127,4 +127,4 @@ $util.qr($update.put("expression", "$expression")) $util.qr($UpdateItem.put("condition", $Conditions)) #end $util.toJson($UpdateItem) -## [End] Mutation Update resolver. ** \ No newline at end of file +## [End] Mutation Update resolver. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateProject.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateProject.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateProject.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateProject.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateTodo.auth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateTodo.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateTodo.auth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateTodo.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateTodo.auth.1.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateTodo.auth.1.res.vtl index e766d81e79e..aff2d1e083c 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateTodo.auth.1.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateTodo.auth.1.res.vtl @@ -52,4 +52,4 @@ $util.unauthorized() $util.error("Unauthorized on ${deniedFields.keySet()}", "Unauthorized") #end $util.toJson({}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateTodo.init.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateTodo.init.1.req.vtl index ab5766fb051..dde2512aea8 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateTodo.init.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateTodo.init.1.req.vtl @@ -6,4 +6,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateTodo.postAuth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateTodo.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateTodo.postAuth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateTodo.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateTodo.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateTodo.req.vtl index a1bd67d21b6..648b67d7c57 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateTodo.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateTodo.req.vtl @@ -127,4 +127,4 @@ $util.qr($update.put("expression", "$expression")) $util.qr($UpdateItem.put("condition", $Conditions)) #end $util.toJson($UpdateItem) -## [End] Mutation Update resolver. ** \ No newline at end of file +## [End] Mutation Update resolver. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateTodo.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateTodo.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateTodo.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Mutation.updateTodo.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Project.owner.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Project.owner.req.vtl index 1aae0961a3e..a9c5efa2bb8 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Project.owner.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Project.owner.req.vtl @@ -1 +1 @@ -$util.toJson({"version":"2018-05-29","payload":{}}) \ No newline at end of file +$util.toJson({"version":"2018-05-29","payload":{}}) diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Project.owner.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Project.owner.res.vtl index c6de7a4f2cf..0552e7005c8 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Project.owner.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Project.owner.res.vtl @@ -17,4 +17,4 @@ $util.qr($ctx.source.put("owner", $ownerEntitiesLast)) $util.toJson($ctx.source.owner) #end -## [End] Parse owner field auth for Get. ** \ No newline at end of file +## [End] Parse owner field auth for Get. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Project.todos.auth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Project.todos.auth.1.req.vtl index 58516f2d3ba..e83ccb93117 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Project.todos.auth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Project.todos.auth.1.req.vtl @@ -37,4 +37,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Project.todos.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Project.todos.req.vtl index d0c5ca01dba..40dbad4a712 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Project.todos.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Project.todos.req.vtl @@ -69,4 +69,4 @@ null #end, "index": "gsi-Project.todos" } -#end \ No newline at end of file +#end diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Project.todos.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Project.todos.res.vtl index 922c4ce53d0..ae420dbf03f 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Project.todos.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Project.todos.res.vtl @@ -10,4 +10,4 @@ $util.error($ctx.error.message, $ctx.error.type) #end #end $util.toJson($result) -#end \ No newline at end of file +#end diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.getProject.auth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.getProject.auth.1.req.vtl index c25f744430b..da78f5423e7 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.getProject.auth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.getProject.auth.1.req.vtl @@ -33,4 +33,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.getProject.postAuth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.getProject.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.getProject.postAuth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.getProject.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.getProject.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.getProject.req.vtl index a8d7811a021..fd7fbfc8013 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.getProject.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.getProject.req.vtl @@ -31,4 +31,4 @@ $util.qr($GetRequest.put("query", $query)) $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) #end $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.getProject.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.getProject.res.vtl index e9ef1436bdd..92e05f99816 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.getProject.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.getProject.res.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson(null) #end -## [End] Get Response template. ** \ No newline at end of file +## [End] Get Response template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.getRandomQuote.auth.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.getRandomQuote.auth.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.getRandomQuote.auth.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.getRandomQuote.auth.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.getRandomQuote.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.getRandomQuote.res.vtl index 634741579ce..c37b82e4a30 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.getRandomQuote.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.getRandomQuote.res.vtl @@ -1 +1 @@ -$util.toJson($ctx.prev.result) \ No newline at end of file +$util.toJson($ctx.prev.result) diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.getTodo.auth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.getTodo.auth.1.req.vtl index c25f744430b..da78f5423e7 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.getTodo.auth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.getTodo.auth.1.req.vtl @@ -33,4 +33,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.getTodo.postAuth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.getTodo.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.getTodo.postAuth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.getTodo.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.getTodo.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.getTodo.req.vtl index a8d7811a021..fd7fbfc8013 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.getTodo.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.getTodo.req.vtl @@ -31,4 +31,4 @@ $util.qr($GetRequest.put("query", $query)) $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) #end $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.getTodo.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.getTodo.res.vtl index e9ef1436bdd..92e05f99816 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.getTodo.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.getTodo.res.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson(null) #end -## [End] Get Response template. ** \ No newline at end of file +## [End] Get Response template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.listProjects.auth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.listProjects.auth.1.req.vtl index c25f744430b..da78f5423e7 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.listProjects.auth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.listProjects.auth.1.req.vtl @@ -33,4 +33,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.listProjects.postAuth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.listProjects.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.listProjects.postAuth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.listProjects.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.listProjects.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.listProjects.req.vtl index 014213710e8..ef976126825 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.listProjects.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.listProjects.req.vtl @@ -47,4 +47,4 @@ #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) #end $util.toJson($ListRequest) -## [End] List Request. ** \ No newline at end of file +## [End] List Request. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.listProjects.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.listProjects.res.vtl index ee8b6670cbc..aab9983954e 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.listProjects.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.listProjects.res.vtl @@ -4,4 +4,4 @@ #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.listTodos.auth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.listTodos.auth.1.req.vtl index c25f744430b..da78f5423e7 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.listTodos.auth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.listTodos.auth.1.req.vtl @@ -33,4 +33,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.listTodos.postAuth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.listTodos.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.listTodos.postAuth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.listTodos.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.listTodos.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.listTodos.req.vtl index 014213710e8..ef976126825 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.listTodos.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.listTodos.req.vtl @@ -47,4 +47,4 @@ #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) #end $util.toJson($ListRequest) -## [End] List Request. ** \ No newline at end of file +## [End] List Request. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.listTodos.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.listTodos.res.vtl index ee8b6670cbc..aab9983954e 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.listTodos.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Query.listTodos.res.vtl @@ -4,4 +4,4 @@ #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/QuoteResponse.author.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/QuoteResponse.author.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/QuoteResponse.author.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/QuoteResponse.author.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/QuoteResponse.author.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/QuoteResponse.author.res.vtl index f935ef45b0b..7641a22fda9 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/QuoteResponse.author.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/QuoteResponse.author.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["author"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/QuoteResponse.message.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/QuoteResponse.message.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/QuoteResponse.message.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/QuoteResponse.message.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/QuoteResponse.message.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/QuoteResponse.message.res.vtl index 16ec362ea79..7c27c12d67a 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/QuoteResponse.message.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/QuoteResponse.message.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["message"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/QuoteResponse.quote.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/QuoteResponse.quote.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/QuoteResponse.quote.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/QuoteResponse.quote.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/QuoteResponse.quote.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/QuoteResponse.quote.res.vtl index 3f2d91b1b36..d872575dc9e 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/QuoteResponse.quote.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/QuoteResponse.quote.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["quote"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/QuoteResponse.timestamp.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/QuoteResponse.timestamp.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/QuoteResponse.timestamp.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/QuoteResponse.timestamp.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/QuoteResponse.timestamp.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/QuoteResponse.timestamp.res.vtl index 5123c52c5aa..76a126983d6 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/QuoteResponse.timestamp.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/QuoteResponse.timestamp.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["timestamp"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/QuoteResponse.totalQuotes.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/QuoteResponse.totalQuotes.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/QuoteResponse.totalQuotes.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/QuoteResponse.totalQuotes.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/QuoteResponse.totalQuotes.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/QuoteResponse.totalQuotes.res.vtl index de3d42f8713..07afe2a2c90 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/QuoteResponse.totalQuotes.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/QuoteResponse.totalQuotes.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["totalQuotes"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onCreateProject.auth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onCreateProject.auth.1.req.vtl index ca6973a44ed..0d61efbb69c 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onCreateProject.auth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onCreateProject.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onCreateProject.postAuth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onCreateProject.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onCreateProject.postAuth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onCreateProject.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onCreateProject.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onCreateProject.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onCreateProject.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onCreateProject.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onCreateProject.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onCreateProject.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onCreateProject.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onCreateProject.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onCreateTodo.auth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onCreateTodo.auth.1.req.vtl index ca6973a44ed..0d61efbb69c 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onCreateTodo.auth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onCreateTodo.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onCreateTodo.postAuth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onCreateTodo.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onCreateTodo.postAuth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onCreateTodo.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onCreateTodo.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onCreateTodo.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onCreateTodo.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onCreateTodo.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onCreateTodo.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onCreateTodo.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onCreateTodo.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onCreateTodo.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onDeleteProject.auth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onDeleteProject.auth.1.req.vtl index ca6973a44ed..0d61efbb69c 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onDeleteProject.auth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onDeleteProject.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onDeleteProject.postAuth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onDeleteProject.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onDeleteProject.postAuth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onDeleteProject.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onDeleteProject.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onDeleteProject.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onDeleteProject.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onDeleteProject.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onDeleteProject.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onDeleteProject.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onDeleteProject.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onDeleteProject.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onDeleteTodo.auth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onDeleteTodo.auth.1.req.vtl index ca6973a44ed..0d61efbb69c 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onDeleteTodo.auth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onDeleteTodo.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onDeleteTodo.postAuth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onDeleteTodo.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onDeleteTodo.postAuth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onDeleteTodo.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onDeleteTodo.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onDeleteTodo.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onDeleteTodo.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onDeleteTodo.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onDeleteTodo.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onDeleteTodo.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onDeleteTodo.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onDeleteTodo.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onUpdateProject.auth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onUpdateProject.auth.1.req.vtl index ca6973a44ed..0d61efbb69c 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onUpdateProject.auth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onUpdateProject.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onUpdateProject.postAuth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onUpdateProject.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onUpdateProject.postAuth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onUpdateProject.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onUpdateProject.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onUpdateProject.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onUpdateProject.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onUpdateProject.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onUpdateProject.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onUpdateProject.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onUpdateProject.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onUpdateProject.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onUpdateTodo.auth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onUpdateTodo.auth.1.req.vtl index ca6973a44ed..0d61efbb69c 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onUpdateTodo.auth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onUpdateTodo.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onUpdateTodo.postAuth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onUpdateTodo.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onUpdateTodo.postAuth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onUpdateTodo.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onUpdateTodo.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onUpdateTodo.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onUpdateTodo.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onUpdateTodo.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onUpdateTodo.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onUpdateTodo.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onUpdateTodo.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Subscription.onUpdateTodo.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Todo.owner.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Todo.owner.req.vtl index 1aae0961a3e..a9c5efa2bb8 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Todo.owner.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Todo.owner.req.vtl @@ -1 +1 @@ -$util.toJson({"version":"2018-05-29","payload":{}}) \ No newline at end of file +$util.toJson({"version":"2018-05-29","payload":{}}) diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Todo.owner.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Todo.owner.res.vtl index c6de7a4f2cf..0552e7005c8 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Todo.owner.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/resolvers/Todo.owner.res.vtl @@ -17,4 +17,4 @@ $util.qr($ctx.source.put("owner", $ownerEntitiesLast)) $util.toJson($ctx.source.owner) #end -## [End] Parse owner field auth for Get. ** \ No newline at end of file +## [End] Parse owner field auth for Get. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/stacks/ConnectionStack.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/stacks/ConnectionStack.json index 765e7847997..e18aebc407b 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/stacks/ConnectionStack.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/stacks/ConnectionStack.json @@ -111,7 +111,7 @@ { "Ref": "referencetotransformerrootstackTodoNestedStackTodoNestedStackResource9AC126A3OutputstransformerrootstackTodoTodoTableC67E79C2Ref" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -140,4 +140,4 @@ "Type": "String" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/stacks/CustomResources.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/stacks/CustomResources.json index 016991278d0..5fe357d6096 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/stacks/CustomResources.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/stacks/CustomResources.json @@ -58,4 +58,4 @@ "Value": "" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/stacks/FunctionDirectiveStack.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/stacks/FunctionDirectiveStack.json index 320e15cb1be..ebb69f88cb4 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/stacks/FunctionDirectiveStack.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/stacks/FunctionDirectiveStack.json @@ -278,4 +278,4 @@ "Type": "String" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/stacks/Project.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/stacks/Project.json index daae2c34bb7..26a7f29de90 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/stacks/Project.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/stacks/Project.json @@ -503,7 +503,7 @@ { "Ref": "ProjectTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -604,7 +604,7 @@ { "Ref": "ProjectTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -771,7 +771,7 @@ { "Ref": "ProjectTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -959,7 +959,7 @@ { "Ref": "ProjectTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1111,7 +1111,7 @@ { "Ref": "ProjectTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1232,7 +1232,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1278,7 +1278,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1324,7 +1324,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1403,7 +1403,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1533,4 +1533,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/stacks/Todo.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/stacks/Todo.json index 0984deede62..a507b1b6aa9 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/stacks/Todo.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/build/stacks/Todo.json @@ -503,7 +503,7 @@ { "Ref": "TodoTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -598,7 +598,7 @@ { "Ref": "TodoTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -729,7 +729,7 @@ { "Ref": "TodoTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -881,7 +881,7 @@ { "Ref": "TodoTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1030,7 +1030,7 @@ { "Ref": "TodoTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1067,7 +1067,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1104,7 +1104,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1141,7 +1141,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1172,7 +1172,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1259,4 +1259,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/cli-inputs.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/cli-inputs.json index 8cd2c150cc5..4ce1a8a125d 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/cli-inputs.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/cli-inputs.json @@ -14,4 +14,4 @@ } ] } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/parameters.json index 6d858298307..28af7962ab1 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/parameters.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/parameters.json @@ -8,4 +8,4 @@ "Outputs.UserPoolId" ] } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/resolvers/README.md b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/resolvers/README.md index 89e564c5b31..1634d295144 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/resolvers/README.md +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/resolvers/README.md @@ -1,2 +1,2 @@ Any resolvers that you add in this directory will override the ones automatically generated by Amplify CLI and will be directly copied to the cloud. -For more information, visit [https://docs.amplify.aws/cli/graphql-transformer/resolvers](https://docs.amplify.aws/cli/graphql-transformer/resolvers) \ No newline at end of file +For more information, visit [https://docs.amplify.aws/cli/graphql-transformer/resolvers](https://docs.amplify.aws/cli/graphql-transformer/resolvers) diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/transform.conf.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/transform.conf.json index 98e1e19f038..d0421b1df09 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/transform.conf.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/api/projectboards/transform.conf.json @@ -1,4 +1,4 @@ { "Version": 5, "ElasticsearchWarning": true -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/projectboards54040ecc/build/parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/projectboards54040ecc/build/parameters.json index 460a0403613..026247cfc87 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/projectboards54040ecc/build/parameters.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/projectboards54040ecc/build/parameters.json @@ -56,4 +56,4 @@ }, "breakCircularDependency": true, "dependsOn": [] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/projectboards54040ecc/build/projectboards54040ecc-cloudformation-template.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/projectboards54040ecc/build/projectboards54040ecc-cloudformation-template.json index 0eb19ca9b05..8654b4414a3 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/projectboards54040ecc/build/projectboards54040ecc-cloudformation-template.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/projectboards54040ecc/build/projectboards54040ecc-cloudformation-template.json @@ -410,4 +410,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/projectboards54040ecc/cli-inputs.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/projectboards54040ecc/cli-inputs.json index 72753380ae8..658eaa0bc4d 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/projectboards54040ecc/cli-inputs.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/projectboards54040ecc/cli-inputs.json @@ -59,4 +59,4 @@ "breakCircularDependency": true, "dependsOn": [] } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/projectboards/build/cloudformation-template.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/projectboards/build/cloudformation-template.json index 2fa4c923964..458b4e96b54 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/projectboards/build/cloudformation-template.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/api/projectboards/build/cloudformation-template.json @@ -127,7 +127,7 @@ "ApiId" ] }, - "Expires": 1773454476 + "Expires": 1776829881 } }, "GraphQLAPINONEDS95A13CF0": { @@ -531,7 +531,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -628,7 +628,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -725,7 +725,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -822,7 +822,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -919,7 +919,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1049,4 +1049,4 @@ } }, "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/projectboards54040ecc/build/projectboards54040ecc-cloudformation-template.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/projectboards54040ecc/build/projectboards54040ecc-cloudformation-template.json index 0eb19ca9b05..8654b4414a3 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/projectboards54040ecc/build/projectboards54040ecc-cloudformation-template.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/projectboards54040ecc/build/projectboards54040ecc-cloudformation-template.json @@ -410,4 +410,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json index ca4b7ef3591..e49576fdec3 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json @@ -202,7 +202,7 @@ "authprojectboards54040ecc": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-main-02940-deployment/amplify-cfn-templates/auth/projectboards54040ecc-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-x-x-deployment/amplify-cfn-templates/auth/projectboards54040ecc-cloudformation-template.json", "Parameters": { "identityPoolName": "projectboards54040ecc_identitypool_54040ecc", "allowUnauthenticatedIdentities": true, @@ -249,14 +249,14 @@ }, "breakCircularDependency": true, "dependsOn": "", - "env": "main" + "env": "x" } } }, "apiprojectboards": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-main-02940-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", "Parameters": { "AppSyncApiName": "projectboards", "DynamoDBBillingMode": "PAY_PER_REQUEST", @@ -267,16 +267,16 @@ "Outputs.UserPoolId" ] }, - "S3DeploymentBucket": "amplify-projectboards-main-02940-deployment", + "S3DeploymentBucket": "amplify-projectboards-x-x-deployment", "S3DeploymentRootKey": "amplify-appsync-files/182d69537a429ad74cd4e2ced5fdadbb4cbf17fc", - "env": "main" + "env": "x" } } }, "storages369f8ff1c": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-main-02940-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-x-x-deployment/amplify-cfn-templates/storage/cloudformation-template.json", "Parameters": { "bucketName": "projectboards34b9a7f3c2ca489293910116c994688b", "selectedGuestPermissions": "s3:GetObject,s3:ListBucket", @@ -302,18 +302,18 @@ "s3PermissionsAuthenticatedUploads": "s3:PutObject", "s3PermissionsGuestPublic": "s3:GetObject", "s3PermissionsGuestUploads": "DISALLOW", - "env": "main" + "env": "x" } } }, "functionquotegenerator": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-main-02940-deployment/amplify-cfn-templates/function/quotegenerator-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-x-x-deployment/amplify-cfn-templates/function/quotegenerator-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-projectboards-main-02940-deployment", + "deploymentBucketName": "amplify-projectboards-x-x-deployment", "s3Key": "amplify-builds/quotegenerator-51737a6b73437548654c-build.zip", - "env": "main" + "env": "x" } } }, @@ -521,4 +521,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/quotegenerator/quotegenerator-cloudformation-template.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/quotegenerator/quotegenerator-cloudformation-template.json index 514feaf36cc..a43557082f2 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/quotegenerator/quotegenerator-cloudformation-template.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/quotegenerator/quotegenerator-cloudformation-template.json @@ -199,4 +199,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json index ca4b7ef3591..e49576fdec3 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json @@ -202,7 +202,7 @@ "authprojectboards54040ecc": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-main-02940-deployment/amplify-cfn-templates/auth/projectboards54040ecc-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-x-x-deployment/amplify-cfn-templates/auth/projectboards54040ecc-cloudformation-template.json", "Parameters": { "identityPoolName": "projectboards54040ecc_identitypool_54040ecc", "allowUnauthenticatedIdentities": true, @@ -249,14 +249,14 @@ }, "breakCircularDependency": true, "dependsOn": "", - "env": "main" + "env": "x" } } }, "apiprojectboards": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-main-02940-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", "Parameters": { "AppSyncApiName": "projectboards", "DynamoDBBillingMode": "PAY_PER_REQUEST", @@ -267,16 +267,16 @@ "Outputs.UserPoolId" ] }, - "S3DeploymentBucket": "amplify-projectboards-main-02940-deployment", + "S3DeploymentBucket": "amplify-projectboards-x-x-deployment", "S3DeploymentRootKey": "amplify-appsync-files/182d69537a429ad74cd4e2ced5fdadbb4cbf17fc", - "env": "main" + "env": "x" } } }, "storages369f8ff1c": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-main-02940-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-x-x-deployment/amplify-cfn-templates/storage/cloudformation-template.json", "Parameters": { "bucketName": "projectboards34b9a7f3c2ca489293910116c994688b", "selectedGuestPermissions": "s3:GetObject,s3:ListBucket", @@ -302,18 +302,18 @@ "s3PermissionsAuthenticatedUploads": "s3:PutObject", "s3PermissionsGuestPublic": "s3:GetObject", "s3PermissionsGuestUploads": "DISALLOW", - "env": "main" + "env": "x" } } }, "functionquotegenerator": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-main-02940-deployment/amplify-cfn-templates/function/quotegenerator-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-x-x-deployment/amplify-cfn-templates/function/quotegenerator-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-projectboards-main-02940-deployment", + "deploymentBucketName": "amplify-projectboards-x-x-deployment", "s3Key": "amplify-builds/quotegenerator-51737a6b73437548654c-build.zip", - "env": "main" + "env": "x" } } }, @@ -521,4 +521,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/storage/s369f8ff1c/build/cloudformation-template.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/storage/s369f8ff1c/build/cloudformation-template.json index 8bac1dbfa69..204a64677c8 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/storage/s369f8ff1c/build/cloudformation-template.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/storage/s369f8ff1c/build/cloudformation-template.json @@ -643,4 +643,4 @@ "Condition": "GuestReadAndList" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json index 638b3ad418d..bead8381050 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json @@ -92,4 +92,4 @@ "service": "S3" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/function/quotegenerator/amplify.state b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/function/quotegenerator/amplify.state index 0c3efe04706..ab8a6cc8046 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/function/quotegenerator/amplify.state +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/function/quotegenerator/amplify.state @@ -3,4 +3,4 @@ "functionRuntime": "nodejs", "useLegacyBuild": true, "defaultEditorFile": "src/index.js" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/function/quotegenerator/custom-policies.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/function/quotegenerator/custom-policies.json index 528c94f2f26..1f21c530082 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/function/quotegenerator/custom-policies.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/function/quotegenerator/custom-policies.json @@ -3,4 +3,4 @@ "Action": [], "Resource": [] } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/function/quotegenerator/function-parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/function/quotegenerator/function-parameters.json index d5078776c21..481f6af97f7 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/function/quotegenerator/function-parameters.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/function/quotegenerator/function-parameters.json @@ -1,3 +1,3 @@ { "lambdaLayers": [] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/function/quotegenerator/quotegenerator-cloudformation-template.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/function/quotegenerator/quotegenerator-cloudformation-template.json index 514feaf36cc..a43557082f2 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/function/quotegenerator/quotegenerator-cloudformation-template.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/function/quotegenerator/quotegenerator-cloudformation-template.json @@ -199,4 +199,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s369f8ff1c/build/cloudformation-template.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s369f8ff1c/build/cloudformation-template.json index 6e2bc99e890..d9b5969f570 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s369f8ff1c/build/cloudformation-template.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s369f8ff1c/build/cloudformation-template.json @@ -634,4 +634,4 @@ "Condition": "GuestReadAndList" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s369f8ff1c/build/parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s369f8ff1c/build/parameters.json index 119ed99b739..2723a10f804 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s369f8ff1c/build/parameters.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s369f8ff1c/build/parameters.json @@ -31,4 +31,4 @@ "s3PermissionsAuthenticatedUploads": "s3:PutObject", "s3PermissionsGuestPublic": "s3:GetObject", "s3PermissionsGuestUploads": "DISALLOW" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s369f8ff1c/cli-inputs.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s369f8ff1c/cli-inputs.json index ee586805c80..00c9eb4ef81 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s369f8ff1c/cli-inputs.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/storage/s369f8ff1c/cli-inputs.json @@ -13,4 +13,4 @@ ], "triggerFunction": "NONE", "groupAccess": {} -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/tags.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/tags.json index b9321d71b83..71f6abe11a6 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/tags.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/#current-cloud-backend/tags.json @@ -7,4 +7,4 @@ "Key": "user:Application", "Value": "{project-name}" } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/.config/project-config.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/.config/project-config.json index 9265c47f412..0f88515442d 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/.config/project-config.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/.config/project-config.json @@ -8,11 +8,11 @@ "config": { "SourceDir": "src", "DistributionDir": "dist", - "BuildCommand": "npm run-script build", + "BuildCommand": "npm run build", "StartCommand": "npm run-script start" } }, "providers": [ "awscloudformation" ] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/amplify-meta.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/amplify-meta.json index 69a15612985..eb9b39b8a84 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/amplify-meta.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/amplify-meta.json @@ -1,14 +1,14 @@ { "providers": { "awscloudformation": { - "AuthRoleName": "amplify-projectboards-main-02940-authRole", - "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-projectboards-main-02940-unauthRole", - "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-projectboards-main-02940-authRole", + "AuthRoleName": "amplify-projectboards-x-x-authRole", + "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-projectboards-x-x-unauthRole", + "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-projectboards-x-x-authRole", "Region": "us-east-1", - "DeploymentBucketName": "amplify-projectboards-main-02940-deployment", - "UnauthRoleName": "amplify-projectboards-main-02940-unauthRole", - "StackName": "amplify-projectboards-main-02940", - "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-projectboards-main-02940/b1077460-19ca-11f1-a5bd-12cb2662bcfd", + "DeploymentBucketName": "amplify-projectboards-x-x-deployment", + "UnauthRoleName": "amplify-projectboards-x-x-unauthRole", + "StackName": "amplify-projectboards-x-x", + "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-projectboards-x-x/39c2f9b0-387e-11f1-b834-0affdb5fc025", "AmplifyAppId": "projectboards" } }, @@ -39,17 +39,17 @@ ] }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-main-02940-deployment/amplify-cfn-templates/auth/projectboards54040ecc-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-x-x-deployment/amplify-cfn-templates/auth/projectboards54040ecc-cloudformation-template.json", "logicalId": "authprojectboards54040ecc" }, - "lastPushTimeStamp": "2026-03-07T02:19:47.726Z", + "lastPushTimeStamp": "2026-04-15T03:55:48.117Z", "output": { - "UserPoolId": "us-east-1_ct5s4IEz3", - "AppClientIDWeb": "1vpeihq8svf62sepfnkuvp8sld", - "AppClientID": "3dbqrlfs0a0g4a6ihsanen6i5", - "IdentityPoolId": "us-east-1:88399477-86ba-4d93-aa1a-13242b53b791", - "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_ct5s4IEz3", - "IdentityPoolName": "projectboards54040ecc_identitypool_54040ecc__main", + "UserPoolId": "us-east-1_RF9bhQiUc", + "AppClientIDWeb": "4165deda0ocqapbc08njs6jr0t", + "AppClientID": "sqgpogjacv674kd5vogpkfpj5", + "IdentityPoolId": "us-east-1:b610ff34-8e52-4e93-9822-f56e9fca42fd", + "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_RF9bhQiUc", + "IdentityPoolName": "projectboards54040ecc_identitypool_54040ecc__x", "UserPoolName": "projectboards54040ecc_userpool_54040ecc" }, "lastPushDirHash": "E3+cSQzjNpCq8eW8BAT1Q2+3/EQ=" @@ -85,13 +85,13 @@ } ] }, - "GraphQLAPIIdOutput": "47mmg7n7zzcmnhcdcrkmgul4xe", - "GraphQLAPIEndpointOutput": "https://adjkcv4xardypnioiv3g5zdds4.appsync-api.us-east-1.amazonaws.com/graphql", + "GraphQLAPIIdOutput": "feqgb7ww75f5lklhnep4rre3va", + "GraphQLAPIEndpointOutput": "https://uuqax34aozdp5n47sh44q2ytka.appsync-api.us-east-1.amazonaws.com/graphql", "GraphQLAPIKeyOutput": "da2-fakeapikey00000000000000" }, - "lastPushTimeStamp": "2026-03-07T02:19:47.726Z", + "lastPushTimeStamp": "2026-04-15T03:55:48.117Z", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-main-02940-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", "logicalId": "apiprojectboards" }, "lastPushDirHash": "p24ky1jOuJOZckvld1ejFE/umaw=" @@ -102,13 +102,13 @@ "service": "S3", "providerPlugin": "awscloudformation", "dependsOn": [], - "lastPushTimeStamp": "2026-03-07T02:19:47.726Z", + "lastPushTimeStamp": "2026-04-15T03:55:48.117Z", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-main-02940-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-x-x-deployment/amplify-cfn-templates/storage/cloudformation-template.json", "logicalId": "storages369f8ff1c" }, "output": { - "BucketName": "projectboards34b9a7f3c2ca489293910116c994688b02940-main", + "BucketName": "projectboards34b9a7f3c2ca489293910116c994688bx-x", "Region": "us-east-1" }, "lastPushDirHash": "u4iGgqx/vZoQIk/sJXOHoJlvkjc=" @@ -119,27 +119,27 @@ "build": true, "providerPlugin": "awscloudformation", "service": "Lambda", - "lastBuildTimeStamp": "2026-03-07T02:14:35.367Z", + "lastBuildTimeStamp": "2026-04-15T03:51:20.076Z", "lastBuildType": "PROD", - "lastPackageTimeStamp": "2026-03-07T02:14:35.422Z", + "lastPackageTimeStamp": "2026-04-15T03:51:20.095Z", "distZipFilename": "quotegenerator-51737a6b73437548654c-build.zip", "s3Bucket": { - "deploymentBucketName": "amplify-projectboards-main-02940-deployment", + "deploymentBucketName": "amplify-projectboards-x-x-deployment", "s3Key": "amplify-builds/quotegenerator-51737a6b73437548654c-build.zip" }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-main-02940-deployment/amplify-cfn-templates/function/quotegenerator-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-x-x-deployment/amplify-cfn-templates/function/quotegenerator-cloudformation-template.json", "logicalId": "functionquotegenerator" }, - "lastPushTimeStamp": "2026-03-07T02:19:47.726Z", + "lastPushTimeStamp": "2026-04-15T03:55:48.117Z", "output": { - "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/projectboardsLambdaRolef283f87f-main", + "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/projectboardsLambdaRolef283f87f-x", "Region": "us-east-1", - "Arn": "arn:aws:lambda:us-east-1:123456789012:function:quotegenerator-main", - "Name": "quotegenerator-main", - "LambdaExecutionRole": "projectboardsLambdaRolef283f87f-main" + "Arn": "arn:aws:lambda:us-east-1:123456789012:function:quotegenerator-x", + "Name": "quotegenerator-x", + "LambdaExecutionRole": "projectboardsLambdaRolef283f87f-x" }, "lastPushDirHash": "rmG4tVJKaeLg6WPjY18l2OAzag4=" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/cloudformation-template.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/cloudformation-template.json index 2fa4c923964..458b4e96b54 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/cloudformation-template.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/cloudformation-template.json @@ -127,7 +127,7 @@ "ApiId" ] }, - "Expires": 1773454476 + "Expires": 1776829881 } }, "GraphQLAPINONEDS95A13CF0": { @@ -531,7 +531,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -628,7 +628,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -725,7 +725,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -822,7 +822,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -919,7 +919,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1049,4 +1049,4 @@ } }, "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/parameters.json index 419856d1321..b40670fa1b1 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/parameters.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/parameters.json @@ -8,6 +8,6 @@ "Outputs.UserPoolId" ] }, - "S3DeploymentBucket": "amplify-projectboards-main-02940-deployment", + "S3DeploymentBucket": "amplify-projectboards-x-x-deployment", "S3DeploymentRootKey": "amplify-appsync-files/182d69537a429ad74cd4e2ced5fdadbb4cbf17fc" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/InvokeQuotegeneratorLambdaDataSource.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/InvokeQuotegeneratorLambdaDataSource.req.vtl index dd90b6f6376..01114f78993 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/InvokeQuotegeneratorLambdaDataSource.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/InvokeQuotegeneratorLambdaDataSource.req.vtl @@ -12,4 +12,4 @@ "prev": $util.toJson($ctx.prev) } } -## [End] Invoke AWS Lambda data source: QuotegeneratorLambdaDataSource. ** \ No newline at end of file +## [End] Invoke AWS Lambda data source: QuotegeneratorLambdaDataSource. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/InvokeQuotegeneratorLambdaDataSource.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/InvokeQuotegeneratorLambdaDataSource.res.vtl index e6b83d8b6ab..1316903313e 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/InvokeQuotegeneratorLambdaDataSource.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/InvokeQuotegeneratorLambdaDataSource.res.vtl @@ -3,4 +3,4 @@ $util.error($ctx.error.message, $ctx.error.type) #end $util.toJson($ctx.result) -## [End] Handle error or return result. ** \ No newline at end of file +## [End] Handle error or return result. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.createProject.auth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.createProject.auth.1.req.vtl index bd515ae3245..e49fc3223df 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.createProject.auth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.createProject.auth.1.req.vtl @@ -49,4 +49,4 @@ $util.unauthorized() #end #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.createProject.init.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.createProject.init.1.req.vtl index df6b4cbbc5c..407b5845fc2 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.createProject.init.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.createProject.init.1.req.vtl @@ -8,4 +8,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.createProject.postAuth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.createProject.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.createProject.postAuth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.createProject.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.createProject.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.createProject.req.vtl index 6ade2d502a3..c026957a16e 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.createProject.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.createProject.req.vtl @@ -63,4 +63,4 @@ $util.qr($mergedValues.put("__typename", "Project")) $util.qr($PutObject.put("key", $Key)) #end $util.toJson($PutObject) -## [End] Create Request template. ** \ No newline at end of file +## [End] Create Request template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.createProject.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.createProject.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.createProject.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.createProject.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.createTodo.auth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.createTodo.auth.1.req.vtl index b074fcd47a3..a13011bfca8 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.createTodo.auth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.createTodo.auth.1.req.vtl @@ -49,4 +49,4 @@ $util.unauthorized() #end #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.createTodo.init.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.createTodo.init.1.req.vtl index df6b4cbbc5c..407b5845fc2 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.createTodo.init.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.createTodo.init.1.req.vtl @@ -8,4 +8,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.createTodo.postAuth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.createTodo.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.createTodo.postAuth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.createTodo.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.createTodo.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.createTodo.req.vtl index f03395e5eaa..ba7382bb4e2 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.createTodo.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.createTodo.req.vtl @@ -63,4 +63,4 @@ $util.qr($mergedValues.put("__typename", "Todo")) $util.qr($PutObject.put("key", $Key)) #end $util.toJson($PutObject) -## [End] Create Request template. ** \ No newline at end of file +## [End] Create Request template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.createTodo.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.createTodo.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.createTodo.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.createTodo.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.deleteProject.auth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.deleteProject.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.deleteProject.auth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.deleteProject.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.deleteProject.auth.1.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.deleteProject.auth.1.res.vtl index d60b77ecdd7..a616f67a6c4 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.deleteProject.auth.1.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.deleteProject.auth.1.res.vtl @@ -24,4 +24,4 @@ $util.unauthorized() $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.deleteProject.postAuth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.deleteProject.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.deleteProject.postAuth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.deleteProject.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.deleteProject.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.deleteProject.req.vtl index ace459bd501..d2cb40cd15d 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.deleteProject.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.deleteProject.req.vtl @@ -55,4 +55,4 @@ $util.qr($DeleteRequest.put("key", $Key)) $util.qr($DeleteRequest.put("condition", $Conditions)) #end $util.toJson($DeleteRequest) -## [End] Delete Request template. ** \ No newline at end of file +## [End] Delete Request template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.deleteProject.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.deleteProject.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.deleteProject.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.deleteProject.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.deleteTodo.auth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.deleteTodo.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.deleteTodo.auth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.deleteTodo.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.deleteTodo.auth.1.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.deleteTodo.auth.1.res.vtl index d60b77ecdd7..a616f67a6c4 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.deleteTodo.auth.1.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.deleteTodo.auth.1.res.vtl @@ -24,4 +24,4 @@ $util.unauthorized() $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.deleteTodo.postAuth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.deleteTodo.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.deleteTodo.postAuth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.deleteTodo.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.deleteTodo.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.deleteTodo.req.vtl index ace459bd501..d2cb40cd15d 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.deleteTodo.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.deleteTodo.req.vtl @@ -55,4 +55,4 @@ $util.qr($DeleteRequest.put("key", $Key)) $util.qr($DeleteRequest.put("condition", $Conditions)) #end $util.toJson($DeleteRequest) -## [End] Delete Request template. ** \ No newline at end of file +## [End] Delete Request template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.deleteTodo.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.deleteTodo.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.deleteTodo.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.deleteTodo.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateProject.auth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateProject.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateProject.auth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateProject.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateProject.auth.1.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateProject.auth.1.res.vtl index f7af8a41604..dd719b0da67 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateProject.auth.1.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateProject.auth.1.res.vtl @@ -52,4 +52,4 @@ $util.unauthorized() $util.error("Unauthorized on ${deniedFields.keySet()}", "Unauthorized") #end $util.toJson({}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateProject.init.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateProject.init.1.req.vtl index ab5766fb051..dde2512aea8 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateProject.init.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateProject.init.1.req.vtl @@ -6,4 +6,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateProject.postAuth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateProject.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateProject.postAuth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateProject.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateProject.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateProject.req.vtl index a1bd67d21b6..648b67d7c57 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateProject.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateProject.req.vtl @@ -127,4 +127,4 @@ $util.qr($update.put("expression", "$expression")) $util.qr($UpdateItem.put("condition", $Conditions)) #end $util.toJson($UpdateItem) -## [End] Mutation Update resolver. ** \ No newline at end of file +## [End] Mutation Update resolver. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateProject.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateProject.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateProject.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateProject.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateTodo.auth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateTodo.auth.1.req.vtl index 590632b1d7f..d05ac25ddc0 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateTodo.auth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateTodo.auth.1.req.vtl @@ -12,4 +12,4 @@ #end $util.qr($GetRequest.put("key", $key)) $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateTodo.auth.1.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateTodo.auth.1.res.vtl index e766d81e79e..aff2d1e083c 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateTodo.auth.1.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateTodo.auth.1.res.vtl @@ -52,4 +52,4 @@ $util.unauthorized() $util.error("Unauthorized on ${deniedFields.keySet()}", "Unauthorized") #end $util.toJson({}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateTodo.init.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateTodo.init.1.req.vtl index ab5766fb051..dde2512aea8 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateTodo.init.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateTodo.init.1.req.vtl @@ -6,4 +6,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Initialization default values. ** \ No newline at end of file +## [End] Initialization default values. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateTodo.postAuth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateTodo.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateTodo.postAuth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateTodo.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateTodo.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateTodo.req.vtl index a1bd67d21b6..648b67d7c57 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateTodo.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateTodo.req.vtl @@ -127,4 +127,4 @@ $util.qr($update.put("expression", "$expression")) $util.qr($UpdateItem.put("condition", $Conditions)) #end $util.toJson($UpdateItem) -## [End] Mutation Update resolver. ** \ No newline at end of file +## [End] Mutation Update resolver. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateTodo.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateTodo.res.vtl index 511997231f3..f8056d27f3f 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateTodo.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Mutation.updateTodo.res.vtl @@ -5,4 +5,4 @@ $util.qr($ctx.result.put("__operation", "Mutation")) #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Project.owner.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Project.owner.req.vtl index 1aae0961a3e..a9c5efa2bb8 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Project.owner.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Project.owner.req.vtl @@ -1 +1 @@ -$util.toJson({"version":"2018-05-29","payload":{}}) \ No newline at end of file +$util.toJson({"version":"2018-05-29","payload":{}}) diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Project.owner.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Project.owner.res.vtl index c6de7a4f2cf..0552e7005c8 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Project.owner.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Project.owner.res.vtl @@ -17,4 +17,4 @@ $util.qr($ctx.source.put("owner", $ownerEntitiesLast)) $util.toJson($ctx.source.owner) #end -## [End] Parse owner field auth for Get. ** \ No newline at end of file +## [End] Parse owner field auth for Get. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Project.todos.auth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Project.todos.auth.1.req.vtl index 58516f2d3ba..e83ccb93117 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Project.todos.auth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Project.todos.auth.1.req.vtl @@ -37,4 +37,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Project.todos.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Project.todos.req.vtl index d0c5ca01dba..40dbad4a712 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Project.todos.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Project.todos.req.vtl @@ -69,4 +69,4 @@ null #end, "index": "gsi-Project.todos" } -#end \ No newline at end of file +#end diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Project.todos.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Project.todos.res.vtl index 922c4ce53d0..ae420dbf03f 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Project.todos.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Project.todos.res.vtl @@ -10,4 +10,4 @@ $util.error($ctx.error.message, $ctx.error.type) #end #end $util.toJson($result) -#end \ No newline at end of file +#end diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.getProject.auth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.getProject.auth.1.req.vtl index c25f744430b..da78f5423e7 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.getProject.auth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.getProject.auth.1.req.vtl @@ -33,4 +33,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.getProject.postAuth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.getProject.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.getProject.postAuth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.getProject.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.getProject.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.getProject.req.vtl index a8d7811a021..fd7fbfc8013 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.getProject.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.getProject.req.vtl @@ -31,4 +31,4 @@ $util.qr($GetRequest.put("query", $query)) $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) #end $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.getProject.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.getProject.res.vtl index e9ef1436bdd..92e05f99816 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.getProject.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.getProject.res.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson(null) #end -## [End] Get Response template. ** \ No newline at end of file +## [End] Get Response template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.getRandomQuote.auth.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.getRandomQuote.auth.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.getRandomQuote.auth.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.getRandomQuote.auth.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.getRandomQuote.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.getRandomQuote.res.vtl index 634741579ce..c37b82e4a30 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.getRandomQuote.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.getRandomQuote.res.vtl @@ -1 +1 @@ -$util.toJson($ctx.prev.result) \ No newline at end of file +$util.toJson($ctx.prev.result) diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.getTodo.auth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.getTodo.auth.1.req.vtl index c25f744430b..da78f5423e7 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.getTodo.auth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.getTodo.auth.1.req.vtl @@ -33,4 +33,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.getTodo.postAuth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.getTodo.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.getTodo.postAuth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.getTodo.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.getTodo.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.getTodo.req.vtl index a8d7811a021..fd7fbfc8013 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.getTodo.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.getTodo.req.vtl @@ -31,4 +31,4 @@ $util.qr($GetRequest.put("query", $query)) $util.qr($GetRequest.put("filter", $util.parseJson($util.transform.toDynamoDBFilterExpression($ctx.stash.authFilter)))) #end $util.toJson($GetRequest) -## [End] Get Request template. ** \ No newline at end of file +## [End] Get Request template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.getTodo.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.getTodo.res.vtl index e9ef1436bdd..92e05f99816 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.getTodo.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.getTodo.res.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson(null) #end -## [End] Get Response template. ** \ No newline at end of file +## [End] Get Response template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.listProjects.auth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.listProjects.auth.1.req.vtl index c25f744430b..da78f5423e7 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.listProjects.auth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.listProjects.auth.1.req.vtl @@ -33,4 +33,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.listProjects.postAuth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.listProjects.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.listProjects.postAuth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.listProjects.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.listProjects.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.listProjects.req.vtl index 014213710e8..ef976126825 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.listProjects.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.listProjects.req.vtl @@ -47,4 +47,4 @@ #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) #end $util.toJson($ListRequest) -## [End] List Request. ** \ No newline at end of file +## [End] List Request. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.listProjects.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.listProjects.res.vtl index ee8b6670cbc..aab9983954e 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.listProjects.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.listProjects.res.vtl @@ -4,4 +4,4 @@ #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.listTodos.auth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.listTodos.auth.1.req.vtl index c25f744430b..da78f5423e7 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.listTodos.auth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.listTodos.auth.1.req.vtl @@ -33,4 +33,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.listTodos.postAuth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.listTodos.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.listTodos.postAuth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.listTodos.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.listTodos.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.listTodos.req.vtl index 014213710e8..ef976126825 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.listTodos.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.listTodos.req.vtl @@ -47,4 +47,4 @@ #set( $ListRequest.IndexName = $ctx.stash.metadata.index ) #end $util.toJson($ListRequest) -## [End] List Request. ** \ No newline at end of file +## [End] List Request. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.listTodos.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.listTodos.res.vtl index ee8b6670cbc..aab9983954e 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.listTodos.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Query.listTodos.res.vtl @@ -4,4 +4,4 @@ #else $util.toJson($ctx.result) #end -## [End] ResponseTemplate. ** \ No newline at end of file +## [End] ResponseTemplate. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/QuoteResponse.author.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/QuoteResponse.author.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/QuoteResponse.author.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/QuoteResponse.author.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/QuoteResponse.author.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/QuoteResponse.author.res.vtl index f935ef45b0b..7641a22fda9 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/QuoteResponse.author.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/QuoteResponse.author.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["author"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/QuoteResponse.message.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/QuoteResponse.message.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/QuoteResponse.message.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/QuoteResponse.message.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/QuoteResponse.message.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/QuoteResponse.message.res.vtl index 16ec362ea79..7c27c12d67a 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/QuoteResponse.message.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/QuoteResponse.message.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["message"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/QuoteResponse.quote.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/QuoteResponse.quote.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/QuoteResponse.quote.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/QuoteResponse.quote.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/QuoteResponse.quote.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/QuoteResponse.quote.res.vtl index 3f2d91b1b36..d872575dc9e 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/QuoteResponse.quote.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/QuoteResponse.quote.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["quote"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/QuoteResponse.timestamp.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/QuoteResponse.timestamp.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/QuoteResponse.timestamp.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/QuoteResponse.timestamp.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/QuoteResponse.timestamp.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/QuoteResponse.timestamp.res.vtl index 5123c52c5aa..76a126983d6 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/QuoteResponse.timestamp.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/QuoteResponse.timestamp.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["timestamp"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/QuoteResponse.totalQuotes.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/QuoteResponse.totalQuotes.req.vtl index ae3b039b43d..87b04ad4019 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/QuoteResponse.totalQuotes.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/QuoteResponse.totalQuotes.req.vtl @@ -10,4 +10,4 @@ $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Field Authorization Steps. ** \ No newline at end of file +## [End] Field Authorization Steps. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/QuoteResponse.totalQuotes.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/QuoteResponse.totalQuotes.res.vtl index de3d42f8713..07afe2a2c90 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/QuoteResponse.totalQuotes.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/QuoteResponse.totalQuotes.res.vtl @@ -1,3 +1,3 @@ ## [Start] Return Source Field. ** $util.toJson($context.source["totalQuotes"]) -## [End] Return Source Field. ** \ No newline at end of file +## [End] Return Source Field. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onCreateProject.auth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onCreateProject.auth.1.req.vtl index ca6973a44ed..0d61efbb69c 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onCreateProject.auth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onCreateProject.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onCreateProject.postAuth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onCreateProject.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onCreateProject.postAuth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onCreateProject.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onCreateProject.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onCreateProject.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onCreateProject.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onCreateProject.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onCreateProject.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onCreateProject.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onCreateProject.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onCreateProject.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onCreateTodo.auth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onCreateTodo.auth.1.req.vtl index ca6973a44ed..0d61efbb69c 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onCreateTodo.auth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onCreateTodo.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onCreateTodo.postAuth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onCreateTodo.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onCreateTodo.postAuth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onCreateTodo.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onCreateTodo.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onCreateTodo.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onCreateTodo.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onCreateTodo.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onCreateTodo.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onCreateTodo.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onCreateTodo.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onCreateTodo.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onDeleteProject.auth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onDeleteProject.auth.1.req.vtl index ca6973a44ed..0d61efbb69c 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onDeleteProject.auth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onDeleteProject.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onDeleteProject.postAuth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onDeleteProject.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onDeleteProject.postAuth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onDeleteProject.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onDeleteProject.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onDeleteProject.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onDeleteProject.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onDeleteProject.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onDeleteProject.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onDeleteProject.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onDeleteProject.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onDeleteProject.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onDeleteTodo.auth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onDeleteTodo.auth.1.req.vtl index ca6973a44ed..0d61efbb69c 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onDeleteTodo.auth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onDeleteTodo.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onDeleteTodo.postAuth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onDeleteTodo.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onDeleteTodo.postAuth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onDeleteTodo.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onDeleteTodo.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onDeleteTodo.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onDeleteTodo.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onDeleteTodo.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onDeleteTodo.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onDeleteTodo.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onDeleteTodo.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onDeleteTodo.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onUpdateProject.auth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onUpdateProject.auth.1.req.vtl index ca6973a44ed..0d61efbb69c 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onUpdateProject.auth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onUpdateProject.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onUpdateProject.postAuth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onUpdateProject.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onUpdateProject.postAuth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onUpdateProject.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onUpdateProject.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onUpdateProject.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onUpdateProject.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onUpdateProject.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onUpdateProject.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onUpdateProject.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onUpdateProject.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onUpdateProject.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onUpdateTodo.auth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onUpdateTodo.auth.1.req.vtl index ca6973a44ed..0d61efbb69c 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onUpdateTodo.auth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onUpdateTodo.auth.1.req.vtl @@ -53,4 +53,4 @@ $util.qr($ctx.stash.put("hasAuth", true)) $util.unauthorized() #end $util.toJson({"version":"2018-05-29","payload":{}}) -## [End] Authorization Steps. ** \ No newline at end of file +## [End] Authorization Steps. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onUpdateTodo.postAuth.1.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onUpdateTodo.postAuth.1.req.vtl index ccea77535a9..6271df2ee62 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onUpdateTodo.postAuth.1.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onUpdateTodo.postAuth.1.req.vtl @@ -3,4 +3,4 @@ $util.unauthorized() #end $util.toJson({}) -## [End] Sandbox Mode Disabled, IAM Access Disabled. ** \ No newline at end of file +## [End] Sandbox Mode Disabled, IAM Access Disabled. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onUpdateTodo.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onUpdateTodo.req.vtl index f64092d4b3e..dc06ee8467b 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onUpdateTodo.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onUpdateTodo.req.vtl @@ -3,4 +3,4 @@ $util.toJson({ "version": "2018-05-29", "payload": {} }) -## [End] Subscription Request template. ** \ No newline at end of file +## [End] Subscription Request template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onUpdateTodo.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onUpdateTodo.res.vtl index 62769cc6625..25076fe5fa1 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onUpdateTodo.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Subscription.onUpdateTodo.res.vtl @@ -3,4 +3,4 @@ $extensions.setSubscriptionFilter($util.transform.toSubscriptionFilter($ctx.args.filter)) #end $util.toJson(null) -## [End] Subscription Response template. ** \ No newline at end of file +## [End] Subscription Response template. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Todo.owner.req.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Todo.owner.req.vtl index 1aae0961a3e..a9c5efa2bb8 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Todo.owner.req.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Todo.owner.req.vtl @@ -1 +1 @@ -$util.toJson({"version":"2018-05-29","payload":{}}) \ No newline at end of file +$util.toJson({"version":"2018-05-29","payload":{}}) diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Todo.owner.res.vtl b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Todo.owner.res.vtl index c6de7a4f2cf..0552e7005c8 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Todo.owner.res.vtl +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/resolvers/Todo.owner.res.vtl @@ -17,4 +17,4 @@ $util.qr($ctx.source.put("owner", $ownerEntitiesLast)) $util.toJson($ctx.source.owner) #end -## [End] Parse owner field auth for Get. ** \ No newline at end of file +## [End] Parse owner field auth for Get. ** diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/stacks/ConnectionStack.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/stacks/ConnectionStack.json index 765e7847997..e18aebc407b 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/stacks/ConnectionStack.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/stacks/ConnectionStack.json @@ -111,7 +111,7 @@ { "Ref": "referencetotransformerrootstackTodoNestedStackTodoNestedStackResource9AC126A3OutputstransformerrootstackTodoTodoTableC67E79C2Ref" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -140,4 +140,4 @@ "Type": "String" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/stacks/CustomResources.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/stacks/CustomResources.json index 016991278d0..5fe357d6096 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/stacks/CustomResources.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/stacks/CustomResources.json @@ -58,4 +58,4 @@ "Value": "" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/stacks/FunctionDirectiveStack.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/stacks/FunctionDirectiveStack.json index 320e15cb1be..ebb69f88cb4 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/stacks/FunctionDirectiveStack.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/stacks/FunctionDirectiveStack.json @@ -278,4 +278,4 @@ "Type": "String" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/stacks/Project.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/stacks/Project.json index daae2c34bb7..26a7f29de90 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/stacks/Project.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/stacks/Project.json @@ -503,7 +503,7 @@ { "Ref": "ProjectTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -604,7 +604,7 @@ { "Ref": "ProjectTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -771,7 +771,7 @@ { "Ref": "ProjectTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -959,7 +959,7 @@ { "Ref": "ProjectTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1111,7 +1111,7 @@ { "Ref": "ProjectTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1232,7 +1232,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1278,7 +1278,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1324,7 +1324,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1403,7 +1403,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1533,4 +1533,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/stacks/Todo.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/stacks/Todo.json index 0984deede62..a507b1b6aa9 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/stacks/Todo.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/build/stacks/Todo.json @@ -503,7 +503,7 @@ { "Ref": "TodoTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -598,7 +598,7 @@ { "Ref": "TodoTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -729,7 +729,7 @@ { "Ref": "TodoTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -881,7 +881,7 @@ { "Ref": "TodoTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1030,7 +1030,7 @@ { "Ref": "TodoTable" }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1067,7 +1067,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1104,7 +1104,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1141,7 +1141,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1172,7 +1172,7 @@ { "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1259,4 +1259,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/cli-inputs.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/cli-inputs.json index 8cd2c150cc5..4ce1a8a125d 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/cli-inputs.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/cli-inputs.json @@ -14,4 +14,4 @@ } ] } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/parameters.json index 6d858298307..28af7962ab1 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/parameters.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/parameters.json @@ -8,4 +8,4 @@ "Outputs.UserPoolId" ] } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/resolvers/README.md b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/resolvers/README.md index 89e564c5b31..1634d295144 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/resolvers/README.md +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/resolvers/README.md @@ -1,2 +1,2 @@ Any resolvers that you add in this directory will override the ones automatically generated by Amplify CLI and will be directly copied to the cloud. -For more information, visit [https://docs.amplify.aws/cli/graphql-transformer/resolvers](https://docs.amplify.aws/cli/graphql-transformer/resolvers) \ No newline at end of file +For more information, visit [https://docs.amplify.aws/cli/graphql-transformer/resolvers](https://docs.amplify.aws/cli/graphql-transformer/resolvers) diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/transform.conf.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/transform.conf.json index 98e1e19f038..d0421b1df09 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/transform.conf.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/api/projectboards/transform.conf.json @@ -1,4 +1,4 @@ { "Version": 5, "ElasticsearchWarning": true -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/auth/projectboards54040ecc/build/parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/auth/projectboards54040ecc/build/parameters.json index 460a0403613..026247cfc87 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/auth/projectboards54040ecc/build/parameters.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/auth/projectboards54040ecc/build/parameters.json @@ -56,4 +56,4 @@ }, "breakCircularDependency": true, "dependsOn": [] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/auth/projectboards54040ecc/build/projectboards54040ecc-cloudformation-template.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/auth/projectboards54040ecc/build/projectboards54040ecc-cloudformation-template.json index 0eb19ca9b05..8654b4414a3 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/auth/projectboards54040ecc/build/projectboards54040ecc-cloudformation-template.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/auth/projectboards54040ecc/build/projectboards54040ecc-cloudformation-template.json @@ -410,4 +410,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/auth/projectboards54040ecc/cli-inputs.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/auth/projectboards54040ecc/cli-inputs.json index 72753380ae8..658eaa0bc4d 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/auth/projectboards54040ecc/cli-inputs.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/auth/projectboards54040ecc/cli-inputs.json @@ -59,4 +59,4 @@ "breakCircularDependency": true, "dependsOn": [] } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/projectboards/build/cloudformation-template.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/projectboards/build/cloudformation-template.json index 2fa4c923964..458b4e96b54 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/projectboards/build/cloudformation-template.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/awscloudformation/build/api/projectboards/build/cloudformation-template.json @@ -127,7 +127,7 @@ "ApiId" ] }, - "Expires": 1773454476 + "Expires": 1776829881 } }, "GraphQLAPINONEDS95A13CF0": { @@ -531,7 +531,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -628,7 +628,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -725,7 +725,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -822,7 +822,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -919,7 +919,7 @@ "ApiId" ] }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" ] ] }, @@ -1049,4 +1049,4 @@ } }, "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/projectboards54040ecc/build/projectboards54040ecc-cloudformation-template.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/projectboards54040ecc/build/projectboards54040ecc-cloudformation-template.json index 0eb19ca9b05..8654b4414a3 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/projectboards54040ecc/build/projectboards54040ecc-cloudformation-template.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/projectboards54040ecc/build/projectboards54040ecc-cloudformation-template.json @@ -410,4 +410,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json index ca4b7ef3591..e49576fdec3 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json @@ -202,7 +202,7 @@ "authprojectboards54040ecc": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-main-02940-deployment/amplify-cfn-templates/auth/projectboards54040ecc-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-x-x-deployment/amplify-cfn-templates/auth/projectboards54040ecc-cloudformation-template.json", "Parameters": { "identityPoolName": "projectboards54040ecc_identitypool_54040ecc", "allowUnauthenticatedIdentities": true, @@ -249,14 +249,14 @@ }, "breakCircularDependency": true, "dependsOn": "", - "env": "main" + "env": "x" } } }, "apiprojectboards": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-main-02940-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", "Parameters": { "AppSyncApiName": "projectboards", "DynamoDBBillingMode": "PAY_PER_REQUEST", @@ -267,16 +267,16 @@ "Outputs.UserPoolId" ] }, - "S3DeploymentBucket": "amplify-projectboards-main-02940-deployment", + "S3DeploymentBucket": "amplify-projectboards-x-x-deployment", "S3DeploymentRootKey": "amplify-appsync-files/182d69537a429ad74cd4e2ced5fdadbb4cbf17fc", - "env": "main" + "env": "x" } } }, "storages369f8ff1c": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-main-02940-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-x-x-deployment/amplify-cfn-templates/storage/cloudformation-template.json", "Parameters": { "bucketName": "projectboards34b9a7f3c2ca489293910116c994688b", "selectedGuestPermissions": "s3:GetObject,s3:ListBucket", @@ -302,18 +302,18 @@ "s3PermissionsAuthenticatedUploads": "s3:PutObject", "s3PermissionsGuestPublic": "s3:GetObject", "s3PermissionsGuestUploads": "DISALLOW", - "env": "main" + "env": "x" } } }, "functionquotegenerator": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-main-02940-deployment/amplify-cfn-templates/function/quotegenerator-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-x-x-deployment/amplify-cfn-templates/function/quotegenerator-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-projectboards-main-02940-deployment", + "deploymentBucketName": "amplify-projectboards-x-x-deployment", "s3Key": "amplify-builds/quotegenerator-51737a6b73437548654c-build.zip", - "env": "main" + "env": "x" } } }, @@ -521,4 +521,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/quotegenerator/quotegenerator-cloudformation-template.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/quotegenerator/quotegenerator-cloudformation-template.json index 514feaf36cc..a43557082f2 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/quotegenerator/quotegenerator-cloudformation-template.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/quotegenerator/quotegenerator-cloudformation-template.json @@ -199,4 +199,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json index ca4b7ef3591..e49576fdec3 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json @@ -202,7 +202,7 @@ "authprojectboards54040ecc": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-main-02940-deployment/amplify-cfn-templates/auth/projectboards54040ecc-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-x-x-deployment/amplify-cfn-templates/auth/projectboards54040ecc-cloudformation-template.json", "Parameters": { "identityPoolName": "projectboards54040ecc_identitypool_54040ecc", "allowUnauthenticatedIdentities": true, @@ -249,14 +249,14 @@ }, "breakCircularDependency": true, "dependsOn": "", - "env": "main" + "env": "x" } } }, "apiprojectboards": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-main-02940-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", "Parameters": { "AppSyncApiName": "projectboards", "DynamoDBBillingMode": "PAY_PER_REQUEST", @@ -267,16 +267,16 @@ "Outputs.UserPoolId" ] }, - "S3DeploymentBucket": "amplify-projectboards-main-02940-deployment", + "S3DeploymentBucket": "amplify-projectboards-x-x-deployment", "S3DeploymentRootKey": "amplify-appsync-files/182d69537a429ad74cd4e2ced5fdadbb4cbf17fc", - "env": "main" + "env": "x" } } }, "storages369f8ff1c": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-main-02940-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-x-x-deployment/amplify-cfn-templates/storage/cloudformation-template.json", "Parameters": { "bucketName": "projectboards34b9a7f3c2ca489293910116c994688b", "selectedGuestPermissions": "s3:GetObject,s3:ListBucket", @@ -302,18 +302,18 @@ "s3PermissionsAuthenticatedUploads": "s3:PutObject", "s3PermissionsGuestPublic": "s3:GetObject", "s3PermissionsGuestUploads": "DISALLOW", - "env": "main" + "env": "x" } } }, "functionquotegenerator": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-main-02940-deployment/amplify-cfn-templates/function/quotegenerator-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-x-x-deployment/amplify-cfn-templates/function/quotegenerator-cloudformation-template.json", "Parameters": { - "deploymentBucketName": "amplify-projectboards-main-02940-deployment", + "deploymentBucketName": "amplify-projectboards-x-x-deployment", "s3Key": "amplify-builds/quotegenerator-51737a6b73437548654c-build.zip", - "env": "main" + "env": "x" } } }, @@ -521,4 +521,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/awscloudformation/build/storage/s369f8ff1c/build/cloudformation-template.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/awscloudformation/build/storage/s369f8ff1c/build/cloudformation-template.json index 8bac1dbfa69..204a64677c8 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/awscloudformation/build/storage/s369f8ff1c/build/cloudformation-template.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/awscloudformation/build/storage/s369f8ff1c/build/cloudformation-template.json @@ -643,4 +643,4 @@ "Condition": "GuestReadAndList" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/backend-config.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/backend-config.json index 638b3ad418d..bead8381050 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/backend-config.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/backend-config.json @@ -92,4 +92,4 @@ "service": "S3" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/function/quotegenerator/amplify.state b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/function/quotegenerator/amplify.state index 0c3efe04706..ab8a6cc8046 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/function/quotegenerator/amplify.state +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/function/quotegenerator/amplify.state @@ -3,4 +3,4 @@ "functionRuntime": "nodejs", "useLegacyBuild": true, "defaultEditorFile": "src/index.js" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/function/quotegenerator/custom-policies.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/function/quotegenerator/custom-policies.json index 528c94f2f26..1f21c530082 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/function/quotegenerator/custom-policies.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/function/quotegenerator/custom-policies.json @@ -3,4 +3,4 @@ "Action": [], "Resource": [] } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/function/quotegenerator/function-parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/function/quotegenerator/function-parameters.json index d5078776c21..481f6af97f7 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/function/quotegenerator/function-parameters.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/function/quotegenerator/function-parameters.json @@ -1,3 +1,3 @@ { "lambdaLayers": [] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/function/quotegenerator/quotegenerator-cloudformation-template.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/function/quotegenerator/quotegenerator-cloudformation-template.json index 514feaf36cc..a43557082f2 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/function/quotegenerator/quotegenerator-cloudformation-template.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/function/quotegenerator/quotegenerator-cloudformation-template.json @@ -199,4 +199,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/storage/s369f8ff1c/build/cloudformation-template.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/storage/s369f8ff1c/build/cloudformation-template.json index 6e2bc99e890..d9b5969f570 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/storage/s369f8ff1c/build/cloudformation-template.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/storage/s369f8ff1c/build/cloudformation-template.json @@ -634,4 +634,4 @@ "Condition": "GuestReadAndList" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/storage/s369f8ff1c/build/parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/storage/s369f8ff1c/build/parameters.json index 119ed99b739..2723a10f804 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/storage/s369f8ff1c/build/parameters.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/storage/s369f8ff1c/build/parameters.json @@ -31,4 +31,4 @@ "s3PermissionsAuthenticatedUploads": "s3:PutObject", "s3PermissionsGuestPublic": "s3:GetObject", "s3PermissionsGuestUploads": "DISALLOW" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/storage/s369f8ff1c/cli-inputs.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/storage/s369f8ff1c/cli-inputs.json index ee586805c80..00c9eb4ef81 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/storage/s369f8ff1c/cli-inputs.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/storage/s369f8ff1c/cli-inputs.json @@ -13,4 +13,4 @@ ], "triggerFunction": "NONE", "groupAccess": {} -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/tags.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/tags.json index b9321d71b83..71f6abe11a6 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/tags.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/tags.json @@ -7,4 +7,4 @@ "Key": "user:Application", "Value": "{project-name}" } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts index 2f73157c53c..46afd130423 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts @@ -32,4 +32,4 @@ export type AmplifyDependentResourcesAttributes = { "Region": "string" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/cli.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/cli.json index 11dc8ca0f7d..6991bfaca44 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/cli.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/cli.json @@ -62,4 +62,4 @@ "debug": { "shareProjectConfig": false } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/team-provider-info.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/team-provider-info.json index b10f06e515e..6a66a50091c 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/team-provider-info.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/amplify/team-provider-info.json @@ -1,14 +1,14 @@ { - "main": { + "x": { "awscloudformation": { - "AuthRoleName": "amplify-projectboards-main-02940-authRole", - "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-projectboards-main-02940-unauthRole", - "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-projectboards-main-02940-authRole", + "AuthRoleName": "amplify-projectboards-x-x-authRole", + "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-projectboards-x-x-unauthRole", + "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-projectboards-x-x-authRole", "Region": "us-east-1", - "DeploymentBucketName": "amplify-projectboards-main-02940-deployment", - "UnauthRoleName": "amplify-projectboards-main-02940-unauthRole", - "StackName": "amplify-projectboards-main-02940", - "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-projectboards-main-02940/b1077460-19ca-11f1-a5bd-12cb2662bcfd", + "DeploymentBucketName": "amplify-projectboards-x-x-deployment", + "UnauthRoleName": "amplify-projectboards-x-x-unauthRole", + "StackName": "amplify-projectboards-x-x", + "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-projectboards-x-x/39c2f9b0-387e-11f1-b834-0affdb5fc025", "AmplifyAppId": "projectboards" }, "categories": { @@ -17,7 +17,7 @@ }, "function": { "quotegenerator": { - "deploymentBucketName": "amplify-projectboards-main-02940-deployment", + "deploymentBucketName": "amplify-projectboards-x-x-deployment", "s3Key": "amplify-builds/quotegenerator-51737a6b73437548654c-build.zip" } }, @@ -29,4 +29,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.generate/package.json b/amplify-migration-apps/project-boards/_snapshot.pre.generate/package.json index 19c8717b90b..5909213772f 100644 --- a/amplify-migration-apps/project-boards/_snapshot.pre.generate/package.json +++ b/amplify-migration-apps/project-boards/_snapshot.pre.generate/package.json @@ -11,9 +11,21 @@ "build": "tsc -b && vite build", "lint": "eslint .", "preview": "vite preview", - "configure": "./configure.sh", - "sanitize": "cd _snapshot.generate.input && tsx ../sanitize.ts", - "typecheck": "cd _snapshot.generate.expected/amplify && npx tsc --noEmit" + "configure": "./backend/configure.sh", + "sanitize": "tsx ../sanitize.ts", + "normalize": "tsx ../normalize.ts", + "typecheck": "cd _snapshot.post.generate/amplify && npx tsc --noEmit", + "test:gen1": "APP_CONFIG_PATH=${APP_CONFIG_PATH:-src/amplifyconfiguration.json} NODE_OPTIONS='--experimental-vm-modules' jest --verbose", + "test:gen2": "APP_CONFIG_PATH=${APP_CONFIG_PATH:-amplify_outputs.json} NODE_OPTIONS='--experimental-vm-modules' jest --verbose", + "test:shared-data": "true", + "test:e2e": "cd ../../packages/amplify-gen2-migration-e2e-system && npx tsx src/cli.ts --app project-boards --profile ${AWS_PROFILE:-default}", + "deploy": "cd ../../packages/amplify-gen2-migration-e2e-system && npx tsx src/cli.ts --app project-boards --step deploy --profile ${AWS_PROFILE:-default}", + "pre-push": "true", + "post-generate": "npx tsx migration/post-generate.ts", + "post-refactor": "npx tsx migration/post-refactor.ts", + "post-sandbox": "true", + "pre-sandbox": "true", + "post-push": "true" }, "dependencies": { "@aws-amplify/ui-react": "^6.13.0", @@ -23,7 +35,9 @@ "react-dom": "^19.1.1" }, "devDependencies": { + "@aws-sdk/client-cognito-identity-provider": "^3.936.0", "@eslint/js": "^9.36.0", + "@types/jest": "^29.5.14", "@types/node": "^24.6.0", "@types/react": "^19.1.16", "@types/react-dom": "^19.1.9", @@ -32,6 +46,8 @@ "eslint-plugin-react-hooks": "^5.2.0", "eslint-plugin-react-refresh": "^0.4.22", "globals": "^16.4.0", + "jest": "^29.7.0", + "ts-jest": "^29.3.4", "typescript": "~5.9.3", "typescript-eslint": "^8.45.0", "vite": "^7.1.7" diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.description.txt b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.outputs.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.outputs.json new file mode 100644 index 00000000000..ee5db70ccdb --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.outputs.json @@ -0,0 +1,6 @@ +[ + { + "OutputKey": "amplifyprojectboardse2esandboxb2cbfff775dataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEventF37D8B76Arn", + "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-projectboa2604142-TableManagerCustomProvid-9N7Owp16RlKX" + } +] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.parameters.json new file mode 100644 index 00000000000..eff97d17cd1 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.parameters.json @@ -0,0 +1,6 @@ +[ + { + "ParameterKey": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId", + "ParameterValue": "rvxoywjwergpdpazwnark4tqei" + } +] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.template.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.template.json new file mode 100644 index 00000000000..476db9e14aa --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataAmplifyTableManagerNestedStackA-x.template.json @@ -0,0 +1,771 @@ +{ + "Resources": { + "AmplifyManagedTableIsCompleteRoleF825222C": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:CreateTable", + "dynamodb:UpdateTable", + "dynamodb:DeleteTable", + "dynamodb:DescribeTable", + "dynamodb:DescribeContinuousBackups", + "dynamodb:DescribeTimeToLive", + "dynamodb:UpdateContinuousBackups", + "dynamodb:UpdateTimeToLive", + "dynamodb:TagResource", + "dynamodb:UntagResource", + "dynamodb:ListTagsOfResource" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/*-${apiId}-${envName}", + { + "apiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "envName": "NONE" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", + { + "tableName": "Project-feqgb7ww75f5lklhnep4rre3va-x" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", + { + "tableName": "Todo-feqgb7ww75f5lklhnep4rre3va-x" + } + ] + } + ] + }, + { + "Action": "lambda:ListTags", + "Effect": "Allow", + "Resource": { + "Fn::Sub": [ + "arn:${AWS::Partition}:lambda:${AWS::Region}:${AWS::AccountId}:function:*TableManager*", + {} + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "CreateUpdateDeleteTablesPolicy" + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/AmplifyManagedTableIsCompleteRole/Resource" + } + }, + "AmplifyManagedTableOnEventRoleB4E71DEA": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:CreateTable", + "dynamodb:UpdateTable", + "dynamodb:DeleteTable", + "dynamodb:DescribeTable", + "dynamodb:DescribeContinuousBackups", + "dynamodb:DescribeTimeToLive", + "dynamodb:UpdateContinuousBackups", + "dynamodb:UpdateTimeToLive", + "dynamodb:TagResource", + "dynamodb:UntagResource", + "dynamodb:ListTagsOfResource" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/*-${apiId}-${envName}", + { + "apiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "envName": "NONE" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", + { + "tableName": "Project-feqgb7ww75f5lklhnep4rre3va-x" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", + { + "tableName": "Todo-feqgb7ww75f5lklhnep4rre3va-x" + } + ] + } + ] + }, + { + "Action": "lambda:ListTags", + "Effect": "Allow", + "Resource": { + "Fn::Sub": [ + "arn:${AWS::Partition}:lambda:${AWS::Region}:${AWS::AccountId}:function:*TableManager*", + {} + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "CreateUpdateDeleteTablesPolicy" + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/AmplifyManagedTableOnEventRole/Resource" + } + }, + "AmplifyManagedTableOnEventRoleDefaultPolicyF6DABCB6": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "states:StartExecution", + "Effect": "Allow", + "Resource": { + "Ref": "AmplifyTableWaiterStateMachine060600BC" + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "AmplifyManagedTableOnEventRoleDefaultPolicyF6DABCB6", + "Roles": [ + { + "Ref": "AmplifyManagedTableOnEventRoleB4E71DEA" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/AmplifyManagedTableOnEventRole/DefaultPolicy/Resource" + } + }, + "TableManagerCustomProviderframeworkonEvent1DFC2ECC": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6.zip" + }, + "Description": "AmplifyManagedTable - onEvent (amplify-projectboards-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider)", + "Environment": { + "Variables": { + "WAITER_STATE_MACHINE_ARN": { + "Ref": "AmplifyTableWaiterStateMachine060600BC" + } + } + }, + "Handler": "amplify-table-manager-handler.onEvent", + "Role": { + "Fn::GetAtt": [ + "AmplifyManagedTableOnEventRoleB4E71DEA", + "Arn" + ] + }, + "Runtime": "nodejs24.x", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 840 + }, + "DependsOn": [ + "AmplifyManagedTableOnEventRoleDefaultPolicyF6DABCB6", + "AmplifyManagedTableOnEventRoleB4E71DEA" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider/framework-onEvent/Resource", + "aws:asset:path": "asset.f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6", + "aws:asset:is-bundled": false, + "aws:asset:property": "Code" + } + }, + "TableManagerCustomProviderframeworkisComplete2E51021B": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6.zip" + }, + "Description": "AmplifyManagedTable - isComplete (amplify-projectboards-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider)", + "Handler": "amplify-table-manager-handler.isComplete", + "Role": { + "Fn::GetAtt": [ + "AmplifyManagedTableIsCompleteRoleF825222C", + "Arn" + ] + }, + "Runtime": "nodejs24.x", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 840 + }, + "DependsOn": [ + "AmplifyManagedTableIsCompleteRoleF825222C" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider/framework-isComplete/Resource", + "aws:asset:path": "asset.f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6", + "aws:asset:is-bundled": false, + "aws:asset:property": "Code" + } + }, + "AmplifyTableWaiterStateMachineRole470BE899": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "states.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Role/Resource" + } + }, + "AmplifyTableWaiterStateMachineRoleDefaultPolicy89F3836A": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "TableManagerCustomProviderframeworkisComplete2E51021B", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "TableManagerCustomProviderframeworkisComplete2E51021B", + "Arn" + ] + }, + ":*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "AmplifyTableWaiterStateMachineRoleDefaultPolicy89F3836A", + "Roles": [ + { + "Ref": "AmplifyTableWaiterStateMachineRole470BE899" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Role/DefaultPolicy/Resource" + } + }, + "AmplifyTableWaiterStateMachine060600BC": { + "Type": "AWS::StepFunctions::StateMachine", + "Properties": { + "DefinitionString": { + "Fn::Join": [ + "", + [ + "{\"StartAt\":\"framework-isComplete-task\",\"States\":{\"framework-isComplete-task\":{\"End\":true,\"Retry\":[{\"ErrorEquals\":[\"States.ALL\"],\"IntervalSeconds\":10,\"MaxAttempts\":360,\"BackoffRate\":1}],\"Type\":\"Task\",\"Resource\":\"", + { + "Fn::GetAtt": [ + "TableManagerCustomProviderframeworkisComplete2E51021B", + "Arn" + ] + }, + "\"}}}" + ] + ] + }, + "RoleArn": { + "Fn::GetAtt": [ + "AmplifyTableWaiterStateMachineRole470BE899", + "Arn" + ] + } + }, + "DependsOn": [ + "AmplifyTableWaiterStateMachineRoleDefaultPolicy89F3836A", + "AmplifyTableWaiterStateMachineRole470BE899" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/zWNyw6CMBBFv8V9GbFE92Li0hj4ADK0IymPNmFaiWn67wbQ1Tk3Z3ElyHMO+QEXzpQestG0EB/EnnTtUQ0CF26iwQli5UYSt5fd+HSjUZ917pbEiFOrEeI9WOWNs2v7exJcNMhMnuG6QnABZVAD+RKZkqiIXZgVia3WHjtju+3sF5KwThP0fHxLCacL5IeejcnmYL2ZCKqdX3lj/13PAAAA" + }, + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/AmplifyTableManager/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId": { + "Type": "String" + } + }, + "Outputs": { + "amplifyprojectboardse2esandboxb2cbfff775dataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEventF37D8B76Arn": { + "Value": { + "Fn::GetAtt": [ + "TableManagerCustomProviderframeworkonEvent1DFC2ECC", + "Arn" + ] + } + } + } +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.description.txt b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.outputs.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.outputs.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.outputs.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.parameters.json new file mode 100644 index 00000000000..ebe71bbb823 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.parameters.json @@ -0,0 +1,30 @@ +[ + { + "ParameterKey": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref", + "ParameterValue": "amplify-projectboa2604142-amplifyAuthauthenticatedU-1jxM3hVSjIDm" + }, + { + "ParameterKey": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId", + "ParameterValue": "rvxoywjwergpdpazwnark4tqei" + }, + { + "ParameterKey": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref", + "ParameterValue": "amplify-projectboa2604142-amplifyAuthunauthenticate-LvEI2or1a1b4" + }, + { + "ParameterKey": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataTodoNestedStackTodoNestedStackResource2889E577Outputsamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataTodoTodoTable7AAD0AE7TableArn", + "ParameterValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Todo-feqgb7ww75f5lklhnep4rre3va-x" + }, + { + "ParameterKey": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataTodoNestedStackTodoNestedStackResource2889E577Outputsamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataTodoTodoDataSourceCEEFF600Name", + "ParameterValue": "TodoTable" + }, + { + "ParameterKey": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref", + "ParameterValue": "us-east-1:f53c9465-a0fb-4a04-81d2-b13c6999b9a2" + } +] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.template.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.template.json new file mode 100644 index 00000000000..350397c0ff3 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataConnectionStackNestedStackConne-x.template.json @@ -0,0 +1,446 @@ +{ + "Resources": { + "Projecttodosauth0FunctionProjecttodosauth0FunctionAppSyncFunctionB9D5F5D1": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "Projecttodosauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/5b76230ddca90214a01050b60af72361023d26ae9f8b9f3ac2b9df9b331548ff.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/ConnectionStack/Projecttodosauth0Function/Projecttodosauth0Function.AppSyncFunction" + } + }, + "ProjectTodosDataResolverFnProjectTodosDataResolverFnAppSyncFunction6418E519": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataTodoNestedStackTodoNestedStackResource2889E577Outputsamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataTodoTodoDataSourceCEEFF600Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "ProjectTodosDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e91161e60738a0c871aa03b1cbde892843a99e562f5fe5d16f100a96c39191f0.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/49e7a1f2fb4c809b82bed6b0242a2a3bcfa2c5276ebd2539ff330fee36f8fe18.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/ConnectionStack/ProjectTodosDataResolverFn/ProjectTodosDataResolverFn.AppSyncFunction" + } + }, + "ProjecttodosResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "FieldName": "todos", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "Projecttodosauth0FunctionProjecttodosauth0FunctionAppSyncFunctionB9D5F5D1", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "ProjectTodosDataResolverFnProjectTodosDataResolverFnAppSyncFunction6418E519", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Project\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"todos\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataTodoNestedStackTodoNestedStackResource2889E577Outputsamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataTodoTodoTable7AAD0AE7TableArn" + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Project" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/ConnectionStack/projectTodosResolver" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXMQQ6CQAxA0bO4HyoO0b2QuHQBByB1KKSAHUJnIIZwd4OuXv7mW7DXFNITrpq4ZkhGfsH2JA3UVAHdYHDVetOsRlUKCvcDoxnk0Q0UclQyOE36EQdb0cojigvspfDSchdnPMIUrZSkflxo3nfze1QBO5ZuN+Ibgl7Pi7VwuUF66pU5maMEfhOUf7+QP0CWpwAAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/ConnectionStack/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId": { + "Type": "String" + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name": { + "Type": "String" + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataTodoNestedStackTodoNestedStackResource2889E577Outputsamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataTodoTodoDataSourceCEEFF600Name": { + "Type": "String" + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataTodoNestedStackTodoNestedStackResource2889E577Outputsamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataTodoTodoTable7AAD0AE7TableArn": { + "Type": "String" + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref": { + "Type": "String" + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref": { + "Type": "String" + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref": { + "Type": "String" + } + } +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.description.txt b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.description.txt new file mode 100644 index 00000000000..6b3d983ba60 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.description.txt @@ -0,0 +1 @@ +An auto-generated nested stack for the @function directive. diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.outputs.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.outputs.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.outputs.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.parameters.json new file mode 100644 index 00000000000..6386e5d12cc --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.parameters.json @@ -0,0 +1,22 @@ +[ + { + "ParameterKey": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref", + "ParameterValue": "amplify-projectboa2604142-amplifyAuthauthenticatedU-1jxM3hVSjIDm" + }, + { + "ParameterKey": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId", + "ParameterValue": "rvxoywjwergpdpazwnark4tqei" + }, + { + "ParameterKey": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref", + "ParameterValue": "amplify-projectboa2604142-amplifyAuthunauthenticate-LvEI2or1a1b4" + }, + { + "ParameterKey": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref", + "ParameterValue": "us-east-1:f53c9465-a0fb-4a04-81d2-b13c6999b9a2" + } +] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.template.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.template.json new file mode 100644 index 00000000000..ab6d0e27de0 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataFunctionDirectiveStackNestedSta-x.template.json @@ -0,0 +1,560 @@ +{ + "Description": "An auto-generated nested stack for the @function directive.", + "AWSTemplateFormatVersion": "2010-09-09", + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + "NONE", + "NONE" + ] + } + ] + }, + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Resources": { + "QuotegeneratorGen2GubukoedpuLambdaDataSourceServiceRole62ED214B": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/QuotegeneratorGen2GubukoedpuLambdaDataSource/ServiceRole/Resource" + } + }, + "QuotegeneratorGen2GubukoedpuLambdaDataSourceServiceRoleDefaultPolicy9E56A2C1": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator-gen2-x", + {} + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator-gen2-x" + } + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator-gen2-x", + {} + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator-gen2-x" + } + ] + }, + ":*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "QuotegeneratorGen2GubukoedpuLambdaDataSourceServiceRoleDefaultPolicy9E56A2C1", + "Roles": [ + { + "Ref": "QuotegeneratorGen2GubukoedpuLambdaDataSourceServiceRole62ED214B" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/QuotegeneratorGen2GubukoedpuLambdaDataSource/ServiceRole/DefaultPolicy/Resource" + } + }, + "QuotegeneratorGen2GubukoedpuLambdaDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "LambdaConfig": { + "LambdaFunctionArn": { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator-gen2-x", + {} + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator-gen2-x" + } + ] + } + }, + "Name": "QuotegeneratorGen2GubukoedpuLambdaDataSource", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "QuotegeneratorGen2GubukoedpuLambdaDataSourceServiceRole62ED214B", + "Arn" + ] + }, + "Type": "AWS_LAMBDA" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/QuotegeneratorGen2GubukoedpuLambdaDataSource/Resource" + } + }, + "InvokeQuotegeneratorGen2GubukoedpuLambdaDataSourceInvokeQuotegeneratorGen2GubukoedpuLambdaDataSourceAppSyncFunctionA3178EDC": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "QuotegeneratorGen2GubukoedpuLambdaDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "InvokeQuotegeneratorGen2GubukoedpuLambdaDataSource", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e26691eb2c76713bbb45b2a3025f12c5b89a5a14f56f518e774da3a7489320e4.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a20e304512b1fde77dc16ed9d5e0ed03817afcab629ce87ef11c99877b7b1e30.vtl" + } + }, + "DependsOn": [ + "QuotegeneratorGen2GubukoedpuLambdaDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/InvokeQuotegeneratorGen2GubukoedpuLambdaDataSource/InvokeQuotegeneratorGen2GubukoedpuLambdaDataSource.AppSyncFunction" + } + }, + "QuerygetRandomQuoteResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "FieldName": "getRandomQuote", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QueryGetRandomQuoteAuthFNQueryGetRandomQuoteAuthFNAppSyncFunction15864A6C", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "InvokeQuotegeneratorGen2GubukoedpuLambdaDataSourceInvokeQuotegeneratorGen2GubukoedpuLambdaDataSourceAppSyncFunctionA3178EDC", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getRandomQuote\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n{}\n## [End] Stash resolver specific context.. **" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/387d5992f5fc03d05de27289457dcc374a84c42a889acb504aff1031047dde00.vtl" + }, + "TypeName": "Query" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/queryGetRandomQuoteResolver" + } + }, + "QueryGetRandomQuoteAuthFNQueryGetRandomQuoteAuthFNAppSyncFunction15864A6C": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryGetRandomQuoteAuthFN", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/QueryGetRandomQuoteAuthFN/QueryGetRandomQuoteAuthFN.AppSyncFunction" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOQWvDMAyFf0vvjpalbPc1o6cxRvIDimorQY0jl8huKSH/fdhlh50+vSe9hxpo3mqod3jXyrqp8nyG9Zs0kusj2sm0g7RBHEcOYvCup9XjfHYIxyQ2mwdUMni96kMsrF9l+YkR+5AWSzn/X/3l2iADj2nB0twO0pEGf6NlM4wzrF3w5b7wJ3i2jyyf02Z0f0JVigofGUb3cEh2opj/2Uwx+4gjy7gZCY7goi+3poHXd6h3F2WuliSRZ4LuyV9Irx7YCwEAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Parameters": { + "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId": { + "Type": "String" + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref": { + "Type": "String" + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref": { + "Type": "String" + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref": { + "Type": "String" + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name": { + "Type": "String" + } + } +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataProjectNestedStackProjectNested-x.description.txt b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataProjectNestedStackProjectNested-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataProjectNestedStackProjectNested-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataProjectNestedStackProjectNested-x.outputs.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataProjectNestedStackProjectNested-x.outputs.json new file mode 100644 index 00000000000..db2402038a4 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataProjectNestedStackProjectNested-x.outputs.json @@ -0,0 +1,14 @@ +[ + { + "OutputKey": "GetAttProjectTableStreamArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Project-feqgb7ww75f5lklhnep4rre3va-x/stream/2026-04-15T03:52:26.358", + "Description": "Your DynamoDB table StreamArn.", + "ExportName": "rvxoywjwergpdpazwnark4tqei:GetAtt:ProjectTable:StreamArn" + }, + { + "OutputKey": "GetAttProjectTableName", + "OutputValue": "Project-feqgb7ww75f5lklhnep4rre3va-x", + "Description": "Your DynamoDB table name.", + "ExportName": "rvxoywjwergpdpazwnark4tqei:GetAtt:ProjectTable:Name" + } +] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataProjectNestedStackProjectNested-x.parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataProjectNestedStackProjectNested-x.parameters.json new file mode 100644 index 00000000000..f4186bc1bfe --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataProjectNestedStackProjectNested-x.parameters.json @@ -0,0 +1,46 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref", + "ParameterValue": "amplify-projectboa2604142-amplifyAuthauthenticatedU-1jxM3hVSjIDm" + }, + { + "ParameterKey": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId", + "ParameterValue": "rvxoywjwergpdpazwnark4tqei" + }, + { + "ParameterKey": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref", + "ParameterValue": "amplify-projectboa2604142-amplifyAuthunauthenticate-LvEI2or1a1b4" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "true" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource00156715Outputsamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataAmplifyTableManagerTab642BEC5A", + "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-projectboa2604142-TableManagerCustomProvid-9N7Owp16RlKX" + }, + { + "ParameterKey": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref", + "ParameterValue": "us-east-1:f53c9465-a0fb-4a04-81d2-b13c6999b9a2" + } +] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataProjectNestedStackProjectNested-x.template.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataProjectNestedStackProjectNested-x.template.json new file mode 100644 index 00000000000..4937ee42384 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataProjectNestedStackProjectNested-x.template.json @@ -0,0 +1,2128 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource00156715Outputsamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataAmplifyTableManagerTab642BEC5A": { + "Type": "String" + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId": { + "Type": "String" + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name": { + "Type": "String" + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref": { + "Type": "String" + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref": { + "Type": "String" + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + "NONE", + "NONE" + ] + } + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + }, + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Resources": { + "ProjectTable": { + "Type": "Custom::ImportedAmplifyDynamoDBTable", + "Properties": { + "ServiceToken": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource00156715Outputsamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataAmplifyTableManagerTab642BEC5A" + }, + "tableName": "Project-feqgb7ww75f5lklhnep4rre3va-x", + "attributeDefinitions": [ + { + "attributeName": "id", + "attributeType": "S" + } + ], + "keySchema": [ + { + "attributeName": "id", + "keyType": "HASH" + } + ], + "provisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "sseSpecification": { + "sseEnabled": false + }, + "streamSpecification": { + "streamViewType": "NEW_AND_OLD_IMAGES" + }, + "deletionProtectionEnabled": true, + "allowDestructiveGraphqlSchemaUpdates": true, + "replaceTableUponGsiUpdate": false, + "isImported": true, + "pointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "billingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Project/ProjectTable/Default/Default" + } + }, + "ProjectIAMRole928454B5": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem", + "dynamodb:ConditionCheckItem", + "dynamodb:DescribeTable", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": "Project-feqgb7ww75f5lklhnep4rre3va-x" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": "Project-feqgb7ww75f5lklhnep4rre3va-x" + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess" + } + ], + "RoleName": { + "Fn::Join": [ + "", + [ + "ProjectIAMRole032cf0-", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "-NONE" + ] + ] + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Project/ProjectIAMRole/Resource" + } + }, + "ProjectDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "ProjectTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + } + }, + "Name": "ProjectTable", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "ProjectIAMRole928454B5", + "Arn" + ] + }, + "Type": "AMAZON_DYNAMODB" + }, + "DependsOn": [ + "ProjectIAMRole928454B5" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Project/ProjectDataSource/Resource" + } + }, + "QuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionED686A7E": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetProjectauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/b3e5411cda152c2308dac0a81ffb999cc9c81ea2a1f51e6ce05a377bef8c4dfd.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Project/QuerygetProjectauth0Function/QuerygetProjectauth0Function.AppSyncFunction" + } + }, + "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetProjectpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Project/QuerygetProjectpostAuth0Function/QuerygetProjectpostAuth0Function.AppSyncFunction" + } + }, + "QueryGetProjectDataResolverFnQueryGetProjectDataResolverFnAppSyncFunctionD6A0F260": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProjectDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryGetProjectDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/08f4d557693d96c1a4efba0f9dc91330e4b19772fd5477c156468843e3d9cb5e.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4c6a2d29f01c6091bd1d9afe16e5849d456c96f17c3b215938c8067399532719.vtl" + } + }, + "DependsOn": [ + "ProjectDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Project/QueryGetProjectDataResolverFn/QueryGetProjectDataResolverFn.AppSyncFunction" + } + }, + "GetProjectResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "FieldName": "getProject", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionED686A7E", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryGetProjectDataResolverFnQueryGetProjectDataResolverFnAppSyncFunctionD6A0F260", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "ProjectTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Project/queryGetProjectResolver" + } + }, + "QuerylistProjectsauth0FunctionQuerylistProjectsauth0FunctionAppSyncFunctionC4E09D6C": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerylistProjectsauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/b3e5411cda152c2308dac0a81ffb999cc9c81ea2a1f51e6ce05a377bef8c4dfd.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Project/QuerylistProjectsauth0Function/QuerylistProjectsauth0Function.AppSyncFunction" + } + }, + "QuerylistProjectspostAuth0FunctionQuerylistProjectspostAuth0FunctionAppSyncFunctionCD78842F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerylistProjectspostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Project/QuerylistProjectspostAuth0Function/QuerylistProjectspostAuth0Function.AppSyncFunction" + } + }, + "QueryListProjectsDataResolverFnQueryListProjectsDataResolverFnAppSyncFunction0812E3B9": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProjectDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryListProjectsDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9fcbe070ecd3023c5bf5b966fa9584757db9762eef123bad0820bd87591b2174.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/cc01911d0269d4080ea57505dc445dfc315ef7ad85d3d9d4ea1357858bff451d.vtl" + } + }, + "DependsOn": [ + "ProjectDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Project/QueryListProjectsDataResolverFn/QueryListProjectsDataResolverFn.AppSyncFunction" + } + }, + "ListProjectResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "FieldName": "listProjects", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerylistProjectsauth0FunctionQuerylistProjectsauth0FunctionAppSyncFunctionC4E09D6C", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerylistProjectspostAuth0FunctionQuerylistProjectspostAuth0FunctionAppSyncFunctionCD78842F", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryListProjectsDataResolverFnQueryListProjectsDataResolverFnAppSyncFunction0812E3B9", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listProjects\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "ProjectTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Project/queryListProjectsResolver" + } + }, + "MutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction412D09B9": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateProjectinit0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a183ddccbd956316c38ef97177b8f088ef0826f62023323f5ae6053d348ccffc.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Project/MutationcreateProjectinit0Function/MutationcreateProjectinit0Function.AppSyncFunction" + } + }, + "MutationcreateProjectauth0FunctionMutationcreateProjectauth0FunctionAppSyncFunction4FB957D8": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateProjectauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/bec8053450360bcba98bf86fd1d7222c4ab098a68d5dd9edde9c8bedb1269920.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Project/MutationcreateProjectauth0Function/MutationcreateProjectauth0Function.AppSyncFunction" + } + }, + "MutationcreateProjectpostAuth0FunctionMutationcreateProjectpostAuth0FunctionAppSyncFunctionE02C5772": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateProjectpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Project/MutationcreateProjectpostAuth0Function/MutationcreateProjectpostAuth0Function.AppSyncFunction" + } + }, + "MutationCreateProjectDataResolverFnMutationCreateProjectDataResolverFnAppSyncFunction729D2B08": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProjectDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationCreateProjectDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/3cb178b90d1c8bc93547dc8641ba504d90fbb14ed1e69b69300519d3e30293d4.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "ProjectDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Project/MutationCreateProjectDataResolverFn/MutationCreateProjectDataResolverFn.AppSyncFunction" + } + }, + "CreateProjectResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "FieldName": "createProject", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction412D09B9", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationcreateProjectauth0FunctionMutationcreateProjectauth0FunctionAppSyncFunction4FB957D8", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationcreateProjectpostAuth0FunctionMutationcreateProjectpostAuth0FunctionAppSyncFunctionE02C5772", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationCreateProjectDataResolverFnMutationCreateProjectDataResolverFnAppSyncFunction729D2B08", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "ProjectTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Project/mutationCreateProjectResolver" + } + }, + "MutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunction20F7A53C": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateProjectinit0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/06db846fd14e6fc371f22b12b5545ba8e2dbfeda85d8c8d586c71c282166657b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Project/MutationupdateProjectinit0Function/MutationupdateProjectinit0Function.AppSyncFunction" + } + }, + "MutationupdateProjectauth0FunctionMutationupdateProjectauth0FunctionAppSyncFunctionF9C2F303": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProjectDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateProjectauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/3b23a1864d96bd46ffb8192c8f07be60a9c7d1ea5107981da41331d305221140.vtl" + } + }, + "DependsOn": [ + "ProjectDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Project/MutationupdateProjectauth0Function/MutationupdateProjectauth0Function.AppSyncFunction" + } + }, + "MutationupdateProjectpostAuth0FunctionMutationupdateProjectpostAuth0FunctionAppSyncFunction92184EC0": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateProjectpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Project/MutationupdateProjectpostAuth0Function/MutationupdateProjectpostAuth0Function.AppSyncFunction" + } + }, + "MutationUpdateProjectDataResolverFnMutationUpdateProjectDataResolverFnAppSyncFunction9E902778": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProjectDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationUpdateProjectDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/474bf0776ec2164a13191d1a0a9e057154931e4918fea5086f49850d02a5371b.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "ProjectDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Project/MutationUpdateProjectDataResolverFn/MutationUpdateProjectDataResolverFn.AppSyncFunction" + } + }, + "UpdateProjectResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "FieldName": "updateProject", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunction20F7A53C", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationupdateProjectauth0FunctionMutationupdateProjectauth0FunctionAppSyncFunctionF9C2F303", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationupdateProjectpostAuth0FunctionMutationupdateProjectpostAuth0FunctionAppSyncFunction92184EC0", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationUpdateProjectDataResolverFnMutationUpdateProjectDataResolverFnAppSyncFunction9E902778", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "ProjectTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Project/mutationUpdateProjectResolver" + } + }, + "MutationdeleteProjectauth0FunctionMutationdeleteProjectauth0FunctionAppSyncFunction67C3BC9D": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProjectDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeleteProjectauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/6257bfd1ef2992bd01df135516c0df15c5ff692f426e0c71c93960be8f8c81df.vtl" + } + }, + "DependsOn": [ + "ProjectDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Project/MutationdeleteProjectauth0Function/MutationdeleteProjectauth0Function.AppSyncFunction" + } + }, + "MutationdeleteProjectpostAuth0FunctionMutationdeleteProjectpostAuth0FunctionAppSyncFunctionA59E7CB4": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeleteProjectpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Project/MutationdeleteProjectpostAuth0Function/MutationdeleteProjectpostAuth0Function.AppSyncFunction" + } + }, + "MutationDeleteProjectDataResolverFnMutationDeleteProjectDataResolverFnAppSyncFunctionC40E2160": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProjectDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationDeleteProjectDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4f7907d1209a2c9953a0c053df402c634e359546d70c7cc5c2e8e21ea734880f.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "ProjectDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Project/MutationDeleteProjectDataResolverFn/MutationDeleteProjectDataResolverFn.AppSyncFunction" + } + }, + "DeleteProjectResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "FieldName": "deleteProject", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationdeleteProjectauth0FunctionMutationdeleteProjectauth0FunctionAppSyncFunction67C3BC9D", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationdeleteProjectpostAuth0FunctionMutationdeleteProjectpostAuth0FunctionAppSyncFunctionA59E7CB4", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationDeleteProjectDataResolverFnMutationDeleteProjectDataResolverFnAppSyncFunctionC40E2160", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "ProjectTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Project/mutationDeleteProjectResolver" + } + }, + "SubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction658E1FC9": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononCreateProjectauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/15280eef569babaeeee5f837ecf7400c728eec6ca2f4c0437bcbddfcb67fe27b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Project/SubscriptiononCreateProjectauth0Function/SubscriptiononCreateProjectauth0Function.AppSyncFunction" + } + }, + "SubscriptiononCreateProjectpostAuth0FunctionSubscriptiononCreateProjectpostAuth0FunctionAppSyncFunction7668C51E": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononCreateProjectpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Project/SubscriptiononCreateProjectpostAuth0Function/SubscriptiononCreateProjectpostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDABDBE4E": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnCreateProjectDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Project/SubscriptionOnCreateProjectDataResolverFn/SubscriptionOnCreateProjectDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononCreateProjectResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "FieldName": "onCreateProject", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction658E1FC9", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononCreateProjectpostAuth0FunctionSubscriptiononCreateProjectpostAuth0FunctionAppSyncFunction7668C51E", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDABDBE4E", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Project/subscriptionOnCreateProjectResolver" + } + }, + "SubscriptiononUpdateProjectauth0FunctionSubscriptiononUpdateProjectauth0FunctionAppSyncFunction8B215B31": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononUpdateProjectauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/15280eef569babaeeee5f837ecf7400c728eec6ca2f4c0437bcbddfcb67fe27b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Project/SubscriptiononUpdateProjectauth0Function/SubscriptiononUpdateProjectauth0Function.AppSyncFunction" + } + }, + "SubscriptiononUpdateProjectpostAuth0FunctionSubscriptiononUpdateProjectpostAuth0FunctionAppSyncFunction78FDCDB2": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononUpdateProjectpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Project/SubscriptiononUpdateProjectpostAuth0Function/SubscriptiononUpdateProjectpostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnUpdateProjectDataResolverFnSubscriptionOnUpdateProjectDataResolverFnAppSyncFunctionDD9A3318": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnUpdateProjectDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Project/SubscriptionOnUpdateProjectDataResolverFn/SubscriptionOnUpdateProjectDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononUpdateProjectResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "FieldName": "onUpdateProject", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononUpdateProjectauth0FunctionSubscriptiononUpdateProjectauth0FunctionAppSyncFunction8B215B31", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononUpdateProjectpostAuth0FunctionSubscriptiononUpdateProjectpostAuth0FunctionAppSyncFunction78FDCDB2", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnUpdateProjectDataResolverFnSubscriptionOnUpdateProjectDataResolverFnAppSyncFunctionDD9A3318", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Project/subscriptionOnUpdateProjectResolver" + } + }, + "SubscriptiononDeleteProjectauth0FunctionSubscriptiononDeleteProjectauth0FunctionAppSyncFunction733430CC": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononDeleteProjectauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/15280eef569babaeeee5f837ecf7400c728eec6ca2f4c0437bcbddfcb67fe27b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Project/SubscriptiononDeleteProjectauth0Function/SubscriptiononDeleteProjectauth0Function.AppSyncFunction" + } + }, + "SubscriptiononDeleteProjectpostAuth0FunctionSubscriptiononDeleteProjectpostAuth0FunctionAppSyncFunctionBA3AA141": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononDeleteProjectpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Project/SubscriptiononDeleteProjectpostAuth0Function/SubscriptiononDeleteProjectpostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnDeleteProjectDataResolverFnSubscriptionOnDeleteProjectDataResolverFnAppSyncFunctionFA79F0CD": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnDeleteProjectDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Project/SubscriptionOnDeleteProjectDataResolverFn/SubscriptionOnDeleteProjectDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononDeleteProjectResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "FieldName": "onDeleteProject", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononDeleteProjectauth0FunctionSubscriptiononDeleteProjectauth0FunctionAppSyncFunction733430CC", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononDeleteProjectpostAuth0FunctionSubscriptiononDeleteProjectpostAuth0FunctionAppSyncFunctionBA3AA141", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnDeleteProjectDataResolverFnSubscriptionOnDeleteProjectDataResolverFnAppSyncFunctionFA79F0CD", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Project/subscriptionOnDeleteProjectResolver" + } + }, + "ProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunction7F1893B2": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "ProjectOwnerDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/041534e5fd916595f752318f161512d7c7f83b9f2cf32d0f0be381c12253ff68.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/064303962e481067b44300212516363b99aaee539b6bafaf756fdd83ff0b60f0.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Project/ProjectOwnerDataResolverFn/ProjectOwnerDataResolverFn.AppSyncFunction" + } + }, + "ProjectownerResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "FieldName": "owner", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunction7F1893B2", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Project\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"owner\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Project" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Project/projectOwnerResolver" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOwW6DMAyGn6X31GNU230F7bhNsHtlEoNSwEGx06pCvPsEnTrt9PuTP9l/DvlLBtkOr7K3rt8PvoH5g0TJ1Yq2N0XLXxhxJKW4QhHYefWBTUUSUrRkiiQaxj9s+THjVU6zuzGOwTXwjc1ARxQyHkeYqzDc7TDQYnCa5MYW5nLTy6ZExfpx8j+9J7ZriSJw67sUcWv0+3m4UFyMHE4oQirwtoaRAxyT7UnXAsvqfiadkpptXSt2nrvFcHAEZ3m65Dk8v0K2O4v3+5hY/UhQ3fMHIPwRXTYBAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Project/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Outputs": { + "GetAttProjectTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "ProjectTable", + "TableStreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "GetAtt:ProjectTable:StreamArn" + ] + ] + } + } + }, + "GetAttProjectTableName": { + "Description": "Your DynamoDB table name.", + "Value": "Project-feqgb7ww75f5lklhnep4rre3va-x", + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "GetAtt:ProjectTable:Name" + ] + ] + } + } + } + } +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataTodoNestedStackTodoNestedStackR-x.description.txt b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataTodoNestedStackTodoNestedStackR-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataTodoNestedStackTodoNestedStackR-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataTodoNestedStackTodoNestedStackR-x.outputs.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataTodoNestedStackTodoNestedStackR-x.outputs.json new file mode 100644 index 00000000000..ec03f53eb2a --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataTodoNestedStackTodoNestedStackR-x.outputs.json @@ -0,0 +1,22 @@ +[ + { + "OutputKey": "GetAttTodoTableName", + "OutputValue": "Todo-feqgb7ww75f5lklhnep4rre3va-x", + "Description": "Your DynamoDB table name.", + "ExportName": "rvxoywjwergpdpazwnark4tqei:GetAtt:TodoTable:Name" + }, + { + "OutputKey": "amplifyprojectboardse2esandboxb2cbfff775dataamplifyDataTodoTodoDataSourceCEEFF600Name", + "OutputValue": "TodoTable" + }, + { + "OutputKey": "amplifyprojectboardse2esandboxb2cbfff775dataamplifyDataTodoTodoTable7AAD0AE7TableArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Todo-feqgb7ww75f5lklhnep4rre3va-x" + }, + { + "OutputKey": "GetAttTodoTableStreamArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Todo-feqgb7ww75f5lklhnep4rre3va-x/stream/2026-04-15T03:53:14.131", + "Description": "Your DynamoDB table StreamArn.", + "ExportName": "rvxoywjwergpdpazwnark4tqei:GetAtt:TodoTable:StreamArn" + } +] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataTodoNestedStackTodoNestedStackR-x.parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataTodoNestedStackTodoNestedStackR-x.parameters.json new file mode 100644 index 00000000000..f4186bc1bfe --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataTodoNestedStackTodoNestedStackR-x.parameters.json @@ -0,0 +1,46 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref", + "ParameterValue": "amplify-projectboa2604142-amplifyAuthauthenticatedU-1jxM3hVSjIDm" + }, + { + "ParameterKey": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId", + "ParameterValue": "rvxoywjwergpdpazwnark4tqei" + }, + { + "ParameterKey": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref", + "ParameterValue": "amplify-projectboa2604142-amplifyAuthunauthenticate-LvEI2or1a1b4" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "true" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource00156715Outputsamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataAmplifyTableManagerTab642BEC5A", + "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-projectboa2604142-TableManagerCustomProvid-9N7Owp16RlKX" + }, + { + "ParameterKey": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref", + "ParameterValue": "us-east-1:f53c9465-a0fb-4a04-81d2-b13c6999b9a2" + } +] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataTodoNestedStackTodoNestedStackR-x.template.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataTodoNestedStackTodoNestedStackR-x.template.json new file mode 100644 index 00000000000..9125f8adf9e --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-amplifyDataTodoNestedStackTodoNestedStackR-x.template.json @@ -0,0 +1,2170 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource00156715Outputsamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataAmplifyTableManagerTab642BEC5A": { + "Type": "String" + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId": { + "Type": "String" + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name": { + "Type": "String" + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref": { + "Type": "String" + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref": { + "Type": "String" + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + "NONE", + "NONE" + ] + } + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + }, + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Resources": { + "TodoTable": { + "Type": "Custom::ImportedAmplifyDynamoDBTable", + "Properties": { + "ServiceToken": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource00156715Outputsamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataAmplifyTableManagerTab642BEC5A" + }, + "tableName": "Todo-feqgb7ww75f5lklhnep4rre3va-x", + "attributeDefinitions": [ + { + "attributeName": "id", + "attributeType": "S" + }, + { + "attributeName": "projectTodosId", + "attributeType": "S" + } + ], + "keySchema": [ + { + "attributeName": "id", + "keyType": "HASH" + } + ], + "globalSecondaryIndexes": [ + { + "indexName": "gsi-Project.todos", + "keySchema": [ + { + "attributeName": "projectTodosId", + "keyType": "HASH" + } + ], + "projection": { + "projectionType": "ALL" + }, + "provisionedThroughput": { + "readCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "writeCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + } + ], + "provisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "sseSpecification": { + "sseEnabled": false + }, + "streamSpecification": { + "streamViewType": "NEW_AND_OLD_IMAGES" + }, + "deletionProtectionEnabled": true, + "allowDestructiveGraphqlSchemaUpdates": true, + "replaceTableUponGsiUpdate": false, + "isImported": true, + "pointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "billingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Todo/TodoTable/Default/Default" + } + }, + "TodoIAMRole2DA8E66E": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem", + "dynamodb:ConditionCheckItem", + "dynamodb:DescribeTable", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": "Todo-feqgb7ww75f5lklhnep4rre3va-x" + } + ] + }, + { + "Fn::Sub": [ + "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": "Todo-feqgb7ww75f5lklhnep4rre3va-x" + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess" + } + ], + "RoleName": { + "Fn::Join": [ + "", + [ + "TodoIAMRolecfd440-", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "-NONE" + ] + ] + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Todo/TodoIAMRole/Resource" + } + }, + "TodoDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "TodoTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + } + }, + "Name": "TodoTable", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "TodoIAMRole2DA8E66E", + "Arn" + ] + }, + "Type": "AMAZON_DYNAMODB" + }, + "DependsOn": [ + "TodoIAMRole2DA8E66E" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Todo/TodoDataSource/Resource" + } + }, + "QuerygetTodoauth0FunctionQuerygetTodoauth0FunctionAppSyncFunction846D8436": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetTodoauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/b3e5411cda152c2308dac0a81ffb999cc9c81ea2a1f51e6ce05a377bef8c4dfd.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Todo/QuerygetTodoauth0Function/QuerygetTodoauth0Function.AppSyncFunction" + } + }, + "QuerygetTodopostAuth0FunctionQuerygetTodopostAuth0FunctionAppSyncFunction6BE14593": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetTodopostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Todo/QuerygetTodopostAuth0Function/QuerygetTodopostAuth0Function.AppSyncFunction" + } + }, + "QueryGetTodoDataResolverFnQueryGetTodoDataResolverFnAppSyncFunctionE2B57DAD": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TodoDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryGetTodoDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/08f4d557693d96c1a4efba0f9dc91330e4b19772fd5477c156468843e3d9cb5e.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4c6a2d29f01c6091bd1d9afe16e5849d456c96f17c3b215938c8067399532719.vtl" + } + }, + "DependsOn": [ + "TodoDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Todo/QueryGetTodoDataResolverFn/QueryGetTodoDataResolverFn.AppSyncFunction" + } + }, + "GetTodoResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "FieldName": "getTodo", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerygetTodoauth0FunctionQuerygetTodoauth0FunctionAppSyncFunction846D8436", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetTodopostAuth0FunctionQuerygetTodopostAuth0FunctionAppSyncFunction6BE14593", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryGetTodoDataResolverFnQueryGetTodoDataResolverFnAppSyncFunctionE2B57DAD", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "TodoTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Todo/queryGetTodoResolver" + } + }, + "QuerylistTodosauth0FunctionQuerylistTodosauth0FunctionAppSyncFunction7D761961": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerylistTodosauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/b3e5411cda152c2308dac0a81ffb999cc9c81ea2a1f51e6ce05a377bef8c4dfd.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Todo/QuerylistTodosauth0Function/QuerylistTodosauth0Function.AppSyncFunction" + } + }, + "QuerylistTodospostAuth0FunctionQuerylistTodospostAuth0FunctionAppSyncFunction154D8577": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerylistTodospostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Todo/QuerylistTodospostAuth0Function/QuerylistTodospostAuth0Function.AppSyncFunction" + } + }, + "QueryListTodosDataResolverFnQueryListTodosDataResolverFnAppSyncFunctionF825FE47": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TodoDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryListTodosDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9fcbe070ecd3023c5bf5b966fa9584757db9762eef123bad0820bd87591b2174.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/cc01911d0269d4080ea57505dc445dfc315ef7ad85d3d9d4ea1357858bff451d.vtl" + } + }, + "DependsOn": [ + "TodoDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Todo/QueryListTodosDataResolverFn/QueryListTodosDataResolverFn.AppSyncFunction" + } + }, + "ListTodoResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "FieldName": "listTodos", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerylistTodosauth0FunctionQuerylistTodosauth0FunctionAppSyncFunction7D761961", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerylistTodospostAuth0FunctionQuerylistTodospostAuth0FunctionAppSyncFunction154D8577", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryListTodosDataResolverFnQueryListTodosDataResolverFnAppSyncFunctionF825FE47", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listTodos\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "TodoTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Todo/queryListTodosResolver" + } + }, + "MutationcreateTodoinit0FunctionMutationcreateTodoinit0FunctionAppSyncFunction54DE5B8B": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateTodoinit0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a183ddccbd956316c38ef97177b8f088ef0826f62023323f5ae6053d348ccffc.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Todo/MutationcreateTodoinit0Function/MutationcreateTodoinit0Function.AppSyncFunction" + } + }, + "MutationcreateTodoauth0FunctionMutationcreateTodoauth0FunctionAppSyncFunction21817E36": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateTodoauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a4dfbec83984a61cb784845599e251c404cfca989937a3bb6eaa817305170ad4.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Todo/MutationcreateTodoauth0Function/MutationcreateTodoauth0Function.AppSyncFunction" + } + }, + "MutationcreateTodopostAuth0FunctionMutationcreateTodopostAuth0FunctionAppSyncFunctionED59EB9F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateTodopostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Todo/MutationcreateTodopostAuth0Function/MutationcreateTodopostAuth0Function.AppSyncFunction" + } + }, + "MutationCreateTodoDataResolverFnMutationCreateTodoDataResolverFnAppSyncFunction900EC5CF": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TodoDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationCreateTodoDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/2bf64327ca5682da4be84d0d16440204e25abc3a221195b41f2d21dfa432e5ab.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "TodoDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Todo/MutationCreateTodoDataResolverFn/MutationCreateTodoDataResolverFn.AppSyncFunction" + } + }, + "CreateTodoResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "FieldName": "createTodo", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationcreateTodoinit0FunctionMutationcreateTodoinit0FunctionAppSyncFunction54DE5B8B", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationcreateTodoauth0FunctionMutationcreateTodoauth0FunctionAppSyncFunction21817E36", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationcreateTodopostAuth0FunctionMutationcreateTodopostAuth0FunctionAppSyncFunctionED59EB9F", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationCreateTodoDataResolverFnMutationCreateTodoDataResolverFnAppSyncFunction900EC5CF", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "TodoTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Todo/mutationCreateTodoResolver" + } + }, + "MutationupdateTodoinit0FunctionMutationupdateTodoinit0FunctionAppSyncFunction1B95BB19": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateTodoinit0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/06db846fd14e6fc371f22b12b5545ba8e2dbfeda85d8c8d586c71c282166657b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Todo/MutationupdateTodoinit0Function/MutationupdateTodoinit0Function.AppSyncFunction" + } + }, + "MutationupdateTodoauth0FunctionMutationupdateTodoauth0FunctionAppSyncFunction1E4A3112": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TodoDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateTodoauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/7ad0add370a0907cb73cb8b771eaf4dc378d85b38d864db355bd3de9ee78ce0a.vtl" + } + }, + "DependsOn": [ + "TodoDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Todo/MutationupdateTodoauth0Function/MutationupdateTodoauth0Function.AppSyncFunction" + } + }, + "MutationupdateTodopostAuth0FunctionMutationupdateTodopostAuth0FunctionAppSyncFunction50C507D7": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateTodopostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Todo/MutationupdateTodopostAuth0Function/MutationupdateTodopostAuth0Function.AppSyncFunction" + } + }, + "MutationUpdateTodoDataResolverFnMutationUpdateTodoDataResolverFnAppSyncFunctionBC238C49": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TodoDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationUpdateTodoDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/474bf0776ec2164a13191d1a0a9e057154931e4918fea5086f49850d02a5371b.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "TodoDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Todo/MutationUpdateTodoDataResolverFn/MutationUpdateTodoDataResolverFn.AppSyncFunction" + } + }, + "UpdateTodoResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "FieldName": "updateTodo", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationupdateTodoinit0FunctionMutationupdateTodoinit0FunctionAppSyncFunction1B95BB19", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationupdateTodoauth0FunctionMutationupdateTodoauth0FunctionAppSyncFunction1E4A3112", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationupdateTodopostAuth0FunctionMutationupdateTodopostAuth0FunctionAppSyncFunction50C507D7", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationUpdateTodoDataResolverFnMutationUpdateTodoDataResolverFnAppSyncFunctionBC238C49", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "TodoTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Todo/mutationUpdateTodoResolver" + } + }, + "MutationdeleteTodoauth0FunctionMutationdeleteTodoauth0FunctionAppSyncFunctionC82C218C": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TodoDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeleteTodoauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/6257bfd1ef2992bd01df135516c0df15c5ff692f426e0c71c93960be8f8c81df.vtl" + } + }, + "DependsOn": [ + "TodoDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Todo/MutationdeleteTodoauth0Function/MutationdeleteTodoauth0Function.AppSyncFunction" + } + }, + "MutationdeleteTodopostAuth0FunctionMutationdeleteTodopostAuth0FunctionAppSyncFunction483271A2": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeleteTodopostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Todo/MutationdeleteTodopostAuth0Function/MutationdeleteTodopostAuth0Function.AppSyncFunction" + } + }, + "MutationDeleteTodoDataResolverFnMutationDeleteTodoDataResolverFnAppSyncFunction3879153F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TodoDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationDeleteTodoDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4f7907d1209a2c9953a0c053df402c634e359546d70c7cc5c2e8e21ea734880f.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" + } + }, + "DependsOn": [ + "TodoDataSource" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Todo/MutationDeleteTodoDataResolverFn/MutationDeleteTodoDataResolverFn.AppSyncFunction" + } + }, + "DeleteTodoResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "FieldName": "deleteTodo", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationdeleteTodoauth0FunctionMutationdeleteTodoauth0FunctionAppSyncFunctionC82C218C", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationdeleteTodopostAuth0FunctionMutationdeleteTodopostAuth0FunctionAppSyncFunction483271A2", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationDeleteTodoDataResolverFnMutationDeleteTodoDataResolverFnAppSyncFunction3879153F", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "TodoTable", + "TableArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Todo/mutationDeleteTodoResolver" + } + }, + "SubscriptiononCreateTodoauth0FunctionSubscriptiononCreateTodoauth0FunctionAppSyncFunction042EF9E1": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononCreateTodoauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/15280eef569babaeeee5f837ecf7400c728eec6ca2f4c0437bcbddfcb67fe27b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Todo/SubscriptiononCreateTodoauth0Function/SubscriptiononCreateTodoauth0Function.AppSyncFunction" + } + }, + "SubscriptiononCreateTodopostAuth0FunctionSubscriptiononCreateTodopostAuth0FunctionAppSyncFunction18E34C4E": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononCreateTodopostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Todo/SubscriptiononCreateTodopostAuth0Function/SubscriptiononCreateTodopostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnCreateTodoDataResolverFnSubscriptionOnCreateTodoDataResolverFnAppSyncFunction462A70C9": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnCreateTodoDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Todo/SubscriptionOnCreateTodoDataResolverFn/SubscriptionOnCreateTodoDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononCreateTodoResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "FieldName": "onCreateTodo", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononCreateTodoauth0FunctionSubscriptiononCreateTodoauth0FunctionAppSyncFunction042EF9E1", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononCreateTodopostAuth0FunctionSubscriptiononCreateTodopostAuth0FunctionAppSyncFunction18E34C4E", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnCreateTodoDataResolverFnSubscriptionOnCreateTodoDataResolverFnAppSyncFunction462A70C9", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Todo/subscriptionOnCreateTodoResolver" + } + }, + "SubscriptiononUpdateTodoauth0FunctionSubscriptiononUpdateTodoauth0FunctionAppSyncFunction80D0DFA3": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononUpdateTodoauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/15280eef569babaeeee5f837ecf7400c728eec6ca2f4c0437bcbddfcb67fe27b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Todo/SubscriptiononUpdateTodoauth0Function/SubscriptiononUpdateTodoauth0Function.AppSyncFunction" + } + }, + "SubscriptiononUpdateTodopostAuth0FunctionSubscriptiononUpdateTodopostAuth0FunctionAppSyncFunction04445BC7": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononUpdateTodopostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Todo/SubscriptiononUpdateTodopostAuth0Function/SubscriptiononUpdateTodopostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnUpdateTodoDataResolverFnSubscriptionOnUpdateTodoDataResolverFnAppSyncFunction523DF0E4": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnUpdateTodoDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Todo/SubscriptionOnUpdateTodoDataResolverFn/SubscriptionOnUpdateTodoDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononUpdateTodoResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "FieldName": "onUpdateTodo", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononUpdateTodoauth0FunctionSubscriptiononUpdateTodoauth0FunctionAppSyncFunction80D0DFA3", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononUpdateTodopostAuth0FunctionSubscriptiononUpdateTodopostAuth0FunctionAppSyncFunction04445BC7", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnUpdateTodoDataResolverFnSubscriptionOnUpdateTodoDataResolverFnAppSyncFunction523DF0E4", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Todo/subscriptionOnUpdateTodoResolver" + } + }, + "SubscriptiononDeleteTodoauth0FunctionSubscriptiononDeleteTodoauth0FunctionAppSyncFunctionF69F2220": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononDeleteTodoauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/15280eef569babaeeee5f837ecf7400c728eec6ca2f4c0437bcbddfcb67fe27b.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Todo/SubscriptiononDeleteTodoauth0Function/SubscriptiononDeleteTodoauth0Function.AppSyncFunction" + } + }, + "SubscriptiononDeleteTodopostAuth0FunctionSubscriptiononDeleteTodopostAuth0FunctionAppSyncFunctionE131CBE7": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononDeleteTodopostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" + }, + "ResponseMappingTemplate": "$util.toJson({})" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Todo/SubscriptiononDeleteTodopostAuth0Function/SubscriptiononDeleteTodopostAuth0Function.AppSyncFunction" + } + }, + "SubscriptionOnDeleteTodoDataResolverFnSubscriptionOnDeleteTodoDataResolverFnAppSyncFunction3E641E8C": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnDeleteTodoDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Todo/SubscriptionOnDeleteTodoDataResolverFn/SubscriptionOnDeleteTodoDataResolverFn.AppSyncFunction" + } + }, + "SubscriptiononDeleteTodoResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "FieldName": "onDeleteTodo", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononDeleteTodoauth0FunctionSubscriptiononDeleteTodoauth0FunctionAppSyncFunctionF69F2220", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptiononDeleteTodopostAuth0FunctionSubscriptiononDeleteTodopostAuth0FunctionAppSyncFunctionE131CBE7", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnDeleteTodoDataResolverFnSubscriptionOnDeleteTodoDataResolverFnAppSyncFunction3E641E8C", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Todo/subscriptionOnDeleteTodoResolver" + } + }, + "TodoOwnerDataResolverFnTodoOwnerDataResolverFnAppSyncFunction0C7BF45B": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "DataSourceName": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "TodoOwnerDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/041534e5fd916595f752318f161512d7c7f83b9f2cf32d0f0be381c12253ff68.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/064303962e481067b44300212516363b99aaee539b6bafaf756fdd83ff0b60f0.vtl" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Todo/TodoOwnerDataResolverFn/TodoOwnerDataResolverFn.AppSyncFunction" + } + }, + "TodoownerResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "FieldName": "owner", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "TodoOwnerDataResolverFnTodoOwnerDataResolverFnAppSyncFunction0C7BF45B", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Todo\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"owner\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Todo" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Todo/todoOwnerResolver" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOwW6DMAyGn6X31GNU230F7bhNsHtlEoNSwEGx06pCvPsEnTrt9PuTP9l/DvlLBtkOr7K3rt8PvoH5g0TJ1Yq2N0XLXxhxJKW4QhHYefWBTUUSUrRkiiQaxj9s+THjVU6zuzGOwTXwjc1ARxQyHkeYqzDc7TDQYnCa5MYW5nLTy6ZExfpx8j+9J7ZriSJw67sUcWv0+3m4UFyMHE4oQirwtoaRAxyT7UnXAsvqfiadkpptXSt2nrvFcHAEZ3m65Dk8v0K2O4v3+5hY/UhQ3fMHIPwRXTYBAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Todo/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Outputs": { + "GetAttTodoTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "TodoTable", + "TableStreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "GetAtt:TodoTable:StreamArn" + ] + ] + } + } + }, + "GetAttTodoTableName": { + "Description": "Your DynamoDB table name.", + "Value": "Todo-feqgb7ww75f5lklhnep4rre3va-x", + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + }, + "GetAtt:TodoTable:Name" + ] + ] + } + } + }, + "amplifyprojectboardse2esandboxb2cbfff775dataamplifyDataTodoTodoDataSourceCEEFF600Name": { + "Value": { + "Fn::GetAtt": [ + "TodoDataSource", + "Name" + ] + } + }, + "amplifyprojectboardse2esandboxb2cbfff775dataamplifyDataTodoTodoTable7AAD0AE7TableArn": { + "Value": { + "Fn::GetAtt": [ + "TodoTable", + "TableArn" + ] + } + } + } +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-auth179371D7-x.description.txt b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-auth179371D7-x.description.txt new file mode 100644 index 00000000000..b66e3e0b9e2 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-auth179371D7-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"AmplifySandbox","createdWith":"1.11.2","stackType":"auth-Cognito","metadata":{}} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-auth179371D7-x.outputs.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-auth179371D7-x.outputs.json new file mode 100644 index 00000000000..5be24a262cc --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-auth179371D7-x.outputs.json @@ -0,0 +1,22 @@ +[ + { + "OutputKey": "amplifyprojectboardse2esandboxb2cbfff775authamplifyAuthUserPoolAppClient619348A5Ref", + "OutputValue": "5u0pu7spa0tin8np6oitsr50ke" + }, + { + "OutputKey": "amplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref", + "OutputValue": "amplify-projectboa2604142-amplifyAuthunauthenticate-LvEI2or1a1b4" + }, + { + "OutputKey": "amplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref", + "OutputValue": "us-east-1:f53c9465-a0fb-4a04-81d2-b13c6999b9a2" + }, + { + "OutputKey": "amplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref", + "OutputValue": "amplify-projectboa2604142-amplifyAuthauthenticatedU-1jxM3hVSjIDm" + }, + { + "OutputKey": "amplifyprojectboardse2esandboxb2cbfff775authamplifyAuthUserPoolE690205FRef", + "OutputValue": "us-east-1_KIRz8bn0l" + } +] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-auth179371D7-x.parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-auth179371D7-x.parameters.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-auth179371D7-x.parameters.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-auth179371D7-x.template.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-auth179371D7-x.template.json new file mode 100644 index 00000000000..f5550000c13 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-auth179371D7-x.template.json @@ -0,0 +1,632 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", + "Resources": { + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AccountRecoverySetting": { + "RecoveryMechanisms": [ + { + "Name": "verified_email", + "Priority": 1 + } + ] + }, + "AdminCreateUserConfig": { + "AllowAdminCreateUserOnly": false + }, + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": 8, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false, + "TemporaryPasswordValidityDays": 7 + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "SmsVerificationMessage": "The verification code to your new account is {####}", + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolTags": { + "amplify:deployment-type": "sandbox", + "amplify:friendly-name": "amplifyAuth", + "created-by": "amplify" + }, + "UsernameAttributes": [ + "email" + ], + "UsernameConfiguration": { + "CaseSensitive": false + }, + "VerificationMessageTemplate": { + "DefaultEmailOption": "CONFIRM_WITH_CODE", + "EmailMessage": "Your verification code is {####}", + "EmailSubject": "Your verification code", + "SmsMessage": "The verification code to your new account is {####}" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/auth/amplifyAuth/UserPool/Resource" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 43200, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": { + "Ref": "amplifyAuthUserPool4BA7F805" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlows": [ + "code" + ], + "AllowedOAuthFlowsUserPoolClient": true, + "AllowedOAuthScopes": [ + "profile", + "phone", + "email", + "openid", + "aws.cognito.signin.user.admin" + ], + "CallbackURLs": [ + "https://example.com" + ], + "ExplicitAuthFlows": [ + "ALLOW_CUSTOM_AUTH", + "ALLOW_USER_SRP_AUTH", + "ALLOW_REFRESH_TOKEN_AUTH" + ], + "PreventUserExistenceErrors": "ENABLED", + "SupportedIdentityProviders": [ + "COGNITO" + ], + "UserPoolId": { + "Ref": "amplifyAuthUserPool4BA7F805" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/auth/amplifyAuth/UserPoolAppClient/Resource" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": true, + "CognitoIdentityProviders": [ + { + "ClientId": { + "Ref": "amplifyAuthUserPoolAppClient2626C6F8" + }, + "ProviderName": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + { + "Ref": "amplifyAuthUserPool4BA7F805" + } + ] + ] + } + } + ], + "IdentityPoolTags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "SupportedLoginProviders": {} + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/auth/amplifyAuth/IdentityPool" + } + }, + "amplifyAuthauthenticatedUserRoleD8DA3689": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/auth/amplifyAuth/authenticatedUserRole/Resource" + } + }, + "amplifyAuthunauthenticatedUserRole2B524D9E": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "unauthenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/auth/amplifyAuth/unauthenticatedUserRole/Resource" + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + }, + "RoleMappings": { + "UserPoolWebClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + { + "Ref": "amplifyAuthUserPool4BA7F805" + }, + ":", + { + "Ref": "amplifyAuthUserPoolAppClient2626C6F8" + } + ] + ] + }, + "Type": "Token" + } + }, + "Roles": { + "unauthenticated": { + "Fn::GetAtt": [ + "amplifyAuthunauthenticatedUserRole2B524D9E", + "Arn" + ] + }, + "authenticated": { + "Fn::GetAtt": [ + "amplifyAuthauthenticatedUserRoleD8DA3689", + "Arn" + ] + } + } + }, + "DependsOn": [ + "amplifyAuthIdentityPool3FDE84CC", + "amplifyAuthUserPoolAppClient2626C6F8" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/auth/amplifyAuth/IdentityPoolRoleAttachment" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/02LwQrCMBBEv6X3dK0BvUtPXkQqniUmq26bbqBZLRLy71Kk2tPMvJnRoDcVVIUZY2ldV3q6QjpgFHQnMbZTZoyXZMOdSQKkc8ThGIJX9Y1/fja1J2RZVn+yd8hC8p7Py9wEjzsRYx89smRFpoc0wWk4ac5ZcXAIbVy9tIb1FqqijUTl8GShHqH56gf10GUazgAAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/auth/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifyprojectboardse2esandboxb2cbfff775authamplifyAuthUserPoolE690205FRef": { + "Value": { + "Ref": "amplifyAuthUserPool4BA7F805" + } + }, + "amplifyprojectboardse2esandboxb2cbfff775authamplifyAuthUserPoolAppClient619348A5Ref": { + "Value": { + "Ref": "amplifyAuthUserPoolAppClient2626C6F8" + } + }, + "amplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref": { + "Value": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } + }, + "amplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref": { + "Value": { + "Ref": "amplifyAuthauthenticatedUserRoleD8DA3689" + } + }, + "amplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref": { + "Value": { + "Ref": "amplifyAuthunauthenticatedUserRole2B524D9E" + } + } + } +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-data7552DF31-x.description.txt b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-data7552DF31-x.description.txt new file mode 100644 index 00000000000..e1c50802cb1 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-data7552DF31-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"AmplifySandbox","createdWith":"1.21.2","stackType":"api-AppSync","metadata":{"dataSources":"dynamodb","authorizationModes":"amazon_cognito_identity_pools,amazon_cognito_user_pools,api_key,aws_iam","customOperations":"queries"}} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-data7552DF31-x.outputs.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-data7552DF31-x.outputs.json new file mode 100644 index 00000000000..308cffea5f0 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-data7552DF31-x.outputs.json @@ -0,0 +1,18 @@ +[ + { + "OutputKey": "amplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CGraphQLUrl", + "OutputValue": "https://3y5yexrtkncprjfs4q6fburagm.appsync-api.us-east-1.amazonaws.com/graphql" + }, + { + "OutputKey": "amplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId", + "OutputValue": "rvxoywjwergpdpazwnark4tqei" + }, + { + "OutputKey": "amplifyprojectboardse2esandboxb2cbfff775dataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiBC6506A9DDestinationBucketArn", + "OutputValue": "arn:aws:s3:::amplify-projectboa2604142-amplifydataamplifycodege-1umie1haseqb" + }, + { + "OutputKey": "amplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPIDefaultApiKey972AC2CCApiKey", + "OutputValue": "da2-fakeapikey00000000000000" + } +] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-data7552DF31-x.parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-data7552DF31-x.parameters.json new file mode 100644 index 00000000000..bca0316c96a --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-data7552DF31-x.parameters.json @@ -0,0 +1,38 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref", + "ParameterValue": "amplify-projectboa2604142-amplifyAuthauthenticatedU-1jxM3hVSjIDm" + }, + { + "ParameterKey": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref", + "ParameterValue": "amplify-projectboa2604142-amplifyAuthunauthenticate-LvEI2or1a1b4" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "true" + }, + { + "ParameterKey": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthUserPoolE690205FRef", + "ParameterValue": "us-east-1_KIRz8bn0l" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref", + "ParameterValue": "us-east-1:f53c9465-a0fb-4a04-81d2-b13c6999b9a2" + } +] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-data7552DF31-x.template.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-data7552DF31-x.template.json new file mode 100644 index 00000000000..833e76c2158 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-data7552DF31-x.template.json @@ -0,0 +1,2172 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.21.2\",\"stackType\":\"api-AppSync\",\"metadata\":{\"dataSources\":\"dynamodb\",\"authorizationModes\":\"amazon_cognito_identity_pools,amazon_cognito_user_pools,api_key,aws_iam\",\"customOperations\":\"queries\"}}", + "Resources": { + "amplifyDataGraphQLAPI42A6FA33": { + "Type": "AWS::AppSync::GraphQLApi", + "Properties": { + "AdditionalAuthenticationProviders": [ + { + "AuthenticationType": "AMAZON_COGNITO_USER_POOLS", + "UserPoolConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "UserPoolId": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthUserPoolE690205FRef" + } + } + } + ], + "AuthenticationType": "API_KEY", + "Name": "amplifyData", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/GraphQLAPI/Resource" + } + }, + "amplifyDataGraphQLAPITransformerSchemaFF50A789": { + "Type": "AWS::AppSync::GraphQLSchema", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "DefinitionS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/7abe69f41e2c7b2f34c37ecc48c144aa1d8760334c115aa4164f3a1d924c6c4e.graphql" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/GraphQLAPI/TransformerSchema" + } + }, + "amplifyDataGraphQLAPIDefaultApiKey1C8ED374": { + "Type": "AWS::AppSync::ApiKey", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "Expires": 1776830545 + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/GraphQLAPI/DefaultApiKey" + } + }, + "amplifyDataGraphQLAPINONEDS684BF699": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "Name": "NONE_DS", + "Type": "NONE" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/GraphQLAPI/NONE_DS/Resource" + } + }, + "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/0bef282cea6bb8c8c361c0c27c5e39d614d9467efed3b2f1def98d6c4cd1e66f.json" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/AmplifyTableManager.NestedStack/AmplifyTableManager.NestedStackResource", + "aws:asset:path": "amplifyprojectboardse2esandboxb2cbfff775dataamplifyDataAmplifyTableManager6C859173.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "amplifyDataProjectNestedStackProjectNestedStackResourceCF4E56E3": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource00156715Outputsamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataAmplifyTableManagerTab642BEC5A": { + "Fn::GetAtt": [ + "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833", + "Outputs.amplifyprojectboardse2esandboxb2cbfff775dataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEventF37D8B76Arn" + ] + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref" + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref" + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref" + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/eef83301e9de71fc09ebfa3a8047830d0c4c336c6f4a704f275a1b8eb5987afc.json" + ] + ] + } + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Project.NestedStack/Project.NestedStackResource", + "aws:asset:path": "amplifyprojectboardse2esandboxb2cbfff775dataamplifyDataProject98C011B3.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "amplifyDataTodoNestedStackTodoNestedStackResource551CEA56": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource00156715Outputsamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataAmplifyTableManagerTab642BEC5A": { + "Fn::GetAtt": [ + "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833", + "Outputs.amplifyprojectboardse2esandboxb2cbfff775dataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEventF37D8B76Arn" + ] + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref" + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref" + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref" + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/2340742bd3a654fe34bef0d89c593ce39bd2a96ea99aef663b74b349048eb193.json" + ] + ] + } + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/Todo.NestedStack/Todo.NestedStackResource", + "aws:asset:path": "amplifyprojectboardse2esandboxb2cbfff775dataamplifyDataTodo6F83DCB3.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "amplifyDataFunctionDirectiveStackNestedStackFunctionDirectiveStackNestedStackResource1246A302": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref" + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref" + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref" + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/f39480cf86dedbb69d6d112120eed0514d006fab9870583025f502ffef7a581e.json" + ] + ] + } + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/FunctionDirectiveStack.NestedStack/FunctionDirectiveStack.NestedStackResource", + "aws:asset:path": "amplifyprojectboardse2esandboxb2cbfff775dataamplifyDataFunctionDirectiveStackEB4FE28C.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "amplifyDataConnectionStackNestedStackConnectionStackNestedStackResourceAB0F312B": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPINONEDS68EBE495Name": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataTodoNestedStackTodoNestedStackResource2889E577Outputsamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataTodoTodoDataSourceCEEFF600Name": { + "Fn::GetAtt": [ + "amplifyDataTodoNestedStackTodoNestedStackResource551CEA56", + "Outputs.amplifyprojectboardse2esandboxb2cbfff775dataamplifyDataTodoTodoDataSourceCEEFF600Name" + ] + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataTodoNestedStackTodoNestedStackResource2889E577Outputsamplifyprojectboardse2esandboxb2cbfff775dataamplifyDataTodoTodoTable7AAD0AE7TableArn": { + "Fn::GetAtt": [ + "amplifyDataTodoNestedStackTodoNestedStackResource551CEA56", + "Outputs.amplifyprojectboardse2esandboxb2cbfff775dataamplifyDataTodoTodoTable7AAD0AE7TableArn" + ] + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref" + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref" + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref": { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref" + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/ded1fe6d160b127befcde1dbb6950a2bfa2b26f143ba9edc2e930efb78c51e12.json" + ] + ] + } + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789", + "amplifyDataTodoNestedStackTodoNestedStackResource551CEA56" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/ConnectionStack.NestedStack/ConnectionStack.NestedStackResource", + "aws:asset:path": "amplifyprojectboardse2esandboxb2cbfff775dataamplifyDataConnectionStackAC35AD49.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "amplifyDataQuoteResponseMessageDataResolverFnQuoteResponseMessageDataResolverFnAppSyncFunction7EFF678A": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "DataSourceName": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QuoteResponseMessageDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e5ac72a83d18a0cb18ce60e30414111cc0d76e69bd8d494c413d5b55a20705f5.vtl" + } + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/QuoteResponseMessageDataResolverFn/QuoteResponseMessageDataResolverFn.AppSyncFunction" + } + }, + "QuoteResponsemessageResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "FieldName": "message", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "amplifyDataQuoteResponseMessageDataResolverFnQuoteResponseMessageDataResolverFnAppSyncFunction7EFF678A", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"QuoteResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"message\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "QuoteResponse" + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/quoteResponseMessageResolver" + } + }, + "amplifyDataQuoteResponseQuoteDataResolverFnQuoteResponseQuoteDataResolverFnAppSyncFunctionBF0C3544": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "DataSourceName": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QuoteResponseQuoteDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/3b461e850d433a4a0a8dae9667c711a5a57e615b38ffcc6597d09108fe8fffba.vtl" + } + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/QuoteResponseQuoteDataResolverFn/QuoteResponseQuoteDataResolverFn.AppSyncFunction" + } + }, + "QuoteResponsequoteResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "FieldName": "quote", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "amplifyDataQuoteResponseQuoteDataResolverFnQuoteResponseQuoteDataResolverFnAppSyncFunctionBF0C3544", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"QuoteResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"quote\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "QuoteResponse" + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/quoteResponseQuoteResolver" + } + }, + "amplifyDataQuoteResponseAuthorDataResolverFnQuoteResponseAuthorDataResolverFnAppSyncFunction5826B69D": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "DataSourceName": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QuoteResponseAuthorDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/5823531964e22e13b2baefe1694abf0d7a5e8389c373235cca9403e7fee3bd76.vtl" + } + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/QuoteResponseAuthorDataResolverFn/QuoteResponseAuthorDataResolverFn.AppSyncFunction" + } + }, + "QuoteResponseauthorResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "FieldName": "author", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "amplifyDataQuoteResponseAuthorDataResolverFnQuoteResponseAuthorDataResolverFnAppSyncFunction5826B69D", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"QuoteResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"author\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "QuoteResponse" + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/quoteResponseAuthorResolver" + } + }, + "amplifyDataQuoteResponseTimestampDataResolverFnQuoteResponseTimestampDataResolverFnAppSyncFunctionFC9EF265": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "DataSourceName": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QuoteResponseTimestampDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9ef1ff70f2fb1662ee5d5fef0e6ca25043179817bdfc6515940c3bb3124e50fa.vtl" + } + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/QuoteResponseTimestampDataResolverFn/QuoteResponseTimestampDataResolverFn.AppSyncFunction" + } + }, + "QuoteResponsetimestampResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "FieldName": "timestamp", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "amplifyDataQuoteResponseTimestampDataResolverFnQuoteResponseTimestampDataResolverFnAppSyncFunctionFC9EF265", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"QuoteResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"timestamp\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "QuoteResponse" + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/quoteResponseTimestampResolver" + } + }, + "amplifyDataQuoteResponseTotalQuotesDataResolverFnQuoteResponseTotalQuotesDataResolverFnAppSyncFunction93F109B1": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "DataSourceName": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPINONEDS684BF699", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QuoteResponseTotalQuotesDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" + }, + "ResponseMappingTemplateS3Location": { + "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/668f960eab72d9e9d3fba64454998577b3a9fe2e3d1b61ba52bc895a3bdeb6a4.vtl" + } + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/QuoteResponseTotalQuotesDataResolverFn/QuoteResponseTotalQuotesDataResolverFn.AppSyncFunction" + } + }, + "QuoteResponsetotalQuotesResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "FieldName": "totalQuotes", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "amplifyDataQuoteResponseTotalQuotesDataResolverFnQuoteResponseTotalQuotesDataResolverFnAppSyncFunction93F109B1", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"QuoteResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"totalQuotes\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", + { + "Ref": "AWS::Partition" + }, + ":sts::", + { + "Ref": "AWS::AccountId" + }, + ":assumed-role/", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref" + }, + "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "QuoteResponse" + }, + "DependsOn": [ + "amplifyDataGraphQLAPITransformerSchemaFF50A789" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/quoteResponseTotalQuotesResolver" + } + }, + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA": { + "Type": "AWS::S3::Bucket", + "Properties": { + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD" + ], + "AllowedOrigins": [ + { + "Fn::Join": [ + "", + [ + "https://", + { + "Ref": "AWS::Region" + }, + ".console.aws.amazon.com/amplify" + ] + ] + } + ] + } + ] + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyData" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "aws-cdk:cr-owned:ed493f3c", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/Resource" + } + }, + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucketPolicyF1C1C548": { + "Type": "AWS::S3::BucketPolicy", + "Properties": { + "Bucket": { + "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" + }, + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "s3:PutBucketPolicy", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*" + ], + "Effect": "Allow", + "Principal": { + "AWS": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + } + }, + "Resource": [ + { + "Fn::GetAtt": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/Policy/Resource" + } + }, + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucketAutoDeleteObjectsCustomResource437F26F5": { + "Type": "Custom::S3AutoDeleteObjects", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "Arn" + ] + }, + "BucketName": { + "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" + } + }, + "DependsOn": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucketPolicyF1C1C548" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/AutoDeleteObjectsCustomResource/Default" + } + }, + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentAwsCliLayerE322F905": { + "Type": "AWS::Lambda::LayerVersion", + "Properties": { + "Content": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "e2659170a0721541efa761a8d5d04d5e36cbbf691c4b15a9053002b7c825055d.zip" + }, + "Description": "/opt/awscli/aws" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsDeployment/AwsCliLayer/Resource", + "aws:asset:path": "asset.e2659170a0721541efa761a8d5d04d5e36cbbf691c4b15a9053002b7c825055d.zip", + "aws:asset:is-bundled": false, + "aws:asset:property": "Content" + } + }, + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB21775929": { + "Type": "Custom::CDKBucketDeployment", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBC5D8AB21", + "Arn" + ] + }, + "SourceBucketNames": [ + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + } + ], + "SourceObjectKeys": [ + "a6a197f5b60e35e5e96961449ea0b24c107d2bd5e13851795355a9f2f349e654.zip" + ], + "SourceMarkers": [ + {} + ], + "DestinationBucketName": { + "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" + }, + "WaitForDistributionInvalidation": true, + "Prune": true, + "OutputObjectKeys": true, + "DestinationBucketArn": { + "Fn::GetAtt": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", + "Arn" + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsDeployment/CustomResource-1536MiB/Default" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ] + }, + "ManagedPolicyArns": [ + { + "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" + }, + "Timeout": 900, + "MemorySize": 128, + "Handler": "index.handler", + "Role": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Description": { + "Fn::Join": [ + "", + [ + "Lambda function for auto-deleting objects in ", + { + "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" + }, + " S3 bucket." + ] + ] + } + }, + "DependsOn": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", + "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", + "aws:asset:property": "Code" + } + }, + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/ServiceRole/Resource" + } + }, + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleDefaultPolicyFF1C635B": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "s3:GetObject*", + "s3:GetBucket*", + "s3:List*" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":s3:::", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + } + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":s3:::", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/*" + ] + ] + } + ] + }, + { + "Action": [ + "s3:GetObject*", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*", + "s3:PutObject", + "s3:PutObjectLegalHold", + "s3:PutObjectRetention", + "s3:PutObjectTagging", + "s3:PutObjectVersionTagging", + "s3:Abort*" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + }, + { + "Action": [ + "s3:GetObject*", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*", + "s3:PutObject", + "s3:PutObjectLegalHold", + "s3:PutObjectRetention", + "s3:PutObjectTagging", + "s3:PutObjectVersionTagging", + "s3:Abort*" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "modelIntrospectionSchemaBucketF566B665", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "modelIntrospectionSchemaBucketF566B665", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleDefaultPolicyFF1C635B", + "Roles": [ + { + "Ref": "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/ServiceRole/DefaultPolicy/Resource" + } + }, + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBC5D8AB21": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "3423a042b818e31c1e34a19d6689ab2e5f9b70fcbe9e71df66f241b20a200bd9.zip" + }, + "Environment": { + "Variables": { + "AWS_CA_BUNDLE": "/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem" + } + }, + "Handler": "index.handler", + "Layers": [ + { + "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentAwsCliLayerE322F905" + } + ], + "MemorySize": 1536, + "Role": { + "Fn::GetAtt": [ + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2", + "Arn" + ] + }, + "Runtime": "python3.13", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 900 + }, + "DependsOn": [ + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleDefaultPolicyFF1C635B", + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/Resource", + "aws:asset:path": "asset.3423a042b818e31c1e34a19d6689ab2e5f9b70fcbe9e71df66f241b20a200bd9", + "aws:asset:is-bundled": false, + "aws:asset:property": "Code" + } + }, + "modelIntrospectionSchemaBucketF566B665": { + "Type": "AWS::S3::Bucket", + "Properties": { + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "aws-cdk:cr-owned:1309051f", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/modelIntrospectionSchemaBucket/Resource" + } + }, + "modelIntrospectionSchemaBucketPolicy4DAB0D15": { + "Type": "AWS::S3::BucketPolicy", + "Properties": { + "Bucket": { + "Ref": "modelIntrospectionSchemaBucketF566B665" + }, + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:*", + "Condition": { + "Bool": { + "aws:SecureTransport": "false" + } + }, + "Effect": "Deny", + "Principal": { + "AWS": "*" + }, + "Resource": [ + { + "Fn::GetAtt": [ + "modelIntrospectionSchemaBucketF566B665", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "modelIntrospectionSchemaBucketF566B665", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + }, + { + "Action": [ + "s3:PutBucketPolicy", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*" + ], + "Effect": "Allow", + "Principal": { + "AWS": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + } + }, + "Resource": [ + { + "Fn::GetAtt": [ + "modelIntrospectionSchemaBucketF566B665", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "modelIntrospectionSchemaBucketF566B665", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/modelIntrospectionSchemaBucket/Policy/Resource" + } + }, + "modelIntrospectionSchemaBucketAutoDeleteObjectsCustomResourceFE57309F": { + "Type": "Custom::S3AutoDeleteObjects", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "Arn" + ] + }, + "BucketName": { + "Ref": "modelIntrospectionSchemaBucketF566B665" + } + }, + "DependsOn": [ + "modelIntrospectionSchemaBucketPolicy4DAB0D15" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/modelIntrospectionSchemaBucket/AutoDeleteObjectsCustomResource/Default" + } + }, + "modelIntrospectionSchemaBucketDeploymentAwsCliLayer13C432F7": { + "Type": "AWS::Lambda::LayerVersion", + "Properties": { + "Content": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "e2659170a0721541efa761a8d5d04d5e36cbbf691c4b15a9053002b7c825055d.zip" + }, + "Description": "/opt/awscli/aws" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/modelIntrospectionSchemaBucketDeployment/AwsCliLayer/Resource", + "aws:asset:path": "asset.e2659170a0721541efa761a8d5d04d5e36cbbf691c4b15a9053002b7c825055d.zip", + "aws:asset:is-bundled": false, + "aws:asset:property": "Content" + } + }, + "modelIntrospectionSchemaBucketDeploymentCustomResource1536MiB104B97EC": { + "Type": "Custom::CDKBucketDeployment", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBC5D8AB21", + "Arn" + ] + }, + "SourceBucketNames": [ + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + } + ], + "SourceObjectKeys": [ + "7bbe6c45e7a85c4ebb611e77444ebaadde5c178b52d94ba48f04a718491ff401.zip" + ], + "SourceMarkers": [ + {} + ], + "DestinationBucketName": { + "Ref": "modelIntrospectionSchemaBucketF566B665" + }, + "WaitForDistributionInvalidation": true, + "Prune": true, + "OutputObjectKeys": true + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/modelIntrospectionSchemaBucketDeployment/CustomResource-1536MiB/Default" + } + }, + "AMPLIFYDATAGRAPHQLENDPOINTParameter1C2CBB16": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/projectboards/e2e-sandbox-x/AMPLIFY_DATA_GRAPHQL_ENDPOINT", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "GraphQLUrl" + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/AMPLIFY_DATA_GRAPHQL_ENDPOINTParameter/Resource" + } + }, + "AMPLIFYDATAMODELINTROSPECTIONSCHEMABUCKETNAMEParameter47BF4F44": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/projectboards/e2e-sandbox-x/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_BUCKET_NAME", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": { + "Ref": "modelIntrospectionSchemaBucketF566B665" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_BUCKET_NAMEParameter/Resource" + } + }, + "AMPLIFYDATAMODELINTROSPECTIONSCHEMAKEYParameterB6AEAE8A": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/projectboards/e2e-sandbox-x/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_KEY", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": "modelIntrospectionSchema.json" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_KEYParameter/Resource" + } + }, + "AMPLIFYDATADEFAULTNAMEParameterE7C23CC4": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/projectboards/e2e-sandbox-x/AMPLIFY_DATA_DEFAULT_NAME", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": "amplifyData" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/AMPLIFY_DATA_DEFAULT_NAMEParameter/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/6VSTW/bMAz9Lc1ZUbMU3WE318F2WNFlMdDLUASMzLhM9OGKcjLD8H8fJKVpup2KnchHig+PepzL+e1Mzq7gyFNV76eaNnJ4QA5YVwHUXqyQXecVCjjyeoC25d4qOXzz0D6/6KKlO2AU5damys/7oqULVKlnNBALRUvfsRcPzuICAlSZtNza9+hrZ1UgZ0tnt9R0HiKIjahDH9CPgm/WAzBjYFnEIGpstesN2iDvOrXHsDgX4ms55GoSmtNImLNfw8TQb7KTL5PLL4jL8o1MLT6xFl1wC9QY8MdmhyrwZBT/Nf10UrN0mlT/pinjDyjLA1WAgHHpjwn7d/hpFBrMpgY5lFt7Dz36R/QcjajINhqDO/skzsmFeaMgMHJYOZ08TfFtyZyNgtnIoQqebLMEDwYD+tR/BeMoksFVgIZsE3v5JsuOgzPnyzxdR8qz8LWOotdwZKVJFkcuNaU93vH/xbP07kA1+ngno7CuRrnj68N8Lj99lrOrHRNNfWcDGZSrHP8Akcz7fT4DAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthUserPoolE690205FRef": { + "Type": "String" + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref": { + "Type": "String" + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref": { + "Type": "String" + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref": { + "Type": "String" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId": { + "Value": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "ApiId" + ] + } + }, + "amplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CGraphQLUrl": { + "Value": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPI42A6FA33", + "GraphQLUrl" + ] + } + }, + "amplifyprojectboardse2esandboxb2cbfff775dataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiBC6506A9DDestinationBucketArn": { + "Value": { + "Fn::GetAtt": [ + "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB21775929", + "DestinationBucketArn" + ] + } + }, + "amplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPIDefaultApiKey972AC2CCApiKey": { + "Value": { + "Fn::GetAtt": [ + "amplifyDataGraphQLAPIDefaultApiKey1C8ED374", + "ApiKey" + ] + } + } + } +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-function1351588B-x.description.txt b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-function1351588B-x.description.txt new file mode 100644 index 00000000000..907003893a9 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-function1351588B-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"AmplifySandbox","createdWith":"1.18.0","stackType":"function-Lambda","metadata":{}} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-function1351588B-x.outputs.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-function1351588B-x.outputs.json new file mode 100644 index 00000000000..cf8fbcb962c --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-function1351588B-x.outputs.json @@ -0,0 +1,6 @@ +[ + { + "OutputKey": "amplifyprojectboardse2esandboxb2cbfff775functionquotegeneratorgen2xlambda20BABBC8Ref", + "OutputValue": "quotegenerator-gen2-x" + } +] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-function1351588B-x.parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-function1351588B-x.parameters.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-function1351588B-x.parameters.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-function1351588B-x.template.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-function1351588B-x.template.json new file mode 100644 index 00000000000..4496f1015a0 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-function1351588B-x.template.json @@ -0,0 +1,398 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.18.0\",\"stackType\":\"function-Lambda\",\"metadata\":{}}", + "Resources": { + "quotegeneratorgen2xlambdaServiceRole4B34AD40": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "quotegenerator-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/function/quotegenerator-gen2-x-lambda/ServiceRole/Resource" + } + }, + "quotegeneratorgen2xlambdaCF1084C1": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Architectures": [ + "x86_64" + ], + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "fd074b3886f6db127f8e75b0559d79e1102ff783c2bf96cfd44c9a5822ccf1a8.zip" + }, + "Environment": { + "Variables": { + "ENV": "gen2-x", + "REGION": "us-east-1", + "AMPLIFY_SSM_ENV_CONFIG": "{}" + } + }, + "EphemeralStorage": { + "Size": 512 + }, + "FunctionName": "quotegenerator-gen2-x", + "Handler": "index.handler", + "MemorySize": 128, + "Role": { + "Fn::GetAtt": [ + "quotegeneratorgen2xlambdaServiceRole4B34AD40", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "quotegenerator-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 25 + }, + "DependsOn": [ + "quotegeneratorgen2xlambdaServiceRole4B34AD40" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/function/quotegenerator-gen2-x-lambda/Resource", + "aws:asset:path": "asset.fd074b3886f6db127f8e75b0559d79e1102ff783c2bf96cfd44c9a5822ccf1a8", + "aws:asset:is-bundled": true, + "aws:asset:property": "Code" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/zXNOw6DQAxF0bXQG4cMSvqAlJICFoDMjEHDx0jxEArE3iNAqU7zdJ9B80gwiWjV2LohHn2DW8Ea2FWB7AC0ar2NNDWOapkd94rFyXsRG/ws4GnCrZxHhryVwx00rUmVg+LrADTFbLEDh4yU4aph3sq/scO5qwJ1XrodjiPs9fY1Bu9PTKJevY8/iwQ/MZaXPwR/I7e7AAAA" + }, + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/function/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifyprojectboardse2esandboxb2cbfff775functionquotegeneratorgen2xlambda20BABBC8Ref": { + "Value": { + "Ref": "quotegeneratorgen2xlambdaCF1084C1" + } + } + } +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x.description.txt b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x.description.txt new file mode 100644 index 00000000000..950d1c3cb96 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"AmplifySandbox","createdWith":"1.4.3","stackType":"storage-S3","metadata":{}} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x.outputs.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x.outputs.json new file mode 100644 index 00000000000..09f16dec5e9 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x.outputs.json @@ -0,0 +1,6 @@ +[ + { + "OutputKey": "amplifyprojectboardse2esandboxb2cbfff775storageprojectboards34b9a7f3c2ca489293910116c994688bxgen2xBucket352B0D2BRef", + "OutputValue": "amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h" + } +] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x.parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x.parameters.json new file mode 100644 index 00000000000..68cd7ce1552 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x.parameters.json @@ -0,0 +1,10 @@ +[ + { + "ParameterKey": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref", + "ParameterValue": "amplify-projectboa2604142-amplifyAuthauthenticatedU-1jxM3hVSjIDm" + }, + { + "ParameterKey": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref", + "ParameterValue": "amplify-projectboa2604142-amplifyAuthunauthenticate-LvEI2or1a1b4" + } +] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x.template.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x.template.json new file mode 100644 index 00000000000..bba3a8831ee --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x-storage0EC3F24A-x.template.json @@ -0,0 +1,806 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", + "Resources": { + "projectboards34b9a7f3c2ca489293910116c994688bxgen2xBucket0114CDD0": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "BucketKeyEnabled": false, + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "MaxAge": 3000 + } + ] + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "projectboards34b9a7f3c2ca489293910116c994688bx-gen2-x" + }, + { + "Key": "aws-cdk:auto-delete-objects", + "Value": "true" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/storage/projectboards34b9a7f3c2ca489293910116c994688bx-gen2-x/Bucket/Resource" + } + }, + "projectboards34b9a7f3c2ca489293910116c994688bxgen2xBucketPolicyA46B3F94": { + "Type": "AWS::S3::BucketPolicy", + "Properties": { + "Bucket": { + "Ref": "projectboards34b9a7f3c2ca489293910116c994688bxgen2xBucket0114CDD0" + }, + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:*", + "Condition": { + "Bool": { + "aws:SecureTransport": "false" + } + }, + "Effect": "Deny", + "Principal": { + "AWS": "*" + }, + "Resource": [ + { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688bxgen2xBucket0114CDD0", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688bxgen2xBucket0114CDD0", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + }, + { + "Action": [ + "s3:PutBucketPolicy", + "s3:GetBucket*", + "s3:List*", + "s3:DeleteObject*" + ], + "Effect": "Allow", + "Principal": { + "AWS": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + } + }, + "Resource": [ + { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688bxgen2xBucket0114CDD0", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688bxgen2xBucket0114CDD0", + "Arn" + ] + }, + "/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/storage/projectboards34b9a7f3c2ca489293910116c994688bx-gen2-x/Bucket/Policy/Resource" + } + }, + "projectboards34b9a7f3c2ca489293910116c994688bxgen2xBucketAutoDeleteObjectsCustomResourceEA4B9FA5": { + "Type": "Custom::S3AutoDeleteObjects", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", + "Arn" + ] + }, + "BucketName": { + "Ref": "projectboards34b9a7f3c2ca489293910116c994688bxgen2xBucket0114CDD0" + } + }, + "DependsOn": [ + "projectboards34b9a7f3c2ca489293910116c994688bxgen2xBucketPolicyA46B3F94" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/storage/projectboards34b9a7f3c2ca489293910116c994688bx-gen2-x/Bucket/AutoDeleteObjectsCustomResource/Default" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ] + }, + "ManagedPolicyArns": [ + { + "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" + } + }, + "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" + }, + "Timeout": 900, + "MemorySize": 128, + "Handler": "index.handler", + "Role": { + "Fn::GetAtt": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Description": { + "Fn::Join": [ + "", + [ + "Lambda function for auto-deleting objects in ", + { + "Ref": "projectboards34b9a7f3c2ca489293910116c994688bxgen2xBucket0114CDD0" + }, + " S3 bucket." + ] + ] + } + }, + "DependsOn": [ + "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", + "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", + "aws:asset:property": "Code" + } + }, + "PROJECTBOARDS34B9A7F3C2CA489293910116C994688B39ACFGEN2GUBUKOEDPUBUCKETNAMEParameter4A2DFBF7": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/projectboards/e2e-sandbox-x/PROJECTBOARDS_34_B_9_A_7_F_3_C_2_CA_489293910116_C_994688_B_39_ACF_GEN_2_GUBUKOEDPU_BUCKET_NAME", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": { + "Ref": "projectboards34b9a7f3c2ca489293910116c994688bxgen2xBucket0114CDD0" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/storage/PROJECTBOARDS_34_B_9_A_7_F_3_C_2_CA_489293910116_C_994688_B_39_ACF_GEN_2_GUBUKOEDPU_BUCKET_NAMEParameter/Resource" + } + }, + "amplifyprojectboardse2esandboxb2cbfff775storageAccess3692CDB92": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688bxgen2xBucket0114CDD0", + "Arn" + ] + }, + "/public/*" + ] + ] + } + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/*", + "public/" + ] + } + }, + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688bxgen2xBucket0114CDD0", + "Arn" + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "amplifyprojectboardse2esandboxb2cbfff775storageAccess3692CDB92", + "Roles": [ + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/storage/amplify-projectboards-e2e-sandbox-x--storageAccess3/Resource" + } + }, + "amplifyprojectboardse2esandboxb2cbfff775storageAccess426533AE4": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:PutObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688bxgen2xBucket0114CDD0", + "Arn" + ] + }, + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688bxgen2xBucket0114CDD0", + "Arn" + ] + }, + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688bxgen2xBucket0114CDD0", + "Arn" + ] + }, + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688bxgen2xBucket0114CDD0", + "Arn" + ] + }, + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688bxgen2xBucket0114CDD0", + "Arn" + ] + }, + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688bxgen2xBucket0114CDD0", + "Arn" + ] + }, + "/private/*" + ] + ] + } + ] + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/*", + "public/", + "protected/*", + "protected/", + "private/*", + "private/" + ] + } + }, + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688bxgen2xBucket0114CDD0", + "Arn" + ] + } + }, + { + "Action": "s3:DeleteObject", + "Effect": "Allow", + "Resource": [ + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688bxgen2xBucket0114CDD0", + "Arn" + ] + }, + "/public/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688bxgen2xBucket0114CDD0", + "Arn" + ] + }, + "/protected/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "projectboards34b9a7f3c2ca489293910116c994688bxgen2xBucket0114CDD0", + "Arn" + ] + }, + "/private/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "amplifyprojectboardse2esandboxb2cbfff775storageAccess426533AE4", + "Roles": [ + { + "Ref": "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/storage/amplify-projectboards-e2e-sandbox-x--storageAccess4/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/5WNy07DMBBFv6VZO0NIBQt2fawhapYIIdcZokliW/JMWpDlf0epJQJLVnNH5z5qqB8qqDb6yqXpxnKiM8RnZMGuFW1Gpa/8HnkLcT+bEUUdPlxWr7Gw9EmueCp+hxc/b+GGGLJ1N4s/4oSCL+cBjXCR3lRGjZ/IfK2t+f9Hdw60ogUtult1UswWYiuBXN/ooC0KhmXj50mKtIW4rmeVkjrMLN6ekP0cDC5o1X9QE/yFOgx7zah2zCit6J5cn5TzHcLAd5e6hvtHqDYDE5VhdkIW4ZTvN8L1/x56AQAA" + }, + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/storage/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref": { + "Type": "String" + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref": { + "Type": "String" + } + }, + "Outputs": { + "amplifyprojectboardse2esandboxb2cbfff775storageprojectboards34b9a7f3c2ca489293910116c994688bxgen2xBucket352B0D2BRef": { + "Value": { + "Ref": "projectboards34b9a7f3c2ca489293910116c994688bxgen2xBucket0114CDD0" + } + } + } +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x.description.txt b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x.description.txt new file mode 100644 index 00000000000..d1c87f28683 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"AmplifySandbox","createdWith":"1.22.0","stackType":"root","metadata":{}} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x.outputs.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x.outputs.json new file mode 100644 index 00000000000..7e6f2a1c409 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x.outputs.json @@ -0,0 +1,138 @@ +[ + { + "OutputKey": "webClientId", + "OutputValue": "5u0pu7spa0tin8np6oitsr50ke" + }, + { + "OutputKey": "socialProviders", + "OutputValue": "" + }, + { + "OutputKey": "usernameAttributes", + "OutputValue": "[\"email\"]" + }, + { + "OutputKey": "bucketName", + "OutputValue": "amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h" + }, + { + "OutputKey": "signupAttributes", + "OutputValue": "[\"email\"]" + }, + { + "OutputKey": "oauthClientId", + "OutputValue": "5u0pu7spa0tin8np6oitsr50ke" + }, + { + "OutputKey": "allowUnauthenticatedIdentities", + "OutputValue": "true" + }, + { + "OutputKey": "oauthCognitoDomain", + "OutputValue": "" + }, + { + "OutputKey": "oauthScope", + "OutputValue": "[\"profile\",\"phone\",\"email\",\"openid\",\"aws.cognito.signin.user.admin\"]" + }, + { + "OutputKey": "oauthRedirectSignOut", + "OutputValue": "" + }, + { + "OutputKey": "awsAppsyncAdditionalAuthenticationTypes", + "OutputValue": "AMAZON_COGNITO_USER_POOLS,AWS_IAM" + }, + { + "OutputKey": "mfaTypes", + "OutputValue": "[]" + }, + { + "OutputKey": "mfaConfiguration", + "OutputValue": "OFF" + }, + { + "OutputKey": "storageRegion", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "oauthResponseType", + "OutputValue": "code" + }, + { + "OutputKey": "awsAppsyncApiKey", + "OutputValue": "da2-fakeapikey00000000000000" + }, + { + "OutputKey": "awsAppsyncAuthenticationType", + "OutputValue": "API_KEY" + }, + { + "OutputKey": "oauthRedirectSignIn", + "OutputValue": "https://example.com" + }, + { + "OutputKey": "passwordPolicyMinLength", + "OutputValue": "8" + }, + { + "OutputKey": "awsAppsyncApiEndpoint", + "OutputValue": "https://3y5yexrtkncprjfs4q6fburagm.appsync-api.us-east-1.amazonaws.com/graphql" + }, + { + "OutputKey": "awsAppsyncApiId", + "OutputValue": "rvxoywjwergpdpazwnark4tqei" + }, + { + "OutputKey": "authRegion", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "buckets", + "OutputValue": "[\"{\\\"name\\\":\\\"projectboards34b9a7f3c2ca489293910116c994688bx-gen2-x\\\",\\\"bucketName\\\":\\\"amplify-projectboa2604142-projectboards34b9a7f3c2c-lms61ryat86h\\\",\\\"storageRegion\\\":\\\"us-east-1\\\",\\\"paths\\\":{\\\"public/*\\\":{\\\"guest\\\":[\\\"get\\\",\\\"list\\\"],\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]},\\\"protected/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]},\\\"private/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]}}}\"]" + }, + { + "OutputKey": "amplifyApiModelSchemaS3Uri", + "OutputValue": "s3://amplify-projectboa2604142-amplifydataamplifycodege-1umie1haseqb/model-schema.graphql" + }, + { + "OutputKey": "groups", + "OutputValue": "[]" + }, + { + "OutputKey": "definedFunctions", + "OutputValue": "[\"quotegenerator-gen2-x\"]" + }, + { + "OutputKey": "passwordlessOptions", + "OutputValue": "" + }, + { + "OutputKey": "awsAppsyncRegion", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "deploymentType", + "OutputValue": "sandbox" + }, + { + "OutputKey": "passwordPolicyRequirements", + "OutputValue": "[]" + }, + { + "OutputKey": "region", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "userPoolId", + "OutputValue": "us-east-1_KIRz8bn0l" + }, + { + "OutputKey": "identityPoolId", + "OutputValue": "us-east-1:f53c9465-a0fb-4a04-81d2-b13c6999b9a2" + }, + { + "OutputKey": "verificationMechanisms", + "OutputValue": "[\"email\"]" + } +] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x.parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x.parameters.json new file mode 100644 index 00000000000..9b7e2669975 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x.parameters.json @@ -0,0 +1,7 @@ +[ + { + "ParameterKey": "BootstrapVersion", + "ParameterValue": "/cdk-bootstrap/hnb659fds/version", + "ResolvedValue": "30" + } +] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x.template.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x.template.json new file mode 100644 index 00000000000..aaf5f844d7a --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-e2e-sandbox-x.template.json @@ -0,0 +1,802 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.22.0\",\"stackType\":\"root\",\"metadata\":{}}", + "Metadata": { + "AWS::Amplify::Platform": { + "version": "1", + "stackOutputs": [ + "deploymentType", + "region" + ] + }, + "AWS::Amplify::Auth": { + "version": "1", + "stackOutputs": [ + "userPoolId", + "webClientId", + "identityPoolId", + "authRegion", + "allowUnauthenticatedIdentities", + "signupAttributes", + "usernameAttributes", + "verificationMechanisms", + "passwordPolicyMinLength", + "passwordPolicyRequirements", + "mfaConfiguration", + "mfaTypes", + "passwordlessOptions", + "socialProviders", + "oauthCognitoDomain", + "oauthScope", + "oauthRedirectSignIn", + "oauthRedirectSignOut", + "oauthResponseType", + "oauthClientId", + "groups" + ] + }, + "AWS::Amplify::GraphQL": { + "version": "1", + "stackOutputs": [ + "awsAppsyncApiId", + "awsAppsyncApiEndpoint", + "awsAppsyncAuthenticationType", + "awsAppsyncRegion", + "amplifyApiModelSchemaS3Uri", + "awsAppsyncApiKey", + "awsAppsyncAdditionalAuthenticationTypes" + ] + }, + "AWS::Amplify::Function": { + "version": "1", + "stackOutputs": [ + "definedFunctions" + ] + }, + "AWS::Amplify::Storage": { + "version": "1", + "stackOutputs": [ + "buckets", + "storageRegion", + "bucketName" + ] + } + }, + "Outputs": { + "deploymentType": { + "Value": "sandbox" + }, + "region": { + "Value": { + "Ref": "AWS::Region" + } + }, + "userPoolId": { + "Value": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifyprojectboardse2esandboxb2cbfff775authamplifyAuthUserPoolE690205FRef" + ] + } + }, + "webClientId": { + "Value": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifyprojectboardse2esandboxb2cbfff775authamplifyAuthUserPoolAppClient619348A5Ref" + ] + } + }, + "identityPoolId": { + "Value": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref" + ] + } + }, + "authRegion": { + "Value": { + "Ref": "AWS::Region" + } + }, + "allowUnauthenticatedIdentities": { + "Value": "true" + }, + "signupAttributes": { + "Value": "[\"email\"]" + }, + "usernameAttributes": { + "Value": "[\"email\"]" + }, + "verificationMechanisms": { + "Value": "[\"email\"]" + }, + "passwordPolicyMinLength": { + "Value": "8" + }, + "passwordPolicyRequirements": { + "Value": "[]" + }, + "mfaConfiguration": { + "Value": "OFF" + }, + "mfaTypes": { + "Value": "[]" + }, + "passwordlessOptions": { + "Value": "" + }, + "socialProviders": { + "Value": "" + }, + "oauthCognitoDomain": { + "Value": "" + }, + "oauthScope": { + "Value": "[\"profile\",\"phone\",\"email\",\"openid\",\"aws.cognito.signin.user.admin\"]" + }, + "oauthRedirectSignIn": { + "Value": "https://example.com" + }, + "oauthRedirectSignOut": { + "Value": "" + }, + "oauthResponseType": { + "Value": "code" + }, + "oauthClientId": { + "Value": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifyprojectboardse2esandboxb2cbfff775authamplifyAuthUserPoolAppClient619348A5Ref" + ] + } + }, + "groups": { + "Value": "[]" + }, + "awsAppsyncApiId": { + "Value": { + "Fn::GetAtt": [ + "data7552DF31", + "Outputs.amplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CApiId" + ] + } + }, + "awsAppsyncApiEndpoint": { + "Value": { + "Fn::GetAtt": [ + "data7552DF31", + "Outputs.amplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPI73BB075CGraphQLUrl" + ] + } + }, + "awsAppsyncAuthenticationType": { + "Value": "API_KEY" + }, + "awsAppsyncRegion": { + "Value": { + "Ref": "AWS::Region" + } + }, + "amplifyApiModelSchemaS3Uri": { + "Value": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Fn::Select": [ + 0, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Fn::GetAtt": [ + "data7552DF31", + "Outputs.amplifyprojectboardse2esandboxb2cbfff775dataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiBC6506A9DDestinationBucketArn" + ] + } + ] + } + ] + } + ] + } + ] + }, + "/model-schema.graphql" + ] + ] + } + }, + "awsAppsyncApiKey": { + "Value": { + "Fn::GetAtt": [ + "data7552DF31", + "Outputs.amplifyprojectboardse2esandboxb2cbfff775dataamplifyDataGraphQLAPIDefaultApiKey972AC2CCApiKey" + ] + } + }, + "awsAppsyncAdditionalAuthenticationTypes": { + "Value": "AMAZON_COGNITO_USER_POOLS,AWS_IAM" + }, + "definedFunctions": { + "Value": { + "Fn::Join": [ + "", + [ + "[\"", + { + "Fn::GetAtt": [ + "function1351588B", + "Outputs.amplifyprojectboardse2esandboxb2cbfff775functionquotegeneratorgen2xlambda20BABBC8Ref" + ] + }, + "\"]" + ] + ] + } + }, + "storageRegion": { + "Value": { + "Ref": "AWS::Region" + } + }, + "bucketName": { + "Value": { + "Fn::GetAtt": [ + "storage0EC3F24A", + "Outputs.amplifyprojectboardse2esandboxb2cbfff775storageprojectboards34b9a7f3c2ca489293910116c994688bxgen2xBucket352B0D2BRef" + ] + } + }, + "buckets": { + "Value": { + "Fn::Join": [ + "", + [ + "[\"{\\\"name\\\":\\\"projectboards34b9a7f3c2ca489293910116c994688bx-gen2-x\\\",\\\"bucketName\\\":\\\"", + { + "Fn::GetAtt": [ + "storage0EC3F24A", + "Outputs.amplifyprojectboardse2esandboxb2cbfff775storageprojectboards34b9a7f3c2ca489293910116c994688bxgen2xBucket352B0D2BRef" + ] + }, + "\\\",\\\"storageRegion\\\":\\\"", + { + "Ref": "AWS::Region" + }, + "\\\",\\\"paths\\\":{\\\"public/*\\\":{\\\"guest\\\":[\\\"get\\\",\\\"list\\\"],\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]},\\\"protected/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]},\\\"private/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]}}}\"]" + ] + ] + } + } + }, + "Resources": { + "auth179371D7": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/970f12b8d23d83240292527c7dbc2ea9c6bdbb9b7634e2582f6f5e08be2585cf.json" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/auth.NestedStack/auth.NestedStackResource", + "aws:asset:path": "amplifyprojectboardse2esandboxb2cbfff775auth262AC647.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "data7552DF31": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthUserPoolE690205FRef": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifyprojectboardse2esandboxb2cbfff775authamplifyAuthUserPoolE690205FRef" + ] + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref" + ] + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref" + ] + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifyprojectboardse2esandboxb2cbfff775authamplifyAuthIdentityPoolB48353E5Ref" + ] + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/25e6b79af91bb49db99db0a4554a536b8f4da9ce5aa67c6e3555b4415b582b0e.json" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/data.NestedStack/data.NestedStackResource", + "aws:asset:path": "amplifyprojectboardse2esandboxb2cbfff775data389AFE92.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "storage0EC3F24A": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifyprojectboardse2esandboxb2cbfff775authamplifyAuthunauthenticatedUserRole8524B4C2Ref" + ] + }, + "referencetoamplifyprojectboardse2esandboxb2cbfff775authNestedStackauthNestedStackResourceD386B68COutputsamplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifyprojectboardse2esandboxb2cbfff775authamplifyAuthauthenticatedUserRoleAB70D6A0Ref" + ] + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/7ae2e2062554f19245e492e3fd5bbf84700eb3f785ea64cf4745c8a6c7b61136.json" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/storage.NestedStack/storage.NestedStackResource", + "aws:asset:path": "amplifyprojectboardse2esandboxb2cbfff775storage2182CBFF.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "function1351588B": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/5ad25262bc6a08f52faea7e4ecce16be3b520d3e9711eb586eccd6318e73c5f5.json" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/function.NestedStack/function.NestedStackResource", + "aws:asset:path": "amplifyprojectboardse2esandboxb2cbfff775function1BDE7D7C.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/zPSMzI10DNQTCwv1k1OydbNyUzSqw4uSUzO1nFOy/MvLSkoLQGxwEK1Onn5Kal6WcX6ZUZGeoZmegaKWcWZmbpFpXklmbmpekEQGgAGekjOVAAAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-projectboards-e2e-sandbox-x/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "BootstrapVersion": { + "Type": "AWS::SSM::Parameter::Value", + "Default": "/cdk-bootstrap/hnb659fds/version", + "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]" + } + }, + "Rules": { + "CheckBootstrapVersion": { + "Assertions": [ + { + "Assert": { + "Fn::Not": [ + { + "Fn::Contains": [ + [ + "1", + "2", + "3", + "4", + "5" + ], + { + "Ref": "BootstrapVersion" + } + ] + } + ] + }, + "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI." + } + ] + } + } +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataAmplifyTableManagerNestedStackA-ZHLD1PJQR6IY.description.txt b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataAmplifyTableManagerNestedStackA-ZHLD1PJQR6IY.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataAmplifyTableManagerNestedStackA-ZHLD1PJQR6IY.outputs.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataAmplifyTableManagerNestedStackA-ZHLD1PJQR6IY.outputs.json deleted file mode 100644 index 1695b5f82b8..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataAmplifyTableManagerNestedStackA-ZHLD1PJQR6IY.outputs.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - { - "OutputKey": "amplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEventADA3152EArn", - "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-projectboards-ge-TableManagerCustomProvid-hLjkWJDnBrJU" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataAmplifyTableManagerNestedStackA-ZHLD1PJQR6IY.parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataAmplifyTableManagerNestedStackA-ZHLD1PJQR6IY.parameters.json deleted file mode 100644 index 2f48f37af91..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataAmplifyTableManagerNestedStackA-ZHLD1PJQR6IY.parameters.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId", - "ParameterValue": "y6mc7kazlnbphitea3lx7uhvcm" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataAmplifyTableManagerNestedStackA-ZHLD1PJQR6IY.template.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataAmplifyTableManagerNestedStackA-ZHLD1PJQR6IY.template.json deleted file mode 100644 index 324d1e96da5..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataAmplifyTableManagerNestedStackA-ZHLD1PJQR6IY.template.json +++ /dev/null @@ -1,795 +0,0 @@ -{ - "Resources": { - "AmplifyManagedTableIsCompleteRoleF825222C": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:CreateTable", - "dynamodb:UpdateTable", - "dynamodb:DeleteTable", - "dynamodb:DescribeTable", - "dynamodb:DescribeContinuousBackups", - "dynamodb:DescribeTimeToLive", - "dynamodb:UpdateContinuousBackups", - "dynamodb:UpdateTimeToLive", - "dynamodb:TagResource", - "dynamodb:UntagResource", - "dynamodb:ListTagsOfResource" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/*-${apiId}-${envName}", - { - "apiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "envName": "NONE" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", - { - "tableName": "Project-47mmg7n7zzcmnhcdcrkmgul4xe-main" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", - { - "tableName": "Todo-47mmg7n7zzcmnhcdcrkmgul4xe-main" - } - ] - } - ] - }, - { - "Action": "lambda:ListTags", - "Effect": "Allow", - "Resource": { - "Fn::Sub": [ - "arn:${AWS::Partition}:lambda:${AWS::Region}:${AWS::AccountId}:function:*TableManager*", - {} - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "CreateUpdateDeleteTablesPolicy" - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/AmplifyTableManager/AmplifyManagedTableIsCompleteRole/Resource" - } - }, - "AmplifyManagedTableOnEventRoleB4E71DEA": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:CreateTable", - "dynamodb:UpdateTable", - "dynamodb:DeleteTable", - "dynamodb:DescribeTable", - "dynamodb:DescribeContinuousBackups", - "dynamodb:DescribeTimeToLive", - "dynamodb:UpdateContinuousBackups", - "dynamodb:UpdateTimeToLive", - "dynamodb:TagResource", - "dynamodb:UntagResource", - "dynamodb:ListTagsOfResource" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/*-${apiId}-${envName}", - { - "apiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "envName": "NONE" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", - { - "tableName": "Project-47mmg7n7zzcmnhcdcrkmgul4xe-main" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tableName}", - { - "tableName": "Todo-47mmg7n7zzcmnhcdcrkmgul4xe-main" - } - ] - } - ] - }, - { - "Action": "lambda:ListTags", - "Effect": "Allow", - "Resource": { - "Fn::Sub": [ - "arn:${AWS::Partition}:lambda:${AWS::Region}:${AWS::AccountId}:function:*TableManager*", - {} - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "CreateUpdateDeleteTablesPolicy" - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/AmplifyTableManager/AmplifyManagedTableOnEventRole/Resource" - } - }, - "AmplifyManagedTableOnEventRoleDefaultPolicyF6DABCB6": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "states:StartExecution", - "Effect": "Allow", - "Resource": { - "Ref": "AmplifyTableWaiterStateMachine060600BC" - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "AmplifyManagedTableOnEventRoleDefaultPolicyF6DABCB6", - "Roles": [ - { - "Ref": "AmplifyManagedTableOnEventRoleB4E71DEA" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/AmplifyTableManager/AmplifyManagedTableOnEventRole/DefaultPolicy/Resource" - } - }, - "TableManagerCustomProviderframeworkonEvent1DFC2ECC": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6.zip" - }, - "Description": "AmplifyManagedTable - onEvent (amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider)", - "Environment": { - "Variables": { - "WAITER_STATE_MACHINE_ARN": { - "Ref": "AmplifyTableWaiterStateMachine060600BC" - } - } - }, - "Handler": "amplify-table-manager-handler.onEvent", - "Role": { - "Fn::GetAtt": [ - "AmplifyManagedTableOnEventRoleB4E71DEA", - "Arn" - ] - }, - "Runtime": "nodejs24.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 840 - }, - "DependsOn": [ - "AmplifyManagedTableOnEventRoleDefaultPolicyF6DABCB6", - "AmplifyManagedTableOnEventRoleB4E71DEA" - ], - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider/framework-onEvent/Resource", - "aws:asset:path": "asset.f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6", - "aws:asset:is-bundled": false, - "aws:asset:property": "Code" - } - }, - "TableManagerCustomProviderframeworkisComplete2E51021B": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6.zip" - }, - "Description": "AmplifyManagedTable - isComplete (amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider)", - "Handler": "amplify-table-manager-handler.isComplete", - "Role": { - "Fn::GetAtt": [ - "AmplifyManagedTableIsCompleteRoleF825222C", - "Arn" - ] - }, - "Runtime": "nodejs24.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 840 - }, - "DependsOn": [ - "AmplifyManagedTableIsCompleteRoleF825222C" - ], - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/AmplifyTableManager/TableManagerCustomProvider/framework-isComplete/Resource", - "aws:asset:path": "asset.f2c5bec0e463cae18d0bf683be5923ae6bd676a06af1a994bdfa076a66ac07d6", - "aws:asset:is-bundled": false, - "aws:asset:property": "Code" - } - }, - "AmplifyTableWaiterStateMachineRole470BE899": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "states.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Role/Resource" - } - }, - "AmplifyTableWaiterStateMachineRoleDefaultPolicy89F3836A": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "lambda:InvokeFunction", - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "TableManagerCustomProviderframeworkisComplete2E51021B", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "TableManagerCustomProviderframeworkisComplete2E51021B", - "Arn" - ] - }, - ":*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "AmplifyTableWaiterStateMachineRoleDefaultPolicy89F3836A", - "Roles": [ - { - "Ref": "AmplifyTableWaiterStateMachineRole470BE899" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Role/DefaultPolicy/Resource" - } - }, - "AmplifyTableWaiterStateMachine060600BC": { - "Type": "AWS::StepFunctions::StateMachine", - "Properties": { - "DefinitionString": { - "Fn::Join": [ - "", - [ - "{\"StartAt\":\"framework-isComplete-task\",\"States\":{\"framework-isComplete-task\":{\"End\":true,\"Retry\":[{\"ErrorEquals\":[\"States.ALL\"],\"IntervalSeconds\":10,\"MaxAttempts\":360,\"BackoffRate\":1}],\"Type\":\"Task\",\"Resource\":\"", - { - "Fn::GetAtt": [ - "TableManagerCustomProviderframeworkisComplete2E51021B", - "Arn" - ] - }, - "\"}}}" - ] - ] - }, - "RoleArn": { - "Fn::GetAtt": [ - "AmplifyTableWaiterStateMachineRole470BE899", - "Arn" - ] - } - }, - "DependsOn": [ - "AmplifyTableWaiterStateMachineRoleDefaultPolicy89F3836A", - "AmplifyTableWaiterStateMachineRole470BE899" - ], - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/AmplifyTableManager/AmplifyTableWaiterStateMachine/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/zWNyw6CMBBFv4V9GXm4cCsmLo2BDyBDGclAaROmSEzDvxtAV+fcnMXNIDunkES4SKzbITbcQHiQeGorj3pQuEgdGEcIpTOkbi+78+kM6882D1uVwbFpEcJ9ttqzs1v7+6okr1GEvMB1g5IcilkP5AsUWlVJ4uZJk9pr5bFj2+1nv7Aq61qCXk7vLIP0AknUC3M8zdbzSFAe/ALgt1g4zwAAAA==" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/AmplifyTableManager/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId": { - "Type": "String" - } - }, - "Outputs": { - "amplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEventADA3152EArn": { - "Value": { - "Fn::GetAtt": [ - "TableManagerCustomProviderframeworkonEvent1DFC2ECC", - "Arn" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataConnectionStackNestedStackConne-7QYLP1HMNZPW.description.txt b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataConnectionStackNestedStackConne-7QYLP1HMNZPW.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataConnectionStackNestedStackConne-7QYLP1HMNZPW.outputs.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataConnectionStackNestedStackConne-7QYLP1HMNZPW.outputs.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataConnectionStackNestedStackConne-7QYLP1HMNZPW.outputs.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataConnectionStackNestedStackConne-7QYLP1HMNZPW.parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataConnectionStackNestedStackConne-7QYLP1HMNZPW.parameters.json deleted file mode 100644 index 0d44cadc9d5..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataConnectionStackNestedStackConne-7QYLP1HMNZPW.parameters.json +++ /dev/null @@ -1,30 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId", - "ParameterValue": "y6mc7kazlnbphitea3lx7uhvcm" - }, - { - "ParameterKey": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef", - "ParameterValue": "amplify-projectboards-ge-amplifyAuthunauthenticate-GHLvLgqZHYnT" - }, - { - "ParameterKey": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef", - "ParameterValue": "amplify-projectboards-ge-amplifyAuthauthenticatedU-HuWvFKttqdhF" - }, - { - "ParameterKey": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref", - "ParameterValue": "us-east-1:f8ab7c96-56f6-46d4-8346-0a5235221fba" - }, - { - "ParameterKey": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataTodoNestedStackTodoNestedStackResource853946D7Outputsamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataTodoTodoTable729B81E3TableArn", - "ParameterValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Todo-47mmg7n7zzcmnhcdcrkmgul4xe-main" - }, - { - "ParameterKey": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataTodoNestedStackTodoNestedStackResource853946D7Outputsamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataTodoTodoDataSource8A47DF9FName", - "ParameterValue": "TodoTable" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataConnectionStackNestedStackConne-7QYLP1HMNZPW.template.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataConnectionStackNestedStackConne-7QYLP1HMNZPW.template.json deleted file mode 100644 index 1fc56fdb5c5..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataConnectionStackNestedStackConne-7QYLP1HMNZPW.template.json +++ /dev/null @@ -1,440 +0,0 @@ -{ - "Resources": { - "Projecttodosauth0FunctionProjecttodosauth0FunctionAppSyncFunctionB9D5F5D1": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName" - }, - "FunctionVersion": "2018-05-29", - "Name": "Projecttodosauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/5b76230ddca90214a01050b60af72361023d26ae9f8b9f3ac2b9df9b331548ff.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/ConnectionStack/Projecttodosauth0Function/Projecttodosauth0Function.AppSyncFunction" - } - }, - "ProjectTodosDataResolverFnProjectTodosDataResolverFnAppSyncFunction6418E519": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataTodoNestedStackTodoNestedStackResource853946D7Outputsamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataTodoTodoDataSource8A47DF9FName" - }, - "FunctionVersion": "2018-05-29", - "Name": "ProjectTodosDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e91161e60738a0c871aa03b1cbde892843a99e562f5fe5d16f100a96c39191f0.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/49e7a1f2fb4c809b82bed6b0242a2a3bcfa2c5276ebd2539ff330fee36f8fe18.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/ConnectionStack/ProjectTodosDataResolverFn/ProjectTodosDataResolverFn.AppSyncFunction" - } - }, - "ProjecttodosResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "FieldName": "todos", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "Projecttodosauth0FunctionProjecttodosauth0FunctionAppSyncFunctionB9D5F5D1", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "ProjectTodosDataResolverFnProjectTodosDataResolverFnAppSyncFunction6418E519", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Project\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"todos\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataTodoNestedStackTodoNestedStackResource853946D7Outputsamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataTodoTodoTable729B81E3TableArn" - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Project" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/ConnectionStack/projectTodosResolver" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXMsQ6CMBCA4WdhLycUB1chcXSAByBnOUgBr6TXQgzh3Q06ffmXX4O+5pAluElquimd7Qv2J0mgrgloJoWbtLsULYpQELifKCmgjGaiUKKQwmWRDxvYq54fkU2wjivHvR2ixzNU1XNN4uaV/HGo36MJOFgeDsWuIxjlsmoN+Q2yZBRrUx852DdB/fcLM5uzFKcAAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/ConnectionStack/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId": { - "Type": "String" - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName": { - "Type": "String" - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataTodoNestedStackTodoNestedStackResource853946D7Outputsamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataTodoTodoDataSource8A47DF9FName": { - "Type": "String" - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataTodoNestedStackTodoNestedStackResource853946D7Outputsamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataTodoTodoTable729B81E3TableArn": { - "Type": "String" - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef": { - "Type": "String" - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef": { - "Type": "String" - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref": { - "Type": "String" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataFunctionDirectiveStackNestedSta-TY3XJQ153G9R.description.txt b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataFunctionDirectiveStackNestedSta-TY3XJQ153G9R.description.txt deleted file mode 100644 index 87d574fa42f..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataFunctionDirectiveStackNestedSta-TY3XJQ153G9R.description.txt +++ /dev/null @@ -1 +0,0 @@ -An auto-generated nested stack for the @function directive. \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataFunctionDirectiveStackNestedSta-TY3XJQ153G9R.outputs.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataFunctionDirectiveStackNestedSta-TY3XJQ153G9R.outputs.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataFunctionDirectiveStackNestedSta-TY3XJQ153G9R.outputs.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataFunctionDirectiveStackNestedSta-TY3XJQ153G9R.parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataFunctionDirectiveStackNestedSta-TY3XJQ153G9R.parameters.json deleted file mode 100644 index a7464b09c82..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataFunctionDirectiveStackNestedSta-TY3XJQ153G9R.parameters.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId", - "ParameterValue": "y6mc7kazlnbphitea3lx7uhvcm" - }, - { - "ParameterKey": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef", - "ParameterValue": "amplify-projectboards-ge-amplifyAuthunauthenticate-GHLvLgqZHYnT" - }, - { - "ParameterKey": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef", - "ParameterValue": "amplify-projectboards-ge-amplifyAuthauthenticatedU-HuWvFKttqdhF" - }, - { - "ParameterKey": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref", - "ParameterValue": "us-east-1:f8ab7c96-56f6-46d4-8346-0a5235221fba" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataFunctionDirectiveStackNestedSta-TY3XJQ153G9R.template.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataFunctionDirectiveStackNestedSta-TY3XJQ153G9R.template.json deleted file mode 100644 index 7a607686243..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataFunctionDirectiveStackNestedSta-TY3XJQ153G9R.template.json +++ /dev/null @@ -1,556 +0,0 @@ -{ - "Description": "An auto-generated nested stack for the @function directive.", - "AWSTemplateFormatVersion": "2010-09-09", - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - "NONE", - "NONE" - ] - } - ] - }, - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Resources": { - "QuotegeneratorGen2MainLambdaDataSourceServiceRole60A70A64": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/FunctionDirectiveStack/QuotegeneratorGen2MainLambdaDataSource/ServiceRole/Resource" - } - }, - "QuotegeneratorGen2MainLambdaDataSourceServiceRoleDefaultPolicy3C33C32C": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "lambda:InvokeFunction", - "Effect": "Allow", - "Resource": [ - { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator-gen2-main", - {} - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator-gen2-main" - } - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator-gen2-main", - {} - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator-gen2-main" - } - ] - }, - ":*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "QuotegeneratorGen2MainLambdaDataSourceServiceRoleDefaultPolicy3C33C32C", - "Roles": [ - { - "Ref": "QuotegeneratorGen2MainLambdaDataSourceServiceRole60A70A64" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/FunctionDirectiveStack/QuotegeneratorGen2MainLambdaDataSource/ServiceRole/DefaultPolicy/Resource" - } - }, - "QuotegeneratorGen2MainLambdaDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "LambdaConfig": { - "LambdaFunctionArn": { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator-gen2-main", - {} - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator-gen2-main" - } - ] - } - }, - "Name": "QuotegeneratorGen2MainLambdaDataSource", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "QuotegeneratorGen2MainLambdaDataSourceServiceRole60A70A64", - "Arn" - ] - }, - "Type": "AWS_LAMBDA" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/FunctionDirectiveStack/QuotegeneratorGen2MainLambdaDataSource/Resource" - } - }, - "InvokeQuotegeneratorGen2MainLambdaDataSourceInvokeQuotegeneratorGen2MainLambdaDataSourceAppSyncFunction0A6EA349": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "QuotegeneratorGen2MainLambdaDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "InvokeQuotegeneratorGen2MainLambdaDataSource", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/12d7fa5a9bafe17d661f62f256922019e128757dbffb1669c489830ec8f39bad.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a20e304512b1fde77dc16ed9d5e0ed03817afcab629ce87ef11c99877b7b1e30.vtl" - } - }, - "DependsOn": [ - "QuotegeneratorGen2MainLambdaDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/FunctionDirectiveStack/InvokeQuotegeneratorGen2MainLambdaDataSource/InvokeQuotegeneratorGen2MainLambdaDataSource.AppSyncFunction" - } - }, - "QuerygetRandomQuoteResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "FieldName": "getRandomQuote", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QueryGetRandomQuoteAuthFNQueryGetRandomQuoteAuthFNAppSyncFunction15864A6C", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "InvokeQuotegeneratorGen2MainLambdaDataSourceInvokeQuotegeneratorGen2MainLambdaDataSourceAppSyncFunction0A6EA349", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getRandomQuote\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:aws:sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n{}\n## [End] Stash resolver specific context.. **" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/387d5992f5fc03d05de27289457dcc374a84c42a889acb504aff1031047dde00.vtl" - }, - "TypeName": "Query" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/FunctionDirectiveStack/queryGetRandomQuoteResolver" - } - }, - "QueryGetRandomQuoteAuthFNQueryGetRandomQuoteAuthFNAppSyncFunction15864A6C": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName" - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryGetRandomQuoteAuthFN", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/FunctionDirectiveStack/QueryGetRandomQuoteAuthFN/QueryGetRandomQuoteAuthFN.AppSyncFunction" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOQW/CMAyFfwv31IPCYdfRaadpmtofgEziVqapg+oEhKr+d5SgHXb6/J79nlxDfdjBdoN3rawbK89nWH5II7kuoh1N00sTxHHkIAbvelo8TmeH8JXEZvOISgavV32IheW7LD8xYhfSbCnn/6u/XBOk5yHNWJqbXlrS4G80r4ZxgqUNvtwX/gbP9pHla1qN7k+oSlHhI8PoHo7JjhTzP6spZhdxYBlWI8ERXPTtVtewe4ft5qLM1Zwk8kTQvvgElyxBfQsBAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/FunctionDirectiveStack/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Parameters": { - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId": { - "Type": "String" - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef": { - "Type": "String" - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef": { - "Type": "String" - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref": { - "Type": "String" - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName": { - "Type": "String" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataProjectNestedStackProjectNested-VPNRCHNHF6BV.description.txt b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataProjectNestedStackProjectNested-VPNRCHNHF6BV.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataProjectNestedStackProjectNested-VPNRCHNHF6BV.outputs.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataProjectNestedStackProjectNested-VPNRCHNHF6BV.outputs.json deleted file mode 100644 index 4fc5404b062..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataProjectNestedStackProjectNested-VPNRCHNHF6BV.outputs.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "OutputKey": "GetAttProjectTableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Project-47mmg7n7zzcmnhcdcrkmgul4xe-main/stream/2026-03-07T02:15:48.574", - "Description": "Your DynamoDB table StreamArn.", - "ExportName": "y6mc7kazlnbphitea3lx7uhvcm:GetAtt:ProjectTable:StreamArn" - }, - { - "OutputKey": "GetAttProjectTableName", - "OutputValue": "Project-47mmg7n7zzcmnhcdcrkmgul4xe-main", - "Description": "Your DynamoDB table name.", - "ExportName": "y6mc7kazlnbphitea3lx7uhvcm:GetAtt:ProjectTable:Name" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataProjectNestedStackProjectNested-VPNRCHNHF6BV.parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataProjectNestedStackProjectNested-VPNRCHNHF6BV.parameters.json deleted file mode 100644 index 709c18ba548..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataProjectNestedStackProjectNested-VPNRCHNHF6BV.parameters.json +++ /dev/null @@ -1,46 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId", - "ParameterValue": "y6mc7kazlnbphitea3lx7uhvcm" - }, - { - "ParameterKey": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef", - "ParameterValue": "amplify-projectboards-ge-amplifyAuthunauthenticate-GHLvLgqZHYnT" - }, - { - "ParameterKey": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "true" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef", - "ParameterValue": "amplify-projectboards-ge-amplifyAuthauthenticatedU-HuWvFKttqdhF" - }, - { - "ParameterKey": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref", - "ParameterValue": "us-east-1:f8ab7c96-56f6-46d4-8346-0a5235221fba" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceBEDFC4DFOutputsamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataAmplifyTableManagerTableMa604E29D4", - "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-projectboards-ge-TableManagerCustomProvid-hLjkWJDnBrJU" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataProjectNestedStackProjectNested-VPNRCHNHF6BV.template.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataProjectNestedStackProjectNested-VPNRCHNHF6BV.template.json deleted file mode 100644 index b5f4afa1eab..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataProjectNestedStackProjectNested-VPNRCHNHF6BV.template.json +++ /dev/null @@ -1,2060 +0,0 @@ -{ - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceBEDFC4DFOutputsamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataAmplifyTableManagerTableMa604E29D4": { - "Type": "String" - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId": { - "Type": "String" - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName": { - "Type": "String" - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef": { - "Type": "String" - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef": { - "Type": "String" - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref": { - "Type": "String" - } - }, - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - "NONE", - "NONE" - ] - } - ] - }, - "ShouldUsePayPerRequestBilling": { - "Fn::Equals": [ - { - "Ref": "DynamoDBBillingMode" - }, - "PAY_PER_REQUEST" - ] - }, - "ShouldUsePointInTimeRecovery": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "true" - ] - }, - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Resources": { - "ProjectTable": { - "Type": "Custom::ImportedAmplifyDynamoDBTable", - "Properties": { - "ServiceToken": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceBEDFC4DFOutputsamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataAmplifyTableManagerTableMa604E29D4" - }, - "tableName": "Project-47mmg7n7zzcmnhcdcrkmgul4xe-main", - "attributeDefinitions": [ - { - "attributeName": "id", - "attributeType": "S" - } - ], - "keySchema": [ - { - "attributeName": "id", - "keyType": "HASH" - } - ], - "provisionedThroughput": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - { - "Ref": "AWS::NoValue" - }, - { - "ReadCapacityUnits": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "WriteCapacityUnits": { - "Ref": "DynamoDBModelTableWriteIOPS" - } - } - ] - }, - "sseSpecification": { - "sseEnabled": false - }, - "streamSpecification": { - "streamViewType": "NEW_AND_OLD_IMAGES" - }, - "deletionProtectionEnabled": true, - "allowDestructiveGraphqlSchemaUpdates": true, - "replaceTableUponGsiUpdate": false, - "isImported": true, - "pointInTimeRecoverySpecification": { - "Fn::If": [ - "ShouldUsePointInTimeRecovery", - { - "PointInTimeRecoveryEnabled": true - }, - { - "Ref": "AWS::NoValue" - } - ] - }, - "billingMode": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - "PAY_PER_REQUEST", - { - "Ref": "AWS::NoValue" - } - ] - } - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain", - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Project/ProjectTable/Default/Default" - } - }, - "ProjectIAMRole928454B5": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:DeleteItem", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:Query", - "dynamodb:UpdateItem", - "dynamodb:ConditionCheckItem", - "dynamodb:DescribeTable", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", - { - "tablename": "Project-47mmg7n7zzcmnhcdcrkmgul4xe-main" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", - { - "tablename": "Project-47mmg7n7zzcmnhcdcrkmgul4xe-main" - } - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "DynamoDBAccess" - } - ], - "RoleName": { - "Fn::Join": [ - "", - [ - "ProjectIAMRole032cf0-", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "-NONE" - ] - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Project/ProjectIAMRole/Resource" - } - }, - "ProjectDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DynamoDBConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "TableName": { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "ProjectTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - } - }, - "Name": "ProjectTable", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "ProjectIAMRole928454B5", - "Arn" - ] - }, - "Type": "AMAZON_DYNAMODB" - }, - "DependsOn": [ - "ProjectIAMRole928454B5" - ], - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Project/ProjectDataSource/Resource" - } - }, - "QuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionED686A7E": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetProjectauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/b3e5411cda152c2308dac0a81ffb999cc9c81ea2a1f51e6ce05a377bef8c4dfd.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Project/QuerygetProjectauth0Function/QuerygetProjectauth0Function.AppSyncFunction" - } - }, - "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetProjectpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Project/QuerygetProjectpostAuth0Function/QuerygetProjectpostAuth0Function.AppSyncFunction" - } - }, - "QueryGetProjectDataResolverFnQueryGetProjectDataResolverFnAppSyncFunctionD6A0F260": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ProjectDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryGetProjectDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/08f4d557693d96c1a4efba0f9dc91330e4b19772fd5477c156468843e3d9cb5e.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4c6a2d29f01c6091bd1d9afe16e5849d456c96f17c3b215938c8067399532719.vtl" - } - }, - "DependsOn": [ - "ProjectDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Project/QueryGetProjectDataResolverFn/QueryGetProjectDataResolverFn.AppSyncFunction" - } - }, - "GetProjectResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "FieldName": "getProject", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionED686A7E", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryGetProjectDataResolverFnQueryGetProjectDataResolverFnAppSyncFunctionD6A0F260", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "ProjectTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Project/queryGetProjectResolver" - } - }, - "QuerylistProjectsauth0FunctionQuerylistProjectsauth0FunctionAppSyncFunctionC4E09D6C": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerylistProjectsauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/b3e5411cda152c2308dac0a81ffb999cc9c81ea2a1f51e6ce05a377bef8c4dfd.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Project/QuerylistProjectsauth0Function/QuerylistProjectsauth0Function.AppSyncFunction" - } - }, - "QuerylistProjectspostAuth0FunctionQuerylistProjectspostAuth0FunctionAppSyncFunctionCD78842F": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerylistProjectspostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Project/QuerylistProjectspostAuth0Function/QuerylistProjectspostAuth0Function.AppSyncFunction" - } - }, - "QueryListProjectsDataResolverFnQueryListProjectsDataResolverFnAppSyncFunction0812E3B9": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ProjectDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryListProjectsDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9fcbe070ecd3023c5bf5b966fa9584757db9762eef123bad0820bd87591b2174.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/cc01911d0269d4080ea57505dc445dfc315ef7ad85d3d9d4ea1357858bff451d.vtl" - } - }, - "DependsOn": [ - "ProjectDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Project/QueryListProjectsDataResolverFn/QueryListProjectsDataResolverFn.AppSyncFunction" - } - }, - "ListProjectResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "FieldName": "listProjects", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerylistProjectsauth0FunctionQuerylistProjectsauth0FunctionAppSyncFunctionC4E09D6C", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerylistProjectspostAuth0FunctionQuerylistProjectspostAuth0FunctionAppSyncFunctionCD78842F", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryListProjectsDataResolverFnQueryListProjectsDataResolverFnAppSyncFunction0812E3B9", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listProjects\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "ProjectTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Project/queryListProjectsResolver" - } - }, - "MutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction412D09B9": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateProjectinit0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a183ddccbd956316c38ef97177b8f088ef0826f62023323f5ae6053d348ccffc.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Project/MutationcreateProjectinit0Function/MutationcreateProjectinit0Function.AppSyncFunction" - } - }, - "MutationcreateProjectauth0FunctionMutationcreateProjectauth0FunctionAppSyncFunction4FB957D8": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateProjectauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/bec8053450360bcba98bf86fd1d7222c4ab098a68d5dd9edde9c8bedb1269920.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Project/MutationcreateProjectauth0Function/MutationcreateProjectauth0Function.AppSyncFunction" - } - }, - "MutationcreateProjectpostAuth0FunctionMutationcreateProjectpostAuth0FunctionAppSyncFunctionE02C5772": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateProjectpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Project/MutationcreateProjectpostAuth0Function/MutationcreateProjectpostAuth0Function.AppSyncFunction" - } - }, - "MutationCreateProjectDataResolverFnMutationCreateProjectDataResolverFnAppSyncFunction729D2B08": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ProjectDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationCreateProjectDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/3cb178b90d1c8bc93547dc8641ba504d90fbb14ed1e69b69300519d3e30293d4.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "ProjectDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Project/MutationCreateProjectDataResolverFn/MutationCreateProjectDataResolverFn.AppSyncFunction" - } - }, - "CreateProjectResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "FieldName": "createProject", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction412D09B9", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationcreateProjectauth0FunctionMutationcreateProjectauth0FunctionAppSyncFunction4FB957D8", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationcreateProjectpostAuth0FunctionMutationcreateProjectpostAuth0FunctionAppSyncFunctionE02C5772", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationCreateProjectDataResolverFnMutationCreateProjectDataResolverFnAppSyncFunction729D2B08", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "ProjectTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Project/mutationCreateProjectResolver" - } - }, - "MutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunction20F7A53C": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateProjectinit0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/06db846fd14e6fc371f22b12b5545ba8e2dbfeda85d8c8d586c71c282166657b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Project/MutationupdateProjectinit0Function/MutationupdateProjectinit0Function.AppSyncFunction" - } - }, - "MutationupdateProjectauth0FunctionMutationupdateProjectauth0FunctionAppSyncFunctionF9C2F303": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ProjectDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateProjectauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/3b23a1864d96bd46ffb8192c8f07be60a9c7d1ea5107981da41331d305221140.vtl" - } - }, - "DependsOn": [ - "ProjectDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Project/MutationupdateProjectauth0Function/MutationupdateProjectauth0Function.AppSyncFunction" - } - }, - "MutationupdateProjectpostAuth0FunctionMutationupdateProjectpostAuth0FunctionAppSyncFunction92184EC0": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateProjectpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Project/MutationupdateProjectpostAuth0Function/MutationupdateProjectpostAuth0Function.AppSyncFunction" - } - }, - "MutationUpdateProjectDataResolverFnMutationUpdateProjectDataResolverFnAppSyncFunction9E902778": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ProjectDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationUpdateProjectDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/474bf0776ec2164a13191d1a0a9e057154931e4918fea5086f49850d02a5371b.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "ProjectDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Project/MutationUpdateProjectDataResolverFn/MutationUpdateProjectDataResolverFn.AppSyncFunction" - } - }, - "UpdateProjectResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "FieldName": "updateProject", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunction20F7A53C", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationupdateProjectauth0FunctionMutationupdateProjectauth0FunctionAppSyncFunctionF9C2F303", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationupdateProjectpostAuth0FunctionMutationupdateProjectpostAuth0FunctionAppSyncFunction92184EC0", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationUpdateProjectDataResolverFnMutationUpdateProjectDataResolverFnAppSyncFunction9E902778", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "ProjectTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Project/mutationUpdateProjectResolver" - } - }, - "MutationdeleteProjectauth0FunctionMutationdeleteProjectauth0FunctionAppSyncFunction67C3BC9D": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ProjectDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeleteProjectauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/6257bfd1ef2992bd01df135516c0df15c5ff692f426e0c71c93960be8f8c81df.vtl" - } - }, - "DependsOn": [ - "ProjectDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Project/MutationdeleteProjectauth0Function/MutationdeleteProjectauth0Function.AppSyncFunction" - } - }, - "MutationdeleteProjectpostAuth0FunctionMutationdeleteProjectpostAuth0FunctionAppSyncFunctionA59E7CB4": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeleteProjectpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Project/MutationdeleteProjectpostAuth0Function/MutationdeleteProjectpostAuth0Function.AppSyncFunction" - } - }, - "MutationDeleteProjectDataResolverFnMutationDeleteProjectDataResolverFnAppSyncFunctionC40E2160": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ProjectDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationDeleteProjectDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4f7907d1209a2c9953a0c053df402c634e359546d70c7cc5c2e8e21ea734880f.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "ProjectDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Project/MutationDeleteProjectDataResolverFn/MutationDeleteProjectDataResolverFn.AppSyncFunction" - } - }, - "DeleteProjectResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "FieldName": "deleteProject", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationdeleteProjectauth0FunctionMutationdeleteProjectauth0FunctionAppSyncFunction67C3BC9D", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationdeleteProjectpostAuth0FunctionMutationdeleteProjectpostAuth0FunctionAppSyncFunctionA59E7CB4", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationDeleteProjectDataResolverFnMutationDeleteProjectDataResolverFnAppSyncFunctionC40E2160", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "ProjectTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Project/mutationDeleteProjectResolver" - } - }, - "SubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction658E1FC9": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononCreateProjectauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/15280eef569babaeeee5f837ecf7400c728eec6ca2f4c0437bcbddfcb67fe27b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Project/SubscriptiononCreateProjectauth0Function/SubscriptiononCreateProjectauth0Function.AppSyncFunction" - } - }, - "SubscriptiononCreateProjectpostAuth0FunctionSubscriptiononCreateProjectpostAuth0FunctionAppSyncFunction7668C51E": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononCreateProjectpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Project/SubscriptiononCreateProjectpostAuth0Function/SubscriptiononCreateProjectpostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDABDBE4E": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnCreateProjectDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Project/SubscriptionOnCreateProjectDataResolverFn/SubscriptionOnCreateProjectDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononCreateProjectResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "FieldName": "onCreateProject", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction658E1FC9", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononCreateProjectpostAuth0FunctionSubscriptiononCreateProjectpostAuth0FunctionAppSyncFunction7668C51E", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDABDBE4E", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Project/subscriptionOnCreateProjectResolver" - } - }, - "SubscriptiononUpdateProjectauth0FunctionSubscriptiononUpdateProjectauth0FunctionAppSyncFunction8B215B31": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononUpdateProjectauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/15280eef569babaeeee5f837ecf7400c728eec6ca2f4c0437bcbddfcb67fe27b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Project/SubscriptiononUpdateProjectauth0Function/SubscriptiononUpdateProjectauth0Function.AppSyncFunction" - } - }, - "SubscriptiononUpdateProjectpostAuth0FunctionSubscriptiononUpdateProjectpostAuth0FunctionAppSyncFunction78FDCDB2": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononUpdateProjectpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Project/SubscriptiononUpdateProjectpostAuth0Function/SubscriptiononUpdateProjectpostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnUpdateProjectDataResolverFnSubscriptionOnUpdateProjectDataResolverFnAppSyncFunctionDD9A3318": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnUpdateProjectDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Project/SubscriptionOnUpdateProjectDataResolverFn/SubscriptionOnUpdateProjectDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononUpdateProjectResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "FieldName": "onUpdateProject", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononUpdateProjectauth0FunctionSubscriptiononUpdateProjectauth0FunctionAppSyncFunction8B215B31", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononUpdateProjectpostAuth0FunctionSubscriptiononUpdateProjectpostAuth0FunctionAppSyncFunction78FDCDB2", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnUpdateProjectDataResolverFnSubscriptionOnUpdateProjectDataResolverFnAppSyncFunctionDD9A3318", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Project/subscriptionOnUpdateProjectResolver" - } - }, - "SubscriptiononDeleteProjectauth0FunctionSubscriptiononDeleteProjectauth0FunctionAppSyncFunction733430CC": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononDeleteProjectauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/15280eef569babaeeee5f837ecf7400c728eec6ca2f4c0437bcbddfcb67fe27b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Project/SubscriptiononDeleteProjectauth0Function/SubscriptiononDeleteProjectauth0Function.AppSyncFunction" - } - }, - "SubscriptiononDeleteProjectpostAuth0FunctionSubscriptiononDeleteProjectpostAuth0FunctionAppSyncFunctionBA3AA141": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononDeleteProjectpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Project/SubscriptiononDeleteProjectpostAuth0Function/SubscriptiononDeleteProjectpostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnDeleteProjectDataResolverFnSubscriptionOnDeleteProjectDataResolverFnAppSyncFunctionFA79F0CD": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnDeleteProjectDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Project/SubscriptionOnDeleteProjectDataResolverFn/SubscriptionOnDeleteProjectDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononDeleteProjectResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "FieldName": "onDeleteProject", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononDeleteProjectauth0FunctionSubscriptiononDeleteProjectauth0FunctionAppSyncFunction733430CC", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononDeleteProjectpostAuth0FunctionSubscriptiononDeleteProjectpostAuth0FunctionAppSyncFunctionBA3AA141", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnDeleteProjectDataResolverFnSubscriptionOnDeleteProjectDataResolverFnAppSyncFunctionFA79F0CD", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Project/subscriptionOnDeleteProjectResolver" - } - }, - "ProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunction7F1893B2": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName" - }, - "FunctionVersion": "2018-05-29", - "Name": "ProjectOwnerDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/041534e5fd916595f752318f161512d7c7f83b9f2cf32d0f0be381c12253ff68.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/064303962e481067b44300212516363b99aaee539b6bafaf756fdd83ff0b60f0.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Project/ProjectOwnerDataResolverFn/ProjectOwnerDataResolverFn.AppSyncFunction" - } - }, - "ProjectownerResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "FieldName": "owner", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "ProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunction7F1893B2", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Project\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"owner\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Project" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Project/projectOwnerResolver" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOwW6DMAyGn6X34LV0h11Xqh63CXavTGJQCjgodlpViHefoFOnnX5/8if7zyF/3cF2gzfJrOuy3tcwfZAouUrRdqZo+AsjDqQUFygCO68+sClJQoqWTJFEw/CHDT9nvMl5cnfGIbgavrHu6YBCxuMAUxn6hx16mg2Oo9zZwnRc9WN9RMXqefI/nRLbpUQRuPFtirg2+v3cXynORvZnFCEVeF/CyB4OyXakS4F5cT+TjknNuq4UW8/tbDg4gou8XPMcdm+w3VzE+ywmVj8QlI/8AXh83Gc2AQAA" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Project/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Outputs": { - "GetAttProjectTableStreamArn": { - "Description": "Your DynamoDB table StreamArn.", - "Value": { - "Fn::GetAtt": [ - "ProjectTable", - "TableStreamArn" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "GetAtt:ProjectTable:StreamArn" - ] - ] - } - } - }, - "GetAttProjectTableName": { - "Description": "Your DynamoDB table name.", - "Value": "Project-47mmg7n7zzcmnhcdcrkmgul4xe-main", - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "GetAtt:ProjectTable:Name" - ] - ] - } - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataTodoNestedStackTodoNestedStackR-1XPIV0DNI6BF8.description.txt b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataTodoNestedStackTodoNestedStackR-1XPIV0DNI6BF8.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataTodoNestedStackTodoNestedStackR-1XPIV0DNI6BF8.outputs.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataTodoNestedStackTodoNestedStackR-1XPIV0DNI6BF8.outputs.json deleted file mode 100644 index cb732ac0804..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataTodoNestedStackTodoNestedStackR-1XPIV0DNI6BF8.outputs.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "OutputKey": "GetAttTodoTableName", - "OutputValue": "Todo-47mmg7n7zzcmnhcdcrkmgul4xe-main", - "Description": "Your DynamoDB table name.", - "ExportName": "y6mc7kazlnbphitea3lx7uhvcm:GetAtt:TodoTable:Name" - }, - { - "OutputKey": "amplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataTodoTodoTable729B81E3TableArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Todo-47mmg7n7zzcmnhcdcrkmgul4xe-main" - }, - { - "OutputKey": "amplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataTodoTodoDataSource8A47DF9FName", - "OutputValue": "TodoTable" - }, - { - "OutputKey": "GetAttTodoTableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Todo-47mmg7n7zzcmnhcdcrkmgul4xe-main/stream/2026-03-07T02:16:37.111", - "Description": "Your DynamoDB table StreamArn.", - "ExportName": "y6mc7kazlnbphitea3lx7uhvcm:GetAtt:TodoTable:StreamArn" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataTodoNestedStackTodoNestedStackR-1XPIV0DNI6BF8.parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataTodoNestedStackTodoNestedStackR-1XPIV0DNI6BF8.parameters.json deleted file mode 100644 index 709c18ba548..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataTodoNestedStackTodoNestedStackR-1XPIV0DNI6BF8.parameters.json +++ /dev/null @@ -1,46 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId", - "ParameterValue": "y6mc7kazlnbphitea3lx7uhvcm" - }, - { - "ParameterKey": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef", - "ParameterValue": "amplify-projectboards-ge-amplifyAuthunauthenticate-GHLvLgqZHYnT" - }, - { - "ParameterKey": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "true" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef", - "ParameterValue": "amplify-projectboards-ge-amplifyAuthauthenticatedU-HuWvFKttqdhF" - }, - { - "ParameterKey": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref", - "ParameterValue": "us-east-1:f8ab7c96-56f6-46d4-8346-0a5235221fba" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceBEDFC4DFOutputsamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataAmplifyTableManagerTableMa604E29D4", - "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:amplify-projectboards-ge-TableManagerCustomProvid-hLjkWJDnBrJU" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataTodoNestedStackTodoNestedStackR-1XPIV0DNI6BF8.template.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataTodoNestedStackTodoNestedStackR-1XPIV0DNI6BF8.template.json deleted file mode 100644 index 9bd09a62ab2..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886d-amplifyDataTodoNestedStackTodoNestedStackR-1XPIV0DNI6BF8.template.json +++ /dev/null @@ -1,2102 +0,0 @@ -{ - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceBEDFC4DFOutputsamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataAmplifyTableManagerTableMa604E29D4": { - "Type": "String" - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId": { - "Type": "String" - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName": { - "Type": "String" - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef": { - "Type": "String" - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef": { - "Type": "String" - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref": { - "Type": "String" - } - }, - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - "NONE", - "NONE" - ] - } - ] - }, - "ShouldUsePayPerRequestBilling": { - "Fn::Equals": [ - { - "Ref": "DynamoDBBillingMode" - }, - "PAY_PER_REQUEST" - ] - }, - "ShouldUsePointInTimeRecovery": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "true" - ] - }, - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Resources": { - "TodoTable": { - "Type": "Custom::ImportedAmplifyDynamoDBTable", - "Properties": { - "ServiceToken": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceBEDFC4DFOutputsamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataAmplifyTableManagerTableMa604E29D4" - }, - "tableName": "Todo-47mmg7n7zzcmnhcdcrkmgul4xe-main", - "attributeDefinitions": [ - { - "attributeName": "id", - "attributeType": "S" - }, - { - "attributeName": "projectTodosId", - "attributeType": "S" - } - ], - "keySchema": [ - { - "attributeName": "id", - "keyType": "HASH" - } - ], - "globalSecondaryIndexes": [ - { - "indexName": "gsi-Project.todos", - "keySchema": [ - { - "attributeName": "projectTodosId", - "keyType": "HASH" - } - ], - "projection": { - "projectionType": "ALL" - }, - "provisionedThroughput": { - "readCapacityUnits": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "writeCapacityUnits": { - "Ref": "DynamoDBModelTableWriteIOPS" - } - } - } - ], - "provisionedThroughput": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - { - "Ref": "AWS::NoValue" - }, - { - "ReadCapacityUnits": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "WriteCapacityUnits": { - "Ref": "DynamoDBModelTableWriteIOPS" - } - } - ] - }, - "sseSpecification": { - "sseEnabled": false - }, - "streamSpecification": { - "streamViewType": "NEW_AND_OLD_IMAGES" - }, - "deletionProtectionEnabled": true, - "allowDestructiveGraphqlSchemaUpdates": true, - "replaceTableUponGsiUpdate": false, - "isImported": true, - "pointInTimeRecoverySpecification": { - "Fn::If": [ - "ShouldUsePointInTimeRecovery", - { - "PointInTimeRecoveryEnabled": true - }, - { - "Ref": "AWS::NoValue" - } - ] - }, - "billingMode": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - "PAY_PER_REQUEST", - { - "Ref": "AWS::NoValue" - } - ] - } - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain", - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Todo/TodoTable/Default/Default" - } - }, - "TodoIAMRole2DA8E66E": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:DeleteItem", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:Query", - "dynamodb:UpdateItem", - "dynamodb:ConditionCheckItem", - "dynamodb:DescribeTable", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", - { - "tablename": "Todo-47mmg7n7zzcmnhcdcrkmgul4xe-main" - } - ] - }, - { - "Fn::Sub": [ - "arn:${AWS::Partition}:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", - { - "tablename": "Todo-47mmg7n7zzcmnhcdcrkmgul4xe-main" - } - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "DynamoDBAccess" - } - ], - "RoleName": { - "Fn::Join": [ - "", - [ - "TodoIAMRolecfd440-", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "-NONE" - ] - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Todo/TodoIAMRole/Resource" - } - }, - "TodoDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DynamoDBConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "TableName": { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "TodoTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - } - }, - "Name": "TodoTable", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "TodoIAMRole2DA8E66E", - "Arn" - ] - }, - "Type": "AMAZON_DYNAMODB" - }, - "DependsOn": [ - "TodoIAMRole2DA8E66E" - ], - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Todo/TodoDataSource/Resource" - } - }, - "QuerygetTodoauth0FunctionQuerygetTodoauth0FunctionAppSyncFunction846D8436": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetTodoauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/b3e5411cda152c2308dac0a81ffb999cc9c81ea2a1f51e6ce05a377bef8c4dfd.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Todo/QuerygetTodoauth0Function/QuerygetTodoauth0Function.AppSyncFunction" - } - }, - "QuerygetTodopostAuth0FunctionQuerygetTodopostAuth0FunctionAppSyncFunction6BE14593": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetTodopostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Todo/QuerygetTodopostAuth0Function/QuerygetTodopostAuth0Function.AppSyncFunction" - } - }, - "QueryGetTodoDataResolverFnQueryGetTodoDataResolverFnAppSyncFunctionE2B57DAD": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "TodoDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryGetTodoDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/08f4d557693d96c1a4efba0f9dc91330e4b19772fd5477c156468843e3d9cb5e.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4c6a2d29f01c6091bd1d9afe16e5849d456c96f17c3b215938c8067399532719.vtl" - } - }, - "DependsOn": [ - "TodoDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Todo/QueryGetTodoDataResolverFn/QueryGetTodoDataResolverFn.AppSyncFunction" - } - }, - "GetTodoResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "FieldName": "getTodo", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerygetTodoauth0FunctionQuerygetTodoauth0FunctionAppSyncFunction846D8436", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetTodopostAuth0FunctionQuerygetTodopostAuth0FunctionAppSyncFunction6BE14593", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryGetTodoDataResolverFnQueryGetTodoDataResolverFnAppSyncFunctionE2B57DAD", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "TodoTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Todo/queryGetTodoResolver" - } - }, - "QuerylistTodosauth0FunctionQuerylistTodosauth0FunctionAppSyncFunction7D761961": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerylistTodosauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/b3e5411cda152c2308dac0a81ffb999cc9c81ea2a1f51e6ce05a377bef8c4dfd.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Todo/QuerylistTodosauth0Function/QuerylistTodosauth0Function.AppSyncFunction" - } - }, - "QuerylistTodospostAuth0FunctionQuerylistTodospostAuth0FunctionAppSyncFunction154D8577": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerylistTodospostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Todo/QuerylistTodospostAuth0Function/QuerylistTodospostAuth0Function.AppSyncFunction" - } - }, - "QueryListTodosDataResolverFnQueryListTodosDataResolverFnAppSyncFunctionF825FE47": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "TodoDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryListTodosDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9fcbe070ecd3023c5bf5b966fa9584757db9762eef123bad0820bd87591b2174.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/cc01911d0269d4080ea57505dc445dfc315ef7ad85d3d9d4ea1357858bff451d.vtl" - } - }, - "DependsOn": [ - "TodoDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Todo/QueryListTodosDataResolverFn/QueryListTodosDataResolverFn.AppSyncFunction" - } - }, - "ListTodoResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "FieldName": "listTodos", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerylistTodosauth0FunctionQuerylistTodosauth0FunctionAppSyncFunction7D761961", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerylistTodospostAuth0FunctionQuerylistTodospostAuth0FunctionAppSyncFunction154D8577", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryListTodosDataResolverFnQueryListTodosDataResolverFnAppSyncFunctionF825FE47", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listTodos\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "TodoTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Todo/queryListTodosResolver" - } - }, - "MutationcreateTodoinit0FunctionMutationcreateTodoinit0FunctionAppSyncFunction54DE5B8B": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateTodoinit0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a183ddccbd956316c38ef97177b8f088ef0826f62023323f5ae6053d348ccffc.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Todo/MutationcreateTodoinit0Function/MutationcreateTodoinit0Function.AppSyncFunction" - } - }, - "MutationcreateTodoauth0FunctionMutationcreateTodoauth0FunctionAppSyncFunction21817E36": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateTodoauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/a4dfbec83984a61cb784845599e251c404cfca989937a3bb6eaa817305170ad4.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Todo/MutationcreateTodoauth0Function/MutationcreateTodoauth0Function.AppSyncFunction" - } - }, - "MutationcreateTodopostAuth0FunctionMutationcreateTodopostAuth0FunctionAppSyncFunctionED59EB9F": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateTodopostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Todo/MutationcreateTodopostAuth0Function/MutationcreateTodopostAuth0Function.AppSyncFunction" - } - }, - "MutationCreateTodoDataResolverFnMutationCreateTodoDataResolverFnAppSyncFunction900EC5CF": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "TodoDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationCreateTodoDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/2bf64327ca5682da4be84d0d16440204e25abc3a221195b41f2d21dfa432e5ab.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "TodoDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Todo/MutationCreateTodoDataResolverFn/MutationCreateTodoDataResolverFn.AppSyncFunction" - } - }, - "CreateTodoResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "FieldName": "createTodo", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationcreateTodoinit0FunctionMutationcreateTodoinit0FunctionAppSyncFunction54DE5B8B", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationcreateTodoauth0FunctionMutationcreateTodoauth0FunctionAppSyncFunction21817E36", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationcreateTodopostAuth0FunctionMutationcreateTodopostAuth0FunctionAppSyncFunctionED59EB9F", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationCreateTodoDataResolverFnMutationCreateTodoDataResolverFnAppSyncFunction900EC5CF", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "TodoTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Todo/mutationCreateTodoResolver" - } - }, - "MutationupdateTodoinit0FunctionMutationupdateTodoinit0FunctionAppSyncFunction1B95BB19": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateTodoinit0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/06db846fd14e6fc371f22b12b5545ba8e2dbfeda85d8c8d586c71c282166657b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Todo/MutationupdateTodoinit0Function/MutationupdateTodoinit0Function.AppSyncFunction" - } - }, - "MutationupdateTodoauth0FunctionMutationupdateTodoauth0FunctionAppSyncFunction1E4A3112": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "TodoDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateTodoauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/7ad0add370a0907cb73cb8b771eaf4dc378d85b38d864db355bd3de9ee78ce0a.vtl" - } - }, - "DependsOn": [ - "TodoDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Todo/MutationupdateTodoauth0Function/MutationupdateTodoauth0Function.AppSyncFunction" - } - }, - "MutationupdateTodopostAuth0FunctionMutationupdateTodopostAuth0FunctionAppSyncFunction50C507D7": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateTodopostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Todo/MutationupdateTodopostAuth0Function/MutationupdateTodopostAuth0Function.AppSyncFunction" - } - }, - "MutationUpdateTodoDataResolverFnMutationUpdateTodoDataResolverFnAppSyncFunctionBC238C49": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "TodoDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationUpdateTodoDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/474bf0776ec2164a13191d1a0a9e057154931e4918fea5086f49850d02a5371b.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "TodoDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Todo/MutationUpdateTodoDataResolverFn/MutationUpdateTodoDataResolverFn.AppSyncFunction" - } - }, - "UpdateTodoResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "FieldName": "updateTodo", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationupdateTodoinit0FunctionMutationupdateTodoinit0FunctionAppSyncFunction1B95BB19", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationupdateTodoauth0FunctionMutationupdateTodoauth0FunctionAppSyncFunction1E4A3112", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationupdateTodopostAuth0FunctionMutationupdateTodopostAuth0FunctionAppSyncFunction50C507D7", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationUpdateTodoDataResolverFnMutationUpdateTodoDataResolverFnAppSyncFunctionBC238C49", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "TodoTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Todo/mutationUpdateTodoResolver" - } - }, - "MutationdeleteTodoauth0FunctionMutationdeleteTodoauth0FunctionAppSyncFunctionC82C218C": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "TodoDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeleteTodoauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/1f5fed297da9c32ae3af922bf3a38ccf23b956078887d16891ec06c20c64722c.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/6257bfd1ef2992bd01df135516c0df15c5ff692f426e0c71c93960be8f8c81df.vtl" - } - }, - "DependsOn": [ - "TodoDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Todo/MutationdeleteTodoauth0Function/MutationdeleteTodoauth0Function.AppSyncFunction" - } - }, - "MutationdeleteTodopostAuth0FunctionMutationdeleteTodopostAuth0FunctionAppSyncFunction483271A2": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeleteTodopostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Todo/MutationdeleteTodopostAuth0Function/MutationdeleteTodopostAuth0Function.AppSyncFunction" - } - }, - "MutationDeleteTodoDataResolverFnMutationDeleteTodoDataResolverFnAppSyncFunction3879153F": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "TodoDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationDeleteTodoDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/4f7907d1209a2c9953a0c053df402c634e359546d70c7cc5c2e8e21ea734880f.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/f4a52b72209a9dfa197b5e7367a5c378c5bb86de6e29ddd9e48b49a3fe54b249.vtl" - } - }, - "DependsOn": [ - "TodoDataSource" - ], - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Todo/MutationDeleteTodoDataResolverFn/MutationDeleteTodoDataResolverFn.AppSyncFunction" - } - }, - "DeleteTodoResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "FieldName": "deleteTodo", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationdeleteTodoauth0FunctionMutationdeleteTodoauth0FunctionAppSyncFunctionC82C218C", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationdeleteTodopostAuth0FunctionMutationdeleteTodopostAuth0FunctionAppSyncFunction483271A2", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationDeleteTodoDataResolverFnMutationDeleteTodoDataResolverFnAppSyncFunction3879153F", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "TodoTable", - "TableArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Todo/mutationDeleteTodoResolver" - } - }, - "SubscriptiononCreateTodoauth0FunctionSubscriptiononCreateTodoauth0FunctionAppSyncFunction042EF9E1": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononCreateTodoauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/15280eef569babaeeee5f837ecf7400c728eec6ca2f4c0437bcbddfcb67fe27b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Todo/SubscriptiononCreateTodoauth0Function/SubscriptiononCreateTodoauth0Function.AppSyncFunction" - } - }, - "SubscriptiononCreateTodopostAuth0FunctionSubscriptiononCreateTodopostAuth0FunctionAppSyncFunction18E34C4E": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononCreateTodopostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Todo/SubscriptiononCreateTodopostAuth0Function/SubscriptiononCreateTodopostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnCreateTodoDataResolverFnSubscriptionOnCreateTodoDataResolverFnAppSyncFunction462A70C9": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnCreateTodoDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Todo/SubscriptionOnCreateTodoDataResolverFn/SubscriptionOnCreateTodoDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononCreateTodoResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "FieldName": "onCreateTodo", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononCreateTodoauth0FunctionSubscriptiononCreateTodoauth0FunctionAppSyncFunction042EF9E1", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononCreateTodopostAuth0FunctionSubscriptiononCreateTodopostAuth0FunctionAppSyncFunction18E34C4E", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnCreateTodoDataResolverFnSubscriptionOnCreateTodoDataResolverFnAppSyncFunction462A70C9", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Todo/subscriptionOnCreateTodoResolver" - } - }, - "SubscriptiononUpdateTodoauth0FunctionSubscriptiononUpdateTodoauth0FunctionAppSyncFunction80D0DFA3": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononUpdateTodoauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/15280eef569babaeeee5f837ecf7400c728eec6ca2f4c0437bcbddfcb67fe27b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Todo/SubscriptiononUpdateTodoauth0Function/SubscriptiononUpdateTodoauth0Function.AppSyncFunction" - } - }, - "SubscriptiononUpdateTodopostAuth0FunctionSubscriptiononUpdateTodopostAuth0FunctionAppSyncFunction04445BC7": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononUpdateTodopostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Todo/SubscriptiononUpdateTodopostAuth0Function/SubscriptiononUpdateTodopostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnUpdateTodoDataResolverFnSubscriptionOnUpdateTodoDataResolverFnAppSyncFunction523DF0E4": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnUpdateTodoDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Todo/SubscriptionOnUpdateTodoDataResolverFn/SubscriptionOnUpdateTodoDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononUpdateTodoResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "FieldName": "onUpdateTodo", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononUpdateTodoauth0FunctionSubscriptiononUpdateTodoauth0FunctionAppSyncFunction80D0DFA3", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononUpdateTodopostAuth0FunctionSubscriptiononUpdateTodopostAuth0FunctionAppSyncFunction04445BC7", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnUpdateTodoDataResolverFnSubscriptionOnUpdateTodoDataResolverFnAppSyncFunction523DF0E4", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Todo/subscriptionOnUpdateTodoResolver" - } - }, - "SubscriptiononDeleteTodoauth0FunctionSubscriptiononDeleteTodoauth0FunctionAppSyncFunctionF69F2220": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononDeleteTodoauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/15280eef569babaeeee5f837ecf7400c728eec6ca2f4c0437bcbddfcb67fe27b.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Todo/SubscriptiononDeleteTodoauth0Function/SubscriptiononDeleteTodoauth0Function.AppSyncFunction" - } - }, - "SubscriptiononDeleteTodopostAuth0FunctionSubscriptiononDeleteTodopostAuth0FunctionAppSyncFunctionE131CBE7": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononDeleteTodopostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/c1721bcd774e27c514d3454b5be4f9bdd094c0161b57ddf053d618e3b0086a77.vtl" - }, - "ResponseMappingTemplate": "$util.toJson({})" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Todo/SubscriptiononDeleteTodopostAuth0Function/SubscriptiononDeleteTodopostAuth0Function.AppSyncFunction" - } - }, - "SubscriptionOnDeleteTodoDataResolverFnSubscriptionOnDeleteTodoDataResolverFnAppSyncFunction3E641E8C": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnDeleteTodoDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/fe3c43ada4b9d681a5e2312663ef7a73386424d73b73e51f8e2e9d4b50f7c502.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e0cff47fb007f0bbf2a4e43ca256d6aa7ec109821769fd79fa7c5e83f0e7f9fc.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Todo/SubscriptionOnDeleteTodoDataResolverFn/SubscriptionOnDeleteTodoDataResolverFn.AppSyncFunction" - } - }, - "SubscriptiononDeleteTodoResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "FieldName": "onDeleteTodo", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononDeleteTodoauth0FunctionSubscriptiononDeleteTodoauth0FunctionAppSyncFunctionF69F2220", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptiononDeleteTodopostAuth0FunctionSubscriptiononDeleteTodopostAuth0FunctionAppSyncFunctionE131CBE7", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnDeleteTodoDataResolverFnSubscriptionOnDeleteTodoDataResolverFnAppSyncFunction3E641E8C", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Todo/subscriptionOnDeleteTodoResolver" - } - }, - "TodoOwnerDataResolverFnTodoOwnerDataResolverFnAppSyncFunction0C7BF45B": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "DataSourceName": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName" - }, - "FunctionVersion": "2018-05-29", - "Name": "TodoOwnerDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/041534e5fd916595f752318f161512d7c7f83b9f2cf32d0f0be381c12253ff68.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/064303962e481067b44300212516363b99aaee539b6bafaf756fdd83ff0b60f0.vtl" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Todo/TodoOwnerDataResolverFn/TodoOwnerDataResolverFn.AppSyncFunction" - } - }, - "TodoownerResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "FieldName": "owner", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "TodoOwnerDataResolverFnTodoOwnerDataResolverFnAppSyncFunction0C7BF45B", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Todo\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"owner\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Todo" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Todo/todoOwnerResolver" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WOwW6DMAyGn6X34LV0h11Xqh63CXavTGJQCjgodlpViHefoFOnnX5/8if7zyF/3cF2gzfJrOuy3tcwfZAouUrRdqZo+AsjDqQUFygCO68+sClJQoqWTJFEw/CHDT9nvMl5cnfGIbgavrHu6YBCxuMAUxn6hx16mg2Oo9zZwnRc9WN9RMXqefI/nRLbpUQRuPFtirg2+v3cXynORvZnFCEVeF/CyB4OyXakS4F5cT+TjknNuq4UW8/tbDg4gou8XPMcdm+w3VzE+ywmVj8QlI/8AXh83Gc2AQAA" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Todo/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Outputs": { - "GetAttTodoTableStreamArn": { - "Description": "Your DynamoDB table StreamArn.", - "Value": { - "Fn::GetAtt": [ - "TodoTable", - "TableStreamArn" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "GetAtt:TodoTable:StreamArn" - ] - ] - } - } - }, - "GetAttTodoTableName": { - "Description": "Your DynamoDB table name.", - "Value": "Todo-47mmg7n7zzcmnhcdcrkmgul4xe-main", - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - }, - "GetAtt:TodoTable:Name" - ] - ] - } - } - }, - "amplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataTodoTodoDataSource8A47DF9FName": { - "Value": { - "Fn::GetAtt": [ - "TodoDataSource", - "Name" - ] - } - }, - "amplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataTodoTodoTable729B81E3TableArn": { - "Value": { - "Fn::GetAtt": [ - "TodoTable", - "TableArn" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.description.txt b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.description.txt deleted file mode 100644 index 813452072ac..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.11.1","stackType":"auth-Cognito","metadata":{}} \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.outputs.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.outputs.json deleted file mode 100644 index 0225ad56c68..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.outputs.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "OutputKey": "amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef", - "OutputValue": "amplify-projectboards-ge-amplifyAuthauthenticatedU-HuWvFKttqdhF" - }, - { - "OutputKey": "amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref", - "OutputValue": "us-east-1:f8ab7c96-56f6-46d4-8346-0a5235221fba" - }, - { - "OutputKey": "amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthUserPool33BA12FBRef", - "OutputValue": "us-east-1_pXlpWF7QY" - }, - { - "OutputKey": "amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef", - "OutputValue": "amplify-projectboards-ge-amplifyAuthunauthenticate-GHLvLgqZHYnT" - }, - { - "OutputKey": "amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthUserPoolAppClient0435B83FRef", - "OutputValue": "oqgm3faeod0cr1b4v63iv4a7a" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.parameters.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.parameters.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.template.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.template.json deleted file mode 100644 index ee413b37d4b..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.template.json +++ /dev/null @@ -1,646 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.11.1\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", - "Resources": { - "amplifyAuthUserPool4BA7F805": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AccountRecoverySetting": { - "RecoveryMechanisms": [ - { - "Name": "verified_email", - "Priority": 1 - } - ] - }, - "AdminCreateUserConfig": { - "AllowAdminCreateUserOnly": false - }, - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": "Your verification code is {####}", - "EmailVerificationSubject": "Your verification code", - "MfaConfiguration": "OFF", - "Policies": { - "PasswordPolicy": { - "MinimumLength": 8, - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false, - "TemporaryPasswordValidityDays": 7 - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "SmsVerificationMessage": "The verification code to your new account is {####}", - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolTags": { - "amplify:app-id": "projectboards", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "amplify:friendly-name": "amplifyAuth", - "created-by": "amplify" - }, - "UsernameAttributes": [ - "email" - ], - "UsernameConfiguration": { - "CaseSensitive": false - }, - "VerificationMessageTemplate": { - "DefaultEmailOption": "CONFIRM_WITH_CODE", - "EmailMessage": "Your verification code is {####}", - "EmailSubject": "Your verification code", - "SmsMessage": "The verification code to your new account is {####}" - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/UserPool/Resource" - } - }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 43200, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": { - "Ref": "amplifyAuthUserPool4BA7F805" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, - "amplifyAuthUserPoolAppClient2626C6F8": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlows": [ - "code" - ], - "AllowedOAuthFlowsUserPoolClient": true, - "AllowedOAuthScopes": [ - "profile", - "phone", - "email", - "openid", - "aws.cognito.signin.user.admin" - ], - "CallbackURLs": [ - "https://example.com" - ], - "ExplicitAuthFlows": [ - "ALLOW_CUSTOM_AUTH", - "ALLOW_USER_SRP_AUTH", - "ALLOW_REFRESH_TOKEN_AUTH" - ], - "PreventUserExistenceErrors": "ENABLED", - "SupportedIdentityProviders": [ - "COGNITO" - ], - "UserPoolId": { - "Ref": "amplifyAuthUserPool4BA7F805" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/UserPoolAppClient/Resource" - } - }, - "amplifyAuthIdentityPool3FDE84CC": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": true, - "CognitoIdentityProviders": [ - { - "ClientId": { - "Ref": "amplifyAuthUserPoolAppClient2626C6F8" - }, - "ProviderName": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - { - "Ref": "amplifyAuthUserPool4BA7F805" - } - ] - ] - } - } - ], - "IdentityPoolTags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "SupportedLoginProviders": {} - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/IdentityPool" - } - }, - "amplifyAuthauthenticatedUserRoleD8DA3689": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "authenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/authenticatedUserRole/Resource" - } - }, - "amplifyAuthunauthenticatedUserRole2B524D9E": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "unauthenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/unauthenticatedUserRole/Resource" - } - }, - "amplifyAuthIdentityPoolRoleAttachment045F17C8": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - }, - "RoleMappings": { - "UserPoolWebClientRoleMapping": { - "AmbiguousRoleResolution": "AuthenticatedRole", - "IdentityProvider": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - { - "Ref": "amplifyAuthUserPool4BA7F805" - }, - ":", - { - "Ref": "amplifyAuthUserPoolAppClient2626C6F8" - } - ] - ] - }, - "Type": "Token" - } - }, - "Roles": { - "unauthenticated": { - "Fn::GetAtt": [ - "amplifyAuthunauthenticatedUserRole2B524D9E", - "Arn" - ] - }, - "authenticated": { - "Fn::GetAtt": [ - "amplifyAuthauthenticatedUserRoleD8DA3689", - "Arn" - ] - } - } - }, - "DependsOn": [ - "amplifyAuthIdentityPool3FDE84CC", - "amplifyAuthUserPoolAppClient2626C6F8" - ], - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/amplifyAuth/IdentityPoolRoleAttachment" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/02LwQrCMBBEv8V7urbBg1fpyYtIxbPEZNVt0w00q0VC/l2KVHuamTczGvSmgnJlxlhY1xWerpAOGAXdSYztlBnjJdlwZ5IA6RxxOIbgVX3jn59N7QlZltWf7B2ykLzn8zI3weNOxNhHjyxZkekhTXAaTppzVhwcQhvXL62h2kK5aiNRMTxZqEdovvoBH9Args4AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Outputs": { - "amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthUserPool33BA12FBRef": { - "Value": { - "Ref": "amplifyAuthUserPool4BA7F805" - } - }, - "amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthUserPoolAppClient0435B83FRef": { - "Value": { - "Ref": "amplifyAuthUserPoolAppClient2626C6F8" - } - }, - "amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref": { - "Value": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } - }, - "amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef": { - "Value": { - "Ref": "amplifyAuthauthenticatedUserRoleD8DA3689" - } - }, - "amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef": { - "Value": { - "Ref": "amplifyAuthunauthenticatedUserRole2B524D9E" - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-data7552DF31-101RCAD49CTBP.description.txt b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-data7552DF31-101RCAD49CTBP.description.txt deleted file mode 100644 index e0c9e600428..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-data7552DF31-101RCAD49CTBP.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.21.0","stackType":"api-AppSync","metadata":{"dataSources":"dynamodb","authorizationModes":"amazon_cognito_identity_pools,amazon_cognito_user_pools,api_key,aws_iam","customOperations":"queries"}} \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-data7552DF31-101RCAD49CTBP.outputs.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-data7552DF31-101RCAD49CTBP.outputs.json deleted file mode 100644 index 7ba5155bfe8..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-data7552DF31-101RCAD49CTBP.outputs.json +++ /dev/null @@ -1,18 +0,0 @@ -[ - { - "OutputKey": "amplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB62CA266CDestinationBucketArn", - "OutputValue": "arn:aws:s3:::amplify-projectboards-ge-amplifydataamplifycodege-wso3nho1iedo" - }, - { - "OutputKey": "amplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIDefaultApiKey8E86CD59ApiKey", - "OutputValue": "da2-fakeapikey00000000000000" - }, - { - "OutputKey": "amplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId", - "OutputValue": "y6mc7kazlnbphitea3lx7uhvcm" - }, - { - "OutputKey": "amplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BGraphQLUrl", - "OutputValue": "https://m75upxogqva27mei4bisjnh4ia.appsync-api.us-east-1.amazonaws.com/graphql" - } -] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-data7552DF31-101RCAD49CTBP.parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-data7552DF31-101RCAD49CTBP.parameters.json deleted file mode 100644 index bcdd261919e..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-data7552DF31-101RCAD49CTBP.parameters.json +++ /dev/null @@ -1,38 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef", - "ParameterValue": "amplify-projectboards-ge-amplifyAuthunauthenticate-GHLvLgqZHYnT" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "true" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef", - "ParameterValue": "amplify-projectboards-ge-amplifyAuthauthenticatedU-HuWvFKttqdhF" - }, - { - "ParameterKey": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref", - "ParameterValue": "us-east-1:f8ab7c96-56f6-46d4-8346-0a5235221fba" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthUserPool33BA12FBRef", - "ParameterValue": "us-east-1_pXlpWF7QY" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-data7552DF31-101RCAD49CTBP.template.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-data7552DF31-101RCAD49CTBP.template.json deleted file mode 100644 index 93e1f6914da..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-data7552DF31-101RCAD49CTBP.template.json +++ /dev/null @@ -1,2206 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.21.0\",\"stackType\":\"api-AppSync\",\"metadata\":{\"dataSources\":\"dynamodb\",\"authorizationModes\":\"amazon_cognito_identity_pools,amazon_cognito_user_pools,api_key,aws_iam\",\"customOperations\":\"queries\"}}", - "Resources": { - "amplifyDataGraphQLAPI42A6FA33": { - "Type": "AWS::AppSync::GraphQLApi", - "Properties": { - "AdditionalAuthenticationProviders": [ - { - "AuthenticationType": "AMAZON_COGNITO_USER_POOLS", - "UserPoolConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "UserPoolId": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthUserPool33BA12FBRef" - } - } - } - ], - "AuthenticationType": "API_KEY", - "Name": "amplifyData", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/GraphQLAPI/Resource" - } - }, - "amplifyDataGraphQLAPITransformerSchemaFF50A789": { - "Type": "AWS::AppSync::GraphQLSchema", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "DefinitionS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/7abe69f41e2c7b2f34c37ecc48c144aa1d8760334c115aa4164f3a1d924c6c4e.graphql" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/GraphQLAPI/TransformerSchema" - } - }, - "amplifyDataGraphQLAPIDefaultApiKey1C8ED374": { - "Type": "AWS::AppSync::ApiKey", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "Expires": 1773455609 - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/GraphQLAPI/DefaultApiKey" - } - }, - "amplifyDataGraphQLAPINONEDS684BF699": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "Name": "NONE_DS", - "Type": "NONE" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/GraphQLAPI/NONE_DS/Resource" - } - }, - "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/8a59a021cc6fc73036304a0e62d7011f3408ace89ab78463472c98368dd9c196.json" - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/AmplifyTableManager.NestedStack/AmplifyTableManager.NestedStackResource", - "aws:asset:path": "amplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataAmplifyTableManager4E3AB21A.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "amplifyDataProjectNestedStackProjectNestedStackResourceCF4E56E3": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "DynamoDBModelTableWriteIOPS": { - "Ref": "DynamoDBModelTableWriteIOPS" - }, - "DynamoDBBillingMode": { - "Ref": "DynamoDBBillingMode" - }, - "DynamoDBEnablePointInTimeRecovery": { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "DynamoDBEnableServerSideEncryption": { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceBEDFC4DFOutputsamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataAmplifyTableManagerTableMa604E29D4": { - "Fn::GetAtt": [ - "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833", - "Outputs.amplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEventADA3152EArn" - ] - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef" - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef" - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref" - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/699b0cb26391c4e36bcb2a156af754135f888a77b532f18143b9bd4dcaa1091a.json" - ] - ] - } - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Project.NestedStack/Project.NestedStackResource", - "aws:asset:path": "amplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataProjectF6338EEC.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "amplifyDataTodoNestedStackTodoNestedStackResource551CEA56": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "DynamoDBModelTableWriteIOPS": { - "Ref": "DynamoDBModelTableWriteIOPS" - }, - "DynamoDBBillingMode": { - "Ref": "DynamoDBBillingMode" - }, - "DynamoDBEnablePointInTimeRecovery": { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "DynamoDBEnableServerSideEncryption": { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResourceBEDFC4DFOutputsamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataAmplifyTableManagerTableMa604E29D4": { - "Fn::GetAtt": [ - "amplifyDataAmplifyTableManagerNestedStackAmplifyTableManagerNestedStackResource86290833", - "Outputs.amplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataAmplifyTableManagerTableManagerCustomProviderframeworkonEventADA3152EArn" - ] - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef" - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef" - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref" - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/26c4f2568dec8bbaf493c47dc744682ff904a4d59b3b2459f879a95e48d5b433.json" - ] - ] - } - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/Todo.NestedStack/Todo.NestedStackResource", - "aws:asset:path": "amplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataTodoCBF84B44.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "amplifyDataFunctionDirectiveStackNestedStackFunctionDirectiveStackNestedStackResource1246A302": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef" - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef" - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref" - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/6bc8a443f33460c95e5b116a52a5b73238cf669877a5faba4a8a45f636a9921d.json" - ] - ] - } - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/FunctionDirectiveStack.NestedStack/FunctionDirectiveStack.NestedStackResource", - "aws:asset:path": "amplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataFunctionDirectiveStackC97C52A6.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "amplifyDataConnectionStackNestedStackConnectionStackNestedStackResourceAB0F312B": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPINONEDS8734604AName": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataTodoNestedStackTodoNestedStackResource853946D7Outputsamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataTodoTodoDataSource8A47DF9FName": { - "Fn::GetAtt": [ - "amplifyDataTodoNestedStackTodoNestedStackResource551CEA56", - "Outputs.amplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataTodoTodoDataSource8A47DF9FName" - ] - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataTodoNestedStackTodoNestedStackResource853946D7Outputsamplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataTodoTodoTable729B81E3TableArn": { - "Fn::GetAtt": [ - "amplifyDataTodoNestedStackTodoNestedStackResource551CEA56", - "Outputs.amplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataTodoTodoTable729B81E3TableArn" - ] - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef" - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef" - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref": { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref" - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/0479178d136ab095439c7b5b4eec48c6968ff4c25caad597071dbe62fadbe779.json" - ] - ] - } - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789", - "amplifyDataTodoNestedStackTodoNestedStackResource551CEA56" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/ConnectionStack.NestedStack/ConnectionStack.NestedStackResource", - "aws:asset:path": "amplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataConnectionStack716CE181.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "amplifyDataQuoteResponseMessageDataResolverFnQuoteResponseMessageDataResolverFnAppSyncFunction7EFF678A": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "DataSourceName": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QuoteResponseMessageDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/e5ac72a83d18a0cb18ce60e30414111cc0d76e69bd8d494c413d5b55a20705f5.vtl" - } - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/QuoteResponseMessageDataResolverFn/QuoteResponseMessageDataResolverFn.AppSyncFunction" - } - }, - "QuoteResponsemessageResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "FieldName": "message", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "amplifyDataQuoteResponseMessageDataResolverFnQuoteResponseMessageDataResolverFnAppSyncFunction7EFF678A", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"QuoteResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"message\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "QuoteResponse" - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/quoteResponseMessageResolver" - } - }, - "amplifyDataQuoteResponseQuoteDataResolverFnQuoteResponseQuoteDataResolverFnAppSyncFunctionBF0C3544": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "DataSourceName": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QuoteResponseQuoteDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/3b461e850d433a4a0a8dae9667c711a5a57e615b38ffcc6597d09108fe8fffba.vtl" - } - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/QuoteResponseQuoteDataResolverFn/QuoteResponseQuoteDataResolverFn.AppSyncFunction" - } - }, - "QuoteResponsequoteResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "FieldName": "quote", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "amplifyDataQuoteResponseQuoteDataResolverFnQuoteResponseQuoteDataResolverFnAppSyncFunctionBF0C3544", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"QuoteResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"quote\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "QuoteResponse" - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/quoteResponseQuoteResolver" - } - }, - "amplifyDataQuoteResponseAuthorDataResolverFnQuoteResponseAuthorDataResolverFnAppSyncFunction5826B69D": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "DataSourceName": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QuoteResponseAuthorDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/5823531964e22e13b2baefe1694abf0d7a5e8389c373235cca9403e7fee3bd76.vtl" - } - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/QuoteResponseAuthorDataResolverFn/QuoteResponseAuthorDataResolverFn.AppSyncFunction" - } - }, - "QuoteResponseauthorResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "FieldName": "author", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "amplifyDataQuoteResponseAuthorDataResolverFnQuoteResponseAuthorDataResolverFnAppSyncFunction5826B69D", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"QuoteResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"author\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "QuoteResponse" - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/quoteResponseAuthorResolver" - } - }, - "amplifyDataQuoteResponseTimestampDataResolverFnQuoteResponseTimestampDataResolverFnAppSyncFunctionFC9EF265": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "DataSourceName": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QuoteResponseTimestampDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/9ef1ff70f2fb1662ee5d5fef0e6ca25043179817bdfc6515940c3bb3124e50fa.vtl" - } - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/QuoteResponseTimestampDataResolverFn/QuoteResponseTimestampDataResolverFn.AppSyncFunction" - } - }, - "QuoteResponsetimestampResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "FieldName": "timestamp", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "amplifyDataQuoteResponseTimestampDataResolverFnQuoteResponseTimestampDataResolverFnAppSyncFunctionFC9EF265", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"QuoteResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"timestamp\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "QuoteResponse" - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/quoteResponseTimestampResolver" - } - }, - "amplifyDataQuoteResponseTotalQuotesDataResolverFnQuoteResponseTotalQuotesDataResolverFnAppSyncFunction93F109B1": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "DataSourceName": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPINONEDS684BF699", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QuoteResponseTotalQuotesDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/830fd5a473c43e78ac02d7ec373d9543ca16c5b96b72acdde27ccd8277dec3f2.vtl" - }, - "ResponseMappingTemplateS3Location": { - "Fn::Sub": "s3://cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}/668f960eab72d9e9d3fba64454998577b3a9fe2e3d1b61ba52bc895a3bdeb6a4.vtl" - } - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/QuoteResponseTotalQuotesDataResolverFn/QuoteResponseTotalQuotesDataResolverFn.AppSyncFunction" - } - }, - "QuoteResponsetotalQuotesResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "FieldName": "totalQuotes", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "amplifyDataQuoteResponseTotalQuotesDataResolverFnQuoteResponseTotalQuotesDataResolverFnAppSyncFunction93F109B1", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"QuoteResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"totalQuotes\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"authRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"unauthRole\", \"arn:", - { - "Ref": "AWS::Partition" - }, - ":sts::", - { - "Ref": "AWS::AccountId" - }, - ":assumed-role/", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef" - }, - "/CognitoIdentityCredentials\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"", - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "QuoteResponse" - }, - "DependsOn": [ - "amplifyDataGraphQLAPITransformerSchemaFF50A789" - ], - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/quoteResponseTotalQuotesResolver" - } - }, - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA": { - "Type": "AWS::S3::Bucket", - "Properties": { - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD" - ], - "AllowedOrigins": [ - { - "Fn::Join": [ - "", - [ - "https://", - { - "Ref": "AWS::Region" - }, - ".console.aws.amazon.com/amplify" - ] - ] - } - ] - } - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyData" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "aws-cdk:cr-owned:865b4918", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/Resource" - } - }, - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucketPolicyF1C1C548": { - "Type": "AWS::S3::BucketPolicy", - "Properties": { - "Bucket": { - "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" - }, - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "s3:PutBucketPolicy", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*" - ], - "Effect": "Allow", - "Principal": { - "AWS": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - } - }, - "Resource": [ - { - "Fn::GetAtt": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/Policy/Resource" - } - }, - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucketAutoDeleteObjectsCustomResource437F26F5": { - "Type": "Custom::S3AutoDeleteObjects", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "Arn" - ] - }, - "BucketName": { - "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" - } - }, - "DependsOn": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucketPolicyF1C1C548" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsBucket/AutoDeleteObjectsCustomResource/Default" - } - }, - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentAwsCliLayerE322F905": { - "Type": "AWS::Lambda::LayerVersion", - "Properties": { - "Content": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "0cfdecad2260a3a84ad0c2d08a77e03c9d25e26c7b52f26b1e1faf97aef92f18.zip" - }, - "Description": "/opt/awscli/aws" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsDeployment/AwsCliLayer/Resource", - "aws:asset:path": "asset.0cfdecad2260a3a84ad0c2d08a77e03c9d25e26c7b52f26b1e1faf97aef92f18.zip", - "aws:asset:is-bundled": false, - "aws:asset:property": "Content" - } - }, - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB21775929": { - "Type": "Custom::CDKBucketDeployment", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBC5D8AB21", - "Arn" - ] - }, - "SourceBucketNames": [ - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - } - ], - "SourceObjectKeys": [ - "32dfdb997c964a959a5661de48004ddabb76fd570882b1292caef89600cddca4.zip" - ], - "SourceMarkers": [ - {} - ], - "DestinationBucketName": { - "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" - }, - "WaitForDistributionInvalidation": true, - "Prune": true, - "OutputObjectKeys": true, - "DestinationBucketArn": { - "Fn::GetAtt": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", - "Arn" - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/amplifyData/AmplifyCodegenAssets/AmplifyCodegenAssetsDeployment/CustomResource-1536MiB/Default" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ] - }, - "ManagedPolicyArns": [ - { - "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" - }, - "Timeout": 900, - "MemorySize": 128, - "Handler": "index.handler", - "Role": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Description": { - "Fn::Join": [ - "", - [ - "Lambda function for auto-deleting objects in ", - { - "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA" - }, - " S3 bucket." - ] - ] - } - }, - "DependsOn": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - ], - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", - "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", - "aws:asset:property": "Code" - } - }, - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/ServiceRole/Resource" - } - }, - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleDefaultPolicyFF1C635B": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "s3:GetObject*", - "s3:GetBucket*", - "s3:List*" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":s3:::", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - } - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":s3:::", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/*" - ] - ] - } - ] - }, - { - "Action": [ - "s3:GetObject*", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*", - "s3:PutObject", - "s3:PutObjectLegalHold", - "s3:PutObjectRetention", - "s3:PutObjectTagging", - "s3:PutObjectVersionTagging", - "s3:Abort*" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsBucket9CCB4ACA", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - }, - { - "Action": [ - "s3:GetObject*", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*", - "s3:PutObject", - "s3:PutObjectLegalHold", - "s3:PutObjectRetention", - "s3:PutObjectTagging", - "s3:PutObjectVersionTagging", - "s3:Abort*" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "modelIntrospectionSchemaBucketF566B665", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "modelIntrospectionSchemaBucketF566B665", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleDefaultPolicyFF1C635B", - "Roles": [ - { - "Ref": "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/ServiceRole/DefaultPolicy/Resource" - } - }, - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBC5D8AB21": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "3423a042b818e31c1e34a19d6689ab2e5f9b70fcbe9e71df66f241b20a200bd9.zip" - }, - "Environment": { - "Variables": { - "AWS_CA_BUNDLE": "/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem" - } - }, - "Handler": "index.handler", - "Layers": [ - { - "Ref": "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentAwsCliLayerE322F905" - } - ], - "MemorySize": 1536, - "Role": { - "Fn::GetAtt": [ - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2", - "Arn" - ] - }, - "Runtime": "python3.13", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 900 - }, - "DependsOn": [ - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleDefaultPolicyFF1C635B", - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBServiceRoleA41FC8C2" - ], - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/Custom::CDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiB/Resource", - "aws:asset:path": "asset.3423a042b818e31c1e34a19d6689ab2e5f9b70fcbe9e71df66f241b20a200bd9", - "aws:asset:is-bundled": false, - "aws:asset:property": "Code" - } - }, - "modelIntrospectionSchemaBucketF566B665": { - "Type": "AWS::S3::Bucket", - "Properties": { - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "aws-cdk:cr-owned:47299a3a", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/modelIntrospectionSchemaBucket/Resource" - } - }, - "modelIntrospectionSchemaBucketPolicy4DAB0D15": { - "Type": "AWS::S3::BucketPolicy", - "Properties": { - "Bucket": { - "Ref": "modelIntrospectionSchemaBucketF566B665" - }, - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:*", - "Condition": { - "Bool": { - "aws:SecureTransport": "false" - } - }, - "Effect": "Deny", - "Principal": { - "AWS": "*" - }, - "Resource": [ - { - "Fn::GetAtt": [ - "modelIntrospectionSchemaBucketF566B665", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "modelIntrospectionSchemaBucketF566B665", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - }, - { - "Action": [ - "s3:PutBucketPolicy", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*" - ], - "Effect": "Allow", - "Principal": { - "AWS": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - } - }, - "Resource": [ - { - "Fn::GetAtt": [ - "modelIntrospectionSchemaBucketF566B665", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "modelIntrospectionSchemaBucketF566B665", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/modelIntrospectionSchemaBucket/Policy/Resource" - } - }, - "modelIntrospectionSchemaBucketAutoDeleteObjectsCustomResourceFE57309F": { - "Type": "Custom::S3AutoDeleteObjects", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "Arn" - ] - }, - "BucketName": { - "Ref": "modelIntrospectionSchemaBucketF566B665" - } - }, - "DependsOn": [ - "modelIntrospectionSchemaBucketPolicy4DAB0D15" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/modelIntrospectionSchemaBucket/AutoDeleteObjectsCustomResource/Default" - } - }, - "modelIntrospectionSchemaBucketDeploymentAwsCliLayer13C432F7": { - "Type": "AWS::Lambda::LayerVersion", - "Properties": { - "Content": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "0cfdecad2260a3a84ad0c2d08a77e03c9d25e26c7b52f26b1e1faf97aef92f18.zip" - }, - "Description": "/opt/awscli/aws" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/modelIntrospectionSchemaBucketDeployment/AwsCliLayer/Resource", - "aws:asset:path": "asset.0cfdecad2260a3a84ad0c2d08a77e03c9d25e26c7b52f26b1e1faf97aef92f18.zip", - "aws:asset:is-bundled": false, - "aws:asset:property": "Content" - } - }, - "modelIntrospectionSchemaBucketDeploymentCustomResource1536MiB104B97EC": { - "Type": "Custom::CDKBucketDeployment", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "CustomCDKBucketDeployment8693BB64968944B69AAFB0CC9EB8756C1536MiBC5D8AB21", - "Arn" - ] - }, - "SourceBucketNames": [ - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - } - ], - "SourceObjectKeys": [ - "7bbe6c45e7a85c4ebb611e77444ebaadde5c178b52d94ba48f04a718491ff401.zip" - ], - "SourceMarkers": [ - {} - ], - "DestinationBucketName": { - "Ref": "modelIntrospectionSchemaBucketF566B665" - }, - "WaitForDistributionInvalidation": true, - "Prune": true, - "OutputObjectKeys": true - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/modelIntrospectionSchemaBucketDeployment/CustomResource-1536MiB/Default" - } - }, - "AMPLIFYDATAGRAPHQLENDPOINTParameter1C2CBB16": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/projectboards/gen2main-branch-886dbd2dec/AMPLIFY_DATA_GRAPHQL_ENDPOINT", - "Tags": { - "amplify:app-id": "projectboards", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "GraphQLUrl" - ] - } - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/AMPLIFY_DATA_GRAPHQL_ENDPOINTParameter/Resource" - } - }, - "AMPLIFYDATAMODELINTROSPECTIONSCHEMABUCKETNAMEParameter47BF4F44": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/projectboards/gen2main-branch-886dbd2dec/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_BUCKET_NAME", - "Tags": { - "amplify:app-id": "projectboards", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": { - "Ref": "modelIntrospectionSchemaBucketF566B665" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_BUCKET_NAMEParameter/Resource" - } - }, - "AMPLIFYDATAMODELINTROSPECTIONSCHEMAKEYParameterB6AEAE8A": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/projectboards/gen2main-branch-886dbd2dec/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_KEY", - "Tags": { - "amplify:app-id": "projectboards", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": "modelIntrospectionSchema.json" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/AMPLIFY_DATA_MODEL_INTROSPECTION_SCHEMA_KEYParameter/Resource" - } - }, - "AMPLIFYDATADEFAULTNAMEParameterE7C23CC4": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/projectboards/gen2main-branch-886dbd2dec/AMPLIFY_DATA_DEFAULT_NAME", - "Tags": { - "amplify:app-id": "projectboards", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": "amplifyData" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/AMPLIFY_DATA_DEFAULT_NAMEParameter/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/11RTW/CMAz9LdxDBt0Ou5ai7TCEGJV2RSZ1iyFNujilqqr+9yktnzv5vefIfs+JZPQ2l7MJNDxV2WmqaS+7NbLHLPWgTmKLbGunUEDDuw6qilujZPfpoDr86riiBTCKJDeD8r2KK3pgqTpgCUGIK/rCVqytwSV4SMehSW6e2UdtlCdrEmtyKmoHgYRG8KHP6HrBr7sOmNGzjEMRGVbatiUaLxe1OqFf3oTwWnajOhgdYRh4QWPZWE2qvcsj74WGcp+B7JLcrKBF94OOg6GUTKHR25tfcQMPIXpBUMpua/WQbaj3TdcdzKXsUu/IFBtwUKJHN/SvpO/FEDT1UJApQm/8m6Rmb8vbD12uNODR+E4H0ztoWGmSccOJpiHH0/x/czbOnilDF+7VC2MzlEd+OUeRnL/L2eTIRFNXG08lyu1Y/wC0BiClRgIAAA==" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthUserPool33BA12FBRef": { - "Type": "String" - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef": { - "Type": "String" - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef": { - "Type": "String" - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref": { - "Type": "String" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Outputs": { - "amplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId": { - "Value": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "ApiId" - ] - } - }, - "amplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BGraphQLUrl": { - "Value": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPI42A6FA33", - "GraphQLUrl" - ] - } - }, - "amplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB62CA266CDestinationBucketArn": { - "Value": { - "Fn::GetAtt": [ - "amplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB21775929", - "DestinationBucketArn" - ] - } - }, - "amplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIDefaultApiKey8E86CD59ApiKey": { - "Value": { - "Fn::GetAtt": [ - "amplifyDataGraphQLAPIDefaultApiKey1C8ED374", - "ApiKey" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-function1351588B-17QNGK82RXQ00.description.txt b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-function1351588B-17QNGK82RXQ00.description.txt deleted file mode 100644 index 6cad6da1b61..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-function1351588B-17QNGK82RXQ00.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.17.0","stackType":"function-Lambda","metadata":{}} \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-function1351588B-17QNGK82RXQ00.outputs.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-function1351588B-17QNGK82RXQ00.outputs.json deleted file mode 100644 index e582640c6d9..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-function1351588B-17QNGK82RXQ00.outputs.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - { - "OutputKey": "amplifyprojectboardsgen2mainbranch886dbd2decfunctionquotegeneratorgen2mainlambda63CF3D9ERef", - "OutputValue": "quotegenerator-gen2-main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-function1351588B-17QNGK82RXQ00.parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-function1351588B-17QNGK82RXQ00.parameters.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-function1351588B-17QNGK82RXQ00.parameters.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-function1351588B-17QNGK82RXQ00.template.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-function1351588B-17QNGK82RXQ00.template.json deleted file mode 100644 index 740bda6ce9f..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-function1351588B-17QNGK82RXQ00.template.json +++ /dev/null @@ -1,410 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.17.0\",\"stackType\":\"function-Lambda\",\"metadata\":{}}", - "Resources": { - "quotegeneratorgen2mainlambdaServiceRoleE63F5A39": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "quotegenerator-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/function/quotegenerator-gen2-main-lambda/ServiceRole/Resource" - } - }, - "quotegeneratorgen2mainlambda0173846D": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Architectures": [ - "x86_64" - ], - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "fd074b3886f6db127f8e75b0559d79e1102ff783c2bf96cfd44c9a5822ccf1a8.zip" - }, - "Environment": { - "Variables": { - "ENV": "gen2-main", - "REGION": "us-east-1", - "AMPLIFY_SSM_ENV_CONFIG": "{}" - } - }, - "EphemeralStorage": { - "Size": 512 - }, - "FunctionName": "quotegenerator-gen2-main", - "Handler": "index.handler", - "MemorySize": 128, - "Role": { - "Fn::GetAtt": [ - "quotegeneratorgen2mainlambdaServiceRoleE63F5A39", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "quotegenerator-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 25 - }, - "DependsOn": [ - "quotegeneratorgen2mainlambdaServiceRoleE63F5A39" - ], - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/function/quotegenerator-gen2-main-lambda/Resource", - "aws:asset:path": "asset.fd074b3886f6db127f8e75b0559d79e1102ff783c2bf96cfd44c9a5822ccf1a8", - "aws:asset:is-bundled": true, - "aws:asset:property": "Code" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/zXNOw6DQAxF0bXQG4cMKdIGpJQUsABkZgwaPkaKh1Ag9h4BSnWap/sMmscdk4hWja0b4tE3uBWsgV0VyA5Aq9bbSFPjqJbZca9YnLwXscHPAp4m3Mp5ZMhbOdxB05pUOSi+DkBTzBY7cMhIGa4a5q38GzucuypQ56Xb4TjCXm9fY/D+xCTq1fv4s0jwE2N5+QM4T7/LuwAAAA==" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/function/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Outputs": { - "amplifyprojectboardsgen2mainbranch886dbd2decfunctionquotegeneratorgen2mainlambda63CF3D9ERef": { - "Value": { - "Ref": "quotegeneratorgen2mainlambda0173846D" - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.description.txt b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.description.txt deleted file mode 100644 index 4600cb981f5..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.4.3","stackType":"storage-S3","metadata":{}} \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.outputs.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.outputs.json deleted file mode 100644 index 56efc267e87..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.outputs.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - { - "OutputKey": "amplifyprojectboardsgen2mainbranch886dbd2decstorageprojectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucket2623A05BRef", - "OutputValue": "amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.parameters.json deleted file mode 100644 index b67d4202af4..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.parameters.json +++ /dev/null @@ -1,10 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef", - "ParameterValue": "amplify-projectboards-ge-amplifyAuthunauthenticate-GHLvLgqZHYnT" - }, - { - "ParameterKey": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef", - "ParameterValue": "amplify-projectboards-ge-amplifyAuthauthenticatedU-HuWvFKttqdhF" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.template.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.template.json deleted file mode 100644 index 45f4458d9c3..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec-storage0EC3F24A-MCTM3Q2BCVCJ.template.json +++ /dev/null @@ -1,804 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.4.3\",\"stackType\":\"storage-S3\",\"metadata\":{}}", - "Resources": { - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "BucketKeyEnabled": false, - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "MaxAge": 3000 - } - ] - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "projectboards34b9a7f3c2ca489293910116c994688b02940-gen2-main" - }, - { - "Key": "aws-cdk:auto-delete-objects", - "Value": "true" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/projectboards34b9a7f3c2ca489293910116c994688b02940-gen2-main/Bucket/Resource" - } - }, - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketPolicy8CF7A616": { - "Type": "AWS::S3::BucketPolicy", - "Properties": { - "Bucket": { - "Ref": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F" - }, - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:*", - "Condition": { - "Bool": { - "aws:SecureTransport": "false" - } - }, - "Effect": "Deny", - "Principal": { - "AWS": "*" - }, - "Resource": [ - { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - }, - { - "Action": [ - "s3:PutBucketPolicy", - "s3:GetBucket*", - "s3:List*", - "s3:DeleteObject*" - ], - "Effect": "Allow", - "Principal": { - "AWS": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - } - }, - "Resource": [ - { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - }, - "/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/projectboards34b9a7f3c2ca489293910116c994688b02940-gen2-main/Bucket/Policy/Resource" - } - }, - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketAutoDeleteObjectsCustomResource1C396A89": { - "Type": "Custom::S3AutoDeleteObjects", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F", - "Arn" - ] - }, - "BucketName": { - "Ref": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F" - } - }, - "DependsOn": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketPolicy8CF7A616" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/projectboards34b9a7f3c2ca489293910116c994688b02940-gen2-main/Bucket/AutoDeleteObjectsCustomResource/Default" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ] - }, - "ManagedPolicyArns": [ - { - "Fn::Sub": "arn:${AWS::Partition}:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Role" - } - }, - "CustomS3AutoDeleteObjectsCustomResourceProviderHandler9D90184F": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6.zip" - }, - "Timeout": 900, - "MemorySize": 128, - "Handler": "index.handler", - "Role": { - "Fn::GetAtt": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Description": { - "Fn::Join": [ - "", - [ - "Lambda function for auto-deleting objects in ", - { - "Ref": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F" - }, - " S3 bucket." - ] - ] - } - }, - "DependsOn": [ - "CustomS3AutoDeleteObjectsCustomResourceProviderRole3B1BD092" - ], - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/Custom::S3AutoDeleteObjectsCustomResourceProvider/Handler", - "aws:asset:path": "asset.faa95a81ae7d7373f3e1f242268f904eb748d8d0fdd306e8a6fe515a1905a7d6", - "aws:asset:property": "Code" - } - }, - "PROJECTBOARDS34B9A7F3C2CA489293910116C994688B02940GEN2MAINBUCKETNAMEParameter612A82C7": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/projectboards/gen2main-branch-886dbd2dec/PROJECTBOARDS_34_B_9_A_7_F_3_C_2_CA_489293910116_C_994688_B_02940_GEN_2_MAIN_BUCKET_NAME", - "Tags": { - "amplify:app-id": "projectboards", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": { - "Ref": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/PROJECTBOARDS_34_B_9_A_7_F_3_C_2_CA_489293910116_C_994688_B_02940_GEN_2_MAIN_BUCKET_NAMEParameter/Resource" - } - }, - "amplifyprojectboardsgen2mainbranch886dbd2decstorageAccess3390DFFBD": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - }, - "/public/*" - ] - ] - } - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/*", - "public/" - ] - } - }, - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "amplifyprojectboardsgen2mainbranch886dbd2decstorageAccess3390DFFBD", - "Roles": [ - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/amplify-projectboards-gen2main-branch-886dbd2dec--storageAccess3/Resource" - } - }, - "amplifyprojectboardsgen2mainbranch886dbd2decstorageAccess4C92335C8": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:PutObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - }, - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - }, - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - }, - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - }, - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - }, - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - }, - "/private/*" - ] - ] - } - ] - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/*", - "public/", - "protected/*", - "protected/", - "private/*", - "private/" - ] - } - }, - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - } - }, - { - "Action": "s3:DeleteObject", - "Effect": "Allow", - "Resource": [ - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - }, - "/public/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - }, - "/protected/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F", - "Arn" - ] - }, - "/private/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "amplifyprojectboardsgen2mainbranch886dbd2decstorageAccess4C92335C8", - "Roles": [ - { - "Ref": "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/amplify-projectboards-gen2main-branch-886dbd2dec--storageAccess4/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/1WLTQ6CMBCFz8K+jIgu3Cp7Q+AAppaRjNA26QwQ03B3QyASV+97fznk5yNkiZ44NU2X9vSEeEcWbGrRplN64kfkE8TbYDoUVbzcRquUvifz2ePVz4rZQqwlkGtLHbRFwbCsfmZWpC3E/b89Z1UMLN5WyH4IBpdq57+qDH6kBsNNM6orM0otuiXXzsr5BuHNhzHP4XiBLHkzURoGJ2QRqlW/LyyDFv0AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef": { - "Type": "String" - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef": { - "Type": "String" - } - }, - "Outputs": { - "amplifyprojectboardsgen2mainbranch886dbd2decstorageprojectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucket2623A05BRef": { - "Value": { - "Ref": "projectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucketC790823F" - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec.description.txt b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec.description.txt deleted file mode 100644 index b40731368ef..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.21.0","stackType":"root","metadata":{}} \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec.outputs.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec.outputs.json deleted file mode 100644 index 5cd64dac3dc..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec.outputs.json +++ /dev/null @@ -1,138 +0,0 @@ -[ - { - "OutputKey": "webClientId", - "OutputValue": "oqgm3faeod0cr1b4v63iv4a7a" - }, - { - "OutputKey": "socialProviders", - "OutputValue": "" - }, - { - "OutputKey": "usernameAttributes", - "OutputValue": "[\"email\"]" - }, - { - "OutputKey": "bucketName", - "OutputValue": "amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv" - }, - { - "OutputKey": "signupAttributes", - "OutputValue": "[\"email\"]" - }, - { - "OutputKey": "oauthClientId", - "OutputValue": "oqgm3faeod0cr1b4v63iv4a7a" - }, - { - "OutputKey": "allowUnauthenticatedIdentities", - "OutputValue": "true" - }, - { - "OutputKey": "oauthCognitoDomain", - "OutputValue": "" - }, - { - "OutputKey": "oauthScope", - "OutputValue": "[\"profile\",\"phone\",\"email\",\"openid\",\"aws.cognito.signin.user.admin\"]" - }, - { - "OutputKey": "oauthRedirectSignOut", - "OutputValue": "" - }, - { - "OutputKey": "awsAppsyncAdditionalAuthenticationTypes", - "OutputValue": "AMAZON_COGNITO_USER_POOLS,AWS_IAM" - }, - { - "OutputKey": "mfaTypes", - "OutputValue": "[]" - }, - { - "OutputKey": "mfaConfiguration", - "OutputValue": "OFF" - }, - { - "OutputKey": "storageRegion", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "oauthResponseType", - "OutputValue": "code" - }, - { - "OutputKey": "awsAppsyncApiKey", - "OutputValue": "da2-fakeapikey00000000000000" - }, - { - "OutputKey": "awsAppsyncAuthenticationType", - "OutputValue": "API_KEY" - }, - { - "OutputKey": "oauthRedirectSignIn", - "OutputValue": "https://example.com" - }, - { - "OutputKey": "passwordPolicyMinLength", - "OutputValue": "8" - }, - { - "OutputKey": "awsAppsyncApiEndpoint", - "OutputValue": "https://m75upxogqva27mei4bisjnh4ia.appsync-api.us-east-1.amazonaws.com/graphql" - }, - { - "OutputKey": "awsAppsyncApiId", - "OutputValue": "y6mc7kazlnbphitea3lx7uhvcm" - }, - { - "OutputKey": "authRegion", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "buckets", - "OutputValue": "[\"{\\\"name\\\":\\\"projectboards34b9a7f3c2ca489293910116c994688b02940-gen2-main\\\",\\\"bucketName\\\":\\\"amplify-projectboards-ge-projectboards34b9a7f3c2c-3ojawjs7ffmv\\\",\\\"storageRegion\\\":\\\"us-east-1\\\",\\\"paths\\\":{\\\"public/*\\\":{\\\"guest\\\":[\\\"get\\\",\\\"list\\\"],\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]},\\\"protected/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]},\\\"private/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]}}}\"]" - }, - { - "OutputKey": "amplifyApiModelSchemaS3Uri", - "OutputValue": "s3://amplify-projectboards-ge-amplifydataamplifycodege-wso3nho1iedo/model-schema.graphql" - }, - { - "OutputKey": "groups", - "OutputValue": "[]" - }, - { - "OutputKey": "definedFunctions", - "OutputValue": "[\"quotegenerator-gen2-main\"]" - }, - { - "OutputKey": "passwordlessOptions", - "OutputValue": "" - }, - { - "OutputKey": "awsAppsyncRegion", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "deploymentType", - "OutputValue": "branch" - }, - { - "OutputKey": "passwordPolicyRequirements", - "OutputValue": "[]" - }, - { - "OutputKey": "region", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "userPoolId", - "OutputValue": "us-east-1_pXlpWF7QY" - }, - { - "OutputKey": "identityPoolId", - "OutputValue": "us-east-1:f8ab7c96-56f6-46d4-8346-0a5235221fba" - }, - { - "OutputKey": "verificationMechanisms", - "OutputValue": "[\"email\"]" - } -] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec.parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec.parameters.json deleted file mode 100644 index 74596fb6f32..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec.parameters.json +++ /dev/null @@ -1,7 +0,0 @@ -[ - { - "ParameterKey": "BootstrapVersion", - "ParameterValue": "/cdk-bootstrap/hnb659fds/version", - "ResolvedValue": "30" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec.template.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec.template.json deleted file mode 100644 index f8dd84d6718..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-gen2main-branch-886dbd2dec.template.json +++ /dev/null @@ -1,1149 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.21.0\",\"stackType\":\"root\",\"metadata\":{}}", - "Metadata": { - "AWS::Amplify::Platform": { - "version": "1", - "stackOutputs": [ - "deploymentType", - "region" - ] - }, - "AWS::Amplify::Auth": { - "version": "1", - "stackOutputs": [ - "userPoolId", - "webClientId", - "identityPoolId", - "authRegion", - "allowUnauthenticatedIdentities", - "signupAttributes", - "usernameAttributes", - "verificationMechanisms", - "passwordPolicyMinLength", - "passwordPolicyRequirements", - "mfaConfiguration", - "mfaTypes", - "passwordlessOptions", - "socialProviders", - "oauthCognitoDomain", - "oauthScope", - "oauthRedirectSignIn", - "oauthRedirectSignOut", - "oauthResponseType", - "oauthClientId", - "groups" - ] - }, - "AWS::Amplify::GraphQL": { - "version": "1", - "stackOutputs": [ - "awsAppsyncApiId", - "awsAppsyncApiEndpoint", - "awsAppsyncAuthenticationType", - "awsAppsyncRegion", - "amplifyApiModelSchemaS3Uri", - "awsAppsyncApiKey", - "awsAppsyncAdditionalAuthenticationTypes" - ] - }, - "AWS::Amplify::Function": { - "version": "1", - "stackOutputs": [ - "definedFunctions" - ] - }, - "AWS::Amplify::Storage": { - "version": "1", - "stackOutputs": [ - "buckets", - "storageRegion", - "bucketName" - ] - } - }, - "Outputs": { - "deploymentType": { - "Value": "branch" - }, - "region": { - "Value": { - "Ref": "AWS::Region" - } - }, - "userPoolId": { - "Value": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthUserPool33BA12FBRef" - ] - } - }, - "webClientId": { - "Value": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthUserPoolAppClient0435B83FRef" - ] - } - }, - "identityPoolId": { - "Value": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref" - ] - } - }, - "authRegion": { - "Value": { - "Ref": "AWS::Region" - } - }, - "allowUnauthenticatedIdentities": { - "Value": "true" - }, - "signupAttributes": { - "Value": "[\"email\"]" - }, - "usernameAttributes": { - "Value": "[\"email\"]" - }, - "verificationMechanisms": { - "Value": "[\"email\"]" - }, - "passwordPolicyMinLength": { - "Value": "8" - }, - "passwordPolicyRequirements": { - "Value": "[]" - }, - "mfaConfiguration": { - "Value": "OFF" - }, - "mfaTypes": { - "Value": "[]" - }, - "passwordlessOptions": { - "Value": "" - }, - "socialProviders": { - "Value": "" - }, - "oauthCognitoDomain": { - "Value": "" - }, - "oauthScope": { - "Value": "[\"profile\",\"phone\",\"email\",\"openid\",\"aws.cognito.signin.user.admin\"]" - }, - "oauthRedirectSignIn": { - "Value": "https://example.com" - }, - "oauthRedirectSignOut": { - "Value": "" - }, - "oauthResponseType": { - "Value": "code" - }, - "oauthClientId": { - "Value": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthUserPoolAppClient0435B83FRef" - ] - } - }, - "groups": { - "Value": "[]" - }, - "awsAppsyncApiId": { - "Value": { - "Fn::GetAtt": [ - "data7552DF31", - "Outputs.amplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BApiId" - ] - } - }, - "awsAppsyncApiEndpoint": { - "Value": { - "Fn::GetAtt": [ - "data7552DF31", - "Outputs.amplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIEB59D93BGraphQLUrl" - ] - } - }, - "awsAppsyncAuthenticationType": { - "Value": "API_KEY" - }, - "awsAppsyncRegion": { - "Value": { - "Ref": "AWS::Region" - } - }, - "amplifyApiModelSchemaS3Uri": { - "Value": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Fn::Select": [ - 0, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Fn::GetAtt": [ - "data7552DF31", - "Outputs.amplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataAmplifyCodegenAssetsAmplifyCodegenAssetsDeploymentCustomResource1536MiB62CA266CDestinationBucketArn" - ] - } - ] - } - ] - } - ] - } - ] - }, - "/model-schema.graphql" - ] - ] - } - }, - "awsAppsyncApiKey": { - "Value": { - "Fn::GetAtt": [ - "data7552DF31", - "Outputs.amplifyprojectboardsgen2mainbranch886dbd2decdataamplifyDataGraphQLAPIDefaultApiKey8E86CD59ApiKey" - ] - } - }, - "awsAppsyncAdditionalAuthenticationTypes": { - "Value": "AMAZON_COGNITO_USER_POOLS,AWS_IAM" - }, - "definedFunctions": { - "Value": { - "Fn::Join": [ - "", - [ - "[\"", - { - "Fn::GetAtt": [ - "function1351588B", - "Outputs.amplifyprojectboardsgen2mainbranch886dbd2decfunctionquotegeneratorgen2mainlambda63CF3D9ERef" - ] - }, - "\"]" - ] - ] - } - }, - "storageRegion": { - "Value": { - "Ref": "AWS::Region" - } - }, - "bucketName": { - "Value": { - "Fn::GetAtt": [ - "storage0EC3F24A", - "Outputs.amplifyprojectboardsgen2mainbranch886dbd2decstorageprojectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucket2623A05BRef" - ] - } - }, - "buckets": { - "Value": { - "Fn::Join": [ - "", - [ - "[\"{\\\"name\\\":\\\"projectboards34b9a7f3c2ca489293910116c994688b02940-gen2-main\\\",\\\"bucketName\\\":\\\"", - { - "Fn::GetAtt": [ - "storage0EC3F24A", - "Outputs.amplifyprojectboardsgen2mainbranch886dbd2decstorageprojectboards34b9a7f3c2ca489293910116c994688b02940gen2mainBucket2623A05BRef" - ] - }, - "\\\",\\\"storageRegion\\\":\\\"", - { - "Ref": "AWS::Region" - }, - "\\\",\\\"paths\\\":{\\\"public/*\\\":{\\\"guest\\\":[\\\"get\\\",\\\"list\\\"],\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]},\\\"protected/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]},\\\"private/*\\\":{\\\"authenticated\\\":[\\\"write\\\",\\\"get\\\",\\\"list\\\",\\\"delete\\\"]}}}\"]" - ] - ] - } - } - }, - "Resources": { - "AmplifyBranchLinkerCustomResourceLambdaServiceRole3DDCBC03": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/AmplifyBranchLinker/CustomResourceLambda/ServiceRole/Resource" - } - }, - "AmplifyBranchLinkerCustomResourceLambdaServiceRoleDefaultPolicy86099CA1": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "amplify:GetBranch", - "amplify:UpdateBranch" - ], - "Effect": "Allow", - "Resource": "arn:aws:amplify:*:*:apps/projectboards/branches/gen2-main" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "AmplifyBranchLinkerCustomResourceLambdaServiceRoleDefaultPolicy86099CA1", - "Roles": [ - { - "Ref": "AmplifyBranchLinkerCustomResourceLambdaServiceRole3DDCBC03" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/AmplifyBranchLinker/CustomResourceLambda/ServiceRole/DefaultPolicy/Resource" - } - }, - "AmplifyBranchLinkerCustomResourceLambda582AC093": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "1a757fd2e48bffd6245369585c61b0ce615ce78053da4f4387a9c069127512c0.zip" - }, - "Handler": "index.handler", - "Role": { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceLambdaServiceRole3DDCBC03", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 10 - }, - "DependsOn": [ - "AmplifyBranchLinkerCustomResourceLambdaServiceRoleDefaultPolicy86099CA1", - "AmplifyBranchLinkerCustomResourceLambdaServiceRole3DDCBC03" - ], - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/AmplifyBranchLinker/CustomResourceLambda/Resource", - "aws:asset:path": "asset.1a757fd2e48bffd6245369585c61b0ce615ce78053da4f4387a9c069127512c0", - "aws:asset:is-bundled": true, - "aws:asset:property": "Code" - } - }, - "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRole92A035EB": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/AmplifyBranchLinker/CustomResourceProvider/framework-onEvent/ServiceRole/Resource" - } - }, - "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRoleDefaultPolicy38AAE412": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "lambda:InvokeFunction", - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceLambda582AC093", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceLambda582AC093", - "Arn" - ] - }, - ":*" - ] - ] - } - ] - }, - { - "Action": "lambda:GetFunction", - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceLambda582AC093", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRoleDefaultPolicy38AAE412", - "Roles": [ - { - "Ref": "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRole92A035EB" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/AmplifyBranchLinker/CustomResourceProvider/framework-onEvent/ServiceRole/DefaultPolicy/Resource" - } - }, - "AmplifyBranchLinkerCustomResourceProviderframeworkonEvent3B23F900": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "07a90cc3efdfc34da22208dcd9d211f06f5b0e01b21e778edc7c3966b1f61d57.zip" - }, - "Description": "AWS CDK resource provider framework - onEvent (amplify-projectboards-gen2main-branch-886dbd2dec/AmplifyBranchLinker/CustomResourceProvider)", - "Environment": { - "Variables": { - "USER_ON_EVENT_FUNCTION_ARN": { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceLambda582AC093", - "Arn" - ] - } - } - }, - "Handler": "framework.onEvent", - "LoggingConfig": { - "ApplicationLogLevel": "FATAL", - "LogFormat": "JSON" - }, - "Role": { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRole92A035EB", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 900 - }, - "DependsOn": [ - "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRoleDefaultPolicy38AAE412", - "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRole92A035EB" - ], - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/AmplifyBranchLinker/CustomResourceProvider/framework-onEvent/Resource", - "aws:asset:path": "asset.07a90cc3efdfc34da22208dcd9d211f06f5b0e01b21e778edc7c3966b1f61d57", - "aws:asset:is-bundled": false, - "aws:asset:property": "Code" - } - }, - "AmplifyBranchLinkerCustomResource96E36FC1": { - "Type": "Custom::AmplifyBranchLinkerResource", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceProviderframeworkonEvent3B23F900", - "Arn" - ] - }, - "appId": "projectboards", - "branchName": "gen2-main" - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/AmplifyBranchLinker/CustomResource/Default" - } - }, - "auth179371D7": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/e895c874adc50738cb9cf8f6b1da39d9f4be2afd54fd78b2d98edc039760299b.json" - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/auth.NestedStack/auth.NestedStackResource", - "aws:asset:path": "amplifyprojectboardsgen2mainbranch886dbd2decauthAA2B37DC.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "data7552DF31": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthUserPool33BA12FBRef": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthUserPool33BA12FBRef" - ] - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef" - ] - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef" - ] - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthIdentityPool16941F52Ref" - ] - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/244ddcf8eb08df595e59ecdeefb2ba9f428a4d6b87cf33664a92993a1c94fec2.json" - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/data.NestedStack/data.NestedStackResource", - "aws:asset:path": "amplifyprojectboardsgen2mainbranch886dbd2decdata62F315CB.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "storage0EC3F24A": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthunauthenticatedUserRole5DB50FFARef" - ] - }, - "referencetoamplifyprojectboardsgen2mainbranch886dbd2decauthNestedStackauthNestedStackResource2D260C73Outputsamplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifyprojectboardsgen2mainbranch886dbd2decauthamplifyAuthauthenticatedUserRole9FF894EARef" - ] - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/8b7028cdfc9bf871fb5b978a11d6c9137eb17cd366721104aba8cd5744211001.json" - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/storage.NestedStack/storage.NestedStackResource", - "aws:asset:path": "amplifyprojectboardsgen2mainbranch886dbd2decstorage12377098.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "function1351588B": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "projectboards" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/74c03a0e27b9ace6ac13ee1db2aa337bf9017a20496fa4fa0878a3e5b6bb3214.json" - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/function.NestedStack/function.NestedStackResource", - "aws:asset:path": "amplifyprojectboardsgen2mainbranch886dbd2decfunction25C2FB3A.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/02PzWrDQAyEnyV3WU2cHHptDD22wXkAo6yVIP/slpU2oRi/e/C6LT19I4YZNCWWhx1uN/TQwrV9McgFp7OR66G6+s9kX8mAHtpMA42XlhofWu4UPzLek3cmwYPQiFMdBl5SmacwiPtezlXNoPuGVNkU3xaA7vGYXM92JGVY63Gqrv6v9VfMM+TI2egm/gYuqYWxiawhRceKpxju0nKEKjv1j5Gf+afzrhmWCdjpy70scfeK202nIkVM3mRkrFc+AUTtSG0ZAQAA" - }, - "Metadata": { - "aws:cdk:path": "amplify-projectboards-gen2main-branch-886dbd2dec/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "BootstrapVersion": { - "Type": "AWS::SSM::Parameter::Value", - "Default": "/cdk-bootstrap/hnb659fds/version", - "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]" - } - }, - "Rules": { - "CheckBootstrapVersion": { - "Assertions": [ - { - "Assert": { - "Fn::Not": [ - { - "Fn::Contains": [ - [ - "1", - "2", - "3", - "4", - "5" - ], - { - "Ref": "BootstrapVersion" - } - ] - } - ] - }, - "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI." - } - ] - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-ConnectionStack-1873TQGTKKESK.description.txt b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-ConnectionStack-1873TQGTKKESK.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-ConnectionStack-1873TQGTKKESK.outputs.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-ConnectionStack-1873TQGTKKESK.outputs.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-ConnectionStack-1873TQGTKKESK.outputs.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-ConnectionStack-1873TQGTKKESK.parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-ConnectionStack-1873TQGTKKESK.parameters.json deleted file mode 100644 index ea04f5c0a3e..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-ConnectionStack-1873TQGTKKESK.parameters.json +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", - "ParameterValue": "amplify-appsync-files/182d69537a429ad74cd4e2ced5fdadbb4cbf17fc" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", - "ParameterValue": "47mmg7n7zzcmnhcdcrkmgul4xe" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", - "ParameterValue": "amplify-projectboards-main-02940-deployment" - }, - { - "ParameterKey": "referencetotransformerrootstackTodoNestedStackTodoNestedStackResource9AC126A3OutputstransformerrootstackTodoTodoTableC67E79C2Ref", - "ParameterValue": "Todo-47mmg7n7zzcmnhcdcrkmgul4xe-main" - }, - { - "ParameterKey": "referencetotransformerrootstackTodoNestedStackTodoNestedStackResource9AC126A3OutputstransformerrootstackTodoTodoDataSourceBD713D7DName", - "ParameterValue": "TodoTable" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-ConnectionStack-1873TQGTKKESK.template.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-ConnectionStack-1873TQGTKKESK.template.json deleted file mode 100644 index 497105c9200..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-ConnectionStack-1873TQGTKKESK.template.json +++ /dev/null @@ -1,143 +0,0 @@ -{ - "Resources": { - "Projecttodosauth0FunctionProjecttodosauth0FunctionAppSyncFunctionB9D5F5D1": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "Projecttodosauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Project.todos.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "ProjectTodosDataResolverFnProjectTodosDataResolverFnAppSyncFunction6418E519": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackTodoNestedStackTodoNestedStackResource9AC126A3OutputstransformerrootstackTodoTodoDataSourceBD713D7DName" - }, - "FunctionVersion": "2018-05-29", - "Name": "ProjectTodosDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Project.todos.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Project.todos.res.vtl" - ] - ] - } - } - }, - "ProjecttodosResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "todos", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "Projecttodosauth0FunctionProjecttodosauth0FunctionAppSyncFunctionB9D5F5D1", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "ProjectTodosDataResolverFnProjectTodosDataResolverFnAppSyncFunction6418E519", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Project\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"todos\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "referencetotransformerrootstackTodoNestedStackTodoNestedStackResource9AC126A3OutputstransformerrootstackTodoTodoTableC67E79C2Ref" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88399477-86ba-4d93-aa1a-13242b53b791\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Project" - } - } - }, - "Parameters": { - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Type": "String" - }, - "referencetotransformerrootstackTodoNestedStackTodoNestedStackResource9AC126A3OutputstransformerrootstackTodoTodoDataSourceBD713D7DName": { - "Type": "String" - }, - "referencetotransformerrootstackTodoNestedStackTodoNestedStackResource9AC126A3OutputstransformerrootstackTodoTodoTableC67E79C2Ref": { - "Type": "String" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-CustomResourcesjson-1JP88RZIPXX68.description.txt b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-CustomResourcesjson-1JP88RZIPXX68.description.txt deleted file mode 100644 index 293dec5639e..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-CustomResourcesjson-1JP88RZIPXX68.description.txt +++ /dev/null @@ -1 +0,0 @@ -An auto-generated nested stack. \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-CustomResourcesjson-1JP88RZIPXX68.outputs.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-CustomResourcesjson-1JP88RZIPXX68.outputs.json deleted file mode 100644 index 5e9753d822a..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-CustomResourcesjson-1JP88RZIPXX68.outputs.json +++ /dev/null @@ -1,7 +0,0 @@ -[ - { - "OutputKey": "EmptyOutput", - "OutputValue": "", - "Description": "An empty output. You may delete this if you have at least one resource above." - } -] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-CustomResourcesjson-1JP88RZIPXX68.parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-CustomResourcesjson-1JP88RZIPXX68.parameters.json deleted file mode 100644 index 38e00a4cf1b..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-CustomResourcesjson-1JP88RZIPXX68.parameters.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "ParameterKey": "S3DeploymentBucket", - "ParameterValue": "amplify-projectboards-main-02940-deployment" - }, - { - "ParameterKey": "AppSyncApiId", - "ParameterValue": "47mmg7n7zzcmnhcdcrkmgul4xe" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "S3DeploymentRootKey", - "ParameterValue": "amplify-appsync-files/182d69537a429ad74cd4e2ced5fdadbb4cbf17fc" - }, - { - "ParameterKey": "AppSyncApiName", - "ParameterValue": "projectboards" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-CustomResourcesjson-1JP88RZIPXX68.template.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-CustomResourcesjson-1JP88RZIPXX68.template.json deleted file mode 100644 index 016991278d0..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-CustomResourcesjson-1JP88RZIPXX68.template.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "An auto-generated nested stack.", - "Metadata": {}, - "Parameters": { - "AppSyncApiId": { - "Type": "String", - "Description": "The id of the AppSync API associated with this project." - }, - "AppSyncApiName": { - "Type": "String", - "Description": "The name of the AppSync API", - "Default": "AppSyncSimpleTransform" - }, - "env": { - "Type": "String", - "Description": "The environment name. e.g. Dev, Test, or Production", - "Default": "NONE" - }, - "S3DeploymentBucket": { - "Type": "String", - "Description": "The S3 bucket containing all deployment assets for the project." - }, - "S3DeploymentRootKey": { - "Type": "String", - "Description": "An S3 key relative to the S3DeploymentBucket that points to the root\nof the deployment directory." - } - }, - "Resources": { - "EmptyResource": { - "Type": "Custom::EmptyResource", - "Condition": "AlwaysFalse" - } - }, - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - ] - }, - "AlwaysFalse": { - "Fn::Equals": [ - "true", - "false" - ] - } - }, - "Outputs": { - "EmptyOutput": { - "Description": "An empty output. You may delete this if you have at least one resource above.", - "Value": "" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-FunctionDirectiveStack-1WBIFC3L6V507.description.txt b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-FunctionDirectiveStack-1WBIFC3L6V507.description.txt deleted file mode 100644 index 87d574fa42f..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-FunctionDirectiveStack-1WBIFC3L6V507.description.txt +++ /dev/null @@ -1 +0,0 @@ -An auto-generated nested stack for the @function directive. \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-FunctionDirectiveStack-1WBIFC3L6V507.outputs.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-FunctionDirectiveStack-1WBIFC3L6V507.outputs.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-FunctionDirectiveStack-1WBIFC3L6V507.outputs.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-FunctionDirectiveStack-1WBIFC3L6V507.parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-FunctionDirectiveStack-1WBIFC3L6V507.parameters.json deleted file mode 100644 index c9158108177..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-FunctionDirectiveStack-1WBIFC3L6V507.parameters.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", - "ParameterValue": "amplify-appsync-files/182d69537a429ad74cd4e2ced5fdadbb4cbf17fc" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", - "ParameterValue": "47mmg7n7zzcmnhcdcrkmgul4xe" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", - "ParameterValue": "amplify-projectboards-main-02940-deployment" - }, - { - "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", - "ParameterValue": "main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-FunctionDirectiveStack-1WBIFC3L6V507.template.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-FunctionDirectiveStack-1WBIFC3L6V507.template.json deleted file mode 100644 index 320e15cb1be..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-FunctionDirectiveStack-1WBIFC3L6V507.template.json +++ /dev/null @@ -1,281 +0,0 @@ -{ - "Description": "An auto-generated nested stack for the @function directive.", - "AWSTemplateFormatVersion": "2010-09-09", - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - }, - "NONE" - ] - } - ] - } - }, - "Resources": { - "QuotegeneratorLambdaDataSourceServiceRole2D26810D": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - } - } - }, - "QuotegeneratorLambdaDataSourceServiceRoleDefaultPolicy1B36E7EE": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "lambda:InvokeFunction", - "Effect": "Allow", - "Resource": [ - { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator-${env}", - { - "env": { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - } - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator" - } - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator-${env}", - { - "env": { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - } - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator" - } - ] - }, - ":*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "QuotegeneratorLambdaDataSourceServiceRoleDefaultPolicy1B36E7EE", - "Roles": [ - { - "Ref": "QuotegeneratorLambdaDataSourceServiceRole2D26810D" - } - ] - } - }, - "QuotegeneratorLambdaDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "LambdaConfig": { - "LambdaFunctionArn": { - "Fn::If": [ - "HasEnvironmentParameter", - { - "Fn::Sub": [ - "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator-${env}", - { - "env": { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - } - ] - }, - { - "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator" - } - ] - } - }, - "Name": "QuotegeneratorLambdaDataSource", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "QuotegeneratorLambdaDataSourceServiceRole2D26810D", - "Arn" - ] - }, - "Type": "AWS_LAMBDA" - } - }, - "InvokeQuotegeneratorLambdaDataSourceInvokeQuotegeneratorLambdaDataSourceAppSyncFunctionE6745EF3": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "QuotegeneratorLambdaDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "InvokeQuotegeneratorLambdaDataSource", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/InvokeQuotegeneratorLambdaDataSource.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/InvokeQuotegeneratorLambdaDataSource.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "QuotegeneratorLambdaDataSource" - ] - }, - "QuerygetRandomQuoteResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "getRandomQuote", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QueryGetRandomQuoteAuthFNQueryGetRandomQuoteAuthFNAppSyncFunction15864A6C", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "InvokeQuotegeneratorLambdaDataSourceInvokeQuotegeneratorLambdaDataSourceAppSyncFunctionE6745EF3", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getRandomQuote\"))\n{}\n## [End] Stash resolver specific context.. **", - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getRandomQuote.res.vtl" - ] - ] - }, - "TypeName": "Query" - } - }, - "QueryGetRandomQuoteAuthFNQueryGetRandomQuoteAuthFNAppSyncFunction15864A6C": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryGetRandomQuoteAuthFN", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getRandomQuote.auth.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - } - }, - "Parameters": { - "referencetotransformerrootstackenv10C5A902Ref": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Type": "String" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-Project-1XF935E4VZHSZ.description.txt b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-Project-1XF935E4VZHSZ.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-Project-1XF935E4VZHSZ.outputs.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-Project-1XF935E4VZHSZ.outputs.json deleted file mode 100644 index 92029fe1ecd..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-Project-1XF935E4VZHSZ.outputs.json +++ /dev/null @@ -1,48 +0,0 @@ -[ - { - "OutputKey": "transformerrootstackProjectQuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionA68979B1FunctionId", - "OutputValue": "4frbdfgsbfeojabnwtj27bd44e" - }, - { - "OutputKey": "transformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId", - "OutputValue": "guro6zxsu5hrhkeg4xhndxijyu" - }, - { - "OutputKey": "transformerrootstackProjectSubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction5D3DF8A6FunctionId", - "OutputValue": "jge6kkwgtjblzcc2wug4gehyba" - }, - { - "OutputKey": "transformerrootstackProjectSubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDFF26C0AFunctionId", - "OutputValue": "joyjbpopjbed5fxejwluxgjyhq" - }, - { - "OutputKey": "GetAttProjectDataSourceName", - "OutputValue": "ProjectTable", - "Description": "Your model DataSource name.", - "ExportName": "47mmg7n7zzcmnhcdcrkmgul4xe:GetAtt:ProjectDataSource:Name" - }, - { - "OutputKey": "transformerrootstackProjectMutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunctionF33DB6D0FunctionId", - "OutputValue": "jg4wtrd2bnec3jqv25fpsmj2ue" - }, - { - "OutputKey": "transformerrootstackProjectMutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction63376DADFunctionId", - "OutputValue": "y6gyp2gf5fb5vpigty7xse5rbq" - }, - { - "OutputKey": "transformerrootstackProjectProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunctionC730BF38FunctionId", - "OutputValue": "qyscwhfbfrhwfdwqrcfi6lu7uu" - }, - { - "OutputKey": "GetAttProjectTableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Project-47mmg7n7zzcmnhcdcrkmgul4xe-main/stream/2026-03-07T02:15:48.574", - "Description": "Your DynamoDB table StreamArn.", - "ExportName": "47mmg7n7zzcmnhcdcrkmgul4xe:GetAtt:ProjectTable:StreamArn" - }, - { - "OutputKey": "GetAttProjectTableName", - "OutputValue": "Project-47mmg7n7zzcmnhcdcrkmgul4xe-main", - "Description": "Your DynamoDB table name.", - "ExportName": "47mmg7n7zzcmnhcdcrkmgul4xe:GetAtt:ProjectTable:Name" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-Project-1XF935E4VZHSZ.parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-Project-1XF935E4VZHSZ.parameters.json deleted file mode 100644 index 838f423ded0..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-Project-1XF935E4VZHSZ.parameters.json +++ /dev/null @@ -1,42 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", - "ParameterValue": "amplify-appsync-files/182d69537a429ad74cd4e2ced5fdadbb4cbf17fc" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "false" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", - "ParameterValue": "47mmg7n7zzcmnhcdcrkmgul4xe" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", - "ParameterValue": "amplify-projectboards-main-02940-deployment" - }, - { - "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", - "ParameterValue": "main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-Project-1XF935E4VZHSZ.template.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-Project-1XF935E4VZHSZ.template.json deleted file mode 100644 index 50de8b6b6da..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-Project-1XF935E4VZHSZ.template.json +++ /dev/null @@ -1,1536 +0,0 @@ -{ - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "referencetotransformerrootstackenv10C5A902Ref": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Type": "String" - } - }, - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - }, - "NONE" - ] - } - ] - }, - "ShouldUseServerSideEncryption": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "true" - ] - }, - "ShouldUsePayPerRequestBilling": { - "Fn::Equals": [ - { - "Ref": "DynamoDBBillingMode" - }, - "PAY_PER_REQUEST" - ] - }, - "ShouldUsePointInTimeRecovery": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "true" - ] - } - }, - "Resources": { - "ProjectTable": { - "Type": "AWS::DynamoDB::Table", - "Properties": { - "AttributeDefinitions": [ - { - "AttributeName": "id", - "AttributeType": "S" - } - ], - "BillingMode": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - "PAY_PER_REQUEST", - { - "Ref": "AWS::NoValue" - } - ] - }, - "KeySchema": [ - { - "AttributeName": "id", - "KeyType": "HASH" - } - ], - "PointInTimeRecoverySpecification": { - "Fn::If": [ - "ShouldUsePointInTimeRecovery", - { - "PointInTimeRecoveryEnabled": true - }, - { - "Ref": "AWS::NoValue" - } - ] - }, - "ProvisionedThroughput": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - { - "Ref": "AWS::NoValue" - }, - { - "ReadCapacityUnits": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "WriteCapacityUnits": { - "Ref": "DynamoDBModelTableWriteIOPS" - } - } - ] - }, - "SSESpecification": { - "SSEEnabled": { - "Fn::If": [ - "ShouldUseServerSideEncryption", - true, - false - ] - } - }, - "StreamSpecification": { - "StreamViewType": "NEW_AND_OLD_IMAGES" - }, - "TableName": { - "Fn::Join": [ - "", - [ - "Project-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete" - }, - "ProjectIAMRole928454B5": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:DeleteItem", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:Query", - "dynamodb:UpdateItem", - "dynamodb:ConditionCheckItem", - "dynamodb:DescribeTable", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", - { - "tablename": { - "Fn::Join": [ - "", - [ - "Project-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - ] - }, - { - "Fn::Sub": [ - "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", - { - "tablename": { - "Fn::Join": [ - "", - [ - "Project-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "DynamoDBAccess" - } - ], - "RoleName": { - "Fn::Join": [ - "", - [ - "ProjectIAMRole032cf0-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - }, - "ProjectIAMRoleDefaultPolicy08A73B99": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator", - "dynamodb:Query", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:ConditionCheckItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:UpdateItem", - "dynamodb:DeleteItem", - "dynamodb:DescribeTable" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "ProjectTable", - "Arn" - ] - }, - { - "Ref": "AWS::NoValue" - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "ProjectIAMRoleDefaultPolicy08A73B99", - "Roles": [ - { - "Ref": "ProjectIAMRole928454B5" - } - ] - } - }, - "ProjectDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DynamoDBConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "TableName": { - "Ref": "ProjectTable" - } - }, - "Name": "ProjectTable", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "ProjectIAMRole928454B5", - "Arn" - ] - }, - "Type": "AMAZON_DYNAMODB" - }, - "DependsOn": [ - "ProjectIAMRole928454B5" - ] - }, - "QuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionED686A7E": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetProjectauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getProject.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "QuerygetProjectpostAuth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getProject.postAuth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "QueryGetProjectDataResolverFnQueryGetProjectDataResolverFnAppSyncFunctionD6A0F260": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ProjectDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryGetProjectDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getProject.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getProject.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "ProjectDataSource" - ] - }, - "GetProjectResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "getProject", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionED686A7E", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryGetProjectDataResolverFnQueryGetProjectDataResolverFnAppSyncFunctionD6A0F260", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "ProjectTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88399477-86ba-4d93-aa1a-13242b53b791\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - } - }, - "QueryListProjectsDataResolverFnQueryListProjectsDataResolverFnAppSyncFunction0812E3B9": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ProjectDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryListProjectsDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.listProjects.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.listProjects.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "ProjectDataSource" - ] - }, - "ListProjectResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "listProjects", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionED686A7E", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QueryListProjectsDataResolverFnQueryListProjectsDataResolverFnAppSyncFunction0812E3B9", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listProjects\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "ProjectTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88399477-86ba-4d93-aa1a-13242b53b791\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - } - }, - "MutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction412D09B9": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateProjectinit0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createProject.init.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "MutationcreateProjectauth0FunctionMutationcreateProjectauth0FunctionAppSyncFunction4FB957D8": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateProjectauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createProject.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "MutationCreateProjectDataResolverFnMutationCreateProjectDataResolverFnAppSyncFunction729D2B08": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ProjectDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationCreateProjectDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createProject.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createProject.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "ProjectDataSource" - ] - }, - "CreateProjectResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "createProject", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction412D09B9", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationcreateProjectauth0FunctionMutationcreateProjectauth0FunctionAppSyncFunction4FB957D8", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationCreateProjectDataResolverFnMutationCreateProjectDataResolverFnAppSyncFunction729D2B08", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "ProjectTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88399477-86ba-4d93-aa1a-13242b53b791\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "MutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunction20F7A53C": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateProjectinit0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateProject.init.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "MutationupdateProjectauth0FunctionMutationupdateProjectauth0FunctionAppSyncFunctionF9C2F303": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ProjectDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateProjectauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateProject.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateProject.auth.1.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "ProjectDataSource" - ] - }, - "MutationUpdateProjectDataResolverFnMutationUpdateProjectDataResolverFnAppSyncFunction9E902778": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ProjectDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationUpdateProjectDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateProject.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateProject.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "ProjectDataSource" - ] - }, - "UpdateProjectResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "updateProject", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunction20F7A53C", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationupdateProjectauth0FunctionMutationupdateProjectauth0FunctionAppSyncFunctionF9C2F303", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationUpdateProjectDataResolverFnMutationUpdateProjectDataResolverFnAppSyncFunction9E902778", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "ProjectTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88399477-86ba-4d93-aa1a-13242b53b791\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "MutationdeleteProjectauth0FunctionMutationdeleteProjectauth0FunctionAppSyncFunction67C3BC9D": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ProjectDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeleteProjectauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteProject.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteProject.auth.1.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "ProjectDataSource" - ] - }, - "MutationDeleteProjectDataResolverFnMutationDeleteProjectDataResolverFnAppSyncFunctionC40E2160": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "ProjectDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationDeleteProjectDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteProject.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteProject.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "ProjectDataSource" - ] - }, - "DeleteProjectResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "deleteProject", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationdeleteProjectauth0FunctionMutationdeleteProjectauth0FunctionAppSyncFunction67C3BC9D", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "MutationDeleteProjectDataResolverFnMutationDeleteProjectDataResolverFnAppSyncFunctionC40E2160", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "ProjectTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88399477-86ba-4d93-aa1a-13242b53b791\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "SubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction658E1FC9": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptiononCreateProjectauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Subscription.onCreateProject.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "SubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDABDBE4E": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "SubscriptionOnCreateProjectDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Subscription.onCreateProject.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Subscription.onCreateProject.res.vtl" - ] - ] - } - } - }, - "SubscriptiononCreateProjectResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onCreateProject", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction658E1FC9", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDABDBE4E", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88399477-86ba-4d93-aa1a-13242b53b791\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - }, - "SubscriptiononUpdateProjectResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onUpdateProject", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction658E1FC9", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDABDBE4E", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88399477-86ba-4d93-aa1a-13242b53b791\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - }, - "SubscriptiononDeleteProjectResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onDeleteProject", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "SubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction658E1FC9", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4", - "FunctionId" - ] - }, - { - "Fn::GetAtt": [ - "SubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDABDBE4E", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88399477-86ba-4d93-aa1a-13242b53b791\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - }, - "ProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunction7F1893B2": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "ProjectOwnerDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Project.owner.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Project.owner.res.vtl" - ] - ] - } - } - }, - "ProjectownerResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "owner", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "ProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunction7F1893B2", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Project\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"owner\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88399477-86ba-4d93-aa1a-13242b53b791\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Project" - } - } - }, - "Outputs": { - "GetAttProjectTableStreamArn": { - "Description": "Your DynamoDB table StreamArn.", - "Value": { - "Fn::GetAtt": [ - "ProjectTable", - "StreamArn" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:ProjectTable:StreamArn" - ] - ] - } - } - }, - "GetAttProjectTableName": { - "Description": "Your DynamoDB table name.", - "Value": { - "Ref": "ProjectTable" - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:ProjectTable:Name" - ] - ] - } - } - }, - "GetAttProjectDataSourceName": { - "Description": "Your model DataSource name.", - "Value": { - "Fn::GetAtt": [ - "ProjectDataSource", - "Name" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:ProjectDataSource:Name" - ] - ] - } - } - }, - "transformerrootstackProjectQuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionA68979B1FunctionId": { - "Value": { - "Fn::GetAtt": [ - "QuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionED686A7E", - "FunctionId" - ] - } - }, - "transformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId": { - "Value": { - "Fn::GetAtt": [ - "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4", - "FunctionId" - ] - } - }, - "transformerrootstackProjectMutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction63376DADFunctionId": { - "Value": { - "Fn::GetAtt": [ - "MutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction412D09B9", - "FunctionId" - ] - } - }, - "transformerrootstackProjectMutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunctionF33DB6D0FunctionId": { - "Value": { - "Fn::GetAtt": [ - "MutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunction20F7A53C", - "FunctionId" - ] - } - }, - "transformerrootstackProjectSubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction5D3DF8A6FunctionId": { - "Value": { - "Fn::GetAtt": [ - "SubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction658E1FC9", - "FunctionId" - ] - } - }, - "transformerrootstackProjectSubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDFF26C0AFunctionId": { - "Value": { - "Fn::GetAtt": [ - "SubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDABDBE4E", - "FunctionId" - ] - } - }, - "transformerrootstackProjectProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunctionC730BF38FunctionId": { - "Value": { - "Fn::GetAtt": [ - "ProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunction7F1893B2", - "FunctionId" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-Todo-V68WN732JFX0.description.txt b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-Todo-V68WN732JFX0.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-Todo-V68WN732JFX0.outputs.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-Todo-V68WN732JFX0.outputs.json deleted file mode 100644 index 8a559de5234..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-Todo-V68WN732JFX0.outputs.json +++ /dev/null @@ -1,28 +0,0 @@ -[ - { - "OutputKey": "GetAttTodoTableName", - "OutputValue": "Todo-47mmg7n7zzcmnhcdcrkmgul4xe-main", - "Description": "Your DynamoDB table name.", - "ExportName": "47mmg7n7zzcmnhcdcrkmgul4xe:GetAtt:TodoTable:Name" - }, - { - "OutputKey": "GetAttTodoDataSourceName", - "OutputValue": "TodoTable", - "Description": "Your model DataSource name.", - "ExportName": "47mmg7n7zzcmnhcdcrkmgul4xe:GetAtt:TodoDataSource:Name" - }, - { - "OutputKey": "transformerrootstackTodoTodoTableC67E79C2Ref", - "OutputValue": "Todo-47mmg7n7zzcmnhcdcrkmgul4xe-main" - }, - { - "OutputKey": "GetAttTodoTableStreamArn", - "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Todo-47mmg7n7zzcmnhcdcrkmgul4xe-main/stream/2026-03-07T02:16:37.111", - "Description": "Your DynamoDB table StreamArn.", - "ExportName": "47mmg7n7zzcmnhcdcrkmgul4xe:GetAtt:TodoTable:StreamArn" - }, - { - "OutputKey": "transformerrootstackTodoTodoDataSourceBD713D7DName", - "OutputValue": "TodoTable" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-Todo-V68WN732JFX0.parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-Todo-V68WN732JFX0.parameters.json deleted file mode 100644 index 6dda4aa0f18..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-Todo-V68WN732JFX0.parameters.json +++ /dev/null @@ -1,70 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", - "ParameterValue": "amplify-appsync-files/182d69537a429ad74cd4e2ced5fdadbb4cbf17fc" - }, - { - "ParameterKey": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectMutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunctionF33DB6D0FunctionId", - "ParameterValue": "jg4wtrd2bnec3jqv25fpsmj2ue" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", - "ParameterValue": "NONE_DS" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", - "ParameterValue": "47mmg7n7zzcmnhcdcrkmgul4xe" - }, - { - "ParameterKey": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionA68979B1FunctionId", - "ParameterValue": "4frbdfgsbfeojabnwtj27bd44e" - }, - { - "ParameterKey": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDFF26C0AFunctionId", - "ParameterValue": "joyjbpopjbed5fxejwluxgjyhq" - }, - { - "ParameterKey": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectMutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction63376DADFunctionId", - "ParameterValue": "y6gyp2gf5fb5vpigty7xse5rbq" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "false" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunctionC730BF38FunctionId", - "ParameterValue": "qyscwhfbfrhwfdwqrcfi6lu7uu" - }, - { - "ParameterKey": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId", - "ParameterValue": "guro6zxsu5hrhkeg4xhndxijyu" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", - "ParameterValue": "amplify-projectboards-main-02940-deployment" - }, - { - "ParameterKey": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction5D3DF8A6FunctionId", - "ParameterValue": "jge6kkwgtjblzcc2wug4gehyba" - }, - { - "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", - "ParameterValue": "main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-Todo-V68WN732JFX0.template.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-Todo-V68WN732JFX0.template.json deleted file mode 100644 index 49dffa63729..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-Todo-V68WN732JFX0.template.json +++ /dev/null @@ -1,1262 +0,0 @@ -{ - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "referencetotransformerrootstackenv10C5A902Ref": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Type": "String" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Type": "String" - }, - "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionA68979B1FunctionId": { - "Type": "String" - }, - "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId": { - "Type": "String" - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Type": "String" - }, - "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectMutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction63376DADFunctionId": { - "Type": "String" - }, - "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectMutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunctionF33DB6D0FunctionId": { - "Type": "String" - }, - "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction5D3DF8A6FunctionId": { - "Type": "String" - }, - "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDFF26C0AFunctionId": { - "Type": "String" - }, - "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunctionC730BF38FunctionId": { - "Type": "String" - } - }, - "Conditions": { - "HasEnvironmentParameter": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - }, - "NONE" - ] - } - ] - }, - "ShouldUseServerSideEncryption": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "true" - ] - }, - "ShouldUsePayPerRequestBilling": { - "Fn::Equals": [ - { - "Ref": "DynamoDBBillingMode" - }, - "PAY_PER_REQUEST" - ] - }, - "ShouldUsePointInTimeRecovery": { - "Fn::Equals": [ - { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "true" - ] - } - }, - "Resources": { - "TodoTable": { - "Type": "AWS::DynamoDB::Table", - "Properties": { - "AttributeDefinitions": [ - { - "AttributeName": "id", - "AttributeType": "S" - }, - { - "AttributeName": "projectTodosId", - "AttributeType": "S" - } - ], - "BillingMode": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - "PAY_PER_REQUEST", - { - "Ref": "AWS::NoValue" - } - ] - }, - "GlobalSecondaryIndexes": [ - { - "IndexName": "gsi-Project.todos", - "KeySchema": [ - { - "AttributeName": "projectTodosId", - "KeyType": "HASH" - } - ], - "Projection": { - "ProjectionType": "ALL" - }, - "ProvisionedThroughput": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - { - "Ref": "AWS::NoValue" - }, - { - "ReadCapacityUnits": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "WriteCapacityUnits": { - "Ref": "DynamoDBModelTableWriteIOPS" - } - } - ] - } - } - ], - "KeySchema": [ - { - "AttributeName": "id", - "KeyType": "HASH" - } - ], - "PointInTimeRecoverySpecification": { - "Fn::If": [ - "ShouldUsePointInTimeRecovery", - { - "PointInTimeRecoveryEnabled": true - }, - { - "Ref": "AWS::NoValue" - } - ] - }, - "ProvisionedThroughput": { - "Fn::If": [ - "ShouldUsePayPerRequestBilling", - { - "Ref": "AWS::NoValue" - }, - { - "ReadCapacityUnits": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "WriteCapacityUnits": { - "Ref": "DynamoDBModelTableWriteIOPS" - } - } - ] - }, - "SSESpecification": { - "SSEEnabled": { - "Fn::If": [ - "ShouldUseServerSideEncryption", - true, - false - ] - } - }, - "StreamSpecification": { - "StreamViewType": "NEW_AND_OLD_IMAGES" - }, - "TableName": { - "Fn::Join": [ - "", - [ - "Todo-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete" - }, - "TodoIAMRole2DA8E66E": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "appsync.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Policies": [ - { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:DeleteItem", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:Query", - "dynamodb:UpdateItem", - "dynamodb:ConditionCheckItem", - "dynamodb:DescribeTable", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::Sub": [ - "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", - { - "tablename": { - "Fn::Join": [ - "", - [ - "Todo-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - ] - }, - { - "Fn::Sub": [ - "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", - { - "tablename": { - "Fn::Join": [ - "", - [ - "Todo-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "DynamoDBAccess" - } - ], - "RoleName": { - "Fn::Join": [ - "", - [ - "TodoIAMRolecfd440-", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "-", - { - "Ref": "referencetotransformerrootstackenv10C5A902Ref" - } - ] - ] - } - } - }, - "TodoIAMRoleDefaultPolicy7BBBF45B": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "dynamodb:BatchGetItem", - "dynamodb:GetRecords", - "dynamodb:GetShardIterator", - "dynamodb:Query", - "dynamodb:GetItem", - "dynamodb:Scan", - "dynamodb:ConditionCheckItem", - "dynamodb:BatchWriteItem", - "dynamodb:PutItem", - "dynamodb:UpdateItem", - "dynamodb:DeleteItem", - "dynamodb:DescribeTable" - ], - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "TodoTable", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "TodoTable", - "Arn" - ] - }, - "/index/*" - ] - ] - } - ] - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "TodoIAMRoleDefaultPolicy7BBBF45B", - "Roles": [ - { - "Ref": "TodoIAMRole2DA8E66E" - } - ] - } - }, - "TodoDataSource": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DynamoDBConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "TableName": { - "Ref": "TodoTable" - } - }, - "Name": "TodoTable", - "ServiceRoleArn": { - "Fn::GetAtt": [ - "TodoIAMRole2DA8E66E", - "Arn" - ] - }, - "Type": "AMAZON_DYNAMODB" - }, - "DependsOn": [ - "TodoIAMRole2DA8E66E" - ] - }, - "QueryGetTodoDataResolverFnQueryGetTodoDataResolverFnAppSyncFunctionE2B57DAD": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "TodoDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryGetTodoDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getTodo.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.getTodo.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "TodoDataSource" - ] - }, - "GetTodoResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "getTodo", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionA68979B1FunctionId" - }, - { - "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId" - }, - { - "Fn::GetAtt": [ - "QueryGetTodoDataResolverFnQueryGetTodoDataResolverFnAppSyncFunctionE2B57DAD", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "TodoTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88399477-86ba-4d93-aa1a-13242b53b791\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - } - }, - "QueryListTodosDataResolverFnQueryListTodosDataResolverFnAppSyncFunctionF825FE47": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "TodoDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QueryListTodosDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.listTodos.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Query.listTodos.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "TodoDataSource" - ] - }, - "ListTodoResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "listTodos", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionA68979B1FunctionId" - }, - { - "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId" - }, - { - "Fn::GetAtt": [ - "QueryListTodosDataResolverFnQueryListTodosDataResolverFnAppSyncFunctionF825FE47", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listTodos\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "TodoTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88399477-86ba-4d93-aa1a-13242b53b791\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Query" - } - }, - "MutationcreateTodoauth0FunctionMutationcreateTodoauth0FunctionAppSyncFunction21817E36": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationcreateTodoauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createTodo.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson({})" - } - }, - "MutationCreateTodoDataResolverFnMutationCreateTodoDataResolverFnAppSyncFunction900EC5CF": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "TodoDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationCreateTodoDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createTodo.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.createTodo.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "TodoDataSource" - ] - }, - "CreateTodoResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "createTodo", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectMutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction63376DADFunctionId" - }, - { - "Fn::GetAtt": [ - "MutationcreateTodoauth0FunctionMutationcreateTodoauth0FunctionAppSyncFunction21817E36", - "FunctionId" - ] - }, - { - "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId" - }, - { - "Fn::GetAtt": [ - "MutationCreateTodoDataResolverFnMutationCreateTodoDataResolverFnAppSyncFunction900EC5CF", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "TodoTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88399477-86ba-4d93-aa1a-13242b53b791\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "MutationupdateTodoauth0FunctionMutationupdateTodoauth0FunctionAppSyncFunction1E4A3112": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "TodoDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationupdateTodoauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateTodo.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateTodo.auth.1.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "TodoDataSource" - ] - }, - "MutationUpdateTodoDataResolverFnMutationUpdateTodoDataResolverFnAppSyncFunctionBC238C49": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "TodoDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationUpdateTodoDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateTodo.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.updateTodo.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "TodoDataSource" - ] - }, - "UpdateTodoResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "updateTodo", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectMutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunctionF33DB6D0FunctionId" - }, - { - "Fn::GetAtt": [ - "MutationupdateTodoauth0FunctionMutationupdateTodoauth0FunctionAppSyncFunction1E4A3112", - "FunctionId" - ] - }, - { - "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId" - }, - { - "Fn::GetAtt": [ - "MutationUpdateTodoDataResolverFnMutationUpdateTodoDataResolverFnAppSyncFunctionBC238C49", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "TodoTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88399477-86ba-4d93-aa1a-13242b53b791\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "MutationdeleteTodoauth0FunctionMutationdeleteTodoauth0FunctionAppSyncFunctionC82C218C": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "TodoDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationdeleteTodoauth0Function", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteTodo.auth.1.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteTodo.auth.1.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "TodoDataSource" - ] - }, - "MutationDeleteTodoDataResolverFnMutationDeleteTodoDataResolverFnAppSyncFunction3879153F": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "DataSourceName": { - "Fn::GetAtt": [ - "TodoDataSource", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "MutationDeleteTodoDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteTodo.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" - }, - "/", - { - "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" - }, - "/resolvers/Mutation.deleteTodo.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "TodoDataSource" - ] - }, - "DeleteTodoResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "deleteTodo", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "MutationdeleteTodoauth0FunctionMutationdeleteTodoauth0FunctionAppSyncFunctionC82C218C", - "FunctionId" - ] - }, - { - "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId" - }, - { - "Fn::GetAtt": [ - "MutationDeleteTodoDataResolverFnMutationDeleteTodoDataResolverFnAppSyncFunction3879153F", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", - { - "Ref": "TodoTable" - }, - "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88399477-86ba-4d93-aa1a-13242b53b791\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Mutation" - } - }, - "SubscriptiononCreateTodoResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onCreateTodo", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction5D3DF8A6FunctionId" - }, - { - "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId" - }, - { - "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDFF26C0AFunctionId" - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88399477-86ba-4d93-aa1a-13242b53b791\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - }, - "SubscriptiononUpdateTodoResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onUpdateTodo", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction5D3DF8A6FunctionId" - }, - { - "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId" - }, - { - "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDFF26C0AFunctionId" - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88399477-86ba-4d93-aa1a-13242b53b791\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - }, - "SubscriptiononDeleteTodoResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "onDeleteTodo", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction5D3DF8A6FunctionId" - }, - { - "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId" - }, - { - "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDFF26C0AFunctionId" - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88399477-86ba-4d93-aa1a-13242b53b791\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Subscription" - } - }, - "TodoownerResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "FieldName": "owner", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunctionC730BF38FunctionId" - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"Todo\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"owner\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88399477-86ba-4d93-aa1a-13242b53b791\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "Todo" - } - } - }, - "Outputs": { - "GetAttTodoTableStreamArn": { - "Description": "Your DynamoDB table StreamArn.", - "Value": { - "Fn::GetAtt": [ - "TodoTable", - "StreamArn" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:TodoTable:StreamArn" - ] - ] - } - } - }, - "GetAttTodoTableName": { - "Description": "Your DynamoDB table name.", - "Value": { - "Ref": "TodoTable" - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:TodoTable:Name" - ] - ] - } - } - }, - "GetAttTodoDataSourceName": { - "Description": "Your model DataSource name.", - "Value": { - "Fn::GetAtt": [ - "TodoDataSource", - "Name" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" - }, - "GetAtt:TodoDataSource:Name" - ] - ] - } - } - }, - "transformerrootstackTodoTodoDataSourceBD713D7DName": { - "Value": { - "Fn::GetAtt": [ - "TodoDataSource", - "Name" - ] - } - }, - "transformerrootstackTodoTodoTableC67E79C2Ref": { - "Value": { - "Ref": "TodoTable" - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO.description.txt b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO.description.txt deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO.outputs.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO.outputs.json deleted file mode 100644 index 2ee01273db8..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO.outputs.json +++ /dev/null @@ -1,20 +0,0 @@ -[ - { - "OutputKey": "GraphQLAPIIdOutput", - "OutputValue": "47mmg7n7zzcmnhcdcrkmgul4xe", - "Description": "Your GraphQL API ID.", - "ExportName": "amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO:GraphQLApiId" - }, - { - "OutputKey": "GraphQLAPIEndpointOutput", - "OutputValue": "https://adjkcv4xardypnioiv3g5zdds4.appsync-api.us-east-1.amazonaws.com/graphql", - "Description": "Your GraphQL API endpoint.", - "ExportName": "amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO:GraphQLApiEndpoint" - }, - { - "OutputKey": "GraphQLAPIKeyOutput", - "OutputValue": "da2-fakeapikey00000000000000", - "Description": "Your GraphQL API ID.", - "ExportName": "amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO:GraphQLApiKey" - } -] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO.parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO.parameters.json deleted file mode 100644 index 67f9b8effce..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO.parameters.json +++ /dev/null @@ -1,42 +0,0 @@ -[ - { - "ParameterKey": "DynamoDBModelTableReadIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "DynamoDBEnableServerSideEncryption", - "ParameterValue": "false" - }, - { - "ParameterKey": "DynamoDBEnablePointInTimeRecovery", - "ParameterValue": "false" - }, - { - "ParameterKey": "DynamoDBBillingMode", - "ParameterValue": "PAY_PER_REQUEST" - }, - { - "ParameterKey": "S3DeploymentBucket", - "ParameterValue": "amplify-projectboards-main-02940-deployment" - }, - { - "ParameterKey": "DynamoDBModelTableWriteIOPS", - "ParameterValue": "5" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "S3DeploymentRootKey", - "ParameterValue": "amplify-appsync-files/182d69537a429ad74cd4e2ced5fdadbb4cbf17fc" - }, - { - "ParameterKey": "AppSyncApiName", - "ParameterValue": "projectboards" - }, - { - "ParameterKey": "AuthCognitoUserPoolId", - "ParameterValue": "us-east-1_ct5s4IEz3" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO.template.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO.template.json deleted file mode 100644 index 58148aa76f6..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO.template.json +++ /dev/null @@ -1,1051 +0,0 @@ -{ - "Parameters": { - "env": { - "Type": "String", - "Default": "NONE" - }, - "AppSyncApiName": { - "Type": "String", - "Default": "AppSyncSimpleTransform" - }, - "AuthCognitoUserPoolId": { - "Type": "String" - }, - "DynamoDBModelTableReadIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of read IOPS the table should support." - }, - "DynamoDBModelTableWriteIOPS": { - "Type": "Number", - "Default": 5, - "Description": "The number of write IOPS the table should support." - }, - "DynamoDBBillingMode": { - "Type": "String", - "Default": "PAY_PER_REQUEST", - "AllowedValues": [ - "PAY_PER_REQUEST", - "PROVISIONED" - ], - "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." - }, - "DynamoDBEnablePointInTimeRecovery": { - "Type": "String", - "Default": "false", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Whether to enable Point in Time Recovery on the table." - }, - "DynamoDBEnableServerSideEncryption": { - "Type": "String", - "Default": "true", - "AllowedValues": [ - "true", - "false" - ], - "Description": "Enable server side encryption powered by KMS." - }, - "S3DeploymentBucket": { - "Type": "String", - "Description": "An S3 Bucket name where assets are deployed" - }, - "S3DeploymentRootKey": { - "Type": "String", - "Description": "An S3 key relative to the S3DeploymentBucket that points to the root of the deployment directory." - } - }, - "Resources": { - "GraphQLAPI": { - "Type": "AWS::AppSync::GraphQLApi", - "Properties": { - "AdditionalAuthenticationProviders": [ - { - "AuthenticationType": "AMAZON_COGNITO_USER_POOLS", - "UserPoolConfig": { - "AwsRegion": { - "Ref": "AWS::Region" - }, - "UserPoolId": { - "Ref": "AuthCognitoUserPoolId" - } - } - } - ], - "AuthenticationType": "API_KEY", - "Name": { - "Fn::Join": [ - "", - [ - { - "Ref": "AppSyncApiName" - }, - "-", - { - "Ref": "env" - } - ] - ] - } - } - }, - "GraphQLAPITransformerSchema3CB2AE18": { - "Type": "AWS::AppSync::GraphQLSchema", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "DefinitionS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/schema.graphql" - ] - ] - } - } - }, - "GraphQLAPIDefaultApiKey215A6DD7": { - "Type": "AWS::AppSync::ApiKey", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "Expires": 1773454954 - } - }, - "GraphQLAPINONEDS95A13CF0": { - "Type": "AWS::AppSync::DataSource", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "Name": "NONE_DS", - "Type": "NONE" - } - }, - "Project": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "DynamoDBModelTableWriteIOPS": { - "Ref": "DynamoDBModelTableWriteIOPS" - }, - "DynamoDBBillingMode": { - "Ref": "DynamoDBBillingMode" - }, - "DynamoDBEnablePointInTimeRecovery": { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "DynamoDBEnableServerSideEncryption": { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "referencetotransformerrootstackenv10C5A902Ref": { - "Ref": "env" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Ref": "S3DeploymentBucket" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Ref": "S3DeploymentRootKey" - } - }, - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/stacks/Project.json" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "Todo": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "DynamoDBModelTableReadIOPS": { - "Ref": "DynamoDBModelTableReadIOPS" - }, - "DynamoDBModelTableWriteIOPS": { - "Ref": "DynamoDBModelTableWriteIOPS" - }, - "DynamoDBBillingMode": { - "Ref": "DynamoDBBillingMode" - }, - "DynamoDBEnablePointInTimeRecovery": { - "Ref": "DynamoDBEnablePointInTimeRecovery" - }, - "DynamoDBEnableServerSideEncryption": { - "Ref": "DynamoDBEnableServerSideEncryption" - }, - "referencetotransformerrootstackenv10C5A902Ref": { - "Ref": "env" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Ref": "S3DeploymentBucket" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Ref": "S3DeploymentRootKey" - }, - "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionA68979B1FunctionId": { - "Fn::GetAtt": [ - "Project", - "Outputs.transformerrootstackProjectQuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionA68979B1FunctionId" - ] - }, - "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId": { - "Fn::GetAtt": [ - "Project", - "Outputs.transformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId" - ] - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectMutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction63376DADFunctionId": { - "Fn::GetAtt": [ - "Project", - "Outputs.transformerrootstackProjectMutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction63376DADFunctionId" - ] - }, - "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectMutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunctionF33DB6D0FunctionId": { - "Fn::GetAtt": [ - "Project", - "Outputs.transformerrootstackProjectMutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunctionF33DB6D0FunctionId" - ] - }, - "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction5D3DF8A6FunctionId": { - "Fn::GetAtt": [ - "Project", - "Outputs.transformerrootstackProjectSubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction5D3DF8A6FunctionId" - ] - }, - "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDFF26C0AFunctionId": { - "Fn::GetAtt": [ - "Project", - "Outputs.transformerrootstackProjectSubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDFF26C0AFunctionId" - ] - }, - "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunctionC730BF38FunctionId": { - "Fn::GetAtt": [ - "Project", - "Outputs.transformerrootstackProjectProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunctionC730BF38FunctionId" - ] - } - }, - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/stacks/Todo.json" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "FunctionDirectiveStack": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetotransformerrootstackenv10C5A902Ref": { - "Ref": "env" - }, - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Ref": "S3DeploymentBucket" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Ref": "S3DeploymentRootKey" - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - } - }, - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/stacks/FunctionDirectiveStack.json" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "ConnectionStack": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { - "Ref": "S3DeploymentBucket" - }, - "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { - "Ref": "S3DeploymentRootKey" - }, - "referencetotransformerrootstackTodoNestedStackTodoNestedStackResource9AC126A3OutputstransformerrootstackTodoTodoDataSourceBD713D7DName": { - "Fn::GetAtt": [ - "Todo", - "Outputs.transformerrootstackTodoTodoDataSourceBD713D7DName" - ] - }, - "referencetotransformerrootstackTodoNestedStackTodoNestedStackResource9AC126A3OutputstransformerrootstackTodoTodoTableC67E79C2Ref": { - "Fn::GetAtt": [ - "Todo", - "Outputs.transformerrootstackTodoTodoTableC67E79C2Ref" - ] - } - }, - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/stacks/ConnectionStack.json" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18", - "Todo" - ] - }, - "QuoteResponseMessageDataResolverFnQuoteResponseMessageDataResolverFnAppSyncFunctionC82EE8AA": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "DataSourceName": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QuoteResponseMessageDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/resolvers/QuoteResponse.message.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/resolvers/QuoteResponse.message.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "QuoteResponsemessageResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "FieldName": "message", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuoteResponseMessageDataResolverFnQuoteResponseMessageDataResolverFnAppSyncFunctionC82EE8AA", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"QuoteResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"message\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88399477-86ba-4d93-aa1a-13242b53b791\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "QuoteResponse" - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "QuoteResponseQuoteDataResolverFnQuoteResponseQuoteDataResolverFnAppSyncFunction83E6C036": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "DataSourceName": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QuoteResponseQuoteDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/resolvers/QuoteResponse.quote.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/resolvers/QuoteResponse.quote.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "QuoteResponsequoteResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "FieldName": "quote", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuoteResponseQuoteDataResolverFnQuoteResponseQuoteDataResolverFnAppSyncFunction83E6C036", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"QuoteResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"quote\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88399477-86ba-4d93-aa1a-13242b53b791\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "QuoteResponse" - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "QuoteResponseAuthorDataResolverFnQuoteResponseAuthorDataResolverFnAppSyncFunction8D32A5C7": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "DataSourceName": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QuoteResponseAuthorDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/resolvers/QuoteResponse.author.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/resolvers/QuoteResponse.author.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "QuoteResponseauthorResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "FieldName": "author", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuoteResponseAuthorDataResolverFnQuoteResponseAuthorDataResolverFnAppSyncFunction8D32A5C7", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"QuoteResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"author\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88399477-86ba-4d93-aa1a-13242b53b791\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "QuoteResponse" - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "QuoteResponseTimestampDataResolverFnQuoteResponseTimestampDataResolverFnAppSyncFunction65DFB1C3": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "DataSourceName": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QuoteResponseTimestampDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/resolvers/QuoteResponse.timestamp.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/resolvers/QuoteResponse.timestamp.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "QuoteResponsetimestampResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "FieldName": "timestamp", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuoteResponseTimestampDataResolverFnQuoteResponseTimestampDataResolverFnAppSyncFunction65DFB1C3", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"QuoteResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"timestamp\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88399477-86ba-4d93-aa1a-13242b53b791\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "QuoteResponse" - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "QuoteResponseTotalQuotesDataResolverFnQuoteResponseTotalQuotesDataResolverFnAppSyncFunctionD1B9B9A8": { - "Type": "AWS::AppSync::FunctionConfiguration", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "DataSourceName": { - "Fn::GetAtt": [ - "GraphQLAPINONEDS95A13CF0", - "Name" - ] - }, - "FunctionVersion": "2018-05-29", - "Name": "QuoteResponseTotalQuotesDataResolverFn", - "RequestMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/resolvers/QuoteResponse.totalQuotes.req.vtl" - ] - ] - }, - "ResponseMappingTemplateS3Location": { - "Fn::Join": [ - "", - [ - "s3://", - { - "Ref": "S3DeploymentBucket" - }, - "/", - { - "Ref": "S3DeploymentRootKey" - }, - "/resolvers/QuoteResponse.totalQuotes.res.vtl" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "QuoteResponsetotalQuotesResolver": { - "Type": "AWS::AppSync::Resolver", - "Properties": { - "ApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "FieldName": "totalQuotes", - "Kind": "PIPELINE", - "PipelineConfig": { - "Functions": [ - { - "Fn::GetAtt": [ - "QuoteResponseTotalQuotesDataResolverFnQuoteResponseTotalQuotesDataResolverFnAppSyncFunctionD1B9B9A8", - "FunctionId" - ] - } - ] - }, - "RequestMappingTemplate": { - "Fn::Join": [ - "", - [ - "$util.qr($ctx.stash.put(\"typeName\", \"QuoteResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"totalQuotes\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", - { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:88399477-86ba-4d93-aa1a-13242b53b791\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" - ] - ] - }, - "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", - "TypeName": "QuoteResponse" - }, - "DependsOn": [ - "GraphQLAPITransformerSchema3CB2AE18" - ] - }, - "CustomResourcesjson": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "AppSyncApiId": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "AppSyncApiName": { - "Ref": "AppSyncApiName" - }, - "env": { - "Ref": "env" - }, - "S3DeploymentBucket": { - "Ref": "S3DeploymentBucket" - }, - "S3DeploymentRootKey": { - "Ref": "S3DeploymentRootKey" - } - }, - "TemplateURL": { - "Fn::Join": [ - "/", - [ - "https://s3.amazonaws.com", - { - "Ref": "S3DeploymentBucket" - }, - { - "Ref": "S3DeploymentRootKey" - }, - "stacks", - "CustomResources.json" - ] - ] - } - }, - "DependsOn": [ - "GraphQLAPI", - "GraphQLAPITransformerSchema3CB2AE18", - "Project", - "Todo", - "FunctionDirectiveStack", - "ConnectionStack" - ] - } - }, - "Outputs": { - "GraphQLAPIKeyOutput": { - "Description": "Your GraphQL API ID.", - "Value": { - "Fn::GetAtt": [ - "GraphQLAPIDefaultApiKey215A6DD7", - "ApiKey" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "AWS::StackName" - }, - "GraphQLApiKey" - ] - ] - } - } - }, - "GraphQLAPIIdOutput": { - "Description": "Your GraphQL API ID.", - "Value": { - "Fn::GetAtt": [ - "GraphQLAPI", - "ApiId" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "AWS::StackName" - }, - "GraphQLApiId" - ] - ] - } - } - }, - "GraphQLAPIEndpointOutput": { - "Description": "Your GraphQL API endpoint.", - "Value": { - "Fn::GetAtt": [ - "GraphQLAPI", - "GraphQLUrl" - ] - }, - "Export": { - "Name": { - "Fn::Join": [ - ":", - [ - { - "Ref": "AWS::StackName" - }, - "GraphQLApiEndpoint" - ] - ] - } - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.description.txt b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.description.txt deleted file mode 100644 index 28ba956271c..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"auth-Cognito","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.outputs.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.outputs.json deleted file mode 100644 index ce1bfe31d16..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.outputs.json +++ /dev/null @@ -1,35 +0,0 @@ -[ - { - "OutputKey": "UserPoolId", - "OutputValue": "us-east-1_ct5s4IEz3", - "Description": "Id for the user pool" - }, - { - "OutputKey": "AppClientIDWeb", - "OutputValue": "1vpeihq8svf62sepfnkuvp8sld", - "Description": "The user pool app client id for web" - }, - { - "OutputKey": "AppClientID", - "OutputValue": "3dbqrlfs0a0g4a6ihsanen6i5", - "Description": "The user pool app client id" - }, - { - "OutputKey": "IdentityPoolId", - "OutputValue": "us-east-1:88399477-86ba-4d93-aa1a-13242b53b791", - "Description": "Id for the identity pool" - }, - { - "OutputKey": "UserPoolArn", - "OutputValue": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_ct5s4IEz3", - "Description": "Arn for the user pool" - }, - { - "OutputKey": "IdentityPoolName", - "OutputValue": "projectboards54040ecc_identitypool_54040ecc__main" - }, - { - "OutputKey": "UserPoolName", - "OutputValue": "projectboards54040ecc_userpool_54040ecc" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.parameters.json deleted file mode 100644 index 368e5fea599..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.parameters.json +++ /dev/null @@ -1,146 +0,0 @@ -[ - { - "ParameterKey": "usernameAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "authRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-projectboards-main-02940-authRole" - }, - { - "ParameterKey": "autoVerifiedAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "allowUnauthenticatedIdentities", - "ParameterValue": "true" - }, - { - "ParameterKey": "smsVerificationMessage", - "ParameterValue": "Your verification code is {####}" - }, - { - "ParameterKey": "userpoolClientReadAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "breakCircularDependency", - "ParameterValue": "true" - }, - { - "ParameterKey": "mfaTypes", - "ParameterValue": "SMS Text Message" - }, - { - "ParameterKey": "emailVerificationSubject", - "ParameterValue": "Your verification code" - }, - { - "ParameterKey": "sharedId", - "ParameterValue": "54040ecc" - }, - { - "ParameterKey": "useDefault", - "ParameterValue": "default" - }, - { - "ParameterKey": "userpoolClientGenerateSecret", - "ParameterValue": "false" - }, - { - "ParameterKey": "mfaConfiguration", - "ParameterValue": "OFF" - }, - { - "ParameterKey": "identityPoolName", - "ParameterValue": "projectboards54040ecc_identitypool_54040ecc" - }, - { - "ParameterKey": "userPoolGroupList", - "ParameterValue": "" - }, - { - "ParameterKey": "authSelections", - "ParameterValue": "identityPoolAndUserPool" - }, - { - "ParameterKey": "resourceNameTruncated", - "ParameterValue": "projec54040ecc" - }, - { - "ParameterKey": "smsAuthenticationMessage", - "ParameterValue": "Your authentication code is {####}" - }, - { - "ParameterKey": "passwordPolicyMinLength", - "ParameterValue": "8" - }, - { - "ParameterKey": "userPoolName", - "ParameterValue": "projectboards54040ecc_userpool_54040ecc" - }, - { - "ParameterKey": "userpoolClientWriteAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "dependsOn", - "ParameterValue": "" - }, - { - "ParameterKey": "useEnabledMfas", - "ParameterValue": "true" - }, - { - "ParameterKey": "usernameCaseSensitive", - "ParameterValue": "false" - }, - { - "ParameterKey": "resourceName", - "ParameterValue": "projectboards54040ecc" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "serviceName", - "ParameterValue": "Cognito" - }, - { - "ParameterKey": "emailVerificationMessage", - "ParameterValue": "Your verification code is {####}" - }, - { - "ParameterKey": "userpoolClientRefreshTokenValidity", - "ParameterValue": "30" - }, - { - "ParameterKey": "userpoolClientSetAttributes", - "ParameterValue": "false" - }, - { - "ParameterKey": "unauthRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-projectboards-main-02940-unauthRole" - }, - { - "ParameterKey": "requiredAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "passwordPolicyCharacters", - "ParameterValue": "" - }, - { - "ParameterKey": "aliasAttributes", - "ParameterValue": "" - }, - { - "ParameterKey": "userpoolClientLambdaRole", - "ParameterValue": "projec54040ecc_userpoolclient_lambda_role" - }, - { - "ParameterKey": "defaultPasswordPolicy", - "ParameterValue": "false" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.template.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.template.json deleted file mode 100644 index 0eb19ca9b05..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-authprojectboards54040ecc-PH0BQLGBQAYV.template.json +++ /dev/null @@ -1,413 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "env": { - "Type": "String" - }, - "identityPoolName": { - "Type": "String" - }, - "allowUnauthenticatedIdentities": { - "Type": "String" - }, - "resourceNameTruncated": { - "Type": "String" - }, - "userPoolName": { - "Type": "String" - }, - "autoVerifiedAttributes": { - "Type": "CommaDelimitedList" - }, - "mfaConfiguration": { - "Type": "String" - }, - "mfaTypes": { - "Type": "CommaDelimitedList" - }, - "smsAuthenticationMessage": { - "Type": "String" - }, - "smsVerificationMessage": { - "Type": "String" - }, - "emailVerificationSubject": { - "Type": "String" - }, - "emailVerificationMessage": { - "Type": "String" - }, - "defaultPasswordPolicy": { - "Type": "String" - }, - "passwordPolicyMinLength": { - "Type": "String" - }, - "passwordPolicyCharacters": { - "Type": "CommaDelimitedList" - }, - "requiredAttributes": { - "Type": "CommaDelimitedList" - }, - "aliasAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientGenerateSecret": { - "Type": "String" - }, - "userpoolClientRefreshTokenValidity": { - "Type": "String" - }, - "userpoolClientWriteAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientReadAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientLambdaRole": { - "Type": "String" - }, - "userpoolClientSetAttributes": { - "Type": "String" - }, - "sharedId": { - "Type": "String" - }, - "resourceName": { - "Type": "String" - }, - "authSelections": { - "Type": "String" - }, - "useDefault": { - "Type": "String" - }, - "usernameAttributes": { - "Type": "CommaDelimitedList" - }, - "userPoolGroupList": { - "Type": "CommaDelimitedList" - }, - "serviceName": { - "Type": "String" - }, - "usernameCaseSensitive": { - "Type": "String" - }, - "useEnabledMfas": { - "Type": "String" - }, - "authRoleArn": { - "Type": "String" - }, - "unauthRoleArn": { - "Type": "String" - }, - "breakCircularDependency": { - "Type": "String" - }, - "dependsOn": { - "Type": "CommaDelimitedList" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - }, - "Resources": { - "UserPool": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": { - "Ref": "emailVerificationMessage" - }, - "EmailVerificationSubject": { - "Ref": "emailVerificationSubject" - }, - "MfaConfiguration": { - "Ref": "mfaConfiguration" - }, - "Policies": { - "PasswordPolicy": { - "MinimumLength": { - "Ref": "passwordPolicyMinLength" - }, - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "userPoolName" - }, - { - "Fn::Join": [ - "", - [ - { - "Ref": "userPoolName" - }, - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "UsernameAttributes": { - "Ref": "usernameAttributes" - }, - "UsernameConfiguration": { - "CaseSensitive": false - } - } - }, - "UserPoolClientWeb": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "projec54040ecc_app_clientWeb", - "RefreshTokenValidity": { - "Ref": "userpoolClientRefreshTokenValidity" - }, - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": { - "Ref": "UserPool" - } - }, - "DependsOn": [ - "UserPool" - ] - }, - "UserPoolClient": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "projec54040ecc_app_client", - "GenerateSecret": { - "Ref": "userpoolClientGenerateSecret" - }, - "RefreshTokenValidity": { - "Ref": "userpoolClientRefreshTokenValidity" - }, - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": { - "Ref": "UserPool" - } - }, - "DependsOn": [ - "UserPool" - ] - }, - "UserPoolClientRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - }, - "Action": "sts:AssumeRole" - } - ] - }, - "RoleName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "userpoolClientLambdaRole" - }, - { - "Fn::Join": [ - "", - [ - "upClientLambdaRole54040ecc", - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - { - "Ref": "AWS::StackName" - } - ] - } - ] - }, - "-", - { - "Ref": "env" - } - ] - ] - } - ] - } - } - }, - "IdentityPool": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": { - "Ref": "allowUnauthenticatedIdentities" - }, - "CognitoIdentityProviders": [ - { - "ClientId": { - "Ref": "UserPoolClient" - }, - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": { - "Ref": "UserPool" - } - } - ] - } - }, - { - "ClientId": { - "Ref": "UserPoolClientWeb" - }, - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": { - "Ref": "UserPool" - } - } - ] - } - } - ], - "IdentityPoolName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "projectboards54040ecc_identitypool_54040ecc", - { - "Fn::Join": [ - "", - [ - "projectboards54040ecc_identitypool_54040ecc__", - { - "Ref": "env" - } - ] - ] - } - ] - } - } - }, - "IdentityPoolRoleMap": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": { - "Ref": "IdentityPool" - }, - "Roles": { - "unauthenticated": { - "Ref": "unauthRoleArn" - }, - "authenticated": { - "Ref": "authRoleArn" - } - } - }, - "DependsOn": [ - "IdentityPool" - ] - } - }, - "Outputs": { - "IdentityPoolId": { - "Description": "Id for the identity pool", - "Value": { - "Ref": "IdentityPool" - } - }, - "IdentityPoolName": { - "Value": { - "Fn::GetAtt": [ - "IdentityPool", - "Name" - ] - } - }, - "UserPoolId": { - "Description": "Id for the user pool", - "Value": { - "Ref": "UserPool" - } - }, - "UserPoolArn": { - "Description": "Arn for the user pool", - "Value": { - "Fn::GetAtt": [ - "UserPool", - "Arn" - ] - } - }, - "UserPoolName": { - "Value": { - "Ref": "userPoolName" - } - }, - "AppClientIDWeb": { - "Description": "The user pool app client id for web", - "Value": { - "Ref": "UserPoolClientWeb" - } - }, - "AppClientID": { - "Description": "The user pool app client id", - "Value": { - "Ref": "UserPoolClient" - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-functionquotegenerator-M4FF4RKY2IWJ.description.txt b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-functionquotegenerator-M4FF4RKY2IWJ.description.txt deleted file mode 100644 index 445081e4df1..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-functionquotegenerator-M4FF4RKY2IWJ.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"function-Lambda","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-functionquotegenerator-M4FF4RKY2IWJ.outputs.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-functionquotegenerator-M4FF4RKY2IWJ.outputs.json deleted file mode 100644 index 44d0b4d5c4a..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-functionquotegenerator-M4FF4RKY2IWJ.outputs.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "OutputKey": "LambdaExecutionRoleArn", - "OutputValue": "arn:aws:iam::123456789012:role/projectboardsLambdaRolef283f87f-main" - }, - { - "OutputKey": "Region", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "Arn", - "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:quotegenerator-main" - }, - { - "OutputKey": "Name", - "OutputValue": "quotegenerator-main" - }, - { - "OutputKey": "LambdaExecutionRole", - "OutputValue": "projectboardsLambdaRolef283f87f-main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-functionquotegenerator-M4FF4RKY2IWJ.parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-functionquotegenerator-M4FF4RKY2IWJ.parameters.json deleted file mode 100644 index 531cabaafd6..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-functionquotegenerator-M4FF4RKY2IWJ.parameters.json +++ /dev/null @@ -1,18 +0,0 @@ -[ - { - "ParameterKey": "CloudWatchRule", - "ParameterValue": "NONE" - }, - { - "ParameterKey": "s3Key", - "ParameterValue": "amplify-builds/quotegenerator-51737a6b73437548654c-build.zip" - }, - { - "ParameterKey": "deploymentBucketName", - "ParameterValue": "amplify-projectboards-main-02940-deployment" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-functionquotegenerator-M4FF4RKY2IWJ.template.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-functionquotegenerator-M4FF4RKY2IWJ.template.json deleted file mode 100644 index 514feaf36cc..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-functionquotegenerator-M4FF4RKY2IWJ.template.json +++ /dev/null @@ -1,202 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "Parameters": { - "CloudWatchRule": { - "Type": "String", - "Default": "NONE", - "Description": " Schedule Expression" - }, - "deploymentBucketName": { - "Type": "String" - }, - "env": { - "Type": "String" - }, - "s3Key": { - "Type": "String" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - }, - "Resources": { - "LambdaFunction": { - "Type": "AWS::Lambda::Function", - "Metadata": { - "aws:asset:path": "./src", - "aws:asset:property": "Code" - }, - "Properties": { - "Code": { - "S3Bucket": { - "Ref": "deploymentBucketName" - }, - "S3Key": { - "Ref": "s3Key" - } - }, - "Handler": "index.handler", - "FunctionName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "quotegenerator", - { - "Fn::Join": [ - "", - [ - "quotegenerator", - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "Environment": { - "Variables": { - "ENV": { - "Ref": "env" - }, - "REGION": { - "Ref": "AWS::Region" - } - } - }, - "Role": { - "Fn::GetAtt": [ - "LambdaExecutionRole", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Layers": [], - "Timeout": 25 - } - }, - "LambdaExecutionRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "RoleName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "projectboardsLambdaRolef283f87f", - { - "Fn::Join": [ - "", - [ - "projectboardsLambdaRolef283f87f", - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": [ - "lambda.amazonaws.com" - ] - }, - "Action": [ - "sts:AssumeRole" - ] - } - ] - } - } - }, - "lambdaexecutionpolicy": { - "DependsOn": [ - "LambdaExecutionRole" - ], - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyName": "lambda-execution-policy", - "Roles": [ - { - "Ref": "LambdaExecutionRole" - } - ], - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "logs:CreateLogGroup", - "logs:CreateLogStream", - "logs:PutLogEvents" - ], - "Resource": { - "Fn::Sub": [ - "arn:aws:logs:${region}:${account}:log-group:/aws/lambda/${lambda}:log-stream:*", - { - "region": { - "Ref": "AWS::Region" - }, - "account": { - "Ref": "AWS::AccountId" - }, - "lambda": { - "Ref": "LambdaFunction" - } - } - ] - } - } - ] - } - } - } - }, - "Outputs": { - "Name": { - "Value": { - "Ref": "LambdaFunction" - } - }, - "Arn": { - "Value": { - "Fn::GetAtt": [ - "LambdaFunction", - "Arn" - ] - } - }, - "Region": { - "Value": { - "Ref": "AWS::Region" - } - }, - "LambdaExecutionRole": { - "Value": { - "Ref": "LambdaExecutionRole" - } - }, - "LambdaExecutionRoleArn": { - "Value": { - "Fn::GetAtt": [ - "LambdaExecutionRole", - "Arn" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.description.txt b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.description.txt deleted file mode 100644 index f0c7a6514ea..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"storage-S3","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.outputs.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.outputs.json deleted file mode 100644 index 86e4689cae7..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.outputs.json +++ /dev/null @@ -1,11 +0,0 @@ -[ - { - "OutputKey": "BucketName", - "OutputValue": "projectboards34b9a7f3c2ca489293910116c994688b02940-main", - "Description": "Bucket name for the S3 bucket" - }, - { - "OutputKey": "Region", - "OutputValue": "us-east-1" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.parameters.json deleted file mode 100644 index 43cd6f2f29e..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.parameters.json +++ /dev/null @@ -1,86 +0,0 @@ -[ - { - "ParameterKey": "s3PermissionsGuestPublic", - "ParameterValue": "s3:GetObject" - }, - { - "ParameterKey": "bucketName", - "ParameterValue": "projectboards34b9a7f3c2ca489293910116c994688b" - }, - { - "ParameterKey": "s3PublicPolicy", - "ParameterValue": "Public_policy_69f8ff1c" - }, - { - "ParameterKey": "AuthenticatedAllowList", - "ParameterValue": "ALLOW" - }, - { - "ParameterKey": "unauthRoleName", - "ParameterValue": "amplify-projectboards-main-02940-unauthRole" - }, - { - "ParameterKey": "s3PrivatePolicy", - "ParameterValue": "Private_policy_69f8ff1c" - }, - { - "ParameterKey": "selectedGuestPermissions", - "ParameterValue": "s3:GetObject,s3:ListBucket" - }, - { - "ParameterKey": "s3PermissionsAuthenticatedPublic", - "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" - }, - { - "ParameterKey": "s3PermissionsAuthenticatedPrivate", - "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" - }, - { - "ParameterKey": "s3PermissionsAuthenticatedUploads", - "ParameterValue": "s3:PutObject" - }, - { - "ParameterKey": "s3UploadsPolicy", - "ParameterValue": "Uploads_policy_69f8ff1c" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "unauthPolicyName", - "ParameterValue": "s3_amplify_69f8ff1c" - }, - { - "ParameterKey": "authRoleName", - "ParameterValue": "amplify-projectboards-main-02940-authRole" - }, - { - "ParameterKey": "GuestAllowList", - "ParameterValue": "ALLOW" - }, - { - "ParameterKey": "authPolicyName", - "ParameterValue": "s3_amplify_69f8ff1c" - }, - { - "ParameterKey": "s3ProtectedPolicy", - "ParameterValue": "Protected_policy_69f8ff1c" - }, - { - "ParameterKey": "s3PermissionsAuthenticatedProtected", - "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" - }, - { - "ParameterKey": "s3PermissionsGuestUploads", - "ParameterValue": "DISALLOW" - }, - { - "ParameterKey": "s3ReadPolicy", - "ParameterValue": "read_policy_69f8ff1c" - }, - { - "ParameterKey": "selectedAuthenticatedPermissions", - "ParameterValue": "s3:PutObject,s3:GetObject,s3:ListBucket,s3:DeleteObject" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.template.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.template.json deleted file mode 100644 index 8bac1dbfa69..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940-storages369f8ff1c-WRT91DP311WY.template.json +++ /dev/null @@ -1,646 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-S3\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "env": { - "Type": "String" - }, - "bucketName": { - "Type": "String" - }, - "authRoleName": { - "Type": "String" - }, - "unauthRoleName": { - "Type": "String" - }, - "authPolicyName": { - "Type": "String" - }, - "unauthPolicyName": { - "Type": "String" - }, - "s3PublicPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3PrivatePolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3ProtectedPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3UploadsPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3ReadPolicy": { - "Type": "String", - "Default": "NONE" - }, - "s3PermissionsAuthenticatedPublic": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedProtected": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedPrivate": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsAuthenticatedUploads": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsGuestPublic": { - "Type": "String", - "Default": "DISALLOW" - }, - "s3PermissionsGuestUploads": { - "Type": "String", - "Default": "DISALLOW" - }, - "AuthenticatedAllowList": { - "Type": "String", - "Default": "DISALLOW" - }, - "GuestAllowList": { - "Type": "String", - "Default": "DISALLOW" - }, - "selectedGuestPermissions": { - "Type": "CommaDelimitedList", - "Default": "NONE" - }, - "selectedAuthenticatedPermissions": { - "Type": "CommaDelimitedList", - "Default": "NONE" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - }, - "CreateAuthPublic": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "s3PermissionsAuthenticatedPublic" - }, - "DISALLOW" - ] - } - ] - }, - "CreateAuthProtected": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "s3PermissionsAuthenticatedProtected" - }, - "DISALLOW" - ] - } - ] - }, - "CreateAuthPrivate": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "s3PermissionsAuthenticatedPrivate" - }, - "DISALLOW" - ] - } - ] - }, - "CreateAuthUploads": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "s3PermissionsAuthenticatedUploads" - }, - "DISALLOW" - ] - } - ] - }, - "CreateGuestPublic": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "s3PermissionsGuestPublic" - }, - "DISALLOW" - ] - } - ] - }, - "CreateGuestUploads": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "s3PermissionsGuestUploads" - }, - "DISALLOW" - ] - } - ] - }, - "AuthReadAndList": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "AuthenticatedAllowList" - }, - "DISALLOW" - ] - } - ] - }, - "GuestReadAndList": { - "Fn::Not": [ - { - "Fn::Equals": [ - { - "Ref": "GuestAllowList" - }, - "DISALLOW" - ] - } - ] - } - }, - "Outputs": { - "BucketName": { - "Description": "Bucket name for the S3 bucket", - "Value": { - "Ref": "S3Bucket" - } - }, - "Region": { - "Value": { - "Ref": "AWS::Region" - } - } - }, - "Resources": { - "S3Bucket": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "bucketName" - }, - { - "Fn::Join": [ - "", - [ - { - "Ref": "bucketName" - }, - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - { - "Ref": "AWS::StackName" - } - ] - } - ] - }, - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "CorsConfiguration": { - "CorsRules": [ - { - "AllowedHeaders": [ - "*" - ], - "AllowedMethods": [ - "GET", - "HEAD", - "PUT", - "POST", - "DELETE" - ], - "AllowedOrigins": [ - "*" - ], - "ExposedHeaders": [ - "x-amz-server-side-encryption", - "x-amz-request-id", - "x-amz-id-2", - "ETag" - ], - "Id": "S3CORSRuleId1", - "MaxAge": 3000 - } - ] - }, - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - } - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain" - }, - "S3AuthPublicPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - { - "Ref": "s3PermissionsAuthenticatedPublic" - } - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, - "/public/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": { - "Ref": "s3PublicPolicy" - }, - "Roles": [ - { - "Ref": "authRoleName" - } - ] - }, - "DependsOn": [ - "S3Bucket" - ], - "Condition": "CreateAuthPublic" - }, - "S3AuthProtectedPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - { - "Ref": "s3PermissionsAuthenticatedProtected" - } - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, - "/protected/${cognito-identity.amazonaws.com:sub}/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": { - "Ref": "s3ProtectedPolicy" - }, - "Roles": [ - { - "Ref": "authRoleName" - } - ] - }, - "DependsOn": [ - "S3Bucket" - ], - "Condition": "CreateAuthProtected" - }, - "S3AuthPrivatePolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - { - "Ref": "s3PermissionsAuthenticatedPrivate" - } - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, - "/private/${cognito-identity.amazonaws.com:sub}/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": { - "Ref": "s3PrivatePolicy" - }, - "Roles": [ - { - "Ref": "authRoleName" - } - ] - }, - "DependsOn": [ - "S3Bucket" - ], - "Condition": "CreateAuthPrivate" - }, - "S3AuthUploadPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - { - "Ref": "s3PermissionsAuthenticatedUploads" - } - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, - "/uploads/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": { - "Ref": "s3UploadsPolicy" - }, - "Roles": [ - { - "Ref": "authRoleName" - } - ] - }, - "DependsOn": [ - "S3Bucket" - ], - "Condition": "CreateAuthUploads" - }, - "S3GuestPublicPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": { - "Fn::Split": [ - ",", - { - "Ref": "s3PermissionsGuestPublic" - } - ] - }, - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, - "/public/*" - ] - ] - } - ] - } - ] - }, - "PolicyName": { - "Ref": "s3PublicPolicy" - }, - "Roles": [ - { - "Ref": "unauthRoleName" - } - ] - }, - "DependsOn": [ - "S3Bucket" - ], - "Condition": "CreateGuestPublic" - }, - "S3AuthReadPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, - "/protected/*" - ] - ] - } - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/", - "public/*", - "protected/", - "protected/*", - "private/${cognito-identity.amazonaws.com:sub}/", - "private/${cognito-identity.amazonaws.com:sub}/*" - ] - } - }, - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - } - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": { - "Ref": "s3ReadPolicy" - }, - "Roles": [ - { - "Ref": "authRoleName" - } - ] - }, - "DependsOn": [ - "S3Bucket" - ], - "Condition": "AuthReadAndList" - }, - "S3GuestReadPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:GetObject", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - }, - "/protected/*" - ] - ] - } - }, - { - "Action": "s3:ListBucket", - "Condition": { - "StringLike": { - "s3:prefix": [ - "public/", - "public/*", - "protected/", - "protected/*" - ] - } - }, - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "S3Bucket" - } - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": { - "Ref": "s3ReadPolicy" - }, - "Roles": [ - { - "Ref": "unauthRoleName" - } - ] - }, - "DependsOn": [ - "S3Bucket" - ], - "Condition": "GuestReadAndList" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940.description.txt b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940.description.txt deleted file mode 100644 index daf66c0bc85..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940.description.txt +++ /dev/null @@ -1 +0,0 @@ -Root Stack for AWS Amplify CLI \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940.outputs.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940.outputs.json deleted file mode 100644 index f1e995e82c3..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940.outputs.json +++ /dev/null @@ -1,42 +0,0 @@ -[ - { - "OutputKey": "AuthRoleName", - "OutputValue": "amplify-projectboards-main-02940-authRole" - }, - { - "OutputKey": "UnauthRoleArn", - "OutputValue": "arn:aws:iam::123456789012:role/amplify-projectboards-main-02940-unauthRole" - }, - { - "OutputKey": "AuthRoleArn", - "OutputValue": "arn:aws:iam::123456789012:role/amplify-projectboards-main-02940-authRole" - }, - { - "OutputKey": "Region", - "OutputValue": "us-east-1", - "Description": "CloudFormation provider root stack Region", - "ExportName": "amplify-projectboards-main-02940-Region" - }, - { - "OutputKey": "DeploymentBucketName", - "OutputValue": "amplify-projectboards-main-02940-deployment", - "Description": "CloudFormation provider root stack deployment bucket name", - "ExportName": "amplify-projectboards-main-02940-DeploymentBucketName" - }, - { - "OutputKey": "UnauthRoleName", - "OutputValue": "amplify-projectboards-main-02940-unauthRole" - }, - { - "OutputKey": "StackName", - "OutputValue": "amplify-projectboards-main-02940", - "Description": "CloudFormation provider root stack ID", - "ExportName": "amplify-projectboards-main-02940-StackName" - }, - { - "OutputKey": "StackId", - "OutputValue": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-projectboards-main-02940/b1077460-19ca-11f1-a5bd-12cb2662bcfd", - "Description": "CloudFormation provider root stack name", - "ExportName": "amplify-projectboards-main-02940-StackId" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940.parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940.parameters.json deleted file mode 100644 index 1c3e84a451b..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940.parameters.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "ParameterKey": "AuthRoleName", - "ParameterValue": "amplify-projectboards-main-02940-authRole" - }, - { - "ParameterKey": "DeploymentBucketName", - "ParameterValue": "amplify-projectboards-main-02940-deployment" - }, - { - "ParameterKey": "UnauthRoleName", - "ParameterValue": "amplify-projectboards-main-02940-unauthRole" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940.template.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940.template.json deleted file mode 100644 index 5ff140869f7..00000000000 --- a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-main-02940.template.json +++ /dev/null @@ -1,524 +0,0 @@ -{ - "Description": "Root Stack for AWS Amplify CLI", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "DeploymentBucketName": { - "Type": "String", - "Default": "DeploymentBucket", - "Description": "Name of the common deployment bucket provided by the parent stack" - }, - "AuthRoleName": { - "Type": "String", - "Default": "AuthRoleName", - "Description": "Name of the common deployment bucket provided by the parent stack" - }, - "UnauthRoleName": { - "Type": "String", - "Default": "UnAuthRoleName", - "Description": "Name of the common deployment bucket provided by the parent stack" - } - }, - "Outputs": { - "Region": { - "Description": "CloudFormation provider root stack Region", - "Value": { - "Ref": "AWS::Region" - }, - "Export": { - "Name": { - "Fn::Sub": "${AWS::StackName}-Region" - } - } - }, - "StackName": { - "Description": "CloudFormation provider root stack ID", - "Value": { - "Ref": "AWS::StackName" - }, - "Export": { - "Name": { - "Fn::Sub": "${AWS::StackName}-StackName" - } - } - }, - "StackId": { - "Description": "CloudFormation provider root stack name", - "Value": { - "Ref": "AWS::StackId" - }, - "Export": { - "Name": { - "Fn::Sub": "${AWS::StackName}-StackId" - } - } - }, - "AuthRoleArn": { - "Value": { - "Fn::GetAtt": [ - "AuthRole", - "Arn" - ] - } - }, - "UnauthRoleArn": { - "Value": { - "Fn::GetAtt": [ - "UnauthRole", - "Arn" - ] - } - }, - "DeploymentBucketName": { - "Description": "CloudFormation provider root stack deployment bucket name", - "Value": { - "Ref": "DeploymentBucketName" - }, - "Export": { - "Name": { - "Fn::Sub": "${AWS::StackName}-DeploymentBucketName" - } - } - }, - "AuthRoleName": { - "Value": { - "Ref": "AuthRole" - } - }, - "UnauthRoleName": { - "Value": { - "Ref": "UnauthRole" - } - } - }, - "Resources": { - "DeploymentBucket": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketName": { - "Ref": "DeploymentBucketName" - }, - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - } - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain" - }, - "DeploymentBucketBlockHTTP": { - "Type": "AWS::S3::BucketPolicy", - "Properties": { - "Bucket": { - "Ref": "DeploymentBucketName" - }, - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:*", - "Effect": "Deny", - "Principal": "*", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "DeploymentBucketName" - }, - "/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "DeploymentBucketName" - } - ] - ] - } - ], - "Condition": { - "Bool": { - "aws:SecureTransport": false - } - } - } - ] - } - } - }, - "AuthRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Sid": "", - "Effect": "Deny", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - }, - "Action": "sts:AssumeRoleWithWebIdentity" - } - ] - }, - "RoleName": { - "Ref": "AuthRoleName" - } - } - }, - "UnauthRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Sid": "", - "Effect": "Deny", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - }, - "Action": "sts:AssumeRoleWithWebIdentity" - } - ] - }, - "RoleName": { - "Ref": "UnauthRoleName" - } - } - }, - "apiprojectboards": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-main-02940-deployment/amplify-cfn-templates/api/cloudformation-template.json", - "Parameters": { - "AppSyncApiName": "projectboards", - "DynamoDBBillingMode": "PAY_PER_REQUEST", - "DynamoDBEnableServerSideEncryption": false, - "AuthCognitoUserPoolId": { - "Fn::GetAtt": [ - "authprojectboards54040ecc", - "Outputs.UserPoolId" - ] - }, - "S3DeploymentBucket": "amplify-projectboards-main-02940-deployment", - "S3DeploymentRootKey": "amplify-appsync-files/182d69537a429ad74cd4e2ced5fdadbb4cbf17fc", - "env": "main" - } - } - }, - "authprojectboards54040ecc": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-main-02940-deployment/amplify-cfn-templates/auth/projectboards54040ecc-cloudformation-template.json", - "Parameters": { - "identityPoolName": "projectboards54040ecc_identitypool_54040ecc", - "allowUnauthenticatedIdentities": true, - "resourceNameTruncated": "projec54040ecc", - "userPoolName": "projectboards54040ecc_userpool_54040ecc", - "autoVerifiedAttributes": "email", - "mfaConfiguration": "OFF", - "mfaTypes": "SMS Text Message", - "smsAuthenticationMessage": "Your authentication code is {####}", - "smsVerificationMessage": "Your verification code is {####}", - "emailVerificationSubject": "Your verification code", - "emailVerificationMessage": "Your verification code is {####}", - "defaultPasswordPolicy": false, - "passwordPolicyMinLength": 8, - "passwordPolicyCharacters": "", - "requiredAttributes": "email", - "aliasAttributes": "", - "userpoolClientGenerateSecret": false, - "userpoolClientRefreshTokenValidity": 30, - "userpoolClientWriteAttributes": "email", - "userpoolClientReadAttributes": "email", - "userpoolClientLambdaRole": "projec54040ecc_userpoolclient_lambda_role", - "userpoolClientSetAttributes": false, - "sharedId": "54040ecc", - "resourceName": "projectboards54040ecc", - "authSelections": "identityPoolAndUserPool", - "useDefault": "default", - "usernameAttributes": "email", - "userPoolGroupList": "", - "serviceName": "Cognito", - "usernameCaseSensitive": false, - "useEnabledMfas": true, - "authRoleArn": { - "Fn::GetAtt": [ - "AuthRole", - "Arn" - ] - }, - "unauthRoleArn": { - "Fn::GetAtt": [ - "UnauthRole", - "Arn" - ] - }, - "breakCircularDependency": true, - "dependsOn": "", - "env": "main" - } - } - }, - "functionquotegenerator": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-main-02940-deployment/amplify-cfn-templates/function/quotegenerator-cloudformation-template.json", - "Parameters": { - "deploymentBucketName": "amplify-projectboards-main-02940-deployment", - "s3Key": "amplify-builds/quotegenerator-51737a6b73437548654c-build.zip", - "env": "main" - } - } - }, - "storages369f8ff1c": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-main-02940-deployment/amplify-cfn-templates/storage/cloudformation-template.json", - "Parameters": { - "bucketName": "projectboards34b9a7f3c2ca489293910116c994688b", - "selectedGuestPermissions": "s3:GetObject,s3:ListBucket", - "selectedAuthenticatedPermissions": "s3:PutObject,s3:GetObject,s3:ListBucket,s3:DeleteObject", - "unauthRoleName": { - "Ref": "UnauthRoleName" - }, - "authRoleName": { - "Ref": "AuthRoleName" - }, - "s3PrivatePolicy": "Private_policy_69f8ff1c", - "s3ProtectedPolicy": "Protected_policy_69f8ff1c", - "s3PublicPolicy": "Public_policy_69f8ff1c", - "s3ReadPolicy": "read_policy_69f8ff1c", - "s3UploadsPolicy": "Uploads_policy_69f8ff1c", - "authPolicyName": "s3_amplify_69f8ff1c", - "unauthPolicyName": "s3_amplify_69f8ff1c", - "AuthenticatedAllowList": "ALLOW", - "GuestAllowList": "ALLOW", - "s3PermissionsAuthenticatedPrivate": "s3:PutObject,s3:GetObject,s3:DeleteObject", - "s3PermissionsAuthenticatedProtected": "s3:PutObject,s3:GetObject,s3:DeleteObject", - "s3PermissionsAuthenticatedPublic": "s3:PutObject,s3:GetObject,s3:DeleteObject", - "s3PermissionsAuthenticatedUploads": "s3:PutObject", - "s3PermissionsGuestPublic": "s3:GetObject", - "s3PermissionsGuestUploads": "DISALLOW", - "env": "main" - } - } - }, - "UpdateRolesWithIDPFunction": { - "DependsOn": [ - "AuthRole", - "UnauthRole", - "authprojectboards54040ecc" - ], - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "ZipFile": { - "Fn::Join": [ - "\n", - [ - "const response = require('cfn-response');", - "const { IAMClient, GetRoleCommand, UpdateAssumeRolePolicyCommand } = require('@aws-sdk/client-iam');", - "exports.handler = function(event, context) {", - " // Don't return promise, response.send() marks context as done internally", - " const ignoredPromise = handleEvent(event, context)", - "};", - "async function handleEvent(event, context) {", - " try {", - " let authRoleName = event.ResourceProperties.authRoleName;", - " let unauthRoleName = event.ResourceProperties.unauthRoleName;", - " let idpId = event.ResourceProperties.idpId;", - " let authParamsJson = {", - " 'Version': '2012-10-17',", - " 'Statement': [{", - " 'Effect': 'Allow',", - " 'Principal': {'Federated': 'cognito-identity.amazonaws.com'},", - " 'Action': 'sts:AssumeRoleWithWebIdentity',", - " 'Condition': {", - " 'StringEquals': {'cognito-identity.amazonaws.com:aud': idpId},", - " 'ForAnyValue:StringLike': {'cognito-identity.amazonaws.com:amr': 'authenticated'}", - " }", - " }]", - " };", - " let unauthParamsJson = {", - " 'Version': '2012-10-17',", - " 'Statement': [{", - " 'Effect': 'Allow',", - " 'Principal': {'Federated': 'cognito-identity.amazonaws.com'},", - " 'Action': 'sts:AssumeRoleWithWebIdentity',", - " 'Condition': {", - " 'StringEquals': {'cognito-identity.amazonaws.com:aud': idpId},", - " 'ForAnyValue:StringLike': {'cognito-identity.amazonaws.com:amr': 'unauthenticated'}", - " }", - " }]", - " };", - " if (event.RequestType === 'Delete') {", - " try {", - " delete authParamsJson.Statement[0].Condition;", - " delete unauthParamsJson.Statement[0].Condition;", - " authParamsJson.Statement[0].Effect = 'Deny'", - " unauthParamsJson.Statement[0].Effect = 'Deny'", - " let authParams = {PolicyDocument: JSON.stringify(authParamsJson), RoleName: authRoleName};", - " let unauthParams = {PolicyDocument: JSON.stringify(unauthParamsJson), RoleName: unauthRoleName};", - " const iam = new IAMClient({region: event.ResourceProperties.region});", - " let res = await Promise.all([", - " iam.send(new GetRoleCommand({RoleName: authParams.RoleName})),", - " iam.send(new GetRoleCommand({RoleName: unauthParams.RoleName}))", - " ]);", - " res = await Promise.all([", - " iam.send(new UpdateAssumeRolePolicyCommand(authParams)),", - " iam.send(new UpdateAssumeRolePolicyCommand(unauthParams))", - " ]);", - " response.send(event, context, response.SUCCESS, {});", - " } catch (err) {", - " console.log(err.stack);", - " response.send(event, context, response.SUCCESS, {Error: err});", - " }", - " } else if (event.RequestType === 'Update' || event.RequestType === 'Create') {", - " const iam = new IAMClient({region: event.ResourceProperties.region});", - " let authParams = {PolicyDocument: JSON.stringify(authParamsJson), RoleName: authRoleName};", - " let unauthParams = {PolicyDocument: JSON.stringify(unauthParamsJson), RoleName: unauthRoleName};", - " const res = await Promise.all([", - " iam.send(new UpdateAssumeRolePolicyCommand(authParams)),", - " iam.send(new UpdateAssumeRolePolicyCommand(unauthParams))", - " ]);", - " response.send(event, context, response.SUCCESS, {});", - " }", - " } catch (err) {", - " console.log(err.stack);", - " response.send(event, context, response.FAILED, {Error: err});", - " }", - "};" - ] - ] - } - }, - "Handler": "index.handler", - "Runtime": "nodejs22.x", - "Timeout": 300, - "Role": { - "Fn::GetAtt": [ - "UpdateRolesWithIDPFunctionRole", - "Arn" - ] - } - } - }, - "UpdateRolesWithIDPFunctionOutputs": { - "Type": "Custom::LambdaCallout", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "UpdateRolesWithIDPFunction", - "Arn" - ] - }, - "region": { - "Ref": "AWS::Region" - }, - "idpId": { - "Fn::GetAtt": [ - "authprojectboards54040ecc", - "Outputs.IdentityPoolId" - ] - }, - "authRoleName": { - "Ref": "AuthRole" - }, - "unauthRoleName": { - "Ref": "UnauthRole" - } - } - }, - "UpdateRolesWithIDPFunctionRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "RoleName": { - "Fn::Join": [ - "", - [ - { - "Ref": "AuthRole" - }, - "-idp" - ] - ] - }, - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": [ - "lambda.amazonaws.com" - ] - }, - "Action": [ - "sts:AssumeRole" - ] - } - ] - }, - "Policies": [ - { - "PolicyName": "UpdateRolesWithIDPFunctionPolicy", - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "logs:CreateLogGroup", - "logs:CreateLogStream", - "logs:PutLogEvents" - ], - "Resource": "arn:aws:logs:*:*:*" - }, - { - "Effect": "Allow", - "Action": [ - "iam:UpdateAssumeRolePolicy", - "iam:GetRole" - ], - "Resource": { - "Fn::GetAtt": [ - "AuthRole", - "Arn" - ] - } - }, - { - "Effect": "Allow", - "Action": [ - "iam:UpdateAssumeRolePolicy", - "iam:GetRole" - ], - "Resource": { - "Fn::GetAtt": [ - "UnauthRole", - "Arn" - ] - } - } - ] - } - } - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-FunctionDirectiveStack-x.description.txt b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-FunctionDirectiveStack-x.description.txt new file mode 100644 index 00000000000..6b3d983ba60 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-FunctionDirectiveStack-x.description.txt @@ -0,0 +1 @@ +An auto-generated nested stack for the @function directive. diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-FunctionDirectiveStack-x.outputs.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-FunctionDirectiveStack-x.outputs.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-FunctionDirectiveStack-x.outputs.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-FunctionDirectiveStack-x.parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-FunctionDirectiveStack-x.parameters.json new file mode 100644 index 00000000000..464c17570d0 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-FunctionDirectiveStack-x.parameters.json @@ -0,0 +1,22 @@ +[ + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", + "ParameterValue": "amplify-appsync-files/182d69537a429ad74cd4e2ced5fdadbb4cbf17fc" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", + "ParameterValue": "feqgb7ww75f5lklhnep4rre3va" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", + "ParameterValue": "amplify-projectboards-x-x-deployment" + }, + { + "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", + "ParameterValue": "x" + } +] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-FunctionDirectiveStack-x.template.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-FunctionDirectiveStack-x.template.json new file mode 100644 index 00000000000..ebb69f88cb4 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-FunctionDirectiveStack-x.template.json @@ -0,0 +1,281 @@ +{ + "Description": "An auto-generated nested stack for the @function directive.", + "AWSTemplateFormatVersion": "2010-09-09", + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + } + }, + "Resources": { + "QuotegeneratorLambdaDataSourceServiceRole2D26810D": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + } + } + }, + "QuotegeneratorLambdaDataSourceServiceRoleDefaultPolicy1B36E7EE": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "lambda:InvokeFunction", + "Effect": "Allow", + "Resource": [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator" + } + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator" + } + ] + }, + ":*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "QuotegeneratorLambdaDataSourceServiceRoleDefaultPolicy1B36E7EE", + "Roles": [ + { + "Ref": "QuotegeneratorLambdaDataSourceServiceRole2D26810D" + } + ] + } + }, + "QuotegeneratorLambdaDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "LambdaConfig": { + "LambdaFunctionArn": { + "Fn::If": [ + "HasEnvironmentParameter", + { + "Fn::Sub": [ + "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator-${env}", + { + "env": { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + } + ] + }, + { + "Fn::Sub": "arn:aws:lambda:${AWS::Region}:${AWS::AccountId}:function:quotegenerator" + } + ] + } + }, + "Name": "QuotegeneratorLambdaDataSource", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "QuotegeneratorLambdaDataSourceServiceRole2D26810D", + "Arn" + ] + }, + "Type": "AWS_LAMBDA" + } + }, + "InvokeQuotegeneratorLambdaDataSourceInvokeQuotegeneratorLambdaDataSourceAppSyncFunctionE6745EF3": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "QuotegeneratorLambdaDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "InvokeQuotegeneratorLambdaDataSource", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeQuotegeneratorLambdaDataSource.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/InvokeQuotegeneratorLambdaDataSource.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "QuotegeneratorLambdaDataSource" + ] + }, + "QuerygetRandomQuoteResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getRandomQuote", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QueryGetRandomQuoteAuthFNQueryGetRandomQuoteAuthFNAppSyncFunction15864A6C", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "InvokeQuotegeneratorLambdaDataSourceInvokeQuotegeneratorLambdaDataSourceAppSyncFunctionE6745EF3", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": "## [Start] Stash resolver specific context.. **\n$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getRandomQuote\"))\n{}\n## [End] Stash resolver specific context.. **", + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getRandomQuote.res.vtl" + ] + ] + }, + "TypeName": "Query" + } + }, + "QueryGetRandomQuoteAuthFNQueryGetRandomQuoteAuthFNAppSyncFunction15864A6C": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryGetRandomQuoteAuthFN", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getRandomQuote.auth.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + } + }, + "Parameters": { + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Type": "String" + } + } +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-ConnectionStack-x.description.txt b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-ConnectionStack-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-ConnectionStack-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-ConnectionStack-x.outputs.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-ConnectionStack-x.outputs.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-ConnectionStack-x.outputs.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-ConnectionStack-x.parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-ConnectionStack-x.parameters.json new file mode 100644 index 00000000000..0925ede4ea7 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-ConnectionStack-x.parameters.json @@ -0,0 +1,26 @@ +[ + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", + "ParameterValue": "amplify-appsync-files/182d69537a429ad74cd4e2ced5fdadbb4cbf17fc" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", + "ParameterValue": "feqgb7ww75f5lklhnep4rre3va" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", + "ParameterValue": "amplify-projectboards-x-x-deployment" + }, + { + "ParameterKey": "referencetotransformerrootstackTodoNestedStackTodoNestedStackResource9AC126A3OutputstransformerrootstackTodoTodoTableC67E79C2Ref", + "ParameterValue": "Todo-feqgb7ww75f5lklhnep4rre3va-x" + }, + { + "ParameterKey": "referencetotransformerrootstackTodoNestedStackTodoNestedStackResource9AC126A3OutputstransformerrootstackTodoTodoDataSourceBD713D7DName", + "ParameterValue": "TodoTable" + } +] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-ConnectionStack-x.template.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-ConnectionStack-x.template.json new file mode 100644 index 00000000000..e18aebc407b --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-ConnectionStack-x.template.json @@ -0,0 +1,143 @@ +{ + "Resources": { + "Projecttodosauth0FunctionProjecttodosauth0FunctionAppSyncFunctionB9D5F5D1": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "Projecttodosauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Project.todos.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "ProjectTodosDataResolverFnProjectTodosDataResolverFnAppSyncFunction6418E519": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackTodoNestedStackTodoNestedStackResource9AC126A3OutputstransformerrootstackTodoTodoDataSourceBD713D7DName" + }, + "FunctionVersion": "2018-05-29", + "Name": "ProjectTodosDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Project.todos.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Project.todos.res.vtl" + ] + ] + } + } + }, + "ProjecttodosResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "todos", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "Projecttodosauth0FunctionProjecttodosauth0FunctionAppSyncFunctionB9D5F5D1", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "ProjectTodosDataResolverFnProjectTodosDataResolverFnAppSyncFunction6418E519", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Project\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"todos\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "referencetotransformerrootstackTodoNestedStackTodoNestedStackResource9AC126A3OutputstransformerrootstackTodoTodoTableC67E79C2Ref" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Project" + } + } + }, + "Parameters": { + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackTodoNestedStackTodoNestedStackResource9AC126A3OutputstransformerrootstackTodoTodoDataSourceBD713D7DName": { + "Type": "String" + }, + "referencetotransformerrootstackTodoNestedStackTodoNestedStackResource9AC126A3OutputstransformerrootstackTodoTodoTableC67E79C2Ref": { + "Type": "String" + } + } +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-CustomResourcesjson-x.description.txt b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-CustomResourcesjson-x.description.txt new file mode 100644 index 00000000000..21e1447423e --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-CustomResourcesjson-x.description.txt @@ -0,0 +1 @@ +An auto-generated nested stack. diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-CustomResourcesjson-x.outputs.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-CustomResourcesjson-x.outputs.json new file mode 100644 index 00000000000..291e7aad7f7 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-CustomResourcesjson-x.outputs.json @@ -0,0 +1,7 @@ +[ + { + "OutputKey": "EmptyOutput", + "OutputValue": "", + "Description": "An empty output. You may delete this if you have at least one resource above." + } +] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-CustomResourcesjson-x.parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-CustomResourcesjson-x.parameters.json new file mode 100644 index 00000000000..ada78d13c98 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-CustomResourcesjson-x.parameters.json @@ -0,0 +1,22 @@ +[ + { + "ParameterKey": "S3DeploymentBucket", + "ParameterValue": "amplify-projectboards-x-x-deployment" + }, + { + "ParameterKey": "AppSyncApiId", + "ParameterValue": "feqgb7ww75f5lklhnep4rre3va" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "S3DeploymentRootKey", + "ParameterValue": "amplify-appsync-files/182d69537a429ad74cd4e2ced5fdadbb4cbf17fc" + }, + { + "ParameterKey": "AppSyncApiName", + "ParameterValue": "projectboards" + } +] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-CustomResourcesjson-x.template.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-CustomResourcesjson-x.template.json new file mode 100644 index 00000000000..5fe357d6096 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-CustomResourcesjson-x.template.json @@ -0,0 +1,61 @@ +{ + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "An auto-generated nested stack.", + "Metadata": {}, + "Parameters": { + "AppSyncApiId": { + "Type": "String", + "Description": "The id of the AppSync API associated with this project." + }, + "AppSyncApiName": { + "Type": "String", + "Description": "The name of the AppSync API", + "Default": "AppSyncSimpleTransform" + }, + "env": { + "Type": "String", + "Description": "The environment name. e.g. Dev, Test, or Production", + "Default": "NONE" + }, + "S3DeploymentBucket": { + "Type": "String", + "Description": "The S3 bucket containing all deployment assets for the project." + }, + "S3DeploymentRootKey": { + "Type": "String", + "Description": "An S3 key relative to the S3DeploymentBucket that points to the root\nof the deployment directory." + } + }, + "Resources": { + "EmptyResource": { + "Type": "Custom::EmptyResource", + "Condition": "AlwaysFalse" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + } + ] + }, + "AlwaysFalse": { + "Fn::Equals": [ + "true", + "false" + ] + } + }, + "Outputs": { + "EmptyOutput": { + "Description": "An empty output. You may delete this if you have at least one resource above.", + "Value": "" + } + } +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-Project-x.description.txt b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-Project-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-Project-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-Project-x.outputs.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-Project-x.outputs.json new file mode 100644 index 00000000000..4f68851c1a7 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-Project-x.outputs.json @@ -0,0 +1,48 @@ +[ + { + "OutputKey": "transformerrootstackProjectQuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionA68979B1FunctionId", + "OutputValue": "p2syyrndcrbbthmujzpmqdgj6q" + }, + { + "OutputKey": "transformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId", + "OutputValue": "743kj5wghbcktfwehiwd666vu4" + }, + { + "OutputKey": "transformerrootstackProjectSubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction5D3DF8A6FunctionId", + "OutputValue": "zpztaslfpjefjlnnisvqqirksq" + }, + { + "OutputKey": "transformerrootstackProjectSubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDFF26C0AFunctionId", + "OutputValue": "vgr42yniszfn3mta3dnwaranla" + }, + { + "OutputKey": "GetAttProjectDataSourceName", + "OutputValue": "ProjectTable", + "Description": "Your model DataSource name.", + "ExportName": "feqgb7ww75f5lklhnep4rre3va:GetAtt:ProjectDataSource:Name" + }, + { + "OutputKey": "transformerrootstackProjectMutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunctionF33DB6D0FunctionId", + "OutputValue": "lwrbaw7a2vbe3kreguyscd2epu" + }, + { + "OutputKey": "transformerrootstackProjectMutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction63376DADFunctionId", + "OutputValue": "6djnxtovwjakrk5hgncmahcqfa" + }, + { + "OutputKey": "transformerrootstackProjectProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunctionC730BF38FunctionId", + "OutputValue": "zlgjaicmznb6hbf6a76ioetuxa" + }, + { + "OutputKey": "GetAttProjectTableStreamArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Project-feqgb7ww75f5lklhnep4rre3va-x/stream/2026-04-15T03:52:26.358", + "Description": "Your DynamoDB table StreamArn.", + "ExportName": "feqgb7ww75f5lklhnep4rre3va:GetAtt:ProjectTable:StreamArn" + }, + { + "OutputKey": "GetAttProjectTableName", + "OutputValue": "Project-feqgb7ww75f5lklhnep4rre3va-x", + "Description": "Your DynamoDB table name.", + "ExportName": "feqgb7ww75f5lklhnep4rre3va:GetAtt:ProjectTable:Name" + } +] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-Project-x.parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-Project-x.parameters.json new file mode 100644 index 00000000000..d235f4ea19e --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-Project-x.parameters.json @@ -0,0 +1,42 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", + "ParameterValue": "amplify-appsync-files/182d69537a429ad74cd4e2ced5fdadbb4cbf17fc" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", + "ParameterValue": "feqgb7ww75f5lklhnep4rre3va" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", + "ParameterValue": "amplify-projectboards-x-x-deployment" + }, + { + "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", + "ParameterValue": "x" + } +] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-Project-x.template.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-Project-x.template.json new file mode 100644 index 00000000000..28b4d228b39 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-Project-x.template.json @@ -0,0 +1,1536 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "ProjectTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "Project-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Retain" + }, + "ProjectIAMRole928454B5": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem", + "dynamodb:ConditionCheckItem", + "dynamodb:DescribeTable", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "Project-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "Project-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess" + } + ], + "RoleName": { + "Fn::Join": [ + "", + [ + "ProjectIAMRole032cf0-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "ProjectIAMRoleDefaultPolicy08A73B99": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "ProjectTable", + "Arn" + ] + }, + { + "Ref": "AWS::NoValue" + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "ProjectIAMRoleDefaultPolicy08A73B99", + "Roles": [ + { + "Ref": "ProjectIAMRole928454B5" + } + ] + } + }, + "ProjectDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "ProjectTable" + } + }, + "Name": "ProjectTable", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "ProjectIAMRole928454B5", + "Arn" + ] + }, + "Type": "AMAZON_DYNAMODB" + }, + "DependsOn": [ + "ProjectIAMRole928454B5" + ] + }, + "QuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionED686A7E": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetProjectauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getProject.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "QuerygetProjectpostAuth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getProject.postAuth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "QueryGetProjectDataResolverFnQueryGetProjectDataResolverFnAppSyncFunctionD6A0F260": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProjectDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryGetProjectDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getProject.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getProject.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ProjectDataSource" + ] + }, + "GetProjectResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getProject", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionED686A7E", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryGetProjectDataResolverFnQueryGetProjectDataResolverFnAppSyncFunctionD6A0F260", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ProjectTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + } + }, + "QueryListProjectsDataResolverFnQueryListProjectsDataResolverFnAppSyncFunction0812E3B9": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProjectDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryListProjectsDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listProjects.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listProjects.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ProjectDataSource" + ] + }, + "ListProjectResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listProjects", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionED686A7E", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QueryListProjectsDataResolverFnQueryListProjectsDataResolverFnAppSyncFunction0812E3B9", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listProjects\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ProjectTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + } + }, + "MutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction412D09B9": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateProjectinit0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createProject.init.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "MutationcreateProjectauth0FunctionMutationcreateProjectauth0FunctionAppSyncFunction4FB957D8": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateProjectauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createProject.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "MutationCreateProjectDataResolverFnMutationCreateProjectDataResolverFnAppSyncFunction729D2B08": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProjectDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationCreateProjectDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createProject.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createProject.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ProjectDataSource" + ] + }, + "CreateProjectResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createProject", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction412D09B9", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationcreateProjectauth0FunctionMutationcreateProjectauth0FunctionAppSyncFunction4FB957D8", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationCreateProjectDataResolverFnMutationCreateProjectDataResolverFnAppSyncFunction729D2B08", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ProjectTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "MutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunction20F7A53C": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateProjectinit0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateProject.init.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "MutationupdateProjectauth0FunctionMutationupdateProjectauth0FunctionAppSyncFunctionF9C2F303": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProjectDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateProjectauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateProject.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateProject.auth.1.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ProjectDataSource" + ] + }, + "MutationUpdateProjectDataResolverFnMutationUpdateProjectDataResolverFnAppSyncFunction9E902778": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProjectDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationUpdateProjectDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateProject.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateProject.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ProjectDataSource" + ] + }, + "UpdateProjectResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateProject", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunction20F7A53C", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationupdateProjectauth0FunctionMutationupdateProjectauth0FunctionAppSyncFunctionF9C2F303", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationUpdateProjectDataResolverFnMutationUpdateProjectDataResolverFnAppSyncFunction9E902778", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ProjectTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "MutationdeleteProjectauth0FunctionMutationdeleteProjectauth0FunctionAppSyncFunction67C3BC9D": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProjectDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeleteProjectauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteProject.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteProject.auth.1.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ProjectDataSource" + ] + }, + "MutationDeleteProjectDataResolverFnMutationDeleteProjectDataResolverFnAppSyncFunctionC40E2160": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "ProjectDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationDeleteProjectDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteProject.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteProject.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "ProjectDataSource" + ] + }, + "DeleteProjectResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteProject", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationdeleteProjectauth0FunctionMutationdeleteProjectauth0FunctionAppSyncFunction67C3BC9D", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "MutationDeleteProjectDataResolverFnMutationDeleteProjectDataResolverFnAppSyncFunctionC40E2160", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "ProjectTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "SubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction658E1FC9": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptiononCreateProjectauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Subscription.onCreateProject.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "SubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDABDBE4E": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "SubscriptionOnCreateProjectDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Subscription.onCreateProject.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Subscription.onCreateProject.res.vtl" + ] + ] + } + } + }, + "SubscriptiononCreateProjectResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateProject", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction658E1FC9", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDABDBE4E", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + }, + "SubscriptiononUpdateProjectResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateProject", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction658E1FC9", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDABDBE4E", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + }, + "SubscriptiononDeleteProjectResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteProject", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "SubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction658E1FC9", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4", + "FunctionId" + ] + }, + { + "Fn::GetAtt": [ + "SubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDABDBE4E", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteProject\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + }, + "ProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunction7F1893B2": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "ProjectOwnerDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Project.owner.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Project.owner.res.vtl" + ] + ] + } + } + }, + "ProjectownerResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "owner", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "ProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunction7F1893B2", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Project\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"owner\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Project" + } + } + }, + "Outputs": { + "GetAttProjectTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "ProjectTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ProjectTable:StreamArn" + ] + ] + } + } + }, + "GetAttProjectTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "ProjectTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ProjectTable:Name" + ] + ] + } + } + }, + "GetAttProjectDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "ProjectDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:ProjectDataSource:Name" + ] + ] + } + } + }, + "transformerrootstackProjectQuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionA68979B1FunctionId": { + "Value": { + "Fn::GetAtt": [ + "QuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionED686A7E", + "FunctionId" + ] + } + }, + "transformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId": { + "Value": { + "Fn::GetAtt": [ + "QuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction02C528A4", + "FunctionId" + ] + } + }, + "transformerrootstackProjectMutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction63376DADFunctionId": { + "Value": { + "Fn::GetAtt": [ + "MutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction412D09B9", + "FunctionId" + ] + } + }, + "transformerrootstackProjectMutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunctionF33DB6D0FunctionId": { + "Value": { + "Fn::GetAtt": [ + "MutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunction20F7A53C", + "FunctionId" + ] + } + }, + "transformerrootstackProjectSubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction5D3DF8A6FunctionId": { + "Value": { + "Fn::GetAtt": [ + "SubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction658E1FC9", + "FunctionId" + ] + } + }, + "transformerrootstackProjectSubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDFF26C0AFunctionId": { + "Value": { + "Fn::GetAtt": [ + "SubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDABDBE4E", + "FunctionId" + ] + } + }, + "transformerrootstackProjectProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunctionC730BF38FunctionId": { + "Value": { + "Fn::GetAtt": [ + "ProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunction7F1893B2", + "FunctionId" + ] + } + } + } +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-Todo-x.description.txt b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-Todo-x.description.txt new file mode 100644 index 00000000000..8b137891791 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-Todo-x.description.txt @@ -0,0 +1 @@ + diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-Todo-x.outputs.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-Todo-x.outputs.json new file mode 100644 index 00000000000..ea85d85aff2 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-Todo-x.outputs.json @@ -0,0 +1,28 @@ +[ + { + "OutputKey": "GetAttTodoTableName", + "OutputValue": "Todo-feqgb7ww75f5lklhnep4rre3va-x", + "Description": "Your DynamoDB table name.", + "ExportName": "feqgb7ww75f5lklhnep4rre3va:GetAtt:TodoTable:Name" + }, + { + "OutputKey": "GetAttTodoDataSourceName", + "OutputValue": "TodoTable", + "Description": "Your model DataSource name.", + "ExportName": "feqgb7ww75f5lklhnep4rre3va:GetAtt:TodoDataSource:Name" + }, + { + "OutputKey": "transformerrootstackTodoTodoTableC67E79C2Ref", + "OutputValue": "Todo-feqgb7ww75f5lklhnep4rre3va-x" + }, + { + "OutputKey": "GetAttTodoTableStreamArn", + "OutputValue": "arn:aws:dynamodb:us-east-1:123456789012:table/Todo-feqgb7ww75f5lklhnep4rre3va-x/stream/2026-04-15T03:53:14.131", + "Description": "Your DynamoDB table StreamArn.", + "ExportName": "feqgb7ww75f5lklhnep4rre3va:GetAtt:TodoTable:StreamArn" + }, + { + "OutputKey": "transformerrootstackTodoTodoDataSourceBD713D7DName", + "OutputValue": "TodoTable" + } +] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-Todo-x.parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-Todo-x.parameters.json new file mode 100644 index 00000000000..ae717c20bc7 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-Todo-x.parameters.json @@ -0,0 +1,70 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref", + "ParameterValue": "amplify-appsync-files/182d69537a429ad74cd4e2ced5fdadbb4cbf17fc" + }, + { + "ParameterKey": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectMutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunctionF33DB6D0FunctionId", + "ParameterValue": "lwrbaw7a2vbe3kreguyscd2epu" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name", + "ParameterValue": "NONE_DS" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "referencetotransformerrootstackGraphQLAPI20497F53ApiId", + "ParameterValue": "feqgb7ww75f5lklhnep4rre3va" + }, + { + "ParameterKey": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionA68979B1FunctionId", + "ParameterValue": "p2syyrndcrbbthmujzpmqdgj6q" + }, + { + "ParameterKey": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDFF26C0AFunctionId", + "ParameterValue": "vgr42yniszfn3mta3dnwaranla" + }, + { + "ParameterKey": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectMutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction63376DADFunctionId", + "ParameterValue": "6djnxtovwjakrk5hgncmahcqfa" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunctionC730BF38FunctionId", + "ParameterValue": "zlgjaicmznb6hbf6a76ioetuxa" + }, + { + "ParameterKey": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId", + "ParameterValue": "743kj5wghbcktfwehiwd666vu4" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "referencetotransformerrootstackS3DeploymentBucket7592718ARef", + "ParameterValue": "amplify-projectboards-x-x-deployment" + }, + { + "ParameterKey": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction5D3DF8A6FunctionId", + "ParameterValue": "zpztaslfpjefjlnnisvqqirksq" + }, + { + "ParameterKey": "referencetotransformerrootstackenv10C5A902Ref", + "ParameterValue": "x" + } +] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-Todo-x.template.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-Todo-x.template.json new file mode 100644 index 00000000000..2742968159a --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x-Todo-x.template.json @@ -0,0 +1,1262 @@ +{ + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Type": "String" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Type": "String" + }, + "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionA68979B1FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Type": "String" + }, + "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectMutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction63376DADFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectMutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunctionF33DB6D0FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction5D3DF8A6FunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDFF26C0AFunctionId": { + "Type": "String" + }, + "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunctionC730BF38FunctionId": { + "Type": "String" + } + }, + "Conditions": { + "HasEnvironmentParameter": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + }, + "NONE" + ] + } + ] + }, + "ShouldUseServerSideEncryption": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "true" + ] + }, + "ShouldUsePayPerRequestBilling": { + "Fn::Equals": [ + { + "Ref": "DynamoDBBillingMode" + }, + "PAY_PER_REQUEST" + ] + }, + "ShouldUsePointInTimeRecovery": { + "Fn::Equals": [ + { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "true" + ] + } + }, + "Resources": { + "TodoTable": { + "Type": "AWS::DynamoDB::Table", + "Properties": { + "AttributeDefinitions": [ + { + "AttributeName": "id", + "AttributeType": "S" + }, + { + "AttributeName": "projectTodosId", + "AttributeType": "S" + } + ], + "BillingMode": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + "PAY_PER_REQUEST", + { + "Ref": "AWS::NoValue" + } + ] + }, + "GlobalSecondaryIndexes": [ + { + "IndexName": "gsi-Project.todos", + "KeySchema": [ + { + "AttributeName": "projectTodosId", + "KeyType": "HASH" + } + ], + "Projection": { + "ProjectionType": "ALL" + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + } + } + ], + "KeySchema": [ + { + "AttributeName": "id", + "KeyType": "HASH" + } + ], + "PointInTimeRecoverySpecification": { + "Fn::If": [ + "ShouldUsePointInTimeRecovery", + { + "PointInTimeRecoveryEnabled": true + }, + { + "Ref": "AWS::NoValue" + } + ] + }, + "ProvisionedThroughput": { + "Fn::If": [ + "ShouldUsePayPerRequestBilling", + { + "Ref": "AWS::NoValue" + }, + { + "ReadCapacityUnits": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "WriteCapacityUnits": { + "Ref": "DynamoDBModelTableWriteIOPS" + } + } + ] + }, + "SSESpecification": { + "SSEEnabled": { + "Fn::If": [ + "ShouldUseServerSideEncryption", + true, + false + ] + } + }, + "StreamSpecification": { + "StreamViewType": "NEW_AND_OLD_IMAGES" + }, + "TableName": { + "Fn::Join": [ + "", + [ + "Todo-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Retain" + }, + "TodoIAMRole2DA8E66E": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "appsync.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Policies": [ + { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:DeleteItem", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:Query", + "dynamodb:UpdateItem", + "dynamodb:ConditionCheckItem", + "dynamodb:DescribeTable", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}", + { + "tablename": { + "Fn::Join": [ + "", + [ + "Todo-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + }, + { + "Fn::Sub": [ + "arn:aws:dynamodb:${AWS::Region}:${AWS::AccountId}:table/${tablename}/*", + { + "tablename": { + "Fn::Join": [ + "", + [ + "Todo-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "DynamoDBAccess" + } + ], + "RoleName": { + "Fn::Join": [ + "", + [ + "TodoIAMRolecfd440-", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "-", + { + "Ref": "referencetotransformerrootstackenv10C5A902Ref" + } + ] + ] + } + } + }, + "TodoIAMRoleDefaultPolicy7BBBF45B": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "dynamodb:BatchGetItem", + "dynamodb:GetRecords", + "dynamodb:GetShardIterator", + "dynamodb:Query", + "dynamodb:GetItem", + "dynamodb:Scan", + "dynamodb:ConditionCheckItem", + "dynamodb:BatchWriteItem", + "dynamodb:PutItem", + "dynamodb:UpdateItem", + "dynamodb:DeleteItem", + "dynamodb:DescribeTable" + ], + "Effect": "Allow", + "Resource": [ + { + "Fn::GetAtt": [ + "TodoTable", + "Arn" + ] + }, + { + "Fn::Join": [ + "", + [ + { + "Fn::GetAtt": [ + "TodoTable", + "Arn" + ] + }, + "/index/*" + ] + ] + } + ] + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "TodoIAMRoleDefaultPolicy7BBBF45B", + "Roles": [ + { + "Ref": "TodoIAMRole2DA8E66E" + } + ] + } + }, + "TodoDataSource": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DynamoDBConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "TableName": { + "Ref": "TodoTable" + } + }, + "Name": "TodoTable", + "ServiceRoleArn": { + "Fn::GetAtt": [ + "TodoIAMRole2DA8E66E", + "Arn" + ] + }, + "Type": "AMAZON_DYNAMODB" + }, + "DependsOn": [ + "TodoIAMRole2DA8E66E" + ] + }, + "QueryGetTodoDataResolverFnQueryGetTodoDataResolverFnAppSyncFunctionE2B57DAD": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TodoDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryGetTodoDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getTodo.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.getTodo.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "TodoDataSource" + ] + }, + "GetTodoResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "getTodo", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionA68979B1FunctionId" + }, + { + "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryGetTodoDataResolverFnQueryGetTodoDataResolverFnAppSyncFunctionE2B57DAD", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"getTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "TodoTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + } + }, + "QueryListTodosDataResolverFnQueryListTodosDataResolverFnAppSyncFunctionF825FE47": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TodoDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QueryListTodosDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listTodos.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Query.listTodos.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "TodoDataSource" + ] + }, + "ListTodoResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "listTodos", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionA68979B1FunctionId" + }, + { + "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId" + }, + { + "Fn::GetAtt": [ + "QueryListTodosDataResolverFnQueryListTodosDataResolverFnAppSyncFunctionF825FE47", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Query\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"listTodos\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "TodoTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Query" + } + }, + "MutationcreateTodoauth0FunctionMutationcreateTodoauth0FunctionAppSyncFunction21817E36": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Ref": "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name" + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationcreateTodoauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createTodo.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson({})" + } + }, + "MutationCreateTodoDataResolverFnMutationCreateTodoDataResolverFnAppSyncFunction900EC5CF": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TodoDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationCreateTodoDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createTodo.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.createTodo.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "TodoDataSource" + ] + }, + "CreateTodoResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "createTodo", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectMutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction63376DADFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationcreateTodoauth0FunctionMutationcreateTodoauth0FunctionAppSyncFunction21817E36", + "FunctionId" + ] + }, + { + "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationCreateTodoDataResolverFnMutationCreateTodoDataResolverFnAppSyncFunction900EC5CF", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"createTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "TodoTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "MutationupdateTodoauth0FunctionMutationupdateTodoauth0FunctionAppSyncFunction1E4A3112": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TodoDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationupdateTodoauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateTodo.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateTodo.auth.1.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "TodoDataSource" + ] + }, + "MutationUpdateTodoDataResolverFnMutationUpdateTodoDataResolverFnAppSyncFunctionBC238C49": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TodoDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationUpdateTodoDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateTodo.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.updateTodo.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "TodoDataSource" + ] + }, + "UpdateTodoResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "updateTodo", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectMutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunctionF33DB6D0FunctionId" + }, + { + "Fn::GetAtt": [ + "MutationupdateTodoauth0FunctionMutationupdateTodoauth0FunctionAppSyncFunction1E4A3112", + "FunctionId" + ] + }, + { + "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationUpdateTodoDataResolverFnMutationUpdateTodoDataResolverFnAppSyncFunctionBC238C49", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"updateTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "TodoTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "MutationdeleteTodoauth0FunctionMutationdeleteTodoauth0FunctionAppSyncFunctionC82C218C": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TodoDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationdeleteTodoauth0Function", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteTodo.auth.1.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteTodo.auth.1.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "TodoDataSource" + ] + }, + "MutationDeleteTodoDataResolverFnMutationDeleteTodoDataResolverFnAppSyncFunction3879153F": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "DataSourceName": { + "Fn::GetAtt": [ + "TodoDataSource", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "MutationDeleteTodoDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteTodo.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "referencetotransformerrootstackS3DeploymentBucket7592718ARef" + }, + "/", + { + "Ref": "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref" + }, + "/resolvers/Mutation.deleteTodo.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "TodoDataSource" + ] + }, + "DeleteTodoResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "deleteTodo", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "MutationdeleteTodoauth0FunctionMutationdeleteTodoauth0FunctionAppSyncFunctionC82C218C", + "FunctionId" + ] + }, + { + "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId" + }, + { + "Fn::GetAtt": [ + "MutationDeleteTodoDataResolverFnMutationDeleteTodoDataResolverFnAppSyncFunction3879153F", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Mutation\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"deleteTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"AMAZON_DYNAMODB\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n$util.qr($ctx.stash.put(\"tableName\", \"", + { + "Ref": "TodoTable" + }, + "\"))\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Mutation" + } + }, + "SubscriptiononCreateTodoResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onCreateTodo", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction5D3DF8A6FunctionId" + }, + { + "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDFF26C0AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onCreateTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + }, + "SubscriptiononUpdateTodoResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onUpdateTodo", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction5D3DF8A6FunctionId" + }, + { + "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDFF26C0AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onUpdateTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + }, + "SubscriptiononDeleteTodoResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "onDeleteTodo", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction5D3DF8A6FunctionId" + }, + { + "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId" + }, + { + "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDFF26C0AFunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Subscription\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"onDeleteTodo\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Subscription" + } + }, + "TodoownerResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "FieldName": "owner", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Ref": "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunctionC730BF38FunctionId" + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"Todo\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"owner\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "Todo" + } + } + }, + "Outputs": { + "GetAttTodoTableStreamArn": { + "Description": "Your DynamoDB table StreamArn.", + "Value": { + "Fn::GetAtt": [ + "TodoTable", + "StreamArn" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:TodoTable:StreamArn" + ] + ] + } + } + }, + "GetAttTodoTableName": { + "Description": "Your DynamoDB table name.", + "Value": { + "Ref": "TodoTable" + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:TodoTable:Name" + ] + ] + } + } + }, + "GetAttTodoDataSourceName": { + "Description": "Your model DataSource name.", + "Value": { + "Fn::GetAtt": [ + "TodoDataSource", + "Name" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "referencetotransformerrootstackGraphQLAPI20497F53ApiId" + }, + "GetAtt:TodoDataSource:Name" + ] + ] + } + } + }, + "transformerrootstackTodoTodoDataSourceBD713D7DName": { + "Value": { + "Fn::GetAtt": [ + "TodoDataSource", + "Name" + ] + } + }, + "transformerrootstackTodoTodoTableC67E79C2Ref": { + "Value": { + "Ref": "TodoTable" + } + } + } +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x.description.txt b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x.description.txt new file mode 100644 index 00000000000..f9e13281dee --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"api-AppSync","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x.outputs.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x.outputs.json new file mode 100644 index 00000000000..716c392abda --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x.outputs.json @@ -0,0 +1,20 @@ +[ + { + "OutputKey": "GraphQLAPIIdOutput", + "OutputValue": "feqgb7ww75f5lklhnep4rre3va", + "Description": "Your GraphQL API ID.", + "ExportName": "amplify-projectboards-x-x-apiprojectboards-x:GraphQLApiId" + }, + { + "OutputKey": "GraphQLAPIEndpointOutput", + "OutputValue": "https://uuqax34aozdp5n47sh44q2ytka.appsync-api.us-east-1.amazonaws.com/graphql", + "Description": "Your GraphQL API endpoint.", + "ExportName": "amplify-projectboards-x-x-apiprojectboards-x:GraphQLApiEndpoint" + }, + { + "OutputKey": "GraphQLAPIKeyOutput", + "OutputValue": "da2-fakeapikey00000000000000", + "Description": "Your GraphQL API ID.", + "ExportName": "amplify-projectboards-x-x-apiprojectboards-x:GraphQLApiKey" + } +] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x.parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x.parameters.json new file mode 100644 index 00000000000..f5859b63512 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x.parameters.json @@ -0,0 +1,42 @@ +[ + { + "ParameterKey": "DynamoDBModelTableReadIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "DynamoDBEnableServerSideEncryption", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBEnablePointInTimeRecovery", + "ParameterValue": "false" + }, + { + "ParameterKey": "DynamoDBBillingMode", + "ParameterValue": "PAY_PER_REQUEST" + }, + { + "ParameterKey": "S3DeploymentBucket", + "ParameterValue": "amplify-projectboards-x-x-deployment" + }, + { + "ParameterKey": "DynamoDBModelTableWriteIOPS", + "ParameterValue": "5" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "S3DeploymentRootKey", + "ParameterValue": "amplify-appsync-files/182d69537a429ad74cd4e2ced5fdadbb4cbf17fc" + }, + { + "ParameterKey": "AppSyncApiName", + "ParameterValue": "projectboards" + }, + { + "ParameterKey": "AuthCognitoUserPoolId", + "ParameterValue": "us-east-1_RF9bhQiUc" + } +] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x.template.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x.template.json new file mode 100644 index 00000000000..458b4e96b54 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-apiprojectboards-x.template.json @@ -0,0 +1,1052 @@ +{ + "Parameters": { + "env": { + "Type": "String", + "Default": "NONE" + }, + "AppSyncApiName": { + "Type": "String", + "Default": "AppSyncSimpleTransform" + }, + "AuthCognitoUserPoolId": { + "Type": "String" + }, + "DynamoDBModelTableReadIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of read IOPS the table should support." + }, + "DynamoDBModelTableWriteIOPS": { + "Type": "Number", + "Default": 5, + "Description": "The number of write IOPS the table should support." + }, + "DynamoDBBillingMode": { + "Type": "String", + "Default": "PAY_PER_REQUEST", + "AllowedValues": [ + "PAY_PER_REQUEST", + "PROVISIONED" + ], + "Description": "Configure @model types to create DynamoDB tables with PAY_PER_REQUEST or PROVISIONED billing modes." + }, + "DynamoDBEnablePointInTimeRecovery": { + "Type": "String", + "Default": "false", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Whether to enable Point in Time Recovery on the table." + }, + "DynamoDBEnableServerSideEncryption": { + "Type": "String", + "Default": "true", + "AllowedValues": [ + "true", + "false" + ], + "Description": "Enable server side encryption powered by KMS." + }, + "S3DeploymentBucket": { + "Type": "String", + "Description": "An S3 Bucket name where assets are deployed" + }, + "S3DeploymentRootKey": { + "Type": "String", + "Description": "An S3 key relative to the S3DeploymentBucket that points to the root of the deployment directory." + } + }, + "Resources": { + "GraphQLAPI": { + "Type": "AWS::AppSync::GraphQLApi", + "Properties": { + "AdditionalAuthenticationProviders": [ + { + "AuthenticationType": "AMAZON_COGNITO_USER_POOLS", + "UserPoolConfig": { + "AwsRegion": { + "Ref": "AWS::Region" + }, + "UserPoolId": { + "Ref": "AuthCognitoUserPoolId" + } + } + } + ], + "AuthenticationType": "API_KEY", + "Name": { + "Fn::Join": [ + "", + [ + { + "Ref": "AppSyncApiName" + }, + "-", + { + "Ref": "env" + } + ] + ] + } + } + }, + "GraphQLAPITransformerSchema3CB2AE18": { + "Type": "AWS::AppSync::GraphQLSchema", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "DefinitionS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/schema.graphql" + ] + ] + } + } + }, + "GraphQLAPIDefaultApiKey215A6DD7": { + "Type": "AWS::AppSync::ApiKey", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "Expires": 1776829881 + } + }, + "GraphQLAPINONEDS95A13CF0": { + "Type": "AWS::AppSync::DataSource", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "Name": "NONE_DS", + "Type": "NONE" + } + }, + "Project": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + } + }, + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/Project.json" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "Todo": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "DynamoDBModelTableReadIOPS": { + "Ref": "DynamoDBModelTableReadIOPS" + }, + "DynamoDBModelTableWriteIOPS": { + "Ref": "DynamoDBModelTableWriteIOPS" + }, + "DynamoDBBillingMode": { + "Ref": "DynamoDBBillingMode" + }, + "DynamoDBEnablePointInTimeRecovery": { + "Ref": "DynamoDBEnablePointInTimeRecovery" + }, + "DynamoDBEnableServerSideEncryption": { + "Ref": "DynamoDBEnableServerSideEncryption" + }, + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionA68979B1FunctionId": { + "Fn::GetAtt": [ + "Project", + "Outputs.transformerrootstackProjectQuerygetProjectauth0FunctionQuerygetProjectauth0FunctionAppSyncFunctionA68979B1FunctionId" + ] + }, + "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId": { + "Fn::GetAtt": [ + "Project", + "Outputs.transformerrootstackProjectQuerygetProjectpostAuth0FunctionQuerygetProjectpostAuth0FunctionAppSyncFunction5082BB6BFunctionId" + ] + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectMutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction63376DADFunctionId": { + "Fn::GetAtt": [ + "Project", + "Outputs.transformerrootstackProjectMutationcreateProjectinit0FunctionMutationcreateProjectinit0FunctionAppSyncFunction63376DADFunctionId" + ] + }, + "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectMutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunctionF33DB6D0FunctionId": { + "Fn::GetAtt": [ + "Project", + "Outputs.transformerrootstackProjectMutationupdateProjectinit0FunctionMutationupdateProjectinit0FunctionAppSyncFunctionF33DB6D0FunctionId" + ] + }, + "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction5D3DF8A6FunctionId": { + "Fn::GetAtt": [ + "Project", + "Outputs.transformerrootstackProjectSubscriptiononCreateProjectauth0FunctionSubscriptiononCreateProjectauth0FunctionAppSyncFunction5D3DF8A6FunctionId" + ] + }, + "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectSubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDFF26C0AFunctionId": { + "Fn::GetAtt": [ + "Project", + "Outputs.transformerrootstackProjectSubscriptionOnCreateProjectDataResolverFnSubscriptionOnCreateProjectDataResolverFnAppSyncFunctionDFF26C0AFunctionId" + ] + }, + "referencetotransformerrootstackProjectNestedStackProjectNestedStackResourceD9389F63OutputstransformerrootstackProjectProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunctionC730BF38FunctionId": { + "Fn::GetAtt": [ + "Project", + "Outputs.transformerrootstackProjectProjectOwnerDataResolverFnProjectOwnerDataResolverFnAppSyncFunctionC730BF38FunctionId" + ] + } + }, + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/Todo.json" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "FunctionDirectiveStack": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetotransformerrootstackenv10C5A902Ref": { + "Ref": "env" + }, + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + } + }, + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/FunctionDirectiveStack.json" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "ConnectionStack": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetotransformerrootstackGraphQLAPI20497F53ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "referencetotransformerrootstackGraphQLAPINONEDS2BA9D1C8Name": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "referencetotransformerrootstackS3DeploymentBucket7592718ARef": { + "Ref": "S3DeploymentBucket" + }, + "referencetotransformerrootstackS3DeploymentRootKeyA71EA735Ref": { + "Ref": "S3DeploymentRootKey" + }, + "referencetotransformerrootstackTodoNestedStackTodoNestedStackResource9AC126A3OutputstransformerrootstackTodoTodoDataSourceBD713D7DName": { + "Fn::GetAtt": [ + "Todo", + "Outputs.transformerrootstackTodoTodoDataSourceBD713D7DName" + ] + }, + "referencetotransformerrootstackTodoNestedStackTodoNestedStackResource9AC126A3OutputstransformerrootstackTodoTodoTableC67E79C2Ref": { + "Fn::GetAtt": [ + "Todo", + "Outputs.transformerrootstackTodoTodoTableC67E79C2Ref" + ] + } + }, + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/stacks/ConnectionStack.json" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18", + "Todo" + ] + }, + "QuoteResponseMessageDataResolverFnQuoteResponseMessageDataResolverFnAppSyncFunctionC82EE8AA": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "DataSourceName": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QuoteResponseMessageDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/resolvers/QuoteResponse.message.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/resolvers/QuoteResponse.message.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "QuoteResponsemessageResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "FieldName": "message", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuoteResponseMessageDataResolverFnQuoteResponseMessageDataResolverFnAppSyncFunctionC82EE8AA", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"QuoteResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"message\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "QuoteResponse" + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "QuoteResponseQuoteDataResolverFnQuoteResponseQuoteDataResolverFnAppSyncFunction83E6C036": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "DataSourceName": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QuoteResponseQuoteDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/resolvers/QuoteResponse.quote.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/resolvers/QuoteResponse.quote.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "QuoteResponsequoteResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "FieldName": "quote", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuoteResponseQuoteDataResolverFnQuoteResponseQuoteDataResolverFnAppSyncFunction83E6C036", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"QuoteResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"quote\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "QuoteResponse" + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "QuoteResponseAuthorDataResolverFnQuoteResponseAuthorDataResolverFnAppSyncFunction8D32A5C7": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "DataSourceName": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QuoteResponseAuthorDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/resolvers/QuoteResponse.author.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/resolvers/QuoteResponse.author.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "QuoteResponseauthorResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "FieldName": "author", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuoteResponseAuthorDataResolverFnQuoteResponseAuthorDataResolverFnAppSyncFunction8D32A5C7", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"QuoteResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"author\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "QuoteResponse" + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "QuoteResponseTimestampDataResolverFnQuoteResponseTimestampDataResolverFnAppSyncFunction65DFB1C3": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "DataSourceName": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QuoteResponseTimestampDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/resolvers/QuoteResponse.timestamp.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/resolvers/QuoteResponse.timestamp.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "QuoteResponsetimestampResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "FieldName": "timestamp", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuoteResponseTimestampDataResolverFnQuoteResponseTimestampDataResolverFnAppSyncFunction65DFB1C3", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"QuoteResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"timestamp\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "QuoteResponse" + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "QuoteResponseTotalQuotesDataResolverFnQuoteResponseTotalQuotesDataResolverFnAppSyncFunctionD1B9B9A8": { + "Type": "AWS::AppSync::FunctionConfiguration", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "DataSourceName": { + "Fn::GetAtt": [ + "GraphQLAPINONEDS95A13CF0", + "Name" + ] + }, + "FunctionVersion": "2018-05-29", + "Name": "QuoteResponseTotalQuotesDataResolverFn", + "RequestMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/resolvers/QuoteResponse.totalQuotes.req.vtl" + ] + ] + }, + "ResponseMappingTemplateS3Location": { + "Fn::Join": [ + "", + [ + "s3://", + { + "Ref": "S3DeploymentBucket" + }, + "/", + { + "Ref": "S3DeploymentRootKey" + }, + "/resolvers/QuoteResponse.totalQuotes.res.vtl" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "QuoteResponsetotalQuotesResolver": { + "Type": "AWS::AppSync::Resolver", + "Properties": { + "ApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "FieldName": "totalQuotes", + "Kind": "PIPELINE", + "PipelineConfig": { + "Functions": [ + { + "Fn::GetAtt": [ + "QuoteResponseTotalQuotesDataResolverFnQuoteResponseTotalQuotesDataResolverFnAppSyncFunctionD1B9B9A8", + "FunctionId" + ] + } + ] + }, + "RequestMappingTemplate": { + "Fn::Join": [ + "", + [ + "$util.qr($ctx.stash.put(\"typeName\", \"QuoteResponse\"))\n$util.qr($ctx.stash.put(\"fieldName\", \"totalQuotes\"))\n$util.qr($ctx.stash.put(\"conditions\", []))\n$util.qr($ctx.stash.put(\"metadata\", {}))\n$util.qr($ctx.stash.metadata.put(\"dataSourceType\", \"NONE\"))\n$util.qr($ctx.stash.metadata.put(\"apiId\", \"", + { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "\"))\n$util.qr($ctx.stash.put(\"connectionAttributes\", {}))\n\n$util.qr($ctx.stash.put(\"identityPoolId\", \"us-east-1:15d3cf54-98c3-4624-9ace-9dadc85b2890\"))\n$util.qr($ctx.stash.put(\"adminRoles\", []))\n$util.toJson({})" + ] + ] + }, + "ResponseMappingTemplate": "$util.toJson($ctx.prev.result)", + "TypeName": "QuoteResponse" + }, + "DependsOn": [ + "GraphQLAPITransformerSchema3CB2AE18" + ] + }, + "CustomResourcesjson": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "AppSyncApiId": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "AppSyncApiName": { + "Ref": "AppSyncApiName" + }, + "env": { + "Ref": "env" + }, + "S3DeploymentBucket": { + "Ref": "S3DeploymentBucket" + }, + "S3DeploymentRootKey": { + "Ref": "S3DeploymentRootKey" + } + }, + "TemplateURL": { + "Fn::Join": [ + "/", + [ + "https://s3.amazonaws.com", + { + "Ref": "S3DeploymentBucket" + }, + { + "Ref": "S3DeploymentRootKey" + }, + "stacks", + "CustomResources.json" + ] + ] + } + }, + "DependsOn": [ + "GraphQLAPI", + "GraphQLAPITransformerSchema3CB2AE18", + "Project", + "Todo", + "FunctionDirectiveStack", + "ConnectionStack" + ] + } + }, + "Outputs": { + "GraphQLAPIKeyOutput": { + "Description": "Your GraphQL API ID.", + "Value": { + "Fn::GetAtt": [ + "GraphQLAPIDefaultApiKey215A6DD7", + "ApiKey" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "AWS::StackName" + }, + "GraphQLApiKey" + ] + ] + } + } + }, + "GraphQLAPIIdOutput": { + "Description": "Your GraphQL API ID.", + "Value": { + "Fn::GetAtt": [ + "GraphQLAPI", + "ApiId" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "AWS::StackName" + }, + "GraphQLApiId" + ] + ] + } + } + }, + "GraphQLAPIEndpointOutput": { + "Description": "Your GraphQL API endpoint.", + "Value": { + "Fn::GetAtt": [ + "GraphQLAPI", + "GraphQLUrl" + ] + }, + "Export": { + "Name": { + "Fn::Join": [ + ":", + [ + { + "Ref": "AWS::StackName" + }, + "GraphQLApiEndpoint" + ] + ] + } + } + } + }, + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"api-AppSync\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-authprojectboards54040ecc-x.description.txt b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-authprojectboards54040ecc-x.description.txt new file mode 100644 index 00000000000..348d1236678 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-authprojectboards54040ecc-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"auth-Cognito","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-authprojectboards54040ecc-x.outputs.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-authprojectboards54040ecc-x.outputs.json new file mode 100644 index 00000000000..883b3805489 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-authprojectboards54040ecc-x.outputs.json @@ -0,0 +1,35 @@ +[ + { + "OutputKey": "UserPoolId", + "OutputValue": "us-east-1_RF9bhQiUc", + "Description": "Id for the user pool" + }, + { + "OutputKey": "AppClientIDWeb", + "OutputValue": "4165deda0ocqapbc08njs6jr0t", + "Description": "The user pool app client id for web" + }, + { + "OutputKey": "AppClientID", + "OutputValue": "sqgpogjacv674kd5vogpkfpj5", + "Description": "The user pool app client id" + }, + { + "OutputKey": "IdentityPoolId", + "OutputValue": "us-east-1:b610ff34-8e52-4e93-9822-f56e9fca42fd", + "Description": "Id for the identity pool" + }, + { + "OutputKey": "UserPoolArn", + "OutputValue": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_RF9bhQiUc", + "Description": "Arn for the user pool" + }, + { + "OutputKey": "IdentityPoolName", + "OutputValue": "projectboards54040ecc_identitypool_54040ecc__x" + }, + { + "OutputKey": "UserPoolName", + "OutputValue": "projectboards54040ecc_userpool_54040ecc" + } +] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-authprojectboards54040ecc-x.parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-authprojectboards54040ecc-x.parameters.json new file mode 100644 index 00000000000..538f804bf99 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-authprojectboards54040ecc-x.parameters.json @@ -0,0 +1,146 @@ +[ + { + "ParameterKey": "usernameAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "authRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-projectboards-x-x-authRole" + }, + { + "ParameterKey": "autoVerifiedAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "allowUnauthenticatedIdentities", + "ParameterValue": "true" + }, + { + "ParameterKey": "smsVerificationMessage", + "ParameterValue": "Your verification code is {####}" + }, + { + "ParameterKey": "userpoolClientReadAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "breakCircularDependency", + "ParameterValue": "true" + }, + { + "ParameterKey": "mfaTypes", + "ParameterValue": "SMS Text Message" + }, + { + "ParameterKey": "emailVerificationSubject", + "ParameterValue": "Your verification code" + }, + { + "ParameterKey": "sharedId", + "ParameterValue": "54040ecc" + }, + { + "ParameterKey": "useDefault", + "ParameterValue": "default" + }, + { + "ParameterKey": "userpoolClientGenerateSecret", + "ParameterValue": "false" + }, + { + "ParameterKey": "mfaConfiguration", + "ParameterValue": "OFF" + }, + { + "ParameterKey": "identityPoolName", + "ParameterValue": "projectboards54040ecc_identitypool_54040ecc" + }, + { + "ParameterKey": "userPoolGroupList", + "ParameterValue": "" + }, + { + "ParameterKey": "authSelections", + "ParameterValue": "identityPoolAndUserPool" + }, + { + "ParameterKey": "resourceNameTruncated", + "ParameterValue": "projec54040ecc" + }, + { + "ParameterKey": "smsAuthenticationMessage", + "ParameterValue": "Your authentication code is {####}" + }, + { + "ParameterKey": "passwordPolicyMinLength", + "ParameterValue": "8" + }, + { + "ParameterKey": "userPoolName", + "ParameterValue": "projectboards54040ecc_userpool_54040ecc" + }, + { + "ParameterKey": "userpoolClientWriteAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "dependsOn", + "ParameterValue": "" + }, + { + "ParameterKey": "useEnabledMfas", + "ParameterValue": "true" + }, + { + "ParameterKey": "usernameCaseSensitive", + "ParameterValue": "false" + }, + { + "ParameterKey": "resourceName", + "ParameterValue": "projectboards54040ecc" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "serviceName", + "ParameterValue": "Cognito" + }, + { + "ParameterKey": "emailVerificationMessage", + "ParameterValue": "Your verification code is {####}" + }, + { + "ParameterKey": "userpoolClientRefreshTokenValidity", + "ParameterValue": "30" + }, + { + "ParameterKey": "userpoolClientSetAttributes", + "ParameterValue": "false" + }, + { + "ParameterKey": "unauthRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-projectboards-x-x-unauthRole" + }, + { + "ParameterKey": "requiredAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "passwordPolicyCharacters", + "ParameterValue": "" + }, + { + "ParameterKey": "aliasAttributes", + "ParameterValue": "" + }, + { + "ParameterKey": "userpoolClientLambdaRole", + "ParameterValue": "projec54040ecc_userpoolclient_lambda_role" + }, + { + "ParameterKey": "defaultPasswordPolicy", + "ParameterValue": "false" + } +] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-authprojectboards54040ecc-x.template.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-authprojectboards54040ecc-x.template.json new file mode 100644 index 00000000000..8654b4414a3 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-authprojectboards54040ecc-x.template.json @@ -0,0 +1,413 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "identityPoolName": { + "Type": "String" + }, + "allowUnauthenticatedIdentities": { + "Type": "String" + }, + "resourceNameTruncated": { + "Type": "String" + }, + "userPoolName": { + "Type": "String" + }, + "autoVerifiedAttributes": { + "Type": "CommaDelimitedList" + }, + "mfaConfiguration": { + "Type": "String" + }, + "mfaTypes": { + "Type": "CommaDelimitedList" + }, + "smsAuthenticationMessage": { + "Type": "String" + }, + "smsVerificationMessage": { + "Type": "String" + }, + "emailVerificationSubject": { + "Type": "String" + }, + "emailVerificationMessage": { + "Type": "String" + }, + "defaultPasswordPolicy": { + "Type": "String" + }, + "passwordPolicyMinLength": { + "Type": "String" + }, + "passwordPolicyCharacters": { + "Type": "CommaDelimitedList" + }, + "requiredAttributes": { + "Type": "CommaDelimitedList" + }, + "aliasAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientGenerateSecret": { + "Type": "String" + }, + "userpoolClientRefreshTokenValidity": { + "Type": "String" + }, + "userpoolClientWriteAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientReadAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientLambdaRole": { + "Type": "String" + }, + "userpoolClientSetAttributes": { + "Type": "String" + }, + "sharedId": { + "Type": "String" + }, + "resourceName": { + "Type": "String" + }, + "authSelections": { + "Type": "String" + }, + "useDefault": { + "Type": "String" + }, + "usernameAttributes": { + "Type": "CommaDelimitedList" + }, + "userPoolGroupList": { + "Type": "CommaDelimitedList" + }, + "serviceName": { + "Type": "String" + }, + "usernameCaseSensitive": { + "Type": "String" + }, + "useEnabledMfas": { + "Type": "String" + }, + "authRoleArn": { + "Type": "String" + }, + "unauthRoleArn": { + "Type": "String" + }, + "breakCircularDependency": { + "Type": "String" + }, + "dependsOn": { + "Type": "CommaDelimitedList" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + } + }, + "Resources": { + "UserPool": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": { + "Ref": "emailVerificationMessage" + }, + "EmailVerificationSubject": { + "Ref": "emailVerificationSubject" + }, + "MfaConfiguration": { + "Ref": "mfaConfiguration" + }, + "Policies": { + "PasswordPolicy": { + "MinimumLength": { + "Ref": "passwordPolicyMinLength" + }, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + { + "Ref": "userPoolName" + }, + { + "Fn::Join": [ + "", + [ + { + "Ref": "userPoolName" + }, + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "UsernameAttributes": { + "Ref": "usernameAttributes" + }, + "UsernameConfiguration": { + "CaseSensitive": false + } + } + }, + "UserPoolClientWeb": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "projec54040ecc_app_clientWeb", + "RefreshTokenValidity": { + "Ref": "userpoolClientRefreshTokenValidity" + }, + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": { + "Ref": "UserPool" + } + }, + "DependsOn": [ + "UserPool" + ] + }, + "UserPoolClient": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "projec54040ecc_app_client", + "GenerateSecret": { + "Ref": "userpoolClientGenerateSecret" + }, + "RefreshTokenValidity": { + "Ref": "userpoolClientRefreshTokenValidity" + }, + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": { + "Ref": "UserPool" + } + }, + "DependsOn": [ + "UserPool" + ] + }, + "UserPoolClientRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + }, + "Action": "sts:AssumeRole" + } + ] + }, + "RoleName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + { + "Ref": "userpoolClientLambdaRole" + }, + { + "Fn::Join": [ + "", + [ + "upClientLambdaRole54040ecc", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + { + "Ref": "AWS::StackName" + } + ] + } + ] + }, + "-", + { + "Ref": "env" + } + ] + ] + } + ] + } + } + }, + "IdentityPool": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": { + "Ref": "allowUnauthenticatedIdentities" + }, + "CognitoIdentityProviders": [ + { + "ClientId": { + "Ref": "UserPoolClient" + }, + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": { + "Ref": "UserPool" + } + } + ] + } + }, + { + "ClientId": { + "Ref": "UserPoolClientWeb" + }, + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": { + "Ref": "UserPool" + } + } + ] + } + } + ], + "IdentityPoolName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "projectboards54040ecc_identitypool_54040ecc", + { + "Fn::Join": [ + "", + [ + "projectboards54040ecc_identitypool_54040ecc__", + { + "Ref": "env" + } + ] + ] + } + ] + } + } + }, + "IdentityPoolRoleMap": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": { + "Ref": "IdentityPool" + }, + "Roles": { + "unauthenticated": { + "Ref": "unauthRoleArn" + }, + "authenticated": { + "Ref": "authRoleArn" + } + } + }, + "DependsOn": [ + "IdentityPool" + ] + } + }, + "Outputs": { + "IdentityPoolId": { + "Description": "Id for the identity pool", + "Value": { + "Ref": "IdentityPool" + } + }, + "IdentityPoolName": { + "Value": { + "Fn::GetAtt": [ + "IdentityPool", + "Name" + ] + } + }, + "UserPoolId": { + "Description": "Id for the user pool", + "Value": { + "Ref": "UserPool" + } + }, + "UserPoolArn": { + "Description": "Arn for the user pool", + "Value": { + "Fn::GetAtt": [ + "UserPool", + "Arn" + ] + } + }, + "UserPoolName": { + "Value": { + "Ref": "userPoolName" + } + }, + "AppClientIDWeb": { + "Description": "The user pool app client id for web", + "Value": { + "Ref": "UserPoolClientWeb" + } + }, + "AppClientID": { + "Description": "The user pool app client id", + "Value": { + "Ref": "UserPoolClient" + } + } + } +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-functionquotegenerator-x.description.txt b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-functionquotegenerator-x.description.txt new file mode 100644 index 00000000000..6cc2b5048c0 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-functionquotegenerator-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"function-Lambda","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-functionquotegenerator-x.outputs.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-functionquotegenerator-x.outputs.json new file mode 100644 index 00000000000..31cac1ef3d7 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-functionquotegenerator-x.outputs.json @@ -0,0 +1,22 @@ +[ + { + "OutputKey": "LambdaExecutionRoleArn", + "OutputValue": "arn:aws:iam::123456789012:role/projectboardsLambdaRolef283f87f-x" + }, + { + "OutputKey": "Region", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "Arn", + "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:quotegenerator-x" + }, + { + "OutputKey": "Name", + "OutputValue": "quotegenerator-x" + }, + { + "OutputKey": "LambdaExecutionRole", + "OutputValue": "projectboardsLambdaRolef283f87f-x" + } +] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-functionquotegenerator-x.parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-functionquotegenerator-x.parameters.json new file mode 100644 index 00000000000..3f0cda0616e --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-functionquotegenerator-x.parameters.json @@ -0,0 +1,18 @@ +[ + { + "ParameterKey": "CloudWatchRule", + "ParameterValue": "NONE" + }, + { + "ParameterKey": "s3Key", + "ParameterValue": "amplify-builds/quotegenerator-51737a6b73437548654c-build.zip" + }, + { + "ParameterKey": "deploymentBucketName", + "ParameterValue": "amplify-projectboards-x-x-deployment" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + } +] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-functionquotegenerator-x.template.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-functionquotegenerator-x.template.json new file mode 100644 index 00000000000..a43557082f2 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-functionquotegenerator-x.template.json @@ -0,0 +1,202 @@ +{ + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Parameters": { + "CloudWatchRule": { + "Type": "String", + "Default": "NONE", + "Description": " Schedule Expression" + }, + "deploymentBucketName": { + "Type": "String" + }, + "env": { + "Type": "String" + }, + "s3Key": { + "Type": "String" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + } + }, + "Resources": { + "LambdaFunction": { + "Type": "AWS::Lambda::Function", + "Metadata": { + "aws:asset:path": "./src", + "aws:asset:property": "Code" + }, + "Properties": { + "Code": { + "S3Bucket": { + "Ref": "deploymentBucketName" + }, + "S3Key": { + "Ref": "s3Key" + } + }, + "Handler": "index.handler", + "FunctionName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "quotegenerator", + { + "Fn::Join": [ + "", + [ + "quotegenerator", + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "Environment": { + "Variables": { + "ENV": { + "Ref": "env" + }, + "REGION": { + "Ref": "AWS::Region" + } + } + }, + "Role": { + "Fn::GetAtt": [ + "LambdaExecutionRole", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Layers": [], + "Timeout": 25 + } + }, + "LambdaExecutionRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "RoleName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "projectboardsLambdaRolef283f87f", + { + "Fn::Join": [ + "", + [ + "projectboardsLambdaRolef283f87f", + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": [ + "lambda.amazonaws.com" + ] + }, + "Action": [ + "sts:AssumeRole" + ] + } + ] + } + } + }, + "lambdaexecutionpolicy": { + "DependsOn": [ + "LambdaExecutionRole" + ], + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyName": "lambda-execution-policy", + "Roles": [ + { + "Ref": "LambdaExecutionRole" + } + ], + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "logs:CreateLogGroup", + "logs:CreateLogStream", + "logs:PutLogEvents" + ], + "Resource": { + "Fn::Sub": [ + "arn:aws:logs:${region}:${account}:log-group:/aws/lambda/${lambda}:log-stream:*", + { + "region": { + "Ref": "AWS::Region" + }, + "account": { + "Ref": "AWS::AccountId" + }, + "lambda": { + "Ref": "LambdaFunction" + } + } + ] + } + } + ] + } + } + } + }, + "Outputs": { + "Name": { + "Value": { + "Ref": "LambdaFunction" + } + }, + "Arn": { + "Value": { + "Fn::GetAtt": [ + "LambdaFunction", + "Arn" + ] + } + }, + "Region": { + "Value": { + "Ref": "AWS::Region" + } + }, + "LambdaExecutionRole": { + "Value": { + "Ref": "LambdaExecutionRole" + } + }, + "LambdaExecutionRoleArn": { + "Value": { + "Fn::GetAtt": [ + "LambdaExecutionRole", + "Arn" + ] + } + } + } +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-storages369f8ff1c-x.description.txt b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-storages369f8ff1c-x.description.txt new file mode 100644 index 00000000000..e01eac85f24 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-storages369f8ff1c-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"storage-S3","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-storages369f8ff1c-x.outputs.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-storages369f8ff1c-x.outputs.json new file mode 100644 index 00000000000..066ada6a9fa --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-storages369f8ff1c-x.outputs.json @@ -0,0 +1,11 @@ +[ + { + "OutputKey": "BucketName", + "OutputValue": "projectboards34b9a7f3c2ca489293910116c994688bx-x", + "Description": "Bucket name for the S3 bucket" + }, + { + "OutputKey": "Region", + "OutputValue": "us-east-1" + } +] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-storages369f8ff1c-x.parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-storages369f8ff1c-x.parameters.json new file mode 100644 index 00000000000..b9e8bca762a --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-storages369f8ff1c-x.parameters.json @@ -0,0 +1,86 @@ +[ + { + "ParameterKey": "s3PermissionsGuestPublic", + "ParameterValue": "s3:GetObject" + }, + { + "ParameterKey": "bucketName", + "ParameterValue": "projectboards34b9a7f3c2ca489293910116c994688b" + }, + { + "ParameterKey": "s3PublicPolicy", + "ParameterValue": "Public_policy_69f8ff1c" + }, + { + "ParameterKey": "AuthenticatedAllowList", + "ParameterValue": "ALLOW" + }, + { + "ParameterKey": "unauthRoleName", + "ParameterValue": "amplify-projectboards-x-x-unauthRole" + }, + { + "ParameterKey": "s3PrivatePolicy", + "ParameterValue": "Private_policy_69f8ff1c" + }, + { + "ParameterKey": "selectedGuestPermissions", + "ParameterValue": "s3:GetObject,s3:ListBucket" + }, + { + "ParameterKey": "s3PermissionsAuthenticatedPublic", + "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" + }, + { + "ParameterKey": "s3PermissionsAuthenticatedPrivate", + "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" + }, + { + "ParameterKey": "s3PermissionsAuthenticatedUploads", + "ParameterValue": "s3:PutObject" + }, + { + "ParameterKey": "s3UploadsPolicy", + "ParameterValue": "Uploads_policy_69f8ff1c" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "unauthPolicyName", + "ParameterValue": "s3_amplify_69f8ff1c" + }, + { + "ParameterKey": "authRoleName", + "ParameterValue": "amplify-projectboards-x-x-authRole" + }, + { + "ParameterKey": "GuestAllowList", + "ParameterValue": "ALLOW" + }, + { + "ParameterKey": "authPolicyName", + "ParameterValue": "s3_amplify_69f8ff1c" + }, + { + "ParameterKey": "s3ProtectedPolicy", + "ParameterValue": "Protected_policy_69f8ff1c" + }, + { + "ParameterKey": "s3PermissionsAuthenticatedProtected", + "ParameterValue": "s3:PutObject,s3:GetObject,s3:DeleteObject" + }, + { + "ParameterKey": "s3PermissionsGuestUploads", + "ParameterValue": "DISALLOW" + }, + { + "ParameterKey": "s3ReadPolicy", + "ParameterValue": "read_policy_69f8ff1c" + }, + { + "ParameterKey": "selectedAuthenticatedPermissions", + "ParameterValue": "s3:PutObject,s3:GetObject,s3:ListBucket,s3:DeleteObject" + } +] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-storages369f8ff1c-x.template.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-storages369f8ff1c-x.template.json new file mode 100644 index 00000000000..204a64677c8 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x-storages369f8ff1c-x.template.json @@ -0,0 +1,646 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"storage-S3\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "bucketName": { + "Type": "String" + }, + "authRoleName": { + "Type": "String" + }, + "unauthRoleName": { + "Type": "String" + }, + "authPolicyName": { + "Type": "String" + }, + "unauthPolicyName": { + "Type": "String" + }, + "s3PublicPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3PrivatePolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3ProtectedPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3UploadsPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3ReadPolicy": { + "Type": "String", + "Default": "NONE" + }, + "s3PermissionsAuthenticatedPublic": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedProtected": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedPrivate": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsAuthenticatedUploads": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsGuestPublic": { + "Type": "String", + "Default": "DISALLOW" + }, + "s3PermissionsGuestUploads": { + "Type": "String", + "Default": "DISALLOW" + }, + "AuthenticatedAllowList": { + "Type": "String", + "Default": "DISALLOW" + }, + "GuestAllowList": { + "Type": "String", + "Default": "DISALLOW" + }, + "selectedGuestPermissions": { + "Type": "CommaDelimitedList", + "Default": "NONE" + }, + "selectedAuthenticatedPermissions": { + "Type": "CommaDelimitedList", + "Default": "NONE" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + }, + "CreateAuthPublic": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "s3PermissionsAuthenticatedPublic" + }, + "DISALLOW" + ] + } + ] + }, + "CreateAuthProtected": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "s3PermissionsAuthenticatedProtected" + }, + "DISALLOW" + ] + } + ] + }, + "CreateAuthPrivate": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "s3PermissionsAuthenticatedPrivate" + }, + "DISALLOW" + ] + } + ] + }, + "CreateAuthUploads": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "s3PermissionsAuthenticatedUploads" + }, + "DISALLOW" + ] + } + ] + }, + "CreateGuestPublic": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "s3PermissionsGuestPublic" + }, + "DISALLOW" + ] + } + ] + }, + "CreateGuestUploads": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "s3PermissionsGuestUploads" + }, + "DISALLOW" + ] + } + ] + }, + "AuthReadAndList": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "AuthenticatedAllowList" + }, + "DISALLOW" + ] + } + ] + }, + "GuestReadAndList": { + "Fn::Not": [ + { + "Fn::Equals": [ + { + "Ref": "GuestAllowList" + }, + "DISALLOW" + ] + } + ] + } + }, + "Outputs": { + "BucketName": { + "Description": "Bucket name for the S3 bucket", + "Value": { + "Ref": "S3Bucket" + } + }, + "Region": { + "Value": { + "Ref": "AWS::Region" + } + } + }, + "Resources": { + "S3Bucket": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + { + "Ref": "bucketName" + }, + { + "Fn::Join": [ + "", + [ + { + "Ref": "bucketName" + }, + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + { + "Ref": "AWS::StackName" + } + ] + } + ] + }, + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "CorsConfiguration": { + "CorsRules": [ + { + "AllowedHeaders": [ + "*" + ], + "AllowedMethods": [ + "GET", + "HEAD", + "PUT", + "POST", + "DELETE" + ], + "AllowedOrigins": [ + "*" + ], + "ExposedHeaders": [ + "x-amz-server-side-encryption", + "x-amz-request-id", + "x-amz-id-2", + "ETag" + ], + "Id": "S3CORSRuleId1", + "MaxAge": 3000 + } + ] + }, + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + } + }, + "UpdateReplacePolicy": "Retain", + "DeletionPolicy": "Retain" + }, + "S3AuthPublicPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + { + "Ref": "s3PermissionsAuthenticatedPublic" + } + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + }, + "/public/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": { + "Ref": "s3PublicPolicy" + }, + "Roles": [ + { + "Ref": "authRoleName" + } + ] + }, + "DependsOn": [ + "S3Bucket" + ], + "Condition": "CreateAuthPublic" + }, + "S3AuthProtectedPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + { + "Ref": "s3PermissionsAuthenticatedProtected" + } + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + }, + "/protected/${cognito-identity.amazonaws.com:sub}/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": { + "Ref": "s3ProtectedPolicy" + }, + "Roles": [ + { + "Ref": "authRoleName" + } + ] + }, + "DependsOn": [ + "S3Bucket" + ], + "Condition": "CreateAuthProtected" + }, + "S3AuthPrivatePolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + { + "Ref": "s3PermissionsAuthenticatedPrivate" + } + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + }, + "/private/${cognito-identity.amazonaws.com:sub}/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": { + "Ref": "s3PrivatePolicy" + }, + "Roles": [ + { + "Ref": "authRoleName" + } + ] + }, + "DependsOn": [ + "S3Bucket" + ], + "Condition": "CreateAuthPrivate" + }, + "S3AuthUploadPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + { + "Ref": "s3PermissionsAuthenticatedUploads" + } + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + }, + "/uploads/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": { + "Ref": "s3UploadsPolicy" + }, + "Roles": [ + { + "Ref": "authRoleName" + } + ] + }, + "DependsOn": [ + "S3Bucket" + ], + "Condition": "CreateAuthUploads" + }, + "S3GuestPublicPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": { + "Fn::Split": [ + ",", + { + "Ref": "s3PermissionsGuestPublic" + } + ] + }, + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + }, + "/public/*" + ] + ] + } + ] + } + ] + }, + "PolicyName": { + "Ref": "s3PublicPolicy" + }, + "Roles": [ + { + "Ref": "unauthRoleName" + } + ] + }, + "DependsOn": [ + "S3Bucket" + ], + "Condition": "CreateGuestPublic" + }, + "S3AuthReadPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + }, + "/protected/*" + ] + ] + } + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/", + "public/*", + "protected/", + "protected/*", + "private/${cognito-identity.amazonaws.com:sub}/", + "private/${cognito-identity.amazonaws.com:sub}/*" + ] + } + }, + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + } + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": { + "Ref": "s3ReadPolicy" + }, + "Roles": [ + { + "Ref": "authRoleName" + } + ] + }, + "DependsOn": [ + "S3Bucket" + ], + "Condition": "AuthReadAndList" + }, + "S3GuestReadPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:GetObject", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + }, + "/protected/*" + ] + ] + } + }, + { + "Action": "s3:ListBucket", + "Condition": { + "StringLike": { + "s3:prefix": [ + "public/", + "public/*", + "protected/", + "protected/*" + ] + } + }, + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "S3Bucket" + } + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": { + "Ref": "s3ReadPolicy" + }, + "Roles": [ + { + "Ref": "unauthRoleName" + } + ] + }, + "DependsOn": [ + "S3Bucket" + ], + "Condition": "GuestReadAndList" + } + } +} diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x.description.txt b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x.description.txt new file mode 100644 index 00000000000..6e1d8ff2351 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x.description.txt @@ -0,0 +1 @@ +Root Stack for AWS Amplify CLI diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x.outputs.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x.outputs.json new file mode 100644 index 00000000000..1bd7ad185ee --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x.outputs.json @@ -0,0 +1,42 @@ +[ + { + "OutputKey": "AuthRoleName", + "OutputValue": "amplify-projectboards-x-x-authRole" + }, + { + "OutputKey": "UnauthRoleArn", + "OutputValue": "arn:aws:iam::123456789012:role/amplify-projectboards-x-x-unauthRole" + }, + { + "OutputKey": "AuthRoleArn", + "OutputValue": "arn:aws:iam::123456789012:role/amplify-projectboards-x-x-authRole" + }, + { + "OutputKey": "Region", + "OutputValue": "us-east-1", + "Description": "CloudFormation provider root stack Region", + "ExportName": "amplify-projectboards-x-x-Region" + }, + { + "OutputKey": "DeploymentBucketName", + "OutputValue": "amplify-projectboards-x-x-deployment", + "Description": "CloudFormation provider root stack deployment bucket name", + "ExportName": "amplify-projectboards-x-x-DeploymentBucketName" + }, + { + "OutputKey": "UnauthRoleName", + "OutputValue": "amplify-projectboards-x-x-unauthRole" + }, + { + "OutputKey": "StackName", + "OutputValue": "amplify-projectboards-x-x", + "Description": "CloudFormation provider root stack ID", + "ExportName": "amplify-projectboards-x-x-StackName" + }, + { + "OutputKey": "StackId", + "OutputValue": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-projectboards-x-x/39c2f9b0-387e-11f1-b834-0affdb5fc025", + "Description": "CloudFormation provider root stack name", + "ExportName": "amplify-projectboards-x-x-StackId" + } +] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x.parameters.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x.parameters.json new file mode 100644 index 00000000000..864cb2e3221 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x.parameters.json @@ -0,0 +1,14 @@ +[ + { + "ParameterKey": "AuthRoleName", + "ParameterValue": "amplify-projectboards-x-x-authRole" + }, + { + "ParameterKey": "DeploymentBucketName", + "ParameterValue": "amplify-projectboards-x-x-deployment" + }, + { + "ParameterKey": "UnauthRoleName", + "ParameterValue": "amplify-projectboards-x-x-unauthRole" + } +] diff --git a/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x.template.json b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x.template.json new file mode 100644 index 00000000000..e49576fdec3 --- /dev/null +++ b/amplify-migration-apps/project-boards/_snapshot.pre.refactor/amplify-projectboards-x-x.template.json @@ -0,0 +1,524 @@ +{ + "Description": "Root Stack for AWS Amplify CLI", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "DeploymentBucketName": { + "Type": "String", + "Default": "DeploymentBucket", + "Description": "Name of the common deployment bucket provided by the parent stack" + }, + "AuthRoleName": { + "Type": "String", + "Default": "AuthRoleName", + "Description": "Name of the common deployment bucket provided by the parent stack" + }, + "UnauthRoleName": { + "Type": "String", + "Default": "UnAuthRoleName", + "Description": "Name of the common deployment bucket provided by the parent stack" + } + }, + "Outputs": { + "Region": { + "Description": "CloudFormation provider root stack Region", + "Value": { + "Ref": "AWS::Region" + }, + "Export": { + "Name": { + "Fn::Sub": "${AWS::StackName}-Region" + } + } + }, + "StackName": { + "Description": "CloudFormation provider root stack ID", + "Value": { + "Ref": "AWS::StackName" + }, + "Export": { + "Name": { + "Fn::Sub": "${AWS::StackName}-StackName" + } + } + }, + "StackId": { + "Description": "CloudFormation provider root stack name", + "Value": { + "Ref": "AWS::StackId" + }, + "Export": { + "Name": { + "Fn::Sub": "${AWS::StackName}-StackId" + } + } + }, + "AuthRoleArn": { + "Value": { + "Fn::GetAtt": [ + "AuthRole", + "Arn" + ] + } + }, + "UnauthRoleArn": { + "Value": { + "Fn::GetAtt": [ + "UnauthRole", + "Arn" + ] + } + }, + "DeploymentBucketName": { + "Description": "CloudFormation provider root stack deployment bucket name", + "Value": { + "Ref": "DeploymentBucketName" + }, + "Export": { + "Name": { + "Fn::Sub": "${AWS::StackName}-DeploymentBucketName" + } + } + }, + "AuthRoleName": { + "Value": { + "Ref": "AuthRole" + } + }, + "UnauthRoleName": { + "Value": { + "Ref": "UnauthRole" + } + } + }, + "Resources": { + "DeploymentBucket": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketName": { + "Ref": "DeploymentBucketName" + }, + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + } + }, + "UpdateReplacePolicy": "Retain", + "DeletionPolicy": "Retain" + }, + "DeploymentBucketBlockHTTP": { + "Type": "AWS::S3::BucketPolicy", + "Properties": { + "Bucket": { + "Ref": "DeploymentBucketName" + }, + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:*", + "Effect": "Deny", + "Principal": "*", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "DeploymentBucketName" + }, + "/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "DeploymentBucketName" + } + ] + ] + } + ], + "Condition": { + "Bool": { + "aws:SecureTransport": false + } + } + } + ] + } + } + }, + "AuthRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Sid": "", + "Effect": "Deny", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + }, + "Action": "sts:AssumeRoleWithWebIdentity" + } + ] + }, + "RoleName": { + "Ref": "AuthRoleName" + } + } + }, + "UnauthRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Sid": "", + "Effect": "Deny", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + }, + "Action": "sts:AssumeRoleWithWebIdentity" + } + ] + }, + "RoleName": { + "Ref": "UnauthRoleName" + } + } + }, + "authprojectboards54040ecc": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-x-x-deployment/amplify-cfn-templates/auth/projectboards54040ecc-cloudformation-template.json", + "Parameters": { + "identityPoolName": "projectboards54040ecc_identitypool_54040ecc", + "allowUnauthenticatedIdentities": true, + "resourceNameTruncated": "projec54040ecc", + "userPoolName": "projectboards54040ecc_userpool_54040ecc", + "autoVerifiedAttributes": "email", + "mfaConfiguration": "OFF", + "mfaTypes": "SMS Text Message", + "smsAuthenticationMessage": "Your authentication code is {####}", + "smsVerificationMessage": "Your verification code is {####}", + "emailVerificationSubject": "Your verification code", + "emailVerificationMessage": "Your verification code is {####}", + "defaultPasswordPolicy": false, + "passwordPolicyMinLength": 8, + "passwordPolicyCharacters": "", + "requiredAttributes": "email", + "aliasAttributes": "", + "userpoolClientGenerateSecret": false, + "userpoolClientRefreshTokenValidity": 30, + "userpoolClientWriteAttributes": "email", + "userpoolClientReadAttributes": "email", + "userpoolClientLambdaRole": "projec54040ecc_userpoolclient_lambda_role", + "userpoolClientSetAttributes": false, + "sharedId": "54040ecc", + "resourceName": "projectboards54040ecc", + "authSelections": "identityPoolAndUserPool", + "useDefault": "default", + "usernameAttributes": "email", + "userPoolGroupList": "", + "serviceName": "Cognito", + "usernameCaseSensitive": false, + "useEnabledMfas": true, + "authRoleArn": { + "Fn::GetAtt": [ + "AuthRole", + "Arn" + ] + }, + "unauthRoleArn": { + "Fn::GetAtt": [ + "UnauthRole", + "Arn" + ] + }, + "breakCircularDependency": true, + "dependsOn": "", + "env": "x" + } + } + }, + "apiprojectboards": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-x-x-deployment/amplify-cfn-templates/api/cloudformation-template.json", + "Parameters": { + "AppSyncApiName": "projectboards", + "DynamoDBBillingMode": "PAY_PER_REQUEST", + "DynamoDBEnableServerSideEncryption": false, + "AuthCognitoUserPoolId": { + "Fn::GetAtt": [ + "authprojectboards54040ecc", + "Outputs.UserPoolId" + ] + }, + "S3DeploymentBucket": "amplify-projectboards-x-x-deployment", + "S3DeploymentRootKey": "amplify-appsync-files/182d69537a429ad74cd4e2ced5fdadbb4cbf17fc", + "env": "x" + } + } + }, + "storages369f8ff1c": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-x-x-deployment/amplify-cfn-templates/storage/cloudformation-template.json", + "Parameters": { + "bucketName": "projectboards34b9a7f3c2ca489293910116c994688b", + "selectedGuestPermissions": "s3:GetObject,s3:ListBucket", + "selectedAuthenticatedPermissions": "s3:PutObject,s3:GetObject,s3:ListBucket,s3:DeleteObject", + "unauthRoleName": { + "Ref": "UnauthRoleName" + }, + "authRoleName": { + "Ref": "AuthRoleName" + }, + "s3PrivatePolicy": "Private_policy_69f8ff1c", + "s3ProtectedPolicy": "Protected_policy_69f8ff1c", + "s3PublicPolicy": "Public_policy_69f8ff1c", + "s3ReadPolicy": "read_policy_69f8ff1c", + "s3UploadsPolicy": "Uploads_policy_69f8ff1c", + "authPolicyName": "s3_amplify_69f8ff1c", + "unauthPolicyName": "s3_amplify_69f8ff1c", + "AuthenticatedAllowList": "ALLOW", + "GuestAllowList": "ALLOW", + "s3PermissionsAuthenticatedPrivate": "s3:PutObject,s3:GetObject,s3:DeleteObject", + "s3PermissionsAuthenticatedProtected": "s3:PutObject,s3:GetObject,s3:DeleteObject", + "s3PermissionsAuthenticatedPublic": "s3:PutObject,s3:GetObject,s3:DeleteObject", + "s3PermissionsAuthenticatedUploads": "s3:PutObject", + "s3PermissionsGuestPublic": "s3:GetObject", + "s3PermissionsGuestUploads": "DISALLOW", + "env": "x" + } + } + }, + "functionquotegenerator": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-projectboards-x-x-deployment/amplify-cfn-templates/function/quotegenerator-cloudformation-template.json", + "Parameters": { + "deploymentBucketName": "amplify-projectboards-x-x-deployment", + "s3Key": "amplify-builds/quotegenerator-51737a6b73437548654c-build.zip", + "env": "x" + } + } + }, + "UpdateRolesWithIDPFunction": { + "DependsOn": [ + "AuthRole", + "UnauthRole", + "authprojectboards54040ecc" + ], + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "ZipFile": { + "Fn::Join": [ + "\n", + [ + "const response = require('cfn-response');", + "const { IAMClient, GetRoleCommand, UpdateAssumeRolePolicyCommand } = require('@aws-sdk/client-iam');", + "exports.handler = function(event, context) {", + " // Don't return promise, response.send() marks context as done internally", + " const ignoredPromise = handleEvent(event, context)", + "};", + "async function handleEvent(event, context) {", + " try {", + " let authRoleName = event.ResourceProperties.authRoleName;", + " let unauthRoleName = event.ResourceProperties.unauthRoleName;", + " let idpId = event.ResourceProperties.idpId;", + " let authParamsJson = {", + " 'Version': '2012-10-17',", + " 'Statement': [{", + " 'Effect': 'Allow',", + " 'Principal': {'Federated': 'cognito-identity.amazonaws.com'},", + " 'Action': 'sts:AssumeRoleWithWebIdentity',", + " 'Condition': {", + " 'StringEquals': {'cognito-identity.amazonaws.com:aud': idpId},", + " 'ForAnyValue:StringLike': {'cognito-identity.amazonaws.com:amr': 'authenticated'}", + " }", + " }]", + " };", + " let unauthParamsJson = {", + " 'Version': '2012-10-17',", + " 'Statement': [{", + " 'Effect': 'Allow',", + " 'Principal': {'Federated': 'cognito-identity.amazonaws.com'},", + " 'Action': 'sts:AssumeRoleWithWebIdentity',", + " 'Condition': {", + " 'StringEquals': {'cognito-identity.amazonaws.com:aud': idpId},", + " 'ForAnyValue:StringLike': {'cognito-identity.amazonaws.com:amr': 'unauthenticated'}", + " }", + " }]", + " };", + " if (event.RequestType === 'Delete') {", + " try {", + " delete authParamsJson.Statement[0].Condition;", + " delete unauthParamsJson.Statement[0].Condition;", + " authParamsJson.Statement[0].Effect = 'Deny'", + " unauthParamsJson.Statement[0].Effect = 'Deny'", + " let authParams = {PolicyDocument: JSON.stringify(authParamsJson), RoleName: authRoleName};", + " let unauthParams = {PolicyDocument: JSON.stringify(unauthParamsJson), RoleName: unauthRoleName};", + " const iam = new IAMClient({region: event.ResourceProperties.region});", + " let res = await Promise.all([", + " iam.send(new GetRoleCommand({RoleName: authParams.RoleName})),", + " iam.send(new GetRoleCommand({RoleName: unauthParams.RoleName}))", + " ]);", + " res = await Promise.all([", + " iam.send(new UpdateAssumeRolePolicyCommand(authParams)),", + " iam.send(new UpdateAssumeRolePolicyCommand(unauthParams))", + " ]);", + " response.send(event, context, response.SUCCESS, {});", + " } catch (err) {", + " console.log(err.stack);", + " response.send(event, context, response.SUCCESS, {Error: err});", + " }", + " } else if (event.RequestType === 'Update' || event.RequestType === 'Create') {", + " const iam = new IAMClient({region: event.ResourceProperties.region});", + " let authParams = {PolicyDocument: JSON.stringify(authParamsJson), RoleName: authRoleName};", + " let unauthParams = {PolicyDocument: JSON.stringify(unauthParamsJson), RoleName: unauthRoleName};", + " const res = await Promise.all([", + " iam.send(new UpdateAssumeRolePolicyCommand(authParams)),", + " iam.send(new UpdateAssumeRolePolicyCommand(unauthParams))", + " ]);", + " response.send(event, context, response.SUCCESS, {});", + " }", + " } catch (err) {", + " console.log(err.stack);", + " response.send(event, context, response.FAILED, {Error: err});", + " }", + "};" + ] + ] + } + }, + "Handler": "index.handler", + "Runtime": "nodejs22.x", + "Timeout": 300, + "Role": { + "Fn::GetAtt": [ + "UpdateRolesWithIDPFunctionRole", + "Arn" + ] + } + } + }, + "UpdateRolesWithIDPFunctionOutputs": { + "Type": "Custom::LambdaCallout", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "UpdateRolesWithIDPFunction", + "Arn" + ] + }, + "region": { + "Ref": "AWS::Region" + }, + "idpId": { + "Fn::GetAtt": [ + "authprojectboards54040ecc", + "Outputs.IdentityPoolId" + ] + }, + "authRoleName": { + "Ref": "AuthRole" + }, + "unauthRoleName": { + "Ref": "UnauthRole" + } + } + }, + "UpdateRolesWithIDPFunctionRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "RoleName": { + "Fn::Join": [ + "", + [ + { + "Ref": "AuthRole" + }, + "-idp" + ] + ] + }, + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": [ + "lambda.amazonaws.com" + ] + }, + "Action": [ + "sts:AssumeRole" + ] + } + ] + }, + "Policies": [ + { + "PolicyName": "UpdateRolesWithIDPFunctionPolicy", + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "logs:CreateLogGroup", + "logs:CreateLogStream", + "logs:PutLogEvents" + ], + "Resource": "arn:aws:logs:*:*:*" + }, + { + "Effect": "Allow", + "Action": [ + "iam:UpdateAssumeRolePolicy", + "iam:GetRole" + ], + "Resource": { + "Fn::GetAtt": [ + "AuthRole", + "Arn" + ] + } + }, + { + "Effect": "Allow", + "Action": [ + "iam:UpdateAssumeRolePolicy", + "iam:GetRole" + ], + "Resource": { + "Fn::GetAtt": [ + "UnauthRole", + "Arn" + ] + } + } + ] + } + } + ] + } + } + } +} diff --git a/amplify-migration-apps/project-boards/package.json b/amplify-migration-apps/project-boards/package.json index e2640e973f0..e07fc0a6e15 100644 --- a/amplify-migration-apps/project-boards/package.json +++ b/amplify-migration-apps/project-boards/package.json @@ -13,6 +13,7 @@ "preview": "vite preview", "configure": "./backend/configure.sh", "sanitize": "tsx ../sanitize.ts", + "normalize": "tsx ../normalize.ts", "typecheck": "cd _snapshot.post.generate/amplify && npx tsc --noEmit", "test:gen1": "APP_CONFIG_PATH=${APP_CONFIG_PATH:-src/amplifyconfiguration.json} NODE_OPTIONS='--experimental-vm-modules' jest --verbose", "test:gen2": "APP_CONFIG_PATH=${APP_CONFIG_PATH:-amplify_outputs.json} NODE_OPTIONS='--experimental-vm-modules' jest --verbose", diff --git a/amplify-migration-apps/store-locator/_snapshot.post.generate/amplify.yml b/amplify-migration-apps/store-locator/_snapshot.post.generate/amplify.yml index 52c312768f5..19475262460 100644 --- a/amplify-migration-apps/store-locator/_snapshot.post.generate/amplify.yml +++ b/amplify-migration-apps/store-locator/_snapshot.post.generate/amplify.yml @@ -8,16 +8,11 @@ backend: - npx ampx pipeline-deploy --branch $AWS_BRANCH --app-id $AWS_APP_ID frontend: phases: - preBuild: - commands: - - npm install build: commands: - - npm run build + - mkdir dist + - touch dist/index.html artifacts: baseDirectory: dist files: - "**/*" - cache: - paths: - - node_modules/**/* diff --git a/amplify-migration-apps/store-locator/_snapshot.post.generate/package.json b/amplify-migration-apps/store-locator/_snapshot.post.generate/package.json index 4f787b3b7ad..bc186dada95 100644 --- a/amplify-migration-apps/store-locator/_snapshot.post.generate/package.json +++ b/amplify-migration-apps/store-locator/_snapshot.post.generate/package.json @@ -12,7 +12,19 @@ "lint": "eslint .", "preview": "vite preview", "sanitize": "tsx ../sanitize.ts", - "typecheck": "cd _snapshot.post.generate/amplify && npx tsc --noEmit" + "normalize": "tsx ../normalize.ts", + "typecheck": "cd _snapshot.post.generate/amplify && npx tsc --noEmit", + "test:gen1": "APP_CONFIG_PATH=${APP_CONFIG_PATH:-src/amplifyconfiguration.json} NODE_OPTIONS='--experimental-vm-modules' jest --verbose", + "test:gen2": "APP_CONFIG_PATH=${APP_CONFIG_PATH:-amplify_outputs.json} NODE_OPTIONS='--experimental-vm-modules' jest --verbose", + "test:shared-data": "true", + "test:e2e": "cd ../../packages/amplify-gen2-migration-e2e-system && npx tsx src/cli.ts --app store-locator --profile ${AWS_PROFILE:-default}", + "deploy": "cd ../../packages/amplify-gen2-migration-e2e-system && npx tsx src/cli.ts --app store-locator --step deploy --profile ${AWS_PROFILE:-default}", + "pre-push": "npx tsx migration/pre-push.ts", + "post-generate": "npx tsx migration/post-generate.ts", + "post-refactor": "true", + "post-sandbox": "true", + "pre-sandbox": "true", + "post-push": "true" }, "dependencies": { "@aws-amplify/geo": "^3.0.92", @@ -30,8 +42,11 @@ "@aws-amplify/backend": "^1.18.0", "@aws-amplify/backend-cli": "^1.8.0", "@aws-amplify/backend-data": "^1.6.2", + "@aws-sdk/client-cognito-identity-provider": "^3.936.0", + "@aws-sdk/client-lambda": "^3.936.0", "@eslint/js": "^9.39.1", "@types/aws-lambda": "^8.10.92", + "@types/jest": "^29.5.14", "@types/node": "*", "@types/react": "^19.2.5", "@types/react-dom": "^19.2.3", @@ -45,6 +60,8 @@ "eslint-plugin-react-hooks": "^7.0.1", "eslint-plugin-react-refresh": "^0.4.24", "globals": "^16.5.0", + "jest": "^29.7.0", + "ts-jest": "^29.3.4", "tsx": "^4.20.6", "typescript": "~5.9.3", "typescript-eslint": "^8.46.4", diff --git a/amplify-migration-apps/store-locator/_snapshot.post.refactor/refactor.__from__.amplify-storelocator-e2e-sandbox-x-auth179371D7-x.__to__.amplify-storelocator-e2e-sandbox-x-auth179371D7-x-holding.mappings.json b/amplify-migration-apps/store-locator/_snapshot.post.refactor/refactor.__from__.amplify-storelocator-e2e-sandbox-x-auth179371D7-x.__to__.amplify-storelocator-e2e-sandbox-x-auth179371D7-x-holding.mappings.json new file mode 100644 index 00000000000..8687fed6e56 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.post.refactor/refactor.__from__.amplify-storelocator-e2e-sandbox-x-auth179371D7-x.__to__.amplify-storelocator-e2e-sandbox-x-auth179371D7-x-holding.mappings.json @@ -0,0 +1,52 @@ +[ + { + "Source": { + "StackName": "amplify-storelocator-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + }, + "Destination": { + "StackName": "amplify-storelocator-e2e-sandbox-x-auth179371D7-x-holding", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + } + }, + { + "Source": { + "StackName": "amplify-storelocator-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + }, + "Destination": { + "StackName": "amplify-storelocator-e2e-sandbox-x-auth179371D7-x-holding", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + } + }, + { + "Source": { + "StackName": "amplify-storelocator-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + }, + "Destination": { + "StackName": "amplify-storelocator-e2e-sandbox-x-auth179371D7-x-holding", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + } + }, + { + "Source": { + "StackName": "amplify-storelocator-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + }, + "Destination": { + "StackName": "amplify-storelocator-e2e-sandbox-x-auth179371D7-x-holding", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + } + }, + { + "Source": { + "StackName": "amplify-storelocator-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + }, + "Destination": { + "StackName": "amplify-storelocator-e2e-sandbox-x-auth179371D7-x-holding", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + } + } +] diff --git a/amplify-migration-apps/store-locator/_snapshot.post.refactor/refactor.__from__.amplify-storelocator-e2e-sandbox-x-auth179371D7-x.__to__.amplify-storelocator-e2e-sandbox-x-auth179371D7-x-holding.source.template.json b/amplify-migration-apps/store-locator/_snapshot.post.refactor/refactor.__from__.amplify-storelocator-e2e-sandbox-x-auth179371D7-x.__to__.amplify-storelocator-e2e-sandbox-x-auth179371D7-x-holding.source.template.json new file mode 100644 index 00000000000..c31398816f5 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.post.refactor/refactor.__from__.amplify-storelocator-e2e-sandbox-x-auth179371D7-x.__to__.amplify-storelocator-e2e-sandbox-x-auth179371D7-x-holding.source.template.json @@ -0,0 +1,658 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", + "Resources": { + "amplifyAuthUserPoolPostConfirmationCognitoE7E727CF": { + "Type": "AWS::Lambda::Permission", + "Properties": { + "Action": "lambda:InvokeFunction", + "FunctionName": "arn:aws:lambda:us-east-1:123456789012:function:storelocator41a9495f41a9495fPostConfirmation-gen2-x", + "Principal": "cognito-idp.amazonaws.com", + "SourceArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1dsjv7aux" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/amplifyAuth/UserPool/PostConfirmationCognito" + } + }, + "amplifyAuthauthenticatedUserRoleD8DA3689": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:81ff082e-6b3d-42b8-baa8-59f036f4bf6b" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/amplifyAuth/authenticatedUserRole/Resource" + } + }, + "amplifyAuthunauthenticatedUserRole2B524D9E": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:81ff082e-6b3d-42b8-baa8-59f036f4bf6b" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "unauthenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/amplifyAuth/unauthenticatedUserRole/Resource" + } + }, + "amplifyAuthstoreLocatorAdminGroupRoleDECAB489": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:81ff082e-6b3d-42b8-baa8-59f036f4bf6b" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/amplifyAuth/storeLocatorAdminGroupRole/Resource" + } + }, + "storelocator41a9495f41a9495fPostConfirmationgen2xlambdaServiceRole7EA338D3": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "storelocator41a9495f41a9495fPostConfirmation-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/storelocator41a9495f41a9495fPostConfirmation-gen2-x-lambda/ServiceRole/Resource" + } + }, + "storelocator41a9495f41a9495fPostConfirmationgen2xlambdaServiceRoleDefaultPolicy93A02680": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "ssm:GetParameters", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":ssm:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":parameter/amplify/resource_reference/storelocator/e2e-sandbox-x/AMPLIFY_AUTH_USERPOOL_ID" + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "storelocator41a9495f41a9495fPostConfirmationgen2xlambdaServiceRoleDefaultPolicy93A02680", + "Roles": [ + { + "Ref": "storelocator41a9495f41a9495fPostConfirmationgen2xlambdaServiceRole7EA338D3" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/storelocator41a9495f41a9495fPostConfirmation-gen2-x-lambda/ServiceRole/DefaultPolicy/Resource" + } + }, + "storelocator41a9495f41a9495fPostConfirmationgen2xlambdaA39138C1": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Architectures": [ + "x86_64" + ], + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "160afe14228f538544d3f57eba2a67b081afe243d3926aab05a998f3553f00e0.zip" + }, + "Environment": { + "Variables": { + "GROUP": "storeLocatorAdmin", + "MODULES": "add-to-group", + "ENV": "gen2-x", + "REGION": "us-east-1", + "AMPLIFY_SSM_ENV_CONFIG": "{\"AMPLIFY_AUTH_USERPOOL_ID\":{\"path\":\"/amplify/resource_reference/storelocator/e2e-sandbox-x/AMPLIFY_AUTH_USERPOOL_ID\"}}", + "AMPLIFY_AUTH_USERPOOL_ID": "" + } + }, + "EphemeralStorage": { + "Size": 512 + }, + "FunctionName": "storelocator41a9495f41a9495fPostConfirmation-gen2-x", + "Handler": "index.handler", + "MemorySize": 512, + "Role": "arn:aws:iam::123456789012:role/amplify-storelocator-e2e-sandbox-x-auth179371D7-x/storelocator41a9495f41a9495fPostConfirmationgen2xlambdaServiceRole7EA338D3", + "Runtime": "nodejs22.x", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "storelocator41a9495f41a9495fPostConfirmation-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 25 + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/storelocator41a9495f41a9495fPostConfirmation-gen2-x-lambda/Resource", + "aws:asset:path": "asset.160afe14228f538544d3f57eba2a67b081afe243d3926aab05a998f3553f00e0", + "aws:asset:is-bundled": true, + "aws:asset:property": "Code" + } + }, + "AMPLIFYAUTHUSERPOOLIDParameterCC466CA3": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/storelocator/e2e-sandbox-x/AMPLIFY_AUTH_USERPOOL_ID", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": "us-east-1_1dsjv7aux" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/AMPLIFY_AUTH_USERPOOL_IDParameter/Resource" + } + }, + "userpoolAccess13FEE5419": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "cognito-idp:AdminAddUserToGroup", + "cognito-idp:GetGroup", + "cognito-idp:ListGroups", + "cognito-idp:CreateGroup", + "cognito-idp:DeleteGroup", + "cognito-idp:UpdateGroup" + ], + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1dsjv7aux" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess13FEE5419", + "Roles": [ + { + "Ref": "storelocator41a9495f41a9495fPostConfirmationgen2xlambdaServiceRole7EA338D3" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/userpoolAccess1/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/12NzW6DQAyEnyX3xaVE7T1BatRLhIJ6RpvFoYb9qdamUYR492qJaKOeZsb2fC6geMkh3+grZ6YdMktnmI7Igm0t2gxKX7mZTOg8SYDpgzFWIVhVXvyvX01pCb08rv4m7y16Ibmt5cd8ChZ3Itp8un/9Qwzj16ysdudWw1RefIXRETMFn+7eRm+Egp8VaQdTAqXxolWwZG4p3t2KaXxosWc4LrISFG8bzYzCsEuieAv70Qwoe82omB1MtUTyXaWjdigYF/Qa5lktvVp0R76bVfoCPT99FwU8v0K+6Zkoi6MXcginu/4AH6eqXH4BAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + }, + "amplifyAuthstoreLocatorAdminGroup85B78B77": { + "Type": "AWS::Cognito::UserPoolGroup", + "Properties": { + "Description": "override success", + "GroupName": "storeLocatorAdmin", + "Precedence": 1, + "RoleArn": "arn:aws:iam::123456789012:role/us-east-1_PMTKHb3hY-storeLocatorAdminGroupRole", + "UserPoolId": "us-east-1_PMTKHb3hY" + } + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifystorelocatore2esandboxdd610709c4authamplifyAuthUserPool56C869F9Ref": { + "Value": "us-east-1_1dsjv7aux" + }, + "amplifystorelocatore2esandboxdd610709c4authamplifyAuthUserPoolAppClient4E4BBC6CRef": { + "Value": "1jb6icmarkdqbom3q1caugppsp" + }, + "amplifystorelocatore2esandboxdd610709c4authamplifyAuthIdentityPoolC9BBD71ERef": { + "Value": "us-east-1:81ff082e-6b3d-42b8-baa8-59f036f4bf6b" + }, + "amplifystorelocatore2esandboxdd610709c4authstorelocator41a9495f41a9495fPostConfirmationgen2xlambdaF3B8D931Ref": { + "Value": "storelocator41a9495f41a9495fPostConfirmation-gen2-x" + }, + "amplifystorelocatore2esandboxdd610709c4authamplifyAuthauthenticatedUserRoleFD3A976BRef": { + "Value": "amplify-storelocat2604142-amplifyAuthauthenticatedU-wVZxcFB0fphi" + }, + "amplifystorelocatore2esandboxdd610709c4authamplifyAuthunauthenticatedUserRoleF5FAC08ERef": { + "Value": "amplify-storelocat2604142-amplifyAuthunauthenticate-jXqOMCUo8MPA" + }, + "amplifystorelocatore2esandboxdd610709c4authamplifyAuthstoreLocatorAdminGroupRoleC0E3E7C0Ref": { + "Value": "amplify-storelocat2604142-amplifyAuthstoreLocatorAd-Y07eHwc1xbQQ" + } + } +} diff --git a/amplify-migration-apps/store-locator/_snapshot.post.refactor/refactor.__from__.amplify-storelocator-e2e-sandbox-x-auth179371D7-x.__to__.amplify-storelocator-e2e-sandbox-x-auth179371D7-x-holding.target.template.json b/amplify-migration-apps/store-locator/_snapshot.post.refactor/refactor.__from__.amplify-storelocator-e2e-sandbox-x-auth179371D7-x.__to__.amplify-storelocator-e2e-sandbox-x-auth179371D7-x-holding.target.template.json new file mode 100644 index 00000000000..c83f1c3cecf --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.post.refactor/refactor.__from__.amplify-storelocator-e2e-sandbox-x-auth179371D7-x.__to__.amplify-storelocator-e2e-sandbox-x-auth179371D7-x-holding.target.template.json @@ -0,0 +1,228 @@ +{ + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "Temporary holding stack for Gen2 migration", + "Resources": { + "amplifyAuthstoreLocatorAdminGroup85B78B77": { + "Type": "AWS::Cognito::UserPoolGroup", + "Properties": { + "GroupName": "storeLocatorAdmin", + "Precedence": 0, + "RoleArn": "arn:aws:iam::123456789012:role/amplify-storelocat2604142-amplifyAuthstoreLocatorAd-Y07eHwc1xbQQ", + "UserPoolId": "us-east-1_1dsjv7aux" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/amplifyAuth/storeLocatorAdminGroup" + } + }, + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AccountRecoverySetting": { + "RecoveryMechanisms": [ + { + "Name": "verified_email", + "Priority": 1 + } + ] + }, + "AdminCreateUserConfig": { + "AllowAdminCreateUserOnly": false + }, + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "LambdaConfig": { + "PostConfirmation": "arn:aws:lambda:us-east-1:123456789012:function:storelocator41a9495f41a9495fPostConfirmation-gen2-x" + }, + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": 8, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false, + "TemporaryPasswordValidityDays": 7 + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "SmsVerificationMessage": "The verification code to your new account is {####}", + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolTags": { + "amplify:deployment-type": "sandbox", + "amplify:friendly-name": "amplifyAuth", + "created-by": "amplify" + }, + "UsernameAttributes": [ + "email" + ], + "UsernameConfiguration": { + "CaseSensitive": false + }, + "VerificationMessageTemplate": { + "DefaultEmailOption": "CONFIRM_WITH_CODE", + "EmailMessage": "Your verification code is {####}", + "EmailSubject": "Your verification code", + "SmsMessage": "The verification code to your new account is {####}" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/amplifyAuth/UserPool/Resource" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 144000, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": "us-east-1_1dsjv7aux" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlows": [ + "code" + ], + "AllowedOAuthFlowsUserPoolClient": true, + "AllowedOAuthScopes": [ + "profile", + "phone", + "email", + "openid", + "aws.cognito.signin.user.admin" + ], + "CallbackURLs": [ + "https://example.com" + ], + "ExplicitAuthFlows": [ + "ALLOW_CUSTOM_AUTH", + "ALLOW_USER_SRP_AUTH", + "ALLOW_REFRESH_TOKEN_AUTH" + ], + "PreventUserExistenceErrors": "ENABLED", + "SupportedIdentityProviders": [ + "COGNITO" + ], + "UserPoolId": "us-east-1_1dsjv7aux" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/amplifyAuth/UserPoolAppClient/Resource" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": true, + "CognitoIdentityProviders": [ + { + "ClientId": "1jb6icmarkdqbom3q1caugppsp", + "ProviderName": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_1dsjv7aux" + ] + ] + } + } + ], + "IdentityPoolTags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "SupportedLoginProviders": {} + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/amplifyAuth/IdentityPool" + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:81ff082e-6b3d-42b8-baa8-59f036f4bf6b", + "RoleMappings": { + "UserPoolWebClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_1dsjv7aux", + ":", + "1jb6icmarkdqbom3q1caugppsp" + ] + ] + }, + "Type": "Token" + } + }, + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-storelocat2604142-amplifyAuthunauthenticate-jXqOMCUo8MPA", + "authenticated": "arn:aws:iam::123456789012:role/amplify-storelocat2604142-amplifyAuthauthenticatedU-wVZxcFB0fphi" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/amplifyAuth/IdentityPoolRoleAttachment" + } + } + }, + "Outputs": {} +} diff --git a/amplify-migration-apps/store-locator/_snapshot.post.refactor/refactor.__from__.amplify-storelocator-x-x-authstorelocator41a9495f41a9495f-x.__to__.amplify-storelocator-e2e-sandbox-x-auth179371D7-x.mappings.json b/amplify-migration-apps/store-locator/_snapshot.post.refactor/refactor.__from__.amplify-storelocator-x-x-authstorelocator41a9495f41a9495f-x.__to__.amplify-storelocator-e2e-sandbox-x-auth179371D7-x.mappings.json new file mode 100644 index 00000000000..cb97f274d56 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.post.refactor/refactor.__from__.amplify-storelocator-x-x-authstorelocator41a9495f41a9495f-x.__to__.amplify-storelocator-e2e-sandbox-x-auth179371D7-x.mappings.json @@ -0,0 +1,52 @@ +[ + { + "Source": { + "StackName": "amplify-storelocator-x-x-authstorelocator41a9495f41a9495f-x", + "LogicalResourceId": "UserPool" + }, + "Destination": { + "StackName": "amplify-storelocator-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthUserPool4BA7F805" + } + }, + { + "Source": { + "StackName": "amplify-storelocator-x-x-authstorelocator41a9495f41a9495f-x", + "LogicalResourceId": "UserPoolClientWeb" + }, + "Destination": { + "StackName": "amplify-storelocator-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthUserPoolAppClient2626C6F8" + } + }, + { + "Source": { + "StackName": "amplify-storelocator-x-x-authstorelocator41a9495f41a9495f-x", + "LogicalResourceId": "UserPoolClient" + }, + "Destination": { + "StackName": "amplify-storelocator-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthUserPoolNativeAppClient79534448" + } + }, + { + "Source": { + "StackName": "amplify-storelocator-x-x-authstorelocator41a9495f41a9495f-x", + "LogicalResourceId": "IdentityPool" + }, + "Destination": { + "StackName": "amplify-storelocator-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthIdentityPool3FDE84CC" + } + }, + { + "Source": { + "StackName": "amplify-storelocator-x-x-authstorelocator41a9495f41a9495f-x", + "LogicalResourceId": "IdentityPoolRoleMap" + }, + "Destination": { + "StackName": "amplify-storelocator-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthIdentityPoolRoleAttachment045F17C8" + } + } +] diff --git a/amplify-migration-apps/store-locator/_snapshot.post.refactor/refactor.__from__.amplify-storelocator-x-x-authstorelocator41a9495f41a9495f-x.__to__.amplify-storelocator-e2e-sandbox-x-auth179371D7-x.source.template.json b/amplify-migration-apps/store-locator/_snapshot.post.refactor/refactor.__from__.amplify-storelocator-x-x-authstorelocator41a9495f41a9495f-x.__to__.amplify-storelocator-e2e-sandbox-x-auth179371D7-x.source.template.json new file mode 100644 index 00000000000..b2c35da831e --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.post.refactor/refactor.__from__.amplify-storelocator-x-x-authstorelocator41a9495f41a9495f-x.__to__.amplify-storelocator-e2e-sandbox-x-auth179371D7-x.source.template.json @@ -0,0 +1,219 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "functionstorelocator41a9495f41a9495fPostConfirmationArn": { + "Type": "String", + "Default": "functionstorelocator41a9495f41a9495fPostConfirmationArn" + }, + "functionstorelocator41a9495f41a9495fPostConfirmationName": { + "Type": "String", + "Default": "functionstorelocator41a9495f41a9495fPostConfirmationName" + }, + "identityPoolName": { + "Type": "String" + }, + "allowUnauthenticatedIdentities": { + "Type": "String" + }, + "resourceNameTruncated": { + "Type": "String" + }, + "userPoolName": { + "Type": "String" + }, + "autoVerifiedAttributes": { + "Type": "CommaDelimitedList" + }, + "mfaConfiguration": { + "Type": "String" + }, + "mfaTypes": { + "Type": "CommaDelimitedList" + }, + "smsAuthenticationMessage": { + "Type": "String" + }, + "smsVerificationMessage": { + "Type": "String" + }, + "emailVerificationSubject": { + "Type": "String" + }, + "emailVerificationMessage": { + "Type": "String" + }, + "defaultPasswordPolicy": { + "Type": "String" + }, + "passwordPolicyMinLength": { + "Type": "String" + }, + "passwordPolicyCharacters": { + "Type": "CommaDelimitedList" + }, + "requiredAttributes": { + "Type": "CommaDelimitedList" + }, + "aliasAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientGenerateSecret": { + "Type": "String" + }, + "userpoolClientRefreshTokenValidity": { + "Type": "String" + }, + "userpoolClientWriteAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientReadAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientLambdaRole": { + "Type": "String" + }, + "userpoolClientSetAttributes": { + "Type": "String" + }, + "sharedId": { + "Type": "String" + }, + "resourceName": { + "Type": "String" + }, + "authSelections": { + "Type": "String" + }, + "useDefault": { + "Type": "String" + }, + "thirdPartyAuth": { + "Type": "String" + }, + "usernameAttributes": { + "Type": "CommaDelimitedList" + }, + "userPoolGroups": { + "Type": "String" + }, + "adminQueries": { + "Type": "String" + }, + "triggers": { + "Type": "String" + }, + "hostedUI": { + "Type": "String" + }, + "userPoolGroupList": { + "Type": "CommaDelimitedList" + }, + "serviceName": { + "Type": "String" + }, + "usernameCaseSensitive": { + "Type": "String" + }, + "useEnabledMfas": { + "Type": "String" + }, + "authRoleArn": { + "Type": "String" + }, + "unauthRoleArn": { + "Type": "String" + }, + "breakCircularDependency": { + "Type": "String" + }, + "dependsOn": { + "Type": "CommaDelimitedList" + }, + "permissions": { + "Type": "CommaDelimitedList" + }, + "authTriggerConnections": { + "Type": "CommaDelimitedList" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + "x", + "NONE" + ] + } + }, + "Resources": { + "UserPoolClientRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + }, + "Action": "sts:AssumeRole" + } + ] + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "upClientLambdaRole41a9495f", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + "amplify-storelocator-x-x-authstorelocator41a9495f41a9495f-x" + ] + } + ] + }, + "-", + "x" + ] + ] + } + } + } + }, + "Outputs": { + "IdentityPoolId": { + "Description": "Id for the identity pool", + "Value": "us-east-1:7517a9de-d491-4df1-9b07-0bf87d82d7da" + }, + "IdentityPoolName": { + "Value": "storelocator41a9495f_identitypool_41a9495f__x" + }, + "UserPoolId": { + "Description": "Id for the user pool", + "Value": "us-east-1_PMTKHb3hY" + }, + "UserPoolArn": { + "Description": "Arn for the user pool", + "Value": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_PMTKHb3hY" + }, + "UserPoolName": { + "Value": "storelocator41a9495f_userpool_41a9495f" + }, + "AppClientIDWeb": { + "Description": "The user pool app client id for web", + "Value": "3q5ra9590bvgqmjrls6cuntmir" + }, + "AppClientID": { + "Description": "The user pool app client id", + "Value": "3g5sgr3m93hl8dklni4oat8c5o" + } + } +} diff --git a/amplify-migration-apps/store-locator/_snapshot.post.refactor/refactor.__from__.amplify-storelocator-x-x-authstorelocator41a9495f41a9495f-x.__to__.amplify-storelocator-e2e-sandbox-x-auth179371D7-x.target.template.json b/amplify-migration-apps/store-locator/_snapshot.post.refactor/refactor.__from__.amplify-storelocator-x-x-authstorelocator41a9495f41a9495f-x.__to__.amplify-storelocator-e2e-sandbox-x-auth179371D7-x.target.template.json new file mode 100644 index 00000000000..4b3cafbc010 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.post.refactor/refactor.__from__.amplify-storelocator-x-x-authstorelocator41a9495f41a9495f-x.__to__.amplify-storelocator-e2e-sandbox-x-auth179371D7-x.target.template.json @@ -0,0 +1,818 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", + "Resources": { + "amplifyAuthUserPoolPostConfirmationCognitoE7E727CF": { + "Type": "AWS::Lambda::Permission", + "Properties": { + "Action": "lambda:InvokeFunction", + "FunctionName": "arn:aws:lambda:us-east-1:123456789012:function:storelocator41a9495f41a9495fPostConfirmation-gen2-x", + "Principal": "cognito-idp.amazonaws.com", + "SourceArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1dsjv7aux" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/amplifyAuth/UserPool/PostConfirmationCognito" + } + }, + "amplifyAuthauthenticatedUserRoleD8DA3689": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:81ff082e-6b3d-42b8-baa8-59f036f4bf6b" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/amplifyAuth/authenticatedUserRole/Resource" + } + }, + "amplifyAuthunauthenticatedUserRole2B524D9E": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:81ff082e-6b3d-42b8-baa8-59f036f4bf6b" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "unauthenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/amplifyAuth/unauthenticatedUserRole/Resource" + } + }, + "amplifyAuthstoreLocatorAdminGroupRoleDECAB489": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:81ff082e-6b3d-42b8-baa8-59f036f4bf6b" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/amplifyAuth/storeLocatorAdminGroupRole/Resource" + } + }, + "storelocator41a9495f41a9495fPostConfirmationgen2xlambdaServiceRole7EA338D3": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "storelocator41a9495f41a9495fPostConfirmation-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/storelocator41a9495f41a9495fPostConfirmation-gen2-x-lambda/ServiceRole/Resource" + } + }, + "storelocator41a9495f41a9495fPostConfirmationgen2xlambdaServiceRoleDefaultPolicy93A02680": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "ssm:GetParameters", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":ssm:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":parameter/amplify/resource_reference/storelocator/e2e-sandbox-x/AMPLIFY_AUTH_USERPOOL_ID" + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "storelocator41a9495f41a9495fPostConfirmationgen2xlambdaServiceRoleDefaultPolicy93A02680", + "Roles": [ + { + "Ref": "storelocator41a9495f41a9495fPostConfirmationgen2xlambdaServiceRole7EA338D3" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/storelocator41a9495f41a9495fPostConfirmation-gen2-x-lambda/ServiceRole/DefaultPolicy/Resource" + } + }, + "storelocator41a9495f41a9495fPostConfirmationgen2xlambdaA39138C1": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Architectures": [ + "x86_64" + ], + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "160afe14228f538544d3f57eba2a67b081afe243d3926aab05a998f3553f00e0.zip" + }, + "Environment": { + "Variables": { + "GROUP": "storeLocatorAdmin", + "MODULES": "add-to-group", + "ENV": "gen2-x", + "REGION": "us-east-1", + "AMPLIFY_SSM_ENV_CONFIG": "{\"AMPLIFY_AUTH_USERPOOL_ID\":{\"path\":\"/amplify/resource_reference/storelocator/e2e-sandbox-x/AMPLIFY_AUTH_USERPOOL_ID\"}}", + "AMPLIFY_AUTH_USERPOOL_ID": "" + } + }, + "EphemeralStorage": { + "Size": 512 + }, + "FunctionName": "storelocator41a9495f41a9495fPostConfirmation-gen2-x", + "Handler": "index.handler", + "MemorySize": 512, + "Role": "arn:aws:iam::123456789012:role/amplify-storelocator-e2e-sandbox-x-auth179371D7-x/storelocator41a9495f41a9495fPostConfirmationgen2xlambdaServiceRole7EA338D3", + "Runtime": "nodejs22.x", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "storelocator41a9495f41a9495fPostConfirmation-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 25 + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/storelocator41a9495f41a9495fPostConfirmation-gen2-x-lambda/Resource", + "aws:asset:path": "asset.160afe14228f538544d3f57eba2a67b081afe243d3926aab05a998f3553f00e0", + "aws:asset:is-bundled": true, + "aws:asset:property": "Code" + } + }, + "AMPLIFYAUTHUSERPOOLIDParameterCC466CA3": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/storelocator/e2e-sandbox-x/AMPLIFY_AUTH_USERPOOL_ID", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": "us-east-1_1dsjv7aux" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/AMPLIFY_AUTH_USERPOOL_IDParameter/Resource" + } + }, + "userpoolAccess13FEE5419": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "cognito-idp:AdminAddUserToGroup", + "cognito-idp:GetGroup", + "cognito-idp:ListGroups", + "cognito-idp:CreateGroup", + "cognito-idp:DeleteGroup", + "cognito-idp:UpdateGroup" + ], + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1dsjv7aux" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess13FEE5419", + "Roles": [ + { + "Ref": "storelocator41a9495f41a9495fPostConfirmationgen2xlambdaServiceRole7EA338D3" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/userpoolAccess1/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/12NzW6DQAyEnyX3xaVE7T1BatRLhIJ6RpvFoYb9qdamUYR492qJaKOeZsb2fC6geMkh3+grZ6YdMktnmI7Igm0t2gxKX7mZTOg8SYDpgzFWIVhVXvyvX01pCb08rv4m7y16Ibmt5cd8ChZ3Itp8un/9Qwzj16ysdudWw1RefIXRETMFn+7eRm+Egp8VaQdTAqXxolWwZG4p3t2KaXxosWc4LrISFG8bzYzCsEuieAv70Qwoe82omB1MtUTyXaWjdigYF/Qa5lktvVp0R76bVfoCPT99FwU8v0K+6Zkoi6MXcginu/4AH6eqXH4BAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + }, + "amplifyAuthstoreLocatorAdminGroup85B78B77": { + "Type": "AWS::Cognito::UserPoolGroup", + "Properties": { + "Description": "override success", + "GroupName": "storeLocatorAdmin", + "Precedence": 1, + "RoleArn": "arn:aws:iam::123456789012:role/us-east-1_PMTKHb3hY-storeLocatorAdminGroupRole", + "UserPoolId": "us-east-1_PMTKHb3hY" + } + }, + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": "8", + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolName": { + "Fn::Join": [ + "", + [ + "storelocator41a9495f_userpool_41a9495f", + "-", + "x" + ] + ] + }, + "UsernameAttributes": [ + "email" + ], + "UsernameConfiguration": { + "CaseSensitive": false + } + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "storel41a9495f_app_clientWeb", + "RefreshTokenValidity": "100", + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": "us-east-1_PMTKHb3hY" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "storel41a9495f_app_client", + "GenerateSecret": "false", + "RefreshTokenValidity": "100", + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": "us-east-1_PMTKHb3hY" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": "true", + "CognitoIdentityProviders": [ + { + "ClientId": "3g5sgr3m93hl8dklni4oat8c5o", + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": "us-east-1_PMTKHb3hY" + } + ] + } + }, + { + "ClientId": "3q5ra9590bvgqmjrls6cuntmir", + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": "us-east-1_PMTKHb3hY" + } + ] + } + } + ], + "IdentityPoolName": { + "Fn::Join": [ + "", + [ + "storelocator41a9495f_identitypool_41a9495f__", + "x" + ] + ] + } + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:7517a9de-d491-4df1-9b07-0bf87d82d7da", + "RoleMappings": { + "UserPoolClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${userPool}:${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "userPool": "us-east-1_PMTKHb3hY", + "client": "3g5sgr3m93hl8dklni4oat8c5o" + } + ] + }, + "Type": "Token" + }, + "UserPoolWebClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${userPool}:${webClient}", + { + "region": { + "Ref": "AWS::Region" + }, + "userPool": "us-east-1_PMTKHb3hY", + "webClient": "3q5ra9590bvgqmjrls6cuntmir" + } + ] + }, + "Type": "Token" + } + }, + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-storelocator-x-x-unauthRole", + "authenticated": "arn:aws:iam::123456789012:role/amplify-storelocator-x-x-authRole" + } + } + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifystorelocatore2esandboxdd610709c4authamplifyAuthUserPool56C869F9Ref": { + "Value": "us-east-1_1dsjv7aux" + }, + "amplifystorelocatore2esandboxdd610709c4authamplifyAuthUserPoolAppClient4E4BBC6CRef": { + "Value": "1jb6icmarkdqbom3q1caugppsp" + }, + "amplifystorelocatore2esandboxdd610709c4authamplifyAuthIdentityPoolC9BBD71ERef": { + "Value": "us-east-1:81ff082e-6b3d-42b8-baa8-59f036f4bf6b" + }, + "amplifystorelocatore2esandboxdd610709c4authstorelocator41a9495f41a9495fPostConfirmationgen2xlambdaF3B8D931Ref": { + "Value": "storelocator41a9495f41a9495fPostConfirmation-gen2-x" + }, + "amplifystorelocatore2esandboxdd610709c4authamplifyAuthauthenticatedUserRoleFD3A976BRef": { + "Value": "amplify-storelocat2604142-amplifyAuthauthenticatedU-wVZxcFB0fphi" + }, + "amplifystorelocatore2esandboxdd610709c4authamplifyAuthunauthenticatedUserRoleF5FAC08ERef": { + "Value": "amplify-storelocat2604142-amplifyAuthunauthenticate-jXqOMCUo8MPA" + }, + "amplifystorelocatore2esandboxdd610709c4authamplifyAuthstoreLocatorAdminGroupRoleC0E3E7C0Ref": { + "Value": "amplify-storelocat2604142-amplifyAuthstoreLocatorAd-Y07eHwc1xbQQ" + } + } +} diff --git a/amplify-migration-apps/store-locator/_snapshot.post.refactor/refactor.__from__.amplify-storelocator-x-x-authuserPoolGroups-x.__to__.amplify-storelocator-e2e-sandbox-x-auth179371D7-x.mappings.json b/amplify-migration-apps/store-locator/_snapshot.post.refactor/refactor.__from__.amplify-storelocator-x-x-authuserPoolGroups-x.__to__.amplify-storelocator-e2e-sandbox-x-auth179371D7-x.mappings.json new file mode 100644 index 00000000000..b274c289897 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.post.refactor/refactor.__from__.amplify-storelocator-x-x-authuserPoolGroups-x.__to__.amplify-storelocator-e2e-sandbox-x-auth179371D7-x.mappings.json @@ -0,0 +1,12 @@ +[ + { + "Source": { + "StackName": "amplify-storelocator-x-x-authuserPoolGroups-x", + "LogicalResourceId": "storeLocatorAdminGroup" + }, + "Destination": { + "StackName": "amplify-storelocator-e2e-sandbox-x-auth179371D7-x", + "LogicalResourceId": "amplifyAuthstoreLocatorAdminGroup85B78B77" + } + } +] diff --git a/amplify-migration-apps/store-locator/_snapshot.post.refactor/refactor.__from__.amplify-storelocator-x-x-authuserPoolGroups-x.__to__.amplify-storelocator-e2e-sandbox-x-auth179371D7-x.source.template.json b/amplify-migration-apps/store-locator/_snapshot.post.refactor/refactor.__from__.amplify-storelocator-x-x-authuserPoolGroups-x.__to__.amplify-storelocator-e2e-sandbox-x-auth179371D7-x.source.template.json new file mode 100644 index 00000000000..7664d5f57af --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.post.refactor/refactor.__from__.amplify-storelocator-x-x-authuserPoolGroups-x.__to__.amplify-storelocator-e2e-sandbox-x-auth179371D7-x.source.template.json @@ -0,0 +1,81 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito-UserPool-Groups\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "AuthRoleArn": { + "Type": "String" + }, + "UnauthRoleArn": { + "Type": "String" + }, + "authstorelocator41a9495f41a9495fUserPoolId": { + "Type": "String", + "Default": "authstorelocator41a9495f41a9495fUserPoolId" + }, + "authstorelocator41a9495f41a9495fIdentityPoolId": { + "Type": "String", + "Default": "authstorelocator41a9495f41a9495fIdentityPoolId" + }, + "authstorelocator41a9495f41a9495fAppClientID": { + "Type": "String", + "Default": "authstorelocator41a9495f41a9495fAppClientID" + }, + "authstorelocator41a9495f41a9495fAppClientIDWeb": { + "Type": "String", + "Default": "authstorelocator41a9495f41a9495fAppClientIDWeb" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + "x", + "NONE" + ] + } + }, + "Resources": { + "storeLocatorAdminGroupRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Sid": "", + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + }, + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:7517a9de-d491-4df1-9b07-0bf87d82d7da" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + } + } + ] + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "us-east-1_PMTKHb3hY", + "-storeLocatorAdminGroupRole" + ] + ] + } + } + } + }, + "Outputs": { + "storeLocatorAdminGroupRole": { + "Value": "arn:aws:iam::123456789012:role/us-east-1_PMTKHb3hY-storeLocatorAdminGroupRole" + } + } +} diff --git a/amplify-migration-apps/store-locator/_snapshot.post.refactor/refactor.__from__.amplify-storelocator-x-x-authuserPoolGroups-x.__to__.amplify-storelocator-e2e-sandbox-x-auth179371D7-x.target.template.json b/amplify-migration-apps/store-locator/_snapshot.post.refactor/refactor.__from__.amplify-storelocator-x-x-authuserPoolGroups-x.__to__.amplify-storelocator-e2e-sandbox-x-auth179371D7-x.target.template.json new file mode 100644 index 00000000000..6ea744ed8ee --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.post.refactor/refactor.__from__.amplify-storelocator-x-x-authuserPoolGroups-x.__to__.amplify-storelocator-e2e-sandbox-x-auth179371D7-x.target.template.json @@ -0,0 +1,865 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", + "Resources": { + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AccountRecoverySetting": { + "RecoveryMechanisms": [ + { + "Name": "verified_email", + "Priority": 1 + } + ] + }, + "AdminCreateUserConfig": { + "AllowAdminCreateUserOnly": false + }, + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "LambdaConfig": { + "PostConfirmation": "arn:aws:lambda:us-east-1:123456789012:function:storelocator41a9495f41a9495fPostConfirmation-gen2-x" + }, + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": 8, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false, + "TemporaryPasswordValidityDays": 7 + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "SmsVerificationMessage": "The verification code to your new account is {####}", + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolTags": { + "amplify:deployment-type": "sandbox", + "amplify:friendly-name": "amplifyAuth", + "created-by": "amplify" + }, + "UsernameAttributes": [ + "email" + ], + "UsernameConfiguration": { + "CaseSensitive": false + }, + "VerificationMessageTemplate": { + "DefaultEmailOption": "CONFIRM_WITH_CODE", + "EmailMessage": "Your verification code is {####}", + "EmailSubject": "Your verification code", + "SmsMessage": "The verification code to your new account is {####}" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/amplifyAuth/UserPool/Resource" + } + }, + "amplifyAuthUserPoolPostConfirmationCognitoE7E727CF": { + "Type": "AWS::Lambda::Permission", + "Properties": { + "Action": "lambda:InvokeFunction", + "FunctionName": "arn:aws:lambda:us-east-1:123456789012:function:storelocator41a9495f41a9495fPostConfirmation-gen2-x", + "Principal": "cognito-idp.amazonaws.com", + "SourceArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1dsjv7aux" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/amplifyAuth/UserPool/PostConfirmationCognito" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 144000, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": "us-east-1_1dsjv7aux" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlows": [ + "code" + ], + "AllowedOAuthFlowsUserPoolClient": true, + "AllowedOAuthScopes": [ + "profile", + "phone", + "email", + "openid", + "aws.cognito.signin.user.admin" + ], + "CallbackURLs": [ + "https://example.com" + ], + "ExplicitAuthFlows": [ + "ALLOW_CUSTOM_AUTH", + "ALLOW_USER_SRP_AUTH", + "ALLOW_REFRESH_TOKEN_AUTH" + ], + "PreventUserExistenceErrors": "ENABLED", + "SupportedIdentityProviders": [ + "COGNITO" + ], + "UserPoolId": "us-east-1_1dsjv7aux" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/amplifyAuth/UserPoolAppClient/Resource" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": true, + "CognitoIdentityProviders": [ + { + "ClientId": "1jb6icmarkdqbom3q1caugppsp", + "ProviderName": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_1dsjv7aux" + ] + ] + } + } + ], + "IdentityPoolTags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "SupportedLoginProviders": {} + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/amplifyAuth/IdentityPool" + } + }, + "amplifyAuthauthenticatedUserRoleD8DA3689": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:81ff082e-6b3d-42b8-baa8-59f036f4bf6b" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/amplifyAuth/authenticatedUserRole/Resource" + } + }, + "amplifyAuthunauthenticatedUserRole2B524D9E": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:81ff082e-6b3d-42b8-baa8-59f036f4bf6b" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "unauthenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/amplifyAuth/unauthenticatedUserRole/Resource" + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:81ff082e-6b3d-42b8-baa8-59f036f4bf6b", + "RoleMappings": { + "UserPoolWebClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_1dsjv7aux", + ":", + "1jb6icmarkdqbom3q1caugppsp" + ] + ] + }, + "Type": "Token" + } + }, + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-storelocat2604142-amplifyAuthunauthenticate-jXqOMCUo8MPA", + "authenticated": "arn:aws:iam::123456789012:role/amplify-storelocat2604142-amplifyAuthauthenticatedU-wVZxcFB0fphi" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/amplifyAuth/IdentityPoolRoleAttachment" + } + }, + "amplifyAuthstoreLocatorAdminGroupRoleDECAB489": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:81ff082e-6b3d-42b8-baa8-59f036f4bf6b" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/amplifyAuth/storeLocatorAdminGroupRole/Resource" + } + }, + "storelocator41a9495f41a9495fPostConfirmationgen2xlambdaServiceRole7EA338D3": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "storelocator41a9495f41a9495fPostConfirmation-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/storelocator41a9495f41a9495fPostConfirmation-gen2-x-lambda/ServiceRole/Resource" + } + }, + "storelocator41a9495f41a9495fPostConfirmationgen2xlambdaServiceRoleDefaultPolicy93A02680": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "ssm:GetParameters", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":ssm:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":parameter/amplify/resource_reference/storelocator/e2e-sandbox-x/AMPLIFY_AUTH_USERPOOL_ID" + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "storelocator41a9495f41a9495fPostConfirmationgen2xlambdaServiceRoleDefaultPolicy93A02680", + "Roles": [ + { + "Ref": "storelocator41a9495f41a9495fPostConfirmationgen2xlambdaServiceRole7EA338D3" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/storelocator41a9495f41a9495fPostConfirmation-gen2-x-lambda/ServiceRole/DefaultPolicy/Resource" + } + }, + "storelocator41a9495f41a9495fPostConfirmationgen2xlambdaA39138C1": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Architectures": [ + "x86_64" + ], + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "160afe14228f538544d3f57eba2a67b081afe243d3926aab05a998f3553f00e0.zip" + }, + "Environment": { + "Variables": { + "GROUP": "storeLocatorAdmin", + "MODULES": "add-to-group", + "ENV": "gen2-x", + "REGION": "us-east-1", + "AMPLIFY_SSM_ENV_CONFIG": "{\"AMPLIFY_AUTH_USERPOOL_ID\":{\"path\":\"/amplify/resource_reference/storelocator/e2e-sandbox-x/AMPLIFY_AUTH_USERPOOL_ID\"}}", + "AMPLIFY_AUTH_USERPOOL_ID": "" + } + }, + "EphemeralStorage": { + "Size": 512 + }, + "FunctionName": "storelocator41a9495f41a9495fPostConfirmation-gen2-x", + "Handler": "index.handler", + "MemorySize": 512, + "Role": "arn:aws:iam::123456789012:role/amplify-storelocator-e2e-sandbox-x-auth179371D7-x/storelocator41a9495f41a9495fPostConfirmationgen2xlambdaServiceRole7EA338D3", + "Runtime": "nodejs22.x", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "storelocator41a9495f41a9495fPostConfirmation-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 25 + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/storelocator41a9495f41a9495fPostConfirmation-gen2-x-lambda/Resource", + "aws:asset:path": "asset.160afe14228f538544d3f57eba2a67b081afe243d3926aab05a998f3553f00e0", + "aws:asset:is-bundled": true, + "aws:asset:property": "Code" + } + }, + "AMPLIFYAUTHUSERPOOLIDParameterCC466CA3": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/storelocator/e2e-sandbox-x/AMPLIFY_AUTH_USERPOOL_ID", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": "us-east-1_1dsjv7aux" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/AMPLIFY_AUTH_USERPOOL_IDParameter/Resource" + } + }, + "userpoolAccess13FEE5419": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "cognito-idp:AdminAddUserToGroup", + "cognito-idp:GetGroup", + "cognito-idp:ListGroups", + "cognito-idp:CreateGroup", + "cognito-idp:DeleteGroup", + "cognito-idp:UpdateGroup" + ], + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1dsjv7aux" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess13FEE5419", + "Roles": [ + { + "Ref": "storelocator41a9495f41a9495fPostConfirmationgen2xlambdaServiceRole7EA338D3" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/userpoolAccess1/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/12NzW6DQAyEnyX3xaVE7T1BatRLhIJ6RpvFoYb9qdamUYR492qJaKOeZsb2fC6geMkh3+grZ6YdMktnmI7Igm0t2gxKX7mZTOg8SYDpgzFWIVhVXvyvX01pCb08rv4m7y16Ibmt5cd8ChZ3Itp8un/9Qwzj16ysdudWw1RefIXRETMFn+7eRm+Egp8VaQdTAqXxolWwZG4p3t2KaXxosWc4LrISFG8bzYzCsEuieAv70Qwoe82omB1MtUTyXaWjdigYF/Qa5lktvVp0R76bVfoCPT99FwU8v0K+6Zkoi6MXcginu/4AH6eqXH4BAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + }, + "amplifyAuthstoreLocatorAdminGroup85B78B77": { + "Type": "AWS::Cognito::UserPoolGroup", + "Properties": { + "Description": "override success", + "GroupName": "storeLocatorAdmin", + "Precedence": 1, + "RoleArn": "arn:aws:iam::123456789012:role/us-east-1_PMTKHb3hY-storeLocatorAdminGroupRole", + "UserPoolId": "us-east-1_PMTKHb3hY" + } + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifystorelocatore2esandboxdd610709c4authamplifyAuthUserPool56C869F9Ref": { + "Value": "us-east-1_1dsjv7aux" + }, + "amplifystorelocatore2esandboxdd610709c4authamplifyAuthUserPoolAppClient4E4BBC6CRef": { + "Value": "1jb6icmarkdqbom3q1caugppsp" + }, + "amplifystorelocatore2esandboxdd610709c4authamplifyAuthIdentityPoolC9BBD71ERef": { + "Value": "us-east-1:81ff082e-6b3d-42b8-baa8-59f036f4bf6b" + }, + "amplifystorelocatore2esandboxdd610709c4authstorelocator41a9495f41a9495fPostConfirmationgen2xlambdaF3B8D931Ref": { + "Value": "storelocator41a9495f41a9495fPostConfirmation-gen2-x" + }, + "amplifystorelocatore2esandboxdd610709c4authamplifyAuthauthenticatedUserRoleFD3A976BRef": { + "Value": "amplify-storelocat2604142-amplifyAuthauthenticatedU-wVZxcFB0fphi" + }, + "amplifystorelocatore2esandboxdd610709c4authamplifyAuthunauthenticatedUserRoleF5FAC08ERef": { + "Value": "amplify-storelocat2604142-amplifyAuthunauthenticate-jXqOMCUo8MPA" + }, + "amplifystorelocatore2esandboxdd610709c4authamplifyAuthstoreLocatorAdminGroupRoleC0E3E7C0Ref": { + "Value": "amplify-storelocat2604142-amplifyAuthstoreLocatorAd-Y07eHwc1xbQQ" + } + } +} diff --git a/amplify-migration-apps/store-locator/_snapshot.post.refactor/update.amplify-storelocator-e2e-sandbox-x-auth179371D7-x.parameters.json b/amplify-migration-apps/store-locator/_snapshot.post.refactor/update.amplify-storelocator-e2e-sandbox-x-auth179371D7-x.parameters.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.post.refactor/update.amplify-storelocator-e2e-sandbox-x-auth179371D7-x.parameters.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/store-locator/_snapshot.post.refactor/update.amplify-storelocator-e2e-sandbox-x-auth179371D7-x.template.json b/amplify-migration-apps/store-locator/_snapshot.post.refactor/update.amplify-storelocator-e2e-sandbox-x-auth179371D7-x.template.json new file mode 100644 index 00000000000..c594d78ff13 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.post.refactor/update.amplify-storelocator-e2e-sandbox-x-auth179371D7-x.template.json @@ -0,0 +1,869 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", + "Resources": { + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AccountRecoverySetting": { + "RecoveryMechanisms": [ + { + "Name": "verified_email", + "Priority": 1 + } + ] + }, + "AdminCreateUserConfig": { + "AllowAdminCreateUserOnly": false + }, + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "LambdaConfig": { + "PostConfirmation": "arn:aws:lambda:us-east-1:123456789012:function:storelocator41a9495f41a9495fPostConfirmation-gen2-x" + }, + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": 8, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false, + "TemporaryPasswordValidityDays": 7 + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "SmsVerificationMessage": "The verification code to your new account is {####}", + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolTags": { + "amplify:deployment-type": "sandbox", + "amplify:friendly-name": "amplifyAuth", + "created-by": "amplify" + }, + "UsernameAttributes": [ + "email" + ], + "UsernameConfiguration": { + "CaseSensitive": false + }, + "VerificationMessageTemplate": { + "DefaultEmailOption": "CONFIRM_WITH_CODE", + "EmailMessage": "Your verification code is {####}", + "EmailSubject": "Your verification code", + "SmsMessage": "The verification code to your new account is {####}" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/amplifyAuth/UserPool/Resource" + } + }, + "amplifyAuthUserPoolPostConfirmationCognitoE7E727CF": { + "Type": "AWS::Lambda::Permission", + "Properties": { + "Action": "lambda:InvokeFunction", + "FunctionName": "arn:aws:lambda:us-east-1:123456789012:function:storelocator41a9495f41a9495fPostConfirmation-gen2-x", + "Principal": "cognito-idp.amazonaws.com", + "SourceArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1dsjv7aux" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/amplifyAuth/UserPool/PostConfirmationCognito" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 144000, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": "us-east-1_1dsjv7aux" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlows": [ + "code" + ], + "AllowedOAuthFlowsUserPoolClient": true, + "AllowedOAuthScopes": [ + "profile", + "phone", + "email", + "openid", + "aws.cognito.signin.user.admin" + ], + "CallbackURLs": [ + "https://example.com" + ], + "ExplicitAuthFlows": [ + "ALLOW_CUSTOM_AUTH", + "ALLOW_USER_SRP_AUTH", + "ALLOW_REFRESH_TOKEN_AUTH" + ], + "PreventUserExistenceErrors": "ENABLED", + "SupportedIdentityProviders": [ + "COGNITO" + ], + "UserPoolId": "us-east-1_1dsjv7aux" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/amplifyAuth/UserPoolAppClient/Resource" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": true, + "CognitoIdentityProviders": [ + { + "ClientId": "1jb6icmarkdqbom3q1caugppsp", + "ProviderName": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_1dsjv7aux" + ] + ] + } + } + ], + "IdentityPoolTags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "SupportedLoginProviders": {} + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/amplifyAuth/IdentityPool" + } + }, + "amplifyAuthauthenticatedUserRoleD8DA3689": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:81ff082e-6b3d-42b8-baa8-59f036f4bf6b" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/amplifyAuth/authenticatedUserRole/Resource" + } + }, + "amplifyAuthunauthenticatedUserRole2B524D9E": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:81ff082e-6b3d-42b8-baa8-59f036f4bf6b" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "unauthenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/amplifyAuth/unauthenticatedUserRole/Resource" + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:81ff082e-6b3d-42b8-baa8-59f036f4bf6b", + "RoleMappings": { + "UserPoolWebClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + "us-east-1_1dsjv7aux", + ":", + "1jb6icmarkdqbom3q1caugppsp" + ] + ] + }, + "Type": "Token" + } + }, + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-storelocat2604142-amplifyAuthunauthenticate-jXqOMCUo8MPA", + "authenticated": "arn:aws:iam::123456789012:role/amplify-storelocat2604142-amplifyAuthauthenticatedU-wVZxcFB0fphi" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/amplifyAuth/IdentityPoolRoleAttachment" + } + }, + "amplifyAuthstoreLocatorAdminGroupRoleDECAB489": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:81ff082e-6b3d-42b8-baa8-59f036f4bf6b" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/amplifyAuth/storeLocatorAdminGroupRole/Resource" + } + }, + "amplifyAuthstoreLocatorAdminGroup85B78B77": { + "Type": "AWS::Cognito::UserPoolGroup", + "Properties": { + "GroupName": "storeLocatorAdmin", + "Precedence": 0, + "RoleArn": "arn:aws:iam::123456789012:role/amplify-storelocat2604142-amplifyAuthstoreLocatorAd-Y07eHwc1xbQQ", + "UserPoolId": "us-east-1_1dsjv7aux" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/amplifyAuth/storeLocatorAdminGroup" + } + }, + "storelocator41a9495f41a9495fPostConfirmationgen2xlambdaServiceRole7EA338D3": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "storelocator41a9495f41a9495fPostConfirmation-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/storelocator41a9495f41a9495fPostConfirmation-gen2-x-lambda/ServiceRole/Resource" + } + }, + "storelocator41a9495f41a9495fPostConfirmationgen2xlambdaServiceRoleDefaultPolicy93A02680": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "ssm:GetParameters", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":ssm:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":parameter/amplify/resource_reference/storelocator/e2e-sandbox-x/AMPLIFY_AUTH_USERPOOL_ID" + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "storelocator41a9495f41a9495fPostConfirmationgen2xlambdaServiceRoleDefaultPolicy93A02680", + "Roles": [ + { + "Ref": "storelocator41a9495f41a9495fPostConfirmationgen2xlambdaServiceRole7EA338D3" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/storelocator41a9495f41a9495fPostConfirmation-gen2-x-lambda/ServiceRole/DefaultPolicy/Resource" + } + }, + "storelocator41a9495f41a9495fPostConfirmationgen2xlambdaA39138C1": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Architectures": [ + "x86_64" + ], + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "160afe14228f538544d3f57eba2a67b081afe243d3926aab05a998f3553f00e0.zip" + }, + "Environment": { + "Variables": { + "GROUP": "storeLocatorAdmin", + "MODULES": "add-to-group", + "ENV": "gen2-x", + "REGION": "us-east-1", + "AMPLIFY_SSM_ENV_CONFIG": "{\"AMPLIFY_AUTH_USERPOOL_ID\":{\"path\":\"/amplify/resource_reference/storelocator/e2e-sandbox-x/AMPLIFY_AUTH_USERPOOL_ID\"}}", + "AMPLIFY_AUTH_USERPOOL_ID": "" + } + }, + "EphemeralStorage": { + "Size": 512 + }, + "FunctionName": "storelocator41a9495f41a9495fPostConfirmation-gen2-x", + "Handler": "index.handler", + "MemorySize": 512, + "Role": "arn:aws:iam::123456789012:role/amplify-storelocator-e2e-sandbox-x-auth179371D7-x/storelocator41a9495f41a9495fPostConfirmationgen2xlambdaServiceRole7EA338D3", + "Runtime": "nodejs22.x", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "storelocator41a9495f41a9495fPostConfirmation-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 25 + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/storelocator41a9495f41a9495fPostConfirmation-gen2-x-lambda/Resource", + "aws:asset:path": "asset.160afe14228f538544d3f57eba2a67b081afe243d3926aab05a998f3553f00e0", + "aws:asset:is-bundled": true, + "aws:asset:property": "Code" + } + }, + "AMPLIFYAUTHUSERPOOLIDParameterCC466CA3": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/storelocator/e2e-sandbox-x/AMPLIFY_AUTH_USERPOOL_ID", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": "us-east-1_1dsjv7aux" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/AMPLIFY_AUTH_USERPOOL_IDParameter/Resource" + } + }, + "userpoolAccess13FEE5419": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "cognito-idp:AdminAddUserToGroup", + "cognito-idp:GetGroup", + "cognito-idp:ListGroups", + "cognito-idp:CreateGroup", + "cognito-idp:DeleteGroup", + "cognito-idp:UpdateGroup" + ], + "Effect": "Allow", + "Resource": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1dsjv7aux" + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess13FEE5419", + "Roles": [ + { + "Ref": "storelocator41a9495f41a9495fPostConfirmationgen2xlambdaServiceRole7EA338D3" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/userpoolAccess1/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/12NzW6DQAyEnyX3xaVE7T1BatRLhIJ6RpvFoYb9qdamUYR492qJaKOeZsb2fC6geMkh3+grZ6YdMktnmI7Igm0t2gxKX7mZTOg8SYDpgzFWIVhVXvyvX01pCb08rv4m7y16Ibmt5cd8ChZ3Itp8un/9Qwzj16ysdudWw1RefIXRETMFn+7eRm+Egp8VaQdTAqXxolWwZG4p3t2KaXxosWc4LrISFG8bzYzCsEuieAv70Qwoe82omB1MtUTyXaWjdigYF/Qa5lktvVp0R76bVfoCPT99FwU8v0K+6Zkoi6MXcginu/4AH6eqXH4BAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifystorelocatore2esandboxdd610709c4authamplifyAuthUserPool56C869F9Ref": { + "Value": "us-east-1_1dsjv7aux" + }, + "amplifystorelocatore2esandboxdd610709c4authamplifyAuthUserPoolAppClient4E4BBC6CRef": { + "Value": "1jb6icmarkdqbom3q1caugppsp" + }, + "amplifystorelocatore2esandboxdd610709c4authamplifyAuthIdentityPoolC9BBD71ERef": { + "Value": "us-east-1:81ff082e-6b3d-42b8-baa8-59f036f4bf6b" + }, + "amplifystorelocatore2esandboxdd610709c4authstorelocator41a9495f41a9495fPostConfirmationgen2xlambdaF3B8D931Ref": { + "Value": "storelocator41a9495f41a9495fPostConfirmation-gen2-x" + }, + "amplifystorelocatore2esandboxdd610709c4authamplifyAuthauthenticatedUserRoleFD3A976BRef": { + "Value": "amplify-storelocat2604142-amplifyAuthauthenticatedU-wVZxcFB0fphi" + }, + "amplifystorelocatore2esandboxdd610709c4authamplifyAuthunauthenticatedUserRoleF5FAC08ERef": { + "Value": "amplify-storelocat2604142-amplifyAuthunauthenticate-jXqOMCUo8MPA" + }, + "amplifystorelocatore2esandboxdd610709c4authamplifyAuthstoreLocatorAdminGroupRoleC0E3E7C0Ref": { + "Value": "amplify-storelocat2604142-amplifyAuthstoreLocatorAd-Y07eHwc1xbQQ" + } + } +} diff --git a/amplify-migration-apps/store-locator/_snapshot.post.refactor/update.amplify-storelocator-x-x-authstorelocator41a9495f41a9495f-x.parameters.json b/amplify-migration-apps/store-locator/_snapshot.post.refactor/update.amplify-storelocator-x-x-authstorelocator41a9495f41a9495f-x.parameters.json new file mode 100644 index 00000000000..90bd38d571a --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.post.refactor/update.amplify-storelocator-x-x-authstorelocator41a9495f41a9495f-x.parameters.json @@ -0,0 +1,182 @@ +[ + { + "ParameterKey": "usernameAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "authRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-storelocator-x-x-authRole" + }, + { + "ParameterKey": "autoVerifiedAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "allowUnauthenticatedIdentities", + "ParameterValue": "true" + }, + { + "ParameterKey": "hostedUI", + "ParameterValue": "false" + }, + { + "ParameterKey": "smsVerificationMessage", + "ParameterValue": "Your verification code is {####}" + }, + { + "ParameterKey": "userpoolClientReadAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "breakCircularDependency", + "ParameterValue": "true" + }, + { + "ParameterKey": "mfaTypes", + "ParameterValue": "SMS Text Message" + }, + { + "ParameterKey": "emailVerificationSubject", + "ParameterValue": "Your verification code" + }, + { + "ParameterKey": "sharedId", + "ParameterValue": "41a9495f" + }, + { + "ParameterKey": "useDefault", + "ParameterValue": "manual" + }, + { + "ParameterKey": "userpoolClientGenerateSecret", + "ParameterValue": "false" + }, + { + "ParameterKey": "mfaConfiguration", + "ParameterValue": "OFF" + }, + { + "ParameterKey": "identityPoolName", + "ParameterValue": "storelocator41a9495f_identitypool_41a9495f" + }, + { + "ParameterKey": "thirdPartyAuth", + "ParameterValue": "false" + }, + { + "ParameterKey": "userPoolGroupList", + "ParameterValue": "storeLocatorAdmin" + }, + { + "ParameterKey": "authSelections", + "ParameterValue": "identityPoolAndUserPool" + }, + { + "ParameterKey": "adminQueries", + "ParameterValue": "false" + }, + { + "ParameterKey": "permissions", + "ParameterValue": "{\"policyName\":\"AddToGroupCognito\",\"trigger\":\"PostConfirmation\",\"effect\":\"Allow\",\"actions\":[\"cognito-idp:AdminAddUserToGroup\",\"cognito-idp:GetGroup\",\"cognito-idp:CreateGroup\"],\"resource\":{\"paramType\":\"!GetAtt\",\"keys\":[\"UserPool\",\"Arn\"]}}" + }, + { + "ParameterKey": "resourceNameTruncated", + "ParameterValue": "storel41a9495f" + }, + { + "ParameterKey": "userPoolGroups", + "ParameterValue": "true" + }, + { + "ParameterKey": "smsAuthenticationMessage", + "ParameterValue": "Your authentication code is {####}" + }, + { + "ParameterKey": "functionstorelocator41a9495f41a9495fPostConfirmationArn", + "ParameterValue": "functionstorelocator41a9495f41a9495fPostConfirmationArn" + }, + { + "ParameterKey": "functionstorelocator41a9495f41a9495fPostConfirmationName", + "ParameterValue": "functionstorelocator41a9495f41a9495fPostConfirmationName" + }, + { + "ParameterKey": "passwordPolicyMinLength", + "ParameterValue": "8" + }, + { + "ParameterKey": "userPoolName", + "ParameterValue": "storelocator41a9495f_userpool_41a9495f" + }, + { + "ParameterKey": "userpoolClientWriteAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "dependsOn", + "ParameterValue": "[object Object]" + }, + { + "ParameterKey": "useEnabledMfas", + "ParameterValue": "true" + }, + { + "ParameterKey": "usernameCaseSensitive", + "ParameterValue": "false" + }, + { + "ParameterKey": "resourceName", + "ParameterValue": "storelocator41a9495f41a9495f" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "triggers", + "ParameterValue": "{\"PostConfirmation\":[\"add-to-group\"]}" + }, + { + "ParameterKey": "serviceName", + "ParameterValue": "Cognito" + }, + { + "ParameterKey": "emailVerificationMessage", + "ParameterValue": "Your verification code is {####}" + }, + { + "ParameterKey": "userpoolClientRefreshTokenValidity", + "ParameterValue": "100" + }, + { + "ParameterKey": "userpoolClientSetAttributes", + "ParameterValue": "false" + }, + { + "ParameterKey": "unauthRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-storelocator-x-x-unauthRole" + }, + { + "ParameterKey": "requiredAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "passwordPolicyCharacters", + "ParameterValue": "" + }, + { + "ParameterKey": "authTriggerConnections", + "ParameterValue": "{\"triggerType\":\"PostConfirmation\",\"lambdaFunctionName\":\"storelocator41a9495f41a9495fPostConfirmation\"}" + }, + { + "ParameterKey": "aliasAttributes", + "ParameterValue": "" + }, + { + "ParameterKey": "userpoolClientLambdaRole", + "ParameterValue": "storel41a9495f_userpoolclient_lambda_role" + }, + { + "ParameterKey": "defaultPasswordPolicy", + "ParameterValue": "false" + } +] diff --git a/amplify-migration-apps/store-locator/_snapshot.post.refactor/update.amplify-storelocator-x-x-authstorelocator41a9495f41a9495f-x.template.json b/amplify-migration-apps/store-locator/_snapshot.post.refactor/update.amplify-storelocator-x-x-authstorelocator41a9495f41a9495f-x.template.json new file mode 100644 index 00000000000..4742aae5299 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.post.refactor/update.amplify-storelocator-x-x-authstorelocator41a9495f41a9495f-x.template.json @@ -0,0 +1,379 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "functionstorelocator41a9495f41a9495fPostConfirmationArn": { + "Type": "String", + "Default": "functionstorelocator41a9495f41a9495fPostConfirmationArn" + }, + "functionstorelocator41a9495f41a9495fPostConfirmationName": { + "Type": "String", + "Default": "functionstorelocator41a9495f41a9495fPostConfirmationName" + }, + "identityPoolName": { + "Type": "String" + }, + "allowUnauthenticatedIdentities": { + "Type": "String" + }, + "resourceNameTruncated": { + "Type": "String" + }, + "userPoolName": { + "Type": "String" + }, + "autoVerifiedAttributes": { + "Type": "CommaDelimitedList" + }, + "mfaConfiguration": { + "Type": "String" + }, + "mfaTypes": { + "Type": "CommaDelimitedList" + }, + "smsAuthenticationMessage": { + "Type": "String" + }, + "smsVerificationMessage": { + "Type": "String" + }, + "emailVerificationSubject": { + "Type": "String" + }, + "emailVerificationMessage": { + "Type": "String" + }, + "defaultPasswordPolicy": { + "Type": "String" + }, + "passwordPolicyMinLength": { + "Type": "String" + }, + "passwordPolicyCharacters": { + "Type": "CommaDelimitedList" + }, + "requiredAttributes": { + "Type": "CommaDelimitedList" + }, + "aliasAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientGenerateSecret": { + "Type": "String" + }, + "userpoolClientRefreshTokenValidity": { + "Type": "String" + }, + "userpoolClientWriteAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientReadAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientLambdaRole": { + "Type": "String" + }, + "userpoolClientSetAttributes": { + "Type": "String" + }, + "sharedId": { + "Type": "String" + }, + "resourceName": { + "Type": "String" + }, + "authSelections": { + "Type": "String" + }, + "useDefault": { + "Type": "String" + }, + "thirdPartyAuth": { + "Type": "String" + }, + "usernameAttributes": { + "Type": "CommaDelimitedList" + }, + "userPoolGroups": { + "Type": "String" + }, + "adminQueries": { + "Type": "String" + }, + "triggers": { + "Type": "String" + }, + "hostedUI": { + "Type": "String" + }, + "userPoolGroupList": { + "Type": "CommaDelimitedList" + }, + "serviceName": { + "Type": "String" + }, + "usernameCaseSensitive": { + "Type": "String" + }, + "useEnabledMfas": { + "Type": "String" + }, + "authRoleArn": { + "Type": "String" + }, + "unauthRoleArn": { + "Type": "String" + }, + "breakCircularDependency": { + "Type": "String" + }, + "dependsOn": { + "Type": "CommaDelimitedList" + }, + "permissions": { + "Type": "CommaDelimitedList" + }, + "authTriggerConnections": { + "Type": "CommaDelimitedList" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + "x", + "NONE" + ] + } + }, + "Resources": { + "UserPool": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": "8", + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolName": { + "Fn::Join": [ + "", + [ + "storelocator41a9495f_userpool_41a9495f", + "-", + "x" + ] + ] + }, + "UsernameAttributes": [ + "email" + ], + "UsernameConfiguration": { + "CaseSensitive": false + } + } + }, + "UserPoolClientWeb": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "storel41a9495f_app_clientWeb", + "RefreshTokenValidity": "100", + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": "us-east-1_PMTKHb3hY" + } + }, + "UserPoolClient": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "storel41a9495f_app_client", + "GenerateSecret": "false", + "RefreshTokenValidity": "100", + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": "us-east-1_PMTKHb3hY" + } + }, + "UserPoolClientRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + }, + "Action": "sts:AssumeRole" + } + ] + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "upClientLambdaRole41a9495f", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + "amplify-storelocator-x-x-authstorelocator41a9495f41a9495f-x" + ] + } + ] + }, + "-", + "x" + ] + ] + } + } + }, + "IdentityPool": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": "true", + "CognitoIdentityProviders": [ + { + "ClientId": "3g5sgr3m93hl8dklni4oat8c5o", + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": "us-east-1_PMTKHb3hY" + } + ] + } + }, + { + "ClientId": "3q5ra9590bvgqmjrls6cuntmir", + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": "us-east-1_PMTKHb3hY" + } + ] + } + } + ], + "IdentityPoolName": { + "Fn::Join": [ + "", + [ + "storelocator41a9495f_identitypool_41a9495f__", + "x" + ] + ] + } + } + }, + "IdentityPoolRoleMap": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": "us-east-1:7517a9de-d491-4df1-9b07-0bf87d82d7da", + "RoleMappings": { + "UserPoolClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${userPool}:${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "userPool": "us-east-1_PMTKHb3hY", + "client": "3g5sgr3m93hl8dklni4oat8c5o" + } + ] + }, + "Type": "Token" + }, + "UserPoolWebClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${userPool}:${webClient}", + { + "region": { + "Ref": "AWS::Region" + }, + "userPool": "us-east-1_PMTKHb3hY", + "webClient": "3q5ra9590bvgqmjrls6cuntmir" + } + ] + }, + "Type": "Token" + } + }, + "Roles": { + "unauthenticated": "arn:aws:iam::123456789012:role/amplify-storelocator-x-x-unauthRole", + "authenticated": "arn:aws:iam::123456789012:role/amplify-storelocator-x-x-authRole" + } + } + } + }, + "Outputs": { + "IdentityPoolId": { + "Description": "Id for the identity pool", + "Value": "us-east-1:7517a9de-d491-4df1-9b07-0bf87d82d7da" + }, + "IdentityPoolName": { + "Value": "storelocator41a9495f_identitypool_41a9495f__x" + }, + "UserPoolId": { + "Description": "Id for the user pool", + "Value": "us-east-1_PMTKHb3hY" + }, + "UserPoolArn": { + "Description": "Arn for the user pool", + "Value": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_PMTKHb3hY" + }, + "UserPoolName": { + "Value": "storelocator41a9495f_userpool_41a9495f" + }, + "AppClientIDWeb": { + "Description": "The user pool app client id for web", + "Value": "3q5ra9590bvgqmjrls6cuntmir" + }, + "AppClientID": { + "Description": "The user pool app client id", + "Value": "3g5sgr3m93hl8dklni4oat8c5o" + } + } +} diff --git a/amplify-migration-apps/store-locator/_snapshot.post.refactor/update.amplify-storelocator-x-x-authuserPoolGroups-x.parameters.json b/amplify-migration-apps/store-locator/_snapshot.post.refactor/update.amplify-storelocator-x-x-authuserPoolGroups-x.parameters.json new file mode 100644 index 00000000000..a80fc891430 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.post.refactor/update.amplify-storelocator-x-x-authuserPoolGroups-x.parameters.json @@ -0,0 +1,30 @@ +[ + { + "ParameterKey": "UnauthRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-storelocator-x-x-unauthRole" + }, + { + "ParameterKey": "authstorelocator41a9495f41a9495fAppClientID", + "ParameterValue": "3g5sgr3m93hl8dklni4oat8c5o" + }, + { + "ParameterKey": "authstorelocator41a9495f41a9495fIdentityPoolId", + "ParameterValue": "us-east-1:7517a9de-d491-4df1-9b07-0bf87d82d7da" + }, + { + "ParameterKey": "AuthRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-storelocator-x-x-authRole" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "authstorelocator41a9495f41a9495fAppClientIDWeb", + "ParameterValue": "3q5ra9590bvgqmjrls6cuntmir" + }, + { + "ParameterKey": "authstorelocator41a9495f41a9495fUserPoolId", + "ParameterValue": "us-east-1_PMTKHb3hY" + } +] diff --git a/amplify-migration-apps/store-locator/_snapshot.post.refactor/update.amplify-storelocator-x-x-authuserPoolGroups-x.template.json b/amplify-migration-apps/store-locator/_snapshot.post.refactor/update.amplify-storelocator-x-x-authuserPoolGroups-x.template.json new file mode 100644 index 00000000000..0ea3f683c20 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.post.refactor/update.amplify-storelocator-x-x-authuserPoolGroups-x.template.json @@ -0,0 +1,91 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito-UserPool-Groups\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "AuthRoleArn": { + "Type": "String" + }, + "UnauthRoleArn": { + "Type": "String" + }, + "authstorelocator41a9495f41a9495fUserPoolId": { + "Type": "String", + "Default": "authstorelocator41a9495f41a9495fUserPoolId" + }, + "authstorelocator41a9495f41a9495fIdentityPoolId": { + "Type": "String", + "Default": "authstorelocator41a9495f41a9495fIdentityPoolId" + }, + "authstorelocator41a9495f41a9495fAppClientID": { + "Type": "String", + "Default": "authstorelocator41a9495f41a9495fAppClientID" + }, + "authstorelocator41a9495f41a9495fAppClientIDWeb": { + "Type": "String", + "Default": "authstorelocator41a9495f41a9495fAppClientIDWeb" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + "x", + "NONE" + ] + } + }, + "Resources": { + "storeLocatorAdminGroup": { + "Type": "AWS::Cognito::UserPoolGroup", + "Properties": { + "Description": "override success", + "GroupName": "storeLocatorAdmin", + "Precedence": 1, + "RoleArn": "arn:aws:iam::123456789012:role/us-east-1_PMTKHb3hY-storeLocatorAdminGroupRole", + "UserPoolId": "us-east-1_PMTKHb3hY" + } + }, + "storeLocatorAdminGroupRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Sid": "", + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + }, + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": "us-east-1:7517a9de-d491-4df1-9b07-0bf87d82d7da" + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + } + } + ] + }, + "RoleName": { + "Fn::Join": [ + "", + [ + "us-east-1_PMTKHb3hY", + "-storeLocatorAdminGroupRole" + ] + ] + } + } + } + }, + "Outputs": { + "storeLocatorAdminGroupRole": { + "Value": "arn:aws:iam::123456789012:role/us-east-1_PMTKHb3hY-storeLocatorAdminGroupRole" + } + } +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/.gitignore b/amplify-migration-apps/store-locator/_snapshot.pre.generate/.gitignore index ddc1f0fb628..0dd2fa416c3 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/.gitignore +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/.gitignore @@ -11,11 +11,10 @@ dist/ node_modules/ aws-exports.js awsconfiguration.json -amplifyconfiguration.json amplifyconfiguration.dart amplify-build-config.json amplify-gradle-config.json amplifytools.xcconfig .secret-* **.sample -#amplify-do-not-edit-end \ No newline at end of file +#amplify-do-not-edit-end diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json index ead1cbf796c..33c6e4bc1cf 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/amplify-meta.json @@ -1,16 +1,16 @@ { "providers": { "awscloudformation": { - "AuthRoleName": "amplify-storelocator-main-f9ca7-authRole", - "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-storelocator-main-f9ca7-unauthRole", - "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-storelocator-main-f9ca7-authRole", + "AuthRoleName": "amplify-storelocator-x-x-authRole", + "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-storelocator-x-x-unauthRole", + "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-storelocator-x-x-authRole", "Region": "us-east-1", - "DeploymentBucketName": "amplify-storelocator-main-f9ca7-deployment", - "UnauthRoleName": "amplify-storelocator-main-f9ca7-unauthRole", - "StackName": "amplify-storelocator-main-f9ca7", - "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-storelocator-main-f9ca7/06c2ecf0-279e-11f1-a161-0ea0286337e9", + "DeploymentBucketName": "amplify-storelocator-x-x-deployment", + "UnauthRoleName": "amplify-storelocator-x-x-unauthRole", + "StackName": "amplify-storelocator-x-x", + "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-storelocator-x-x/48dbdfc0-387e-11f1-abb7-12a98fd563d9", "AmplifyAppId": "storelocator", - "AuthTriggerTemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json" + "AuthTriggerTemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json" } }, "auth": { @@ -29,13 +29,13 @@ ] } ], - "lastPushTimeStamp": "2026-03-24T16:38:00.639Z", + "lastPushTimeStamp": "2026-04-15T03:56:02.142Z", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", "logicalId": "authuserPoolGroups" }, "output": { - "storeLocatorAdminGroupRole": "arn:aws:iam::123456789012:role/us-east-1_R1pdziFVe-storeLocatorAdminGroupRole" + "storeLocatorAdminGroupRole": "arn:aws:iam::123456789012:role/us-east-1_PMTKHb3hY-storeLocatorAdminGroupRole" }, "lastPushDirHash": "aY2fv0JwB9V2Pnq+Iavglw2oGVE=" }, @@ -75,17 +75,17 @@ ] }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/auth/storelocator41a9495f41a9495f-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/auth/storelocator41a9495f41a9495f-cloudformation-template.json", "logicalId": "authstorelocator41a9495f41a9495f" }, - "lastPushTimeStamp": "2026-03-24T16:38:00.639Z", + "lastPushTimeStamp": "2026-04-15T03:56:02.142Z", "output": { - "UserPoolId": "us-east-1_R1pdziFVe", - "AppClientIDWeb": "6am6ldh23n8ke819nuvk51cddq", - "AppClientID": "5ppvpdo9dmkrj55qi8h865lt34", - "IdentityPoolId": "us-east-1:4ea514e6-bc16-4990-a5ea-cefe84c3050d", - "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_R1pdziFVe", - "IdentityPoolName": "storelocator41a9495f_identitypool_41a9495f__main", + "UserPoolId": "us-east-1_PMTKHb3hY", + "AppClientIDWeb": "3q5ra9590bvgqmjrls6cuntmir", + "AppClientID": "3g5sgr3m93hl8dklni4oat8c5o", + "IdentityPoolId": "us-east-1:7517a9de-d491-4df1-9b07-0bf87d82d7da", + "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_PMTKHb3hY", + "IdentityPoolName": "storelocator41a9495f_identitypool_41a9495f__x", "UserPoolName": "storelocator41a9495f_userpool_41a9495f" }, "lastPushDirHash": "BhovtRkLGtk84r9ocO7d+lsB8TQ=" @@ -96,25 +96,25 @@ "build": true, "providerPlugin": "awscloudformation", "service": "Lambda", - "lastBuildTimeStamp": "2026-03-24T16:33:11.355Z", + "lastBuildTimeStamp": "2026-04-15T03:51:48.918Z", "lastBuildType": "PROD", - "lastPackageTimeStamp": "2026-03-24T16:33:12.063Z", + "lastPackageTimeStamp": "2026-04-15T03:51:49.619Z", "distZipFilename": "storelocator41a9495f41a9495fPostConfirmation-6a6c746d4739755a384a-build.zip", "s3Bucket": { - "deploymentBucketName": "amplify-storelocator-main-f9ca7-deployment", + "deploymentBucketName": "amplify-storelocator-x-x-deployment", "s3Key": "amplify-builds/storelocator41a9495f41a9495fPostConfirmation-6a6c746d4739755a384a-build.zip" }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/function/storelocator41a9495f41a9495fPostConfirmation-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/function/storelocator41a9495f41a9495fPostConfirmation-cloudformation-template.json", "logicalId": "functionstorelocator41a9495f41a9495fPostConfirmation" }, - "lastPushTimeStamp": "2026-03-24T16:38:00.639Z", + "lastPushTimeStamp": "2026-04-15T03:56:02.142Z", "output": { - "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/storelocator41a9495f41a9495fPostConfirmation-main", + "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/storelocator41a9495f41a9495fPostConfirmation-x", "Region": "us-east-1", - "Arn": "arn:aws:lambda:us-east-1:123456789012:function:storelocator41a9495f41a9495fPostConfirmation-main", - "Name": "storelocator41a9495f41a9495fPostConfirmation-main", - "LambdaExecutionRole": "storelocator41a9495f41a9495fPostConfirmation-main" + "Arn": "arn:aws:lambda:us-east-1:123456789012:function:storelocator41a9495f41a9495fPostConfirmation-x", + "Name": "storelocator41a9495f41a9495fPostConfirmation-x", + "LambdaExecutionRole": "storelocator41a9495f41a9495fPostConfirmation-x" }, "lastPushDirHash": "6EQkwiPaTbkyYCg4JDkMQiOWz8g=" } @@ -143,15 +143,15 @@ } ], "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/geo/storeLocatorMap-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/geo/storeLocatorMap-cloudformation-template.json", "logicalId": "geostoreLocatorMap" }, - "lastPushTimeStamp": "2026-03-24T16:38:00.639Z", + "lastPushTimeStamp": "2026-04-15T03:56:02.142Z", "output": { "Style": "VectorEsriStreets", "Region": "us-east-1", - "Arn": "arn:aws:geo:us-east-1:123456789012:map/storeLocatorMap-main", - "Name": "storeLocatorMap-main" + "Arn": "arn:aws:geo:us-east-1:123456789012:map/storeLocatorMap-x", + "Name": "storeLocatorMap-x" }, "lastPushDirHash": "f6hS2nqVgBHpibNEdmumaRgBCRM=" }, @@ -179,14 +179,14 @@ } ], "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/geo/storeLocatorSearch-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/geo/storeLocatorSearch-cloudformation-template.json", "logicalId": "geostoreLocatorSearch" }, - "lastPushTimeStamp": "2026-03-24T16:38:00.639Z", + "lastPushTimeStamp": "2026-04-15T03:56:02.142Z", "output": { "Region": "us-east-1", - "Arn": "arn:aws:geo:us-east-1:123456789012:place-index/storeLocatorSearch-main", - "Name": "storeLocatorSearch-main" + "Arn": "arn:aws:geo:us-east-1:123456789012:place-index/storeLocatorSearch-x", + "Name": "storeLocatorSearch-x" }, "lastPushDirHash": "DcWb0RNLHGk1nlEWvQI8kcmIhuw=" }, @@ -212,16 +212,16 @@ } ], "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/geo/storeLocatorGeofence-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/geo/storeLocatorGeofence-cloudformation-template.json", "logicalId": "geostoreLocatorGeofence" }, - "lastPushTimeStamp": "2026-03-24T16:38:00.639Z", + "lastPushTimeStamp": "2026-04-15T03:56:02.142Z", "output": { "Region": "us-east-1", - "Arn": "arn:aws:geo:us-east-1:123456789012:geofence-collection/storeLocatorGeofence-main", - "Name": "storeLocatorGeofence-main" + "Arn": "arn:aws:geo:us-east-1:123456789012:geofence-collection/storeLocatorGeofence-x", + "Name": "storeLocatorGeofence-x" }, "lastPushDirHash": "qBxz5+dofKzvXa0AVAS5tnATCqA=" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/storelocator41a9495f41a9495f/build/auth-trigger-cloudformation-template.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/storelocator41a9495f41a9495f/build/auth-trigger-cloudformation-template.json index e6186c748d1..ae33e825795 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/storelocator41a9495f41a9495f/build/auth-trigger-cloudformation-template.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/storelocator41a9495f41a9495f/build/auth-trigger-cloudformation-template.json @@ -190,7 +190,7 @@ } } ], - "nonce": "a956ed2b-ea63-4747-acee-0f4cb27b3925" + "nonce": "40832442-ba8f-4532-83b0-241ff688e05b" }, "DependsOn": [ "authTriggerFn7FCFA449", @@ -201,4 +201,4 @@ "DeletionPolicy": "Delete" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/storelocator41a9495f41a9495f/build/parameters.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/storelocator41a9495f41a9495f/build/parameters.json index cba9966059e..6dd7c1847a0 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/storelocator41a9495f41a9495f/build/parameters.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/storelocator41a9495f41a9495f/build/parameters.json @@ -79,4 +79,4 @@ "authTriggerConnections": [ "{\"triggerType\":\"PostConfirmation\",\"lambdaFunctionName\":\"storelocator41a9495f41a9495fPostConfirmation\"}" ] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/storelocator41a9495f41a9495f/build/storelocator41a9495f41a9495f-cloudformation-template.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/storelocator41a9495f41a9495f/build/storelocator41a9495f41a9495f-cloudformation-template.json index 32f0ad747e9..630487e5117 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/storelocator41a9495f41a9495f/build/storelocator41a9495f41a9495f-cloudformation-template.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/storelocator41a9495f41a9495f/build/storelocator41a9495f41a9495f-cloudformation-template.json @@ -483,4 +483,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/storelocator41a9495f41a9495f/cli-inputs.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/storelocator41a9495f41a9495f/cli-inputs.json index c66baffc70c..5d7b1d4333e 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/storelocator41a9495f41a9495f/cli-inputs.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/storelocator41a9495f41a9495f/cli-inputs.json @@ -86,4 +86,4 @@ "{\"triggerType\":\"PostConfirmation\",\"lambdaFunctionName\":\"storelocator41a9495f41a9495fPostConfirmation\"}" ] } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/userPoolGroups/build/parameters.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/userPoolGroups/build/parameters.json index 48115bd5cd6..2221b374f62 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/userPoolGroups/build/parameters.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/userPoolGroups/build/parameters.json @@ -11,4 +11,4 @@ "Arn" ] } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json index 5edc3def07d..4ba2459a5c2 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json @@ -106,4 +106,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/userPoolGroups/user-pool-group-precedence.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/userPoolGroups/user-pool-group-precedence.json index bcc9738de65..bc244c636b9 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/userPoolGroups/user-pool-group-precedence.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/auth/userPoolGroups/user-pool-group-precedence.json @@ -3,4 +3,4 @@ "groupName": "storeLocatorAdmin", "precedence": 1 } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/storelocator41a9495f41a9495f/build/storelocator41a9495f41a9495f-cloudformation-template.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/storelocator41a9495f41a9495f/build/storelocator41a9495f41a9495f-cloudformation-template.json index 32f0ad747e9..630487e5117 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/storelocator41a9495f41a9495f/build/storelocator41a9495f41a9495f-cloudformation-template.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/storelocator41a9495f41a9495f/build/storelocator41a9495f41a9495f-cloudformation-template.json @@ -483,4 +483,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json index 5edc3def07d..4ba2459a5c2 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json @@ -106,4 +106,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json index 1b8df321c23..2610c4ea8bc 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json @@ -202,9 +202,9 @@ "AuthTriggerCustomLambdaStack": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json", "Parameters": { - "env": "main", + "env": "x", "userpoolId": { "Fn::GetAtt": [ "authstorelocator41a9495f41a9495f", @@ -245,7 +245,7 @@ "authuserPoolGroups": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", "Parameters": { "AuthRoleArn": { "Fn::GetAtt": [ @@ -283,14 +283,14 @@ "Outputs.IdentityPoolId" ] }, - "env": "main" + "env": "x" } } }, "authstorelocator41a9495f41a9495f": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/auth/storelocator41a9495f41a9495f-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/auth/storelocator41a9495f41a9495f-cloudformation-template.json", "Parameters": { "identityPoolName": "storelocator41a9495f_identitypool_41a9495f", "allowUnauthenticatedIdentities": true, @@ -344,28 +344,28 @@ "dependsOn": "[object Object]", "permissions": "{\"policyName\":\"AddToGroupCognito\",\"trigger\":\"PostConfirmation\",\"effect\":\"Allow\",\"actions\":[\"cognito-idp:AdminAddUserToGroup\",\"cognito-idp:GetGroup\",\"cognito-idp:CreateGroup\"],\"resource\":{\"paramType\":\"!GetAtt\",\"keys\":[\"UserPool\",\"Arn\"]}}", "authTriggerConnections": "{\"triggerType\":\"PostConfirmation\",\"lambdaFunctionName\":\"storelocator41a9495f41a9495fPostConfirmation\"}", - "env": "main" + "env": "x" } } }, "functionstorelocator41a9495f41a9495fPostConfirmation": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/function/storelocator41a9495f41a9495fPostConfirmation-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/function/storelocator41a9495f41a9495fPostConfirmation-cloudformation-template.json", "Parameters": { "modules": "add-to-group", "resourceName": "storelocator41a9495f41a9495fPostConfirmation", "GROUP": "storeLocatorAdmin", - "deploymentBucketName": "amplify-storelocator-main-f9ca7-deployment", + "deploymentBucketName": "amplify-storelocator-x-x-deployment", "s3Key": "amplify-builds/storelocator41a9495f41a9495fPostConfirmation-6a6c746d4739755a384a-build.zip", - "env": "main" + "env": "x" } } }, "geostoreLocatorMap": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/geo/storeLocatorMap-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/geo/storeLocatorMap-cloudformation-template.json", "Parameters": { "authRoleName": { "Ref": "AuthRoleName" @@ -388,14 +388,14 @@ "Outputs.storeLocatorAdminGroupRole" ] }, - "env": "main" + "env": "x" } } }, "geostoreLocatorSearch": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/geo/storeLocatorSearch-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/geo/storeLocatorSearch-cloudformation-template.json", "Parameters": { "authRoleName": { "Ref": "AuthRoleName" @@ -419,14 +419,14 @@ "Outputs.storeLocatorAdminGroupRole" ] }, - "env": "main" + "env": "x" } } }, "geostoreLocatorGeofence": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/geo/storeLocatorGeofence-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/geo/storeLocatorGeofence-cloudformation-template.json", "Parameters": { "collectionName": "storeLocatorGeofence", "isDefault": true, @@ -442,7 +442,7 @@ "Outputs.storeLocatorAdminGroupRole" ] }, - "env": "main" + "env": "x" } } }, @@ -650,4 +650,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/storelocator41a9495f41a9495fPostConfirmation/storelocator41a9495f41a9495fPostConfirmation-cloudformation-template.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/storelocator41a9495f41a9495fPostConfirmation/storelocator41a9495f41a9495fPostConfirmation-cloudformation-template.json index 192bbea9292..d546185affd 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/storelocator41a9495f41a9495fPostConfirmation/storelocator41a9495f41a9495fPostConfirmation-cloudformation-template.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/function/storelocator41a9495f41a9495fPostConfirmation/storelocator41a9495f41a9495fPostConfirmation-cloudformation-template.json @@ -232,4 +232,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/geo/storeLocatorGeofence/storeLocatorGeofence-cloudformation-template.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/geo/storeLocatorGeofence/storeLocatorGeofence-cloudformation-template.json index 17020d54719..74626a9fe33 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/geo/storeLocatorGeofence/storeLocatorGeofence-cloudformation-template.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/geo/storeLocatorGeofence/storeLocatorGeofence-cloudformation-template.json @@ -361,4 +361,4 @@ } }, "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"geo-GeofenceCollection\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/geo/storeLocatorMap/storeLocatorMap-cloudformation-template.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/geo/storeLocatorMap/storeLocatorMap-cloudformation-template.json index bf53b69ff23..e431257a4ea 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/geo/storeLocatorMap/storeLocatorMap-cloudformation-template.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/geo/storeLocatorMap/storeLocatorMap-cloudformation-template.json @@ -344,4 +344,4 @@ } }, "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"geo-Map\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/geo/storeLocatorSearch/storeLocatorSearch-cloudformation-template.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/geo/storeLocatorSearch/storeLocatorSearch-cloudformation-template.json index 1ef40f17717..34bb655d691 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/geo/storeLocatorSearch/storeLocatorSearch-cloudformation-template.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/geo/storeLocatorSearch/storeLocatorSearch-cloudformation-template.json @@ -345,4 +345,4 @@ } }, "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"geo-PlaceIndex\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json index 1b8df321c23..2610c4ea8bc 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/awscloudformation/build/root-cloudformation-stack.json @@ -202,9 +202,9 @@ "AuthTriggerCustomLambdaStack": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json", "Parameters": { - "env": "main", + "env": "x", "userpoolId": { "Fn::GetAtt": [ "authstorelocator41a9495f41a9495f", @@ -245,7 +245,7 @@ "authuserPoolGroups": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", "Parameters": { "AuthRoleArn": { "Fn::GetAtt": [ @@ -283,14 +283,14 @@ "Outputs.IdentityPoolId" ] }, - "env": "main" + "env": "x" } } }, "authstorelocator41a9495f41a9495f": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/auth/storelocator41a9495f41a9495f-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/auth/storelocator41a9495f41a9495f-cloudformation-template.json", "Parameters": { "identityPoolName": "storelocator41a9495f_identitypool_41a9495f", "allowUnauthenticatedIdentities": true, @@ -344,28 +344,28 @@ "dependsOn": "[object Object]", "permissions": "{\"policyName\":\"AddToGroupCognito\",\"trigger\":\"PostConfirmation\",\"effect\":\"Allow\",\"actions\":[\"cognito-idp:AdminAddUserToGroup\",\"cognito-idp:GetGroup\",\"cognito-idp:CreateGroup\"],\"resource\":{\"paramType\":\"!GetAtt\",\"keys\":[\"UserPool\",\"Arn\"]}}", "authTriggerConnections": "{\"triggerType\":\"PostConfirmation\",\"lambdaFunctionName\":\"storelocator41a9495f41a9495fPostConfirmation\"}", - "env": "main" + "env": "x" } } }, "functionstorelocator41a9495f41a9495fPostConfirmation": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/function/storelocator41a9495f41a9495fPostConfirmation-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/function/storelocator41a9495f41a9495fPostConfirmation-cloudformation-template.json", "Parameters": { "modules": "add-to-group", "resourceName": "storelocator41a9495f41a9495fPostConfirmation", "GROUP": "storeLocatorAdmin", - "deploymentBucketName": "amplify-storelocator-main-f9ca7-deployment", + "deploymentBucketName": "amplify-storelocator-x-x-deployment", "s3Key": "amplify-builds/storelocator41a9495f41a9495fPostConfirmation-6a6c746d4739755a384a-build.zip", - "env": "main" + "env": "x" } } }, "geostoreLocatorMap": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/geo/storeLocatorMap-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/geo/storeLocatorMap-cloudformation-template.json", "Parameters": { "authRoleName": { "Ref": "AuthRoleName" @@ -388,14 +388,14 @@ "Outputs.storeLocatorAdminGroupRole" ] }, - "env": "main" + "env": "x" } } }, "geostoreLocatorSearch": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/geo/storeLocatorSearch-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/geo/storeLocatorSearch-cloudformation-template.json", "Parameters": { "authRoleName": { "Ref": "AuthRoleName" @@ -419,14 +419,14 @@ "Outputs.storeLocatorAdminGroupRole" ] }, - "env": "main" + "env": "x" } } }, "geostoreLocatorGeofence": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/geo/storeLocatorGeofence-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/geo/storeLocatorGeofence-cloudformation-template.json", "Parameters": { "collectionName": "storeLocatorGeofence", "isDefault": true, @@ -442,7 +442,7 @@ "Outputs.storeLocatorAdminGroupRole" ] }, - "env": "main" + "env": "x" } } }, @@ -650,4 +650,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json index 6b7a962cd2d..9af6d867ea8 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/backend-config.json @@ -157,4 +157,4 @@ ] } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/function/storelocator41a9495f41a9495fPostConfirmation/amplify.state b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/function/storelocator41a9495f41a9495fPostConfirmation/amplify.state index 0c3efe04706..ab8a6cc8046 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/function/storelocator41a9495f41a9495fPostConfirmation/amplify.state +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/function/storelocator41a9495f41a9495fPostConfirmation/amplify.state @@ -3,4 +3,4 @@ "functionRuntime": "nodejs", "useLegacyBuild": true, "defaultEditorFile": "src/index.js" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/function/storelocator41a9495f41a9495fPostConfirmation/custom-policies.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/function/storelocator41a9495f41a9495fPostConfirmation/custom-policies.json index 528c94f2f26..1f21c530082 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/function/storelocator41a9495f41a9495fPostConfirmation/custom-policies.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/function/storelocator41a9495f41a9495fPostConfirmation/custom-policies.json @@ -3,4 +3,4 @@ "Action": [], "Resource": [] } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/function/storelocator41a9495f41a9495fPostConfirmation/function-parameters.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/function/storelocator41a9495f41a9495fPostConfirmation/function-parameters.json index 4c07c063c1d..7e23e27acd8 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/function/storelocator41a9495f41a9495fPostConfirmation/function-parameters.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/function/storelocator41a9495f41a9495fPostConfirmation/function-parameters.json @@ -13,4 +13,4 @@ "triggerEventPath": "PostConfirmation.event.json", "roleName": "storelocator41a9495f41a9495fPostConfirmation", "skipEdit": true -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/function/storelocator41a9495f41a9495fPostConfirmation/parameters.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/function/storelocator41a9495f41a9495fPostConfirmation/parameters.json index 82c0ad73bb2..1ab46356108 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/function/storelocator41a9495f41a9495fPostConfirmation/parameters.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/function/storelocator41a9495f41a9495fPostConfirmation/parameters.json @@ -1,4 +1,4 @@ { "modules": "add-to-group", "resourceName": "storelocator41a9495f41a9495fPostConfirmation" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/function/storelocator41a9495f41a9495fPostConfirmation/storelocator41a9495f41a9495fPostConfirmation-cloudformation-template.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/function/storelocator41a9495f41a9495fPostConfirmation/storelocator41a9495f41a9495fPostConfirmation-cloudformation-template.json index 192bbea9292..d546185affd 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/function/storelocator41a9495f41a9495fPostConfirmation/storelocator41a9495f41a9495fPostConfirmation-cloudformation-template.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/function/storelocator41a9495f41a9495fPostConfirmation/storelocator41a9495f41a9495fPostConfirmation-cloudformation-template.json @@ -232,4 +232,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/geo/storeLocatorGeofence/cli-inputs.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/geo/storeLocatorGeofence/cli-inputs.json index 3bb50128864..ac44a721b1d 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/geo/storeLocatorGeofence/cli-inputs.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/geo/storeLocatorGeofence/cli-inputs.json @@ -7,4 +7,4 @@ "List geofences" ] } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/geo/storeLocatorGeofence/parameters.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/geo/storeLocatorGeofence/parameters.json index 7ae714ed5ee..fbea5610be5 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/geo/storeLocatorGeofence/parameters.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/geo/storeLocatorGeofence/parameters.json @@ -1,4 +1,4 @@ { "collectionName": "storeLocatorGeofence", "isDefault": true -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/geo/storeLocatorGeofence/storeLocatorGeofence-cloudformation-template.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/geo/storeLocatorGeofence/storeLocatorGeofence-cloudformation-template.json index 17020d54719..74626a9fe33 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/geo/storeLocatorGeofence/storeLocatorGeofence-cloudformation-template.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/geo/storeLocatorGeofence/storeLocatorGeofence-cloudformation-template.json @@ -361,4 +361,4 @@ } }, "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"geo-GeofenceCollection\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/geo/storeLocatorMap/cli-inputs.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/geo/storeLocatorMap/cli-inputs.json index 89c77968423..54d19fc06da 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/geo/storeLocatorMap/cli-inputs.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/geo/storeLocatorMap/cli-inputs.json @@ -2,4 +2,4 @@ "groupPermissions": [ "storeLocatorAdmin" ] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/geo/storeLocatorMap/parameters.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/geo/storeLocatorMap/parameters.json index 00f849451a2..69ca7205e56 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/geo/storeLocatorMap/parameters.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/geo/storeLocatorMap/parameters.json @@ -8,4 +8,4 @@ "mapName": "storeLocatorMap", "mapStyle": "VectorEsriStreets", "isDefault": true -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/geo/storeLocatorMap/storeLocatorMap-cloudformation-template.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/geo/storeLocatorMap/storeLocatorMap-cloudformation-template.json index bf53b69ff23..e431257a4ea 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/geo/storeLocatorMap/storeLocatorMap-cloudformation-template.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/geo/storeLocatorMap/storeLocatorMap-cloudformation-template.json @@ -344,4 +344,4 @@ } }, "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"geo-Map\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/geo/storeLocatorSearch/cli-inputs.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/geo/storeLocatorSearch/cli-inputs.json index 89c77968423..54d19fc06da 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/geo/storeLocatorSearch/cli-inputs.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/geo/storeLocatorSearch/cli-inputs.json @@ -2,4 +2,4 @@ "groupPermissions": [ "storeLocatorAdmin" ] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/geo/storeLocatorSearch/parameters.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/geo/storeLocatorSearch/parameters.json index a1ac3acce3c..341a5703998 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/geo/storeLocatorSearch/parameters.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/geo/storeLocatorSearch/parameters.json @@ -9,4 +9,4 @@ "dataProvider": "Here", "dataSourceIntendedUse": "SingleUse", "isDefault": true -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/geo/storeLocatorSearch/storeLocatorSearch-cloudformation-template.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/geo/storeLocatorSearch/storeLocatorSearch-cloudformation-template.json index 1ef40f17717..34bb655d691 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/geo/storeLocatorSearch/storeLocatorSearch-cloudformation-template.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/geo/storeLocatorSearch/storeLocatorSearch-cloudformation-template.json @@ -345,4 +345,4 @@ } }, "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"geo-PlaceIndex\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/tags.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/tags.json index b9321d71b83..71f6abe11a6 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/tags.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/#current-cloud-backend/tags.json @@ -7,4 +7,4 @@ "Key": "user:Application", "Value": "{project-name}" } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/.config/project-config.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/.config/project-config.json index 60030e74166..45effab9d39 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/.config/project-config.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/.config/project-config.json @@ -1,6 +1,6 @@ { "whyContinueWithGen1": "Prefer not to answer", - "projectName": "storeLocator", + "projectName": "storelocator", "version": "3.1", "frontend": "javascript", "javascript": { @@ -8,11 +8,11 @@ "config": { "SourceDir": "src", "DistributionDir": "dist", - "BuildCommand": "npm run-script build", + "BuildCommand": "npm run build", "StartCommand": "npm run-script start" } }, "providers": [ "awscloudformation" ] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/amplify-meta.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/amplify-meta.json index c2f93edd8b2..33c6e4bc1cf 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/amplify-meta.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/amplify-meta.json @@ -1,16 +1,16 @@ { "providers": { "awscloudformation": { - "AuthRoleName": "amplify-storelocator-main-f9ca7-authRole", - "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-storelocator-main-f9ca7-unauthRole", - "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-storelocator-main-f9ca7-authRole", + "AuthRoleName": "amplify-storelocator-x-x-authRole", + "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-storelocator-x-x-unauthRole", + "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-storelocator-x-x-authRole", "Region": "us-east-1", - "DeploymentBucketName": "amplify-storelocator-main-f9ca7-deployment", - "UnauthRoleName": "amplify-storelocator-main-f9ca7-unauthRole", - "StackName": "amplify-storelocator-main-f9ca7", - "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-storelocator-main-f9ca7/06c2ecf0-279e-11f1-a161-0ea0286337e9", + "DeploymentBucketName": "amplify-storelocator-x-x-deployment", + "UnauthRoleName": "amplify-storelocator-x-x-unauthRole", + "StackName": "amplify-storelocator-x-x", + "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-storelocator-x-x/48dbdfc0-387e-11f1-abb7-12a98fd563d9", "AmplifyAppId": "storelocator", - "AuthTriggerTemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json" + "AuthTriggerTemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json" } }, "auth": { @@ -29,13 +29,13 @@ ] } ], - "lastPushTimeStamp": "2026-03-24T16:38:00.639Z", + "lastPushTimeStamp": "2026-04-15T03:56:02.142Z", "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", "logicalId": "authuserPoolGroups" }, "output": { - "storeLocatorAdminGroupRole": "arn:aws:iam::123456789012:role/us-east-1_R1pdziFVe-storeLocatorAdminGroupRole" + "storeLocatorAdminGroupRole": "arn:aws:iam::123456789012:role/us-east-1_PMTKHb3hY-storeLocatorAdminGroupRole" }, "lastPushDirHash": "aY2fv0JwB9V2Pnq+Iavglw2oGVE=" }, @@ -75,17 +75,17 @@ ] }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/auth/storelocator41a9495f41a9495f-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/auth/storelocator41a9495f41a9495f-cloudformation-template.json", "logicalId": "authstorelocator41a9495f41a9495f" }, - "lastPushTimeStamp": "2026-03-24T16:38:00.639Z", + "lastPushTimeStamp": "2026-04-15T03:56:02.142Z", "output": { - "UserPoolId": "us-east-1_R1pdziFVe", - "AppClientIDWeb": "6am6ldh23n8ke819nuvk51cddq", - "AppClientID": "5ppvpdo9dmkrj55qi8h865lt34", - "IdentityPoolId": "us-east-1:4ea514e6-bc16-4990-a5ea-cefe84c3050d", - "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_R1pdziFVe", - "IdentityPoolName": "storelocator41a9495f_identitypool_41a9495f__main", + "UserPoolId": "us-east-1_PMTKHb3hY", + "AppClientIDWeb": "3q5ra9590bvgqmjrls6cuntmir", + "AppClientID": "3g5sgr3m93hl8dklni4oat8c5o", + "IdentityPoolId": "us-east-1:7517a9de-d491-4df1-9b07-0bf87d82d7da", + "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_PMTKHb3hY", + "IdentityPoolName": "storelocator41a9495f_identitypool_41a9495f__x", "UserPoolName": "storelocator41a9495f_userpool_41a9495f" }, "lastPushDirHash": "BhovtRkLGtk84r9ocO7d+lsB8TQ=" @@ -96,25 +96,25 @@ "build": true, "providerPlugin": "awscloudformation", "service": "Lambda", - "lastBuildTimeStamp": "2026-03-24T16:33:11.355Z", + "lastBuildTimeStamp": "2026-04-15T03:51:48.918Z", "lastBuildType": "PROD", - "lastPackageTimeStamp": "2026-03-24T16:33:12.063Z", + "lastPackageTimeStamp": "2026-04-15T03:51:49.619Z", "distZipFilename": "storelocator41a9495f41a9495fPostConfirmation-6a6c746d4739755a384a-build.zip", "s3Bucket": { - "deploymentBucketName": "amplify-storelocator-main-f9ca7-deployment", + "deploymentBucketName": "amplify-storelocator-x-x-deployment", "s3Key": "amplify-builds/storelocator41a9495f41a9495fPostConfirmation-6a6c746d4739755a384a-build.zip" }, "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/function/storelocator41a9495f41a9495fPostConfirmation-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/function/storelocator41a9495f41a9495fPostConfirmation-cloudformation-template.json", "logicalId": "functionstorelocator41a9495f41a9495fPostConfirmation" }, - "lastPushTimeStamp": "2026-03-24T16:38:00.639Z", + "lastPushTimeStamp": "2026-04-15T03:56:02.142Z", "output": { - "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/storelocator41a9495f41a9495fPostConfirmation-main", + "LambdaExecutionRoleArn": "arn:aws:iam::123456789012:role/storelocator41a9495f41a9495fPostConfirmation-x", "Region": "us-east-1", - "Arn": "arn:aws:lambda:us-east-1:123456789012:function:storelocator41a9495f41a9495fPostConfirmation-main", - "Name": "storelocator41a9495f41a9495fPostConfirmation-main", - "LambdaExecutionRole": "storelocator41a9495f41a9495fPostConfirmation-main" + "Arn": "arn:aws:lambda:us-east-1:123456789012:function:storelocator41a9495f41a9495fPostConfirmation-x", + "Name": "storelocator41a9495f41a9495fPostConfirmation-x", + "LambdaExecutionRole": "storelocator41a9495f41a9495fPostConfirmation-x" }, "lastPushDirHash": "6EQkwiPaTbkyYCg4JDkMQiOWz8g=" } @@ -143,15 +143,15 @@ } ], "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/geo/storeLocatorMap-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/geo/storeLocatorMap-cloudformation-template.json", "logicalId": "geostoreLocatorMap" }, - "lastPushTimeStamp": "2026-03-24T16:38:00.639Z", + "lastPushTimeStamp": "2026-04-15T03:56:02.142Z", "output": { "Style": "VectorEsriStreets", "Region": "us-east-1", - "Arn": "arn:aws:geo:us-east-1:123456789012:map/storeLocatorMap-main", - "Name": "storeLocatorMap-main" + "Arn": "arn:aws:geo:us-east-1:123456789012:map/storeLocatorMap-x", + "Name": "storeLocatorMap-x" }, "lastPushDirHash": "f6hS2nqVgBHpibNEdmumaRgBCRM=" }, @@ -179,14 +179,14 @@ } ], "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/geo/storeLocatorSearch-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/geo/storeLocatorSearch-cloudformation-template.json", "logicalId": "geostoreLocatorSearch" }, - "lastPushTimeStamp": "2026-03-24T16:38:00.639Z", + "lastPushTimeStamp": "2026-04-15T03:56:02.142Z", "output": { "Region": "us-east-1", - "Arn": "arn:aws:geo:us-east-1:123456789012:place-index/storeLocatorSearch-main", - "Name": "storeLocatorSearch-main" + "Arn": "arn:aws:geo:us-east-1:123456789012:place-index/storeLocatorSearch-x", + "Name": "storeLocatorSearch-x" }, "lastPushDirHash": "DcWb0RNLHGk1nlEWvQI8kcmIhuw=" }, @@ -212,14 +212,14 @@ } ], "providerMetadata": { - "s3TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/geo/storeLocatorGeofence-cloudformation-template.json", + "s3TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/geo/storeLocatorGeofence-cloudformation-template.json", "logicalId": "geostoreLocatorGeofence" }, - "lastPushTimeStamp": "2026-03-24T16:38:00.639Z", + "lastPushTimeStamp": "2026-04-15T03:56:02.142Z", "output": { "Region": "us-east-1", - "Arn": "arn:aws:geo:us-east-1:123456789012:geofence-collection/storeLocatorGeofence-main", - "Name": "storeLocatorGeofence-main" + "Arn": "arn:aws:geo:us-east-1:123456789012:geofence-collection/storeLocatorGeofence-x", + "Name": "storeLocatorGeofence-x" }, "lastPushDirHash": "qBxz5+dofKzvXa0AVAS5tnATCqA=" } diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/auth/storelocator41a9495f41a9495f/build/auth-trigger-cloudformation-template.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/auth/storelocator41a9495f41a9495f/build/auth-trigger-cloudformation-template.json index e6186c748d1..ae33e825795 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/auth/storelocator41a9495f41a9495f/build/auth-trigger-cloudformation-template.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/auth/storelocator41a9495f41a9495f/build/auth-trigger-cloudformation-template.json @@ -190,7 +190,7 @@ } } ], - "nonce": "a956ed2b-ea63-4747-acee-0f4cb27b3925" + "nonce": "40832442-ba8f-4532-83b0-241ff688e05b" }, "DependsOn": [ "authTriggerFn7FCFA449", @@ -201,4 +201,4 @@ "DeletionPolicy": "Delete" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/auth/storelocator41a9495f41a9495f/build/parameters.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/auth/storelocator41a9495f41a9495f/build/parameters.json index cba9966059e..6dd7c1847a0 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/auth/storelocator41a9495f41a9495f/build/parameters.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/auth/storelocator41a9495f41a9495f/build/parameters.json @@ -79,4 +79,4 @@ "authTriggerConnections": [ "{\"triggerType\":\"PostConfirmation\",\"lambdaFunctionName\":\"storelocator41a9495f41a9495fPostConfirmation\"}" ] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/auth/storelocator41a9495f41a9495f/build/storelocator41a9495f41a9495f-cloudformation-template.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/auth/storelocator41a9495f41a9495f/build/storelocator41a9495f41a9495f-cloudformation-template.json index 32f0ad747e9..630487e5117 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/auth/storelocator41a9495f41a9495f/build/storelocator41a9495f41a9495f-cloudformation-template.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/auth/storelocator41a9495f41a9495f/build/storelocator41a9495f41a9495f-cloudformation-template.json @@ -483,4 +483,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/auth/storelocator41a9495f41a9495f/cli-inputs.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/auth/storelocator41a9495f41a9495f/cli-inputs.json index c66baffc70c..5d7b1d4333e 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/auth/storelocator41a9495f41a9495f/cli-inputs.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/auth/storelocator41a9495f41a9495f/cli-inputs.json @@ -86,4 +86,4 @@ "{\"triggerType\":\"PostConfirmation\",\"lambdaFunctionName\":\"storelocator41a9495f41a9495fPostConfirmation\"}" ] } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/auth/userPoolGroups/build/parameters.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/auth/userPoolGroups/build/parameters.json index 48115bd5cd6..2221b374f62 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/auth/userPoolGroups/build/parameters.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/auth/userPoolGroups/build/parameters.json @@ -11,4 +11,4 @@ "Arn" ] } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json index 5edc3def07d..4ba2459a5c2 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json @@ -106,4 +106,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/auth/userPoolGroups/user-pool-group-precedence.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/auth/userPoolGroups/user-pool-group-precedence.json index bcc9738de65..bc244c636b9 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/auth/userPoolGroups/user-pool-group-precedence.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/auth/userPoolGroups/user-pool-group-precedence.json @@ -3,4 +3,4 @@ "groupName": "storeLocatorAdmin", "precedence": 1 } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/storelocator41a9495f41a9495f/build/storelocator41a9495f41a9495f-cloudformation-template.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/storelocator41a9495f41a9495f/build/storelocator41a9495f41a9495f-cloudformation-template.json index 32f0ad747e9..630487e5117 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/storelocator41a9495f41a9495f/build/storelocator41a9495f41a9495f-cloudformation-template.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/storelocator41a9495f41a9495f/build/storelocator41a9495f41a9495f-cloudformation-template.json @@ -483,4 +483,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json index 5edc3def07d..4ba2459a5c2 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/awscloudformation/build/auth/userPoolGroups/build/userPoolGroups-cloudformation-template.json @@ -106,4 +106,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json index 1b8df321c23..2610c4ea8bc 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/awscloudformation/build/awscloudformation/build/root-cloudformation-stack.json @@ -202,9 +202,9 @@ "AuthTriggerCustomLambdaStack": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json", "Parameters": { - "env": "main", + "env": "x", "userpoolId": { "Fn::GetAtt": [ "authstorelocator41a9495f41a9495f", @@ -245,7 +245,7 @@ "authuserPoolGroups": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", "Parameters": { "AuthRoleArn": { "Fn::GetAtt": [ @@ -283,14 +283,14 @@ "Outputs.IdentityPoolId" ] }, - "env": "main" + "env": "x" } } }, "authstorelocator41a9495f41a9495f": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/auth/storelocator41a9495f41a9495f-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/auth/storelocator41a9495f41a9495f-cloudformation-template.json", "Parameters": { "identityPoolName": "storelocator41a9495f_identitypool_41a9495f", "allowUnauthenticatedIdentities": true, @@ -344,28 +344,28 @@ "dependsOn": "[object Object]", "permissions": "{\"policyName\":\"AddToGroupCognito\",\"trigger\":\"PostConfirmation\",\"effect\":\"Allow\",\"actions\":[\"cognito-idp:AdminAddUserToGroup\",\"cognito-idp:GetGroup\",\"cognito-idp:CreateGroup\"],\"resource\":{\"paramType\":\"!GetAtt\",\"keys\":[\"UserPool\",\"Arn\"]}}", "authTriggerConnections": "{\"triggerType\":\"PostConfirmation\",\"lambdaFunctionName\":\"storelocator41a9495f41a9495fPostConfirmation\"}", - "env": "main" + "env": "x" } } }, "functionstorelocator41a9495f41a9495fPostConfirmation": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/function/storelocator41a9495f41a9495fPostConfirmation-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/function/storelocator41a9495f41a9495fPostConfirmation-cloudformation-template.json", "Parameters": { "modules": "add-to-group", "resourceName": "storelocator41a9495f41a9495fPostConfirmation", "GROUP": "storeLocatorAdmin", - "deploymentBucketName": "amplify-storelocator-main-f9ca7-deployment", + "deploymentBucketName": "amplify-storelocator-x-x-deployment", "s3Key": "amplify-builds/storelocator41a9495f41a9495fPostConfirmation-6a6c746d4739755a384a-build.zip", - "env": "main" + "env": "x" } } }, "geostoreLocatorMap": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/geo/storeLocatorMap-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/geo/storeLocatorMap-cloudformation-template.json", "Parameters": { "authRoleName": { "Ref": "AuthRoleName" @@ -388,14 +388,14 @@ "Outputs.storeLocatorAdminGroupRole" ] }, - "env": "main" + "env": "x" } } }, "geostoreLocatorSearch": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/geo/storeLocatorSearch-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/geo/storeLocatorSearch-cloudformation-template.json", "Parameters": { "authRoleName": { "Ref": "AuthRoleName" @@ -419,14 +419,14 @@ "Outputs.storeLocatorAdminGroupRole" ] }, - "env": "main" + "env": "x" } } }, "geostoreLocatorGeofence": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/geo/storeLocatorGeofence-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/geo/storeLocatorGeofence-cloudformation-template.json", "Parameters": { "collectionName": "storeLocatorGeofence", "isDefault": true, @@ -442,7 +442,7 @@ "Outputs.storeLocatorAdminGroupRole" ] }, - "env": "main" + "env": "x" } } }, @@ -650,4 +650,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/storelocator41a9495f41a9495fPostConfirmation/storelocator41a9495f41a9495fPostConfirmation-cloudformation-template.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/storelocator41a9495f41a9495fPostConfirmation/storelocator41a9495f41a9495fPostConfirmation-cloudformation-template.json index 192bbea9292..d546185affd 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/storelocator41a9495f41a9495fPostConfirmation/storelocator41a9495f41a9495fPostConfirmation-cloudformation-template.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/awscloudformation/build/function/storelocator41a9495f41a9495fPostConfirmation/storelocator41a9495f41a9495fPostConfirmation-cloudformation-template.json @@ -232,4 +232,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/awscloudformation/build/geo/storeLocatorGeofence/storeLocatorGeofence-cloudformation-template.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/awscloudformation/build/geo/storeLocatorGeofence/storeLocatorGeofence-cloudformation-template.json index 17020d54719..74626a9fe33 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/awscloudformation/build/geo/storeLocatorGeofence/storeLocatorGeofence-cloudformation-template.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/awscloudformation/build/geo/storeLocatorGeofence/storeLocatorGeofence-cloudformation-template.json @@ -361,4 +361,4 @@ } }, "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"geo-GeofenceCollection\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/awscloudformation/build/geo/storeLocatorMap/storeLocatorMap-cloudformation-template.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/awscloudformation/build/geo/storeLocatorMap/storeLocatorMap-cloudformation-template.json index bf53b69ff23..e431257a4ea 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/awscloudformation/build/geo/storeLocatorMap/storeLocatorMap-cloudformation-template.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/awscloudformation/build/geo/storeLocatorMap/storeLocatorMap-cloudformation-template.json @@ -344,4 +344,4 @@ } }, "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"geo-Map\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/awscloudformation/build/geo/storeLocatorSearch/storeLocatorSearch-cloudformation-template.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/awscloudformation/build/geo/storeLocatorSearch/storeLocatorSearch-cloudformation-template.json index 1ef40f17717..34bb655d691 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/awscloudformation/build/geo/storeLocatorSearch/storeLocatorSearch-cloudformation-template.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/awscloudformation/build/geo/storeLocatorSearch/storeLocatorSearch-cloudformation-template.json @@ -345,4 +345,4 @@ } }, "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"geo-PlaceIndex\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json index 1b8df321c23..2610c4ea8bc 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/awscloudformation/build/root-cloudformation-stack.json @@ -202,9 +202,9 @@ "AuthTriggerCustomLambdaStack": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json", "Parameters": { - "env": "main", + "env": "x", "userpoolId": { "Fn::GetAtt": [ "authstorelocator41a9495f41a9495f", @@ -245,7 +245,7 @@ "authuserPoolGroups": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", "Parameters": { "AuthRoleArn": { "Fn::GetAtt": [ @@ -283,14 +283,14 @@ "Outputs.IdentityPoolId" ] }, - "env": "main" + "env": "x" } } }, "authstorelocator41a9495f41a9495f": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/auth/storelocator41a9495f41a9495f-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/auth/storelocator41a9495f41a9495f-cloudformation-template.json", "Parameters": { "identityPoolName": "storelocator41a9495f_identitypool_41a9495f", "allowUnauthenticatedIdentities": true, @@ -344,28 +344,28 @@ "dependsOn": "[object Object]", "permissions": "{\"policyName\":\"AddToGroupCognito\",\"trigger\":\"PostConfirmation\",\"effect\":\"Allow\",\"actions\":[\"cognito-idp:AdminAddUserToGroup\",\"cognito-idp:GetGroup\",\"cognito-idp:CreateGroup\"],\"resource\":{\"paramType\":\"!GetAtt\",\"keys\":[\"UserPool\",\"Arn\"]}}", "authTriggerConnections": "{\"triggerType\":\"PostConfirmation\",\"lambdaFunctionName\":\"storelocator41a9495f41a9495fPostConfirmation\"}", - "env": "main" + "env": "x" } } }, "functionstorelocator41a9495f41a9495fPostConfirmation": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/function/storelocator41a9495f41a9495fPostConfirmation-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/function/storelocator41a9495f41a9495fPostConfirmation-cloudformation-template.json", "Parameters": { "modules": "add-to-group", "resourceName": "storelocator41a9495f41a9495fPostConfirmation", "GROUP": "storeLocatorAdmin", - "deploymentBucketName": "amplify-storelocator-main-f9ca7-deployment", + "deploymentBucketName": "amplify-storelocator-x-x-deployment", "s3Key": "amplify-builds/storelocator41a9495f41a9495fPostConfirmation-6a6c746d4739755a384a-build.zip", - "env": "main" + "env": "x" } } }, "geostoreLocatorMap": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/geo/storeLocatorMap-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/geo/storeLocatorMap-cloudformation-template.json", "Parameters": { "authRoleName": { "Ref": "AuthRoleName" @@ -388,14 +388,14 @@ "Outputs.storeLocatorAdminGroupRole" ] }, - "env": "main" + "env": "x" } } }, "geostoreLocatorSearch": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/geo/storeLocatorSearch-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/geo/storeLocatorSearch-cloudformation-template.json", "Parameters": { "authRoleName": { "Ref": "AuthRoleName" @@ -419,14 +419,14 @@ "Outputs.storeLocatorAdminGroupRole" ] }, - "env": "main" + "env": "x" } } }, "geostoreLocatorGeofence": { "Type": "AWS::CloudFormation::Stack", "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/geo/storeLocatorGeofence-cloudformation-template.json", + "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/geo/storeLocatorGeofence-cloudformation-template.json", "Parameters": { "collectionName": "storeLocatorGeofence", "isDefault": true, @@ -442,7 +442,7 @@ "Outputs.storeLocatorAdminGroupRole" ] }, - "env": "main" + "env": "x" } } }, @@ -650,4 +650,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/backend-config.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/backend-config.json index 6b7a962cd2d..9af6d867ea8 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/backend-config.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/backend-config.json @@ -157,4 +157,4 @@ ] } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/function/storelocator41a9495f41a9495fPostConfirmation/amplify.state b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/function/storelocator41a9495f41a9495fPostConfirmation/amplify.state index 0c3efe04706..ab8a6cc8046 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/function/storelocator41a9495f41a9495fPostConfirmation/amplify.state +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/function/storelocator41a9495f41a9495fPostConfirmation/amplify.state @@ -3,4 +3,4 @@ "functionRuntime": "nodejs", "useLegacyBuild": true, "defaultEditorFile": "src/index.js" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/function/storelocator41a9495f41a9495fPostConfirmation/custom-policies.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/function/storelocator41a9495f41a9495fPostConfirmation/custom-policies.json index 528c94f2f26..1f21c530082 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/function/storelocator41a9495f41a9495fPostConfirmation/custom-policies.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/function/storelocator41a9495f41a9495fPostConfirmation/custom-policies.json @@ -3,4 +3,4 @@ "Action": [], "Resource": [] } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/function/storelocator41a9495f41a9495fPostConfirmation/function-parameters.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/function/storelocator41a9495f41a9495fPostConfirmation/function-parameters.json index 4c07c063c1d..7e23e27acd8 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/function/storelocator41a9495f41a9495fPostConfirmation/function-parameters.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/function/storelocator41a9495f41a9495fPostConfirmation/function-parameters.json @@ -13,4 +13,4 @@ "triggerEventPath": "PostConfirmation.event.json", "roleName": "storelocator41a9495f41a9495fPostConfirmation", "skipEdit": true -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/function/storelocator41a9495f41a9495fPostConfirmation/parameters.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/function/storelocator41a9495f41a9495fPostConfirmation/parameters.json index 82c0ad73bb2..1ab46356108 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/function/storelocator41a9495f41a9495fPostConfirmation/parameters.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/function/storelocator41a9495f41a9495fPostConfirmation/parameters.json @@ -1,4 +1,4 @@ { "modules": "add-to-group", "resourceName": "storelocator41a9495f41a9495fPostConfirmation" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/function/storelocator41a9495f41a9495fPostConfirmation/storelocator41a9495f41a9495fPostConfirmation-cloudformation-template.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/function/storelocator41a9495f41a9495fPostConfirmation/storelocator41a9495f41a9495fPostConfirmation-cloudformation-template.json index 192bbea9292..d546185affd 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/function/storelocator41a9495f41a9495fPostConfirmation/storelocator41a9495f41a9495fPostConfirmation-cloudformation-template.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/function/storelocator41a9495f41a9495fPostConfirmation/storelocator41a9495f41a9495fPostConfirmation-cloudformation-template.json @@ -232,4 +232,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/geo/storeLocatorGeofence/cli-inputs.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/geo/storeLocatorGeofence/cli-inputs.json index 3bb50128864..ac44a721b1d 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/geo/storeLocatorGeofence/cli-inputs.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/geo/storeLocatorGeofence/cli-inputs.json @@ -7,4 +7,4 @@ "List geofences" ] } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/geo/storeLocatorGeofence/parameters.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/geo/storeLocatorGeofence/parameters.json index 7ae714ed5ee..fbea5610be5 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/geo/storeLocatorGeofence/parameters.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/geo/storeLocatorGeofence/parameters.json @@ -1,4 +1,4 @@ { "collectionName": "storeLocatorGeofence", "isDefault": true -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/geo/storeLocatorGeofence/storeLocatorGeofence-cloudformation-template.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/geo/storeLocatorGeofence/storeLocatorGeofence-cloudformation-template.json index 17020d54719..74626a9fe33 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/geo/storeLocatorGeofence/storeLocatorGeofence-cloudformation-template.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/geo/storeLocatorGeofence/storeLocatorGeofence-cloudformation-template.json @@ -361,4 +361,4 @@ } }, "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"geo-GeofenceCollection\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/geo/storeLocatorMap/cli-inputs.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/geo/storeLocatorMap/cli-inputs.json index 89c77968423..54d19fc06da 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/geo/storeLocatorMap/cli-inputs.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/geo/storeLocatorMap/cli-inputs.json @@ -2,4 +2,4 @@ "groupPermissions": [ "storeLocatorAdmin" ] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/geo/storeLocatorMap/parameters.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/geo/storeLocatorMap/parameters.json index 00f849451a2..69ca7205e56 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/geo/storeLocatorMap/parameters.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/geo/storeLocatorMap/parameters.json @@ -8,4 +8,4 @@ "mapName": "storeLocatorMap", "mapStyle": "VectorEsriStreets", "isDefault": true -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/geo/storeLocatorMap/storeLocatorMap-cloudformation-template.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/geo/storeLocatorMap/storeLocatorMap-cloudformation-template.json index bf53b69ff23..e431257a4ea 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/geo/storeLocatorMap/storeLocatorMap-cloudformation-template.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/geo/storeLocatorMap/storeLocatorMap-cloudformation-template.json @@ -344,4 +344,4 @@ } }, "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"geo-Map\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/geo/storeLocatorSearch/cli-inputs.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/geo/storeLocatorSearch/cli-inputs.json index 89c77968423..54d19fc06da 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/geo/storeLocatorSearch/cli-inputs.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/geo/storeLocatorSearch/cli-inputs.json @@ -2,4 +2,4 @@ "groupPermissions": [ "storeLocatorAdmin" ] -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/geo/storeLocatorSearch/parameters.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/geo/storeLocatorSearch/parameters.json index a1ac3acce3c..341a5703998 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/geo/storeLocatorSearch/parameters.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/geo/storeLocatorSearch/parameters.json @@ -9,4 +9,4 @@ "dataProvider": "Here", "dataSourceIntendedUse": "SingleUse", "isDefault": true -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/geo/storeLocatorSearch/storeLocatorSearch-cloudformation-template.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/geo/storeLocatorSearch/storeLocatorSearch-cloudformation-template.json index 1ef40f17717..34bb655d691 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/geo/storeLocatorSearch/storeLocatorSearch-cloudformation-template.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/geo/storeLocatorSearch/storeLocatorSearch-cloudformation-template.json @@ -345,4 +345,4 @@ } }, "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"geo-PlaceIndex\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/tags.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/tags.json index b9321d71b83..71f6abe11a6 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/tags.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/tags.json @@ -7,4 +7,4 @@ "Key": "user:Application", "Value": "{project-name}" } -] \ No newline at end of file +] diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts index 3e359cb4006..75839d30aea 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/backend/types/amplify-dependent-resources-ref.d.ts @@ -40,4 +40,4 @@ export type AmplifyDependentResourcesAttributes = { "Region": "string" } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/cli.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/cli.json index 11dc8ca0f7d..6991bfaca44 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/cli.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/cli.json @@ -62,4 +62,4 @@ "debug": { "shareProjectConfig": false } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/team-provider-info.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/team-provider-info.json index 5d3c96a9e20..9d8c2498b04 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/team-provider-info.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/amplify/team-provider-info.json @@ -1,16 +1,16 @@ { - "main": { + "x": { "awscloudformation": { - "AuthRoleName": "amplify-storelocator-main-f9ca7-authRole", - "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-storelocator-main-f9ca7-unauthRole", - "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-storelocator-main-f9ca7-authRole", + "AuthRoleName": "amplify-storelocator-x-x-authRole", + "UnauthRoleArn": "arn:aws:iam::123456789012:role/amplify-storelocator-x-x-unauthRole", + "AuthRoleArn": "arn:aws:iam::123456789012:role/amplify-storelocator-x-x-authRole", "Region": "us-east-1", - "DeploymentBucketName": "amplify-storelocator-main-f9ca7-deployment", - "UnauthRoleName": "amplify-storelocator-main-f9ca7-unauthRole", - "StackName": "amplify-storelocator-main-f9ca7", - "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-storelocator-main-f9ca7/06c2ecf0-279e-11f1-a161-0ea0286337e9", + "DeploymentBucketName": "amplify-storelocator-x-x-deployment", + "UnauthRoleName": "amplify-storelocator-x-x-unauthRole", + "StackName": "amplify-storelocator-x-x", + "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-storelocator-x-x/48dbdfc0-387e-11f1-abb7-12a98fd563d9", "AmplifyAppId": "storelocator", - "AuthTriggerTemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json" + "AuthTriggerTemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json" }, "categories": { "auth": { @@ -20,7 +20,7 @@ "function": { "storelocator41a9495f41a9495fPostConfirmation": { "GROUP": "storeLocatorAdmin", - "deploymentBucketName": "amplify-storelocator-main-f9ca7-deployment", + "deploymentBucketName": "amplify-storelocator-x-x-deployment", "s3Key": "amplify-builds/storelocator41a9495f41a9495fPostConfirmation-6a6c746d4739755a384a-build.zip" } }, @@ -31,4 +31,4 @@ } } } -} \ No newline at end of file +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.generate/package.json b/amplify-migration-apps/store-locator/_snapshot.pre.generate/package.json index be5af20d862..d932df6c0c3 100644 --- a/amplify-migration-apps/store-locator/_snapshot.pre.generate/package.json +++ b/amplify-migration-apps/store-locator/_snapshot.pre.generate/package.json @@ -12,13 +12,25 @@ "lint": "eslint .", "preview": "vite preview", "sanitize": "tsx ../sanitize.ts", - "typecheck": "cd _snapshot.post.generate/amplify && npx tsc --noEmit" + "normalize": "tsx ../normalize.ts", + "typecheck": "cd _snapshot.post.generate/amplify && npx tsc --noEmit", + "test:gen1": "APP_CONFIG_PATH=${APP_CONFIG_PATH:-src/amplifyconfiguration.json} NODE_OPTIONS='--experimental-vm-modules' jest --verbose", + "test:gen2": "APP_CONFIG_PATH=${APP_CONFIG_PATH:-amplify_outputs.json} NODE_OPTIONS='--experimental-vm-modules' jest --verbose", + "test:shared-data": "true", + "test:e2e": "cd ../../packages/amplify-gen2-migration-e2e-system && npx tsx src/cli.ts --app store-locator --profile ${AWS_PROFILE:-default}", + "deploy": "cd ../../packages/amplify-gen2-migration-e2e-system && npx tsx src/cli.ts --app store-locator --step deploy --profile ${AWS_PROFILE:-default}", + "pre-push": "npx tsx migration/pre-push.ts", + "post-generate": "npx tsx migration/post-generate.ts", + "post-refactor": "true", + "post-sandbox": "true", + "pre-sandbox": "true", + "post-push": "true" }, "dependencies": { - "@aws-sdk/client-cognito-identity-provider": "^3.1016.0", "@aws-amplify/geo": "^3.0.92", "@aws-amplify/ui-react": "^6.13.2", "@aws-amplify/ui-react-geo": "^2.2.13", + "@aws-sdk/client-cognito-identity-provider": "^3.1016.0", "aws-amplify": "^6.16.0", "maplibre-gl": "^2.4.0", "maplibre-gl-js-amplify": "^4.0.2", @@ -26,7 +38,10 @@ "react-dom": "^19.2.0" }, "devDependencies": { + "@aws-sdk/client-cognito-identity-provider": "^3.936.0", + "@aws-sdk/client-lambda": "^3.936.0", "@eslint/js": "^9.39.1", + "@types/jest": "^29.5.14", "@types/node": "^24.10.1", "@types/react": "^19.2.5", "@types/react-dom": "^19.2.3", @@ -35,6 +50,8 @@ "eslint-plugin-react-hooks": "^7.0.1", "eslint-plugin-react-refresh": "^0.4.24", "globals": "^16.5.0", + "jest": "^29.7.0", + "ts-jest": "^29.3.4", "typescript": "~5.9.3", "typescript-eslint": "^8.46.4", "vite": "^7.2.4" diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-auth179371D7-x.description.txt b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-auth179371D7-x.description.txt new file mode 100644 index 00000000000..b66e3e0b9e2 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-auth179371D7-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"AmplifySandbox","createdWith":"1.11.2","stackType":"auth-Cognito","metadata":{}} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-auth179371D7-x.outputs.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-auth179371D7-x.outputs.json new file mode 100644 index 00000000000..97ab09073b1 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-auth179371D7-x.outputs.json @@ -0,0 +1,30 @@ +[ + { + "OutputKey": "amplifystorelocatore2esandboxdd610709c4authamplifyAuthUserPoolAppClient4E4BBC6CRef", + "OutputValue": "1jb6icmarkdqbom3q1caugppsp" + }, + { + "OutputKey": "amplifystorelocatore2esandboxdd610709c4authamplifyAuthunauthenticatedUserRoleF5FAC08ERef", + "OutputValue": "amplify-storelocat2604142-amplifyAuthunauthenticate-jXqOMCUo8MPA" + }, + { + "OutputKey": "amplifystorelocatore2esandboxdd610709c4authamplifyAuthIdentityPoolC9BBD71ERef", + "OutputValue": "us-east-1:81ff082e-6b3d-42b8-baa8-59f036f4bf6b" + }, + { + "OutputKey": "amplifystorelocatore2esandboxdd610709c4authstorelocator41a9495f41a9495fPostConfirmationgen2xlambdaF3B8D931Ref", + "OutputValue": "storelocator41a9495f41a9495fPostConfirmation-gen2-x" + }, + { + "OutputKey": "amplifystorelocatore2esandboxdd610709c4authamplifyAuthUserPool56C869F9Ref", + "OutputValue": "us-east-1_1dsjv7aux" + }, + { + "OutputKey": "amplifystorelocatore2esandboxdd610709c4authamplifyAuthstoreLocatorAdminGroupRoleC0E3E7C0Ref", + "OutputValue": "amplify-storelocat2604142-amplifyAuthstoreLocatorAd-Y07eHwc1xbQQ" + }, + { + "OutputKey": "amplifystorelocatore2esandboxdd610709c4authamplifyAuthauthenticatedUserRoleFD3A976BRef", + "OutputValue": "amplify-storelocat2604142-amplifyAuthauthenticatedU-wVZxcFB0fphi" + } +] diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-auth179371D7-x.parameters.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-auth179371D7-x.parameters.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-auth179371D7-x.parameters.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-auth179371D7-x.template.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-auth179371D7-x.template.json new file mode 100644 index 00000000000..3d75a034b57 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-auth179371D7-x.template.json @@ -0,0 +1,954 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", + "Resources": { + "amplifyAuthUserPool4BA7F805": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AccountRecoverySetting": { + "RecoveryMechanisms": [ + { + "Name": "verified_email", + "Priority": 1 + } + ] + }, + "AdminCreateUserConfig": { + "AllowAdminCreateUserOnly": false + }, + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": "Your verification code is {####}", + "EmailVerificationSubject": "Your verification code", + "LambdaConfig": { + "PostConfirmation": { + "Fn::GetAtt": [ + "storelocator41a9495f41a9495fPostConfirmationgen2xlambdaA39138C1", + "Arn" + ] + } + }, + "MfaConfiguration": "OFF", + "Policies": { + "PasswordPolicy": { + "MinimumLength": 8, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false, + "TemporaryPasswordValidityDays": 7 + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "SmsVerificationMessage": "The verification code to your new account is {####}", + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolTags": { + "amplify:deployment-type": "sandbox", + "amplify:friendly-name": "amplifyAuth", + "created-by": "amplify" + }, + "UsernameAttributes": [ + "email" + ], + "UsernameConfiguration": { + "CaseSensitive": false + }, + "VerificationMessageTemplate": { + "DefaultEmailOption": "CONFIRM_WITH_CODE", + "EmailMessage": "Your verification code is {####}", + "EmailSubject": "Your verification code", + "SmsMessage": "The verification code to your new account is {####}" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/amplifyAuth/UserPool/Resource" + } + }, + "amplifyAuthUserPoolPostConfirmationCognitoE7E727CF": { + "Type": "AWS::Lambda::Permission", + "Properties": { + "Action": "lambda:InvokeFunction", + "FunctionName": { + "Fn::GetAtt": [ + "storelocator41a9495f41a9495fPostConfirmationgen2xlambdaA39138C1", + "Arn" + ] + }, + "Principal": "cognito-idp.amazonaws.com", + "SourceArn": { + "Fn::GetAtt": [ + "amplifyAuthUserPool4BA7F805", + "Arn" + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/amplifyAuth/UserPool/PostConfirmationCognito" + } + }, + "amplifyAuthUserPoolNativeAppClient79534448": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlowsUserPoolClient": false, + "AuthSessionValidity": 3, + "EnablePropagateAdditionalUserContextData": false, + "EnableTokenRevocation": true, + "GenerateSecret": false, + "RefreshTokenValidity": 144000, + "SupportedIdentityProviders": [ + "COGNITO" + ], + "TokenValidityUnits": { + "RefreshToken": "minutes" + }, + "UserPoolId": { + "Ref": "amplifyAuthUserPool4BA7F805" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/amplifyAuth/UserPool/NativeAppClient/Resource" + } + }, + "amplifyAuthUserPoolAppClient2626C6F8": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "AllowedOAuthFlows": [ + "code" + ], + "AllowedOAuthFlowsUserPoolClient": true, + "AllowedOAuthScopes": [ + "profile", + "phone", + "email", + "openid", + "aws.cognito.signin.user.admin" + ], + "CallbackURLs": [ + "https://example.com" + ], + "ExplicitAuthFlows": [ + "ALLOW_CUSTOM_AUTH", + "ALLOW_USER_SRP_AUTH", + "ALLOW_REFRESH_TOKEN_AUTH" + ], + "PreventUserExistenceErrors": "ENABLED", + "SupportedIdentityProviders": [ + "COGNITO" + ], + "UserPoolId": { + "Ref": "amplifyAuthUserPool4BA7F805" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/amplifyAuth/UserPoolAppClient/Resource" + } + }, + "amplifyAuthIdentityPool3FDE84CC": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": true, + "CognitoIdentityProviders": [ + { + "ClientId": { + "Ref": "amplifyAuthUserPoolAppClient2626C6F8" + }, + "ProviderName": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + { + "Ref": "amplifyAuthUserPool4BA7F805" + } + ] + ] + } + } + ], + "IdentityPoolTags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "SupportedLoginProviders": {} + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/amplifyAuth/IdentityPool" + } + }, + "amplifyAuthauthenticatedUserRoleD8DA3689": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/amplifyAuth/authenticatedUserRole/Resource" + } + }, + "amplifyAuthunauthenticatedUserRole2B524D9E": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "unauthenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/amplifyAuth/unauthenticatedUserRole/Resource" + } + }, + "amplifyAuthIdentityPoolRoleAttachment045F17C8": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + }, + "RoleMappings": { + "UserPoolWebClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Join": [ + "", + [ + "cognito-idp.", + { + "Ref": "AWS::Region" + }, + ".amazonaws.com/", + { + "Ref": "amplifyAuthUserPool4BA7F805" + }, + ":", + { + "Ref": "amplifyAuthUserPoolAppClient2626C6F8" + } + ] + ] + }, + "Type": "Token" + } + }, + "Roles": { + "unauthenticated": { + "Fn::GetAtt": [ + "amplifyAuthunauthenticatedUserRole2B524D9E", + "Arn" + ] + }, + "authenticated": { + "Fn::GetAtt": [ + "amplifyAuthauthenticatedUserRoleD8DA3689", + "Arn" + ] + } + } + }, + "DependsOn": [ + "amplifyAuthIdentityPool3FDE84CC", + "amplifyAuthUserPoolAppClient2626C6F8" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/amplifyAuth/IdentityPoolRoleAttachment" + } + }, + "amplifyAuthstoreLocatorAdminGroupRoleDECAB489": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + }, + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "amplifyAuth" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/amplifyAuth/storeLocatorAdminGroupRole/Resource" + } + }, + "amplifyAuthstoreLocatorAdminGroup85B78B77": { + "Type": "AWS::Cognito::UserPoolGroup", + "Properties": { + "GroupName": "storeLocatorAdmin", + "Precedence": 0, + "RoleArn": { + "Fn::GetAtt": [ + "amplifyAuthstoreLocatorAdminGroupRoleDECAB489", + "Arn" + ] + }, + "UserPoolId": { + "Ref": "amplifyAuthUserPool4BA7F805" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/amplifyAuth/storeLocatorAdminGroup" + } + }, + "storelocator41a9495f41a9495fPostConfirmationgen2xlambdaServiceRole7EA338D3": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "storelocator41a9495f41a9495fPostConfirmation-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/storelocator41a9495f41a9495fPostConfirmation-gen2-x-lambda/ServiceRole/Resource" + } + }, + "storelocator41a9495f41a9495fPostConfirmationgen2xlambdaServiceRoleDefaultPolicy93A02680": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "ssm:GetParameters", + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":ssm:", + { + "Ref": "AWS::Region" + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":parameter/amplify/resource_reference/storelocator/e2e-sandbox-x/AMPLIFY_AUTH_USERPOOL_ID" + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "storelocator41a9495f41a9495fPostConfirmationgen2xlambdaServiceRoleDefaultPolicy93A02680", + "Roles": [ + { + "Ref": "storelocator41a9495f41a9495fPostConfirmationgen2xlambdaServiceRole7EA338D3" + } + ] + }, + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/storelocator41a9495f41a9495fPostConfirmation-gen2-x-lambda/ServiceRole/DefaultPolicy/Resource" + } + }, + "storelocator41a9495f41a9495fPostConfirmationgen2xlambdaA39138C1": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Architectures": [ + "x86_64" + ], + "Code": { + "S3Bucket": { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "S3Key": "160afe14228f538544d3f57eba2a67b081afe243d3926aab05a998f3553f00e0.zip" + }, + "Environment": { + "Variables": { + "GROUP": "storeLocatorAdmin", + "MODULES": "add-to-group", + "ENV": "gen2-x", + "REGION": "us-east-1", + "AMPLIFY_SSM_ENV_CONFIG": "{\"AMPLIFY_AUTH_USERPOOL_ID\":{\"path\":\"/amplify/resource_reference/storelocator/e2e-sandbox-x/AMPLIFY_AUTH_USERPOOL_ID\"}}", + "AMPLIFY_AUTH_USERPOOL_ID": "" + } + }, + "EphemeralStorage": { + "Size": 512 + }, + "FunctionName": "storelocator41a9495f41a9495fPostConfirmation-gen2-x", + "Handler": "index.handler", + "MemorySize": 512, + "Role": { + "Fn::GetAtt": [ + "storelocator41a9495f41a9495fPostConfirmationgen2xlambdaServiceRole7EA338D3", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "amplify:friendly-name", + "Value": "storelocator41a9495f41a9495fPostConfirmation-gen2-x" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 25 + }, + "DependsOn": [ + "storelocator41a9495f41a9495fPostConfirmationgen2xlambdaServiceRole7EA338D3" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/storelocator41a9495f41a9495fPostConfirmation-gen2-x-lambda/Resource", + "aws:asset:path": "asset.160afe14228f538544d3f57eba2a67b081afe243d3926aab05a998f3553f00e0", + "aws:asset:is-bundled": true, + "aws:asset:property": "Code" + } + }, + "AMPLIFYAUTHUSERPOOLIDParameterCC466CA3": { + "Type": "AWS::SSM::Parameter", + "Properties": { + "Name": "/amplify/resource_reference/storelocator/e2e-sandbox-x/AMPLIFY_AUTH_USERPOOL_ID", + "Tags": { + "amplify:deployment-type": "sandbox", + "created-by": "amplify" + }, + "Type": "String", + "Value": { + "Ref": "amplifyAuthUserPool4BA7F805" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/AMPLIFY_AUTH_USERPOOL_IDParameter/Resource" + } + }, + "userpoolAccess13FEE5419": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "cognito-idp:AdminAddUserToGroup", + "cognito-idp:GetGroup", + "cognito-idp:ListGroups", + "cognito-idp:CreateGroup", + "cognito-idp:DeleteGroup", + "cognito-idp:UpdateGroup" + ], + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "amplifyAuthUserPool4BA7F805", + "Arn" + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "userpoolAccess13FEE5419", + "Roles": [ + { + "Ref": "storelocator41a9495f41a9495fPostConfirmationgen2xlambdaServiceRole7EA338D3" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/userpoolAccess1/Resource" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/12NzW6DQAyEnyX3xaVE7T1BatRLhIJ6RpvFoYb9qdamUYR492qJaKOeZsb2fC6geMkh3+grZ6YdMktnmI7Igm0t2gxKX7mZTOg8SYDpgzFWIVhVXvyvX01pCb08rv4m7y16Ibmt5cd8ChZ3Itp8un/9Qwzj16ysdudWw1RefIXRETMFn+7eRm+Egp8VaQdTAqXxolWwZG4p3t2KaXxosWc4LrISFG8bzYzCsEuieAv70Qwoe82omB1MtUTyXaWjdigYF/Qa5lktvVp0R76bVfoCPT99FwU8v0K+6Zkoi6MXcginu/4AH6eqXH4BAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Outputs": { + "amplifystorelocatore2esandboxdd610709c4authamplifyAuthUserPool56C869F9Ref": { + "Value": { + "Ref": "amplifyAuthUserPool4BA7F805" + } + }, + "amplifystorelocatore2esandboxdd610709c4authamplifyAuthUserPoolAppClient4E4BBC6CRef": { + "Value": { + "Ref": "amplifyAuthUserPoolAppClient2626C6F8" + } + }, + "amplifystorelocatore2esandboxdd610709c4authamplifyAuthIdentityPoolC9BBD71ERef": { + "Value": { + "Ref": "amplifyAuthIdentityPool3FDE84CC" + } + }, + "amplifystorelocatore2esandboxdd610709c4authstorelocator41a9495f41a9495fPostConfirmationgen2xlambdaF3B8D931Ref": { + "Value": { + "Ref": "storelocator41a9495f41a9495fPostConfirmationgen2xlambdaA39138C1" + } + }, + "amplifystorelocatore2esandboxdd610709c4authamplifyAuthauthenticatedUserRoleFD3A976BRef": { + "Value": { + "Ref": "amplifyAuthauthenticatedUserRoleD8DA3689" + } + }, + "amplifystorelocatore2esandboxdd610709c4authamplifyAuthunauthenticatedUserRoleF5FAC08ERef": { + "Value": { + "Ref": "amplifyAuthunauthenticatedUserRole2B524D9E" + } + }, + "amplifystorelocatore2esandboxdd610709c4authamplifyAuthstoreLocatorAdminGroupRoleC0E3E7C0Ref": { + "Value": { + "Ref": "amplifyAuthstoreLocatorAdminGroupRoleDECAB489" + } + } + } +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-geostoreLocatorGeofenceEAAC8D05-x.description.txt b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-geostoreLocatorGeofenceEAAC8D05-x.description.txt new file mode 100644 index 00000000000..46446793250 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-geostoreLocatorGeofenceEAAC8D05-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"AmplifySandbox","createdWith":"1.22.0","stackType":"custom","metadata":{}} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-geostoreLocatorGeofenceEAAC8D05-x.outputs.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-geostoreLocatorGeofenceEAAC8D05-x.outputs.json new file mode 100644 index 00000000000..b2befdafa63 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-geostoreLocatorGeofenceEAAC8D05-x.outputs.json @@ -0,0 +1,18 @@ +[ + { + "OutputKey": "Region", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "Arn", + "OutputValue": "arn:aws:geo:us-east-1:123456789012:geofence-collection/storeLocatorGeofence-gen2-x" + }, + { + "OutputKey": "amplifystorelocatore2esandboxdd610709c4geostoreLocatorGeofenceCustomGeofenceCollection14074ED5CollectionName", + "OutputValue": "storeLocatorGeofence-gen2-x" + }, + { + "OutputKey": "Name", + "OutputValue": "storeLocatorGeofence-gen2-x" + } +] diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-geostoreLocatorGeofenceEAAC8D05-x.parameters.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-geostoreLocatorGeofenceEAAC8D05-x.parameters.json new file mode 100644 index 00000000000..0954b32c854 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-geostoreLocatorGeofenceEAAC8D05-x.parameters.json @@ -0,0 +1,6 @@ +[ + { + "ParameterKey": "referencetoamplifystorelocatore2esandboxdd610709c4authNestedStackauthNestedStackResource7AD4F428Outputsamplifystorelocatore2esandboxdd610709c4authamplifyAuthstoreLocatorAdminGroupRoleC0E3E7C0Ref", + "ParameterValue": "amplify-storelocat2604142-amplifyAuthstoreLocatorAd-Y07eHwc1xbQQ" + } +] diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-geostoreLocatorGeofenceEAAC8D05-x.template.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-geostoreLocatorGeofenceEAAC8D05-x.template.json new file mode 100644 index 00000000000..347e92bd434 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-geostoreLocatorGeofenceEAAC8D05-x.template.json @@ -0,0 +1,632 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.22.0\",\"stackType\":\"custom\",\"metadata\":{}}", + "Mappings": { + "storeLocatorGeofenceRegionMapping9D9BCEA8": { + "us-east-1": { + "locationServiceRegion": "us-east-1" + }, + "us-east-2": { + "locationServiceRegion": "us-east-2" + }, + "us-west-2": { + "locationServiceRegion": "us-west-2" + }, + "ap-southeast-1": { + "locationServiceRegion": "ap-southeast-1" + }, + "ap-southeast-2": { + "locationServiceRegion": "ap-southeast-2" + }, + "ap-northeast-1": { + "locationServiceRegion": "ap-northeast-1" + }, + "eu-central-1": { + "locationServiceRegion": "eu-central-1" + }, + "eu-north-1": { + "locationServiceRegion": "eu-north-1" + }, + "eu-west-1": { + "locationServiceRegion": "eu-west-1" + }, + "sa-east-1": { + "locationServiceRegion": "us-east-1" + }, + "ca-central-1": { + "locationServiceRegion": "us-east-1" + }, + "us-west-1": { + "locationServiceRegion": "us-west-2" + }, + "cn-north-1": { + "locationServiceRegion": "us-west-2" + }, + "cn-northwest-1": { + "locationServiceRegion": "us-west-2" + }, + "ap-south-1": { + "locationServiceRegion": "us-west-2" + }, + "ap-northeast-3": { + "locationServiceRegion": "us-west-2" + }, + "ap-northeast-2": { + "locationServiceRegion": "us-west-2" + }, + "eu-west-2": { + "locationServiceRegion": "eu-west-1" + }, + "eu-west-3": { + "locationServiceRegion": "eu-west-1" + }, + "me-south-1": { + "locationServiceRegion": "ap-southeast-1" + } + } + }, + "Resources": { + "storeLocatorGeofenceCustomGeofenceCollectionLambdaServiceRole9040D5514E15B340": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/geostoreLocatorGeofence/storeLocatorGeofence/CustomGeofenceCollectionLambdaServiceRole9040D551" + } + }, + "storeLocatorGeofenceCustomGeofenceCollectionLambdaServiceRoleDefaultPolicy0A18B369D308393B": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "geo:CreateGeofenceCollection", + "Effect": "Allow", + "Resource": "*" + }, + { + "Action": [ + "geo:UpdateGeofenceCollection", + "geo:DeleteGeofenceCollection" + ], + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:geo:", + { + "Fn::FindInMap": [ + "storeLocatorGeofenceRegionMapping9D9BCEA8", + { + "Ref": "AWS::Region" + }, + "locationServiceRegion" + ] + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":geofence-collection/storeLocatorGeofence-gen2-x" + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "CustomGeofenceCollectionLambdaServiceRoleDefaultPolicy0A18B369", + "Roles": [ + { + "Ref": "storeLocatorGeofenceCustomGeofenceCollectionLambdaServiceRole9040D5514E15B340" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/geostoreLocatorGeofence/storeLocatorGeofence/CustomGeofenceCollectionLambdaServiceRoleDefaultPolicy0A18B369" + } + }, + "storeLocatorGeofenceCustomGeofenceCollectionLambdaCA3D002BC8592787": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "ZipFile": "const response = require('cfn-response');\nconst {\n LocationClient,\n CreateGeofenceCollectionCommand,\n DeleteGeofenceCollectionCommand,\n UpdateGeofenceCollectionCommand,\n} = require('@aws-sdk/client-location');\nexports.handler = async function (event, context) {\n try {\n console.log('REQUEST RECEIVED:' + JSON.stringify(event));\n const pricingPlan = 'RequestBasedUsage';\n if (event.RequestType === 'Create') {\n const params = {\n CollectionName: event.ResourceProperties.collectionName,\n PricingPlan: pricingPlan,\n };\n const locationClient = new LocationClient({ region: event.ResourceProperties.region });\n const res = await locationClient.send(new CreateGeofenceCollectionCommand(params));\n console.log('create resource response data' + JSON.stringify(res));\n if (res.CollectionName && res.CollectionArn) {\n await response.send(event, context, response.SUCCESS, res, params.CollectionName);\n } else {\n await response.send(event, context, response.FAILED, res, params.CollectionName);\n }\n }\n if (event.RequestType === 'Update') {\n const params = {\n CollectionName: event.ResourceProperties.collectionName,\n PricingPlan: pricingPlan,\n };\n const locationClient = new LocationClient({ region: event.ResourceProperties.region });\n const res = await locationClient.send(new UpdateGeofenceCollectionCommand(params));\n console.log('update resource response data' + JSON.stringify(res));\n if (res.CollectionName) {\n await response.send(event, context, response.SUCCESS, res, params.CollectionName);\n } else {\n await response.send(event, context, response.FAILED, res, params.CollectionName);\n }\n }\n if (event.RequestType === 'Delete') {\n const params = {\n CollectionName: event.ResourceProperties.collectionName,\n };\n const locationClient = new LocationClient({ region: event.ResourceProperties.region });\n const res = await locationClient.send(new DeleteGeofenceCollectionCommand(params));\n console.log('delete resource response data' + JSON.stringify(res));\n await response.send(event, context, response.SUCCESS, res, params.CollectionName);\n }\n } catch (err) {\n console.log(err.stack);\n const res = { Error: err };\n await response.send(event, context, response.FAILED, res, event.ResourceProperties.collectionName);\n throw err;\n }\n};\n" + }, + "Handler": "index.handler", + "Role": { + "Fn::GetAtt": [ + "storeLocatorGeofenceCustomGeofenceCollectionLambdaServiceRole9040D5514E15B340", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 300 + }, + "DependsOn": [ + "storeLocatorGeofenceCustomGeofenceCollectionLambdaServiceRole9040D5514E15B340", + "storeLocatorGeofenceCustomGeofenceCollectionLambdaServiceRoleDefaultPolicy0A18B369D308393B" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/geostoreLocatorGeofence/storeLocatorGeofence/CustomGeofenceCollectionLambdaCA3D002B" + } + }, + "storeLocatorGeofenceCustomGeofenceCollectionB76AA26D": { + "Type": "Custom::LambdaCallout", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "storeLocatorGeofenceCustomGeofenceCollectionLambdaCA3D002BC8592787", + "Arn" + ] + }, + "collectionName": "storeLocatorGeofence-gen2-x", + "region": { + "Fn::FindInMap": [ + "storeLocatorGeofenceRegionMapping9D9BCEA8", + { + "Ref": "AWS::Region" + }, + "locationServiceRegion" + ] + }, + "env": "gen2-x" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/geostoreLocatorGeofence/storeLocatorGeofence/CustomGeofenceCollection" + } + }, + "storeLocatorGeofencestoreLocatorAdminGeofenceCollectionPolicy34A5CD0F": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "geo:GetGeofence", + "geo:PutGeofence", + "geo:BatchPutGeofence", + "geo:BatchDeleteGeofence", + "geo:ListGeofences" + ], + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:geo:", + { + "Fn::FindInMap": [ + "storeLocatorGeofenceRegionMapping9D9BCEA8", + { + "Ref": "AWS::Region" + }, + "locationServiceRegion" + ] + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":geofence-collection/", + { + "Fn::GetAtt": [ + "storeLocatorGeofenceCustomGeofenceCollectionB76AA26D", + "CollectionName" + ] + } + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "storeLocatorAdminstoreLocatorGeofence-gen2-xPolicy", + "Roles": [ + { + "Ref": "referencetoamplifystorelocatore2esandboxdd610709c4authNestedStackauthNestedStackResource7AD4F428Outputsamplifystorelocatore2esandboxdd610709c4authamplifyAuthstoreLocatorAdminGroupRoleC0E3E7C0Ref" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/geostoreLocatorGeofence/storeLocatorGeofence/storeLocatorAdminGeofenceCollectionPolicy" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXLTQ6CMBBA4bOwLyM20Qs0cedP8ABmaIsZaKeETiWGcHejrt7iy9OgDw00FS65tm6sA3WwXnwW7+6CdlSm5zNOE/FT4ZIfK2GE1fTcpuC/eEuB7HtTAWPnEEzPp8JWKPH2ZVOypNj6nMpsf8O1yFRkU5ychyHvXlrD/ghNNWSiei4sFD20/34Au+f/SJ8AAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/geostoreLocatorGeofence/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Outputs": { + "Name": { + "Value": { + "Fn::GetAtt": [ + "storeLocatorGeofenceCustomGeofenceCollectionB76AA26D", + "CollectionName" + ] + } + }, + "Region": { + "Value": { + "Fn::FindInMap": [ + "storeLocatorGeofenceRegionMapping9D9BCEA8", + { + "Ref": "AWS::Region" + }, + "locationServiceRegion" + ] + } + }, + "Arn": { + "Value": { + "Fn::Join": [ + "", + [ + "arn:aws:geo:", + { + "Fn::FindInMap": [ + "storeLocatorGeofenceRegionMapping9D9BCEA8", + { + "Ref": "AWS::Region" + }, + "locationServiceRegion" + ] + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":geofence-collection/", + { + "Fn::GetAtt": [ + "storeLocatorGeofenceCustomGeofenceCollectionB76AA26D", + "CollectionName" + ] + } + ] + ] + } + }, + "amplifystorelocatore2esandboxdd610709c4geostoreLocatorGeofenceCustomGeofenceCollection14074ED5CollectionName": { + "Value": { + "Fn::GetAtt": [ + "storeLocatorGeofenceCustomGeofenceCollectionB76AA26D", + "CollectionName" + ] + } + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "referencetoamplifystorelocatore2esandboxdd610709c4authNestedStackauthNestedStackResource7AD4F428Outputsamplifystorelocatore2esandboxdd610709c4authamplifyAuthstoreLocatorAdminGroupRoleC0E3E7C0Ref": { + "Type": "String" + } + } +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-geostoreLocatorMap6A22ACC1-x.description.txt b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-geostoreLocatorMap6A22ACC1-x.description.txt new file mode 100644 index 00000000000..46446793250 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-geostoreLocatorMap6A22ACC1-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"AmplifySandbox","createdWith":"1.22.0","stackType":"custom","metadata":{}} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-geostoreLocatorMap6A22ACC1-x.outputs.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-geostoreLocatorMap6A22ACC1-x.outputs.json new file mode 100644 index 00000000000..69f50f2e296 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-geostoreLocatorMap6A22ACC1-x.outputs.json @@ -0,0 +1,22 @@ +[ + { + "OutputKey": "amplifystorelocatore2esandboxdd610709c4geostoreLocatorMapCustomMap89330140MapName", + "OutputValue": "storeLocatorMap-gen2-x" + }, + { + "OutputKey": "Style", + "OutputValue": "VectorEsriStreets" + }, + { + "OutputKey": "Region", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "Arn", + "OutputValue": "arn:aws:geo:us-east-1:123456789012:map/storeLocatorMap-gen2-x" + }, + { + "OutputKey": "Name", + "OutputValue": "storeLocatorMap-gen2-x" + } +] diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-geostoreLocatorMap6A22ACC1-x.parameters.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-geostoreLocatorMap6A22ACC1-x.parameters.json new file mode 100644 index 00000000000..0ade7894743 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-geostoreLocatorMap6A22ACC1-x.parameters.json @@ -0,0 +1,14 @@ +[ + { + "ParameterKey": "referencetoamplifystorelocatore2esandboxdd610709c4authNestedStackauthNestedStackResource7AD4F428Outputsamplifystorelocatore2esandboxdd610709c4authamplifyAuthstoreLocatorAdminGroupRoleC0E3E7C0Ref", + "ParameterValue": "amplify-storelocat2604142-amplifyAuthstoreLocatorAd-Y07eHwc1xbQQ" + }, + { + "ParameterKey": "referencetoamplifystorelocatore2esandboxdd610709c4authNestedStackauthNestedStackResource7AD4F428Outputsamplifystorelocatore2esandboxdd610709c4authamplifyAuthunauthenticatedUserRoleF5FAC08ERef", + "ParameterValue": "amplify-storelocat2604142-amplifyAuthunauthenticate-jXqOMCUo8MPA" + }, + { + "ParameterKey": "referencetoamplifystorelocatore2esandboxdd610709c4authNestedStackauthNestedStackResource7AD4F428Outputsamplifystorelocatore2esandboxdd610709c4authamplifyAuthauthenticatedUserRoleFD3A976BRef", + "ParameterValue": "amplify-storelocat2604142-amplifyAuthauthenticatedU-wVZxcFB0fphi" + } +] diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-geostoreLocatorMap6A22ACC1-x.template.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-geostoreLocatorMap6A22ACC1-x.template.json new file mode 100644 index 00000000000..a238877eb5b --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-geostoreLocatorMap6A22ACC1-x.template.json @@ -0,0 +1,603 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.22.0\",\"stackType\":\"custom\",\"metadata\":{}}", + "Mappings": { + "storeLocatorMapRegionMapping7E708396": { + "us-east-1": { + "locationServiceRegion": "us-east-1" + }, + "us-east-2": { + "locationServiceRegion": "us-east-2" + }, + "us-west-2": { + "locationServiceRegion": "us-west-2" + }, + "ap-southeast-1": { + "locationServiceRegion": "ap-southeast-1" + }, + "ap-southeast-2": { + "locationServiceRegion": "ap-southeast-2" + }, + "ap-northeast-1": { + "locationServiceRegion": "ap-northeast-1" + }, + "eu-central-1": { + "locationServiceRegion": "eu-central-1" + }, + "eu-north-1": { + "locationServiceRegion": "eu-north-1" + }, + "eu-west-1": { + "locationServiceRegion": "eu-west-1" + }, + "sa-east-1": { + "locationServiceRegion": "us-east-1" + }, + "ca-central-1": { + "locationServiceRegion": "us-east-1" + }, + "us-west-1": { + "locationServiceRegion": "us-west-2" + }, + "cn-north-1": { + "locationServiceRegion": "us-west-2" + }, + "cn-northwest-1": { + "locationServiceRegion": "us-west-2" + }, + "ap-south-1": { + "locationServiceRegion": "us-west-2" + }, + "ap-northeast-3": { + "locationServiceRegion": "us-west-2" + }, + "ap-northeast-2": { + "locationServiceRegion": "us-west-2" + }, + "eu-west-2": { + "locationServiceRegion": "eu-west-1" + }, + "eu-west-3": { + "locationServiceRegion": "eu-west-1" + }, + "me-south-1": { + "locationServiceRegion": "ap-southeast-1" + } + } + }, + "Resources": { + "storeLocatorMapCustomMapLambdaServiceRole4EE7732C2405A734": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/geostoreLocatorMap/storeLocatorMap/CustomMapLambdaServiceRole4EE7732C" + } + }, + "storeLocatorMapCustomMapLambdaServiceRoleDefaultPolicy983FDD4ECEADC647": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "geo:CreateMap", + "Effect": "Allow", + "Resource": "*" + }, + { + "Action": [ + "geo:UpdateMap", + "geo:DeleteMap" + ], + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:geo:", + { + "Fn::FindInMap": [ + "storeLocatorMapRegionMapping7E708396", + { + "Ref": "AWS::Region" + }, + "locationServiceRegion" + ] + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":map/storeLocatorMap-gen2-x" + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "CustomMapLambdaServiceRoleDefaultPolicy983FDD4E", + "Roles": [ + { + "Ref": "storeLocatorMapCustomMapLambdaServiceRole4EE7732C2405A734" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/geostoreLocatorMap/storeLocatorMap/CustomMapLambdaServiceRoleDefaultPolicy983FDD4E" + } + }, + "storeLocatorMapCustomMapLambda51D5D43019B4B7E6": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "ZipFile": "const response = require('cfn-response');\nconst { LocationClient, CreateMapCommand, DeleteMapCommand, UpdateMapCommand } = require('@aws-sdk/client-location');\nexports.handler = async function (event, context) {\n try {\n console.log('REQUEST RECEIVED:' + JSON.stringify(event));\n const pricingPlan = 'RequestBasedUsage';\n if (event.RequestType === 'Create') {\n let params = {\n MapName: event.ResourceProperties.mapName,\n Configuration: {\n Style: event.ResourceProperties.mapStyle,\n },\n PricingPlan: pricingPlan,\n };\n const locationClient = new LocationClient({ region: event.ResourceProperties.region });\n const res = await locationClient.send(new CreateMapCommand(params));\n console.log('create resource response data' + JSON.stringify(res));\n if (res.MapName && res.MapArn) {\n await response.send(event, context, response.SUCCESS, res, params.MapName);\n } else {\n await response.send(event, context, response.FAILED, res, params.MapName);\n }\n }\n if (event.RequestType === 'Update') {\n let params = {\n MapName: event.ResourceProperties.mapName,\n PricingPlan: pricingPlan,\n };\n const locationClient = new LocationClient({ region: event.ResourceProperties.region });\n const res = await locationClient.send(new UpdateMapCommand(params));\n console.log('update resource response data' + JSON.stringify(res));\n if (res.MapName && res.MapArn) {\n await response.send(event, context, response.SUCCESS, res, params.MapName);\n } else {\n await response.send(event, context, response.FAILED, res, params.MapName);\n }\n }\n if (event.RequestType === 'Delete') {\n let params = {\n MapName: event.ResourceProperties.mapName,\n };\n const locationClient = new LocationClient({ region: event.ResourceProperties.region });\n const res = await locationClient.send(new DeleteMapCommand(params));\n console.log('delete resource response data' + JSON.stringify(res));\n await response.send(event, context, response.SUCCESS, res, params.MapName);\n }\n } catch (err) {\n console.log(err.stack);\n const res = { Error: err };\n await response.send(event, context, response.FAILED, res, event.ResourceProperties.mapName);\n throw err;\n }\n};\n" + }, + "Handler": "index.handler", + "Role": { + "Fn::GetAtt": [ + "storeLocatorMapCustomMapLambdaServiceRole4EE7732C2405A734", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 300 + }, + "DependsOn": [ + "storeLocatorMapCustomMapLambdaServiceRole4EE7732C2405A734", + "storeLocatorMapCustomMapLambdaServiceRoleDefaultPolicy983FDD4ECEADC647" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/geostoreLocatorMap/storeLocatorMap/CustomMapLambda51D5D430" + } + }, + "storeLocatorMapCustomMap3D69EC7C": { + "Type": "Custom::LambdaCallout", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "storeLocatorMapCustomMapLambda51D5D43019B4B7E6", + "Arn" + ] + }, + "mapName": "storeLocatorMap-gen2-x", + "mapStyle": "VectorEsriStreets", + "region": { + "Fn::FindInMap": [ + "storeLocatorMapRegionMapping7E708396", + { + "Ref": "AWS::Region" + }, + "locationServiceRegion" + ] + }, + "env": "gen2-x" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/geostoreLocatorMap/storeLocatorMap/CustomMap" + } + }, + "storeLocatorMapMapPolicy388540F3": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "geo:GetMapStyleDescriptor", + "geo:GetMapGlyphs", + "geo:GetMapSprites", + "geo:GetMapTile" + ], + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "storeLocatorMapCustomMap3D69EC7C", + "MapArn" + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "storeLocatorMap-gen2-xPolicy", + "Roles": [ + { + "Ref": "referencetoamplifystorelocatore2esandboxdd610709c4authNestedStackauthNestedStackResource7AD4F428Outputsamplifystorelocatore2esandboxdd610709c4authamplifyAuthauthenticatedUserRoleFD3A976BRef" + }, + { + "Ref": "referencetoamplifystorelocatore2esandboxdd610709c4authNestedStackauthNestedStackResource7AD4F428Outputsamplifystorelocatore2esandboxdd610709c4authamplifyAuthunauthenticatedUserRoleF5FAC08ERef" + }, + { + "Ref": "referencetoamplifystorelocatore2esandboxdd610709c4authNestedStackauthNestedStackResource7AD4F428Outputsamplifystorelocatore2esandboxdd610709c4authamplifyAuthstoreLocatorAdminGroupRoleC0E3E7C0Ref" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/geostoreLocatorMap/storeLocatorMap/MapPolicy" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXLTQ6CMBBA4bOwLyM20Qs0cedP8ABmaIsZaKeETiWGcHejrt7iy9OgDw00FS65tm6sA3WwXnwW7+6CdlSm5zNOE/FT4ZIfK2GE1fTcpuC/eEuB7HtTAWPnEEzPp8JWKPH2ZVOypNj6nMpsf8O1yFRkU5ychyHvXlrD/ghNNWSiei4sFD20/34Au+f/SJ8AAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/geostoreLocatorMap/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Outputs": { + "Name": { + "Value": { + "Fn::GetAtt": [ + "storeLocatorMapCustomMap3D69EC7C", + "MapName" + ] + } + }, + "Style": { + "Value": "VectorEsriStreets" + }, + "Region": { + "Value": { + "Fn::FindInMap": [ + "storeLocatorMapRegionMapping7E708396", + { + "Ref": "AWS::Region" + }, + "locationServiceRegion" + ] + } + }, + "Arn": { + "Value": { + "Fn::GetAtt": [ + "storeLocatorMapCustomMap3D69EC7C", + "MapArn" + ] + } + }, + "amplifystorelocatore2esandboxdd610709c4geostoreLocatorMapCustomMap89330140MapName": { + "Value": { + "Fn::GetAtt": [ + "storeLocatorMapCustomMap3D69EC7C", + "MapName" + ] + } + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "referencetoamplifystorelocatore2esandboxdd610709c4authNestedStackauthNestedStackResource7AD4F428Outputsamplifystorelocatore2esandboxdd610709c4authamplifyAuthauthenticatedUserRoleFD3A976BRef": { + "Type": "String" + }, + "referencetoamplifystorelocatore2esandboxdd610709c4authNestedStackauthNestedStackResource7AD4F428Outputsamplifystorelocatore2esandboxdd610709c4authamplifyAuthunauthenticatedUserRoleF5FAC08ERef": { + "Type": "String" + }, + "referencetoamplifystorelocatore2esandboxdd610709c4authNestedStackauthNestedStackResource7AD4F428Outputsamplifystorelocatore2esandboxdd610709c4authamplifyAuthstoreLocatorAdminGroupRoleC0E3E7C0Ref": { + "Type": "String" + } + } +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-geostoreLocatorSearch516CF59F-x.description.txt b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-geostoreLocatorSearch516CF59F-x.description.txt new file mode 100644 index 00000000000..46446793250 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-geostoreLocatorSearch516CF59F-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"AmplifySandbox","createdWith":"1.22.0","stackType":"custom","metadata":{}} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-geostoreLocatorSearch516CF59F-x.outputs.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-geostoreLocatorSearch516CF59F-x.outputs.json new file mode 100644 index 00000000000..b0fd93e1593 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-geostoreLocatorSearch516CF59F-x.outputs.json @@ -0,0 +1,18 @@ +[ + { + "OutputKey": "Region", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "Arn", + "OutputValue": "arn:aws:geo:us-east-1:123456789012:place-index/storeLocatorSearch-gen2-x" + }, + { + "OutputKey": "Name", + "OutputValue": "storeLocatorSearch-gen2-x" + }, + { + "OutputKey": "amplifystorelocatore2esandboxdd610709c4geostoreLocatorSearchCustomPlaceIndex90EC0A16IndexName", + "OutputValue": "storeLocatorSearch-gen2-x" + } +] diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-geostoreLocatorSearch516CF59F-x.parameters.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-geostoreLocatorSearch516CF59F-x.parameters.json new file mode 100644 index 00000000000..0ade7894743 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-geostoreLocatorSearch516CF59F-x.parameters.json @@ -0,0 +1,14 @@ +[ + { + "ParameterKey": "referencetoamplifystorelocatore2esandboxdd610709c4authNestedStackauthNestedStackResource7AD4F428Outputsamplifystorelocatore2esandboxdd610709c4authamplifyAuthstoreLocatorAdminGroupRoleC0E3E7C0Ref", + "ParameterValue": "amplify-storelocat2604142-amplifyAuthstoreLocatorAd-Y07eHwc1xbQQ" + }, + { + "ParameterKey": "referencetoamplifystorelocatore2esandboxdd610709c4authNestedStackauthNestedStackResource7AD4F428Outputsamplifystorelocatore2esandboxdd610709c4authamplifyAuthunauthenticatedUserRoleF5FAC08ERef", + "ParameterValue": "amplify-storelocat2604142-amplifyAuthunauthenticate-jXqOMCUo8MPA" + }, + { + "ParameterKey": "referencetoamplifystorelocatore2esandboxdd610709c4authNestedStackauthNestedStackResource7AD4F428Outputsamplifystorelocatore2esandboxdd610709c4authamplifyAuthauthenticatedUserRoleFD3A976BRef", + "ParameterValue": "amplify-storelocat2604142-amplifyAuthauthenticatedU-wVZxcFB0fphi" + } +] diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-geostoreLocatorSearch516CF59F-x.template.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-geostoreLocatorSearch516CF59F-x.template.json new file mode 100644 index 00000000000..231f898fcd0 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x-geostoreLocatorSearch516CF59F-x.template.json @@ -0,0 +1,601 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.22.0\",\"stackType\":\"custom\",\"metadata\":{}}", + "Mappings": { + "storeLocatorSearchRegionMappingA7DF4548": { + "us-east-1": { + "locationServiceRegion": "us-east-1" + }, + "us-east-2": { + "locationServiceRegion": "us-east-2" + }, + "us-west-2": { + "locationServiceRegion": "us-west-2" + }, + "ap-southeast-1": { + "locationServiceRegion": "ap-southeast-1" + }, + "ap-southeast-2": { + "locationServiceRegion": "ap-southeast-2" + }, + "ap-northeast-1": { + "locationServiceRegion": "ap-northeast-1" + }, + "eu-central-1": { + "locationServiceRegion": "eu-central-1" + }, + "eu-north-1": { + "locationServiceRegion": "eu-north-1" + }, + "eu-west-1": { + "locationServiceRegion": "eu-west-1" + }, + "sa-east-1": { + "locationServiceRegion": "us-east-1" + }, + "ca-central-1": { + "locationServiceRegion": "us-east-1" + }, + "us-west-1": { + "locationServiceRegion": "us-west-2" + }, + "cn-north-1": { + "locationServiceRegion": "us-west-2" + }, + "cn-northwest-1": { + "locationServiceRegion": "us-west-2" + }, + "ap-south-1": { + "locationServiceRegion": "us-west-2" + }, + "ap-northeast-3": { + "locationServiceRegion": "us-west-2" + }, + "ap-northeast-2": { + "locationServiceRegion": "us-west-2" + }, + "eu-west-2": { + "locationServiceRegion": "eu-west-1" + }, + "eu-west-3": { + "locationServiceRegion": "eu-west-1" + }, + "me-south-1": { + "locationServiceRegion": "ap-southeast-1" + } + } + }, + "Resources": { + "storeLocatorSearchCustomPlaceIndexLambdaServiceRoleFD2F3C9D9AAF5F9F": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ], + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/geostoreLocatorSearch/storeLocatorSearch/CustomPlaceIndexLambdaServiceRoleFD2F3C9D" + } + }, + "storeLocatorSearchCustomPlaceIndexLambdaServiceRoleDefaultPolicy818068B11998631C": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "geo:CreatePlaceIndex", + "Effect": "Allow", + "Resource": "*" + }, + { + "Action": [ + "geo:UpdatePlaceIndex", + "geo:DeletePlaceIndex" + ], + "Effect": "Allow", + "Resource": { + "Fn::Join": [ + "", + [ + "arn:aws:geo:", + { + "Fn::FindInMap": [ + "storeLocatorSearchRegionMappingA7DF4548", + { + "Ref": "AWS::Region" + }, + "locationServiceRegion" + ] + }, + ":", + { + "Ref": "AWS::AccountId" + }, + ":place-index/storeLocatorSearch-gen2-x" + ] + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "CustomPlaceIndexLambdaServiceRoleDefaultPolicy818068B1", + "Roles": [ + { + "Ref": "storeLocatorSearchCustomPlaceIndexLambdaServiceRoleFD2F3C9D9AAF5F9F" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/geostoreLocatorSearch/storeLocatorSearch/CustomPlaceIndexLambdaServiceRoleDefaultPolicy818068B1" + } + }, + "storeLocatorSearchCustomPlaceIndexLambda79813BB9A2F450FE": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "ZipFile": "const response = require('cfn-response');\nconst { LocationClient, CreatePlaceIndexCommand, DeletePlaceIndexCommand, UpdatePlaceIndexCommand } = require('@aws-sdk/client-location');\nexports.handler = async function (event, context) {\n try {\n console.log('REQUEST RECEIVED:' + JSON.stringify(event));\n const pricingPlan = 'RequestBasedUsage';\n if (event.RequestType === 'Create') {\n const params = {\n IndexName: event.ResourceProperties.indexName,\n DataSource: event.ResourceProperties.dataSource,\n DataSourceConfiguration: {\n IntendedUse: event.ResourceProperties.dataSourceIntendedUse,\n },\n PricingPlan: pricingPlan,\n };\n const locationClient = new LocationClient({ region: event.ResourceProperties.region });\n const res = await locationClient.send(new CreatePlaceIndexCommand(params));\n console.log('create resource response data' + JSON.stringify(res));\n if (res.IndexName && res.IndexArn) {\n event.PhysicalResourceId = res.IndexName;\n await response.send(event, context, response.SUCCESS, res, params.IndexName);\n } else {\n await response.send(event, context, response.FAILED, res, params.IndexName);\n }\n }\n if (event.RequestType === 'Update') {\n const params = {\n IndexName: event.ResourceProperties.indexName,\n DataSourceConfiguration: {\n IntendedUse: event.ResourceProperties.dataSourceIntendedUse,\n },\n PricingPlan: pricingPlan,\n };\n const locationClient = new LocationClient({ region: event.ResourceProperties.region });\n const res = await locationClient.send(new UpdatePlaceIndexCommand(params));\n console.log('update resource response data' + JSON.stringify(res));\n if (res.IndexName && res.IndexArn) {\n event.PhysicalResourceId = res.IndexName;\n await response.send(event, context, response.SUCCESS, res, params.IndexName);\n } else {\n await response.send(event, context, response.FAILED, res, params.IndexName);\n }\n }\n if (event.RequestType === 'Delete') {\n const params = {\n IndexName: event.ResourceProperties.indexName,\n };\n const locationClient = new LocationClient({ region: event.ResourceProperties.region });\n const res = await locationClient.send(new DeletePlaceIndexCommand(params));\n event.PhysicalResourceId = event.ResourceProperties.indexName;\n console.log('delete resource response data' + JSON.stringify(res));\n await response.send(event, context, response.SUCCESS, res, params.IndexName);\n }\n } catch (err) {\n console.log(err.stack);\n const res = { Error: err };\n await response.send(event, context, response.FAILED, res, event.ResourceProperties.indexName);\n throw err;\n }\n};\n" + }, + "Handler": "index.handler", + "Role": { + "Fn::GetAtt": [ + "storeLocatorSearchCustomPlaceIndexLambdaServiceRoleFD2F3C9D9AAF5F9F", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "Timeout": 300 + }, + "DependsOn": [ + "storeLocatorSearchCustomPlaceIndexLambdaServiceRoleDefaultPolicy818068B11998631C", + "storeLocatorSearchCustomPlaceIndexLambdaServiceRoleFD2F3C9D9AAF5F9F" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/geostoreLocatorSearch/storeLocatorSearch/CustomPlaceIndexLambda79813BB9" + } + }, + "storeLocatorSearchCustomPlaceIndexF0192882": { + "Type": "Custom::LambdaCallout", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "storeLocatorSearchCustomPlaceIndexLambda79813BB9A2F450FE", + "Arn" + ] + }, + "indexName": "storeLocatorSearch-gen2-x", + "dataSource": "Here", + "dataSourceIntendedUse": "SingleUse", + "region": { + "Fn::FindInMap": [ + "storeLocatorSearchRegionMappingA7DF4548", + { + "Ref": "AWS::Region" + }, + "locationServiceRegion" + ] + }, + "env": "gen2-x" + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/geostoreLocatorSearch/storeLocatorSearch/CustomPlaceIndex" + } + }, + "storeLocatorSearchPlaceIndexPolicy9E8EFC93": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "geo:SearchPlaceIndexForPosition", + "geo:SearchPlaceIndexForText", + "geo:SearchPlaceIndexForSuggestions", + "geo:GetPlace" + ], + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "storeLocatorSearchCustomPlaceIndexF0192882", + "IndexArn" + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "storeLocatorSearch-gen2-xPolicy", + "Roles": [ + { + "Ref": "referencetoamplifystorelocatore2esandboxdd610709c4authNestedStackauthNestedStackResource7AD4F428Outputsamplifystorelocatore2esandboxdd610709c4authamplifyAuthauthenticatedUserRoleFD3A976BRef" + }, + { + "Ref": "referencetoamplifystorelocatore2esandboxdd610709c4authNestedStackauthNestedStackResource7AD4F428Outputsamplifystorelocatore2esandboxdd610709c4authamplifyAuthunauthenticatedUserRoleF5FAC08ERef" + }, + { + "Ref": "referencetoamplifystorelocatore2esandboxdd610709c4authNestedStackauthNestedStackResource7AD4F428Outputsamplifystorelocatore2esandboxdd610709c4authamplifyAuthstoreLocatorAdminGroupRoleC0E3E7C0Ref" + } + ] + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/geostoreLocatorSearch/storeLocatorSearch/PlaceIndexPolicy" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXLTQ6CMBBA4bOwLyM20Qs0cedP8ABmaIsZaKeETiWGcHejrt7iy9OgDw00FS65tm6sA3WwXnwW7+6CdlSm5zNOE/FT4ZIfK2GE1fTcpuC/eEuB7HtTAWPnEEzPp8JWKPH2ZVOypNj6nMpsf8O1yFRkU5ychyHvXlrD/ghNNWSiei4sFD20/34Au+f/SJ8AAAA=" + }, + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/geostoreLocatorSearch/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Outputs": { + "Name": { + "Value": { + "Fn::GetAtt": [ + "storeLocatorSearchCustomPlaceIndexF0192882", + "IndexName" + ] + } + }, + "Region": { + "Value": { + "Fn::FindInMap": [ + "storeLocatorSearchRegionMappingA7DF4548", + { + "Ref": "AWS::Region" + }, + "locationServiceRegion" + ] + } + }, + "Arn": { + "Value": { + "Fn::GetAtt": [ + "storeLocatorSearchCustomPlaceIndexF0192882", + "IndexArn" + ] + } + }, + "amplifystorelocatore2esandboxdd610709c4geostoreLocatorSearchCustomPlaceIndex90EC0A16IndexName": { + "Value": { + "Fn::GetAtt": [ + "storeLocatorSearchCustomPlaceIndexF0192882", + "IndexName" + ] + } + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Parameters": { + "referencetoamplifystorelocatore2esandboxdd610709c4authNestedStackauthNestedStackResource7AD4F428Outputsamplifystorelocatore2esandboxdd610709c4authamplifyAuthauthenticatedUserRoleFD3A976BRef": { + "Type": "String" + }, + "referencetoamplifystorelocatore2esandboxdd610709c4authNestedStackauthNestedStackResource7AD4F428Outputsamplifystorelocatore2esandboxdd610709c4authamplifyAuthunauthenticatedUserRoleF5FAC08ERef": { + "Type": "String" + }, + "referencetoamplifystorelocatore2esandboxdd610709c4authNestedStackauthNestedStackResource7AD4F428Outputsamplifystorelocatore2esandboxdd610709c4authamplifyAuthstoreLocatorAdminGroupRoleC0E3E7C0Ref": { + "Type": "String" + } + } +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x.description.txt b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x.description.txt new file mode 100644 index 00000000000..d1c87f28683 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"AmplifySandbox","createdWith":"1.22.0","stackType":"root","metadata":{}} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x.outputs.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x.outputs.json new file mode 100644 index 00000000000..5bcc678f48c --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x.outputs.json @@ -0,0 +1,102 @@ +[ + { + "OutputKey": "webClientId", + "OutputValue": "1jb6icmarkdqbom3q1caugppsp" + }, + { + "OutputKey": "socialProviders", + "OutputValue": "" + }, + { + "OutputKey": "usernameAttributes", + "OutputValue": "[\"email\"]" + }, + { + "OutputKey": "signupAttributes", + "OutputValue": "[\"email\"]" + }, + { + "OutputKey": "oauthClientId", + "OutputValue": "1jb6icmarkdqbom3q1caugppsp" + }, + { + "OutputKey": "allowUnauthenticatedIdentities", + "OutputValue": "true" + }, + { + "OutputKey": "oauthCognitoDomain", + "OutputValue": "" + }, + { + "OutputKey": "oauthScope", + "OutputValue": "[\"profile\",\"phone\",\"email\",\"openid\",\"aws.cognito.signin.user.admin\"]" + }, + { + "OutputKey": "oauthRedirectSignOut", + "OutputValue": "" + }, + { + "OutputKey": "mfaTypes", + "OutputValue": "[]" + }, + { + "OutputKey": "mfaConfiguration", + "OutputValue": "OFF" + }, + { + "OutputKey": "oauthResponseType", + "OutputValue": "code" + }, + { + "OutputKey": "customOutputs", + "OutputValue": "{\"geo\":{\"aws_region\":\"us-east-1\",\"maps\":{\"items\":{\"storeLocatorMap-gen2-x\":{\"style\":\"VectorEsriStreets\"}},\"default\":\"storeLocatorMap-gen2-x\"},\"search_indices\":{\"items\":[\"storeLocatorSearch-gen2-x\"],\"default\":\"storeLocatorSearch-gen2-x\"},\"geofence_collections\":{\"items\":[\"storeLocatorGeofence-gen2-x\"],\"default\":\"storeLocatorGeofence-gen2-x\"}},\"version\":\"1.4\"}" + }, + { + "OutputKey": "oauthRedirectSignIn", + "OutputValue": "https://example.com" + }, + { + "OutputKey": "passwordPolicyMinLength", + "OutputValue": "8" + }, + { + "OutputKey": "authRegion", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "groups", + "OutputValue": "[{\"storeLocatorAdmin\":{\"precedence\":0}}]" + }, + { + "OutputKey": "definedFunctions", + "OutputValue": "[\"storelocator41a9495f41a9495fPostConfirmation-gen2-x\"]" + }, + { + "OutputKey": "passwordlessOptions", + "OutputValue": "" + }, + { + "OutputKey": "deploymentType", + "OutputValue": "sandbox" + }, + { + "OutputKey": "passwordPolicyRequirements", + "OutputValue": "[]" + }, + { + "OutputKey": "region", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "userPoolId", + "OutputValue": "us-east-1_1dsjv7aux" + }, + { + "OutputKey": "identityPoolId", + "OutputValue": "us-east-1:81ff082e-6b3d-42b8-baa8-59f036f4bf6b" + }, + { + "OutputKey": "verificationMechanisms", + "OutputValue": "[\"email\"]" + } +] diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x.parameters.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x.parameters.json new file mode 100644 index 00000000000..9b7e2669975 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x.parameters.json @@ -0,0 +1,7 @@ +[ + { + "ParameterKey": "BootstrapVersion", + "ParameterValue": "/cdk-bootstrap/hnb659fds/version", + "ResolvedValue": "30" + } +] diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x.template.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x.template.json new file mode 100644 index 00000000000..7533e68aa63 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-e2e-sandbox-x.template.json @@ -0,0 +1,816 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"AmplifySandbox\",\"createdWith\":\"1.22.0\",\"stackType\":\"root\",\"metadata\":{}}", + "Metadata": { + "AWS::Amplify::Platform": { + "version": "1", + "stackOutputs": [ + "deploymentType", + "region" + ] + }, + "AWS::Amplify::Auth": { + "version": "1", + "stackOutputs": [ + "userPoolId", + "webClientId", + "identityPoolId", + "authRegion", + "allowUnauthenticatedIdentities", + "signupAttributes", + "usernameAttributes", + "verificationMechanisms", + "passwordPolicyMinLength", + "passwordPolicyRequirements", + "mfaConfiguration", + "mfaTypes", + "passwordlessOptions", + "socialProviders", + "oauthCognitoDomain", + "oauthScope", + "oauthRedirectSignIn", + "oauthRedirectSignOut", + "oauthResponseType", + "oauthClientId", + "groups" + ] + }, + "AWS::Amplify::Function": { + "version": "1", + "stackOutputs": [ + "definedFunctions" + ] + }, + "AWS::Amplify::Custom": { + "version": "1", + "stackOutputs": [ + "customOutputs" + ] + } + }, + "Outputs": { + "deploymentType": { + "Value": "sandbox" + }, + "region": { + "Value": { + "Ref": "AWS::Region" + } + }, + "userPoolId": { + "Value": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifystorelocatore2esandboxdd610709c4authamplifyAuthUserPool56C869F9Ref" + ] + } + }, + "webClientId": { + "Value": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifystorelocatore2esandboxdd610709c4authamplifyAuthUserPoolAppClient4E4BBC6CRef" + ] + } + }, + "identityPoolId": { + "Value": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifystorelocatore2esandboxdd610709c4authamplifyAuthIdentityPoolC9BBD71ERef" + ] + } + }, + "authRegion": { + "Value": { + "Ref": "AWS::Region" + } + }, + "allowUnauthenticatedIdentities": { + "Value": "true" + }, + "signupAttributes": { + "Value": "[\"email\"]" + }, + "usernameAttributes": { + "Value": "[\"email\"]" + }, + "verificationMechanisms": { + "Value": "[\"email\"]" + }, + "passwordPolicyMinLength": { + "Value": "8" + }, + "passwordPolicyRequirements": { + "Value": "[]" + }, + "mfaConfiguration": { + "Value": "OFF" + }, + "mfaTypes": { + "Value": "[]" + }, + "passwordlessOptions": { + "Value": "" + }, + "socialProviders": { + "Value": "" + }, + "oauthCognitoDomain": { + "Value": "" + }, + "oauthScope": { + "Value": "[\"profile\",\"phone\",\"email\",\"openid\",\"aws.cognito.signin.user.admin\"]" + }, + "oauthRedirectSignIn": { + "Value": "https://example.com" + }, + "oauthRedirectSignOut": { + "Value": "" + }, + "oauthResponseType": { + "Value": "code" + }, + "oauthClientId": { + "Value": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifystorelocatore2esandboxdd610709c4authamplifyAuthUserPoolAppClient4E4BBC6CRef" + ] + } + }, + "groups": { + "Value": "[{\"storeLocatorAdmin\":{\"precedence\":0}}]" + }, + "definedFunctions": { + "Value": { + "Fn::Join": [ + "", + [ + "[\"", + { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifystorelocatore2esandboxdd610709c4authstorelocator41a9495f41a9495fPostConfirmationgen2xlambdaF3B8D931Ref" + ] + }, + "\"]" + ] + ] + } + }, + "customOutputs": { + "Value": { + "Fn::Join": [ + "", + [ + "{\"geo\":{\"aws_region\":\"", + { + "Fn::FindInMap": [ + "MappingCopyRegionMappingc895aa8e56d14b18170efe768f699acc5767e693ac", + { + "Ref": "AWS::Region" + }, + "locationServiceRegion" + ] + }, + "\",\"maps\":{\"items\":{\"", + { + "Fn::GetAtt": [ + "geostoreLocatorMap6A22ACC1", + "Outputs.amplifystorelocatore2esandboxdd610709c4geostoreLocatorMapCustomMap89330140MapName" + ] + }, + "\":{\"style\":\"VectorEsriStreets\"}},\"default\":\"", + { + "Fn::GetAtt": [ + "geostoreLocatorMap6A22ACC1", + "Outputs.amplifystorelocatore2esandboxdd610709c4geostoreLocatorMapCustomMap89330140MapName" + ] + }, + "\"},\"search_indices\":{\"items\":[\"", + { + "Fn::GetAtt": [ + "geostoreLocatorSearch516CF59F", + "Outputs.amplifystorelocatore2esandboxdd610709c4geostoreLocatorSearchCustomPlaceIndex90EC0A16IndexName" + ] + }, + "\"],\"default\":\"", + { + "Fn::GetAtt": [ + "geostoreLocatorSearch516CF59F", + "Outputs.amplifystorelocatore2esandboxdd610709c4geostoreLocatorSearchCustomPlaceIndex90EC0A16IndexName" + ] + }, + "\"},\"geofence_collections\":{\"items\":[\"", + { + "Fn::GetAtt": [ + "geostoreLocatorGeofenceEAAC8D05", + "Outputs.amplifystorelocatore2esandboxdd610709c4geostoreLocatorGeofenceCustomGeofenceCollection14074ED5CollectionName" + ] + }, + "\"],\"default\":\"", + { + "Fn::GetAtt": [ + "geostoreLocatorGeofenceEAAC8D05", + "Outputs.amplifystorelocatore2esandboxdd610709c4geostoreLocatorGeofenceCustomGeofenceCollection14074ED5CollectionName" + ] + }, + "\"}},\"version\":\"1.4\"}" + ] + ] + } + } + }, + "Resources": { + "auth179371D7": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/f1038a9a51af99851312250d4777146c79101b4fc56cff1690808b9deb3da2fb.json" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/auth.NestedStack/auth.NestedStackResource", + "aws:asset:path": "amplifystorelocatore2esandboxdd610709c4auth01B723F3.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "geostoreLocatorMap6A22ACC1": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetoamplifystorelocatore2esandboxdd610709c4authNestedStackauthNestedStackResource7AD4F428Outputsamplifystorelocatore2esandboxdd610709c4authamplifyAuthauthenticatedUserRoleFD3A976BRef": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifystorelocatore2esandboxdd610709c4authamplifyAuthauthenticatedUserRoleFD3A976BRef" + ] + }, + "referencetoamplifystorelocatore2esandboxdd610709c4authNestedStackauthNestedStackResource7AD4F428Outputsamplifystorelocatore2esandboxdd610709c4authamplifyAuthunauthenticatedUserRoleF5FAC08ERef": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifystorelocatore2esandboxdd610709c4authamplifyAuthunauthenticatedUserRoleF5FAC08ERef" + ] + }, + "referencetoamplifystorelocatore2esandboxdd610709c4authNestedStackauthNestedStackResource7AD4F428Outputsamplifystorelocatore2esandboxdd610709c4authamplifyAuthstoreLocatorAdminGroupRoleC0E3E7C0Ref": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifystorelocatore2esandboxdd610709c4authamplifyAuthstoreLocatorAdminGroupRoleC0E3E7C0Ref" + ] + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/67bf0198ac2f713f84a1a64f4ac536d87832237897343ef9695bf1fac6ab5922.json" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/geostoreLocatorMap.NestedStack/geostoreLocatorMap.NestedStackResource", + "aws:asset:path": "amplifystorelocatore2esandboxdd610709c4geostoreLocatorMap4EA8FC9D.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "geostoreLocatorSearch516CF59F": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetoamplifystorelocatore2esandboxdd610709c4authNestedStackauthNestedStackResource7AD4F428Outputsamplifystorelocatore2esandboxdd610709c4authamplifyAuthauthenticatedUserRoleFD3A976BRef": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifystorelocatore2esandboxdd610709c4authamplifyAuthauthenticatedUserRoleFD3A976BRef" + ] + }, + "referencetoamplifystorelocatore2esandboxdd610709c4authNestedStackauthNestedStackResource7AD4F428Outputsamplifystorelocatore2esandboxdd610709c4authamplifyAuthunauthenticatedUserRoleF5FAC08ERef": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifystorelocatore2esandboxdd610709c4authamplifyAuthunauthenticatedUserRoleF5FAC08ERef" + ] + }, + "referencetoamplifystorelocatore2esandboxdd610709c4authNestedStackauthNestedStackResource7AD4F428Outputsamplifystorelocatore2esandboxdd610709c4authamplifyAuthstoreLocatorAdminGroupRoleC0E3E7C0Ref": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifystorelocatore2esandboxdd610709c4authamplifyAuthstoreLocatorAdminGroupRoleC0E3E7C0Ref" + ] + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/42eb23b26f4de95f13294956034bba8e71da1720ebb51743dd14ddbe4ac5a551.json" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/geostoreLocatorSearch.NestedStack/geostoreLocatorSearch.NestedStackResource", + "aws:asset:path": "amplifystorelocatore2esandboxdd610709c4geostoreLocatorSearch4ACC0F11.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "geostoreLocatorGeofenceEAAC8D05": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "Parameters": { + "referencetoamplifystorelocatore2esandboxdd610709c4authNestedStackauthNestedStackResource7AD4F428Outputsamplifystorelocatore2esandboxdd610709c4authamplifyAuthstoreLocatorAdminGroupRoleC0E3E7C0Ref": { + "Fn::GetAtt": [ + "auth179371D7", + "Outputs.amplifystorelocatore2esandboxdd610709c4authamplifyAuthstoreLocatorAdminGroupRoleC0E3E7C0Ref" + ] + } + }, + "Tags": [ + { + "Key": "amplify:deployment-type", + "Value": "sandbox" + }, + { + "Key": "created-by", + "Value": "amplify" + } + ], + "TemplateURL": { + "Fn::Join": [ + "", + [ + "https://s3.", + { + "Ref": "AWS::Region" + }, + ".", + { + "Ref": "AWS::URLSuffix" + }, + "/", + { + "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" + }, + "/6b262a42dbabb413ad05b1c1bc111992892d1ac30fb982e770d65cf617539e38.json" + ] + ] + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete", + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/geostoreLocatorGeofence.NestedStack/geostoreLocatorGeofence.NestedStackResource", + "aws:asset:path": "amplifystorelocatore2esandboxdd610709c4geostoreLocatorGeofence8481F777.nested.template.json", + "aws:asset:property": "TemplateURL" + } + }, + "CDKMetadata": { + "Type": "AWS::CDK::Metadata", + "Properties": { + "Analytics": "v2:deflate64:H4sIAAAAAAAA/zPSMzI10DNQTCwv1k1OydbNyUzSqw4uSUzO1nFOy/MvLSkoLQGxwEK1Onn5Kal6WcX6ZUZGeoZmegaKWcWZmbpFpXklmbmpekEQGgAGekjOVAAAAA==" + }, + "Metadata": { + "aws:cdk:path": "amplify-storelocator-e2e-sandbox-x/CDKMetadata/Default" + }, + "Condition": "CDKMetadataAvailable" + } + }, + "Conditions": { + "CDKMetadataAvailable": { + "Fn::Or": [ + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "af-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-northeast-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-south-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-3" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ap-southeast-4" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "ca-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "cn-northwest-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-central-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-north-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-south-2" + ] + } + ] + }, + { + "Fn::Or": [ + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "eu-west-3" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "il-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-central-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "me-south-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "sa-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-1" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-east-2" + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-1" + ] + } + ] + }, + { + "Fn::Equals": [ + { + "Ref": "AWS::Region" + }, + "us-west-2" + ] + } + ] + } + }, + "Mappings": { + "MappingCopyRegionMappingc895aa8e56d14b18170efe768f699acc5767e693ac": { + "us-east-1": { + "locationServiceRegion": "us-east-1" + }, + "us-east-2": { + "locationServiceRegion": "us-east-2" + }, + "us-west-2": { + "locationServiceRegion": "us-west-2" + }, + "ap-southeast-1": { + "locationServiceRegion": "ap-southeast-1" + }, + "ap-southeast-2": { + "locationServiceRegion": "ap-southeast-2" + }, + "ap-northeast-1": { + "locationServiceRegion": "ap-northeast-1" + }, + "eu-central-1": { + "locationServiceRegion": "eu-central-1" + }, + "eu-north-1": { + "locationServiceRegion": "eu-north-1" + }, + "eu-west-1": { + "locationServiceRegion": "eu-west-1" + }, + "sa-east-1": { + "locationServiceRegion": "us-east-1" + }, + "ca-central-1": { + "locationServiceRegion": "us-east-1" + }, + "us-west-1": { + "locationServiceRegion": "us-west-2" + }, + "cn-north-1": { + "locationServiceRegion": "us-west-2" + }, + "cn-northwest-1": { + "locationServiceRegion": "us-west-2" + }, + "ap-south-1": { + "locationServiceRegion": "us-west-2" + }, + "ap-northeast-3": { + "locationServiceRegion": "us-west-2" + }, + "ap-northeast-2": { + "locationServiceRegion": "us-west-2" + }, + "eu-west-2": { + "locationServiceRegion": "eu-west-1" + }, + "eu-west-3": { + "locationServiceRegion": "eu-west-1" + }, + "me-south-1": { + "locationServiceRegion": "ap-southeast-1" + } + } + }, + "Parameters": { + "BootstrapVersion": { + "Type": "AWS::SSM::Parameter::Value", + "Default": "/cdk-bootstrap/hnb659fds/version", + "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]" + } + }, + "Rules": { + "CheckBootstrapVersion": { + "Assertions": [ + { + "Assert": { + "Fn::Not": [ + { + "Fn::Contains": [ + [ + "1", + "2", + "3", + "4", + "5" + ], + { + "Ref": "BootstrapVersion" + } + ] + } + ] + }, + "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI." + } + ] + } + } +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-auth179371D7-1UWZNDSHOH9AL.description.txt b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-auth179371D7-1UWZNDSHOH9AL.description.txt deleted file mode 100644 index 72751282334..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-auth179371D7-1UWZNDSHOH9AL.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.11.2","stackType":"auth-Cognito","metadata":{}} \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-auth179371D7-1UWZNDSHOH9AL.outputs.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-auth179371D7-1UWZNDSHOH9AL.outputs.json deleted file mode 100644 index 706f54737a6..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-auth179371D7-1UWZNDSHOH9AL.outputs.json +++ /dev/null @@ -1,30 +0,0 @@ -[ - { - "OutputKey": "amplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthstoreLocatorAdminGroupRole237CDBFDRef", - "OutputValue": "amplify-storelocator-ge-amplifyAuthstoreLocatorAd-o18wwJFGuDoS" - }, - { - "OutputKey": "amplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthauthenticatedUserRoleE47B81E2Ref", - "OutputValue": "amplify-storelocator-ge-amplifyAuthauthenticatedU-9OqjoXZMGmQf" - }, - { - "OutputKey": "amplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthUserPoolE0F0BF85Ref", - "OutputValue": "us-east-1_AeAJNVPgB" - }, - { - "OutputKey": "amplifystorelocatorgen2mainbranch62d6167d4cauthstorelocator41a9495f41a9495fPostConfirmationgen2mainlambda5D769661Ref", - "OutputValue": "storelocator41a9495f41a9495fPostConfirmation-gen2-main" - }, - { - "OutputKey": "amplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthIdentityPool537188CARef", - "OutputValue": "us-east-1:cbd1c99c-bad6-4aff-8d75-a63d582714ee" - }, - { - "OutputKey": "amplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthUserPoolAppClientA8D9B6FBRef", - "OutputValue": "1t7et22n9m68741vh3pmv2nmfq" - }, - { - "OutputKey": "amplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthunauthenticatedUserRole91ACCEF4Ref", - "OutputValue": "amplify-storelocator-ge-amplifyAuthunauthenticate-lXWiZUp3FtNM" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-auth179371D7-1UWZNDSHOH9AL.parameters.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-auth179371D7-1UWZNDSHOH9AL.parameters.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-auth179371D7-1UWZNDSHOH9AL.parameters.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-auth179371D7-1UWZNDSHOH9AL.template.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-auth179371D7-1UWZNDSHOH9AL.template.json deleted file mode 100644 index cd5decd6ce0..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-auth179371D7-1UWZNDSHOH9AL.template.json +++ /dev/null @@ -1,980 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.11.2\",\"stackType\":\"auth-Cognito\",\"metadata\":{}}", - "Resources": { - "amplifyAuthUserPool4BA7F805": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AccountRecoverySetting": { - "RecoveryMechanisms": [ - { - "Name": "verified_email", - "Priority": 1 - } - ] - }, - "AdminCreateUserConfig": { - "AllowAdminCreateUserOnly": false - }, - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": "Your verification code is {####}", - "EmailVerificationSubject": "Your verification code", - "LambdaConfig": { - "PostConfirmation": { - "Fn::GetAtt": [ - "storelocator41a9495f41a9495fPostConfirmationgen2mainlambdaB4C1234A", - "Arn" - ] - } - }, - "MfaConfiguration": "OFF", - "Policies": { - "PasswordPolicy": { - "MinimumLength": 8, - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false, - "TemporaryPasswordValidityDays": 7 - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "SmsVerificationMessage": "The verification code to your new account is {####}", - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolTags": { - "amplify:app-id": "storelocator", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "amplify:friendly-name": "amplifyAuth", - "created-by": "amplify" - }, - "UsernameAttributes": [ - "email" - ], - "UsernameConfiguration": { - "CaseSensitive": false - }, - "VerificationMessageTemplate": { - "DefaultEmailOption": "CONFIRM_WITH_CODE", - "EmailMessage": "Your verification code is {####}", - "EmailSubject": "Your verification code", - "SmsMessage": "The verification code to your new account is {####}" - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-storelocator-gen2main-branch-62d6167d4c/auth/amplifyAuth/UserPool/Resource" - } - }, - "amplifyAuthUserPoolPostConfirmationCognitoE7E727CF": { - "Type": "AWS::Lambda::Permission", - "Properties": { - "Action": "lambda:InvokeFunction", - "FunctionName": { - "Fn::GetAtt": [ - "storelocator41a9495f41a9495fPostConfirmationgen2mainlambdaB4C1234A", - "Arn" - ] - }, - "Principal": "cognito-idp.amazonaws.com", - "SourceArn": { - "Fn::GetAtt": [ - "amplifyAuthUserPool4BA7F805", - "Arn" - ] - } - }, - "Metadata": { - "aws:cdk:path": "amplify-storelocator-gen2main-branch-62d6167d4c/auth/amplifyAuth/UserPool/PostConfirmationCognito" - } - }, - "amplifyAuthUserPoolNativeAppClient79534448": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlowsUserPoolClient": false, - "AuthSessionValidity": 3, - "EnablePropagateAdditionalUserContextData": false, - "EnableTokenRevocation": true, - "GenerateSecret": false, - "RefreshTokenValidity": 144000, - "SupportedIdentityProviders": [ - "COGNITO" - ], - "TokenValidityUnits": { - "RefreshToken": "minutes" - }, - "UserPoolId": { - "Ref": "amplifyAuthUserPool4BA7F805" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-storelocator-gen2main-branch-62d6167d4c/auth/amplifyAuth/UserPool/NativeAppClient/Resource" - } - }, - "amplifyAuthUserPoolAppClient2626C6F8": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "AllowedOAuthFlows": [ - "code" - ], - "AllowedOAuthFlowsUserPoolClient": true, - "AllowedOAuthScopes": [ - "profile", - "phone", - "email", - "openid", - "aws.cognito.signin.user.admin" - ], - "CallbackURLs": [ - "https://example.com" - ], - "ExplicitAuthFlows": [ - "ALLOW_CUSTOM_AUTH", - "ALLOW_USER_SRP_AUTH", - "ALLOW_REFRESH_TOKEN_AUTH" - ], - "PreventUserExistenceErrors": "ENABLED", - "SupportedIdentityProviders": [ - "COGNITO" - ], - "UserPoolId": { - "Ref": "amplifyAuthUserPool4BA7F805" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-storelocator-gen2main-branch-62d6167d4c/auth/amplifyAuth/UserPoolAppClient/Resource" - } - }, - "amplifyAuthIdentityPool3FDE84CC": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": true, - "CognitoIdentityProviders": [ - { - "ClientId": { - "Ref": "amplifyAuthUserPoolAppClient2626C6F8" - }, - "ProviderName": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - { - "Ref": "amplifyAuthUserPool4BA7F805" - } - ] - ] - } - } - ], - "IdentityPoolTags": [ - { - "Key": "amplify:app-id", - "Value": "storelocator" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "SupportedLoginProviders": {} - }, - "Metadata": { - "aws:cdk:path": "amplify-storelocator-gen2main-branch-62d6167d4c/auth/amplifyAuth/IdentityPool" - } - }, - "amplifyAuthauthenticatedUserRoleD8DA3689": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "authenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "storelocator" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-storelocator-gen2main-branch-62d6167d4c/auth/amplifyAuth/authenticatedUserRole/Resource" - } - }, - "amplifyAuthunauthenticatedUserRole2B524D9E": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "unauthenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "storelocator" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-storelocator-gen2main-branch-62d6167d4c/auth/amplifyAuth/unauthenticatedUserRole/Resource" - } - }, - "amplifyAuthIdentityPoolRoleAttachment045F17C8": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - }, - "RoleMappings": { - "UserPoolWebClientRoleMapping": { - "AmbiguousRoleResolution": "AuthenticatedRole", - "IdentityProvider": { - "Fn::Join": [ - "", - [ - "cognito-idp.", - { - "Ref": "AWS::Region" - }, - ".amazonaws.com/", - { - "Ref": "amplifyAuthUserPool4BA7F805" - }, - ":", - { - "Ref": "amplifyAuthUserPoolAppClient2626C6F8" - } - ] - ] - }, - "Type": "Token" - } - }, - "Roles": { - "unauthenticated": { - "Fn::GetAtt": [ - "amplifyAuthunauthenticatedUserRole2B524D9E", - "Arn" - ] - }, - "authenticated": { - "Fn::GetAtt": [ - "amplifyAuthauthenticatedUserRoleD8DA3689", - "Arn" - ] - } - } - }, - "DependsOn": [ - "amplifyAuthIdentityPool3FDE84CC", - "amplifyAuthUserPoolAppClient2626C6F8" - ], - "Metadata": { - "aws:cdk:path": "amplify-storelocator-gen2main-branch-62d6167d4c/auth/amplifyAuth/IdentityPoolRoleAttachment" - } - }, - "amplifyAuthstoreLocatorAdminGroupRoleDECAB489": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "authenticated" - } - }, - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "storelocator" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "amplifyAuth" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-storelocator-gen2main-branch-62d6167d4c/auth/amplifyAuth/storeLocatorAdminGroupRole/Resource" - } - }, - "amplifyAuthstoreLocatorAdminGroup85B78B77": { - "Type": "AWS::Cognito::UserPoolGroup", - "Properties": { - "GroupName": "storeLocatorAdmin", - "Precedence": 0, - "RoleArn": { - "Fn::GetAtt": [ - "amplifyAuthstoreLocatorAdminGroupRoleDECAB489", - "Arn" - ] - }, - "UserPoolId": { - "Ref": "amplifyAuthUserPool4BA7F805" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-storelocator-gen2main-branch-62d6167d4c/auth/amplifyAuth/storeLocatorAdminGroup" - } - }, - "storelocator41a9495f41a9495fPostConfirmationgen2mainlambdaServiceRole87050722": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "storelocator" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "storelocator41a9495f41a9495fPostConfirmation-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-storelocator-gen2main-branch-62d6167d4c/auth/storelocator41a9495f41a9495fPostConfirmation-gen2-main-lambda/ServiceRole/Resource" - } - }, - "storelocator41a9495f41a9495fPostConfirmationgen2mainlambdaServiceRoleDefaultPolicyD1FAD8E3": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "ssm:GetParameters", - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":ssm:", - { - "Ref": "AWS::Region" - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":parameter/amplify/resource_reference/storelocator/gen2main-branch-62d6167d4c/AMPLIFY_AUTH_USERPOOL_ID" - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "storelocator41a9495f41a9495fPostConfirmationgen2mainlambdaServiceRoleDefaultPolicyD1FAD8E3", - "Roles": [ - { - "Ref": "storelocator41a9495f41a9495fPostConfirmationgen2mainlambdaServiceRole87050722" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-storelocator-gen2main-branch-62d6167d4c/auth/storelocator41a9495f41a9495fPostConfirmation-gen2-main-lambda/ServiceRole/DefaultPolicy/Resource" - } - }, - "storelocator41a9495f41a9495fPostConfirmationgen2mainlambdaB4C1234A": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Architectures": [ - "x86_64" - ], - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "34e0fef1a944e90a1fa37e3e87c4349d006db1c0017d5da1ee07c0449531c263.zip" - }, - "Environment": { - "Variables": { - "GROUP": "storeLocatorAdmin", - "MODULES": "add-to-group", - "ENV": "gen2-main", - "REGION": "us-east-1", - "AMPLIFY_SSM_ENV_CONFIG": "{\"AMPLIFY_AUTH_USERPOOL_ID\":{\"path\":\"/amplify/resource_reference/storelocator/gen2main-branch-62d6167d4c/AMPLIFY_AUTH_USERPOOL_ID\"}}", - "AMPLIFY_AUTH_USERPOOL_ID": "" - } - }, - "EphemeralStorage": { - "Size": 512 - }, - "FunctionName": "storelocator41a9495f41a9495fPostConfirmation-gen2-main", - "Handler": "index.handler", - "MemorySize": 512, - "Role": { - "Fn::GetAtt": [ - "storelocator41a9495f41a9495fPostConfirmationgen2mainlambdaServiceRole87050722", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "storelocator" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "amplify:friendly-name", - "Value": "storelocator41a9495f41a9495fPostConfirmation-gen2-main" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 25 - }, - "DependsOn": [ - "storelocator41a9495f41a9495fPostConfirmationgen2mainlambdaServiceRole87050722" - ], - "Metadata": { - "aws:cdk:path": "amplify-storelocator-gen2main-branch-62d6167d4c/auth/storelocator41a9495f41a9495fPostConfirmation-gen2-main-lambda/Resource", - "aws:asset:path": "asset.34e0fef1a944e90a1fa37e3e87c4349d006db1c0017d5da1ee07c0449531c263", - "aws:asset:is-bundled": true, - "aws:asset:property": "Code" - } - }, - "AMPLIFYAUTHUSERPOOLIDParameterCC466CA3": { - "Type": "AWS::SSM::Parameter", - "Properties": { - "Name": "/amplify/resource_reference/storelocator/gen2main-branch-62d6167d4c/AMPLIFY_AUTH_USERPOOL_ID", - "Tags": { - "amplify:app-id": "storelocator", - "amplify:branch-name": "gen2-main", - "amplify:deployment-type": "branch", - "created-by": "amplify" - }, - "Type": "String", - "Value": { - "Ref": "amplifyAuthUserPool4BA7F805" - } - }, - "Metadata": { - "aws:cdk:path": "amplify-storelocator-gen2main-branch-62d6167d4c/auth/AMPLIFY_AUTH_USERPOOL_IDParameter/Resource" - } - }, - "userpoolAccess13FEE5419": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "cognito-idp:AdminAddUserToGroup", - "cognito-idp:GetGroup", - "cognito-idp:ListGroups", - "cognito-idp:CreateGroup", - "cognito-idp:DeleteGroup", - "cognito-idp:UpdateGroup" - ], - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "amplifyAuthUserPool4BA7F805", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "userpoolAccess13FEE5419", - "Roles": [ - { - "Ref": "storelocator41a9495f41a9495fPostConfirmationgen2mainlambdaServiceRole87050722" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-storelocator-gen2main-branch-62d6167d4c/auth/userpoolAccess1/Resource" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/12NzW7CQAyEn4X74tLAoVeI1KoXFBH1HC0bkzrZn2rtFKFV3r3aoLSop5mxPZ8LKHY72Kz0ldemHdaWzpCOyIJtLdoMSl+5SSZ0niRA+mCMVQhWlRf/6xdTWkIvj6u/yXuLXkhuS/kxn4LFvYg2n+5f/y2G8WtSVrtzqyGVF19hdMRMwee719EboeAnRdpByqA8nrUKlswtx7tbMI0PLfYMx1kWguJto5lRGPZZFG/hMJoB5aAZFbODVEsk31U6aoeCcUYvYZrU3KtFd+S7SeUv0PPTd1HA8wtsVj0TrePohRzC6a4/caZnM34BAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-storelocator-gen2main-branch-62d6167d4c/auth/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Outputs": { - "amplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthUserPoolE0F0BF85Ref": { - "Value": { - "Ref": "amplifyAuthUserPool4BA7F805" - } - }, - "amplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthUserPoolAppClientA8D9B6FBRef": { - "Value": { - "Ref": "amplifyAuthUserPoolAppClient2626C6F8" - } - }, - "amplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthIdentityPool537188CARef": { - "Value": { - "Ref": "amplifyAuthIdentityPool3FDE84CC" - } - }, - "amplifystorelocatorgen2mainbranch62d6167d4cauthstorelocator41a9495f41a9495fPostConfirmationgen2mainlambda5D769661Ref": { - "Value": { - "Ref": "storelocator41a9495f41a9495fPostConfirmationgen2mainlambdaB4C1234A" - } - }, - "amplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthstoreLocatorAdminGroupRole237CDBFDRef": { - "Value": { - "Ref": "amplifyAuthstoreLocatorAdminGroupRoleDECAB489" - } - }, - "amplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthauthenticatedUserRoleE47B81E2Ref": { - "Value": { - "Ref": "amplifyAuthauthenticatedUserRoleD8DA3689" - } - }, - "amplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthunauthenticatedUserRole91ACCEF4Ref": { - "Value": { - "Ref": "amplifyAuthunauthenticatedUserRole2B524D9E" - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-geostoreLocatorGeofenceEAAC8D05-17RAOM3PY1E9K.description.txt b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-geostoreLocatorGeofenceEAAC8D05-17RAOM3PY1E9K.description.txt deleted file mode 100644 index 1e3215c63d9..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-geostoreLocatorGeofenceEAAC8D05-17RAOM3PY1E9K.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.21.1","stackType":"custom","metadata":{}} \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-geostoreLocatorGeofenceEAAC8D05-17RAOM3PY1E9K.outputs.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-geostoreLocatorGeofenceEAAC8D05-17RAOM3PY1E9K.outputs.json deleted file mode 100644 index d0f3d98fe35..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-geostoreLocatorGeofenceEAAC8D05-17RAOM3PY1E9K.outputs.json +++ /dev/null @@ -1,18 +0,0 @@ -[ - { - "OutputKey": "amplifystorelocatorgen2mainbranch62d6167d4cgeostoreLocatorGeofenceCustomGeofenceCollectionF2914E55CollectionName", - "OutputValue": "storeLocatorGeofence-gen2-main" - }, - { - "OutputKey": "Region", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "Arn", - "OutputValue": "arn:aws:geo:us-east-1:123456789012:geofence-collection/storeLocatorGeofence-gen2-main" - }, - { - "OutputKey": "Name", - "OutputValue": "storeLocatorGeofence-gen2-main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-geostoreLocatorGeofenceEAAC8D05-17RAOM3PY1E9K.parameters.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-geostoreLocatorGeofenceEAAC8D05-17RAOM3PY1E9K.parameters.json deleted file mode 100644 index 2a93a404467..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-geostoreLocatorGeofenceEAAC8D05-17RAOM3PY1E9K.parameters.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifystorelocatorgen2mainbranch62d6167d4cauthNestedStackauthNestedStackResourceFD19A2FDOutputsamplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthstoreLocatorAdminGroupRole237CDBFDRef", - "ParameterValue": "amplify-storelocator-ge-amplifyAuthstoreLocatorAd-o18wwJFGuDoS" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-geostoreLocatorGeofenceEAAC8D05-17RAOM3PY1E9K.template.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-geostoreLocatorGeofenceEAAC8D05-17RAOM3PY1E9K.template.json deleted file mode 100644 index e38b07e1f04..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-geostoreLocatorGeofenceEAAC8D05-17RAOM3PY1E9K.template.json +++ /dev/null @@ -1,639 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.21.1\",\"stackType\":\"custom\",\"metadata\":{}}", - "Mappings": { - "storeLocatorGeofenceRegionMapping9D9BCEA8": { - "us-east-1": { - "locationServiceRegion": "us-east-1" - }, - "us-east-2": { - "locationServiceRegion": "us-east-2" - }, - "us-west-2": { - "locationServiceRegion": "us-west-2" - }, - "ap-southeast-1": { - "locationServiceRegion": "ap-southeast-1" - }, - "ap-southeast-2": { - "locationServiceRegion": "ap-southeast-2" - }, - "ap-northeast-1": { - "locationServiceRegion": "ap-northeast-1" - }, - "eu-central-1": { - "locationServiceRegion": "eu-central-1" - }, - "eu-north-1": { - "locationServiceRegion": "eu-north-1" - }, - "eu-west-1": { - "locationServiceRegion": "eu-west-1" - }, - "sa-east-1": { - "locationServiceRegion": "us-east-1" - }, - "ca-central-1": { - "locationServiceRegion": "us-east-1" - }, - "us-west-1": { - "locationServiceRegion": "us-west-2" - }, - "cn-north-1": { - "locationServiceRegion": "us-west-2" - }, - "cn-northwest-1": { - "locationServiceRegion": "us-west-2" - }, - "ap-south-1": { - "locationServiceRegion": "us-west-2" - }, - "ap-northeast-3": { - "locationServiceRegion": "us-west-2" - }, - "ap-northeast-2": { - "locationServiceRegion": "us-west-2" - }, - "eu-west-2": { - "locationServiceRegion": "eu-west-1" - }, - "eu-west-3": { - "locationServiceRegion": "eu-west-1" - }, - "me-south-1": { - "locationServiceRegion": "ap-southeast-1" - } - } - }, - "Resources": { - "storeLocatorGeofenceCustomGeofenceCollectionLambdaServiceRole9040D5514E15B340": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "storelocator" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-storelocator-gen2main-branch-62d6167d4c/geostoreLocatorGeofence/storeLocatorGeofence/CustomGeofenceCollectionLambdaServiceRole9040D551" - } - }, - "storeLocatorGeofenceCustomGeofenceCollectionLambdaServiceRoleDefaultPolicy0A18B369D308393B": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "geo:CreateGeofenceCollection", - "Effect": "Allow", - "Resource": "*" - }, - { - "Action": [ - "geo:UpdateGeofenceCollection", - "geo:DeleteGeofenceCollection" - ], - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:geo:", - { - "Fn::FindInMap": [ - "storeLocatorGeofenceRegionMapping9D9BCEA8", - { - "Ref": "AWS::Region" - }, - "locationServiceRegion" - ] - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":geofence-collection/storeLocatorGeofence-gen2-main" - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "CustomGeofenceCollectionLambdaServiceRoleDefaultPolicy0A18B369", - "Roles": [ - { - "Ref": "storeLocatorGeofenceCustomGeofenceCollectionLambdaServiceRole9040D5514E15B340" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-storelocator-gen2main-branch-62d6167d4c/geostoreLocatorGeofence/storeLocatorGeofence/CustomGeofenceCollectionLambdaServiceRoleDefaultPolicy0A18B369" - } - }, - "storeLocatorGeofenceCustomGeofenceCollectionLambdaCA3D002BC8592787": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "ZipFile": "const response = require('cfn-response');\nconst {\n LocationClient,\n CreateGeofenceCollectionCommand,\n DeleteGeofenceCollectionCommand,\n UpdateGeofenceCollectionCommand,\n} = require('@aws-sdk/client-location');\nexports.handler = async function (event, context) {\n try {\n console.log('REQUEST RECEIVED:' + JSON.stringify(event));\n const pricingPlan = 'RequestBasedUsage';\n if (event.RequestType === 'Create') {\n const params = {\n CollectionName: event.ResourceProperties.collectionName,\n PricingPlan: pricingPlan,\n };\n const locationClient = new LocationClient({ region: event.ResourceProperties.region });\n const res = await locationClient.send(new CreateGeofenceCollectionCommand(params));\n console.log('create resource response data' + JSON.stringify(res));\n if (res.CollectionName && res.CollectionArn) {\n await response.send(event, context, response.SUCCESS, res, params.CollectionName);\n } else {\n await response.send(event, context, response.FAILED, res, params.CollectionName);\n }\n }\n if (event.RequestType === 'Update') {\n const params = {\n CollectionName: event.ResourceProperties.collectionName,\n PricingPlan: pricingPlan,\n };\n const locationClient = new LocationClient({ region: event.ResourceProperties.region });\n const res = await locationClient.send(new UpdateGeofenceCollectionCommand(params));\n console.log('update resource response data' + JSON.stringify(res));\n if (res.CollectionName) {\n await response.send(event, context, response.SUCCESS, res, params.CollectionName);\n } else {\n await response.send(event, context, response.FAILED, res, params.CollectionName);\n }\n }\n if (event.RequestType === 'Delete') {\n const params = {\n CollectionName: event.ResourceProperties.collectionName,\n };\n const locationClient = new LocationClient({ region: event.ResourceProperties.region });\n const res = await locationClient.send(new DeleteGeofenceCollectionCommand(params));\n console.log('delete resource response data' + JSON.stringify(res));\n await response.send(event, context, response.SUCCESS, res, params.CollectionName);\n }\n } catch (err) {\n console.log(err.stack);\n const res = { Error: err };\n await response.send(event, context, response.FAILED, res, event.ResourceProperties.collectionName);\n throw err;\n }\n};\n" - }, - "Handler": "index.handler", - "Role": { - "Fn::GetAtt": [ - "storeLocatorGeofenceCustomGeofenceCollectionLambdaServiceRole9040D5514E15B340", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "storelocator" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 300 - }, - "DependsOn": [ - "storeLocatorGeofenceCustomGeofenceCollectionLambdaServiceRole9040D5514E15B340", - "storeLocatorGeofenceCustomGeofenceCollectionLambdaServiceRoleDefaultPolicy0A18B369D308393B" - ], - "Metadata": { - "aws:cdk:path": "amplify-storelocator-gen2main-branch-62d6167d4c/geostoreLocatorGeofence/storeLocatorGeofence/CustomGeofenceCollectionLambdaCA3D002B" - } - }, - "storeLocatorGeofenceCustomGeofenceCollectionB76AA26D": { - "Type": "Custom::LambdaCallout", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "storeLocatorGeofenceCustomGeofenceCollectionLambdaCA3D002BC8592787", - "Arn" - ] - }, - "collectionName": "storeLocatorGeofence-gen2-main", - "region": { - "Fn::FindInMap": [ - "storeLocatorGeofenceRegionMapping9D9BCEA8", - { - "Ref": "AWS::Region" - }, - "locationServiceRegion" - ] - }, - "env": "gen2-main" - }, - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-storelocator-gen2main-branch-62d6167d4c/geostoreLocatorGeofence/storeLocatorGeofence/CustomGeofenceCollection" - } - }, - "storeLocatorGeofencestoreLocatorAdminGeofenceCollectionPolicy34A5CD0F": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "geo:GetGeofence", - "geo:PutGeofence", - "geo:BatchPutGeofence", - "geo:BatchDeleteGeofence", - "geo:ListGeofences" - ], - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:geo:", - { - "Fn::FindInMap": [ - "storeLocatorGeofenceRegionMapping9D9BCEA8", - { - "Ref": "AWS::Region" - }, - "locationServiceRegion" - ] - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":geofence-collection/", - { - "Fn::GetAtt": [ - "storeLocatorGeofenceCustomGeofenceCollectionB76AA26D", - "CollectionName" - ] - } - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "storeLocatorAdminstoreLocatorGeofence-gen2-mainPolicy", - "Roles": [ - { - "Ref": "referencetoamplifystorelocatorgen2mainbranch62d6167d4cauthNestedStackauthNestedStackResourceFD19A2FDOutputsamplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthstoreLocatorAdminGroupRole237CDBFDRef" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-storelocator-gen2main-branch-62d6167d4c/geostoreLocatorGeofence/storeLocatorGeofence/storeLocatorAdminGeofenceCollectionPolicy" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXLTQ6DIBBA4bO4x6klLron6a4/sQdoRsBmFAYiUNMY797Yrt7iy5Mg2xaaCpdUazPVjnpYrzZlax4Z9STUwBeMkfglcEnPldDDqgbugrM73oMj/dmEQ98bBDXwubDOFHjbWZWUg+9sCmXWv+FWcix5ExyMhTEd3lLC8QRNNSaiei6cyVvo/v0C08sIKp8AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-storelocator-gen2main-branch-62d6167d4c/geostoreLocatorGeofence/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Outputs": { - "Name": { - "Value": { - "Fn::GetAtt": [ - "storeLocatorGeofenceCustomGeofenceCollectionB76AA26D", - "CollectionName" - ] - } - }, - "Region": { - "Value": { - "Fn::FindInMap": [ - "storeLocatorGeofenceRegionMapping9D9BCEA8", - { - "Ref": "AWS::Region" - }, - "locationServiceRegion" - ] - } - }, - "Arn": { - "Value": { - "Fn::Join": [ - "", - [ - "arn:aws:geo:", - { - "Fn::FindInMap": [ - "storeLocatorGeofenceRegionMapping9D9BCEA8", - { - "Ref": "AWS::Region" - }, - "locationServiceRegion" - ] - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":geofence-collection/", - { - "Fn::GetAtt": [ - "storeLocatorGeofenceCustomGeofenceCollectionB76AA26D", - "CollectionName" - ] - } - ] - ] - } - }, - "amplifystorelocatorgen2mainbranch62d6167d4cgeostoreLocatorGeofenceCustomGeofenceCollectionF2914E55CollectionName": { - "Value": { - "Fn::GetAtt": [ - "storeLocatorGeofenceCustomGeofenceCollectionB76AA26D", - "CollectionName" - ] - } - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "referencetoamplifystorelocatorgen2mainbranch62d6167d4cauthNestedStackauthNestedStackResourceFD19A2FDOutputsamplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthstoreLocatorAdminGroupRole237CDBFDRef": { - "Type": "String" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-geostoreLocatorMap6A22ACC1-8ERJEQ7R4WPN.description.txt b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-geostoreLocatorMap6A22ACC1-8ERJEQ7R4WPN.description.txt deleted file mode 100644 index 1e3215c63d9..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-geostoreLocatorMap6A22ACC1-8ERJEQ7R4WPN.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.21.1","stackType":"custom","metadata":{}} \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-geostoreLocatorMap6A22ACC1-8ERJEQ7R4WPN.outputs.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-geostoreLocatorMap6A22ACC1-8ERJEQ7R4WPN.outputs.json deleted file mode 100644 index a8fdcfffbc4..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-geostoreLocatorMap6A22ACC1-8ERJEQ7R4WPN.outputs.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "OutputKey": "Style", - "OutputValue": "VectorEsriStreets" - }, - { - "OutputKey": "Region", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "amplifystorelocatorgen2mainbranch62d6167d4cgeostoreLocatorMapCustomMap41EB8E23MapName", - "OutputValue": "storeLocatorMap-gen2-main" - }, - { - "OutputKey": "Arn", - "OutputValue": "arn:aws:geo:us-east-1:123456789012:map/storeLocatorMap-gen2-main" - }, - { - "OutputKey": "Name", - "OutputValue": "storeLocatorMap-gen2-main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-geostoreLocatorMap6A22ACC1-8ERJEQ7R4WPN.parameters.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-geostoreLocatorMap6A22ACC1-8ERJEQ7R4WPN.parameters.json deleted file mode 100644 index 8e6d6f64984..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-geostoreLocatorMap6A22ACC1-8ERJEQ7R4WPN.parameters.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifystorelocatorgen2mainbranch62d6167d4cauthNestedStackauthNestedStackResourceFD19A2FDOutputsamplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthunauthenticatedUserRole91ACCEF4Ref", - "ParameterValue": "amplify-storelocator-ge-amplifyAuthunauthenticate-lXWiZUp3FtNM" - }, - { - "ParameterKey": "referencetoamplifystorelocatorgen2mainbranch62d6167d4cauthNestedStackauthNestedStackResourceFD19A2FDOutputsamplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthauthenticatedUserRoleE47B81E2Ref", - "ParameterValue": "amplify-storelocator-ge-amplifyAuthauthenticatedU-9OqjoXZMGmQf" - }, - { - "ParameterKey": "referencetoamplifystorelocatorgen2mainbranch62d6167d4cauthNestedStackauthNestedStackResourceFD19A2FDOutputsamplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthstoreLocatorAdminGroupRole237CDBFDRef", - "ParameterValue": "amplify-storelocator-ge-amplifyAuthstoreLocatorAd-o18wwJFGuDoS" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-geostoreLocatorMap6A22ACC1-8ERJEQ7R4WPN.template.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-geostoreLocatorMap6A22ACC1-8ERJEQ7R4WPN.template.json deleted file mode 100644 index ebf1268cc9a..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-geostoreLocatorMap6A22ACC1-8ERJEQ7R4WPN.template.json +++ /dev/null @@ -1,610 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.21.1\",\"stackType\":\"custom\",\"metadata\":{}}", - "Mappings": { - "storeLocatorMapRegionMapping7E708396": { - "us-east-1": { - "locationServiceRegion": "us-east-1" - }, - "us-east-2": { - "locationServiceRegion": "us-east-2" - }, - "us-west-2": { - "locationServiceRegion": "us-west-2" - }, - "ap-southeast-1": { - "locationServiceRegion": "ap-southeast-1" - }, - "ap-southeast-2": { - "locationServiceRegion": "ap-southeast-2" - }, - "ap-northeast-1": { - "locationServiceRegion": "ap-northeast-1" - }, - "eu-central-1": { - "locationServiceRegion": "eu-central-1" - }, - "eu-north-1": { - "locationServiceRegion": "eu-north-1" - }, - "eu-west-1": { - "locationServiceRegion": "eu-west-1" - }, - "sa-east-1": { - "locationServiceRegion": "us-east-1" - }, - "ca-central-1": { - "locationServiceRegion": "us-east-1" - }, - "us-west-1": { - "locationServiceRegion": "us-west-2" - }, - "cn-north-1": { - "locationServiceRegion": "us-west-2" - }, - "cn-northwest-1": { - "locationServiceRegion": "us-west-2" - }, - "ap-south-1": { - "locationServiceRegion": "us-west-2" - }, - "ap-northeast-3": { - "locationServiceRegion": "us-west-2" - }, - "ap-northeast-2": { - "locationServiceRegion": "us-west-2" - }, - "eu-west-2": { - "locationServiceRegion": "eu-west-1" - }, - "eu-west-3": { - "locationServiceRegion": "eu-west-1" - }, - "me-south-1": { - "locationServiceRegion": "ap-southeast-1" - } - } - }, - "Resources": { - "storeLocatorMapCustomMapLambdaServiceRole4EE7732C2405A734": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "storelocator" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-storelocator-gen2main-branch-62d6167d4c/geostoreLocatorMap/storeLocatorMap/CustomMapLambdaServiceRole4EE7732C" - } - }, - "storeLocatorMapCustomMapLambdaServiceRoleDefaultPolicy983FDD4ECEADC647": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "geo:CreateMap", - "Effect": "Allow", - "Resource": "*" - }, - { - "Action": [ - "geo:UpdateMap", - "geo:DeleteMap" - ], - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:geo:", - { - "Fn::FindInMap": [ - "storeLocatorMapRegionMapping7E708396", - { - "Ref": "AWS::Region" - }, - "locationServiceRegion" - ] - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":map/storeLocatorMap-gen2-main" - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "CustomMapLambdaServiceRoleDefaultPolicy983FDD4E", - "Roles": [ - { - "Ref": "storeLocatorMapCustomMapLambdaServiceRole4EE7732C2405A734" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-storelocator-gen2main-branch-62d6167d4c/geostoreLocatorMap/storeLocatorMap/CustomMapLambdaServiceRoleDefaultPolicy983FDD4E" - } - }, - "storeLocatorMapCustomMapLambda51D5D43019B4B7E6": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "ZipFile": "const response = require('cfn-response');\nconst { LocationClient, CreateMapCommand, DeleteMapCommand, UpdateMapCommand } = require('@aws-sdk/client-location');\nexports.handler = async function (event, context) {\n try {\n console.log('REQUEST RECEIVED:' + JSON.stringify(event));\n const pricingPlan = 'RequestBasedUsage';\n if (event.RequestType === 'Create') {\n let params = {\n MapName: event.ResourceProperties.mapName,\n Configuration: {\n Style: event.ResourceProperties.mapStyle,\n },\n PricingPlan: pricingPlan,\n };\n const locationClient = new LocationClient({ region: event.ResourceProperties.region });\n const res = await locationClient.send(new CreateMapCommand(params));\n console.log('create resource response data' + JSON.stringify(res));\n if (res.MapName && res.MapArn) {\n await response.send(event, context, response.SUCCESS, res, params.MapName);\n } else {\n await response.send(event, context, response.FAILED, res, params.MapName);\n }\n }\n if (event.RequestType === 'Update') {\n let params = {\n MapName: event.ResourceProperties.mapName,\n PricingPlan: pricingPlan,\n };\n const locationClient = new LocationClient({ region: event.ResourceProperties.region });\n const res = await locationClient.send(new UpdateMapCommand(params));\n console.log('update resource response data' + JSON.stringify(res));\n if (res.MapName && res.MapArn) {\n await response.send(event, context, response.SUCCESS, res, params.MapName);\n } else {\n await response.send(event, context, response.FAILED, res, params.MapName);\n }\n }\n if (event.RequestType === 'Delete') {\n let params = {\n MapName: event.ResourceProperties.mapName,\n };\n const locationClient = new LocationClient({ region: event.ResourceProperties.region });\n const res = await locationClient.send(new DeleteMapCommand(params));\n console.log('delete resource response data' + JSON.stringify(res));\n await response.send(event, context, response.SUCCESS, res, params.MapName);\n }\n } catch (err) {\n console.log(err.stack);\n const res = { Error: err };\n await response.send(event, context, response.FAILED, res, event.ResourceProperties.mapName);\n throw err;\n }\n};\n" - }, - "Handler": "index.handler", - "Role": { - "Fn::GetAtt": [ - "storeLocatorMapCustomMapLambdaServiceRole4EE7732C2405A734", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "storelocator" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 300 - }, - "DependsOn": [ - "storeLocatorMapCustomMapLambdaServiceRole4EE7732C2405A734", - "storeLocatorMapCustomMapLambdaServiceRoleDefaultPolicy983FDD4ECEADC647" - ], - "Metadata": { - "aws:cdk:path": "amplify-storelocator-gen2main-branch-62d6167d4c/geostoreLocatorMap/storeLocatorMap/CustomMapLambda51D5D430" - } - }, - "storeLocatorMapCustomMap3D69EC7C": { - "Type": "Custom::LambdaCallout", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "storeLocatorMapCustomMapLambda51D5D43019B4B7E6", - "Arn" - ] - }, - "mapName": "storeLocatorMap-gen2-main", - "mapStyle": "VectorEsriStreets", - "region": { - "Fn::FindInMap": [ - "storeLocatorMapRegionMapping7E708396", - { - "Ref": "AWS::Region" - }, - "locationServiceRegion" - ] - }, - "env": "gen2-main" - }, - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-storelocator-gen2main-branch-62d6167d4c/geostoreLocatorMap/storeLocatorMap/CustomMap" - } - }, - "storeLocatorMapMapPolicy388540F3": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "geo:GetMapStyleDescriptor", - "geo:GetMapGlyphs", - "geo:GetMapSprites", - "geo:GetMapTile" - ], - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "storeLocatorMapCustomMap3D69EC7C", - "MapArn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "storeLocatorMap-gen2-mainPolicy", - "Roles": [ - { - "Ref": "referencetoamplifystorelocatorgen2mainbranch62d6167d4cauthNestedStackauthNestedStackResourceFD19A2FDOutputsamplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthauthenticatedUserRoleE47B81E2Ref" - }, - { - "Ref": "referencetoamplifystorelocatorgen2mainbranch62d6167d4cauthNestedStackauthNestedStackResourceFD19A2FDOutputsamplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthunauthenticatedUserRole91ACCEF4Ref" - }, - { - "Ref": "referencetoamplifystorelocatorgen2mainbranch62d6167d4cauthNestedStackauthNestedStackResourceFD19A2FDOutputsamplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthstoreLocatorAdminGroupRole237CDBFDRef" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-storelocator-gen2main-branch-62d6167d4c/geostoreLocatorMap/storeLocatorMap/MapPolicy" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXLTQ6DIBBA4bO4x6klLron6a4/sQdoRsBmFAYiUNMY797Yrt7iy5Mg2xaaCpdUazPVjnpYrzZlax4Z9STUwBeMkfglcEnPldDDqgbugrM73oMj/dmEQ98bBDXwubDOFHjbWZWUg+9sCmXWv+FWcix5ExyMhTEd3lLC8QRNNSaiei6cyVvo/v0C08sIKp8AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-storelocator-gen2main-branch-62d6167d4c/geostoreLocatorMap/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Outputs": { - "Name": { - "Value": { - "Fn::GetAtt": [ - "storeLocatorMapCustomMap3D69EC7C", - "MapName" - ] - } - }, - "Style": { - "Value": "VectorEsriStreets" - }, - "Region": { - "Value": { - "Fn::FindInMap": [ - "storeLocatorMapRegionMapping7E708396", - { - "Ref": "AWS::Region" - }, - "locationServiceRegion" - ] - } - }, - "Arn": { - "Value": { - "Fn::GetAtt": [ - "storeLocatorMapCustomMap3D69EC7C", - "MapArn" - ] - } - }, - "amplifystorelocatorgen2mainbranch62d6167d4cgeostoreLocatorMapCustomMap41EB8E23MapName": { - "Value": { - "Fn::GetAtt": [ - "storeLocatorMapCustomMap3D69EC7C", - "MapName" - ] - } - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "referencetoamplifystorelocatorgen2mainbranch62d6167d4cauthNestedStackauthNestedStackResourceFD19A2FDOutputsamplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthauthenticatedUserRoleE47B81E2Ref": { - "Type": "String" - }, - "referencetoamplifystorelocatorgen2mainbranch62d6167d4cauthNestedStackauthNestedStackResourceFD19A2FDOutputsamplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthunauthenticatedUserRole91ACCEF4Ref": { - "Type": "String" - }, - "referencetoamplifystorelocatorgen2mainbranch62d6167d4cauthNestedStackauthNestedStackResourceFD19A2FDOutputsamplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthstoreLocatorAdminGroupRole237CDBFDRef": { - "Type": "String" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-geostoreLocatorSearch516CF59F-10BDIX52ZDQV2.description.txt b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-geostoreLocatorSearch516CF59F-10BDIX52ZDQV2.description.txt deleted file mode 100644 index 1e3215c63d9..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-geostoreLocatorSearch516CF59F-10BDIX52ZDQV2.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.21.1","stackType":"custom","metadata":{}} \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-geostoreLocatorSearch516CF59F-10BDIX52ZDQV2.outputs.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-geostoreLocatorSearch516CF59F-10BDIX52ZDQV2.outputs.json deleted file mode 100644 index 03e129e8fd3..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-geostoreLocatorSearch516CF59F-10BDIX52ZDQV2.outputs.json +++ /dev/null @@ -1,18 +0,0 @@ -[ - { - "OutputKey": "Region", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "Arn", - "OutputValue": "arn:aws:geo:us-east-1:123456789012:place-index/storeLocatorSearch-gen2-main" - }, - { - "OutputKey": "amplifystorelocatorgen2mainbranch62d6167d4cgeostoreLocatorSearchCustomPlaceIndexAEDF2721IndexName", - "OutputValue": "storeLocatorSearch-gen2-main" - }, - { - "OutputKey": "Name", - "OutputValue": "storeLocatorSearch-gen2-main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-geostoreLocatorSearch516CF59F-10BDIX52ZDQV2.parameters.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-geostoreLocatorSearch516CF59F-10BDIX52ZDQV2.parameters.json deleted file mode 100644 index 8e6d6f64984..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-geostoreLocatorSearch516CF59F-10BDIX52ZDQV2.parameters.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "ParameterKey": "referencetoamplifystorelocatorgen2mainbranch62d6167d4cauthNestedStackauthNestedStackResourceFD19A2FDOutputsamplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthunauthenticatedUserRole91ACCEF4Ref", - "ParameterValue": "amplify-storelocator-ge-amplifyAuthunauthenticate-lXWiZUp3FtNM" - }, - { - "ParameterKey": "referencetoamplifystorelocatorgen2mainbranch62d6167d4cauthNestedStackauthNestedStackResourceFD19A2FDOutputsamplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthauthenticatedUserRoleE47B81E2Ref", - "ParameterValue": "amplify-storelocator-ge-amplifyAuthauthenticatedU-9OqjoXZMGmQf" - }, - { - "ParameterKey": "referencetoamplifystorelocatorgen2mainbranch62d6167d4cauthNestedStackauthNestedStackResourceFD19A2FDOutputsamplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthstoreLocatorAdminGroupRole237CDBFDRef", - "ParameterValue": "amplify-storelocator-ge-amplifyAuthstoreLocatorAd-o18wwJFGuDoS" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-geostoreLocatorSearch516CF59F-10BDIX52ZDQV2.template.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-geostoreLocatorSearch516CF59F-10BDIX52ZDQV2.template.json deleted file mode 100644 index 60985dad427..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c-geostoreLocatorSearch516CF59F-10BDIX52ZDQV2.template.json +++ /dev/null @@ -1,608 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.21.1\",\"stackType\":\"custom\",\"metadata\":{}}", - "Mappings": { - "storeLocatorSearchRegionMappingA7DF4548": { - "us-east-1": { - "locationServiceRegion": "us-east-1" - }, - "us-east-2": { - "locationServiceRegion": "us-east-2" - }, - "us-west-2": { - "locationServiceRegion": "us-west-2" - }, - "ap-southeast-1": { - "locationServiceRegion": "ap-southeast-1" - }, - "ap-southeast-2": { - "locationServiceRegion": "ap-southeast-2" - }, - "ap-northeast-1": { - "locationServiceRegion": "ap-northeast-1" - }, - "eu-central-1": { - "locationServiceRegion": "eu-central-1" - }, - "eu-north-1": { - "locationServiceRegion": "eu-north-1" - }, - "eu-west-1": { - "locationServiceRegion": "eu-west-1" - }, - "sa-east-1": { - "locationServiceRegion": "us-east-1" - }, - "ca-central-1": { - "locationServiceRegion": "us-east-1" - }, - "us-west-1": { - "locationServiceRegion": "us-west-2" - }, - "cn-north-1": { - "locationServiceRegion": "us-west-2" - }, - "cn-northwest-1": { - "locationServiceRegion": "us-west-2" - }, - "ap-south-1": { - "locationServiceRegion": "us-west-2" - }, - "ap-northeast-3": { - "locationServiceRegion": "us-west-2" - }, - "ap-northeast-2": { - "locationServiceRegion": "us-west-2" - }, - "eu-west-2": { - "locationServiceRegion": "eu-west-1" - }, - "eu-west-3": { - "locationServiceRegion": "eu-west-1" - }, - "me-south-1": { - "locationServiceRegion": "ap-southeast-1" - } - } - }, - "Resources": { - "storeLocatorSearchCustomPlaceIndexLambdaServiceRoleFD2F3C9D9AAF5F9F": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "storelocator" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-storelocator-gen2main-branch-62d6167d4c/geostoreLocatorSearch/storeLocatorSearch/CustomPlaceIndexLambdaServiceRoleFD2F3C9D" - } - }, - "storeLocatorSearchCustomPlaceIndexLambdaServiceRoleDefaultPolicy818068B11998631C": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "geo:CreatePlaceIndex", - "Effect": "Allow", - "Resource": "*" - }, - { - "Action": [ - "geo:UpdatePlaceIndex", - "geo:DeletePlaceIndex" - ], - "Effect": "Allow", - "Resource": { - "Fn::Join": [ - "", - [ - "arn:aws:geo:", - { - "Fn::FindInMap": [ - "storeLocatorSearchRegionMappingA7DF4548", - { - "Ref": "AWS::Region" - }, - "locationServiceRegion" - ] - }, - ":", - { - "Ref": "AWS::AccountId" - }, - ":place-index/storeLocatorSearch-gen2-main" - ] - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "CustomPlaceIndexLambdaServiceRoleDefaultPolicy818068B1", - "Roles": [ - { - "Ref": "storeLocatorSearchCustomPlaceIndexLambdaServiceRoleFD2F3C9D9AAF5F9F" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-storelocator-gen2main-branch-62d6167d4c/geostoreLocatorSearch/storeLocatorSearch/CustomPlaceIndexLambdaServiceRoleDefaultPolicy818068B1" - } - }, - "storeLocatorSearchCustomPlaceIndexLambda79813BB9A2F450FE": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "ZipFile": "const response = require('cfn-response');\nconst { LocationClient, CreatePlaceIndexCommand, DeletePlaceIndexCommand, UpdatePlaceIndexCommand } = require('@aws-sdk/client-location');\nexports.handler = async function (event, context) {\n try {\n console.log('REQUEST RECEIVED:' + JSON.stringify(event));\n const pricingPlan = 'RequestBasedUsage';\n if (event.RequestType === 'Create') {\n const params = {\n IndexName: event.ResourceProperties.indexName,\n DataSource: event.ResourceProperties.dataSource,\n DataSourceConfiguration: {\n IntendedUse: event.ResourceProperties.dataSourceIntendedUse,\n },\n PricingPlan: pricingPlan,\n };\n const locationClient = new LocationClient({ region: event.ResourceProperties.region });\n const res = await locationClient.send(new CreatePlaceIndexCommand(params));\n console.log('create resource response data' + JSON.stringify(res));\n if (res.IndexName && res.IndexArn) {\n event.PhysicalResourceId = res.IndexName;\n await response.send(event, context, response.SUCCESS, res, params.IndexName);\n } else {\n await response.send(event, context, response.FAILED, res, params.IndexName);\n }\n }\n if (event.RequestType === 'Update') {\n const params = {\n IndexName: event.ResourceProperties.indexName,\n DataSourceConfiguration: {\n IntendedUse: event.ResourceProperties.dataSourceIntendedUse,\n },\n PricingPlan: pricingPlan,\n };\n const locationClient = new LocationClient({ region: event.ResourceProperties.region });\n const res = await locationClient.send(new UpdatePlaceIndexCommand(params));\n console.log('update resource response data' + JSON.stringify(res));\n if (res.IndexName && res.IndexArn) {\n event.PhysicalResourceId = res.IndexName;\n await response.send(event, context, response.SUCCESS, res, params.IndexName);\n } else {\n await response.send(event, context, response.FAILED, res, params.IndexName);\n }\n }\n if (event.RequestType === 'Delete') {\n const params = {\n IndexName: event.ResourceProperties.indexName,\n };\n const locationClient = new LocationClient({ region: event.ResourceProperties.region });\n const res = await locationClient.send(new DeletePlaceIndexCommand(params));\n event.PhysicalResourceId = event.ResourceProperties.indexName;\n console.log('delete resource response data' + JSON.stringify(res));\n await response.send(event, context, response.SUCCESS, res, params.IndexName);\n }\n } catch (err) {\n console.log(err.stack);\n const res = { Error: err };\n await response.send(event, context, response.FAILED, res, event.ResourceProperties.indexName);\n throw err;\n }\n};\n" - }, - "Handler": "index.handler", - "Role": { - "Fn::GetAtt": [ - "storeLocatorSearchCustomPlaceIndexLambdaServiceRoleFD2F3C9D9AAF5F9F", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "storelocator" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 300 - }, - "DependsOn": [ - "storeLocatorSearchCustomPlaceIndexLambdaServiceRoleDefaultPolicy818068B11998631C", - "storeLocatorSearchCustomPlaceIndexLambdaServiceRoleFD2F3C9D9AAF5F9F" - ], - "Metadata": { - "aws:cdk:path": "amplify-storelocator-gen2main-branch-62d6167d4c/geostoreLocatorSearch/storeLocatorSearch/CustomPlaceIndexLambda79813BB9" - } - }, - "storeLocatorSearchCustomPlaceIndexF0192882": { - "Type": "Custom::LambdaCallout", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "storeLocatorSearchCustomPlaceIndexLambda79813BB9A2F450FE", - "Arn" - ] - }, - "indexName": "storeLocatorSearch-gen2-main", - "dataSource": "Here", - "dataSourceIntendedUse": "SingleUse", - "region": { - "Fn::FindInMap": [ - "storeLocatorSearchRegionMappingA7DF4548", - { - "Ref": "AWS::Region" - }, - "locationServiceRegion" - ] - }, - "env": "gen2-main" - }, - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-storelocator-gen2main-branch-62d6167d4c/geostoreLocatorSearch/storeLocatorSearch/CustomPlaceIndex" - } - }, - "storeLocatorSearchPlaceIndexPolicy9E8EFC93": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "geo:SearchPlaceIndexForPosition", - "geo:SearchPlaceIndexForText", - "geo:SearchPlaceIndexForSuggestions", - "geo:GetPlace" - ], - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "storeLocatorSearchCustomPlaceIndexF0192882", - "IndexArn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "storeLocatorSearch-gen2-mainPolicy", - "Roles": [ - { - "Ref": "referencetoamplifystorelocatorgen2mainbranch62d6167d4cauthNestedStackauthNestedStackResourceFD19A2FDOutputsamplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthauthenticatedUserRoleE47B81E2Ref" - }, - { - "Ref": "referencetoamplifystorelocatorgen2mainbranch62d6167d4cauthNestedStackauthNestedStackResourceFD19A2FDOutputsamplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthunauthenticatedUserRole91ACCEF4Ref" - }, - { - "Ref": "referencetoamplifystorelocatorgen2mainbranch62d6167d4cauthNestedStackauthNestedStackResourceFD19A2FDOutputsamplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthstoreLocatorAdminGroupRole237CDBFDRef" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-storelocator-gen2main-branch-62d6167d4c/geostoreLocatorSearch/storeLocatorSearch/PlaceIndexPolicy" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/yXLTQ6DIBBA4bO4x6klLron6a4/sQdoRsBmFAYiUNMY797Yrt7iy5Mg2xaaCpdUazPVjnpYrzZlax4Z9STUwBeMkfglcEnPldDDqgbugrM73oMj/dmEQ98bBDXwubDOFHjbWZWUg+9sCmXWv+FWcix5ExyMhTEd3lLC8QRNNSaiei6cyVvo/v0C08sIKp8AAAA=" - }, - "Metadata": { - "aws:cdk:path": "amplify-storelocator-gen2main-branch-62d6167d4c/geostoreLocatorSearch/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Outputs": { - "Name": { - "Value": { - "Fn::GetAtt": [ - "storeLocatorSearchCustomPlaceIndexF0192882", - "IndexName" - ] - } - }, - "Region": { - "Value": { - "Fn::FindInMap": [ - "storeLocatorSearchRegionMappingA7DF4548", - { - "Ref": "AWS::Region" - }, - "locationServiceRegion" - ] - } - }, - "Arn": { - "Value": { - "Fn::GetAtt": [ - "storeLocatorSearchCustomPlaceIndexF0192882", - "IndexArn" - ] - } - }, - "amplifystorelocatorgen2mainbranch62d6167d4cgeostoreLocatorSearchCustomPlaceIndexAEDF2721IndexName": { - "Value": { - "Fn::GetAtt": [ - "storeLocatorSearchCustomPlaceIndexF0192882", - "IndexName" - ] - } - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Parameters": { - "referencetoamplifystorelocatorgen2mainbranch62d6167d4cauthNestedStackauthNestedStackResourceFD19A2FDOutputsamplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthauthenticatedUserRoleE47B81E2Ref": { - "Type": "String" - }, - "referencetoamplifystorelocatorgen2mainbranch62d6167d4cauthNestedStackauthNestedStackResourceFD19A2FDOutputsamplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthunauthenticatedUserRole91ACCEF4Ref": { - "Type": "String" - }, - "referencetoamplifystorelocatorgen2mainbranch62d6167d4cauthNestedStackauthNestedStackResourceFD19A2FDOutputsamplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthstoreLocatorAdminGroupRole237CDBFDRef": { - "Type": "String" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c.description.txt b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c.description.txt deleted file mode 100644 index afc6ec23957..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Linux","createdBy":"AmplifyPipelineDeploy","createdWith":"1.21.1","stackType":"root","metadata":{}} \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c.outputs.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c.outputs.json deleted file mode 100644 index d6f6c8d2aff..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c.outputs.json +++ /dev/null @@ -1,102 +0,0 @@ -[ - { - "OutputKey": "webClientId", - "OutputValue": "1t7et22n9m68741vh3pmv2nmfq" - }, - { - "OutputKey": "socialProviders", - "OutputValue": "" - }, - { - "OutputKey": "usernameAttributes", - "OutputValue": "[\"email\"]" - }, - { - "OutputKey": "signupAttributes", - "OutputValue": "[\"email\"]" - }, - { - "OutputKey": "oauthClientId", - "OutputValue": "1t7et22n9m68741vh3pmv2nmfq" - }, - { - "OutputKey": "allowUnauthenticatedIdentities", - "OutputValue": "true" - }, - { - "OutputKey": "oauthCognitoDomain", - "OutputValue": "" - }, - { - "OutputKey": "oauthScope", - "OutputValue": "[\"profile\",\"phone\",\"email\",\"openid\",\"aws.cognito.signin.user.admin\"]" - }, - { - "OutputKey": "oauthRedirectSignOut", - "OutputValue": "" - }, - { - "OutputKey": "mfaTypes", - "OutputValue": "[]" - }, - { - "OutputKey": "mfaConfiguration", - "OutputValue": "OFF" - }, - { - "OutputKey": "oauthResponseType", - "OutputValue": "code" - }, - { - "OutputKey": "customOutputs", - "OutputValue": "{\"geo\":{\"aws_region\":\"us-east-1\",\"maps\":{\"items\":{\"storeLocatorMap-gen2-main\":{\"style\":\"VectorEsriStreets\"}},\"default\":\"storeLocatorMap-gen2-main\"},\"search_indices\":{\"items\":[\"storeLocatorSearch-gen2-main\"],\"default\":\"storeLocatorSearch-gen2-main\"},\"geofence_collections\":{\"items\":[\"storeLocatorGeofence-gen2-main\"],\"default\":\"storeLocatorGeofence-gen2-main\"}},\"version\":\"1.4\"}" - }, - { - "OutputKey": "oauthRedirectSignIn", - "OutputValue": "https://example.com" - }, - { - "OutputKey": "passwordPolicyMinLength", - "OutputValue": "8" - }, - { - "OutputKey": "authRegion", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "groups", - "OutputValue": "[{\"storeLocatorAdmin\":{\"precedence\":0}}]" - }, - { - "OutputKey": "definedFunctions", - "OutputValue": "[\"storelocator41a9495f41a9495fPostConfirmation-gen2-main\"]" - }, - { - "OutputKey": "passwordlessOptions", - "OutputValue": "" - }, - { - "OutputKey": "deploymentType", - "OutputValue": "branch" - }, - { - "OutputKey": "passwordPolicyRequirements", - "OutputValue": "[]" - }, - { - "OutputKey": "region", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "userPoolId", - "OutputValue": "us-east-1_AeAJNVPgB" - }, - { - "OutputKey": "identityPoolId", - "OutputValue": "us-east-1:cbd1c99c-bad6-4aff-8d75-a63d582714ee" - }, - { - "OutputKey": "verificationMechanisms", - "OutputValue": "[\"email\"]" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c.parameters.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c.parameters.json deleted file mode 100644 index 74596fb6f32..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c.parameters.json +++ /dev/null @@ -1,7 +0,0 @@ -[ - { - "ParameterKey": "BootstrapVersion", - "ParameterValue": "/cdk-bootstrap/hnb659fds/version", - "ResolvedValue": "30" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c.template.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c.template.json deleted file mode 100644 index 7b7b114bb42..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-gen2main-branch-62d6167d4c.template.json +++ /dev/null @@ -1,1163 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Linux\",\"createdBy\":\"AmplifyPipelineDeploy\",\"createdWith\":\"1.21.1\",\"stackType\":\"root\",\"metadata\":{}}", - "Metadata": { - "AWS::Amplify::Platform": { - "version": "1", - "stackOutputs": [ - "deploymentType", - "region" - ] - }, - "AWS::Amplify::Auth": { - "version": "1", - "stackOutputs": [ - "userPoolId", - "webClientId", - "identityPoolId", - "authRegion", - "allowUnauthenticatedIdentities", - "signupAttributes", - "usernameAttributes", - "verificationMechanisms", - "passwordPolicyMinLength", - "passwordPolicyRequirements", - "mfaConfiguration", - "mfaTypes", - "passwordlessOptions", - "socialProviders", - "oauthCognitoDomain", - "oauthScope", - "oauthRedirectSignIn", - "oauthRedirectSignOut", - "oauthResponseType", - "oauthClientId", - "groups" - ] - }, - "AWS::Amplify::Function": { - "version": "1", - "stackOutputs": [ - "definedFunctions" - ] - }, - "AWS::Amplify::Custom": { - "version": "1", - "stackOutputs": [ - "customOutputs" - ] - } - }, - "Outputs": { - "deploymentType": { - "Value": "branch" - }, - "region": { - "Value": { - "Ref": "AWS::Region" - } - }, - "userPoolId": { - "Value": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthUserPoolE0F0BF85Ref" - ] - } - }, - "webClientId": { - "Value": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthUserPoolAppClientA8D9B6FBRef" - ] - } - }, - "identityPoolId": { - "Value": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthIdentityPool537188CARef" - ] - } - }, - "authRegion": { - "Value": { - "Ref": "AWS::Region" - } - }, - "allowUnauthenticatedIdentities": { - "Value": "true" - }, - "signupAttributes": { - "Value": "[\"email\"]" - }, - "usernameAttributes": { - "Value": "[\"email\"]" - }, - "verificationMechanisms": { - "Value": "[\"email\"]" - }, - "passwordPolicyMinLength": { - "Value": "8" - }, - "passwordPolicyRequirements": { - "Value": "[]" - }, - "mfaConfiguration": { - "Value": "OFF" - }, - "mfaTypes": { - "Value": "[]" - }, - "passwordlessOptions": { - "Value": "" - }, - "socialProviders": { - "Value": "" - }, - "oauthCognitoDomain": { - "Value": "" - }, - "oauthScope": { - "Value": "[\"profile\",\"phone\",\"email\",\"openid\",\"aws.cognito.signin.user.admin\"]" - }, - "oauthRedirectSignIn": { - "Value": "https://example.com" - }, - "oauthRedirectSignOut": { - "Value": "" - }, - "oauthResponseType": { - "Value": "code" - }, - "oauthClientId": { - "Value": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthUserPoolAppClientA8D9B6FBRef" - ] - } - }, - "groups": { - "Value": "[{\"storeLocatorAdmin\":{\"precedence\":0}}]" - }, - "definedFunctions": { - "Value": { - "Fn::Join": [ - "", - [ - "[\"", - { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifystorelocatorgen2mainbranch62d6167d4cauthstorelocator41a9495f41a9495fPostConfirmationgen2mainlambda5D769661Ref" - ] - }, - "\"]" - ] - ] - } - }, - "customOutputs": { - "Value": { - "Fn::Join": [ - "", - [ - "{\"geo\":{\"aws_region\":\"", - { - "Fn::FindInMap": [ - "MappingCopyRegionMappingc899bf01def5cbc849691ab5f6733a851ecaaf8d34", - { - "Ref": "AWS::Region" - }, - "locationServiceRegion" - ] - }, - "\",\"maps\":{\"items\":{\"", - { - "Fn::GetAtt": [ - "geostoreLocatorMap6A22ACC1", - "Outputs.amplifystorelocatorgen2mainbranch62d6167d4cgeostoreLocatorMapCustomMap41EB8E23MapName" - ] - }, - "\":{\"style\":\"VectorEsriStreets\"}},\"default\":\"", - { - "Fn::GetAtt": [ - "geostoreLocatorMap6A22ACC1", - "Outputs.amplifystorelocatorgen2mainbranch62d6167d4cgeostoreLocatorMapCustomMap41EB8E23MapName" - ] - }, - "\"},\"search_indices\":{\"items\":[\"", - { - "Fn::GetAtt": [ - "geostoreLocatorSearch516CF59F", - "Outputs.amplifystorelocatorgen2mainbranch62d6167d4cgeostoreLocatorSearchCustomPlaceIndexAEDF2721IndexName" - ] - }, - "\"],\"default\":\"", - { - "Fn::GetAtt": [ - "geostoreLocatorSearch516CF59F", - "Outputs.amplifystorelocatorgen2mainbranch62d6167d4cgeostoreLocatorSearchCustomPlaceIndexAEDF2721IndexName" - ] - }, - "\"},\"geofence_collections\":{\"items\":[\"", - { - "Fn::GetAtt": [ - "geostoreLocatorGeofenceEAAC8D05", - "Outputs.amplifystorelocatorgen2mainbranch62d6167d4cgeostoreLocatorGeofenceCustomGeofenceCollectionF2914E55CollectionName" - ] - }, - "\"],\"default\":\"", - { - "Fn::GetAtt": [ - "geostoreLocatorGeofenceEAAC8D05", - "Outputs.amplifystorelocatorgen2mainbranch62d6167d4cgeostoreLocatorGeofenceCustomGeofenceCollectionF2914E55CollectionName" - ] - }, - "\"}},\"version\":\"1.4\"}" - ] - ] - } - } - }, - "Resources": { - "AmplifyBranchLinkerCustomResourceLambdaServiceRole3DDCBC03": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "storelocator" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-storelocator-gen2main-branch-62d6167d4c/AmplifyBranchLinker/CustomResourceLambda/ServiceRole/Resource" - } - }, - "AmplifyBranchLinkerCustomResourceLambdaServiceRoleDefaultPolicy86099CA1": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "amplify:GetBranch", - "amplify:UpdateBranch" - ], - "Effect": "Allow", - "Resource": "arn:aws:amplify:*:*:apps/storelocator/branches/gen2-main" - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "AmplifyBranchLinkerCustomResourceLambdaServiceRoleDefaultPolicy86099CA1", - "Roles": [ - { - "Ref": "AmplifyBranchLinkerCustomResourceLambdaServiceRole3DDCBC03" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-storelocator-gen2main-branch-62d6167d4c/AmplifyBranchLinker/CustomResourceLambda/ServiceRole/DefaultPolicy/Resource" - } - }, - "AmplifyBranchLinkerCustomResourceLambda582AC093": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "59635e07adb5fb948b68e22ccd96205d87940fdcdfb7993bddf9639acde4f941.zip" - }, - "Handler": "index.handler", - "Role": { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceLambdaServiceRole3DDCBC03", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "storelocator" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 10 - }, - "DependsOn": [ - "AmplifyBranchLinkerCustomResourceLambdaServiceRoleDefaultPolicy86099CA1", - "AmplifyBranchLinkerCustomResourceLambdaServiceRole3DDCBC03" - ], - "Metadata": { - "aws:cdk:path": "amplify-storelocator-gen2main-branch-62d6167d4c/AmplifyBranchLinker/CustomResourceLambda/Resource", - "aws:asset:path": "asset.59635e07adb5fb948b68e22ccd96205d87940fdcdfb7993bddf9639acde4f941", - "aws:asset:is-bundled": true, - "aws:asset:property": "Code" - } - }, - "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRole92A035EB": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ], - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "storelocator" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-storelocator-gen2main-branch-62d6167d4c/AmplifyBranchLinker/CustomResourceProvider/framework-onEvent/ServiceRole/Resource" - } - }, - "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRoleDefaultPolicy38AAE412": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "lambda:InvokeFunction", - "Effect": "Allow", - "Resource": [ - { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceLambda582AC093", - "Arn" - ] - }, - { - "Fn::Join": [ - "", - [ - { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceLambda582AC093", - "Arn" - ] - }, - ":*" - ] - ] - } - ] - }, - { - "Action": "lambda:GetFunction", - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceLambda582AC093", - "Arn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRoleDefaultPolicy38AAE412", - "Roles": [ - { - "Ref": "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRole92A035EB" - } - ] - }, - "Metadata": { - "aws:cdk:path": "amplify-storelocator-gen2main-branch-62d6167d4c/AmplifyBranchLinker/CustomResourceProvider/framework-onEvent/ServiceRole/DefaultPolicy/Resource" - } - }, - "AmplifyBranchLinkerCustomResourceProviderframeworkonEvent3B23F900": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "S3Bucket": { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "S3Key": "07a90cc3efdfc34da22208dcd9d211f06f5b0e01b21e778edc7c3966b1f61d57.zip" - }, - "Description": "AWS CDK resource provider framework - onEvent (amplify-storelocator-gen2main-branch-62d6167d4c/AmplifyBranchLinker/CustomResourceProvider)", - "Environment": { - "Variables": { - "USER_ON_EVENT_FUNCTION_ARN": { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceLambda582AC093", - "Arn" - ] - } - } - }, - "Handler": "framework.onEvent", - "LoggingConfig": { - "ApplicationLogLevel": "FATAL", - "LogFormat": "JSON" - }, - "Role": { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRole92A035EB", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "storelocator" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "Timeout": 900 - }, - "DependsOn": [ - "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRoleDefaultPolicy38AAE412", - "AmplifyBranchLinkerCustomResourceProviderframeworkonEventServiceRole92A035EB" - ], - "Metadata": { - "aws:cdk:path": "amplify-storelocator-gen2main-branch-62d6167d4c/AmplifyBranchLinker/CustomResourceProvider/framework-onEvent/Resource", - "aws:asset:path": "asset.07a90cc3efdfc34da22208dcd9d211f06f5b0e01b21e778edc7c3966b1f61d57", - "aws:asset:is-bundled": false, - "aws:asset:property": "Code" - } - }, - "AmplifyBranchLinkerCustomResource96E36FC1": { - "Type": "Custom::AmplifyBranchLinkerResource", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "AmplifyBranchLinkerCustomResourceProviderframeworkonEvent3B23F900", - "Arn" - ] - }, - "appId": "storelocator", - "branchName": "gen2-main" - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-storelocator-gen2main-branch-62d6167d4c/AmplifyBranchLinker/CustomResource/Default" - } - }, - "auth179371D7": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "storelocator" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/f156fe04791fb3f78f6b0818c75bef22dc8486f70ba0ee1d8bb703e3740d5052.json" - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-storelocator-gen2main-branch-62d6167d4c/auth.NestedStack/auth.NestedStackResource", - "aws:asset:path": "amplifystorelocatorgen2mainbranch62d6167d4cauthBE445115.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "geostoreLocatorGeofenceEAAC8D05": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetoamplifystorelocatorgen2mainbranch62d6167d4cauthNestedStackauthNestedStackResourceFD19A2FDOutputsamplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthstoreLocatorAdminGroupRole237CDBFDRef": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthstoreLocatorAdminGroupRole237CDBFDRef" - ] - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "storelocator" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/61b8b993a358f371215f7600a3c9ac3262c1ff852a651decd16e924e24648542.json" - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-storelocator-gen2main-branch-62d6167d4c/geostoreLocatorGeofence.NestedStack/geostoreLocatorGeofence.NestedStackResource", - "aws:asset:path": "amplifystorelocatorgen2mainbranch62d6167d4cgeostoreLocatorGeofenceC4B4AC70.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "geostoreLocatorMap6A22ACC1": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetoamplifystorelocatorgen2mainbranch62d6167d4cauthNestedStackauthNestedStackResourceFD19A2FDOutputsamplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthauthenticatedUserRoleE47B81E2Ref": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthauthenticatedUserRoleE47B81E2Ref" - ] - }, - "referencetoamplifystorelocatorgen2mainbranch62d6167d4cauthNestedStackauthNestedStackResourceFD19A2FDOutputsamplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthunauthenticatedUserRole91ACCEF4Ref": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthunauthenticatedUserRole91ACCEF4Ref" - ] - }, - "referencetoamplifystorelocatorgen2mainbranch62d6167d4cauthNestedStackauthNestedStackResourceFD19A2FDOutputsamplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthstoreLocatorAdminGroupRole237CDBFDRef": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthstoreLocatorAdminGroupRole237CDBFDRef" - ] - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "storelocator" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/c61568e1890b3f3be2d76768068a5d7b209d6090eaae0ead003a6f15762d014e.json" - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-storelocator-gen2main-branch-62d6167d4c/geostoreLocatorMap.NestedStack/geostoreLocatorMap.NestedStackResource", - "aws:asset:path": "amplifystorelocatorgen2mainbranch62d6167d4cgeostoreLocatorMap6456EB66.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "geostoreLocatorSearch516CF59F": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "Parameters": { - "referencetoamplifystorelocatorgen2mainbranch62d6167d4cauthNestedStackauthNestedStackResourceFD19A2FDOutputsamplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthauthenticatedUserRoleE47B81E2Ref": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthauthenticatedUserRoleE47B81E2Ref" - ] - }, - "referencetoamplifystorelocatorgen2mainbranch62d6167d4cauthNestedStackauthNestedStackResourceFD19A2FDOutputsamplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthunauthenticatedUserRole91ACCEF4Ref": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthunauthenticatedUserRole91ACCEF4Ref" - ] - }, - "referencetoamplifystorelocatorgen2mainbranch62d6167d4cauthNestedStackauthNestedStackResourceFD19A2FDOutputsamplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthstoreLocatorAdminGroupRole237CDBFDRef": { - "Fn::GetAtt": [ - "auth179371D7", - "Outputs.amplifystorelocatorgen2mainbranch62d6167d4cauthamplifyAuthstoreLocatorAdminGroupRole237CDBFDRef" - ] - } - }, - "Tags": [ - { - "Key": "amplify:app-id", - "Value": "storelocator" - }, - { - "Key": "amplify:branch-name", - "Value": "gen2-main" - }, - { - "Key": "amplify:deployment-type", - "Value": "branch" - }, - { - "Key": "created-by", - "Value": "amplify" - } - ], - "TemplateURL": { - "Fn::Join": [ - "", - [ - "https://s3.", - { - "Ref": "AWS::Region" - }, - ".", - { - "Ref": "AWS::URLSuffix" - }, - "/", - { - "Fn::Sub": "cdk-hnb659fds-assets-${AWS::AccountId}-${AWS::Region}" - }, - "/8e1b00219260034f32364589cca2ec984d63c5300abf158dd9451370a7b43411.json" - ] - ] - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete", - "Metadata": { - "aws:cdk:path": "amplify-storelocator-gen2main-branch-62d6167d4c/geostoreLocatorSearch.NestedStack/geostoreLocatorSearch.NestedStackResource", - "aws:asset:path": "amplifystorelocatorgen2mainbranch62d6167d4cgeostoreLocatorSearchE6091B13.nested.template.json", - "aws:asset:property": "TemplateURL" - } - }, - "CDKMetadata": { - "Type": "AWS::CDK::Metadata", - "Properties": { - "Analytics": "v2:deflate64:H4sIAAAAAAAA/02PzWrDQAyEnyV3WU2dHHJtDD22wXkAo6yVIP/slpU2oRi/e/C6LT19I4YZNCWW+z1uN/TQwrV9McgFp7OR66G6+s9kX8mAHtpMA42XlhofWu4UPzLek3cmwYPQiFMdBl5SmacwiPtezlXNoLuGVNkU3xaA7vCYXM92JGVY63Gqrv6v9VfMM+TI2egm/gYuqYWxiawhRceKpxju0nKEKjv1j5Gf+afzrhmWCdjpy70s8fWA202nIkVM3mRkrFc+AXlCmgwZAQAA" - }, - "Metadata": { - "aws:cdk:path": "amplify-storelocator-gen2main-branch-62d6167d4c/CDKMetadata/Default" - }, - "Condition": "CDKMetadataAvailable" - } - }, - "Conditions": { - "CDKMetadataAvailable": { - "Fn::Or": [ - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "af-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-northeast-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-south-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-3" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ap-southeast-4" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "ca-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "cn-northwest-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-central-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-north-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-south-2" - ] - } - ] - }, - { - "Fn::Or": [ - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "eu-west-3" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "il-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-central-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "me-south-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "sa-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-2" - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-1" - ] - } - ] - }, - { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-west-2" - ] - } - ] - } - }, - "Mappings": { - "MappingCopyRegionMappingc899bf01def5cbc849691ab5f6733a851ecaaf8d34": { - "us-east-1": { - "locationServiceRegion": "us-east-1" - }, - "us-east-2": { - "locationServiceRegion": "us-east-2" - }, - "us-west-2": { - "locationServiceRegion": "us-west-2" - }, - "ap-southeast-1": { - "locationServiceRegion": "ap-southeast-1" - }, - "ap-southeast-2": { - "locationServiceRegion": "ap-southeast-2" - }, - "ap-northeast-1": { - "locationServiceRegion": "ap-northeast-1" - }, - "eu-central-1": { - "locationServiceRegion": "eu-central-1" - }, - "eu-north-1": { - "locationServiceRegion": "eu-north-1" - }, - "eu-west-1": { - "locationServiceRegion": "eu-west-1" - }, - "sa-east-1": { - "locationServiceRegion": "us-east-1" - }, - "ca-central-1": { - "locationServiceRegion": "us-east-1" - }, - "us-west-1": { - "locationServiceRegion": "us-west-2" - }, - "cn-north-1": { - "locationServiceRegion": "us-west-2" - }, - "cn-northwest-1": { - "locationServiceRegion": "us-west-2" - }, - "ap-south-1": { - "locationServiceRegion": "us-west-2" - }, - "ap-northeast-3": { - "locationServiceRegion": "us-west-2" - }, - "ap-northeast-2": { - "locationServiceRegion": "us-west-2" - }, - "eu-west-2": { - "locationServiceRegion": "eu-west-1" - }, - "eu-west-3": { - "locationServiceRegion": "eu-west-1" - }, - "me-south-1": { - "locationServiceRegion": "ap-southeast-1" - } - } - }, - "Parameters": { - "BootstrapVersion": { - "Type": "AWS::SSM::Parameter::Value", - "Default": "/cdk-bootstrap/hnb659fds/version", - "Description": "Version of the CDK Bootstrap resources in this environment, automatically retrieved from SSM Parameter Store. [cdk:skip]" - } - }, - "Rules": { - "CheckBootstrapVersion": { - "Assertions": [ - { - "Assert": { - "Fn::Not": [ - { - "Fn::Contains": [ - [ - "1", - "2", - "3", - "4", - "5" - ], - { - "Ref": "BootstrapVersion" - } - ] - } - ] - }, - "AssertDescription": "CDK bootstrap stack version 6 required. Please run 'cdk bootstrap' with a recent version of the CDK CLI." - } - ] - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-AuthTriggerCustomLambdaStack-SCPJHG15CQN7.description.txt b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-AuthTriggerCustomLambdaStack-SCPJHG15CQN7.description.txt deleted file mode 100644 index 667d8b27f42..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-AuthTriggerCustomLambdaStack-SCPJHG15CQN7.description.txt +++ /dev/null @@ -1 +0,0 @@ -Custom Resource stack for Auth Trigger created using Amplify CLI \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-AuthTriggerCustomLambdaStack-SCPJHG15CQN7.outputs.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-AuthTriggerCustomLambdaStack-SCPJHG15CQN7.outputs.json deleted file mode 100644 index 0637a088a01..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-AuthTriggerCustomLambdaStack-SCPJHG15CQN7.outputs.json +++ /dev/null @@ -1 +0,0 @@ -[] \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-AuthTriggerCustomLambdaStack-SCPJHG15CQN7.parameters.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-AuthTriggerCustomLambdaStack-SCPJHG15CQN7.parameters.json deleted file mode 100644 index 36ae928387f..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-AuthTriggerCustomLambdaStack-SCPJHG15CQN7.parameters.json +++ /dev/null @@ -1,26 +0,0 @@ -[ - { - "ParameterKey": "userpoolId", - "ParameterValue": "us-east-1_R1pdziFVe" - }, - { - "ParameterKey": "functionstorelocator41a9495f41a9495fPostConfirmationLambdaExecutionRole", - "ParameterValue": "arn:aws:iam::123456789012:role/storelocator41a9495f41a9495fPostConfirmation-main" - }, - { - "ParameterKey": "functionstorelocator41a9495f41a9495fPostConfirmationArn", - "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:storelocator41a9495f41a9495fPostConfirmation-main" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "userpoolArn", - "ParameterValue": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_R1pdziFVe" - }, - { - "ParameterKey": "functionstorelocator41a9495f41a9495fPostConfirmationName", - "ParameterValue": "storelocator41a9495f41a9495fPostConfirmation-main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-AuthTriggerCustomLambdaStack-SCPJHG15CQN7.template.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-AuthTriggerCustomLambdaStack-SCPJHG15CQN7.template.json deleted file mode 100644 index 722ceef6ad7..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-AuthTriggerCustomLambdaStack-SCPJHG15CQN7.template.json +++ /dev/null @@ -1,204 +0,0 @@ -{ - "Description": "Custom Resource stack for Auth Trigger created using Amplify CLI", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "env": { - "Type": "String" - }, - "userpoolId": { - "Type": "String" - }, - "userpoolArn": { - "Type": "String" - }, - "functionstorelocator41a9495f41a9495fPostConfirmationName": { - "Type": "String" - }, - "functionstorelocator41a9495f41a9495fPostConfirmationArn": { - "Type": "String" - }, - "functionstorelocator41a9495f41a9495fPostConfirmationLambdaExecutionRole": { - "Type": "String" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - }, - "Resources": { - "UserPoolPostConfirmationLambdaInvokePermission": { - "Type": "AWS::Lambda::Permission", - "Properties": { - "Action": "lambda:InvokeFunction", - "FunctionName": { - "Ref": "functionstorelocator41a9495f41a9495fPostConfirmationName" - }, - "Principal": "cognito-idp.amazonaws.com", - "SourceArn": { - "Ref": "userpoolArn" - } - } - }, - "Amplifyfunctionstorelocator41a9495f41a9495fPostConfirmationNamePostConfirmationAddToGroupCognitoC0815C8F": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "cognito-idp:AdminAddUserToGroup", - "cognito-idp:GetGroup", - "cognito-idp:CreateGroup" - ], - "Effect": "Allow", - "Resource": { - "Ref": "userpoolArn" - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "AddToGroupCognito", - "Roles": [ - { - "Fn::Select": [ - 1, - { - "Fn::Split": [ - "/", - { - "Fn::Select": [ - 5, - { - "Fn::Split": [ - ":", - { - "Ref": "functionstorelocator41a9495f41a9495fPostConfirmationLambdaExecutionRole" - } - ] - } - ] - } - ] - } - ] - } - ] - } - }, - "authTriggerFnServiceRole08093B67": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ] - } - }, - "authTriggerFnServiceRoleDefaultPolicyEC9285A8": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "cognito-idp:DescribeUserPool", - "cognito-idp:UpdateUserPool" - ], - "Effect": "Allow", - "Resource": { - "Ref": "userpoolArn" - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "authTriggerFnServiceRoleDefaultPolicyEC9285A8", - "Roles": [ - { - "Ref": "authTriggerFnServiceRole08093B67" - } - ] - } - }, - "authTriggerFn7FCFA449": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "ZipFile": "const response = require('cfn-response');\nconst {\n CognitoIdentityProviderClient,\n DescribeUserPoolCommand,\n UpdateUserPoolCommand,\n} = require('@aws-sdk/client-cognito-identity-provider');\n\nexports.handler = (event, context) => {\n // Don't return promise, response.send() marks context as done internally\n void tryHandleEvent(event, context);\n};\n\nasync function tryHandleEvent(event, context) {\n const physicalResourceId =\n event.RequestType === 'Update' ? event.PhysicalResourceId : `${event.LogicalResourceId}-${event.ResourceProperties.userpoolId}`;\n try {\n await handleEvent(event);\n response.send(event, context, response.SUCCESS, {}, physicalResourceId);\n } catch (err) {\n console.log(err.stack);\n response.send(event, context, response.FAILED, { err }, physicalResourceId);\n }\n}\n\nasync function handleEvent(event) {\n const userPoolId = event.ResourceProperties.userpoolId;\n const { lambdaConfig } = event.ResourceProperties;\n const config = {};\n const cognitoClient = new CognitoIdentityProviderClient({});\n const userPoolConfig = await cognitoClient.send(new DescribeUserPoolCommand({ UserPoolId: userPoolId }));\n const userPoolParams = userPoolConfig.UserPool;\n // update userPool params\n\n const updateUserPoolConfig = {\n UserPoolId: userPoolParams.Id,\n Policies: userPoolParams.Policies,\n SmsVerificationMessage: userPoolParams.SmsVerificationMessage,\n AccountRecoverySetting: userPoolParams.AccountRecoverySetting,\n AdminCreateUserConfig: userPoolParams.AdminCreateUserConfig,\n AutoVerifiedAttributes: userPoolParams.AutoVerifiedAttributes,\n EmailConfiguration: userPoolParams.EmailConfiguration,\n EmailVerificationMessage: userPoolParams.EmailVerificationMessage,\n EmailVerificationSubject: userPoolParams.EmailVerificationSubject,\n VerificationMessageTemplate: userPoolParams.VerificationMessageTemplate,\n SmsAuthenticationMessage: userPoolParams.SmsAuthenticationMessage,\n MfaConfiguration: userPoolParams.MfaConfiguration,\n DeviceConfiguration: userPoolParams.DeviceConfiguration,\n SmsConfiguration: userPoolParams.SmsConfiguration,\n UserPoolTags: userPoolParams.UserPoolTags,\n UserPoolAddOns: userPoolParams.UserPoolAddOns,\n };\n\n // removing undefined keys\n Object.keys(updateUserPoolConfig).forEach((key) => updateUserPoolConfig[key] === undefined && delete updateUserPoolConfig[key]);\n\n /* removing UnusedAccountValidityDays as deprecated\n InvalidParameterException: Please use TemporaryPasswordValidityDays in PasswordPolicy instead of UnusedAccountValidityDays\n */\n if (updateUserPoolConfig.AdminCreateUserConfig && updateUserPoolConfig.AdminCreateUserConfig.UnusedAccountValidityDays) {\n delete updateUserPoolConfig.AdminCreateUserConfig.UnusedAccountValidityDays;\n }\n lambdaConfig.forEach((lambda) => (config[`${lambda.triggerType}`] = lambda.lambdaFunctionArn));\n if (event.RequestType === 'Delete') {\n updateUserPoolConfig.LambdaConfig = {};\n console.log(`${event.RequestType}:`, JSON.stringify(updateUserPoolConfig));\n const result = await cognitoClient.send(new UpdateUserPoolCommand(updateUserPoolConfig));\n console.log(`delete response data ${JSON.stringify(result)}`);\n } else if (event.RequestType === 'Update' || event.RequestType === 'Create') {\n updateUserPoolConfig.LambdaConfig = config;\n const result = await cognitoClient.send(new UpdateUserPoolCommand(updateUserPoolConfig));\n console.log(`createOrUpdate response data ${JSON.stringify(result)}`);\n }\n}\n" - }, - "Handler": "index.handler", - "Role": { - "Fn::GetAtt": [ - "authTriggerFnServiceRole08093B67", - "Arn" - ] - }, - "Runtime": "nodejs22.x" - }, - "DependsOn": [ - "authTriggerFnServiceRoleDefaultPolicyEC9285A8", - "authTriggerFnServiceRole08093B67" - ] - }, - "CustomAuthTriggerResource": { - "Type": "Custom::CustomAuthTriggerResourceOutputs", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "authTriggerFn7FCFA449", - "Arn" - ] - }, - "userpoolId": { - "Ref": "userpoolId" - }, - "lambdaConfig": [ - { - "triggerType": "PostConfirmation", - "lambdaFunctionName": "storelocator41a9495f41a9495fPostConfirmation", - "lambdaFunctionArn": { - "Ref": "functionstorelocator41a9495f41a9495fPostConfirmationArn" - } - } - ], - "nonce": "d121e6b9-f4d9-415d-a210-c1fc421ab66f" - }, - "DependsOn": [ - "authTriggerFn7FCFA449", - "authTriggerFnServiceRoleDefaultPolicyEC9285A8", - "authTriggerFnServiceRole08093B67" - ], - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete" - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-authstorelocator41a9495f41a9495f-1LQSABXDYQIJW.description.txt b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-authstorelocator41a9495f41a9495f-1LQSABXDYQIJW.description.txt deleted file mode 100644 index 28ba956271c..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-authstorelocator41a9495f41a9495f-1LQSABXDYQIJW.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"auth-Cognito","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-authstorelocator41a9495f41a9495f-1LQSABXDYQIJW.outputs.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-authstorelocator41a9495f41a9495f-1LQSABXDYQIJW.outputs.json deleted file mode 100644 index d2f187e468e..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-authstorelocator41a9495f41a9495f-1LQSABXDYQIJW.outputs.json +++ /dev/null @@ -1,35 +0,0 @@ -[ - { - "OutputKey": "UserPoolId", - "OutputValue": "us-east-1_R1pdziFVe", - "Description": "Id for the user pool" - }, - { - "OutputKey": "AppClientIDWeb", - "OutputValue": "6am6ldh23n8ke819nuvk51cddq", - "Description": "The user pool app client id for web" - }, - { - "OutputKey": "AppClientID", - "OutputValue": "5ppvpdo9dmkrj55qi8h865lt34", - "Description": "The user pool app client id" - }, - { - "OutputKey": "IdentityPoolId", - "OutputValue": "us-east-1:4ea514e6-bc16-4990-a5ea-cefe84c3050d", - "Description": "Id for the identity pool" - }, - { - "OutputKey": "UserPoolArn", - "OutputValue": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_R1pdziFVe", - "Description": "Arn for the user pool" - }, - { - "OutputKey": "IdentityPoolName", - "OutputValue": "storelocator41a9495f_identitypool_41a9495f__main" - }, - { - "OutputKey": "UserPoolName", - "OutputValue": "storelocator41a9495f_userpool_41a9495f" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-authstorelocator41a9495f41a9495f-1LQSABXDYQIJW.parameters.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-authstorelocator41a9495f41a9495f-1LQSABXDYQIJW.parameters.json deleted file mode 100644 index d52f69d2a99..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-authstorelocator41a9495f41a9495f-1LQSABXDYQIJW.parameters.json +++ /dev/null @@ -1,182 +0,0 @@ -[ - { - "ParameterKey": "usernameAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "authRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-storelocator-main-f9ca7-authRole" - }, - { - "ParameterKey": "autoVerifiedAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "allowUnauthenticatedIdentities", - "ParameterValue": "true" - }, - { - "ParameterKey": "hostedUI", - "ParameterValue": "false" - }, - { - "ParameterKey": "smsVerificationMessage", - "ParameterValue": "Your verification code is {####}" - }, - { - "ParameterKey": "userpoolClientReadAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "breakCircularDependency", - "ParameterValue": "true" - }, - { - "ParameterKey": "mfaTypes", - "ParameterValue": "SMS Text Message" - }, - { - "ParameterKey": "emailVerificationSubject", - "ParameterValue": "Your verification code" - }, - { - "ParameterKey": "sharedId", - "ParameterValue": "41a9495f" - }, - { - "ParameterKey": "useDefault", - "ParameterValue": "manual" - }, - { - "ParameterKey": "userpoolClientGenerateSecret", - "ParameterValue": "false" - }, - { - "ParameterKey": "mfaConfiguration", - "ParameterValue": "OFF" - }, - { - "ParameterKey": "identityPoolName", - "ParameterValue": "storelocator41a9495f_identitypool_41a9495f" - }, - { - "ParameterKey": "thirdPartyAuth", - "ParameterValue": "false" - }, - { - "ParameterKey": "userPoolGroupList", - "ParameterValue": "storeLocatorAdmin" - }, - { - "ParameterKey": "authSelections", - "ParameterValue": "identityPoolAndUserPool" - }, - { - "ParameterKey": "adminQueries", - "ParameterValue": "false" - }, - { - "ParameterKey": "permissions", - "ParameterValue": "{\"policyName\":\"AddToGroupCognito\",\"trigger\":\"PostConfirmation\",\"effect\":\"Allow\",\"actions\":[\"cognito-idp:AdminAddUserToGroup\",\"cognito-idp:GetGroup\",\"cognito-idp:CreateGroup\"],\"resource\":{\"paramType\":\"!GetAtt\",\"keys\":[\"UserPool\",\"Arn\"]}}" - }, - { - "ParameterKey": "resourceNameTruncated", - "ParameterValue": "storel41a9495f" - }, - { - "ParameterKey": "userPoolGroups", - "ParameterValue": "true" - }, - { - "ParameterKey": "smsAuthenticationMessage", - "ParameterValue": "Your authentication code is {####}" - }, - { - "ParameterKey": "functionstorelocator41a9495f41a9495fPostConfirmationArn", - "ParameterValue": "functionstorelocator41a9495f41a9495fPostConfirmationArn" - }, - { - "ParameterKey": "functionstorelocator41a9495f41a9495fPostConfirmationName", - "ParameterValue": "functionstorelocator41a9495f41a9495fPostConfirmationName" - }, - { - "ParameterKey": "passwordPolicyMinLength", - "ParameterValue": "8" - }, - { - "ParameterKey": "userPoolName", - "ParameterValue": "storelocator41a9495f_userpool_41a9495f" - }, - { - "ParameterKey": "userpoolClientWriteAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "dependsOn", - "ParameterValue": "[object Object]" - }, - { - "ParameterKey": "useEnabledMfas", - "ParameterValue": "true" - }, - { - "ParameterKey": "usernameCaseSensitive", - "ParameterValue": "false" - }, - { - "ParameterKey": "resourceName", - "ParameterValue": "storelocator41a9495f41a9495f" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "triggers", - "ParameterValue": "{\"PostConfirmation\":[\"add-to-group\"]}" - }, - { - "ParameterKey": "serviceName", - "ParameterValue": "Cognito" - }, - { - "ParameterKey": "emailVerificationMessage", - "ParameterValue": "Your verification code is {####}" - }, - { - "ParameterKey": "userpoolClientRefreshTokenValidity", - "ParameterValue": "100" - }, - { - "ParameterKey": "userpoolClientSetAttributes", - "ParameterValue": "false" - }, - { - "ParameterKey": "unauthRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-storelocator-main-f9ca7-unauthRole" - }, - { - "ParameterKey": "requiredAttributes", - "ParameterValue": "email" - }, - { - "ParameterKey": "passwordPolicyCharacters", - "ParameterValue": "" - }, - { - "ParameterKey": "authTriggerConnections", - "ParameterValue": "{\"triggerType\":\"PostConfirmation\",\"lambdaFunctionName\":\"storelocator41a9495f41a9495fPostConfirmation\"}" - }, - { - "ParameterKey": "aliasAttributes", - "ParameterValue": "" - }, - { - "ParameterKey": "userpoolClientLambdaRole", - "ParameterValue": "storel41a9495f_userpoolclient_lambda_role" - }, - { - "ParameterKey": "defaultPasswordPolicy", - "ParameterValue": "false" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-authstorelocator41a9495f41a9495f-1LQSABXDYQIJW.template.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-authstorelocator41a9495f41a9495f-1LQSABXDYQIJW.template.json deleted file mode 100644 index 32f0ad747e9..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-authstorelocator41a9495f41a9495f-1LQSABXDYQIJW.template.json +++ /dev/null @@ -1,486 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "env": { - "Type": "String" - }, - "functionstorelocator41a9495f41a9495fPostConfirmationArn": { - "Type": "String", - "Default": "functionstorelocator41a9495f41a9495fPostConfirmationArn" - }, - "functionstorelocator41a9495f41a9495fPostConfirmationName": { - "Type": "String", - "Default": "functionstorelocator41a9495f41a9495fPostConfirmationName" - }, - "identityPoolName": { - "Type": "String" - }, - "allowUnauthenticatedIdentities": { - "Type": "String" - }, - "resourceNameTruncated": { - "Type": "String" - }, - "userPoolName": { - "Type": "String" - }, - "autoVerifiedAttributes": { - "Type": "CommaDelimitedList" - }, - "mfaConfiguration": { - "Type": "String" - }, - "mfaTypes": { - "Type": "CommaDelimitedList" - }, - "smsAuthenticationMessage": { - "Type": "String" - }, - "smsVerificationMessage": { - "Type": "String" - }, - "emailVerificationSubject": { - "Type": "String" - }, - "emailVerificationMessage": { - "Type": "String" - }, - "defaultPasswordPolicy": { - "Type": "String" - }, - "passwordPolicyMinLength": { - "Type": "String" - }, - "passwordPolicyCharacters": { - "Type": "CommaDelimitedList" - }, - "requiredAttributes": { - "Type": "CommaDelimitedList" - }, - "aliasAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientGenerateSecret": { - "Type": "String" - }, - "userpoolClientRefreshTokenValidity": { - "Type": "String" - }, - "userpoolClientWriteAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientReadAttributes": { - "Type": "CommaDelimitedList" - }, - "userpoolClientLambdaRole": { - "Type": "String" - }, - "userpoolClientSetAttributes": { - "Type": "String" - }, - "sharedId": { - "Type": "String" - }, - "resourceName": { - "Type": "String" - }, - "authSelections": { - "Type": "String" - }, - "useDefault": { - "Type": "String" - }, - "thirdPartyAuth": { - "Type": "String" - }, - "usernameAttributes": { - "Type": "CommaDelimitedList" - }, - "userPoolGroups": { - "Type": "String" - }, - "adminQueries": { - "Type": "String" - }, - "triggers": { - "Type": "String" - }, - "hostedUI": { - "Type": "String" - }, - "userPoolGroupList": { - "Type": "CommaDelimitedList" - }, - "serviceName": { - "Type": "String" - }, - "usernameCaseSensitive": { - "Type": "String" - }, - "useEnabledMfas": { - "Type": "String" - }, - "authRoleArn": { - "Type": "String" - }, - "unauthRoleArn": { - "Type": "String" - }, - "breakCircularDependency": { - "Type": "String" - }, - "dependsOn": { - "Type": "CommaDelimitedList" - }, - "permissions": { - "Type": "CommaDelimitedList" - }, - "authTriggerConnections": { - "Type": "CommaDelimitedList" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - }, - "Resources": { - "UserPool": { - "Type": "AWS::Cognito::UserPool", - "Properties": { - "AutoVerifiedAttributes": [ - "email" - ], - "EmailVerificationMessage": { - "Ref": "emailVerificationMessage" - }, - "EmailVerificationSubject": { - "Ref": "emailVerificationSubject" - }, - "MfaConfiguration": { - "Ref": "mfaConfiguration" - }, - "Policies": { - "PasswordPolicy": { - "MinimumLength": { - "Ref": "passwordPolicyMinLength" - }, - "RequireLowercase": false, - "RequireNumbers": false, - "RequireSymbols": false, - "RequireUppercase": false - } - }, - "Schema": [ - { - "Mutable": true, - "Name": "email", - "Required": true - } - ], - "UserAttributeUpdateSettings": { - "AttributesRequireVerificationBeforeUpdate": [ - "email" - ] - }, - "UserPoolName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "userPoolName" - }, - { - "Fn::Join": [ - "", - [ - { - "Ref": "userPoolName" - }, - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "UsernameAttributes": { - "Ref": "usernameAttributes" - }, - "UsernameConfiguration": { - "CaseSensitive": false - } - } - }, - "UserPoolClientWeb": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "storel41a9495f_app_clientWeb", - "RefreshTokenValidity": { - "Ref": "userpoolClientRefreshTokenValidity" - }, - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": { - "Ref": "UserPool" - } - }, - "DependsOn": [ - "UserPool" - ] - }, - "UserPoolClient": { - "Type": "AWS::Cognito::UserPoolClient", - "Properties": { - "ClientName": "storel41a9495f_app_client", - "GenerateSecret": { - "Ref": "userpoolClientGenerateSecret" - }, - "RefreshTokenValidity": { - "Ref": "userpoolClientRefreshTokenValidity" - }, - "TokenValidityUnits": { - "RefreshToken": "days" - }, - "UserPoolId": { - "Ref": "UserPool" - } - }, - "DependsOn": [ - "UserPool" - ] - }, - "UserPoolClientRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - }, - "Action": "sts:AssumeRole" - } - ] - }, - "RoleName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - { - "Ref": "userpoolClientLambdaRole" - }, - { - "Fn::Join": [ - "", - [ - "upClientLambdaRole41a9495f", - { - "Fn::Select": [ - 3, - { - "Fn::Split": [ - "-", - { - "Ref": "AWS::StackName" - } - ] - } - ] - }, - "-", - { - "Ref": "env" - } - ] - ] - } - ] - } - } - }, - "IdentityPool": { - "Type": "AWS::Cognito::IdentityPool", - "Properties": { - "AllowUnauthenticatedIdentities": { - "Ref": "allowUnauthenticatedIdentities" - }, - "CognitoIdentityProviders": [ - { - "ClientId": { - "Ref": "UserPoolClient" - }, - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": { - "Ref": "UserPool" - } - } - ] - } - }, - { - "ClientId": { - "Ref": "UserPoolClientWeb" - }, - "ProviderName": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "client": { - "Ref": "UserPool" - } - } - ] - } - } - ], - "IdentityPoolName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "storelocator41a9495f_identitypool_41a9495f", - { - "Fn::Join": [ - "", - [ - "storelocator41a9495f_identitypool_41a9495f__", - { - "Ref": "env" - } - ] - ] - } - ] - } - } - }, - "IdentityPoolRoleMap": { - "Type": "AWS::Cognito::IdentityPoolRoleAttachment", - "Properties": { - "IdentityPoolId": { - "Ref": "IdentityPool" - }, - "RoleMappings": { - "UserPoolClientRoleMapping": { - "AmbiguousRoleResolution": "AuthenticatedRole", - "IdentityProvider": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${userPool}:${client}", - { - "region": { - "Ref": "AWS::Region" - }, - "userPool": { - "Ref": "UserPool" - }, - "client": { - "Ref": "UserPoolClient" - } - } - ] - }, - "Type": "Token" - }, - "UserPoolWebClientRoleMapping": { - "AmbiguousRoleResolution": "AuthenticatedRole", - "IdentityProvider": { - "Fn::Sub": [ - "cognito-idp.${region}.amazonaws.com/${userPool}:${webClient}", - { - "region": { - "Ref": "AWS::Region" - }, - "userPool": { - "Ref": "UserPool" - }, - "webClient": { - "Ref": "UserPoolClientWeb" - } - } - ] - }, - "Type": "Token" - } - }, - "Roles": { - "unauthenticated": { - "Ref": "unauthRoleArn" - }, - "authenticated": { - "Ref": "authRoleArn" - } - } - }, - "DependsOn": [ - "IdentityPool", - "UserPoolClient", - "UserPoolClientWeb" - ] - } - }, - "Outputs": { - "IdentityPoolId": { - "Description": "Id for the identity pool", - "Value": { - "Ref": "IdentityPool" - } - }, - "IdentityPoolName": { - "Value": { - "Fn::GetAtt": [ - "IdentityPool", - "Name" - ] - } - }, - "UserPoolId": { - "Description": "Id for the user pool", - "Value": { - "Ref": "UserPool" - } - }, - "UserPoolArn": { - "Description": "Arn for the user pool", - "Value": { - "Fn::GetAtt": [ - "UserPool", - "Arn" - ] - } - }, - "UserPoolName": { - "Value": { - "Ref": "userPoolName" - } - }, - "AppClientIDWeb": { - "Description": "The user pool app client id for web", - "Value": { - "Ref": "UserPoolClientWeb" - } - }, - "AppClientID": { - "Description": "The user pool app client id", - "Value": { - "Ref": "UserPoolClient" - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-authuserPoolGroups-1G3B0P2B6Q0ZH.description.txt b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-authuserPoolGroups-1G3B0P2B6Q0ZH.description.txt deleted file mode 100644 index aa91c019d71..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-authuserPoolGroups-1G3B0P2B6Q0ZH.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"auth-Cognito-UserPool-Groups","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-authuserPoolGroups-1G3B0P2B6Q0ZH.outputs.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-authuserPoolGroups-1G3B0P2B6Q0ZH.outputs.json deleted file mode 100644 index 434cc24ea19..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-authuserPoolGroups-1G3B0P2B6Q0ZH.outputs.json +++ /dev/null @@ -1,6 +0,0 @@ -[ - { - "OutputKey": "storeLocatorAdminGroupRole", - "OutputValue": "arn:aws:iam::123456789012:role/us-east-1_R1pdziFVe-storeLocatorAdminGroupRole" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-authuserPoolGroups-1G3B0P2B6Q0ZH.parameters.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-authuserPoolGroups-1G3B0P2B6Q0ZH.parameters.json deleted file mode 100644 index 2e7645b29bc..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-authuserPoolGroups-1G3B0P2B6Q0ZH.parameters.json +++ /dev/null @@ -1,30 +0,0 @@ -[ - { - "ParameterKey": "UnauthRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-storelocator-main-f9ca7-unauthRole" - }, - { - "ParameterKey": "authstorelocator41a9495f41a9495fAppClientID", - "ParameterValue": "5ppvpdo9dmkrj55qi8h865lt34" - }, - { - "ParameterKey": "authstorelocator41a9495f41a9495fIdentityPoolId", - "ParameterValue": "us-east-1:4ea514e6-bc16-4990-a5ea-cefe84c3050d" - }, - { - "ParameterKey": "AuthRoleArn", - "ParameterValue": "arn:aws:iam::123456789012:role/amplify-storelocator-main-f9ca7-authRole" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "authstorelocator41a9495f41a9495fAppClientIDWeb", - "ParameterValue": "6am6ldh23n8ke819nuvk51cddq" - }, - { - "ParameterKey": "authstorelocator41a9495f41a9495fUserPoolId", - "ParameterValue": "us-east-1_R1pdziFVe" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-authuserPoolGroups-1G3B0P2B6Q0ZH.template.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-authuserPoolGroups-1G3B0P2B6Q0ZH.template.json deleted file mode 100644 index 5edc3def07d..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-authuserPoolGroups-1G3B0P2B6Q0ZH.template.json +++ /dev/null @@ -1,109 +0,0 @@ -{ - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito-UserPool-Groups\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "env": { - "Type": "String" - }, - "AuthRoleArn": { - "Type": "String" - }, - "UnauthRoleArn": { - "Type": "String" - }, - "authstorelocator41a9495f41a9495fUserPoolId": { - "Type": "String", - "Default": "authstorelocator41a9495f41a9495fUserPoolId" - }, - "authstorelocator41a9495f41a9495fIdentityPoolId": { - "Type": "String", - "Default": "authstorelocator41a9495f41a9495fIdentityPoolId" - }, - "authstorelocator41a9495f41a9495fAppClientID": { - "Type": "String", - "Default": "authstorelocator41a9495f41a9495fAppClientID" - }, - "authstorelocator41a9495f41a9495fAppClientIDWeb": { - "Type": "String", - "Default": "authstorelocator41a9495f41a9495fAppClientIDWeb" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - }, - "Resources": { - "storeLocatorAdminGroup": { - "Type": "AWS::Cognito::UserPoolGroup", - "Properties": { - "Description": "override success", - "GroupName": "storeLocatorAdmin", - "Precedence": 1, - "RoleArn": { - "Fn::GetAtt": [ - "storeLocatorAdminGroupRole", - "Arn" - ] - }, - "UserPoolId": { - "Ref": "authstorelocator41a9495f41a9495fUserPoolId" - } - } - }, - "storeLocatorAdminGroupRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Sid": "", - "Effect": "Allow", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - }, - "Action": "sts:AssumeRoleWithWebIdentity", - "Condition": { - "StringEquals": { - "cognito-identity.amazonaws.com:aud": { - "Ref": "authstorelocator41a9495f41a9495fIdentityPoolId" - } - }, - "ForAnyValue:StringLike": { - "cognito-identity.amazonaws.com:amr": "authenticated" - } - } - } - ] - }, - "RoleName": { - "Fn::Join": [ - "", - [ - { - "Ref": "authstorelocator41a9495f41a9495fUserPoolId" - }, - "-storeLocatorAdminGroupRole" - ] - ] - } - } - } - }, - "Outputs": { - "storeLocatorAdminGroupRole": { - "Value": { - "Fn::GetAtt": [ - "storeLocatorAdminGroupRole", - "Arn" - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-functionstorelocator41a9495f41a9495fPostConfirmation-1VPC441AZ14I6.description.txt b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-functionstorelocator41a9495f41a9495fPostConfirmation-1VPC441AZ14I6.description.txt deleted file mode 100644 index 445081e4df1..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-functionstorelocator41a9495f41a9495fPostConfirmation-1VPC441AZ14I6.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"function-Lambda","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-functionstorelocator41a9495f41a9495fPostConfirmation-1VPC441AZ14I6.outputs.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-functionstorelocator41a9495f41a9495fPostConfirmation-1VPC441AZ14I6.outputs.json deleted file mode 100644 index e6872c85811..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-functionstorelocator41a9495f41a9495fPostConfirmation-1VPC441AZ14I6.outputs.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "OutputKey": "LambdaExecutionRoleArn", - "OutputValue": "arn:aws:iam::123456789012:role/storelocator41a9495f41a9495fPostConfirmation-main" - }, - { - "OutputKey": "Region", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "Arn", - "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:storelocator41a9495f41a9495fPostConfirmation-main" - }, - { - "OutputKey": "Name", - "OutputValue": "storelocator41a9495f41a9495fPostConfirmation-main" - }, - { - "OutputKey": "LambdaExecutionRole", - "OutputValue": "storelocator41a9495f41a9495fPostConfirmation-main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-functionstorelocator41a9495f41a9495fPostConfirmation-1VPC441AZ14I6.parameters.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-functionstorelocator41a9495f41a9495fPostConfirmation-1VPC441AZ14I6.parameters.json deleted file mode 100644 index 6f043e3804d..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-functionstorelocator41a9495f41a9495fPostConfirmation-1VPC441AZ14I6.parameters.json +++ /dev/null @@ -1,46 +0,0 @@ -[ - { - "ParameterKey": "GROUP", - "ParameterValue": "storeLocatorAdmin" - }, - { - "ParameterKey": "parentResource", - "ParameterValue": "" - }, - { - "ParameterKey": "s3Key", - "ParameterValue": "amplify-builds/storelocator41a9495f41a9495fPostConfirmation-6a6c746d4739755a384a-build.zip" - }, - { - "ParameterKey": "functionName", - "ParameterValue": "" - }, - { - "ParameterKey": "parentStack", - "ParameterValue": "" - }, - { - "ParameterKey": "deploymentBucketName", - "ParameterValue": "amplify-storelocator-main-f9ca7-deployment" - }, - { - "ParameterKey": "roleName", - "ParameterValue": "" - }, - { - "ParameterKey": "resourceName", - "ParameterValue": "storelocator41a9495f41a9495fPostConfirmation" - }, - { - "ParameterKey": "trigger", - "ParameterValue": "true" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "modules", - "ParameterValue": "add-to-group" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-functionstorelocator41a9495f41a9495fPostConfirmation-1VPC441AZ14I6.template.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-functionstorelocator41a9495f41a9495fPostConfirmation-1VPC441AZ14I6.template.json deleted file mode 100644 index 192bbea9292..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-functionstorelocator41a9495f41a9495fPostConfirmation-1VPC441AZ14I6.template.json +++ /dev/null @@ -1,235 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", - "Parameters": { - "GROUP": { - "Type": "String", - "Default": "" - }, - "modules": { - "Type": "String", - "Default": "", - "Description": "Comma-delimited list of modules to be executed by a lambda trigger. Sent to resource as an env variable." - }, - "resourceName": { - "Type": "String", - "Default": "" - }, - "trigger": { - "Type": "String", - "Default": "true" - }, - "functionName": { - "Type": "String", - "Default": "" - }, - "roleName": { - "Type": "String", - "Default": "" - }, - "parentResource": { - "Type": "String", - "Default": "" - }, - "parentStack": { - "Type": "String", - "Default": "" - }, - "env": { - "Type": "String" - }, - "deploymentBucketName": { - "Type": "String" - }, - "s3Key": { - "Type": "String" - } - }, - "Conditions": { - "ShouldNotCreateEnvResources": { - "Fn::Equals": [ - { - "Ref": "env" - }, - "NONE" - ] - } - }, - "Resources": { - "LambdaFunction": { - "Type": "AWS::Lambda::Function", - "Metadata": { - "aws:asset:path": "./src", - "aws:asset:property": "Code" - }, - "Properties": { - "Handler": "index.handler", - "FunctionName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "storelocator41a9495f41a9495fPostConfirmation", - { - "Fn::Join": [ - "", - [ - "storelocator41a9495f41a9495fPostConfirmation", - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "Environment": { - "Variables": { - "ENV": { - "Ref": "env" - }, - "MODULES": { - "Ref": "modules" - }, - "REGION": { - "Ref": "AWS::Region" - }, - "GROUP": { - "Ref": "GROUP" - } - } - }, - "Role": { - "Fn::GetAtt": [ - "LambdaExecutionRole", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Timeout": 25, - "Code": { - "S3Bucket": { - "Ref": "deploymentBucketName" - }, - "S3Key": { - "Ref": "s3Key" - } - } - } - }, - "LambdaExecutionRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "RoleName": { - "Fn::If": [ - "ShouldNotCreateEnvResources", - "storelocator41a9495f41a9495fPostConfirmation", - { - "Fn::Join": [ - "", - [ - "storelocator41a9495f41a9495fPostConfirmation", - "-", - { - "Ref": "env" - } - ] - ] - } - ] - }, - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": [ - "lambda.amazonaws.com" - ] - }, - "Action": [ - "sts:AssumeRole" - ] - } - ] - } - } - }, - "lambdaexecutionpolicy": { - "DependsOn": [ - "LambdaExecutionRole" - ], - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyName": "lambda-execution-policy", - "Roles": [ - { - "Ref": "LambdaExecutionRole" - } - ], - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "logs:CreateLogGroup", - "logs:CreateLogStream", - "logs:PutLogEvents" - ], - "Resource": { - "Fn::Sub": [ - "arn:aws:logs:${region}:${account}:log-group:/aws/lambda/${lambda}:log-stream:*", - { - "region": { - "Ref": "AWS::Region" - }, - "account": { - "Ref": "AWS::AccountId" - }, - "lambda": { - "Ref": "LambdaFunction" - } - } - ] - } - } - ] - } - } - } - }, - "Outputs": { - "Name": { - "Value": { - "Ref": "LambdaFunction" - } - }, - "Arn": { - "Value": { - "Fn::GetAtt": [ - "LambdaFunction", - "Arn" - ] - } - }, - "LambdaExecutionRole": { - "Value": { - "Ref": "LambdaExecutionRole" - } - }, - "LambdaExecutionRoleArn": { - "Value": { - "Fn::GetAtt": [ - "LambdaExecutionRole", - "Arn" - ] - } - }, - "Region": { - "Value": { - "Ref": "AWS::Region" - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-geostoreLocatorGeofence-1L1TL0PS3DT8L.description.txt b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-geostoreLocatorGeofence-1L1TL0PS3DT8L.description.txt deleted file mode 100644 index 49cef6381f7..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-geostoreLocatorGeofence-1L1TL0PS3DT8L.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"geo-GeofenceCollection","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-geostoreLocatorGeofence-1L1TL0PS3DT8L.outputs.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-geostoreLocatorGeofence-1L1TL0PS3DT8L.outputs.json deleted file mode 100644 index 58f0ddedbcf..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-geostoreLocatorGeofence-1L1TL0PS3DT8L.outputs.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "OutputKey": "Region", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "Arn", - "OutputValue": "arn:aws:geo:us-east-1:123456789012:geofence-collection/storeLocatorGeofence-main" - }, - { - "OutputKey": "Name", - "OutputValue": "storeLocatorGeofence-main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-geostoreLocatorGeofence-1L1TL0PS3DT8L.parameters.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-geostoreLocatorGeofence-1L1TL0PS3DT8L.parameters.json deleted file mode 100644 index b28f809dfe9..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-geostoreLocatorGeofence-1L1TL0PS3DT8L.parameters.json +++ /dev/null @@ -1,22 +0,0 @@ -[ - { - "ParameterKey": "authuserPoolGroupsstoreLocatorAdminGroupRole", - "ParameterValue": "arn:aws:iam::123456789012:role/us-east-1_R1pdziFVe-storeLocatorAdminGroupRole" - }, - { - "ParameterKey": "isDefault", - "ParameterValue": "true" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "authstorelocator41a9495f41a9495fUserPoolId", - "ParameterValue": "us-east-1_R1pdziFVe" - }, - { - "ParameterKey": "collectionName", - "ParameterValue": "storeLocatorGeofence" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-geostoreLocatorGeofence-1L1TL0PS3DT8L.template.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-geostoreLocatorGeofence-1L1TL0PS3DT8L.template.json deleted file mode 100644 index 17020d54719..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-geostoreLocatorGeofence-1L1TL0PS3DT8L.template.json +++ /dev/null @@ -1,364 +0,0 @@ -{ - "Mappings": { - "RegionMapping": { - "us-east-1": { - "locationServiceRegion": "us-east-1" - }, - "us-east-2": { - "locationServiceRegion": "us-east-2" - }, - "us-west-2": { - "locationServiceRegion": "us-west-2" - }, - "ap-southeast-1": { - "locationServiceRegion": "ap-southeast-1" - }, - "ap-southeast-2": { - "locationServiceRegion": "ap-southeast-2" - }, - "ap-northeast-1": { - "locationServiceRegion": "ap-northeast-1" - }, - "eu-central-1": { - "locationServiceRegion": "eu-central-1" - }, - "eu-north-1": { - "locationServiceRegion": "eu-north-1" - }, - "eu-west-1": { - "locationServiceRegion": "eu-west-1" - }, - "sa-east-1": { - "locationServiceRegion": "us-east-1" - }, - "ca-central-1": { - "locationServiceRegion": "us-east-1" - }, - "us-west-1": { - "locationServiceRegion": "us-west-2" - }, - "cn-north-1": { - "locationServiceRegion": "us-west-2" - }, - "cn-northwest-1": { - "locationServiceRegion": "us-west-2" - }, - "ap-south-1": { - "locationServiceRegion": "us-west-2" - }, - "ap-northeast-3": { - "locationServiceRegion": "us-west-2" - }, - "ap-northeast-2": { - "locationServiceRegion": "us-west-2" - }, - "eu-west-2": { - "locationServiceRegion": "eu-west-1" - }, - "eu-west-3": { - "locationServiceRegion": "eu-west-1" - }, - "me-south-1": { - "locationServiceRegion": "ap-southeast-1" - } - } - }, - "Parameters": { - "authuserPoolGroupsstoreLocatorAdminGroupRole": { - "Type": "String" - }, - "authstorelocator41a9495f41a9495fUserPoolId": { - "Type": "String" - }, - "collectionName": { - "Type": "String" - }, - "env": { - "Type": "String" - }, - "isDefault": { - "Type": "String" - } - }, - "Resources": { - "CustomGeofenceCollectionLambdaServiceRole9040D551": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ] - } - }, - "CustomGeofenceCollectionLambdaServiceRoleDefaultPolicy0A18B369": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "geo:CreateGeofenceCollection", - "Effect": "Allow", - "Resource": "*" - }, - { - "Action": [ - "geo:UpdateGeofenceCollection", - "geo:DeleteGeofenceCollection" - ], - "Effect": "Allow", - "Resource": { - "Fn::Sub": [ - "arn:aws:geo:${region}:${account}:geofence-collection/${collectionName}", - { - "region": { - "Fn::FindInMap": [ - "RegionMapping", - { - "Ref": "AWS::Region" - }, - "locationServiceRegion" - ] - }, - "account": { - "Ref": "AWS::AccountId" - }, - "collectionName": { - "Fn::Join": [ - "-", - [ - { - "Ref": "collectionName" - }, - { - "Ref": "env" - } - ] - ] - } - } - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "CustomGeofenceCollectionLambdaServiceRoleDefaultPolicy0A18B369", - "Roles": [ - { - "Ref": "CustomGeofenceCollectionLambdaServiceRole9040D551" - } - ] - } - }, - "CustomGeofenceCollectionLambdaCA3D002B": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "ZipFile": "const response = require('cfn-response');\nconst {\n LocationClient,\n CreateGeofenceCollectionCommand,\n DeleteGeofenceCollectionCommand,\n UpdateGeofenceCollectionCommand,\n} = require('@aws-sdk/client-location');\nexports.handler = async function (event, context) {\n try {\n console.log('REQUEST RECEIVED:' + JSON.stringify(event));\n const pricingPlan = 'RequestBasedUsage';\n if (event.RequestType === 'Create') {\n const params = {\n CollectionName: event.ResourceProperties.collectionName,\n PricingPlan: pricingPlan,\n };\n const locationClient = new LocationClient({ region: event.ResourceProperties.region });\n const res = await locationClient.send(new CreateGeofenceCollectionCommand(params));\n console.log('create resource response data' + JSON.stringify(res));\n if (res.CollectionName && res.CollectionArn) {\n await response.send(event, context, response.SUCCESS, res, params.CollectionName);\n } else {\n await response.send(event, context, response.FAILED, res, params.CollectionName);\n }\n }\n if (event.RequestType === 'Update') {\n const params = {\n CollectionName: event.ResourceProperties.collectionName,\n PricingPlan: pricingPlan,\n };\n const locationClient = new LocationClient({ region: event.ResourceProperties.region });\n const res = await locationClient.send(new UpdateGeofenceCollectionCommand(params));\n console.log('update resource response data' + JSON.stringify(res));\n if (res.CollectionName) {\n await response.send(event, context, response.SUCCESS, res, params.CollectionName);\n } else {\n await response.send(event, context, response.FAILED, res, params.CollectionName);\n }\n }\n if (event.RequestType === 'Delete') {\n const params = {\n CollectionName: event.ResourceProperties.collectionName,\n };\n const locationClient = new LocationClient({ region: event.ResourceProperties.region });\n const res = await locationClient.send(new DeleteGeofenceCollectionCommand(params));\n console.log('delete resource response data' + JSON.stringify(res));\n await response.send(event, context, response.SUCCESS, res, params.CollectionName);\n }\n } catch (err) {\n console.log(err.stack);\n const res = { Error: err };\n await response.send(event, context, response.FAILED, res, event.ResourceProperties.collectionName);\n throw err;\n }\n};\n" - }, - "Handler": "index.handler", - "Role": { - "Fn::GetAtt": [ - "CustomGeofenceCollectionLambdaServiceRole9040D551", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Timeout": 300 - }, - "DependsOn": [ - "CustomGeofenceCollectionLambdaServiceRoleDefaultPolicy0A18B369", - "CustomGeofenceCollectionLambdaServiceRole9040D551" - ] - }, - "CustomGeofenceCollection": { - "Type": "Custom::LambdaCallout", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "CustomGeofenceCollectionLambdaCA3D002B", - "Arn" - ] - }, - "collectionName": { - "Fn::Join": [ - "-", - [ - { - "Ref": "collectionName" - }, - { - "Ref": "env" - } - ] - ] - }, - "region": { - "Fn::FindInMap": [ - "RegionMapping", - { - "Ref": "AWS::Region" - }, - "locationServiceRegion" - ] - }, - "env": { - "Ref": "env" - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete" - }, - "storeLocatorAdminGeofenceCollectionPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "geo:GetGeofence", - "geo:PutGeofence", - "geo:BatchPutGeofence", - "geo:BatchDeleteGeofence", - "geo:ListGeofences" - ], - "Effect": "Allow", - "Resource": { - "Fn::Sub": [ - "arn:aws:geo:${region}:${account}:geofence-collection/${collectionName}", - { - "region": { - "Fn::FindInMap": [ - "RegionMapping", - { - "Ref": "AWS::Region" - }, - "locationServiceRegion" - ] - }, - "account": { - "Ref": "AWS::AccountId" - }, - "collectionName": { - "Fn::GetAtt": [ - "CustomGeofenceCollection", - "CollectionName" - ] - } - } - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": { - "Fn::Join": [ - "", - [ - "storeLocatorAdmin", - { - "Fn::Join": [ - "-", - [ - { - "Ref": "collectionName" - }, - { - "Ref": "env" - } - ] - ] - }, - "Policy" - ] - ] - }, - "Roles": [ - { - "Fn::Join": [ - "-", - [ - { - "Ref": "authstorelocator41a9495f41a9495fUserPoolId" - }, - "storeLocatorAdminGroupRole" - ] - ] - } - ] - } - } - }, - "Outputs": { - "Name": { - "Value": { - "Fn::GetAtt": [ - "CustomGeofenceCollection", - "CollectionName" - ] - } - }, - "Region": { - "Value": { - "Fn::FindInMap": [ - "RegionMapping", - { - "Ref": "AWS::Region" - }, - "locationServiceRegion" - ] - } - }, - "Arn": { - "Value": { - "Fn::Sub": [ - "arn:aws:geo:${region}:${account}:geofence-collection/${collectionName}", - { - "region": { - "Fn::FindInMap": [ - "RegionMapping", - { - "Ref": "AWS::Region" - }, - "locationServiceRegion" - ] - }, - "account": { - "Ref": "AWS::AccountId" - }, - "collectionName": { - "Fn::GetAtt": [ - "CustomGeofenceCollection", - "CollectionName" - ] - } - } - ] - } - } - }, - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"geo-GeofenceCollection\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-geostoreLocatorMap-1CK1VG37JGFHH.description.txt b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-geostoreLocatorMap-1CK1VG37JGFHH.description.txt deleted file mode 100644 index f8224820c34..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-geostoreLocatorMap-1CK1VG37JGFHH.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"geo-Map","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-geostoreLocatorMap-1CK1VG37JGFHH.outputs.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-geostoreLocatorMap-1CK1VG37JGFHH.outputs.json deleted file mode 100644 index 20df3948c53..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-geostoreLocatorMap-1CK1VG37JGFHH.outputs.json +++ /dev/null @@ -1,18 +0,0 @@ -[ - { - "OutputKey": "Style", - "OutputValue": "VectorEsriStreets" - }, - { - "OutputKey": "Region", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "Arn", - "OutputValue": "arn:aws:geo:us-east-1:123456789012:map/storeLocatorMap-main" - }, - { - "OutputKey": "Name", - "OutputValue": "storeLocatorMap-main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-geostoreLocatorMap-1CK1VG37JGFHH.parameters.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-geostoreLocatorMap-1CK1VG37JGFHH.parameters.json deleted file mode 100644 index 037f17b4597..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-geostoreLocatorMap-1CK1VG37JGFHH.parameters.json +++ /dev/null @@ -1,34 +0,0 @@ -[ - { - "ParameterKey": "authuserPoolGroupsstoreLocatorAdminGroupRole", - "ParameterValue": "arn:aws:iam::123456789012:role/us-east-1_R1pdziFVe-storeLocatorAdminGroupRole" - }, - { - "ParameterKey": "isDefault", - "ParameterValue": "true" - }, - { - "ParameterKey": "authRoleName", - "ParameterValue": "amplify-storelocator-main-f9ca7-authRole" - }, - { - "ParameterKey": "unauthRoleName", - "ParameterValue": "amplify-storelocator-main-f9ca7-unauthRole" - }, - { - "ParameterKey": "mapStyle", - "ParameterValue": "VectorEsriStreets" - }, - { - "ParameterKey": "mapName", - "ParameterValue": "storeLocatorMap" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "authstorelocator41a9495f41a9495fUserPoolId", - "ParameterValue": "us-east-1_R1pdziFVe" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-geostoreLocatorMap-1CK1VG37JGFHH.template.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-geostoreLocatorMap-1CK1VG37JGFHH.template.json deleted file mode 100644 index bf53b69ff23..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-geostoreLocatorMap-1CK1VG37JGFHH.template.json +++ /dev/null @@ -1,347 +0,0 @@ -{ - "Mappings": { - "RegionMapping": { - "us-east-1": { - "locationServiceRegion": "us-east-1" - }, - "us-east-2": { - "locationServiceRegion": "us-east-2" - }, - "us-west-2": { - "locationServiceRegion": "us-west-2" - }, - "ap-southeast-1": { - "locationServiceRegion": "ap-southeast-1" - }, - "ap-southeast-2": { - "locationServiceRegion": "ap-southeast-2" - }, - "ap-northeast-1": { - "locationServiceRegion": "ap-northeast-1" - }, - "eu-central-1": { - "locationServiceRegion": "eu-central-1" - }, - "eu-north-1": { - "locationServiceRegion": "eu-north-1" - }, - "eu-west-1": { - "locationServiceRegion": "eu-west-1" - }, - "sa-east-1": { - "locationServiceRegion": "us-east-1" - }, - "ca-central-1": { - "locationServiceRegion": "us-east-1" - }, - "us-west-1": { - "locationServiceRegion": "us-west-2" - }, - "cn-north-1": { - "locationServiceRegion": "us-west-2" - }, - "cn-northwest-1": { - "locationServiceRegion": "us-west-2" - }, - "ap-south-1": { - "locationServiceRegion": "us-west-2" - }, - "ap-northeast-3": { - "locationServiceRegion": "us-west-2" - }, - "ap-northeast-2": { - "locationServiceRegion": "us-west-2" - }, - "eu-west-2": { - "locationServiceRegion": "eu-west-1" - }, - "eu-west-3": { - "locationServiceRegion": "eu-west-1" - }, - "me-south-1": { - "locationServiceRegion": "ap-southeast-1" - } - } - }, - "Parameters": { - "authuserPoolGroupsstoreLocatorAdminGroupRole": { - "Type": "String" - }, - "authstorelocator41a9495f41a9495fUserPoolId": { - "Type": "String" - }, - "authRoleName": { - "Type": "String" - }, - "unauthRoleName": { - "Type": "String" - }, - "mapName": { - "Type": "String" - }, - "mapStyle": { - "Type": "String" - }, - "env": { - "Type": "String" - }, - "isDefault": { - "Type": "String" - } - }, - "Resources": { - "CustomMapLambdaServiceRole4EE7732C": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ] - } - }, - "CustomMapLambdaServiceRoleDefaultPolicy983FDD4E": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "geo:CreateMap", - "Effect": "Allow", - "Resource": "*" - }, - { - "Action": [ - "geo:UpdateMap", - "geo:DeleteMap" - ], - "Effect": "Allow", - "Resource": { - "Fn::Sub": [ - "arn:aws:geo:${region}:${account}:map/${mapName}", - { - "region": { - "Fn::FindInMap": [ - "RegionMapping", - { - "Ref": "AWS::Region" - }, - "locationServiceRegion" - ] - }, - "account": { - "Ref": "AWS::AccountId" - }, - "mapName": { - "Fn::Join": [ - "-", - [ - { - "Ref": "mapName" - }, - { - "Ref": "env" - } - ] - ] - } - } - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "CustomMapLambdaServiceRoleDefaultPolicy983FDD4E", - "Roles": [ - { - "Ref": "CustomMapLambdaServiceRole4EE7732C" - } - ] - } - }, - "CustomMapLambda51D5D430": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "ZipFile": "const response = require('cfn-response');\nconst { LocationClient, CreateMapCommand, DeleteMapCommand, UpdateMapCommand } = require('@aws-sdk/client-location');\nexports.handler = async function (event, context) {\n try {\n console.log('REQUEST RECEIVED:' + JSON.stringify(event));\n const pricingPlan = 'RequestBasedUsage';\n if (event.RequestType === 'Create') {\n let params = {\n MapName: event.ResourceProperties.mapName,\n Configuration: {\n Style: event.ResourceProperties.mapStyle,\n },\n PricingPlan: pricingPlan,\n };\n const locationClient = new LocationClient({ region: event.ResourceProperties.region });\n const res = await locationClient.send(new CreateMapCommand(params));\n console.log('create resource response data' + JSON.stringify(res));\n if (res.MapName && res.MapArn) {\n await response.send(event, context, response.SUCCESS, res, params.MapName);\n } else {\n await response.send(event, context, response.FAILED, res, params.MapName);\n }\n }\n if (event.RequestType === 'Update') {\n let params = {\n MapName: event.ResourceProperties.mapName,\n PricingPlan: pricingPlan,\n };\n const locationClient = new LocationClient({ region: event.ResourceProperties.region });\n const res = await locationClient.send(new UpdateMapCommand(params));\n console.log('update resource response data' + JSON.stringify(res));\n if (res.MapName && res.MapArn) {\n await response.send(event, context, response.SUCCESS, res, params.MapName);\n } else {\n await response.send(event, context, response.FAILED, res, params.MapName);\n }\n }\n if (event.RequestType === 'Delete') {\n let params = {\n MapName: event.ResourceProperties.mapName,\n };\n const locationClient = new LocationClient({ region: event.ResourceProperties.region });\n const res = await locationClient.send(new DeleteMapCommand(params));\n console.log('delete resource response data' + JSON.stringify(res));\n await response.send(event, context, response.SUCCESS, res, params.MapName);\n }\n } catch (err) {\n console.log(err.stack);\n const res = { Error: err };\n await response.send(event, context, response.FAILED, res, event.ResourceProperties.mapName);\n throw err;\n }\n};\n" - }, - "Handler": "index.handler", - "Role": { - "Fn::GetAtt": [ - "CustomMapLambdaServiceRole4EE7732C", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Timeout": 300 - }, - "DependsOn": [ - "CustomMapLambdaServiceRoleDefaultPolicy983FDD4E", - "CustomMapLambdaServiceRole4EE7732C" - ] - }, - "CustomMap": { - "Type": "Custom::LambdaCallout", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "CustomMapLambda51D5D430", - "Arn" - ] - }, - "mapName": { - "Fn::Join": [ - "-", - [ - { - "Ref": "mapName" - }, - { - "Ref": "env" - } - ] - ] - }, - "mapStyle": { - "Ref": "mapStyle" - }, - "region": { - "Fn::FindInMap": [ - "RegionMapping", - { - "Ref": "AWS::Region" - }, - "locationServiceRegion" - ] - }, - "env": { - "Ref": "env" - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete" - }, - "MapPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "geo:GetMapStyleDescriptor", - "geo:GetMapGlyphs", - "geo:GetMapSprites", - "geo:GetMapTile" - ], - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "CustomMap", - "MapArn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": { - "Fn::Join": [ - "", - [ - { - "Fn::Join": [ - "-", - [ - { - "Ref": "mapName" - }, - { - "Ref": "env" - } - ] - ] - }, - "Policy" - ] - ] - }, - "Roles": [ - { - "Ref": "authRoleName" - }, - { - "Ref": "unauthRoleName" - }, - { - "Fn::Join": [ - "-", - [ - { - "Ref": "authstorelocator41a9495f41a9495fUserPoolId" - }, - "storeLocatorAdminGroupRole" - ] - ] - } - ] - } - } - }, - "Outputs": { - "Name": { - "Value": { - "Fn::GetAtt": [ - "CustomMap", - "MapName" - ] - } - }, - "Style": { - "Value": { - "Ref": "mapStyle" - } - }, - "Region": { - "Value": { - "Fn::FindInMap": [ - "RegionMapping", - { - "Ref": "AWS::Region" - }, - "locationServiceRegion" - ] - } - }, - "Arn": { - "Value": { - "Fn::GetAtt": [ - "CustomMap", - "MapArn" - ] - } - } - }, - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"geo-Map\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-geostoreLocatorSearch-1KBIBJ81FICL6.description.txt b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-geostoreLocatorSearch-1KBIBJ81FICL6.description.txt deleted file mode 100644 index 255e1dac25d..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-geostoreLocatorSearch-1KBIBJ81FICL6.description.txt +++ /dev/null @@ -1 +0,0 @@ -{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"geo-PlaceIndex","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-geostoreLocatorSearch-1KBIBJ81FICL6.outputs.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-geostoreLocatorSearch-1KBIBJ81FICL6.outputs.json deleted file mode 100644 index 244ec8691fa..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-geostoreLocatorSearch-1KBIBJ81FICL6.outputs.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "OutputKey": "Region", - "OutputValue": "us-east-1" - }, - { - "OutputKey": "Arn", - "OutputValue": "arn:aws:geo:us-east-1:123456789012:place-index/storeLocatorSearch-main" - }, - { - "OutputKey": "Name", - "OutputValue": "storeLocatorSearch-main" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-geostoreLocatorSearch-1KBIBJ81FICL6.parameters.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-geostoreLocatorSearch-1KBIBJ81FICL6.parameters.json deleted file mode 100644 index 8632772abd9..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-geostoreLocatorSearch-1KBIBJ81FICL6.parameters.json +++ /dev/null @@ -1,38 +0,0 @@ -[ - { - "ParameterKey": "authuserPoolGroupsstoreLocatorAdminGroupRole", - "ParameterValue": "arn:aws:iam::123456789012:role/us-east-1_R1pdziFVe-storeLocatorAdminGroupRole" - }, - { - "ParameterKey": "isDefault", - "ParameterValue": "true" - }, - { - "ParameterKey": "authRoleName", - "ParameterValue": "amplify-storelocator-main-f9ca7-authRole" - }, - { - "ParameterKey": "unauthRoleName", - "ParameterValue": "amplify-storelocator-main-f9ca7-unauthRole" - }, - { - "ParameterKey": "indexName", - "ParameterValue": "storeLocatorSearch" - }, - { - "ParameterKey": "dataProvider", - "ParameterValue": "Here" - }, - { - "ParameterKey": "dataSourceIntendedUse", - "ParameterValue": "SingleUse" - }, - { - "ParameterKey": "env", - "ParameterValue": "main" - }, - { - "ParameterKey": "authstorelocator41a9495f41a9495fUserPoolId", - "ParameterValue": "us-east-1_R1pdziFVe" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-geostoreLocatorSearch-1KBIBJ81FICL6.template.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-geostoreLocatorSearch-1KBIBJ81FICL6.template.json deleted file mode 100644 index 1ef40f17717..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7-geostoreLocatorSearch-1KBIBJ81FICL6.template.json +++ /dev/null @@ -1,348 +0,0 @@ -{ - "Mappings": { - "RegionMapping": { - "us-east-1": { - "locationServiceRegion": "us-east-1" - }, - "us-east-2": { - "locationServiceRegion": "us-east-2" - }, - "us-west-2": { - "locationServiceRegion": "us-west-2" - }, - "ap-southeast-1": { - "locationServiceRegion": "ap-southeast-1" - }, - "ap-southeast-2": { - "locationServiceRegion": "ap-southeast-2" - }, - "ap-northeast-1": { - "locationServiceRegion": "ap-northeast-1" - }, - "eu-central-1": { - "locationServiceRegion": "eu-central-1" - }, - "eu-north-1": { - "locationServiceRegion": "eu-north-1" - }, - "eu-west-1": { - "locationServiceRegion": "eu-west-1" - }, - "sa-east-1": { - "locationServiceRegion": "us-east-1" - }, - "ca-central-1": { - "locationServiceRegion": "us-east-1" - }, - "us-west-1": { - "locationServiceRegion": "us-west-2" - }, - "cn-north-1": { - "locationServiceRegion": "us-west-2" - }, - "cn-northwest-1": { - "locationServiceRegion": "us-west-2" - }, - "ap-south-1": { - "locationServiceRegion": "us-west-2" - }, - "ap-northeast-3": { - "locationServiceRegion": "us-west-2" - }, - "ap-northeast-2": { - "locationServiceRegion": "us-west-2" - }, - "eu-west-2": { - "locationServiceRegion": "eu-west-1" - }, - "eu-west-3": { - "locationServiceRegion": "eu-west-1" - }, - "me-south-1": { - "locationServiceRegion": "ap-southeast-1" - } - } - }, - "Parameters": { - "authuserPoolGroupsstoreLocatorAdminGroupRole": { - "Type": "String" - }, - "authstorelocator41a9495f41a9495fUserPoolId": { - "Type": "String" - }, - "authRoleName": { - "Type": "String" - }, - "unauthRoleName": { - "Type": "String" - }, - "indexName": { - "Type": "String" - }, - "dataProvider": { - "Type": "String" - }, - "dataSourceIntendedUse": { - "Type": "String" - }, - "env": { - "Type": "String" - }, - "isDefault": { - "Type": "String" - } - }, - "Resources": { - "CustomPlaceIndexLambdaServiceRoleFD2F3C9D": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Statement": [ - { - "Action": "sts:AssumeRole", - "Effect": "Allow", - "Principal": { - "Service": "lambda.amazonaws.com" - } - } - ], - "Version": "2012-10-17" - }, - "ManagedPolicyArns": [ - { - "Fn::Join": [ - "", - [ - "arn:", - { - "Ref": "AWS::Partition" - }, - ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" - ] - ] - } - ] - } - }, - "CustomPlaceIndexLambdaServiceRoleDefaultPolicy818068B1": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": "geo:CreatePlaceIndex", - "Effect": "Allow", - "Resource": "*" - }, - { - "Action": [ - "geo:UpdatePlaceIndex", - "geo:DeletePlaceIndex" - ], - "Effect": "Allow", - "Resource": { - "Fn::Sub": [ - "arn:aws:geo:${region}:${account}:place-index/${indexName}", - { - "region": { - "Fn::FindInMap": [ - "RegionMapping", - { - "Ref": "AWS::Region" - }, - "locationServiceRegion" - ] - }, - "account": { - "Ref": "AWS::AccountId" - }, - "indexName": { - "Fn::Join": [ - "-", - [ - { - "Ref": "indexName" - }, - { - "Ref": "env" - } - ] - ] - } - } - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": "CustomPlaceIndexLambdaServiceRoleDefaultPolicy818068B1", - "Roles": [ - { - "Ref": "CustomPlaceIndexLambdaServiceRoleFD2F3C9D" - } - ] - } - }, - "CustomPlaceIndexLambda79813BB9": { - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "ZipFile": "const response = require('cfn-response');\nconst { LocationClient, CreatePlaceIndexCommand, DeletePlaceIndexCommand, UpdatePlaceIndexCommand } = require('@aws-sdk/client-location');\nexports.handler = async function (event, context) {\n try {\n console.log('REQUEST RECEIVED:' + JSON.stringify(event));\n const pricingPlan = 'RequestBasedUsage';\n if (event.RequestType === 'Create') {\n const params = {\n IndexName: event.ResourceProperties.indexName,\n DataSource: event.ResourceProperties.dataSource,\n DataSourceConfiguration: {\n IntendedUse: event.ResourceProperties.dataSourceIntendedUse,\n },\n PricingPlan: pricingPlan,\n };\n const locationClient = new LocationClient({ region: event.ResourceProperties.region });\n const res = await locationClient.send(new CreatePlaceIndexCommand(params));\n console.log('create resource response data' + JSON.stringify(res));\n if (res.IndexName && res.IndexArn) {\n event.PhysicalResourceId = res.IndexName;\n await response.send(event, context, response.SUCCESS, res, params.IndexName);\n } else {\n await response.send(event, context, response.FAILED, res, params.IndexName);\n }\n }\n if (event.RequestType === 'Update') {\n const params = {\n IndexName: event.ResourceProperties.indexName,\n DataSourceConfiguration: {\n IntendedUse: event.ResourceProperties.dataSourceIntendedUse,\n },\n PricingPlan: pricingPlan,\n };\n const locationClient = new LocationClient({ region: event.ResourceProperties.region });\n const res = await locationClient.send(new UpdatePlaceIndexCommand(params));\n console.log('update resource response data' + JSON.stringify(res));\n if (res.IndexName && res.IndexArn) {\n event.PhysicalResourceId = res.IndexName;\n await response.send(event, context, response.SUCCESS, res, params.IndexName);\n } else {\n await response.send(event, context, response.FAILED, res, params.IndexName);\n }\n }\n if (event.RequestType === 'Delete') {\n const params = {\n IndexName: event.ResourceProperties.indexName,\n };\n const locationClient = new LocationClient({ region: event.ResourceProperties.region });\n const res = await locationClient.send(new DeletePlaceIndexCommand(params));\n event.PhysicalResourceId = event.ResourceProperties.indexName;\n console.log('delete resource response data' + JSON.stringify(res));\n await response.send(event, context, response.SUCCESS, res, params.IndexName);\n }\n } catch (err) {\n console.log(err.stack);\n const res = { Error: err };\n await response.send(event, context, response.FAILED, res, event.ResourceProperties.indexName);\n throw err;\n }\n};\n" - }, - "Handler": "index.handler", - "Role": { - "Fn::GetAtt": [ - "CustomPlaceIndexLambdaServiceRoleFD2F3C9D", - "Arn" - ] - }, - "Runtime": "nodejs22.x", - "Timeout": 300 - }, - "DependsOn": [ - "CustomPlaceIndexLambdaServiceRoleDefaultPolicy818068B1", - "CustomPlaceIndexLambdaServiceRoleFD2F3C9D" - ] - }, - "CustomPlaceIndex": { - "Type": "Custom::LambdaCallout", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "CustomPlaceIndexLambda79813BB9", - "Arn" - ] - }, - "indexName": { - "Fn::Join": [ - "-", - [ - { - "Ref": "indexName" - }, - { - "Ref": "env" - } - ] - ] - }, - "dataSource": { - "Ref": "dataProvider" - }, - "dataSourceIntendedUse": { - "Ref": "dataSourceIntendedUse" - }, - "region": { - "Fn::FindInMap": [ - "RegionMapping", - { - "Ref": "AWS::Region" - }, - "locationServiceRegion" - ] - }, - "env": { - "Ref": "env" - } - }, - "UpdateReplacePolicy": "Delete", - "DeletionPolicy": "Delete" - }, - "PlaceIndexPolicy": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyDocument": { - "Statement": [ - { - "Action": [ - "geo:SearchPlaceIndexForPosition", - "geo:SearchPlaceIndexForText", - "geo:SearchPlaceIndexForSuggestions", - "geo:GetPlace" - ], - "Effect": "Allow", - "Resource": { - "Fn::GetAtt": [ - "CustomPlaceIndex", - "IndexArn" - ] - } - } - ], - "Version": "2012-10-17" - }, - "PolicyName": { - "Fn::Join": [ - "", - [ - { - "Fn::Join": [ - "-", - [ - { - "Ref": "indexName" - }, - { - "Ref": "env" - } - ] - ] - }, - "Policy" - ] - ] - }, - "Roles": [ - { - "Ref": "authRoleName" - }, - { - "Ref": "unauthRoleName" - }, - { - "Fn::Join": [ - "-", - [ - { - "Ref": "authstorelocator41a9495f41a9495fUserPoolId" - }, - "storeLocatorAdminGroupRole" - ] - ] - } - ] - } - } - }, - "Outputs": { - "Name": { - "Value": { - "Fn::GetAtt": [ - "CustomPlaceIndex", - "IndexName" - ] - } - }, - "Region": { - "Value": { - "Fn::FindInMap": [ - "RegionMapping", - { - "Ref": "AWS::Region" - }, - "locationServiceRegion" - ] - } - }, - "Arn": { - "Value": { - "Fn::GetAtt": [ - "CustomPlaceIndex", - "IndexArn" - ] - } - } - }, - "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"geo-PlaceIndex\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" -} \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7.description.txt b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7.description.txt deleted file mode 100644 index daf66c0bc85..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7.description.txt +++ /dev/null @@ -1 +0,0 @@ -Root Stack for AWS Amplify CLI \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7.outputs.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7.outputs.json deleted file mode 100644 index 7adc659344c..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7.outputs.json +++ /dev/null @@ -1,42 +0,0 @@ -[ - { - "OutputKey": "AuthRoleName", - "OutputValue": "amplify-storelocator-main-f9ca7-authRole" - }, - { - "OutputKey": "UnauthRoleArn", - "OutputValue": "arn:aws:iam::123456789012:role/amplify-storelocator-main-f9ca7-unauthRole" - }, - { - "OutputKey": "AuthRoleArn", - "OutputValue": "arn:aws:iam::123456789012:role/amplify-storelocator-main-f9ca7-authRole" - }, - { - "OutputKey": "Region", - "OutputValue": "us-east-1", - "Description": "CloudFormation provider root stack Region", - "ExportName": "amplify-storelocator-main-f9ca7-Region" - }, - { - "OutputKey": "DeploymentBucketName", - "OutputValue": "amplify-storelocator-main-f9ca7-deployment", - "Description": "CloudFormation provider root stack deployment bucket name", - "ExportName": "amplify-storelocator-main-f9ca7-DeploymentBucketName" - }, - { - "OutputKey": "UnauthRoleName", - "OutputValue": "amplify-storelocator-main-f9ca7-unauthRole" - }, - { - "OutputKey": "StackName", - "OutputValue": "amplify-storelocator-main-f9ca7", - "Description": "CloudFormation provider root stack ID", - "ExportName": "amplify-storelocator-main-f9ca7-StackName" - }, - { - "OutputKey": "StackId", - "OutputValue": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-storelocator-main-f9ca7/06c2ecf0-279e-11f1-a161-0ea0286337e9", - "Description": "CloudFormation provider root stack name", - "ExportName": "amplify-storelocator-main-f9ca7-StackId" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7.parameters.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7.parameters.json deleted file mode 100644 index 4de99a17daa..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7.parameters.json +++ /dev/null @@ -1,14 +0,0 @@ -[ - { - "ParameterKey": "AuthRoleName", - "ParameterValue": "amplify-storelocator-main-f9ca7-authRole" - }, - { - "ParameterKey": "DeploymentBucketName", - "ParameterValue": "amplify-storelocator-main-f9ca7-deployment" - }, - { - "ParameterKey": "UnauthRoleName", - "ParameterValue": "amplify-storelocator-main-f9ca7-unauthRole" - } -] \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7.template.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7.template.json deleted file mode 100644 index d2b7054fe5b..00000000000 --- a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-main-f9ca7.template.json +++ /dev/null @@ -1,653 +0,0 @@ -{ - "Description": "Root Stack for AWS Amplify CLI", - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "DeploymentBucketName": { - "Type": "String", - "Default": "DeploymentBucket", - "Description": "Name of the common deployment bucket provided by the parent stack" - }, - "AuthRoleName": { - "Type": "String", - "Default": "AuthRoleName", - "Description": "Name of the common deployment bucket provided by the parent stack" - }, - "UnauthRoleName": { - "Type": "String", - "Default": "UnAuthRoleName", - "Description": "Name of the common deployment bucket provided by the parent stack" - } - }, - "Outputs": { - "Region": { - "Description": "CloudFormation provider root stack Region", - "Value": { - "Ref": "AWS::Region" - }, - "Export": { - "Name": { - "Fn::Sub": "${AWS::StackName}-Region" - } - } - }, - "StackName": { - "Description": "CloudFormation provider root stack ID", - "Value": { - "Ref": "AWS::StackName" - }, - "Export": { - "Name": { - "Fn::Sub": "${AWS::StackName}-StackName" - } - } - }, - "StackId": { - "Description": "CloudFormation provider root stack name", - "Value": { - "Ref": "AWS::StackId" - }, - "Export": { - "Name": { - "Fn::Sub": "${AWS::StackName}-StackId" - } - } - }, - "AuthRoleArn": { - "Value": { - "Fn::GetAtt": [ - "AuthRole", - "Arn" - ] - } - }, - "UnauthRoleArn": { - "Value": { - "Fn::GetAtt": [ - "UnauthRole", - "Arn" - ] - } - }, - "DeploymentBucketName": { - "Description": "CloudFormation provider root stack deployment bucket name", - "Value": { - "Ref": "DeploymentBucketName" - }, - "Export": { - "Name": { - "Fn::Sub": "${AWS::StackName}-DeploymentBucketName" - } - } - }, - "AuthRoleName": { - "Value": { - "Ref": "AuthRole" - } - }, - "UnauthRoleName": { - "Value": { - "Ref": "UnauthRole" - } - } - }, - "Resources": { - "DeploymentBucket": { - "Type": "AWS::S3::Bucket", - "Properties": { - "BucketName": { - "Ref": "DeploymentBucketName" - }, - "BucketEncryption": { - "ServerSideEncryptionConfiguration": [ - { - "ServerSideEncryptionByDefault": { - "SSEAlgorithm": "AES256" - } - } - ] - } - }, - "UpdateReplacePolicy": "Retain", - "DeletionPolicy": "Retain" - }, - "DeploymentBucketBlockHTTP": { - "Type": "AWS::S3::BucketPolicy", - "Properties": { - "Bucket": { - "Ref": "DeploymentBucketName" - }, - "PolicyDocument": { - "Statement": [ - { - "Action": "s3:*", - "Effect": "Deny", - "Principal": "*", - "Resource": [ - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "DeploymentBucketName" - }, - "/*" - ] - ] - }, - { - "Fn::Join": [ - "", - [ - "arn:aws:s3:::", - { - "Ref": "DeploymentBucketName" - } - ] - ] - } - ], - "Condition": { - "Bool": { - "aws:SecureTransport": false - } - } - } - ] - } - } - }, - "AuthRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Sid": "", - "Effect": "Deny", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - }, - "Action": "sts:AssumeRoleWithWebIdentity" - } - ] - }, - "RoleName": { - "Ref": "AuthRoleName" - } - } - }, - "UnauthRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Sid": "", - "Effect": "Deny", - "Principal": { - "Federated": "cognito-identity.amazonaws.com" - }, - "Action": "sts:AssumeRoleWithWebIdentity" - } - ] - }, - "RoleName": { - "Ref": "UnauthRoleName" - } - } - }, - "AuthTriggerCustomLambdaStack": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json", - "Parameters": { - "env": "main", - "userpoolId": { - "Fn::GetAtt": [ - "authstorelocator41a9495f41a9495f", - "Outputs.UserPoolId" - ] - }, - "userpoolArn": { - "Fn::GetAtt": [ - "authstorelocator41a9495f41a9495f", - "Outputs.UserPoolArn" - ] - }, - "functionstorelocator41a9495f41a9495fPostConfirmationLambdaExecutionRole": { - "Fn::GetAtt": [ - "functionstorelocator41a9495f41a9495fPostConfirmation", - "Outputs.LambdaExecutionRoleArn" - ] - }, - "functionstorelocator41a9495f41a9495fPostConfirmationArn": { - "Fn::GetAtt": [ - "functionstorelocator41a9495f41a9495fPostConfirmation", - "Outputs.Arn" - ] - }, - "functionstorelocator41a9495f41a9495fPostConfirmationName": { - "Fn::GetAtt": [ - "functionstorelocator41a9495f41a9495fPostConfirmation", - "Outputs.Name" - ] - } - } - }, - "DependsOn": [ - "authstorelocator41a9495f41a9495f", - "functionstorelocator41a9495f41a9495fPostConfirmation" - ] - }, - "authstorelocator41a9495f41a9495f": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/auth/storelocator41a9495f41a9495f-cloudformation-template.json", - "Parameters": { - "identityPoolName": "storelocator41a9495f_identitypool_41a9495f", - "allowUnauthenticatedIdentities": true, - "resourceNameTruncated": "storel41a9495f", - "userPoolName": "storelocator41a9495f_userpool_41a9495f", - "autoVerifiedAttributes": "email", - "mfaConfiguration": "OFF", - "mfaTypes": "SMS Text Message", - "smsAuthenticationMessage": "Your authentication code is {####}", - "smsVerificationMessage": "Your verification code is {####}", - "emailVerificationSubject": "Your verification code", - "emailVerificationMessage": "Your verification code is {####}", - "defaultPasswordPolicy": false, - "passwordPolicyMinLength": 8, - "passwordPolicyCharacters": "", - "requiredAttributes": "email", - "aliasAttributes": "", - "userpoolClientGenerateSecret": false, - "userpoolClientRefreshTokenValidity": "100", - "userpoolClientWriteAttributes": "email", - "userpoolClientReadAttributes": "email", - "userpoolClientLambdaRole": "storel41a9495f_userpoolclient_lambda_role", - "userpoolClientSetAttributes": false, - "sharedId": "41a9495f", - "resourceName": "storelocator41a9495f41a9495f", - "authSelections": "identityPoolAndUserPool", - "useDefault": "manual", - "thirdPartyAuth": false, - "usernameAttributes": "email", - "userPoolGroups": true, - "adminQueries": false, - "triggers": "{\"PostConfirmation\":[\"add-to-group\"]}", - "hostedUI": false, - "userPoolGroupList": "storeLocatorAdmin", - "serviceName": "Cognito", - "usernameCaseSensitive": false, - "useEnabledMfas": true, - "authRoleArn": { - "Fn::GetAtt": [ - "AuthRole", - "Arn" - ] - }, - "unauthRoleArn": { - "Fn::GetAtt": [ - "UnauthRole", - "Arn" - ] - }, - "breakCircularDependency": true, - "dependsOn": "[object Object]", - "permissions": "{\"policyName\":\"AddToGroupCognito\",\"trigger\":\"PostConfirmation\",\"effect\":\"Allow\",\"actions\":[\"cognito-idp:AdminAddUserToGroup\",\"cognito-idp:GetGroup\",\"cognito-idp:CreateGroup\"],\"resource\":{\"paramType\":\"!GetAtt\",\"keys\":[\"UserPool\",\"Arn\"]}}", - "authTriggerConnections": "{\"triggerType\":\"PostConfirmation\",\"lambdaFunctionName\":\"storelocator41a9495f41a9495fPostConfirmation\"}", - "env": "main" - } - } - }, - "authuserPoolGroups": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", - "Parameters": { - "AuthRoleArn": { - "Fn::GetAtt": [ - "AuthRole", - "Arn" - ] - }, - "UnauthRoleArn": { - "Fn::GetAtt": [ - "UnauthRole", - "Arn" - ] - }, - "authstorelocator41a9495f41a9495fUserPoolId": { - "Fn::GetAtt": [ - "authstorelocator41a9495f41a9495f", - "Outputs.UserPoolId" - ] - }, - "authstorelocator41a9495f41a9495fAppClientIDWeb": { - "Fn::GetAtt": [ - "authstorelocator41a9495f41a9495f", - "Outputs.AppClientIDWeb" - ] - }, - "authstorelocator41a9495f41a9495fAppClientID": { - "Fn::GetAtt": [ - "authstorelocator41a9495f41a9495f", - "Outputs.AppClientID" - ] - }, - "authstorelocator41a9495f41a9495fIdentityPoolId": { - "Fn::GetAtt": [ - "authstorelocator41a9495f41a9495f", - "Outputs.IdentityPoolId" - ] - }, - "env": "main" - } - } - }, - "functionstorelocator41a9495f41a9495fPostConfirmation": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/function/storelocator41a9495f41a9495fPostConfirmation-cloudformation-template.json", - "Parameters": { - "modules": "add-to-group", - "resourceName": "storelocator41a9495f41a9495fPostConfirmation", - "GROUP": "storeLocatorAdmin", - "deploymentBucketName": "amplify-storelocator-main-f9ca7-deployment", - "s3Key": "amplify-builds/storelocator41a9495f41a9495fPostConfirmation-6a6c746d4739755a384a-build.zip", - "env": "main" - } - } - }, - "geostoreLocatorGeofence": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/geo/storeLocatorGeofence-cloudformation-template.json", - "Parameters": { - "collectionName": "storeLocatorGeofence", - "isDefault": true, - "authstorelocator41a9495f41a9495fUserPoolId": { - "Fn::GetAtt": [ - "authstorelocator41a9495f41a9495f", - "Outputs.UserPoolId" - ] - }, - "authuserPoolGroupsstoreLocatorAdminGroupRole": { - "Fn::GetAtt": [ - "authuserPoolGroups", - "Outputs.storeLocatorAdminGroupRole" - ] - }, - "env": "main" - } - } - }, - "geostoreLocatorMap": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/geo/storeLocatorMap-cloudformation-template.json", - "Parameters": { - "authRoleName": { - "Ref": "AuthRoleName" - }, - "unauthRoleName": { - "Ref": "UnauthRoleName" - }, - "mapName": "storeLocatorMap", - "mapStyle": "VectorEsriStreets", - "isDefault": true, - "authstorelocator41a9495f41a9495fUserPoolId": { - "Fn::GetAtt": [ - "authstorelocator41a9495f41a9495f", - "Outputs.UserPoolId" - ] - }, - "authuserPoolGroupsstoreLocatorAdminGroupRole": { - "Fn::GetAtt": [ - "authuserPoolGroups", - "Outputs.storeLocatorAdminGroupRole" - ] - }, - "env": "main" - } - } - }, - "geostoreLocatorSearch": { - "Type": "AWS::CloudFormation::Stack", - "Properties": { - "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-main-f9ca7-deployment/amplify-cfn-templates/geo/storeLocatorSearch-cloudformation-template.json", - "Parameters": { - "authRoleName": { - "Ref": "AuthRoleName" - }, - "unauthRoleName": { - "Ref": "UnauthRoleName" - }, - "indexName": "storeLocatorSearch", - "dataProvider": "Here", - "dataSourceIntendedUse": "SingleUse", - "isDefault": true, - "authstorelocator41a9495f41a9495fUserPoolId": { - "Fn::GetAtt": [ - "authstorelocator41a9495f41a9495f", - "Outputs.UserPoolId" - ] - }, - "authuserPoolGroupsstoreLocatorAdminGroupRole": { - "Fn::GetAtt": [ - "authuserPoolGroups", - "Outputs.storeLocatorAdminGroupRole" - ] - }, - "env": "main" - } - } - }, - "UpdateRolesWithIDPFunction": { - "DependsOn": [ - "AuthRole", - "UnauthRole", - "authstorelocator41a9495f41a9495f" - ], - "Type": "AWS::Lambda::Function", - "Properties": { - "Code": { - "ZipFile": { - "Fn::Join": [ - "\n", - [ - "const response = require('cfn-response');", - "const { IAMClient, GetRoleCommand, UpdateAssumeRolePolicyCommand } = require('@aws-sdk/client-iam');", - "exports.handler = function(event, context) {", - " // Don't return promise, response.send() marks context as done internally", - " const ignoredPromise = handleEvent(event, context)", - "};", - "async function handleEvent(event, context) {", - " try {", - " let authRoleName = event.ResourceProperties.authRoleName;", - " let unauthRoleName = event.ResourceProperties.unauthRoleName;", - " let idpId = event.ResourceProperties.idpId;", - " let authParamsJson = {", - " 'Version': '2012-10-17',", - " 'Statement': [{", - " 'Effect': 'Allow',", - " 'Principal': {'Federated': 'cognito-identity.amazonaws.com'},", - " 'Action': 'sts:AssumeRoleWithWebIdentity',", - " 'Condition': {", - " 'StringEquals': {'cognito-identity.amazonaws.com:aud': idpId},", - " 'ForAnyValue:StringLike': {'cognito-identity.amazonaws.com:amr': 'authenticated'}", - " }", - " }]", - " };", - " let unauthParamsJson = {", - " 'Version': '2012-10-17',", - " 'Statement': [{", - " 'Effect': 'Allow',", - " 'Principal': {'Federated': 'cognito-identity.amazonaws.com'},", - " 'Action': 'sts:AssumeRoleWithWebIdentity',", - " 'Condition': {", - " 'StringEquals': {'cognito-identity.amazonaws.com:aud': idpId},", - " 'ForAnyValue:StringLike': {'cognito-identity.amazonaws.com:amr': 'unauthenticated'}", - " }", - " }]", - " };", - " if (event.RequestType === 'Delete') {", - " try {", - " delete authParamsJson.Statement[0].Condition;", - " delete unauthParamsJson.Statement[0].Condition;", - " authParamsJson.Statement[0].Effect = 'Deny'", - " unauthParamsJson.Statement[0].Effect = 'Deny'", - " let authParams = {PolicyDocument: JSON.stringify(authParamsJson), RoleName: authRoleName};", - " let unauthParams = {PolicyDocument: JSON.stringify(unauthParamsJson), RoleName: unauthRoleName};", - " const iam = new IAMClient({region: event.ResourceProperties.region});", - " let res = await Promise.all([", - " iam.send(new GetRoleCommand({RoleName: authParams.RoleName})),", - " iam.send(new GetRoleCommand({RoleName: unauthParams.RoleName}))", - " ]);", - " res = await Promise.all([", - " iam.send(new UpdateAssumeRolePolicyCommand(authParams)),", - " iam.send(new UpdateAssumeRolePolicyCommand(unauthParams))", - " ]);", - " response.send(event, context, response.SUCCESS, {});", - " } catch (err) {", - " console.log(err.stack);", - " response.send(event, context, response.SUCCESS, {Error: err});", - " }", - " } else if (event.RequestType === 'Update' || event.RequestType === 'Create') {", - " const iam = new IAMClient({region: event.ResourceProperties.region});", - " let authParams = {PolicyDocument: JSON.stringify(authParamsJson), RoleName: authRoleName};", - " let unauthParams = {PolicyDocument: JSON.stringify(unauthParamsJson), RoleName: unauthRoleName};", - " const res = await Promise.all([", - " iam.send(new UpdateAssumeRolePolicyCommand(authParams)),", - " iam.send(new UpdateAssumeRolePolicyCommand(unauthParams))", - " ]);", - " response.send(event, context, response.SUCCESS, {});", - " }", - " } catch (err) {", - " console.log(err.stack);", - " response.send(event, context, response.FAILED, {Error: err});", - " }", - "};" - ] - ] - } - }, - "Handler": "index.handler", - "Runtime": "nodejs22.x", - "Timeout": 300, - "Role": { - "Fn::GetAtt": [ - "UpdateRolesWithIDPFunctionRole", - "Arn" - ] - } - } - }, - "UpdateRolesWithIDPFunctionOutputs": { - "Type": "Custom::LambdaCallout", - "Properties": { - "ServiceToken": { - "Fn::GetAtt": [ - "UpdateRolesWithIDPFunction", - "Arn" - ] - }, - "region": { - "Ref": "AWS::Region" - }, - "idpId": { - "Fn::GetAtt": [ - "authstorelocator41a9495f41a9495f", - "Outputs.IdentityPoolId" - ] - }, - "authRoleName": { - "Ref": "AuthRole" - }, - "unauthRoleName": { - "Ref": "UnauthRole" - } - } - }, - "UpdateRolesWithIDPFunctionRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "RoleName": { - "Fn::Join": [ - "", - [ - { - "Ref": "AuthRole" - }, - "-idp" - ] - ] - }, - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": [ - "lambda.amazonaws.com" - ] - }, - "Action": [ - "sts:AssumeRole" - ] - } - ] - }, - "Policies": [ - { - "PolicyName": "UpdateRolesWithIDPFunctionPolicy", - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "logs:CreateLogGroup", - "logs:CreateLogStream", - "logs:PutLogEvents" - ], - "Resource": "arn:aws:logs:*:*:*" - }, - { - "Effect": "Allow", - "Action": [ - "iam:UpdateAssumeRolePolicy", - "iam:GetRole" - ], - "Resource": { - "Fn::GetAtt": [ - "AuthRole", - "Arn" - ] - } - }, - { - "Effect": "Allow", - "Action": [ - "iam:UpdateAssumeRolePolicy", - "iam:GetRole" - ], - "Resource": { - "Fn::GetAtt": [ - "UnauthRole", - "Arn" - ] - } - } - ] - } - } - ] - } - } - } -} \ No newline at end of file diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-AuthTriggerCustomLambdaStack-x.description.txt b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-AuthTriggerCustomLambdaStack-x.description.txt new file mode 100644 index 00000000000..4fd3d424953 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-AuthTriggerCustomLambdaStack-x.description.txt @@ -0,0 +1 @@ +Custom Resource stack for Auth Trigger created using Amplify CLI diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-AuthTriggerCustomLambdaStack-x.outputs.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-AuthTriggerCustomLambdaStack-x.outputs.json new file mode 100644 index 00000000000..fe51488c706 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-AuthTriggerCustomLambdaStack-x.outputs.json @@ -0,0 +1 @@ +[] diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-AuthTriggerCustomLambdaStack-x.parameters.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-AuthTriggerCustomLambdaStack-x.parameters.json new file mode 100644 index 00000000000..3f1799de9e8 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-AuthTriggerCustomLambdaStack-x.parameters.json @@ -0,0 +1,26 @@ +[ + { + "ParameterKey": "userpoolId", + "ParameterValue": "us-east-1_PMTKHb3hY" + }, + { + "ParameterKey": "functionstorelocator41a9495f41a9495fPostConfirmationLambdaExecutionRole", + "ParameterValue": "arn:aws:iam::123456789012:role/storelocator41a9495f41a9495fPostConfirmation-x" + }, + { + "ParameterKey": "functionstorelocator41a9495f41a9495fPostConfirmationArn", + "ParameterValue": "arn:aws:lambda:us-east-1:123456789012:function:storelocator41a9495f41a9495fPostConfirmation-x" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "userpoolArn", + "ParameterValue": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_PMTKHb3hY" + }, + { + "ParameterKey": "functionstorelocator41a9495f41a9495fPostConfirmationName", + "ParameterValue": "storelocator41a9495f41a9495fPostConfirmation-x" + } +] diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-AuthTriggerCustomLambdaStack-x.template.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-AuthTriggerCustomLambdaStack-x.template.json new file mode 100644 index 00000000000..ef7bd68118b --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-AuthTriggerCustomLambdaStack-x.template.json @@ -0,0 +1,204 @@ +{ + "Description": "Custom Resource stack for Auth Trigger created using Amplify CLI", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "userpoolId": { + "Type": "String" + }, + "userpoolArn": { + "Type": "String" + }, + "functionstorelocator41a9495f41a9495fPostConfirmationName": { + "Type": "String" + }, + "functionstorelocator41a9495f41a9495fPostConfirmationArn": { + "Type": "String" + }, + "functionstorelocator41a9495f41a9495fPostConfirmationLambdaExecutionRole": { + "Type": "String" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + } + }, + "Resources": { + "UserPoolPostConfirmationLambdaInvokePermission": { + "Type": "AWS::Lambda::Permission", + "Properties": { + "Action": "lambda:InvokeFunction", + "FunctionName": { + "Ref": "functionstorelocator41a9495f41a9495fPostConfirmationName" + }, + "Principal": "cognito-idp.amazonaws.com", + "SourceArn": { + "Ref": "userpoolArn" + } + } + }, + "Amplifyfunctionstorelocator41a9495f41a9495fPostConfirmationNamePostConfirmationAddToGroupCognitoC0815C8F": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "cognito-idp:AdminAddUserToGroup", + "cognito-idp:GetGroup", + "cognito-idp:CreateGroup" + ], + "Effect": "Allow", + "Resource": { + "Ref": "userpoolArn" + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "AddToGroupCognito", + "Roles": [ + { + "Fn::Select": [ + 1, + { + "Fn::Split": [ + "/", + { + "Fn::Select": [ + 5, + { + "Fn::Split": [ + ":", + { + "Ref": "functionstorelocator41a9495f41a9495fPostConfirmationLambdaExecutionRole" + } + ] + } + ] + } + ] + } + ] + } + ] + } + }, + "authTriggerFnServiceRole08093B67": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ] + } + }, + "authTriggerFnServiceRoleDefaultPolicyEC9285A8": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "cognito-idp:DescribeUserPool", + "cognito-idp:UpdateUserPool" + ], + "Effect": "Allow", + "Resource": { + "Ref": "userpoolArn" + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "authTriggerFnServiceRoleDefaultPolicyEC9285A8", + "Roles": [ + { + "Ref": "authTriggerFnServiceRole08093B67" + } + ] + } + }, + "authTriggerFn7FCFA449": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "ZipFile": "const response = require('cfn-response');\nconst {\n CognitoIdentityProviderClient,\n DescribeUserPoolCommand,\n UpdateUserPoolCommand,\n} = require('@aws-sdk/client-cognito-identity-provider');\n\nexports.handler = (event, context) => {\n // Don't return promise, response.send() marks context as done internally\n void tryHandleEvent(event, context);\n};\n\nasync function tryHandleEvent(event, context) {\n const physicalResourceId =\n event.RequestType === 'Update' ? event.PhysicalResourceId : `${event.LogicalResourceId}-${event.ResourceProperties.userpoolId}`;\n try {\n await handleEvent(event);\n response.send(event, context, response.SUCCESS, {}, physicalResourceId);\n } catch (err) {\n console.log(err.stack);\n response.send(event, context, response.FAILED, { err }, physicalResourceId);\n }\n}\n\nasync function handleEvent(event) {\n const userPoolId = event.ResourceProperties.userpoolId;\n const { lambdaConfig } = event.ResourceProperties;\n const config = {};\n const cognitoClient = new CognitoIdentityProviderClient({});\n const userPoolConfig = await cognitoClient.send(new DescribeUserPoolCommand({ UserPoolId: userPoolId }));\n const userPoolParams = userPoolConfig.UserPool;\n // update userPool params\n\n const updateUserPoolConfig = {\n UserPoolId: userPoolParams.Id,\n Policies: userPoolParams.Policies,\n SmsVerificationMessage: userPoolParams.SmsVerificationMessage,\n AccountRecoverySetting: userPoolParams.AccountRecoverySetting,\n AdminCreateUserConfig: userPoolParams.AdminCreateUserConfig,\n AutoVerifiedAttributes: userPoolParams.AutoVerifiedAttributes,\n EmailConfiguration: userPoolParams.EmailConfiguration,\n EmailVerificationMessage: userPoolParams.EmailVerificationMessage,\n EmailVerificationSubject: userPoolParams.EmailVerificationSubject,\n VerificationMessageTemplate: userPoolParams.VerificationMessageTemplate,\n SmsAuthenticationMessage: userPoolParams.SmsAuthenticationMessage,\n MfaConfiguration: userPoolParams.MfaConfiguration,\n DeviceConfiguration: userPoolParams.DeviceConfiguration,\n SmsConfiguration: userPoolParams.SmsConfiguration,\n UserPoolTags: userPoolParams.UserPoolTags,\n UserPoolAddOns: userPoolParams.UserPoolAddOns,\n };\n\n // removing undefined keys\n Object.keys(updateUserPoolConfig).forEach((key) => updateUserPoolConfig[key] === undefined && delete updateUserPoolConfig[key]);\n\n /* removing UnusedAccountValidityDays as deprecated\n InvalidParameterException: Please use TemporaryPasswordValidityDays in PasswordPolicy instead of UnusedAccountValidityDays\n */\n if (updateUserPoolConfig.AdminCreateUserConfig && updateUserPoolConfig.AdminCreateUserConfig.UnusedAccountValidityDays) {\n delete updateUserPoolConfig.AdminCreateUserConfig.UnusedAccountValidityDays;\n }\n lambdaConfig.forEach((lambda) => (config[`${lambda.triggerType}`] = lambda.lambdaFunctionArn));\n if (event.RequestType === 'Delete') {\n updateUserPoolConfig.LambdaConfig = {};\n console.log(`${event.RequestType}:`, JSON.stringify(updateUserPoolConfig));\n const result = await cognitoClient.send(new UpdateUserPoolCommand(updateUserPoolConfig));\n console.log(`delete response data ${JSON.stringify(result)}`);\n } else if (event.RequestType === 'Update' || event.RequestType === 'Create') {\n updateUserPoolConfig.LambdaConfig = config;\n const result = await cognitoClient.send(new UpdateUserPoolCommand(updateUserPoolConfig));\n console.log(`createOrUpdate response data ${JSON.stringify(result)}`);\n }\n}\n" + }, + "Handler": "index.handler", + "Role": { + "Fn::GetAtt": [ + "authTriggerFnServiceRole08093B67", + "Arn" + ] + }, + "Runtime": "nodejs22.x" + }, + "DependsOn": [ + "authTriggerFnServiceRoleDefaultPolicyEC9285A8", + "authTriggerFnServiceRole08093B67" + ] + }, + "CustomAuthTriggerResource": { + "Type": "Custom::CustomAuthTriggerResourceOutputs", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "authTriggerFn7FCFA449", + "Arn" + ] + }, + "userpoolId": { + "Ref": "userpoolId" + }, + "lambdaConfig": [ + { + "triggerType": "PostConfirmation", + "lambdaFunctionName": "storelocator41a9495f41a9495fPostConfirmation", + "lambdaFunctionArn": { + "Ref": "functionstorelocator41a9495f41a9495fPostConfirmationArn" + } + } + ], + "nonce": "8aaa1044-3d08-40aa-bf90-19010aee1a16" + }, + "DependsOn": [ + "authTriggerFn7FCFA449", + "authTriggerFnServiceRoleDefaultPolicyEC9285A8", + "authTriggerFnServiceRole08093B67" + ], + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + } + } +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-authstorelocator41a9495f41a9495f-x.description.txt b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-authstorelocator41a9495f41a9495f-x.description.txt new file mode 100644 index 00000000000..348d1236678 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-authstorelocator41a9495f41a9495f-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"auth-Cognito","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-authstorelocator41a9495f41a9495f-x.outputs.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-authstorelocator41a9495f41a9495f-x.outputs.json new file mode 100644 index 00000000000..7bdc1a84afb --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-authstorelocator41a9495f41a9495f-x.outputs.json @@ -0,0 +1,35 @@ +[ + { + "OutputKey": "UserPoolId", + "OutputValue": "us-east-1_PMTKHb3hY", + "Description": "Id for the user pool" + }, + { + "OutputKey": "AppClientIDWeb", + "OutputValue": "3q5ra9590bvgqmjrls6cuntmir", + "Description": "The user pool app client id for web" + }, + { + "OutputKey": "AppClientID", + "OutputValue": "3g5sgr3m93hl8dklni4oat8c5o", + "Description": "The user pool app client id" + }, + { + "OutputKey": "IdentityPoolId", + "OutputValue": "us-east-1:7517a9de-d491-4df1-9b07-0bf87d82d7da", + "Description": "Id for the identity pool" + }, + { + "OutputKey": "UserPoolArn", + "OutputValue": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_PMTKHb3hY", + "Description": "Arn for the user pool" + }, + { + "OutputKey": "IdentityPoolName", + "OutputValue": "storelocator41a9495f_identitypool_41a9495f__x" + }, + { + "OutputKey": "UserPoolName", + "OutputValue": "storelocator41a9495f_userpool_41a9495f" + } +] diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-authstorelocator41a9495f41a9495f-x.parameters.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-authstorelocator41a9495f41a9495f-x.parameters.json new file mode 100644 index 00000000000..90bd38d571a --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-authstorelocator41a9495f41a9495f-x.parameters.json @@ -0,0 +1,182 @@ +[ + { + "ParameterKey": "usernameAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "authRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-storelocator-x-x-authRole" + }, + { + "ParameterKey": "autoVerifiedAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "allowUnauthenticatedIdentities", + "ParameterValue": "true" + }, + { + "ParameterKey": "hostedUI", + "ParameterValue": "false" + }, + { + "ParameterKey": "smsVerificationMessage", + "ParameterValue": "Your verification code is {####}" + }, + { + "ParameterKey": "userpoolClientReadAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "breakCircularDependency", + "ParameterValue": "true" + }, + { + "ParameterKey": "mfaTypes", + "ParameterValue": "SMS Text Message" + }, + { + "ParameterKey": "emailVerificationSubject", + "ParameterValue": "Your verification code" + }, + { + "ParameterKey": "sharedId", + "ParameterValue": "41a9495f" + }, + { + "ParameterKey": "useDefault", + "ParameterValue": "manual" + }, + { + "ParameterKey": "userpoolClientGenerateSecret", + "ParameterValue": "false" + }, + { + "ParameterKey": "mfaConfiguration", + "ParameterValue": "OFF" + }, + { + "ParameterKey": "identityPoolName", + "ParameterValue": "storelocator41a9495f_identitypool_41a9495f" + }, + { + "ParameterKey": "thirdPartyAuth", + "ParameterValue": "false" + }, + { + "ParameterKey": "userPoolGroupList", + "ParameterValue": "storeLocatorAdmin" + }, + { + "ParameterKey": "authSelections", + "ParameterValue": "identityPoolAndUserPool" + }, + { + "ParameterKey": "adminQueries", + "ParameterValue": "false" + }, + { + "ParameterKey": "permissions", + "ParameterValue": "{\"policyName\":\"AddToGroupCognito\",\"trigger\":\"PostConfirmation\",\"effect\":\"Allow\",\"actions\":[\"cognito-idp:AdminAddUserToGroup\",\"cognito-idp:GetGroup\",\"cognito-idp:CreateGroup\"],\"resource\":{\"paramType\":\"!GetAtt\",\"keys\":[\"UserPool\",\"Arn\"]}}" + }, + { + "ParameterKey": "resourceNameTruncated", + "ParameterValue": "storel41a9495f" + }, + { + "ParameterKey": "userPoolGroups", + "ParameterValue": "true" + }, + { + "ParameterKey": "smsAuthenticationMessage", + "ParameterValue": "Your authentication code is {####}" + }, + { + "ParameterKey": "functionstorelocator41a9495f41a9495fPostConfirmationArn", + "ParameterValue": "functionstorelocator41a9495f41a9495fPostConfirmationArn" + }, + { + "ParameterKey": "functionstorelocator41a9495f41a9495fPostConfirmationName", + "ParameterValue": "functionstorelocator41a9495f41a9495fPostConfirmationName" + }, + { + "ParameterKey": "passwordPolicyMinLength", + "ParameterValue": "8" + }, + { + "ParameterKey": "userPoolName", + "ParameterValue": "storelocator41a9495f_userpool_41a9495f" + }, + { + "ParameterKey": "userpoolClientWriteAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "dependsOn", + "ParameterValue": "[object Object]" + }, + { + "ParameterKey": "useEnabledMfas", + "ParameterValue": "true" + }, + { + "ParameterKey": "usernameCaseSensitive", + "ParameterValue": "false" + }, + { + "ParameterKey": "resourceName", + "ParameterValue": "storelocator41a9495f41a9495f" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "triggers", + "ParameterValue": "{\"PostConfirmation\":[\"add-to-group\"]}" + }, + { + "ParameterKey": "serviceName", + "ParameterValue": "Cognito" + }, + { + "ParameterKey": "emailVerificationMessage", + "ParameterValue": "Your verification code is {####}" + }, + { + "ParameterKey": "userpoolClientRefreshTokenValidity", + "ParameterValue": "100" + }, + { + "ParameterKey": "userpoolClientSetAttributes", + "ParameterValue": "false" + }, + { + "ParameterKey": "unauthRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-storelocator-x-x-unauthRole" + }, + { + "ParameterKey": "requiredAttributes", + "ParameterValue": "email" + }, + { + "ParameterKey": "passwordPolicyCharacters", + "ParameterValue": "" + }, + { + "ParameterKey": "authTriggerConnections", + "ParameterValue": "{\"triggerType\":\"PostConfirmation\",\"lambdaFunctionName\":\"storelocator41a9495f41a9495fPostConfirmation\"}" + }, + { + "ParameterKey": "aliasAttributes", + "ParameterValue": "" + }, + { + "ParameterKey": "userpoolClientLambdaRole", + "ParameterValue": "storel41a9495f_userpoolclient_lambda_role" + }, + { + "ParameterKey": "defaultPasswordPolicy", + "ParameterValue": "false" + } +] diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-authstorelocator41a9495f41a9495f-x.template.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-authstorelocator41a9495f41a9495f-x.template.json new file mode 100644 index 00000000000..630487e5117 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-authstorelocator41a9495f41a9495f-x.template.json @@ -0,0 +1,486 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "functionstorelocator41a9495f41a9495fPostConfirmationArn": { + "Type": "String", + "Default": "functionstorelocator41a9495f41a9495fPostConfirmationArn" + }, + "functionstorelocator41a9495f41a9495fPostConfirmationName": { + "Type": "String", + "Default": "functionstorelocator41a9495f41a9495fPostConfirmationName" + }, + "identityPoolName": { + "Type": "String" + }, + "allowUnauthenticatedIdentities": { + "Type": "String" + }, + "resourceNameTruncated": { + "Type": "String" + }, + "userPoolName": { + "Type": "String" + }, + "autoVerifiedAttributes": { + "Type": "CommaDelimitedList" + }, + "mfaConfiguration": { + "Type": "String" + }, + "mfaTypes": { + "Type": "CommaDelimitedList" + }, + "smsAuthenticationMessage": { + "Type": "String" + }, + "smsVerificationMessage": { + "Type": "String" + }, + "emailVerificationSubject": { + "Type": "String" + }, + "emailVerificationMessage": { + "Type": "String" + }, + "defaultPasswordPolicy": { + "Type": "String" + }, + "passwordPolicyMinLength": { + "Type": "String" + }, + "passwordPolicyCharacters": { + "Type": "CommaDelimitedList" + }, + "requiredAttributes": { + "Type": "CommaDelimitedList" + }, + "aliasAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientGenerateSecret": { + "Type": "String" + }, + "userpoolClientRefreshTokenValidity": { + "Type": "String" + }, + "userpoolClientWriteAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientReadAttributes": { + "Type": "CommaDelimitedList" + }, + "userpoolClientLambdaRole": { + "Type": "String" + }, + "userpoolClientSetAttributes": { + "Type": "String" + }, + "sharedId": { + "Type": "String" + }, + "resourceName": { + "Type": "String" + }, + "authSelections": { + "Type": "String" + }, + "useDefault": { + "Type": "String" + }, + "thirdPartyAuth": { + "Type": "String" + }, + "usernameAttributes": { + "Type": "CommaDelimitedList" + }, + "userPoolGroups": { + "Type": "String" + }, + "adminQueries": { + "Type": "String" + }, + "triggers": { + "Type": "String" + }, + "hostedUI": { + "Type": "String" + }, + "userPoolGroupList": { + "Type": "CommaDelimitedList" + }, + "serviceName": { + "Type": "String" + }, + "usernameCaseSensitive": { + "Type": "String" + }, + "useEnabledMfas": { + "Type": "String" + }, + "authRoleArn": { + "Type": "String" + }, + "unauthRoleArn": { + "Type": "String" + }, + "breakCircularDependency": { + "Type": "String" + }, + "dependsOn": { + "Type": "CommaDelimitedList" + }, + "permissions": { + "Type": "CommaDelimitedList" + }, + "authTriggerConnections": { + "Type": "CommaDelimitedList" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + } + }, + "Resources": { + "UserPool": { + "Type": "AWS::Cognito::UserPool", + "Properties": { + "AutoVerifiedAttributes": [ + "email" + ], + "EmailVerificationMessage": { + "Ref": "emailVerificationMessage" + }, + "EmailVerificationSubject": { + "Ref": "emailVerificationSubject" + }, + "MfaConfiguration": { + "Ref": "mfaConfiguration" + }, + "Policies": { + "PasswordPolicy": { + "MinimumLength": { + "Ref": "passwordPolicyMinLength" + }, + "RequireLowercase": false, + "RequireNumbers": false, + "RequireSymbols": false, + "RequireUppercase": false + } + }, + "Schema": [ + { + "Mutable": true, + "Name": "email", + "Required": true + } + ], + "UserAttributeUpdateSettings": { + "AttributesRequireVerificationBeforeUpdate": [ + "email" + ] + }, + "UserPoolName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + { + "Ref": "userPoolName" + }, + { + "Fn::Join": [ + "", + [ + { + "Ref": "userPoolName" + }, + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "UsernameAttributes": { + "Ref": "usernameAttributes" + }, + "UsernameConfiguration": { + "CaseSensitive": false + } + } + }, + "UserPoolClientWeb": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "storel41a9495f_app_clientWeb", + "RefreshTokenValidity": { + "Ref": "userpoolClientRefreshTokenValidity" + }, + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": { + "Ref": "UserPool" + } + }, + "DependsOn": [ + "UserPool" + ] + }, + "UserPoolClient": { + "Type": "AWS::Cognito::UserPoolClient", + "Properties": { + "ClientName": "storel41a9495f_app_client", + "GenerateSecret": { + "Ref": "userpoolClientGenerateSecret" + }, + "RefreshTokenValidity": { + "Ref": "userpoolClientRefreshTokenValidity" + }, + "TokenValidityUnits": { + "RefreshToken": "days" + }, + "UserPoolId": { + "Ref": "UserPool" + } + }, + "DependsOn": [ + "UserPool" + ] + }, + "UserPoolClientRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + }, + "Action": "sts:AssumeRole" + } + ] + }, + "RoleName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + { + "Ref": "userpoolClientLambdaRole" + }, + { + "Fn::Join": [ + "", + [ + "upClientLambdaRole41a9495f", + { + "Fn::Select": [ + 3, + { + "Fn::Split": [ + "-", + { + "Ref": "AWS::StackName" + } + ] + } + ] + }, + "-", + { + "Ref": "env" + } + ] + ] + } + ] + } + } + }, + "IdentityPool": { + "Type": "AWS::Cognito::IdentityPool", + "Properties": { + "AllowUnauthenticatedIdentities": { + "Ref": "allowUnauthenticatedIdentities" + }, + "CognitoIdentityProviders": [ + { + "ClientId": { + "Ref": "UserPoolClient" + }, + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": { + "Ref": "UserPool" + } + } + ] + } + }, + { + "ClientId": { + "Ref": "UserPoolClientWeb" + }, + "ProviderName": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "client": { + "Ref": "UserPool" + } + } + ] + } + } + ], + "IdentityPoolName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "storelocator41a9495f_identitypool_41a9495f", + { + "Fn::Join": [ + "", + [ + "storelocator41a9495f_identitypool_41a9495f__", + { + "Ref": "env" + } + ] + ] + } + ] + } + } + }, + "IdentityPoolRoleMap": { + "Type": "AWS::Cognito::IdentityPoolRoleAttachment", + "Properties": { + "IdentityPoolId": { + "Ref": "IdentityPool" + }, + "RoleMappings": { + "UserPoolClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${userPool}:${client}", + { + "region": { + "Ref": "AWS::Region" + }, + "userPool": { + "Ref": "UserPool" + }, + "client": { + "Ref": "UserPoolClient" + } + } + ] + }, + "Type": "Token" + }, + "UserPoolWebClientRoleMapping": { + "AmbiguousRoleResolution": "AuthenticatedRole", + "IdentityProvider": { + "Fn::Sub": [ + "cognito-idp.${region}.amazonaws.com/${userPool}:${webClient}", + { + "region": { + "Ref": "AWS::Region" + }, + "userPool": { + "Ref": "UserPool" + }, + "webClient": { + "Ref": "UserPoolClientWeb" + } + } + ] + }, + "Type": "Token" + } + }, + "Roles": { + "unauthenticated": { + "Ref": "unauthRoleArn" + }, + "authenticated": { + "Ref": "authRoleArn" + } + } + }, + "DependsOn": [ + "IdentityPool", + "UserPoolClient", + "UserPoolClientWeb" + ] + } + }, + "Outputs": { + "IdentityPoolId": { + "Description": "Id for the identity pool", + "Value": { + "Ref": "IdentityPool" + } + }, + "IdentityPoolName": { + "Value": { + "Fn::GetAtt": [ + "IdentityPool", + "Name" + ] + } + }, + "UserPoolId": { + "Description": "Id for the user pool", + "Value": { + "Ref": "UserPool" + } + }, + "UserPoolArn": { + "Description": "Arn for the user pool", + "Value": { + "Fn::GetAtt": [ + "UserPool", + "Arn" + ] + } + }, + "UserPoolName": { + "Value": { + "Ref": "userPoolName" + } + }, + "AppClientIDWeb": { + "Description": "The user pool app client id for web", + "Value": { + "Ref": "UserPoolClientWeb" + } + }, + "AppClientID": { + "Description": "The user pool app client id", + "Value": { + "Ref": "UserPoolClient" + } + } + } +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-authuserPoolGroups-x.description.txt b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-authuserPoolGroups-x.description.txt new file mode 100644 index 00000000000..7bbda7a42c1 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-authuserPoolGroups-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"auth-Cognito-UserPool-Groups","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-authuserPoolGroups-x.outputs.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-authuserPoolGroups-x.outputs.json new file mode 100644 index 00000000000..a6de798118e --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-authuserPoolGroups-x.outputs.json @@ -0,0 +1,6 @@ +[ + { + "OutputKey": "storeLocatorAdminGroupRole", + "OutputValue": "arn:aws:iam::123456789012:role/us-east-1_PMTKHb3hY-storeLocatorAdminGroupRole" + } +] diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-authuserPoolGroups-x.parameters.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-authuserPoolGroups-x.parameters.json new file mode 100644 index 00000000000..a80fc891430 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-authuserPoolGroups-x.parameters.json @@ -0,0 +1,30 @@ +[ + { + "ParameterKey": "UnauthRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-storelocator-x-x-unauthRole" + }, + { + "ParameterKey": "authstorelocator41a9495f41a9495fAppClientID", + "ParameterValue": "3g5sgr3m93hl8dklni4oat8c5o" + }, + { + "ParameterKey": "authstorelocator41a9495f41a9495fIdentityPoolId", + "ParameterValue": "us-east-1:7517a9de-d491-4df1-9b07-0bf87d82d7da" + }, + { + "ParameterKey": "AuthRoleArn", + "ParameterValue": "arn:aws:iam::123456789012:role/amplify-storelocator-x-x-authRole" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "authstorelocator41a9495f41a9495fAppClientIDWeb", + "ParameterValue": "3q5ra9590bvgqmjrls6cuntmir" + }, + { + "ParameterKey": "authstorelocator41a9495f41a9495fUserPoolId", + "ParameterValue": "us-east-1_PMTKHb3hY" + } +] diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-authuserPoolGroups-x.template.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-authuserPoolGroups-x.template.json new file mode 100644 index 00000000000..4ba2459a5c2 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-authuserPoolGroups-x.template.json @@ -0,0 +1,109 @@ +{ + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"auth-Cognito-UserPool-Groups\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "env": { + "Type": "String" + }, + "AuthRoleArn": { + "Type": "String" + }, + "UnauthRoleArn": { + "Type": "String" + }, + "authstorelocator41a9495f41a9495fUserPoolId": { + "Type": "String", + "Default": "authstorelocator41a9495f41a9495fUserPoolId" + }, + "authstorelocator41a9495f41a9495fIdentityPoolId": { + "Type": "String", + "Default": "authstorelocator41a9495f41a9495fIdentityPoolId" + }, + "authstorelocator41a9495f41a9495fAppClientID": { + "Type": "String", + "Default": "authstorelocator41a9495f41a9495fAppClientID" + }, + "authstorelocator41a9495f41a9495fAppClientIDWeb": { + "Type": "String", + "Default": "authstorelocator41a9495f41a9495fAppClientIDWeb" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + } + }, + "Resources": { + "storeLocatorAdminGroup": { + "Type": "AWS::Cognito::UserPoolGroup", + "Properties": { + "Description": "override success", + "GroupName": "storeLocatorAdmin", + "Precedence": 1, + "RoleArn": { + "Fn::GetAtt": [ + "storeLocatorAdminGroupRole", + "Arn" + ] + }, + "UserPoolId": { + "Ref": "authstorelocator41a9495f41a9495fUserPoolId" + } + } + }, + "storeLocatorAdminGroupRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Sid": "", + "Effect": "Allow", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + }, + "Action": "sts:AssumeRoleWithWebIdentity", + "Condition": { + "StringEquals": { + "cognito-identity.amazonaws.com:aud": { + "Ref": "authstorelocator41a9495f41a9495fIdentityPoolId" + } + }, + "ForAnyValue:StringLike": { + "cognito-identity.amazonaws.com:amr": "authenticated" + } + } + } + ] + }, + "RoleName": { + "Fn::Join": [ + "", + [ + { + "Ref": "authstorelocator41a9495f41a9495fUserPoolId" + }, + "-storeLocatorAdminGroupRole" + ] + ] + } + } + } + }, + "Outputs": { + "storeLocatorAdminGroupRole": { + "Value": { + "Fn::GetAtt": [ + "storeLocatorAdminGroupRole", + "Arn" + ] + } + } + } +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-functionstorelocator41a9495f41a9495fPostCo-x.description.txt b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-functionstorelocator41a9495f41a9495fPostCo-x.description.txt new file mode 100644 index 00000000000..6cc2b5048c0 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-functionstorelocator41a9495f41a9495fPostCo-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"function-Lambda","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-functionstorelocator41a9495f41a9495fPostCo-x.outputs.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-functionstorelocator41a9495f41a9495fPostCo-x.outputs.json new file mode 100644 index 00000000000..ffd62f0b91f --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-functionstorelocator41a9495f41a9495fPostCo-x.outputs.json @@ -0,0 +1,22 @@ +[ + { + "OutputKey": "LambdaExecutionRoleArn", + "OutputValue": "arn:aws:iam::123456789012:role/storelocator41a9495f41a9495fPostConfirmation-x" + }, + { + "OutputKey": "Region", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "Arn", + "OutputValue": "arn:aws:lambda:us-east-1:123456789012:function:storelocator41a9495f41a9495fPostConfirmation-x" + }, + { + "OutputKey": "Name", + "OutputValue": "storelocator41a9495f41a9495fPostConfirmation-x" + }, + { + "OutputKey": "LambdaExecutionRole", + "OutputValue": "storelocator41a9495f41a9495fPostConfirmation-x" + } +] diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-functionstorelocator41a9495f41a9495fPostCo-x.parameters.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-functionstorelocator41a9495f41a9495fPostCo-x.parameters.json new file mode 100644 index 00000000000..5672e3bfee2 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-functionstorelocator41a9495f41a9495fPostCo-x.parameters.json @@ -0,0 +1,46 @@ +[ + { + "ParameterKey": "GROUP", + "ParameterValue": "storeLocatorAdmin" + }, + { + "ParameterKey": "parentResource", + "ParameterValue": "" + }, + { + "ParameterKey": "s3Key", + "ParameterValue": "amplify-builds/storelocator41a9495f41a9495fPostConfirmation-6a6c746d4739755a384a-build.zip" + }, + { + "ParameterKey": "functionName", + "ParameterValue": "" + }, + { + "ParameterKey": "parentStack", + "ParameterValue": "" + }, + { + "ParameterKey": "deploymentBucketName", + "ParameterValue": "amplify-storelocator-x-x-deployment" + }, + { + "ParameterKey": "roleName", + "ParameterValue": "" + }, + { + "ParameterKey": "resourceName", + "ParameterValue": "storelocator41a9495f41a9495fPostConfirmation" + }, + { + "ParameterKey": "trigger", + "ParameterValue": "true" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "modules", + "ParameterValue": "add-to-group" + } +] diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-functionstorelocator41a9495f41a9495fPostCo-x.template.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-functionstorelocator41a9495f41a9495fPostCo-x.template.json new file mode 100644 index 00000000000..d546185affd --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-functionstorelocator41a9495f41a9495fPostCo-x.template.json @@ -0,0 +1,235 @@ +{ + "AWSTemplateFormatVersion": "2010-09-09", + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"function-Lambda\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}", + "Parameters": { + "GROUP": { + "Type": "String", + "Default": "" + }, + "modules": { + "Type": "String", + "Default": "", + "Description": "Comma-delimited list of modules to be executed by a lambda trigger. Sent to resource as an env variable." + }, + "resourceName": { + "Type": "String", + "Default": "" + }, + "trigger": { + "Type": "String", + "Default": "true" + }, + "functionName": { + "Type": "String", + "Default": "" + }, + "roleName": { + "Type": "String", + "Default": "" + }, + "parentResource": { + "Type": "String", + "Default": "" + }, + "parentStack": { + "Type": "String", + "Default": "" + }, + "env": { + "Type": "String" + }, + "deploymentBucketName": { + "Type": "String" + }, + "s3Key": { + "Type": "String" + } + }, + "Conditions": { + "ShouldNotCreateEnvResources": { + "Fn::Equals": [ + { + "Ref": "env" + }, + "NONE" + ] + } + }, + "Resources": { + "LambdaFunction": { + "Type": "AWS::Lambda::Function", + "Metadata": { + "aws:asset:path": "./src", + "aws:asset:property": "Code" + }, + "Properties": { + "Handler": "index.handler", + "FunctionName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "storelocator41a9495f41a9495fPostConfirmation", + { + "Fn::Join": [ + "", + [ + "storelocator41a9495f41a9495fPostConfirmation", + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "Environment": { + "Variables": { + "ENV": { + "Ref": "env" + }, + "MODULES": { + "Ref": "modules" + }, + "REGION": { + "Ref": "AWS::Region" + }, + "GROUP": { + "Ref": "GROUP" + } + } + }, + "Role": { + "Fn::GetAtt": [ + "LambdaExecutionRole", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Timeout": 25, + "Code": { + "S3Bucket": { + "Ref": "deploymentBucketName" + }, + "S3Key": { + "Ref": "s3Key" + } + } + } + }, + "LambdaExecutionRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "RoleName": { + "Fn::If": [ + "ShouldNotCreateEnvResources", + "storelocator41a9495f41a9495fPostConfirmation", + { + "Fn::Join": [ + "", + [ + "storelocator41a9495f41a9495fPostConfirmation", + "-", + { + "Ref": "env" + } + ] + ] + } + ] + }, + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": [ + "lambda.amazonaws.com" + ] + }, + "Action": [ + "sts:AssumeRole" + ] + } + ] + } + } + }, + "lambdaexecutionpolicy": { + "DependsOn": [ + "LambdaExecutionRole" + ], + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyName": "lambda-execution-policy", + "Roles": [ + { + "Ref": "LambdaExecutionRole" + } + ], + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "logs:CreateLogGroup", + "logs:CreateLogStream", + "logs:PutLogEvents" + ], + "Resource": { + "Fn::Sub": [ + "arn:aws:logs:${region}:${account}:log-group:/aws/lambda/${lambda}:log-stream:*", + { + "region": { + "Ref": "AWS::Region" + }, + "account": { + "Ref": "AWS::AccountId" + }, + "lambda": { + "Ref": "LambdaFunction" + } + } + ] + } + } + ] + } + } + } + }, + "Outputs": { + "Name": { + "Value": { + "Ref": "LambdaFunction" + } + }, + "Arn": { + "Value": { + "Fn::GetAtt": [ + "LambdaFunction", + "Arn" + ] + } + }, + "LambdaExecutionRole": { + "Value": { + "Ref": "LambdaExecutionRole" + } + }, + "LambdaExecutionRoleArn": { + "Value": { + "Fn::GetAtt": [ + "LambdaExecutionRole", + "Arn" + ] + } + }, + "Region": { + "Value": { + "Ref": "AWS::Region" + } + } + } +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-geostoreLocatorGeofence-x.description.txt b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-geostoreLocatorGeofence-x.description.txt new file mode 100644 index 00000000000..24e70e4e72b --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-geostoreLocatorGeofence-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"geo-GeofenceCollection","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-geostoreLocatorGeofence-x.outputs.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-geostoreLocatorGeofence-x.outputs.json new file mode 100644 index 00000000000..c159a7157c5 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-geostoreLocatorGeofence-x.outputs.json @@ -0,0 +1,14 @@ +[ + { + "OutputKey": "Region", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "Arn", + "OutputValue": "arn:aws:geo:us-east-1:123456789012:geofence-collection/storeLocatorGeofence-x" + }, + { + "OutputKey": "Name", + "OutputValue": "storeLocatorGeofence-x" + } +] diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-geostoreLocatorGeofence-x.parameters.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-geostoreLocatorGeofence-x.parameters.json new file mode 100644 index 00000000000..e55742d33a2 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-geostoreLocatorGeofence-x.parameters.json @@ -0,0 +1,22 @@ +[ + { + "ParameterKey": "authuserPoolGroupsstoreLocatorAdminGroupRole", + "ParameterValue": "arn:aws:iam::123456789012:role/us-east-1_PMTKHb3hY-storeLocatorAdminGroupRole" + }, + { + "ParameterKey": "isDefault", + "ParameterValue": "true" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "authstorelocator41a9495f41a9495fUserPoolId", + "ParameterValue": "us-east-1_PMTKHb3hY" + }, + { + "ParameterKey": "collectionName", + "ParameterValue": "storeLocatorGeofence" + } +] diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-geostoreLocatorGeofence-x.template.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-geostoreLocatorGeofence-x.template.json new file mode 100644 index 00000000000..74626a9fe33 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-geostoreLocatorGeofence-x.template.json @@ -0,0 +1,364 @@ +{ + "Mappings": { + "RegionMapping": { + "us-east-1": { + "locationServiceRegion": "us-east-1" + }, + "us-east-2": { + "locationServiceRegion": "us-east-2" + }, + "us-west-2": { + "locationServiceRegion": "us-west-2" + }, + "ap-southeast-1": { + "locationServiceRegion": "ap-southeast-1" + }, + "ap-southeast-2": { + "locationServiceRegion": "ap-southeast-2" + }, + "ap-northeast-1": { + "locationServiceRegion": "ap-northeast-1" + }, + "eu-central-1": { + "locationServiceRegion": "eu-central-1" + }, + "eu-north-1": { + "locationServiceRegion": "eu-north-1" + }, + "eu-west-1": { + "locationServiceRegion": "eu-west-1" + }, + "sa-east-1": { + "locationServiceRegion": "us-east-1" + }, + "ca-central-1": { + "locationServiceRegion": "us-east-1" + }, + "us-west-1": { + "locationServiceRegion": "us-west-2" + }, + "cn-north-1": { + "locationServiceRegion": "us-west-2" + }, + "cn-northwest-1": { + "locationServiceRegion": "us-west-2" + }, + "ap-south-1": { + "locationServiceRegion": "us-west-2" + }, + "ap-northeast-3": { + "locationServiceRegion": "us-west-2" + }, + "ap-northeast-2": { + "locationServiceRegion": "us-west-2" + }, + "eu-west-2": { + "locationServiceRegion": "eu-west-1" + }, + "eu-west-3": { + "locationServiceRegion": "eu-west-1" + }, + "me-south-1": { + "locationServiceRegion": "ap-southeast-1" + } + } + }, + "Parameters": { + "authuserPoolGroupsstoreLocatorAdminGroupRole": { + "Type": "String" + }, + "authstorelocator41a9495f41a9495fUserPoolId": { + "Type": "String" + }, + "collectionName": { + "Type": "String" + }, + "env": { + "Type": "String" + }, + "isDefault": { + "Type": "String" + } + }, + "Resources": { + "CustomGeofenceCollectionLambdaServiceRole9040D551": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ] + } + }, + "CustomGeofenceCollectionLambdaServiceRoleDefaultPolicy0A18B369": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "geo:CreateGeofenceCollection", + "Effect": "Allow", + "Resource": "*" + }, + { + "Action": [ + "geo:UpdateGeofenceCollection", + "geo:DeleteGeofenceCollection" + ], + "Effect": "Allow", + "Resource": { + "Fn::Sub": [ + "arn:aws:geo:${region}:${account}:geofence-collection/${collectionName}", + { + "region": { + "Fn::FindInMap": [ + "RegionMapping", + { + "Ref": "AWS::Region" + }, + "locationServiceRegion" + ] + }, + "account": { + "Ref": "AWS::AccountId" + }, + "collectionName": { + "Fn::Join": [ + "-", + [ + { + "Ref": "collectionName" + }, + { + "Ref": "env" + } + ] + ] + } + } + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "CustomGeofenceCollectionLambdaServiceRoleDefaultPolicy0A18B369", + "Roles": [ + { + "Ref": "CustomGeofenceCollectionLambdaServiceRole9040D551" + } + ] + } + }, + "CustomGeofenceCollectionLambdaCA3D002B": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "ZipFile": "const response = require('cfn-response');\nconst {\n LocationClient,\n CreateGeofenceCollectionCommand,\n DeleteGeofenceCollectionCommand,\n UpdateGeofenceCollectionCommand,\n} = require('@aws-sdk/client-location');\nexports.handler = async function (event, context) {\n try {\n console.log('REQUEST RECEIVED:' + JSON.stringify(event));\n const pricingPlan = 'RequestBasedUsage';\n if (event.RequestType === 'Create') {\n const params = {\n CollectionName: event.ResourceProperties.collectionName,\n PricingPlan: pricingPlan,\n };\n const locationClient = new LocationClient({ region: event.ResourceProperties.region });\n const res = await locationClient.send(new CreateGeofenceCollectionCommand(params));\n console.log('create resource response data' + JSON.stringify(res));\n if (res.CollectionName && res.CollectionArn) {\n await response.send(event, context, response.SUCCESS, res, params.CollectionName);\n } else {\n await response.send(event, context, response.FAILED, res, params.CollectionName);\n }\n }\n if (event.RequestType === 'Update') {\n const params = {\n CollectionName: event.ResourceProperties.collectionName,\n PricingPlan: pricingPlan,\n };\n const locationClient = new LocationClient({ region: event.ResourceProperties.region });\n const res = await locationClient.send(new UpdateGeofenceCollectionCommand(params));\n console.log('update resource response data' + JSON.stringify(res));\n if (res.CollectionName) {\n await response.send(event, context, response.SUCCESS, res, params.CollectionName);\n } else {\n await response.send(event, context, response.FAILED, res, params.CollectionName);\n }\n }\n if (event.RequestType === 'Delete') {\n const params = {\n CollectionName: event.ResourceProperties.collectionName,\n };\n const locationClient = new LocationClient({ region: event.ResourceProperties.region });\n const res = await locationClient.send(new DeleteGeofenceCollectionCommand(params));\n console.log('delete resource response data' + JSON.stringify(res));\n await response.send(event, context, response.SUCCESS, res, params.CollectionName);\n }\n } catch (err) {\n console.log(err.stack);\n const res = { Error: err };\n await response.send(event, context, response.FAILED, res, event.ResourceProperties.collectionName);\n throw err;\n }\n};\n" + }, + "Handler": "index.handler", + "Role": { + "Fn::GetAtt": [ + "CustomGeofenceCollectionLambdaServiceRole9040D551", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Timeout": 300 + }, + "DependsOn": [ + "CustomGeofenceCollectionLambdaServiceRoleDefaultPolicy0A18B369", + "CustomGeofenceCollectionLambdaServiceRole9040D551" + ] + }, + "CustomGeofenceCollection": { + "Type": "Custom::LambdaCallout", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "CustomGeofenceCollectionLambdaCA3D002B", + "Arn" + ] + }, + "collectionName": { + "Fn::Join": [ + "-", + [ + { + "Ref": "collectionName" + }, + { + "Ref": "env" + } + ] + ] + }, + "region": { + "Fn::FindInMap": [ + "RegionMapping", + { + "Ref": "AWS::Region" + }, + "locationServiceRegion" + ] + }, + "env": { + "Ref": "env" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "storeLocatorAdminGeofenceCollectionPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "geo:GetGeofence", + "geo:PutGeofence", + "geo:BatchPutGeofence", + "geo:BatchDeleteGeofence", + "geo:ListGeofences" + ], + "Effect": "Allow", + "Resource": { + "Fn::Sub": [ + "arn:aws:geo:${region}:${account}:geofence-collection/${collectionName}", + { + "region": { + "Fn::FindInMap": [ + "RegionMapping", + { + "Ref": "AWS::Region" + }, + "locationServiceRegion" + ] + }, + "account": { + "Ref": "AWS::AccountId" + }, + "collectionName": { + "Fn::GetAtt": [ + "CustomGeofenceCollection", + "CollectionName" + ] + } + } + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": { + "Fn::Join": [ + "", + [ + "storeLocatorAdmin", + { + "Fn::Join": [ + "-", + [ + { + "Ref": "collectionName" + }, + { + "Ref": "env" + } + ] + ] + }, + "Policy" + ] + ] + }, + "Roles": [ + { + "Fn::Join": [ + "-", + [ + { + "Ref": "authstorelocator41a9495f41a9495fUserPoolId" + }, + "storeLocatorAdminGroupRole" + ] + ] + } + ] + } + } + }, + "Outputs": { + "Name": { + "Value": { + "Fn::GetAtt": [ + "CustomGeofenceCollection", + "CollectionName" + ] + } + }, + "Region": { + "Value": { + "Fn::FindInMap": [ + "RegionMapping", + { + "Ref": "AWS::Region" + }, + "locationServiceRegion" + ] + } + }, + "Arn": { + "Value": { + "Fn::Sub": [ + "arn:aws:geo:${region}:${account}:geofence-collection/${collectionName}", + { + "region": { + "Fn::FindInMap": [ + "RegionMapping", + { + "Ref": "AWS::Region" + }, + "locationServiceRegion" + ] + }, + "account": { + "Ref": "AWS::AccountId" + }, + "collectionName": { + "Fn::GetAtt": [ + "CustomGeofenceCollection", + "CollectionName" + ] + } + } + ] + } + } + }, + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"geo-GeofenceCollection\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-geostoreLocatorMap-x.description.txt b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-geostoreLocatorMap-x.description.txt new file mode 100644 index 00000000000..b58913156a9 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-geostoreLocatorMap-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"geo-Map","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-geostoreLocatorMap-x.outputs.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-geostoreLocatorMap-x.outputs.json new file mode 100644 index 00000000000..ed82bd2885c --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-geostoreLocatorMap-x.outputs.json @@ -0,0 +1,18 @@ +[ + { + "OutputKey": "Style", + "OutputValue": "VectorEsriStreets" + }, + { + "OutputKey": "Region", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "Arn", + "OutputValue": "arn:aws:geo:us-east-1:123456789012:map/storeLocatorMap-x" + }, + { + "OutputKey": "Name", + "OutputValue": "storeLocatorMap-x" + } +] diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-geostoreLocatorMap-x.parameters.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-geostoreLocatorMap-x.parameters.json new file mode 100644 index 00000000000..54975dbd6ab --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-geostoreLocatorMap-x.parameters.json @@ -0,0 +1,34 @@ +[ + { + "ParameterKey": "authuserPoolGroupsstoreLocatorAdminGroupRole", + "ParameterValue": "arn:aws:iam::123456789012:role/us-east-1_PMTKHb3hY-storeLocatorAdminGroupRole" + }, + { + "ParameterKey": "isDefault", + "ParameterValue": "true" + }, + { + "ParameterKey": "authRoleName", + "ParameterValue": "amplify-storelocator-x-x-authRole" + }, + { + "ParameterKey": "unauthRoleName", + "ParameterValue": "amplify-storelocator-x-x-unauthRole" + }, + { + "ParameterKey": "mapStyle", + "ParameterValue": "VectorEsriStreets" + }, + { + "ParameterKey": "mapName", + "ParameterValue": "storeLocatorMap" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "authstorelocator41a9495f41a9495fUserPoolId", + "ParameterValue": "us-east-1_PMTKHb3hY" + } +] diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-geostoreLocatorMap-x.template.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-geostoreLocatorMap-x.template.json new file mode 100644 index 00000000000..e431257a4ea --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-geostoreLocatorMap-x.template.json @@ -0,0 +1,347 @@ +{ + "Mappings": { + "RegionMapping": { + "us-east-1": { + "locationServiceRegion": "us-east-1" + }, + "us-east-2": { + "locationServiceRegion": "us-east-2" + }, + "us-west-2": { + "locationServiceRegion": "us-west-2" + }, + "ap-southeast-1": { + "locationServiceRegion": "ap-southeast-1" + }, + "ap-southeast-2": { + "locationServiceRegion": "ap-southeast-2" + }, + "ap-northeast-1": { + "locationServiceRegion": "ap-northeast-1" + }, + "eu-central-1": { + "locationServiceRegion": "eu-central-1" + }, + "eu-north-1": { + "locationServiceRegion": "eu-north-1" + }, + "eu-west-1": { + "locationServiceRegion": "eu-west-1" + }, + "sa-east-1": { + "locationServiceRegion": "us-east-1" + }, + "ca-central-1": { + "locationServiceRegion": "us-east-1" + }, + "us-west-1": { + "locationServiceRegion": "us-west-2" + }, + "cn-north-1": { + "locationServiceRegion": "us-west-2" + }, + "cn-northwest-1": { + "locationServiceRegion": "us-west-2" + }, + "ap-south-1": { + "locationServiceRegion": "us-west-2" + }, + "ap-northeast-3": { + "locationServiceRegion": "us-west-2" + }, + "ap-northeast-2": { + "locationServiceRegion": "us-west-2" + }, + "eu-west-2": { + "locationServiceRegion": "eu-west-1" + }, + "eu-west-3": { + "locationServiceRegion": "eu-west-1" + }, + "me-south-1": { + "locationServiceRegion": "ap-southeast-1" + } + } + }, + "Parameters": { + "authuserPoolGroupsstoreLocatorAdminGroupRole": { + "Type": "String" + }, + "authstorelocator41a9495f41a9495fUserPoolId": { + "Type": "String" + }, + "authRoleName": { + "Type": "String" + }, + "unauthRoleName": { + "Type": "String" + }, + "mapName": { + "Type": "String" + }, + "mapStyle": { + "Type": "String" + }, + "env": { + "Type": "String" + }, + "isDefault": { + "Type": "String" + } + }, + "Resources": { + "CustomMapLambdaServiceRole4EE7732C": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ] + } + }, + "CustomMapLambdaServiceRoleDefaultPolicy983FDD4E": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "geo:CreateMap", + "Effect": "Allow", + "Resource": "*" + }, + { + "Action": [ + "geo:UpdateMap", + "geo:DeleteMap" + ], + "Effect": "Allow", + "Resource": { + "Fn::Sub": [ + "arn:aws:geo:${region}:${account}:map/${mapName}", + { + "region": { + "Fn::FindInMap": [ + "RegionMapping", + { + "Ref": "AWS::Region" + }, + "locationServiceRegion" + ] + }, + "account": { + "Ref": "AWS::AccountId" + }, + "mapName": { + "Fn::Join": [ + "-", + [ + { + "Ref": "mapName" + }, + { + "Ref": "env" + } + ] + ] + } + } + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "CustomMapLambdaServiceRoleDefaultPolicy983FDD4E", + "Roles": [ + { + "Ref": "CustomMapLambdaServiceRole4EE7732C" + } + ] + } + }, + "CustomMapLambda51D5D430": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "ZipFile": "const response = require('cfn-response');\nconst { LocationClient, CreateMapCommand, DeleteMapCommand, UpdateMapCommand } = require('@aws-sdk/client-location');\nexports.handler = async function (event, context) {\n try {\n console.log('REQUEST RECEIVED:' + JSON.stringify(event));\n const pricingPlan = 'RequestBasedUsage';\n if (event.RequestType === 'Create') {\n let params = {\n MapName: event.ResourceProperties.mapName,\n Configuration: {\n Style: event.ResourceProperties.mapStyle,\n },\n PricingPlan: pricingPlan,\n };\n const locationClient = new LocationClient({ region: event.ResourceProperties.region });\n const res = await locationClient.send(new CreateMapCommand(params));\n console.log('create resource response data' + JSON.stringify(res));\n if (res.MapName && res.MapArn) {\n await response.send(event, context, response.SUCCESS, res, params.MapName);\n } else {\n await response.send(event, context, response.FAILED, res, params.MapName);\n }\n }\n if (event.RequestType === 'Update') {\n let params = {\n MapName: event.ResourceProperties.mapName,\n PricingPlan: pricingPlan,\n };\n const locationClient = new LocationClient({ region: event.ResourceProperties.region });\n const res = await locationClient.send(new UpdateMapCommand(params));\n console.log('update resource response data' + JSON.stringify(res));\n if (res.MapName && res.MapArn) {\n await response.send(event, context, response.SUCCESS, res, params.MapName);\n } else {\n await response.send(event, context, response.FAILED, res, params.MapName);\n }\n }\n if (event.RequestType === 'Delete') {\n let params = {\n MapName: event.ResourceProperties.mapName,\n };\n const locationClient = new LocationClient({ region: event.ResourceProperties.region });\n const res = await locationClient.send(new DeleteMapCommand(params));\n console.log('delete resource response data' + JSON.stringify(res));\n await response.send(event, context, response.SUCCESS, res, params.MapName);\n }\n } catch (err) {\n console.log(err.stack);\n const res = { Error: err };\n await response.send(event, context, response.FAILED, res, event.ResourceProperties.mapName);\n throw err;\n }\n};\n" + }, + "Handler": "index.handler", + "Role": { + "Fn::GetAtt": [ + "CustomMapLambdaServiceRole4EE7732C", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Timeout": 300 + }, + "DependsOn": [ + "CustomMapLambdaServiceRoleDefaultPolicy983FDD4E", + "CustomMapLambdaServiceRole4EE7732C" + ] + }, + "CustomMap": { + "Type": "Custom::LambdaCallout", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "CustomMapLambda51D5D430", + "Arn" + ] + }, + "mapName": { + "Fn::Join": [ + "-", + [ + { + "Ref": "mapName" + }, + { + "Ref": "env" + } + ] + ] + }, + "mapStyle": { + "Ref": "mapStyle" + }, + "region": { + "Fn::FindInMap": [ + "RegionMapping", + { + "Ref": "AWS::Region" + }, + "locationServiceRegion" + ] + }, + "env": { + "Ref": "env" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "MapPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "geo:GetMapStyleDescriptor", + "geo:GetMapGlyphs", + "geo:GetMapSprites", + "geo:GetMapTile" + ], + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "CustomMap", + "MapArn" + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": { + "Fn::Join": [ + "", + [ + { + "Fn::Join": [ + "-", + [ + { + "Ref": "mapName" + }, + { + "Ref": "env" + } + ] + ] + }, + "Policy" + ] + ] + }, + "Roles": [ + { + "Ref": "authRoleName" + }, + { + "Ref": "unauthRoleName" + }, + { + "Fn::Join": [ + "-", + [ + { + "Ref": "authstorelocator41a9495f41a9495fUserPoolId" + }, + "storeLocatorAdminGroupRole" + ] + ] + } + ] + } + } + }, + "Outputs": { + "Name": { + "Value": { + "Fn::GetAtt": [ + "CustomMap", + "MapName" + ] + } + }, + "Style": { + "Value": { + "Ref": "mapStyle" + } + }, + "Region": { + "Value": { + "Fn::FindInMap": [ + "RegionMapping", + { + "Ref": "AWS::Region" + }, + "locationServiceRegion" + ] + } + }, + "Arn": { + "Value": { + "Fn::GetAtt": [ + "CustomMap", + "MapArn" + ] + } + } + }, + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"geo-Map\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-geostoreLocatorSearch-x.description.txt b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-geostoreLocatorSearch-x.description.txt new file mode 100644 index 00000000000..706388d2a16 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-geostoreLocatorSearch-x.description.txt @@ -0,0 +1 @@ +{"createdOn":"Mac","createdBy":"Amplify","createdWith":"14.2.5","stackType":"geo-PlaceIndex","metadata":{"whyContinueWithGen1":"Prefer not to answer"}} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-geostoreLocatorSearch-x.outputs.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-geostoreLocatorSearch-x.outputs.json new file mode 100644 index 00000000000..8b3c6bace1f --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-geostoreLocatorSearch-x.outputs.json @@ -0,0 +1,14 @@ +[ + { + "OutputKey": "Region", + "OutputValue": "us-east-1" + }, + { + "OutputKey": "Arn", + "OutputValue": "arn:aws:geo:us-east-1:123456789012:place-index/storeLocatorSearch-x" + }, + { + "OutputKey": "Name", + "OutputValue": "storeLocatorSearch-x" + } +] diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-geostoreLocatorSearch-x.parameters.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-geostoreLocatorSearch-x.parameters.json new file mode 100644 index 00000000000..fdbe8e10490 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-geostoreLocatorSearch-x.parameters.json @@ -0,0 +1,38 @@ +[ + { + "ParameterKey": "authuserPoolGroupsstoreLocatorAdminGroupRole", + "ParameterValue": "arn:aws:iam::123456789012:role/us-east-1_PMTKHb3hY-storeLocatorAdminGroupRole" + }, + { + "ParameterKey": "isDefault", + "ParameterValue": "true" + }, + { + "ParameterKey": "authRoleName", + "ParameterValue": "amplify-storelocator-x-x-authRole" + }, + { + "ParameterKey": "unauthRoleName", + "ParameterValue": "amplify-storelocator-x-x-unauthRole" + }, + { + "ParameterKey": "indexName", + "ParameterValue": "storeLocatorSearch" + }, + { + "ParameterKey": "dataProvider", + "ParameterValue": "Here" + }, + { + "ParameterKey": "dataSourceIntendedUse", + "ParameterValue": "SingleUse" + }, + { + "ParameterKey": "env", + "ParameterValue": "x" + }, + { + "ParameterKey": "authstorelocator41a9495f41a9495fUserPoolId", + "ParameterValue": "us-east-1_PMTKHb3hY" + } +] diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-geostoreLocatorSearch-x.template.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-geostoreLocatorSearch-x.template.json new file mode 100644 index 00000000000..34bb655d691 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x-geostoreLocatorSearch-x.template.json @@ -0,0 +1,348 @@ +{ + "Mappings": { + "RegionMapping": { + "us-east-1": { + "locationServiceRegion": "us-east-1" + }, + "us-east-2": { + "locationServiceRegion": "us-east-2" + }, + "us-west-2": { + "locationServiceRegion": "us-west-2" + }, + "ap-southeast-1": { + "locationServiceRegion": "ap-southeast-1" + }, + "ap-southeast-2": { + "locationServiceRegion": "ap-southeast-2" + }, + "ap-northeast-1": { + "locationServiceRegion": "ap-northeast-1" + }, + "eu-central-1": { + "locationServiceRegion": "eu-central-1" + }, + "eu-north-1": { + "locationServiceRegion": "eu-north-1" + }, + "eu-west-1": { + "locationServiceRegion": "eu-west-1" + }, + "sa-east-1": { + "locationServiceRegion": "us-east-1" + }, + "ca-central-1": { + "locationServiceRegion": "us-east-1" + }, + "us-west-1": { + "locationServiceRegion": "us-west-2" + }, + "cn-north-1": { + "locationServiceRegion": "us-west-2" + }, + "cn-northwest-1": { + "locationServiceRegion": "us-west-2" + }, + "ap-south-1": { + "locationServiceRegion": "us-west-2" + }, + "ap-northeast-3": { + "locationServiceRegion": "us-west-2" + }, + "ap-northeast-2": { + "locationServiceRegion": "us-west-2" + }, + "eu-west-2": { + "locationServiceRegion": "eu-west-1" + }, + "eu-west-3": { + "locationServiceRegion": "eu-west-1" + }, + "me-south-1": { + "locationServiceRegion": "ap-southeast-1" + } + } + }, + "Parameters": { + "authuserPoolGroupsstoreLocatorAdminGroupRole": { + "Type": "String" + }, + "authstorelocator41a9495f41a9495fUserPoolId": { + "Type": "String" + }, + "authRoleName": { + "Type": "String" + }, + "unauthRoleName": { + "Type": "String" + }, + "indexName": { + "Type": "String" + }, + "dataProvider": { + "Type": "String" + }, + "dataSourceIntendedUse": { + "Type": "String" + }, + "env": { + "Type": "String" + }, + "isDefault": { + "Type": "String" + } + }, + "Resources": { + "CustomPlaceIndexLambdaServiceRoleFD2F3C9D": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Statement": [ + { + "Action": "sts:AssumeRole", + "Effect": "Allow", + "Principal": { + "Service": "lambda.amazonaws.com" + } + } + ], + "Version": "2012-10-17" + }, + "ManagedPolicyArns": [ + { + "Fn::Join": [ + "", + [ + "arn:", + { + "Ref": "AWS::Partition" + }, + ":iam::aws:policy/service-role/AWSLambdaBasicExecutionRole" + ] + ] + } + ] + } + }, + "CustomPlaceIndexLambdaServiceRoleDefaultPolicy818068B1": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": "geo:CreatePlaceIndex", + "Effect": "Allow", + "Resource": "*" + }, + { + "Action": [ + "geo:UpdatePlaceIndex", + "geo:DeletePlaceIndex" + ], + "Effect": "Allow", + "Resource": { + "Fn::Sub": [ + "arn:aws:geo:${region}:${account}:place-index/${indexName}", + { + "region": { + "Fn::FindInMap": [ + "RegionMapping", + { + "Ref": "AWS::Region" + }, + "locationServiceRegion" + ] + }, + "account": { + "Ref": "AWS::AccountId" + }, + "indexName": { + "Fn::Join": [ + "-", + [ + { + "Ref": "indexName" + }, + { + "Ref": "env" + } + ] + ] + } + } + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": "CustomPlaceIndexLambdaServiceRoleDefaultPolicy818068B1", + "Roles": [ + { + "Ref": "CustomPlaceIndexLambdaServiceRoleFD2F3C9D" + } + ] + } + }, + "CustomPlaceIndexLambda79813BB9": { + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "ZipFile": "const response = require('cfn-response');\nconst { LocationClient, CreatePlaceIndexCommand, DeletePlaceIndexCommand, UpdatePlaceIndexCommand } = require('@aws-sdk/client-location');\nexports.handler = async function (event, context) {\n try {\n console.log('REQUEST RECEIVED:' + JSON.stringify(event));\n const pricingPlan = 'RequestBasedUsage';\n if (event.RequestType === 'Create') {\n const params = {\n IndexName: event.ResourceProperties.indexName,\n DataSource: event.ResourceProperties.dataSource,\n DataSourceConfiguration: {\n IntendedUse: event.ResourceProperties.dataSourceIntendedUse,\n },\n PricingPlan: pricingPlan,\n };\n const locationClient = new LocationClient({ region: event.ResourceProperties.region });\n const res = await locationClient.send(new CreatePlaceIndexCommand(params));\n console.log('create resource response data' + JSON.stringify(res));\n if (res.IndexName && res.IndexArn) {\n event.PhysicalResourceId = res.IndexName;\n await response.send(event, context, response.SUCCESS, res, params.IndexName);\n } else {\n await response.send(event, context, response.FAILED, res, params.IndexName);\n }\n }\n if (event.RequestType === 'Update') {\n const params = {\n IndexName: event.ResourceProperties.indexName,\n DataSourceConfiguration: {\n IntendedUse: event.ResourceProperties.dataSourceIntendedUse,\n },\n PricingPlan: pricingPlan,\n };\n const locationClient = new LocationClient({ region: event.ResourceProperties.region });\n const res = await locationClient.send(new UpdatePlaceIndexCommand(params));\n console.log('update resource response data' + JSON.stringify(res));\n if (res.IndexName && res.IndexArn) {\n event.PhysicalResourceId = res.IndexName;\n await response.send(event, context, response.SUCCESS, res, params.IndexName);\n } else {\n await response.send(event, context, response.FAILED, res, params.IndexName);\n }\n }\n if (event.RequestType === 'Delete') {\n const params = {\n IndexName: event.ResourceProperties.indexName,\n };\n const locationClient = new LocationClient({ region: event.ResourceProperties.region });\n const res = await locationClient.send(new DeletePlaceIndexCommand(params));\n event.PhysicalResourceId = event.ResourceProperties.indexName;\n console.log('delete resource response data' + JSON.stringify(res));\n await response.send(event, context, response.SUCCESS, res, params.IndexName);\n }\n } catch (err) {\n console.log(err.stack);\n const res = { Error: err };\n await response.send(event, context, response.FAILED, res, event.ResourceProperties.indexName);\n throw err;\n }\n};\n" + }, + "Handler": "index.handler", + "Role": { + "Fn::GetAtt": [ + "CustomPlaceIndexLambdaServiceRoleFD2F3C9D", + "Arn" + ] + }, + "Runtime": "nodejs22.x", + "Timeout": 300 + }, + "DependsOn": [ + "CustomPlaceIndexLambdaServiceRoleDefaultPolicy818068B1", + "CustomPlaceIndexLambdaServiceRoleFD2F3C9D" + ] + }, + "CustomPlaceIndex": { + "Type": "Custom::LambdaCallout", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "CustomPlaceIndexLambda79813BB9", + "Arn" + ] + }, + "indexName": { + "Fn::Join": [ + "-", + [ + { + "Ref": "indexName" + }, + { + "Ref": "env" + } + ] + ] + }, + "dataSource": { + "Ref": "dataProvider" + }, + "dataSourceIntendedUse": { + "Ref": "dataSourceIntendedUse" + }, + "region": { + "Fn::FindInMap": [ + "RegionMapping", + { + "Ref": "AWS::Region" + }, + "locationServiceRegion" + ] + }, + "env": { + "Ref": "env" + } + }, + "UpdateReplacePolicy": "Delete", + "DeletionPolicy": "Delete" + }, + "PlaceIndexPolicy": { + "Type": "AWS::IAM::Policy", + "Properties": { + "PolicyDocument": { + "Statement": [ + { + "Action": [ + "geo:SearchPlaceIndexForPosition", + "geo:SearchPlaceIndexForText", + "geo:SearchPlaceIndexForSuggestions", + "geo:GetPlace" + ], + "Effect": "Allow", + "Resource": { + "Fn::GetAtt": [ + "CustomPlaceIndex", + "IndexArn" + ] + } + } + ], + "Version": "2012-10-17" + }, + "PolicyName": { + "Fn::Join": [ + "", + [ + { + "Fn::Join": [ + "-", + [ + { + "Ref": "indexName" + }, + { + "Ref": "env" + } + ] + ] + }, + "Policy" + ] + ] + }, + "Roles": [ + { + "Ref": "authRoleName" + }, + { + "Ref": "unauthRoleName" + }, + { + "Fn::Join": [ + "-", + [ + { + "Ref": "authstorelocator41a9495f41a9495fUserPoolId" + }, + "storeLocatorAdminGroupRole" + ] + ] + } + ] + } + } + }, + "Outputs": { + "Name": { + "Value": { + "Fn::GetAtt": [ + "CustomPlaceIndex", + "IndexName" + ] + } + }, + "Region": { + "Value": { + "Fn::FindInMap": [ + "RegionMapping", + { + "Ref": "AWS::Region" + }, + "locationServiceRegion" + ] + } + }, + "Arn": { + "Value": { + "Fn::GetAtt": [ + "CustomPlaceIndex", + "IndexArn" + ] + } + } + }, + "Description": "{\"createdOn\":\"Mac\",\"createdBy\":\"Amplify\",\"createdWith\":\"14.2.5\",\"stackType\":\"geo-PlaceIndex\",\"metadata\":{\"whyContinueWithGen1\":\"Prefer not to answer\"}}" +} diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x.description.txt b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x.description.txt new file mode 100644 index 00000000000..6e1d8ff2351 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x.description.txt @@ -0,0 +1 @@ +Root Stack for AWS Amplify CLI diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x.outputs.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x.outputs.json new file mode 100644 index 00000000000..f9ebc0a30d1 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x.outputs.json @@ -0,0 +1,42 @@ +[ + { + "OutputKey": "AuthRoleName", + "OutputValue": "amplify-storelocator-x-x-authRole" + }, + { + "OutputKey": "UnauthRoleArn", + "OutputValue": "arn:aws:iam::123456789012:role/amplify-storelocator-x-x-unauthRole" + }, + { + "OutputKey": "AuthRoleArn", + "OutputValue": "arn:aws:iam::123456789012:role/amplify-storelocator-x-x-authRole" + }, + { + "OutputKey": "Region", + "OutputValue": "us-east-1", + "Description": "CloudFormation provider root stack Region", + "ExportName": "amplify-storelocator-x-x-Region" + }, + { + "OutputKey": "DeploymentBucketName", + "OutputValue": "amplify-storelocator-x-x-deployment", + "Description": "CloudFormation provider root stack deployment bucket name", + "ExportName": "amplify-storelocator-x-x-DeploymentBucketName" + }, + { + "OutputKey": "UnauthRoleName", + "OutputValue": "amplify-storelocator-x-x-unauthRole" + }, + { + "OutputKey": "StackName", + "OutputValue": "amplify-storelocator-x-x", + "Description": "CloudFormation provider root stack ID", + "ExportName": "amplify-storelocator-x-x-StackName" + }, + { + "OutputKey": "StackId", + "OutputValue": "arn:aws:cloudformation:us-east-1:123456789012:stack/amplify-storelocator-x-x/48dbdfc0-387e-11f1-abb7-12a98fd563d9", + "Description": "CloudFormation provider root stack name", + "ExportName": "amplify-storelocator-x-x-StackId" + } +] diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x.parameters.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x.parameters.json new file mode 100644 index 00000000000..fc7e93f1510 --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x.parameters.json @@ -0,0 +1,14 @@ +[ + { + "ParameterKey": "AuthRoleName", + "ParameterValue": "amplify-storelocator-x-x-authRole" + }, + { + "ParameterKey": "DeploymentBucketName", + "ParameterValue": "amplify-storelocator-x-x-deployment" + }, + { + "ParameterKey": "UnauthRoleName", + "ParameterValue": "amplify-storelocator-x-x-unauthRole" + } +] diff --git a/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x.template.json b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x.template.json new file mode 100644 index 00000000000..2610c4ea8bc --- /dev/null +++ b/amplify-migration-apps/store-locator/_snapshot.pre.refactor/amplify-storelocator-x-x.template.json @@ -0,0 +1,653 @@ +{ + "Description": "Root Stack for AWS Amplify CLI", + "AWSTemplateFormatVersion": "2010-09-09", + "Parameters": { + "DeploymentBucketName": { + "Type": "String", + "Default": "DeploymentBucket", + "Description": "Name of the common deployment bucket provided by the parent stack" + }, + "AuthRoleName": { + "Type": "String", + "Default": "AuthRoleName", + "Description": "Name of the common deployment bucket provided by the parent stack" + }, + "UnauthRoleName": { + "Type": "String", + "Default": "UnAuthRoleName", + "Description": "Name of the common deployment bucket provided by the parent stack" + } + }, + "Outputs": { + "Region": { + "Description": "CloudFormation provider root stack Region", + "Value": { + "Ref": "AWS::Region" + }, + "Export": { + "Name": { + "Fn::Sub": "${AWS::StackName}-Region" + } + } + }, + "StackName": { + "Description": "CloudFormation provider root stack ID", + "Value": { + "Ref": "AWS::StackName" + }, + "Export": { + "Name": { + "Fn::Sub": "${AWS::StackName}-StackName" + } + } + }, + "StackId": { + "Description": "CloudFormation provider root stack name", + "Value": { + "Ref": "AWS::StackId" + }, + "Export": { + "Name": { + "Fn::Sub": "${AWS::StackName}-StackId" + } + } + }, + "AuthRoleArn": { + "Value": { + "Fn::GetAtt": [ + "AuthRole", + "Arn" + ] + } + }, + "UnauthRoleArn": { + "Value": { + "Fn::GetAtt": [ + "UnauthRole", + "Arn" + ] + } + }, + "DeploymentBucketName": { + "Description": "CloudFormation provider root stack deployment bucket name", + "Value": { + "Ref": "DeploymentBucketName" + }, + "Export": { + "Name": { + "Fn::Sub": "${AWS::StackName}-DeploymentBucketName" + } + } + }, + "AuthRoleName": { + "Value": { + "Ref": "AuthRole" + } + }, + "UnauthRoleName": { + "Value": { + "Ref": "UnauthRole" + } + } + }, + "Resources": { + "DeploymentBucket": { + "Type": "AWS::S3::Bucket", + "Properties": { + "BucketName": { + "Ref": "DeploymentBucketName" + }, + "BucketEncryption": { + "ServerSideEncryptionConfiguration": [ + { + "ServerSideEncryptionByDefault": { + "SSEAlgorithm": "AES256" + } + } + ] + } + }, + "UpdateReplacePolicy": "Retain", + "DeletionPolicy": "Retain" + }, + "DeploymentBucketBlockHTTP": { + "Type": "AWS::S3::BucketPolicy", + "Properties": { + "Bucket": { + "Ref": "DeploymentBucketName" + }, + "PolicyDocument": { + "Statement": [ + { + "Action": "s3:*", + "Effect": "Deny", + "Principal": "*", + "Resource": [ + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "DeploymentBucketName" + }, + "/*" + ] + ] + }, + { + "Fn::Join": [ + "", + [ + "arn:aws:s3:::", + { + "Ref": "DeploymentBucketName" + } + ] + ] + } + ], + "Condition": { + "Bool": { + "aws:SecureTransport": false + } + } + } + ] + } + } + }, + "AuthRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Sid": "", + "Effect": "Deny", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + }, + "Action": "sts:AssumeRoleWithWebIdentity" + } + ] + }, + "RoleName": { + "Ref": "AuthRoleName" + } + } + }, + "UnauthRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Sid": "", + "Effect": "Deny", + "Principal": { + "Federated": "cognito-identity.amazonaws.com" + }, + "Action": "sts:AssumeRoleWithWebIdentity" + } + ] + }, + "RoleName": { + "Ref": "UnauthRoleName" + } + } + }, + "AuthTriggerCustomLambdaStack": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/auth/auth-trigger-cloudformation-template.json", + "Parameters": { + "env": "x", + "userpoolId": { + "Fn::GetAtt": [ + "authstorelocator41a9495f41a9495f", + "Outputs.UserPoolId" + ] + }, + "userpoolArn": { + "Fn::GetAtt": [ + "authstorelocator41a9495f41a9495f", + "Outputs.UserPoolArn" + ] + }, + "functionstorelocator41a9495f41a9495fPostConfirmationLambdaExecutionRole": { + "Fn::GetAtt": [ + "functionstorelocator41a9495f41a9495fPostConfirmation", + "Outputs.LambdaExecutionRoleArn" + ] + }, + "functionstorelocator41a9495f41a9495fPostConfirmationArn": { + "Fn::GetAtt": [ + "functionstorelocator41a9495f41a9495fPostConfirmation", + "Outputs.Arn" + ] + }, + "functionstorelocator41a9495f41a9495fPostConfirmationName": { + "Fn::GetAtt": [ + "functionstorelocator41a9495f41a9495fPostConfirmation", + "Outputs.Name" + ] + } + } + }, + "DependsOn": [ + "authstorelocator41a9495f41a9495f", + "functionstorelocator41a9495f41a9495fPostConfirmation" + ] + }, + "authuserPoolGroups": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/auth/userPoolGroups-cloudformation-template.json", + "Parameters": { + "AuthRoleArn": { + "Fn::GetAtt": [ + "AuthRole", + "Arn" + ] + }, + "UnauthRoleArn": { + "Fn::GetAtt": [ + "UnauthRole", + "Arn" + ] + }, + "authstorelocator41a9495f41a9495fUserPoolId": { + "Fn::GetAtt": [ + "authstorelocator41a9495f41a9495f", + "Outputs.UserPoolId" + ] + }, + "authstorelocator41a9495f41a9495fAppClientIDWeb": { + "Fn::GetAtt": [ + "authstorelocator41a9495f41a9495f", + "Outputs.AppClientIDWeb" + ] + }, + "authstorelocator41a9495f41a9495fAppClientID": { + "Fn::GetAtt": [ + "authstorelocator41a9495f41a9495f", + "Outputs.AppClientID" + ] + }, + "authstorelocator41a9495f41a9495fIdentityPoolId": { + "Fn::GetAtt": [ + "authstorelocator41a9495f41a9495f", + "Outputs.IdentityPoolId" + ] + }, + "env": "x" + } + } + }, + "authstorelocator41a9495f41a9495f": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/auth/storelocator41a9495f41a9495f-cloudformation-template.json", + "Parameters": { + "identityPoolName": "storelocator41a9495f_identitypool_41a9495f", + "allowUnauthenticatedIdentities": true, + "resourceNameTruncated": "storel41a9495f", + "userPoolName": "storelocator41a9495f_userpool_41a9495f", + "autoVerifiedAttributes": "email", + "mfaConfiguration": "OFF", + "mfaTypes": "SMS Text Message", + "smsAuthenticationMessage": "Your authentication code is {####}", + "smsVerificationMessage": "Your verification code is {####}", + "emailVerificationSubject": "Your verification code", + "emailVerificationMessage": "Your verification code is {####}", + "defaultPasswordPolicy": false, + "passwordPolicyMinLength": 8, + "passwordPolicyCharacters": "", + "requiredAttributes": "email", + "aliasAttributes": "", + "userpoolClientGenerateSecret": false, + "userpoolClientRefreshTokenValidity": "100", + "userpoolClientWriteAttributes": "email", + "userpoolClientReadAttributes": "email", + "userpoolClientLambdaRole": "storel41a9495f_userpoolclient_lambda_role", + "userpoolClientSetAttributes": false, + "sharedId": "41a9495f", + "resourceName": "storelocator41a9495f41a9495f", + "authSelections": "identityPoolAndUserPool", + "useDefault": "manual", + "thirdPartyAuth": false, + "usernameAttributes": "email", + "userPoolGroups": true, + "adminQueries": false, + "triggers": "{\"PostConfirmation\":[\"add-to-group\"]}", + "hostedUI": false, + "userPoolGroupList": "storeLocatorAdmin", + "serviceName": "Cognito", + "usernameCaseSensitive": false, + "useEnabledMfas": true, + "authRoleArn": { + "Fn::GetAtt": [ + "AuthRole", + "Arn" + ] + }, + "unauthRoleArn": { + "Fn::GetAtt": [ + "UnauthRole", + "Arn" + ] + }, + "breakCircularDependency": true, + "dependsOn": "[object Object]", + "permissions": "{\"policyName\":\"AddToGroupCognito\",\"trigger\":\"PostConfirmation\",\"effect\":\"Allow\",\"actions\":[\"cognito-idp:AdminAddUserToGroup\",\"cognito-idp:GetGroup\",\"cognito-idp:CreateGroup\"],\"resource\":{\"paramType\":\"!GetAtt\",\"keys\":[\"UserPool\",\"Arn\"]}}", + "authTriggerConnections": "{\"triggerType\":\"PostConfirmation\",\"lambdaFunctionName\":\"storelocator41a9495f41a9495fPostConfirmation\"}", + "env": "x" + } + } + }, + "functionstorelocator41a9495f41a9495fPostConfirmation": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/function/storelocator41a9495f41a9495fPostConfirmation-cloudformation-template.json", + "Parameters": { + "modules": "add-to-group", + "resourceName": "storelocator41a9495f41a9495fPostConfirmation", + "GROUP": "storeLocatorAdmin", + "deploymentBucketName": "amplify-storelocator-x-x-deployment", + "s3Key": "amplify-builds/storelocator41a9495f41a9495fPostConfirmation-6a6c746d4739755a384a-build.zip", + "env": "x" + } + } + }, + "geostoreLocatorMap": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/geo/storeLocatorMap-cloudformation-template.json", + "Parameters": { + "authRoleName": { + "Ref": "AuthRoleName" + }, + "unauthRoleName": { + "Ref": "UnauthRoleName" + }, + "mapName": "storeLocatorMap", + "mapStyle": "VectorEsriStreets", + "isDefault": true, + "authstorelocator41a9495f41a9495fUserPoolId": { + "Fn::GetAtt": [ + "authstorelocator41a9495f41a9495f", + "Outputs.UserPoolId" + ] + }, + "authuserPoolGroupsstoreLocatorAdminGroupRole": { + "Fn::GetAtt": [ + "authuserPoolGroups", + "Outputs.storeLocatorAdminGroupRole" + ] + }, + "env": "x" + } + } + }, + "geostoreLocatorSearch": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/geo/storeLocatorSearch-cloudformation-template.json", + "Parameters": { + "authRoleName": { + "Ref": "AuthRoleName" + }, + "unauthRoleName": { + "Ref": "UnauthRoleName" + }, + "indexName": "storeLocatorSearch", + "dataProvider": "Here", + "dataSourceIntendedUse": "SingleUse", + "isDefault": true, + "authstorelocator41a9495f41a9495fUserPoolId": { + "Fn::GetAtt": [ + "authstorelocator41a9495f41a9495f", + "Outputs.UserPoolId" + ] + }, + "authuserPoolGroupsstoreLocatorAdminGroupRole": { + "Fn::GetAtt": [ + "authuserPoolGroups", + "Outputs.storeLocatorAdminGroupRole" + ] + }, + "env": "x" + } + } + }, + "geostoreLocatorGeofence": { + "Type": "AWS::CloudFormation::Stack", + "Properties": { + "TemplateURL": "https://s3.amazonaws.com/amplify-storelocator-x-x-deployment/amplify-cfn-templates/geo/storeLocatorGeofence-cloudformation-template.json", + "Parameters": { + "collectionName": "storeLocatorGeofence", + "isDefault": true, + "authstorelocator41a9495f41a9495fUserPoolId": { + "Fn::GetAtt": [ + "authstorelocator41a9495f41a9495f", + "Outputs.UserPoolId" + ] + }, + "authuserPoolGroupsstoreLocatorAdminGroupRole": { + "Fn::GetAtt": [ + "authuserPoolGroups", + "Outputs.storeLocatorAdminGroupRole" + ] + }, + "env": "x" + } + } + }, + "UpdateRolesWithIDPFunction": { + "DependsOn": [ + "AuthRole", + "UnauthRole", + "authstorelocator41a9495f41a9495f" + ], + "Type": "AWS::Lambda::Function", + "Properties": { + "Code": { + "ZipFile": { + "Fn::Join": [ + "\n", + [ + "const response = require('cfn-response');", + "const { IAMClient, GetRoleCommand, UpdateAssumeRolePolicyCommand } = require('@aws-sdk/client-iam');", + "exports.handler = function(event, context) {", + " // Don't return promise, response.send() marks context as done internally", + " const ignoredPromise = handleEvent(event, context)", + "};", + "async function handleEvent(event, context) {", + " try {", + " let authRoleName = event.ResourceProperties.authRoleName;", + " let unauthRoleName = event.ResourceProperties.unauthRoleName;", + " let idpId = event.ResourceProperties.idpId;", + " let authParamsJson = {", + " 'Version': '2012-10-17',", + " 'Statement': [{", + " 'Effect': 'Allow',", + " 'Principal': {'Federated': 'cognito-identity.amazonaws.com'},", + " 'Action': 'sts:AssumeRoleWithWebIdentity',", + " 'Condition': {", + " 'StringEquals': {'cognito-identity.amazonaws.com:aud': idpId},", + " 'ForAnyValue:StringLike': {'cognito-identity.amazonaws.com:amr': 'authenticated'}", + " }", + " }]", + " };", + " let unauthParamsJson = {", + " 'Version': '2012-10-17',", + " 'Statement': [{", + " 'Effect': 'Allow',", + " 'Principal': {'Federated': 'cognito-identity.amazonaws.com'},", + " 'Action': 'sts:AssumeRoleWithWebIdentity',", + " 'Condition': {", + " 'StringEquals': {'cognito-identity.amazonaws.com:aud': idpId},", + " 'ForAnyValue:StringLike': {'cognito-identity.amazonaws.com:amr': 'unauthenticated'}", + " }", + " }]", + " };", + " if (event.RequestType === 'Delete') {", + " try {", + " delete authParamsJson.Statement[0].Condition;", + " delete unauthParamsJson.Statement[0].Condition;", + " authParamsJson.Statement[0].Effect = 'Deny'", + " unauthParamsJson.Statement[0].Effect = 'Deny'", + " let authParams = {PolicyDocument: JSON.stringify(authParamsJson), RoleName: authRoleName};", + " let unauthParams = {PolicyDocument: JSON.stringify(unauthParamsJson), RoleName: unauthRoleName};", + " const iam = new IAMClient({region: event.ResourceProperties.region});", + " let res = await Promise.all([", + " iam.send(new GetRoleCommand({RoleName: authParams.RoleName})),", + " iam.send(new GetRoleCommand({RoleName: unauthParams.RoleName}))", + " ]);", + " res = await Promise.all([", + " iam.send(new UpdateAssumeRolePolicyCommand(authParams)),", + " iam.send(new UpdateAssumeRolePolicyCommand(unauthParams))", + " ]);", + " response.send(event, context, response.SUCCESS, {});", + " } catch (err) {", + " console.log(err.stack);", + " response.send(event, context, response.SUCCESS, {Error: err});", + " }", + " } else if (event.RequestType === 'Update' || event.RequestType === 'Create') {", + " const iam = new IAMClient({region: event.ResourceProperties.region});", + " let authParams = {PolicyDocument: JSON.stringify(authParamsJson), RoleName: authRoleName};", + " let unauthParams = {PolicyDocument: JSON.stringify(unauthParamsJson), RoleName: unauthRoleName};", + " const res = await Promise.all([", + " iam.send(new UpdateAssumeRolePolicyCommand(authParams)),", + " iam.send(new UpdateAssumeRolePolicyCommand(unauthParams))", + " ]);", + " response.send(event, context, response.SUCCESS, {});", + " }", + " } catch (err) {", + " console.log(err.stack);", + " response.send(event, context, response.FAILED, {Error: err});", + " }", + "};" + ] + ] + } + }, + "Handler": "index.handler", + "Runtime": "nodejs22.x", + "Timeout": 300, + "Role": { + "Fn::GetAtt": [ + "UpdateRolesWithIDPFunctionRole", + "Arn" + ] + } + } + }, + "UpdateRolesWithIDPFunctionOutputs": { + "Type": "Custom::LambdaCallout", + "Properties": { + "ServiceToken": { + "Fn::GetAtt": [ + "UpdateRolesWithIDPFunction", + "Arn" + ] + }, + "region": { + "Ref": "AWS::Region" + }, + "idpId": { + "Fn::GetAtt": [ + "authstorelocator41a9495f41a9495f", + "Outputs.IdentityPoolId" + ] + }, + "authRoleName": { + "Ref": "AuthRole" + }, + "unauthRoleName": { + "Ref": "UnauthRole" + } + } + }, + "UpdateRolesWithIDPFunctionRole": { + "Type": "AWS::IAM::Role", + "Properties": { + "RoleName": { + "Fn::Join": [ + "", + [ + { + "Ref": "AuthRole" + }, + "-idp" + ] + ] + }, + "AssumeRolePolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Principal": { + "Service": [ + "lambda.amazonaws.com" + ] + }, + "Action": [ + "sts:AssumeRole" + ] + } + ] + }, + "Policies": [ + { + "PolicyName": "UpdateRolesWithIDPFunctionPolicy", + "PolicyDocument": { + "Version": "2012-10-17", + "Statement": [ + { + "Effect": "Allow", + "Action": [ + "logs:CreateLogGroup", + "logs:CreateLogStream", + "logs:PutLogEvents" + ], + "Resource": "arn:aws:logs:*:*:*" + }, + { + "Effect": "Allow", + "Action": [ + "iam:UpdateAssumeRolePolicy", + "iam:GetRole" + ], + "Resource": { + "Fn::GetAtt": [ + "AuthRole", + "Arn" + ] + } + }, + { + "Effect": "Allow", + "Action": [ + "iam:UpdateAssumeRolePolicy", + "iam:GetRole" + ], + "Resource": { + "Fn::GetAtt": [ + "UnauthRole", + "Arn" + ] + } + } + ] + } + } + ] + } + } + } +} diff --git a/amplify-migration-apps/store-locator/migration/pre-push.ts b/amplify-migration-apps/store-locator/migration/pre-push.ts new file mode 100644 index 00000000000..882fcd6511d --- /dev/null +++ b/amplify-migration-apps/store-locator/migration/pre-push.ts @@ -0,0 +1,40 @@ +#!/usr/bin/env npx ts-node +/** + * Pre-push script for store-locator app. + * + * Sets the GROUP parameter for the PostConfirmation Lambda in + * team-provider-info.json so that `amplify push --yes` doesn't prompt + * for missing values and the Lambda adds confirmed users to the + * storeLocatorAdmin group. + */ + +import fs from 'fs'; +import path from 'path'; + +function readEnvName(appPath: string): string { + const tpiPath = path.join(appPath, 'amplify', 'team-provider-info.json'); + const tpi = JSON.parse(fs.readFileSync(tpiPath, 'utf-8')); + return Object.keys(tpi)[0]; +} + +function setFunctionParameters(appPath: string, envName: string): void { + const tpiPath = path.join(appPath, 'amplify', 'team-provider-info.json'); + const tpi = JSON.parse(fs.readFileSync(tpiPath, 'utf-8')); + + tpi[envName].categories ??= {}; + tpi[envName].categories.function ??= {}; + tpi[envName].categories.function.storelocator41a9495f41a9495fPostConfirmation = { + ...tpi[envName].categories.function.storelocator41a9495f41a9495fPostConfirmation, + GROUP: 'storeLocatorAdmin', + }; + + fs.writeFileSync(tpiPath, JSON.stringify(tpi, null, 2), 'utf-8'); +} + +function main(): void { + const [appPath = process.cwd()] = process.argv.slice(2); + const envName = readEnvName(appPath); + setFunctionParameters(appPath, envName); +} + +main(); diff --git a/amplify-migration-apps/store-locator/package.json b/amplify-migration-apps/store-locator/package.json index ec908b45c93..3cc1066d43c 100644 --- a/amplify-migration-apps/store-locator/package.json +++ b/amplify-migration-apps/store-locator/package.json @@ -12,13 +12,14 @@ "lint": "eslint .", "preview": "vite preview", "sanitize": "tsx ../sanitize.ts", + "normalize": "tsx ../normalize.ts", "typecheck": "cd _snapshot.post.generate/amplify && npx tsc --noEmit", "test:gen1": "APP_CONFIG_PATH=${APP_CONFIG_PATH:-src/amplifyconfiguration.json} NODE_OPTIONS='--experimental-vm-modules' jest --verbose", "test:gen2": "APP_CONFIG_PATH=${APP_CONFIG_PATH:-amplify_outputs.json} NODE_OPTIONS='--experimental-vm-modules' jest --verbose", "test:shared-data": "true", "test:e2e": "cd ../../packages/amplify-gen2-migration-e2e-system && npx tsx src/cli.ts --app store-locator --profile ${AWS_PROFILE:-default}", "deploy": "cd ../../packages/amplify-gen2-migration-e2e-system && npx tsx src/cli.ts --app store-locator --step deploy --profile ${AWS_PROFILE:-default}", - "pre-push": "true", + "pre-push": "npx tsx migration/pre-push.ts", "post-generate": "npx tsx migration/post-generate.ts", "post-refactor": "true", "post-sandbox": "true", @@ -38,6 +39,7 @@ }, "devDependencies": { "@aws-sdk/client-cognito-identity-provider": "^3.936.0", + "@aws-sdk/client-lambda": "^3.936.0", "@eslint/js": "^9.39.1", "@types/jest": "^29.5.14", "@types/node": "^24.10.1", diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/_framework/app.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/_framework/app.ts index 28b229320ba..b42bd9c58b5 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/_framework/app.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/_framework/app.ts @@ -337,7 +337,6 @@ export class MigrationApp { private prePopulateCloudFormationResources(): void { const registerStack = (stackName: string) => { const templatePath = this.templatePathForStack(stackName); - if (!fs.existsSync(templatePath)) return; const template = JSONUtilities.readJson(templatePath); for (const logicalId of Object.keys(template.Resources ?? {})) { const resource = template.Resources[logicalId]; @@ -439,10 +438,14 @@ export class MigrationApp { // nestedStackName = 'amplify-productcatalog-main-31323-apiproductcatalog-1KOJQLNKG63-FunctionDirectiveStack-1X1DEXAOL9FGJ' // // notice the hash in the parent is longer than the hash in the nested stack. + + // the stack name may not contain the full logicalId because it also contains + // the envname which may overflow. empirecally 40 characters should do it. + const trimmedLogicalId = logicalId.substring(0, Math.min(logicalId.length, 40)); const parentStackBaseName = parentStackName.split('-').slice(0, 5).join('-'); const candidates = fs .readdirSync(this.snapshots.refactor.props.inputPath) - .filter((f) => f.startsWith(parentStackBaseName) && f.includes(logicalId) && f.endsWith('.template.json')) + .filter((f) => f.startsWith(parentStackBaseName) && f.includes(trimmedLogicalId) && f.endsWith('.template.json')) .sort((a, b) => a.length - b.length); if (candidates.length === 0) { throw new Error(`Unable to find candidates for nested ${logicalId} of parent stack ${parentStackName}`); @@ -472,6 +475,8 @@ export class MigrationApp { } } + // throw new Error(`Unable to find output for ${logicalId} in stack ${stackName}`); + // some resources don't expose their physical id as an output return undefined; } diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/generate.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/generate.test.ts index 9429de1287d..bb34afe23c0 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/generate.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/generate.test.ts @@ -32,20 +32,16 @@ afterAll(() => { jest.mock('fs-extra'); }); -// standard buildspec for all apps that are published via hosting -const BUILDSPEC = - "version: 1\nbackend:\n phases:\n build:\n commands:\n - '# Execute Amplify CLI with the helper script'\n - amplifyPush --simple\nfrontend:\n phases:\n preBuild:\n commands:\n - npm install\n build:\n commands:\n - npm run build\n artifacts:\n baseDirectory: dist\n files:\n - '**/*'\n cache:\n paths:\n - node_modules/**/*\n"; - test('fitness-tracker snapshot', async () => { - await testSnapshot('fitness-tracker', { buildSpec: BUILDSPEC }); + await testSnapshot('fitness-tracker'); }); test('product-catalog snapshot', async () => { - await testSnapshot('product-catalog', { buildSpec: BUILDSPEC }); + await testSnapshot('product-catalog'); }); test('project-boards snapshot', async () => { - await testSnapshot('project-boards', { buildSpec: BUILDSPEC }); + await testSnapshot('project-boards'); }); test('backend-only snapshot', async () => { @@ -53,23 +49,23 @@ test('backend-only snapshot', async () => { }); test('discussions snapshot', async () => { - await testSnapshot('discussions', { buildSpec: BUILDSPEC }); + await testSnapshot('discussions'); }); test('media-vault snapshot', async () => { - await testSnapshot('media-vault', { buildSpec: BUILDSPEC }); + await testSnapshot('media-vault'); }); test('mood-board snapshot', async () => { - await testSnapshot('mood-board', { buildSpec: BUILDSPEC }); + await testSnapshot('mood-board'); }); test('store-locator snapshot', async () => { - await testSnapshot('store-locator', { buildSpec: BUILDSPEC }); + await testSnapshot('store-locator'); }); test('imported-resources snapshot', async () => { - await testSnapshot('imported-resources', { buildSpec: BUILDSPEC }); + await testSnapshot('imported-resources'); }); async function testSnapshot(appName: string, appOptions?: MigrationAppOptions, customize?: (app: MigrationApp) => Promise) { diff --git a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor.test.ts b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor.test.ts index 6c737e1b113..b56cb213d11 100644 --- a/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor.test.ts +++ b/packages/amplify-cli/src/__tests__/commands/gen2-migration/refactor.test.ts @@ -80,6 +80,10 @@ test('imported-resources snapshot', async () => { await testSnapshot('imported-resources'); }); +test('store-locator snapshot', async () => { + await testSnapshot('store-locator'); +}); + async function testSnapshot(appName: string, appOptions?: MigrationAppOptions, customize?: (app: MigrationApp) => Promise) { await MigrationApp.run( appName, diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn.ts index 3ccf6dd4e57..4c483804c59 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/cfn.ts @@ -171,8 +171,8 @@ export class Cfn { const input: CreateStackRefactorCommandInput = { StackDefinitions: [ - { TemplateBody: JSON.stringify(sourceTemplate), StackName: sourceStackId }, - { TemplateBody: JSON.stringify(targetTemplate), StackName: targetStackId }, + { TemplateBody: JSON.stringify(sourceTemplate), StackName: sourceStackName }, + { TemplateBody: JSON.stringify(targetTemplate), StackName: targetStackName }, ], ResourceMappings: resourceMappings, EnableStackCreation: true, @@ -422,7 +422,7 @@ function buildRefactorDescription(input: CreateStackRefactorCommandInput): strin } function formatTemplateBody(templateBody: string): string { - return JSON.stringify(JSON.parse(templateBody), null, 2); + return JSON.stringify(JSON.parse(templateBody), null, 2) + '\n'; } interface WriteUpdateSnapshotInput { @@ -434,7 +434,7 @@ interface WriteUpdateSnapshotInput { function writeUpdateSnapshot(input: WriteUpdateSnapshotInput): void { const stackName = extractStackNameFromId(input.stackName); fs.writeFileSync(path.join(OUTPUT_DIRECTORY, `update.${stackName}.template.json`), formatTemplateBody(input.templateBody)); - fs.writeFileSync(path.join(OUTPUT_DIRECTORY, `update.${stackName}.parameters.json`), JSON.stringify(input.parameters, null, 2)); + fs.writeFileSync(path.join(OUTPUT_DIRECTORY, `update.${stackName}.parameters.json`), JSON.stringify(input.parameters, null, 2) + '\n'); } function writeRefactorSnapshot(input: CreateStackRefactorCommandInput): void { @@ -446,5 +446,8 @@ function writeRefactorSnapshot(input: CreateStackRefactorCommandInput): void { const basePath = path.join(OUTPUT_DIRECTORY, description); fs.writeFileSync(`${basePath}.source.template.json`, formatTemplateBody(source.TemplateBody)); fs.writeFileSync(`${basePath}.target.template.json`, formatTemplateBody(target.TemplateBody)); - fs.writeFileSync(path.join(OUTPUT_DIRECTORY, `${description}.mappings.json`), JSON.stringify(input.ResourceMappings ?? [], null, 2)); + fs.writeFileSync( + path.join(OUTPUT_DIRECTORY, `${description}.mappings.json`), + JSON.stringify(input.ResourceMappings ?? [], null, 2) + '\n', + ); } diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts index e5b628531e4..524c6d938b6 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/forward-category-refactorer.ts @@ -34,8 +34,8 @@ export abstract class ForwardCategoryRefactorer extends CategoryRefactorer { const targetId = this.findMatchingTarget(sourceId, sourceResource, targetResources, usedTargetIds, targetStackId); usedTargetIds.add(targetId); mappings.push({ - Source: { StackName: sourceStackId, LogicalResourceId: sourceId }, - Destination: { StackName: targetStackId, LogicalResourceId: targetId }, + Source: { StackName: extractStackNameFromId(sourceStackId), LogicalResourceId: sourceId }, + Destination: { StackName: extractStackNameFromId(targetStackId), LogicalResourceId: targetId }, }); } return mappings; diff --git a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts index b3574c08dc8..0b50c29acff 100644 --- a/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts +++ b/packages/amplify-cli/src/commands/gen2-migration/refactor/workflow/rollback-category-refactorer.ts @@ -40,8 +40,8 @@ export abstract class RollbackCategoryRefactorer extends CategoryRefactorer { continue; } mappings.push({ - Source: { StackName: sourceStackId, LogicalResourceId: sourceId }, - Destination: { StackName: targetStackId, LogicalResourceId: gen1LogicalId }, + Source: { StackName: extractStackNameFromId(sourceStackId), LogicalResourceId: sourceId }, + Destination: { StackName: extractStackNameFromId(targetStackId), LogicalResourceId: gen1LogicalId }, }); } return mappings; diff --git a/packages/amplify-gen2-migration-e2e-system/README.md b/packages/amplify-gen2-migration-e2e-system/README.md index 1d0d91e14a0..302f63ee7e6 100644 --- a/packages/amplify-gen2-migration-e2e-system/README.md +++ b/packages/amplify-gen2-migration-e2e-system/README.md @@ -94,9 +94,50 @@ src/ └── core/ ├── app.ts # App class — owns the full lifecycle of a migration app ├── git.ts # Git operations (init, commit, checkout) + ├── normalize.ts # Normalizes run-specific values in snapshot files + ├── sanitize.ts # Sanitizes sensitive values in snapshot files └── logger.ts # Logging with file output ``` +## Snapshot Post-Processing + +After snapshots are captured, when the E2E system is executed with +`UPDATE_SNAPSHOTS=1`, two post-processing steps run before copying +them back to the source app directory: + +1. **Normalize** — replaces run-specific values (random env names, + CFN stack hashes) with deterministic placeholders so + that snapshot filenames are stable across runs. +2. **Sanitize** — replaces sensitive values (AWS account IDs, API keys, + resource identifiers from CloudFormation outputs) with safe placeholders + suitable for public commit. + +Order matters — normalize first, then sanitize. + +### Normalization + +Normalization replaces run-specific values in snapshot filenames +so that filenames are stable across runs. + +| Value | Replacement | +| ----------------------- | ---------------------- | +| Deployment name | `` | +| Environment name | `x` | +| Environment hash | `x` | +| Sandbox hash | `x` | +| CFN nested stack hashes | `x` | + +### Sanitization + +Sanitization replaces sensitive values in file content: + +| Value | Replacement | +| ------------------------------ | ------------------------------ | +| AWS Account ID | `123456789012` | +| Amplify App ID | `` | +| Gen1 AppSync API Key (da2-...) | `da2-fakeapikey00000000000000` | +| Gen2 AppSync API Key (da2-...) | `da2-fakeapikey00000000000000` | + ## Development ### Building diff --git a/packages/amplify-gen2-migration-e2e-system/src/core/app.ts b/packages/amplify-gen2-migration-e2e-system/src/core/app.ts index 276d3416daa..55c7f34beef 100644 --- a/packages/amplify-gen2-migration-e2e-system/src/core/app.ts +++ b/packages/amplify-gen2-migration-e2e-system/src/core/app.ts @@ -8,6 +8,7 @@ import { Git } from './git'; import * as snapshot from './snapshot'; import { sanitize } from './sanitize'; import { CloudFormationClient, paginateListStacks, StackStatus } from '@aws-sdk/client-cloudformation'; +import { normalize } from './normalize'; const MIGRATION_TARGET_DIR = path.join(os.tmpdir(), 'amplify-gen2-migration-e2e-system', 'output-apps'); const MIGRATION_SNAPSHOT_DIR = path.join(os.tmpdir(), 'amplify-gen2-migration-e2e-system', 'snapshots'); @@ -241,11 +242,6 @@ export class App { await this.testGen1(); await this.testGen2(); - if (this.skipRefactor) { - this.logger.info('Skipping refactor (configured in migration/config.json)'); - return; - } - const gen1StackName = await this.findGen1RootStack(); this.logger.info(`Capturing pre.refactor snapshot`); @@ -253,6 +249,11 @@ export class App { await snapshot.capturePreRefactor(gen1StackName, gen2StackName, this.snapshotAppPath); console.log(''); + if (this.skipRefactor) { + this.logger.info('Skipping refactor (configured in migration/config.json)'); + return; + } + await this.git.checkout(this.gen1BranchName, false); await this.refactor(gen2StackName); @@ -319,7 +320,7 @@ export class App { this.logger.info('Deploying Gen2 app using ampx sandbox...'); const startTime = Date.now(); - const result = await execa('npx', ['ampx', 'sandbox', '--once'], { + const result = await execa('npx', ['ampx', 'sandbox', '--once', '--identifier', 'e2e'], { cwd: this.targetAppPath, reject: false, stdio: 'inherit', @@ -332,8 +333,7 @@ export class App { this.logger.info(`ampx sandbox completed (${Date.now() - startTime}ms)`); - const username = os.userInfo().username; - const stackPrefix = `amplify-${this.deploymentName}-${username}-sandbox`; + const stackPrefix = `amplify-${this.deploymentName}-e2e-sandbox`; return this.findGen2RootStack(stackPrefix); } @@ -422,15 +422,20 @@ export class App { * Sanitizes and copies captured snapshots back to the source app directory. */ public updateSnapshots(): void { + this.logger.info(`Normalizing snapshots`); + normalize(path.basename(this.sourceAppPath), this.snapshotAppPath); this.logger.info(`Sanitizing snapshots`); - sanitize(this.deploymentName, this.snapshotAppPath); + sanitize(path.basename(this.sourceAppPath), this.snapshotAppPath); for (const snapshot of fs.readdirSync(this.snapshotAppPath).filter((f) => f.includes('_snapshot'))) { const sourceSnapshotPath = path.join(this.sourceAppPath, snapshot); this.logger.info(`Updating snapshot: ${sourceSnapshotPath}`); if (fs.existsSync(sourceSnapshotPath)) { fs.removeSync(sourceSnapshotPath); } - fs.copySync(path.join(this.snapshotAppPath, snapshot), sourceSnapshotPath); + fs.copySync(path.join(this.snapshotAppPath, snapshot), sourceSnapshotPath, { + // eslint-disable-next-line @typescript-eslint/no-unused-vars + filter: (src: string, _dst: string) => !src.includes('node_modules'), + }); } } diff --git a/packages/amplify-gen2-migration-e2e-system/src/core/normalize.ts b/packages/amplify-gen2-migration-e2e-system/src/core/normalize.ts new file mode 100644 index 00000000000..2a67886951a --- /dev/null +++ b/packages/amplify-gen2-migration-e2e-system/src/core/normalize.ts @@ -0,0 +1,133 @@ +/* eslint-disable spellcheck/spell-checker */ +/* eslint-disable @typescript-eslint/no-unsafe-argument */ +/* eslint-disable @typescript-eslint/no-unsafe-return */ +/* eslint-disable @typescript-eslint/no-unsafe-call */ +/* eslint-disable @typescript-eslint/no-unsafe-member-access */ +/* eslint-disable @typescript-eslint/no-unsafe-assignment */ +/* eslint-disable @typescript-eslint/no-explicit-any */ + +import * as path from 'path'; +import * as fs from 'fs-extra'; + +function getFilesRecursive(dir: string): string[] { + const files: string[] = []; + const entries = fs.readdirSync(dir, { withFileTypes: true }); + for (const entry of entries) { + const fullPath = path.join(dir, entry.name); + if (fullPath.includes('node_modules')) continue; + if (entry.isDirectory()) { + files.push(...getFilesRecursive(fullPath)); + } else if (entry.isFile()) { + files.push(fullPath); + } + } + return files; +} + +/** + * Builds the list of filename replacements needed to normalize run-specific + * values out of snapshot filenames. + * + * Run-specific values in CFN stack names (and thus filenames): + * 1. deploymentName (timestamp-based, e.g. projectboa2604111848) + * 2. envName (10 random lowercase letters) + * 3. gen1 env hash (short hash from Amplify) + * 4. sandbox hash (CDK sandbox deployment hash) + * 5. git commit hash (Amplify hosting branch hash) + * 6. CFN nested stack hashes (CloudFormation physical resource IDs) + */ +function extractReplacements(appName: string, appDir: string): { before: string; after: string }[] { + const appNameNoDashes = appName.replaceAll('-', ''); + const metaPath = path.join(appDir, '_snapshot.pre.generate', 'amplify', 'backend', 'amplify-meta.json'); + const amplifyMeta: any = JSON.parse(fs.readFileSync(metaPath, 'utf-8')); + const preRefactorSnapshot = path.join(appDir, '_snapshot.pre.refactor'); + + const replacements: { before: string; after: string }[] = []; + + const add = (before: string, after: string): void => { + if ([...before].every((c) => c === 'x')) return; + replacements.push({ before, after }); + }; + + // amplify-projectboards-kjelsxpuch-266a6 + const stackName: string = amplifyMeta.providers.awscloudformation.StackName; + const deploymentName = stackName.split('-')[1]; + const envName = stackName.split('-')[2]; + const envHash = stackName.split('-')[3]; + + add(deploymentName, appNameNoDashes); + add(envName, 'x'); + add(envHash, 'x'); + + const sandboxSegment = '-sandbox-'; + for (const file of fs.readdirSync(preRefactorSnapshot).filter((f) => f.includes(sandboxSegment))) { + // amplify-projectboards-e2e-sandbox-6e1e2f0442-auth179371D7-1DXO5FVZSYJDX + const hash = file.split('.')[0].split('-')[4]; + add(`${sandboxSegment}${hash}-`, `${sandboxSegment}x-`); + } + + for (const file of fs.readdirSync(preRefactorSnapshot)) { + if (file.includes(sandboxSegment)) continue; + + // all gen1 stacks start with these four parts + // e.g amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-ConnectionStack-1873TQGTKKESK.template.json + // here we replace the last (4th) part only since the 3rd + // is the environment name, which is replaced sooner. + const hash = file.split('-')[3]; + add(`-${hash}-`, '-x-'); + } + + for (const file of fs.readdirSync(preRefactorSnapshot)) { + // the last part is always a generated hash + // e.g amplify-projectboards-gen2main-branch-886dbd2dec-auth179371D7-CFDKYQIOG2UJ.template.json + const hash = file.split('.')[0].split('-').reverse()[0]; + add(`-${hash}`, '-x'); + } + + for (const file of fs.readdirSync(preRefactorSnapshot)) { + // doubly nested stacks (Api) have another hash in the middle + // e.g amplify-projectboards-main-02940-apiprojectboards-15FKVIF6IO9MO-ConnectionStack-1873TQGTKKESK.template.json + const parts = file.split('.')[0].split('-'); + if (parts.length !== 8) continue; + const hash = parts[5]; + add(`-${hash}-`, '-x-'); + } + + return replacements; +} + +export function normalize(appName: string, appDir: string): void { + const replacements = extractReplacements(appName, appDir); + + const snapshots = fs.readdirSync(appDir).filter((f) => f.startsWith('_snapshot')); + const files = snapshots.flatMap((s) => getFilesRecursive(path.join(appDir, s))); + + for (const file of files) { + const original = fs.readFileSync(file, 'utf-8'); + let content = original; + let basename = path.basename(file); + + for (const { before, after } of replacements) { + content = content.replaceAll(before, after); + basename = basename.replaceAll(before, after); + } + + if (content !== original) { + fs.writeFileSync(file, content.trimEnd() + '\n', 'utf-8'); + } + + const newPath = path.join(path.dirname(file), basename); + if (newPath !== file) { + fs.renameSync(file, newPath); + } + } + + // Override the "name" field in snapshot package.json files so that + // the name is stable across runs regardless of the deployment name. + for (const snapshot of ['_snapshot.pre.generate', '_snapshot.post.generate']) { + const pkgPath = path.join(appDir, snapshot, 'package.json'); + const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf-8')); + pkg.name = `@amplify-migration-apps/${appName}-snapshot`; + fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + '\n', 'utf-8'); + } +} diff --git a/packages/amplify-gen2-migration-e2e-system/src/core/sanitize.ts b/packages/amplify-gen2-migration-e2e-system/src/core/sanitize.ts index 7e462404647..b1686bf1b5b 100644 --- a/packages/amplify-gen2-migration-e2e-system/src/core/sanitize.ts +++ b/packages/amplify-gen2-migration-e2e-system/src/core/sanitize.ts @@ -1,4 +1,3 @@ -#!/usr/bin/env npx tsx /* eslint-disable spellcheck/spell-checker */ /* eslint-disable @typescript-eslint/no-unsafe-argument */ /* eslint-disable @typescript-eslint/no-unsafe-return */ @@ -9,7 +8,6 @@ import * as fs from 'fs'; import * as path from 'path'; -import * as os from 'os'; interface SensitiveValues { accountId: string; @@ -83,13 +81,7 @@ function getFilesRecursive(dir: string): string[] { } function sanitizeFileName(name: string, appId: string, appName: string): string { - // sandbox uses this - const username = os.userInfo().username; - return name.replaceAll(appId, appName).replaceAll(`-${username}-`, '-username-'); -} - -function getAllFiles(dir: string): string[] { - return getFilesRecursive(dir); + return name.replaceAll(appId, appName); } /** @@ -103,7 +95,8 @@ function getAllFiles(dir: string): string[] { * Targets: * - AWS Account ID (from providers.awscloudformation AuthRoleArn) → replaced with 123456789012 * - Amplify App ID (from providers.awscloudformation) → replaced with app name (dashes removed) - * - AppSync API Key (from api output, if present) → replaced with da2-fakeapikey00000000000000 + * - Gen1 AppSync API Key (if present and starts with da2-) → replaced with da2-fakeapikey00000000000000 + * - Gen2 AppSync API Key (from .outputs.json, if present) → replaced with da2-fakeapikey00000000000000 */ export function sanitize(appName: string, appDir: string): void { const appNameNoDashes = appName.replaceAll('-', ''); @@ -112,7 +105,7 @@ export function sanitize(appName: string, appDir: string): void { const values = extractSensitiveValues(amplifyMeta, appDir); const snapshots = fs.readdirSync(appDir).filter((f) => f.startsWith('_snapshot')); - const files = [...snapshots.flatMap((s) => getAllFiles(path.join(appDir, s)))]; + const files = [...snapshots.flatMap((s) => getFilesRecursive(path.join(appDir, s)))]; for (const file of files) { let content = fs.readFileSync(file, 'utf-8'); @@ -130,7 +123,7 @@ export function sanitize(appName: string, appDir: string): void { const sanitizedFileName = sanitizeFileName(file, values.amplifyAppId, appNameNoDashes); - fs.writeFileSync(file, content, 'utf-8'); + fs.writeFileSync(file, content.trimEnd() + '\n', 'utf-8'); fs.renameSync(file, sanitizedFileName); } } diff --git a/yarn.lock b/yarn.lock index 8e3356b7abe..34d605e96e4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -26,6 +26,7 @@ __metadata: "@aws-amplify/backend": ^1.18.0 "@aws-amplify/backend-cli": ^1.8.0 "@aws-amplify/backend-data": ^1.6.2 + "@aws-sdk/client-cognito-identity-provider": ^3.936.0 "@types/aws-lambda": ^8.10.92 "@types/node": "*" aws-cdk: ^2 @@ -53,9 +54,11 @@ __metadata: "@aws-amplify/backend": ^1.18.0 "@aws-amplify/backend-cli": ^1.8.0 "@aws-amplify/backend-data": ^1.6.2 + "@aws-sdk/client-cognito-identity-provider": ^3.936.0 "@aws-sdk/client-dynamodb": ^3.936.0 "@aws-sdk/lib-dynamodb": ^3.936.0 "@types/aws-lambda": ^8.10.92 + "@types/jest": ^29.5.14 "@types/node": "*" aws-amplify: ^6.15.8 aws-cdk: ^2 @@ -63,6 +66,8 @@ __metadata: ci-info: ^4.3.1 constructs: ^10.0.0 esbuild: ^0.27.0 + jest: ^29.7.0 + ts-jest: ^29.3.4 tsx: ^4.20.6 vite: ^7.2.2 languageName: unknown @@ -83,63 +88,66 @@ __metadata: languageName: unknown linkType: soft -"@amplify-migration-apps/fitness-goal-tracker-snapshot@workspace:amplify-migration-apps/fitness-tracker/_snapshot.post.generate": +"@amplify-migration-apps/fitness-goal-tracker@workspace:amplify-migration-apps/fitness-tracker": version: 0.0.0-use.local - resolution: "@amplify-migration-apps/fitness-goal-tracker-snapshot@workspace:amplify-migration-apps/fitness-tracker/_snapshot.post.generate" + resolution: "@amplify-migration-apps/fitness-goal-tracker@workspace:amplify-migration-apps/fitness-tracker" dependencies: - "@aws-amplify/backend": ^1.18.0 - "@aws-amplify/backend-cli": ^1.8.0 - "@aws-amplify/backend-data": ^1.6.2 "@aws-amplify/ui-react": ^6.13.1 - "@aws-sdk/client-cognito-identity-provider": ^3.0.0 + "@aws-sdk/client-cognito-identity-provider": ^3.936.0 "@aws-sdk/client-dynamodb": ^3.969.0 + "@aws-sdk/client-lambda": ^3.936.0 "@aws-sdk/lib-dynamodb": ^3.969.0 "@eslint/js": ^9.39.1 - "@types/aws-lambda": ^8.10.92 - "@types/node": "*" + "@types/jest": ^29.5.14 + "@types/node": ^24.10.1 "@types/react": ^19.2.5 "@types/react-dom": ^19.2.3 "@vitejs/plugin-react": ^5.1.1 aws-amplify: ^6.15.8 - aws-cdk: ^2 - aws-cdk-lib: ^2 aws-serverless-express: ^3.3.5 body-parser: ^1.17.1 - ci-info: ^4.3.1 - constructs: ^10.0.0 - esbuild: ^0.27.0 eslint: ^9.39.1 eslint-plugin-react-hooks: ^7.0.1 eslint-plugin-react-refresh: ^0.4.24 express: ^4.15.2 globals: ^16.5.0 + jest: ^29.7.0 react: ^19.2.0 react-dom: ^19.2.0 - tsx: ^4.20.6 + ts-jest: ^29.3.4 typescript: ~5.9.3 typescript-eslint: ^8.46.4 vite: ^7.2.4 languageName: unknown linkType: soft -"@amplify-migration-apps/fitness-goal-tracker@workspace:amplify-migration-apps/fitness-tracker": +"@amplify-migration-apps/fitness-tracker-snapshot@workspace:amplify-migration-apps/fitness-tracker/_snapshot.post.generate": version: 0.0.0-use.local - resolution: "@amplify-migration-apps/fitness-goal-tracker@workspace:amplify-migration-apps/fitness-tracker" + resolution: "@amplify-migration-apps/fitness-tracker-snapshot@workspace:amplify-migration-apps/fitness-tracker/_snapshot.post.generate" dependencies: + "@aws-amplify/backend": ^1.18.0 + "@aws-amplify/backend-cli": ^1.8.0 + "@aws-amplify/backend-data": ^1.6.2 "@aws-amplify/ui-react": ^6.13.1 "@aws-sdk/client-cognito-identity-provider": ^3.936.0 "@aws-sdk/client-dynamodb": ^3.969.0 "@aws-sdk/client-lambda": ^3.936.0 "@aws-sdk/lib-dynamodb": ^3.969.0 "@eslint/js": ^9.39.1 + "@types/aws-lambda": ^8.10.92 "@types/jest": ^29.5.14 - "@types/node": ^24.10.1 + "@types/node": "*" "@types/react": ^19.2.5 "@types/react-dom": ^19.2.3 "@vitejs/plugin-react": ^5.1.1 aws-amplify: ^6.15.8 + aws-cdk: ^2 + aws-cdk-lib: ^2 aws-serverless-express: ^3.3.5 body-parser: ^1.17.1 + ci-info: ^4.3.1 + constructs: ^10.0.0 + esbuild: ^0.27.0 eslint: ^9.39.1 eslint-plugin-react-hooks: ^7.0.1 eslint-plugin-react-refresh: ^0.4.24 @@ -149,6 +157,7 @@ __metadata: react: ^19.2.0 react-dom: ^19.2.0 ts-jest: ^29.3.4 + tsx: ^4.20.6 typescript: ~5.9.3 typescript-eslint: ^8.46.4 vite: ^7.2.4 @@ -229,10 +238,11 @@ __metadata: "@aws-amplify/backend-data": ^1.6.2 "@aws-amplify/storage": ^6.10.1 "@aws-amplify/ui-react": ^6.13.1 - "@aws-sdk/client-cognito-identity-provider": 3.966.0 + "@aws-sdk/client-cognito-identity-provider": ^3.936.0 "@aws-sdk/client-s3": 3.966.0 "@eslint/js": ^9.39.1 "@types/aws-lambda": ^8.10.92 + "@types/jest": ^29.5.14 "@types/node": "*" "@types/react": ^19.2.5 "@types/react-dom": ^19.2.3 @@ -247,9 +257,11 @@ __metadata: eslint-plugin-react-hooks: ^7.0.1 eslint-plugin-react-refresh: ^0.4.24 globals: ^16.5.0 + jest: ^29.7.0 react: ^19.2.0 react-dom: ^19.2.0 sharp: ^0.34.5 + ts-jest: ^29.3.4 tsx: ^4.20.6 typescript: ~5.9.3 typescript-eslint: ^8.46.4 @@ -287,48 +299,52 @@ __metadata: languageName: unknown linkType: soft -"@amplify-migration-apps/mood-board-app-snapshot@workspace:amplify-migration-apps/mood-board/_snapshot.post.generate": +"@amplify-migration-apps/mood-board-app@workspace:amplify-migration-apps/mood-board": version: 0.0.0-use.local - resolution: "@amplify-migration-apps/mood-board-app-snapshot@workspace:amplify-migration-apps/mood-board/_snapshot.post.generate" + resolution: "@amplify-migration-apps/mood-board-app@workspace:amplify-migration-apps/mood-board" dependencies: - "@aws-amplify/backend": ^1.18.0 - "@aws-amplify/backend-cli": ^1.8.0 - "@aws-amplify/backend-data": ^1.6.2 "@aws-amplify/ui-react": ^6.10.1 - "@types/aws-lambda": ^8.10.92 - "@types/node": "*" + "@aws-sdk/client-cognito-identity-provider": ^3.936.0 + "@types/jest": ^29.5.14 "@types/react": ^18.3.3 "@types/react-dom": ^18.3.0 "@vitejs/plugin-react": ^4.3.1 aws-amplify: ^6.14.1 - aws-cdk: ^2 - aws-cdk-lib: ^2 - ci-info: ^4.3.1 - constructs: ^10.0.0 - esbuild: ^0.27.0 + jest: ^29.7.0 react: ^18.3.1 react-dom: ^18.3.1 - tsx: ^4.20.6 + ts-jest: ^29.3.4 typescript: ^5.5.3 vite: ^5.4.2 languageName: unknown linkType: soft -"@amplify-migration-apps/mood-board-app@workspace:amplify-migration-apps/mood-board": +"@amplify-migration-apps/mood-board-snapshot@workspace:amplify-migration-apps/mood-board/_snapshot.post.generate": version: 0.0.0-use.local - resolution: "@amplify-migration-apps/mood-board-app@workspace:amplify-migration-apps/mood-board" + resolution: "@amplify-migration-apps/mood-board-snapshot@workspace:amplify-migration-apps/mood-board/_snapshot.post.generate" dependencies: + "@aws-amplify/backend": ^1.18.0 + "@aws-amplify/backend-cli": ^1.8.0 + "@aws-amplify/backend-data": ^1.6.2 "@aws-amplify/ui-react": ^6.10.1 "@aws-sdk/client-cognito-identity-provider": ^3.936.0 + "@types/aws-lambda": ^8.10.92 "@types/jest": ^29.5.14 + "@types/node": "*" "@types/react": ^18.3.3 "@types/react-dom": ^18.3.0 "@vitejs/plugin-react": ^4.3.1 aws-amplify: ^6.14.1 + aws-cdk: ^2 + aws-cdk-lib: ^2 + ci-info: ^4.3.1 + constructs: ^10.0.0 + esbuild: ^0.27.0 jest: ^29.7.0 react: ^18.3.1 react-dom: ^18.3.1 ts-jest: ^29.3.4 + tsx: ^4.20.6 typescript: ^5.5.3 vite: ^5.4.2 languageName: unknown @@ -343,12 +359,15 @@ __metadata: "@aws-amplify/backend-data": ^1.6.2 "@aws-amplify/ui-react": ^6.13.1 "@aws-crypto/sha256-js": ^2.0.1 - "@aws-sdk/client-ssm": ^3.962.0 + "@aws-sdk/client-appsync": ^3.936.0 + "@aws-sdk/client-cognito-identity-provider": ^3.936.0 + "@aws-sdk/client-ssm": ^3.936.0 "@aws-sdk/credential-provider-node": ^3.76.0 "@aws-sdk/protocol-http": ^3.58.0 "@aws-sdk/signature-v4": ^3.58.0 "@eslint/js": ^9.39.1 "@types/aws-lambda": ^8.10.92 + "@types/jest": ^29.5.14 "@types/node": "*" "@types/react": ^19.2.5 "@types/react-dom": ^19.2.3 @@ -363,8 +382,10 @@ __metadata: eslint-plugin-react-hooks: ^7.0.1 eslint-plugin-react-refresh: ^0.4.24 globals: ^16.5.0 + jest: ^29.7.0 react: ^19.2.0 react-dom: ^19.2.0 + ts-jest: ^29.3.4 tsx: ^4.20.6 typescript: ~5.9.3 typescript-eslint: ^8.46.4 @@ -410,8 +431,10 @@ __metadata: "@aws-amplify/backend-data": ^1.6.2 "@aws-amplify/ui-react": ^6.13.0 "@aws-amplify/ui-react-core": ^3.4.6 + "@aws-sdk/client-cognito-identity-provider": ^3.936.0 "@eslint/js": ^9.36.0 "@types/aws-lambda": ^8.10.92 + "@types/jest": ^29.5.14 "@types/node": "*" "@types/react": ^19.1.16 "@types/react-dom": ^19.1.9 @@ -426,8 +449,10 @@ __metadata: eslint-plugin-react-hooks: ^5.2.0 eslint-plugin-react-refresh: ^0.4.22 globals: ^16.4.0 + jest: ^29.7.0 react: ^19.1.1 react-dom: ^19.1.1 + ts-jest: ^29.3.4 tsx: ^4.20.6 typescript: ~5.9.3 typescript-eslint: ^8.45.0 @@ -473,9 +498,11 @@ __metadata: "@aws-amplify/geo": ^3.0.92 "@aws-amplify/ui-react": ^6.13.2 "@aws-amplify/ui-react-geo": ^2.2.13 - "@aws-sdk/client-cognito-identity-provider": ^3.1016.0 + "@aws-sdk/client-cognito-identity-provider": ^3.936.0 + "@aws-sdk/client-lambda": ^3.936.0 "@eslint/js": ^9.39.1 "@types/aws-lambda": ^8.10.92 + "@types/jest": ^29.5.14 "@types/node": "*" "@types/react": ^19.2.5 "@types/react-dom": ^19.2.3 @@ -491,10 +518,12 @@ __metadata: eslint-plugin-react-hooks: ^7.0.1 eslint-plugin-react-refresh: ^0.4.24 globals: ^16.5.0 + jest: ^29.7.0 maplibre-gl: ^2.4.0 maplibre-gl-js-amplify: ^4.0.2 react: ^19.2.0 react-dom: ^19.2.0 + ts-jest: ^29.3.4 tsx: ^4.20.6 typescript: ~5.9.3 typescript-eslint: ^8.46.4 @@ -510,6 +539,7 @@ __metadata: "@aws-amplify/ui-react": ^6.13.2 "@aws-amplify/ui-react-geo": ^2.2.13 "@aws-sdk/client-cognito-identity-provider": ^3.936.0 + "@aws-sdk/client-lambda": ^3.936.0 "@eslint/js": ^9.39.1 "@types/jest": ^29.5.14 "@types/node": ^24.10.1 @@ -4946,53 +4976,6 @@ __metadata: languageName: node linkType: hard -"@aws-sdk/client-cognito-identity-provider@npm:3.966.0": - version: 3.966.0 - resolution: "@aws-sdk/client-cognito-identity-provider@npm:3.966.0" - dependencies: - "@aws-crypto/sha256-browser": 5.2.0 - "@aws-crypto/sha256-js": 5.2.0 - "@aws-sdk/core": 3.966.0 - "@aws-sdk/credential-provider-node": 3.966.0 - "@aws-sdk/middleware-host-header": 3.965.0 - "@aws-sdk/middleware-logger": 3.965.0 - "@aws-sdk/middleware-recursion-detection": 3.965.0 - "@aws-sdk/middleware-user-agent": 3.966.0 - "@aws-sdk/region-config-resolver": 3.965.0 - "@aws-sdk/types": 3.965.0 - "@aws-sdk/util-endpoints": 3.965.0 - "@aws-sdk/util-user-agent-browser": 3.965.0 - "@aws-sdk/util-user-agent-node": 3.966.0 - "@smithy/config-resolver": ^4.4.5 - "@smithy/core": ^3.20.1 - "@smithy/fetch-http-handler": ^5.3.8 - "@smithy/hash-node": ^4.2.7 - "@smithy/invalid-dependency": ^4.2.7 - "@smithy/middleware-content-length": ^4.2.7 - "@smithy/middleware-endpoint": ^4.4.2 - "@smithy/middleware-retry": ^4.4.18 - "@smithy/middleware-serde": ^4.2.8 - "@smithy/middleware-stack": ^4.2.7 - "@smithy/node-config-provider": ^4.3.7 - "@smithy/node-http-handler": ^4.4.7 - "@smithy/protocol-http": ^5.3.7 - "@smithy/smithy-client": ^4.10.3 - "@smithy/types": ^4.11.0 - "@smithy/url-parser": ^4.2.7 - "@smithy/util-base64": ^4.3.0 - "@smithy/util-body-length-browser": ^4.2.0 - "@smithy/util-body-length-node": ^4.2.1 - "@smithy/util-defaults-mode-browser": ^4.3.17 - "@smithy/util-defaults-mode-node": ^4.2.20 - "@smithy/util-endpoints": ^3.2.7 - "@smithy/util-middleware": ^4.2.7 - "@smithy/util-retry": ^4.2.7 - "@smithy/util-utf8": ^4.2.0 - tslib: ^2.6.2 - checksum: fb508ad456fe8b9a845e4d14f6ce72fdb6169a70fb02384587a6c08f7506ed1ecaac661319c08ec42ab04c0b697c131bc354e0e001831fb4708d277268f31ecc - languageName: node - linkType: hard - "@aws-sdk/client-cognito-identity-provider@npm:^3.0.0, @aws-sdk/client-cognito-identity-provider@npm:^3.624.0, @aws-sdk/client-cognito-identity-provider@npm:^3.919.0": version: 3.1007.0 resolution: "@aws-sdk/client-cognito-identity-provider@npm:3.1007.0" @@ -5040,53 +5023,6 @@ __metadata: languageName: node linkType: hard -"@aws-sdk/client-cognito-identity-provider@npm:^3.1016.0": - version: 3.1016.0 - resolution: "@aws-sdk/client-cognito-identity-provider@npm:3.1016.0" - dependencies: - "@aws-crypto/sha256-browser": 5.2.0 - "@aws-crypto/sha256-js": 5.2.0 - "@aws-sdk/core": ^3.973.24 - "@aws-sdk/credential-provider-node": ^3.972.25 - "@aws-sdk/middleware-host-header": ^3.972.8 - "@aws-sdk/middleware-logger": ^3.972.8 - "@aws-sdk/middleware-recursion-detection": ^3.972.8 - "@aws-sdk/middleware-user-agent": ^3.972.25 - "@aws-sdk/region-config-resolver": ^3.972.9 - "@aws-sdk/types": ^3.973.6 - "@aws-sdk/util-endpoints": ^3.996.5 - "@aws-sdk/util-user-agent-browser": ^3.972.8 - "@aws-sdk/util-user-agent-node": ^3.973.11 - "@smithy/config-resolver": ^4.4.13 - "@smithy/core": ^3.23.12 - "@smithy/fetch-http-handler": ^5.3.15 - "@smithy/hash-node": ^4.2.12 - "@smithy/invalid-dependency": ^4.2.12 - "@smithy/middleware-content-length": ^4.2.12 - "@smithy/middleware-endpoint": ^4.4.27 - "@smithy/middleware-retry": ^4.4.44 - "@smithy/middleware-serde": ^4.2.15 - "@smithy/middleware-stack": ^4.2.12 - "@smithy/node-config-provider": ^4.3.12 - "@smithy/node-http-handler": ^4.5.0 - "@smithy/protocol-http": ^5.3.12 - "@smithy/smithy-client": ^4.12.7 - "@smithy/types": ^4.13.1 - "@smithy/url-parser": ^4.2.12 - "@smithy/util-base64": ^4.3.2 - "@smithy/util-body-length-browser": ^4.2.2 - "@smithy/util-body-length-node": ^4.2.3 - "@smithy/util-defaults-mode-browser": ^4.3.43 - "@smithy/util-defaults-mode-node": ^4.2.47 - "@smithy/util-endpoints": ^3.3.3 - "@smithy/util-middleware": ^4.2.12 - "@smithy/util-retry": ^4.2.12 - "@smithy/util-utf8": ^4.2.2 - tslib: ^2.6.2 - checksum: 0e664d492a912afd24645b38b0ea9a062ff3b8424784e1d930566047c83bda35823aefaeaa05e6c3e5f288be686e67f3e01362a03d0951abdf21cfcf5e997484 - languageName: node - linkType: hard - "@aws-sdk/client-cognito-identity-provider@npm:^3.936.0": version: 3.1023.0 resolution: "@aws-sdk/client-cognito-identity-provider@npm:3.1023.0" @@ -7432,7 +7368,7 @@ __metadata: languageName: node linkType: hard -"@aws-sdk/client-ssm@npm:^3, @aws-sdk/client-ssm@npm:^3.919.0, @aws-sdk/client-ssm@npm:^3.936.0, @aws-sdk/client-ssm@npm:^3.962.0": +"@aws-sdk/client-ssm@npm:^3, @aws-sdk/client-ssm@npm:^3.919.0, @aws-sdk/client-ssm@npm:^3.936.0": version: 3.1007.0 resolution: "@aws-sdk/client-ssm@npm:3.1007.0" dependencies: @@ -8463,27 +8399,6 @@ __metadata: languageName: node linkType: hard -"@aws-sdk/core@npm:^3.973.24": - version: 3.973.24 - resolution: "@aws-sdk/core@npm:3.973.24" - dependencies: - "@aws-sdk/types": ^3.973.6 - "@aws-sdk/xml-builder": ^3.972.15 - "@smithy/core": ^3.23.12 - "@smithy/node-config-provider": ^4.3.12 - "@smithy/property-provider": ^4.2.12 - "@smithy/protocol-http": ^5.3.12 - "@smithy/signature-v4": ^5.3.12 - "@smithy/smithy-client": ^4.12.7 - "@smithy/types": ^4.13.1 - "@smithy/util-base64": ^4.3.2 - "@smithy/util-middleware": ^4.2.12 - "@smithy/util-utf8": ^4.2.2 - tslib: ^2.6.2 - checksum: ab6899a7951931ea4622c7b346db0d9ff39244c306236184847840bfc527ac7e719338292e2ac154505e12f3ce64f5cc363a646f63f7559b0d7d46088f65f812 - languageName: node - linkType: hard - "@aws-sdk/core@npm:^3.973.26": version: 3.973.26 resolution: "@aws-sdk/core@npm:3.973.26" @@ -8637,19 +8552,6 @@ __metadata: languageName: node linkType: hard -"@aws-sdk/credential-provider-env@npm:^3.972.22": - version: 3.972.22 - resolution: "@aws-sdk/credential-provider-env@npm:3.972.22" - dependencies: - "@aws-sdk/core": ^3.973.24 - "@aws-sdk/types": ^3.973.6 - "@smithy/property-provider": ^4.2.12 - "@smithy/types": ^4.13.1 - tslib: ^2.6.2 - checksum: e38dc838d46493b0a93240d08482a357d0dc8ffb448e8a41b07848f4d28592a50a6192b3d91a1406cc2a9a2fa3e02819db82e67da21ac764fef7a4f6e2253e89 - languageName: node - linkType: hard - "@aws-sdk/credential-provider-env@npm:^3.972.24": version: 3.972.24 resolution: "@aws-sdk/credential-provider-env@npm:3.972.24" @@ -8769,24 +8671,6 @@ __metadata: languageName: node linkType: hard -"@aws-sdk/credential-provider-http@npm:^3.972.24": - version: 3.972.24 - resolution: "@aws-sdk/credential-provider-http@npm:3.972.24" - dependencies: - "@aws-sdk/core": ^3.973.24 - "@aws-sdk/types": ^3.973.6 - "@smithy/fetch-http-handler": ^5.3.15 - "@smithy/node-http-handler": ^4.5.0 - "@smithy/property-provider": ^4.2.12 - "@smithy/protocol-http": ^5.3.12 - "@smithy/smithy-client": ^4.12.7 - "@smithy/types": ^4.13.1 - "@smithy/util-stream": ^4.5.20 - tslib: ^2.6.2 - checksum: 7e7eb88ec8cf57d3b0a787873cc1b8f88b57132b6fbd3dfea33dbc81fae828e24bd548686dd479c79af832ad1c25bc796ed95045d60d471196512d3aad12dd33 - languageName: node - linkType: hard - "@aws-sdk/credential-provider-http@npm:^3.972.26": version: 3.972.26 resolution: "@aws-sdk/credential-provider-http@npm:3.972.26" @@ -9007,28 +8891,6 @@ __metadata: languageName: node linkType: hard -"@aws-sdk/credential-provider-ini@npm:^3.972.24": - version: 3.972.24 - resolution: "@aws-sdk/credential-provider-ini@npm:3.972.24" - dependencies: - "@aws-sdk/core": ^3.973.24 - "@aws-sdk/credential-provider-env": ^3.972.22 - "@aws-sdk/credential-provider-http": ^3.972.24 - "@aws-sdk/credential-provider-login": ^3.972.24 - "@aws-sdk/credential-provider-process": ^3.972.22 - "@aws-sdk/credential-provider-sso": ^3.972.24 - "@aws-sdk/credential-provider-web-identity": ^3.972.24 - "@aws-sdk/nested-clients": ^3.996.14 - "@aws-sdk/types": ^3.973.6 - "@smithy/credential-provider-imds": ^4.2.12 - "@smithy/property-provider": ^4.2.12 - "@smithy/shared-ini-file-loader": ^4.4.7 - "@smithy/types": ^4.13.1 - tslib: ^2.6.2 - checksum: 626483f218000bcdcbeffca6c2e16df04ea2a06ac2f87b4b839d25380debf3408688d54ce76fdb12118879bf7f0ad8ba8aedd8a23bf8898cd00688a754b1e884 - languageName: node - linkType: hard - "@aws-sdk/credential-provider-ini@npm:^3.972.28": version: 3.972.28 resolution: "@aws-sdk/credential-provider-ini@npm:3.972.28" @@ -9083,22 +8945,6 @@ __metadata: languageName: node linkType: hard -"@aws-sdk/credential-provider-login@npm:^3.972.24": - version: 3.972.24 - resolution: "@aws-sdk/credential-provider-login@npm:3.972.24" - dependencies: - "@aws-sdk/core": ^3.973.24 - "@aws-sdk/nested-clients": ^3.996.14 - "@aws-sdk/types": ^3.973.6 - "@smithy/property-provider": ^4.2.12 - "@smithy/protocol-http": ^5.3.12 - "@smithy/shared-ini-file-loader": ^4.4.7 - "@smithy/types": ^4.13.1 - tslib: ^2.6.2 - checksum: 9edf24ae5d9291b69118efb542bbc3bc4ef742137b730bfbb4ac5b014297de1f37fedf44e896d8929f441a53c52e14b66ebf382de78bf7e2dd408a85f08b735c - languageName: node - linkType: hard - "@aws-sdk/credential-provider-login@npm:^3.972.28": version: 3.972.28 resolution: "@aws-sdk/credential-provider-login@npm:3.972.28" @@ -9289,26 +9135,6 @@ __metadata: languageName: node linkType: hard -"@aws-sdk/credential-provider-node@npm:^3.972.25": - version: 3.972.25 - resolution: "@aws-sdk/credential-provider-node@npm:3.972.25" - dependencies: - "@aws-sdk/credential-provider-env": ^3.972.22 - "@aws-sdk/credential-provider-http": ^3.972.24 - "@aws-sdk/credential-provider-ini": ^3.972.24 - "@aws-sdk/credential-provider-process": ^3.972.22 - "@aws-sdk/credential-provider-sso": ^3.972.24 - "@aws-sdk/credential-provider-web-identity": ^3.972.24 - "@aws-sdk/types": ^3.973.6 - "@smithy/credential-provider-imds": ^4.2.12 - "@smithy/property-provider": ^4.2.12 - "@smithy/shared-ini-file-loader": ^4.4.7 - "@smithy/types": ^4.13.1 - tslib: ^2.6.2 - checksum: d2b452cdd5142ee25148263d45e8f29d48d7bf6d5ba07d9faaf4e7795746c2b2906d1350edc5cf79bdf1822b6ece455765fff0bfc33ce76a8510b3b68064e904 - languageName: node - linkType: hard - "@aws-sdk/credential-provider-node@npm:^3.972.29": version: 3.972.29 resolution: "@aws-sdk/credential-provider-node@npm:3.972.29" @@ -9423,20 +9249,6 @@ __metadata: languageName: node linkType: hard -"@aws-sdk/credential-provider-process@npm:^3.972.22": - version: 3.972.22 - resolution: "@aws-sdk/credential-provider-process@npm:3.972.22" - dependencies: - "@aws-sdk/core": ^3.973.24 - "@aws-sdk/types": ^3.973.6 - "@smithy/property-provider": ^4.2.12 - "@smithy/shared-ini-file-loader": ^4.4.7 - "@smithy/types": ^4.13.1 - tslib: ^2.6.2 - checksum: 236048b759be7b588f5acacb7601b5589de88f45a946c425f1c4e542bd268c156083d7e2900b5c5c0d3a91a4debe3b2868d0f35d4979ad4945cc7d42c7b6acca - languageName: node - linkType: hard - "@aws-sdk/credential-provider-process@npm:^3.972.24": version: 3.972.24 resolution: "@aws-sdk/credential-provider-process@npm:3.972.24" @@ -9573,22 +9385,6 @@ __metadata: languageName: node linkType: hard -"@aws-sdk/credential-provider-sso@npm:^3.972.24": - version: 3.972.24 - resolution: "@aws-sdk/credential-provider-sso@npm:3.972.24" - dependencies: - "@aws-sdk/core": ^3.973.24 - "@aws-sdk/nested-clients": ^3.996.14 - "@aws-sdk/token-providers": 3.1015.0 - "@aws-sdk/types": ^3.973.6 - "@smithy/property-provider": ^4.2.12 - "@smithy/shared-ini-file-loader": ^4.4.7 - "@smithy/types": ^4.13.1 - tslib: ^2.6.2 - checksum: 0ab0a263aec8e196044ddb3dd9577c4997117ca5991a4a9b892678c64bcfbd097bf767a776a5ca1a66999ba0b3b9df34e0b9555545f4a2cfa27b658bcdb29f79 - languageName: node - linkType: hard - "@aws-sdk/credential-provider-sso@npm:^3.972.28": version: 3.972.28 resolution: "@aws-sdk/credential-provider-sso@npm:3.972.28" @@ -9690,21 +9486,6 @@ __metadata: languageName: node linkType: hard -"@aws-sdk/credential-provider-web-identity@npm:^3.972.24": - version: 3.972.24 - resolution: "@aws-sdk/credential-provider-web-identity@npm:3.972.24" - dependencies: - "@aws-sdk/core": ^3.973.24 - "@aws-sdk/nested-clients": ^3.996.14 - "@aws-sdk/types": ^3.973.6 - "@smithy/property-provider": ^4.2.12 - "@smithy/shared-ini-file-loader": ^4.4.7 - "@smithy/types": ^4.13.1 - tslib: ^2.6.2 - checksum: 481a8e75cc77e7e87f76de5e146e4f5608d62914c90fa68a6a5589ada3293b1522f87557e7a1921ae41f2f743fdc808ec2f3d2d9aa9a22595fc57edd00894f99 - languageName: node - linkType: hard - "@aws-sdk/credential-provider-web-identity@npm:^3.972.28": version: 3.972.28 resolution: "@aws-sdk/credential-provider-web-identity@npm:3.972.28" @@ -10543,19 +10324,6 @@ __metadata: languageName: node linkType: hard -"@aws-sdk/middleware-recursion-detection@npm:^3.972.8": - version: 3.972.8 - resolution: "@aws-sdk/middleware-recursion-detection@npm:3.972.8" - dependencies: - "@aws-sdk/types": ^3.973.6 - "@aws/lambda-invoke-store": ^0.2.2 - "@smithy/protocol-http": ^5.3.12 - "@smithy/types": ^4.13.1 - tslib: ^2.6.2 - checksum: 8d8ef442befd65dd9175294ae292e2b421171c0c9db9389a6f504b97e055dc9c3b51a80c711792fbc31cd3b4976f1d71d30a378063416553e17a59f70e7eb6d1 - languageName: node - linkType: hard - "@aws-sdk/middleware-recursion-detection@npm:^3.972.9": version: 3.972.9 resolution: "@aws-sdk/middleware-recursion-detection@npm:3.972.9" @@ -10935,22 +10703,6 @@ __metadata: languageName: node linkType: hard -"@aws-sdk/middleware-user-agent@npm:^3.972.25": - version: 3.972.25 - resolution: "@aws-sdk/middleware-user-agent@npm:3.972.25" - dependencies: - "@aws-sdk/core": ^3.973.24 - "@aws-sdk/types": ^3.973.6 - "@aws-sdk/util-endpoints": ^3.996.5 - "@smithy/core": ^3.23.12 - "@smithy/protocol-http": ^5.3.12 - "@smithy/types": ^4.13.1 - "@smithy/util-retry": ^4.2.12 - tslib: ^2.6.2 - checksum: d52d62a8d46ce56fdd8255ef931640890386ed49d73c46701e4dffea70bc931fd3c2429d5ed45e85995d1f32eb77e072496e4f58f167a05caf501b8ac962e2b2 - languageName: node - linkType: hard - "@aws-sdk/middleware-user-agent@npm:^3.972.28": version: 3.972.28 resolution: "@aws-sdk/middleware-user-agent@npm:3.972.28" @@ -11125,52 +10877,6 @@ __metadata: languageName: node linkType: hard -"@aws-sdk/nested-clients@npm:^3.996.14": - version: 3.996.14 - resolution: "@aws-sdk/nested-clients@npm:3.996.14" - dependencies: - "@aws-crypto/sha256-browser": 5.2.0 - "@aws-crypto/sha256-js": 5.2.0 - "@aws-sdk/core": ^3.973.24 - "@aws-sdk/middleware-host-header": ^3.972.8 - "@aws-sdk/middleware-logger": ^3.972.8 - "@aws-sdk/middleware-recursion-detection": ^3.972.8 - "@aws-sdk/middleware-user-agent": ^3.972.25 - "@aws-sdk/region-config-resolver": ^3.972.9 - "@aws-sdk/types": ^3.973.6 - "@aws-sdk/util-endpoints": ^3.996.5 - "@aws-sdk/util-user-agent-browser": ^3.972.8 - "@aws-sdk/util-user-agent-node": ^3.973.11 - "@smithy/config-resolver": ^4.4.13 - "@smithy/core": ^3.23.12 - "@smithy/fetch-http-handler": ^5.3.15 - "@smithy/hash-node": ^4.2.12 - "@smithy/invalid-dependency": ^4.2.12 - "@smithy/middleware-content-length": ^4.2.12 - "@smithy/middleware-endpoint": ^4.4.27 - "@smithy/middleware-retry": ^4.4.44 - "@smithy/middleware-serde": ^4.2.15 - "@smithy/middleware-stack": ^4.2.12 - "@smithy/node-config-provider": ^4.3.12 - "@smithy/node-http-handler": ^4.5.0 - "@smithy/protocol-http": ^5.3.12 - "@smithy/smithy-client": ^4.12.7 - "@smithy/types": ^4.13.1 - "@smithy/url-parser": ^4.2.12 - "@smithy/util-base64": ^4.3.2 - "@smithy/util-body-length-browser": ^4.2.2 - "@smithy/util-body-length-node": ^4.2.3 - "@smithy/util-defaults-mode-browser": ^4.3.43 - "@smithy/util-defaults-mode-node": ^4.2.47 - "@smithy/util-endpoints": ^3.3.3 - "@smithy/util-middleware": ^4.2.12 - "@smithy/util-retry": ^4.2.12 - "@smithy/util-utf8": ^4.2.2 - tslib: ^2.6.2 - checksum: ed88e2cedd31f4aea533011e0f4fae57ad3a67cce95c7daf1633541e4fc9c5cd08e0d32615c07ef94b60516142f6685eb2176714123befa75856db9e8e08f01a - languageName: node - linkType: hard - "@aws-sdk/nested-clients@npm:^3.996.18": version: 3.996.18 resolution: "@aws-sdk/nested-clients@npm:3.996.18" @@ -11440,19 +11146,6 @@ __metadata: languageName: node linkType: hard -"@aws-sdk/region-config-resolver@npm:^3.972.9": - version: 3.972.9 - resolution: "@aws-sdk/region-config-resolver@npm:3.972.9" - dependencies: - "@aws-sdk/types": ^3.973.6 - "@smithy/config-resolver": ^4.4.13 - "@smithy/node-config-provider": ^4.3.12 - "@smithy/types": ^4.13.1 - tslib: ^2.6.2 - checksum: 2f5bee01355f955ff7f6dbd06c893366bfd9612e969ed7c4bd56ab6f00a00113a743eddc02da36dde137f4e6b7346aa796283a1e5c1d84f399ea0dfd7218424e - languageName: node - linkType: hard - "@aws-sdk/s3-request-presigner@npm:^3.919.0": version: 3.1007.0 resolution: "@aws-sdk/s3-request-presigner@npm:3.1007.0" @@ -11625,21 +11318,6 @@ __metadata: languageName: node linkType: hard -"@aws-sdk/token-providers@npm:3.1015.0": - version: 3.1015.0 - resolution: "@aws-sdk/token-providers@npm:3.1015.0" - dependencies: - "@aws-sdk/core": ^3.973.24 - "@aws-sdk/nested-clients": ^3.996.14 - "@aws-sdk/types": ^3.973.6 - "@smithy/property-provider": ^4.2.12 - "@smithy/shared-ini-file-loader": ^4.4.7 - "@smithy/types": ^4.13.1 - tslib: ^2.6.2 - checksum: fa32c25e5e6fcf875ba5d59de4549663fbde78ee46a22f6ee734e18054c6efac6e321eb7a6657b0135a36b1916b76a58d670af27e226b17d28b07356677bfea6 - languageName: node - linkType: hard - "@aws-sdk/token-providers@npm:3.1021.0": version: 3.1021.0 resolution: "@aws-sdk/token-providers@npm:3.1021.0" @@ -12449,25 +12127,6 @@ __metadata: languageName: node linkType: hard -"@aws-sdk/util-user-agent-node@npm:^3.973.11": - version: 3.973.11 - resolution: "@aws-sdk/util-user-agent-node@npm:3.973.11" - dependencies: - "@aws-sdk/middleware-user-agent": ^3.972.25 - "@aws-sdk/types": ^3.973.6 - "@smithy/node-config-provider": ^4.3.12 - "@smithy/types": ^4.13.1 - "@smithy/util-config-provider": ^4.2.2 - tslib: ^2.6.2 - peerDependencies: - aws-crt: ">=1.0.0" - peerDependenciesMeta: - aws-crt: - optional: true - checksum: 3ef8bafaaa6e3b989527b196abeef983a0c1c4177257d77dd6a034105288bc88cf256edfacac41abd3bf84f2a14312ef41a114883df5c04e4ad62f84d4eb1cd0 - languageName: node - linkType: hard - "@aws-sdk/util-user-agent-node@npm:^3.973.14": version: 3.973.14 resolution: "@aws-sdk/util-user-agent-node@npm:3.973.14" @@ -12588,17 +12247,6 @@ __metadata: languageName: node linkType: hard -"@aws-sdk/xml-builder@npm:^3.972.15": - version: 3.972.15 - resolution: "@aws-sdk/xml-builder@npm:3.972.15" - dependencies: - "@smithy/types": ^4.13.1 - fast-xml-parser: 5.5.8 - tslib: ^2.6.2 - checksum: e1185fd46da270e717c63c67314a6e65e6fb599c5fe40ef4969a230e377003338119dcc11921b1602314e5f0578a5eec79f0cea8c38200b046d2401ae2001a21 - languageName: node - linkType: hard - "@aws-sdk/xml-builder@npm:^3.972.16": version: 3.972.16 resolution: "@aws-sdk/xml-builder@npm:3.972.16" @@ -19836,24 +19484,6 @@ __metadata: languageName: node linkType: hard -"@smithy/core@npm:^3.23.12": - version: 3.23.12 - resolution: "@smithy/core@npm:3.23.12" - dependencies: - "@smithy/protocol-http": ^5.3.12 - "@smithy/types": ^4.13.1 - "@smithy/url-parser": ^4.2.12 - "@smithy/util-base64": ^4.3.2 - "@smithy/util-body-length-browser": ^4.2.2 - "@smithy/util-middleware": ^4.2.12 - "@smithy/util-stream": ^4.5.20 - "@smithy/util-utf8": ^4.2.2 - "@smithy/uuid": ^1.1.2 - tslib: ^2.6.2 - checksum: 48add70de8829d8fa4dd62e808e5850dd60e7dcd4f08f2720f573479de1f88a688b1268dc6158476549a9d3e1510df445d3f4b8768f5b2d32fc2fbe3ee3feb65 - languageName: node - linkType: hard - "@smithy/core@npm:^3.23.13": version: 3.23.13 resolution: "@smithy/core@npm:3.23.13" @@ -20276,22 +19906,6 @@ __metadata: languageName: node linkType: hard -"@smithy/middleware-endpoint@npm:^4.4.27": - version: 4.4.27 - resolution: "@smithy/middleware-endpoint@npm:4.4.27" - dependencies: - "@smithy/core": ^3.23.12 - "@smithy/middleware-serde": ^4.2.15 - "@smithy/node-config-provider": ^4.3.12 - "@smithy/shared-ini-file-loader": ^4.4.7 - "@smithy/types": ^4.13.1 - "@smithy/url-parser": ^4.2.12 - "@smithy/util-middleware": ^4.2.12 - tslib: ^2.6.2 - checksum: 630dacce0adf4d6b04727bfb53235d7439aef75b1afe7aee1468a42f26b777fae9fb53df5b7e502ba44d06ba060d5dc635ff6e82383a1a5a1464a6c63dbbf0ca - languageName: node - linkType: hard - "@smithy/middleware-endpoint@npm:^4.4.28": version: 4.4.28 resolution: "@smithy/middleware-endpoint@npm:4.4.28" @@ -20342,23 +19956,6 @@ __metadata: languageName: node linkType: hard -"@smithy/middleware-retry@npm:^4.4.44": - version: 4.4.44 - resolution: "@smithy/middleware-retry@npm:4.4.44" - dependencies: - "@smithy/node-config-provider": ^4.3.12 - "@smithy/protocol-http": ^5.3.12 - "@smithy/service-error-classification": ^4.2.12 - "@smithy/smithy-client": ^4.12.7 - "@smithy/types": ^4.13.1 - "@smithy/util-middleware": ^4.2.12 - "@smithy/util-retry": ^4.2.12 - "@smithy/uuid": ^1.1.2 - tslib: ^2.6.2 - checksum: 389fc3425b37d0223e782f8c0eb4f6900f7f76c42c658b59fbd4efc73102b4f93ef836b08d70af23dbd2ce4e9404f875d8e66f84ccf80d115cfaf4edfc331e18 - languageName: node - linkType: hard - "@smithy/middleware-retry@npm:^4.4.46": version: 4.4.46 resolution: "@smithy/middleware-retry@npm:4.4.46" @@ -20397,18 +19994,6 @@ __metadata: languageName: node linkType: hard -"@smithy/middleware-serde@npm:^4.2.15": - version: 4.2.15 - resolution: "@smithy/middleware-serde@npm:4.2.15" - dependencies: - "@smithy/core": ^3.23.12 - "@smithy/protocol-http": ^5.3.12 - "@smithy/types": ^4.13.1 - tslib: ^2.6.2 - checksum: 651c775eafba0cea9fe67e9d24afc73d31d371949b9bdfb109aa242f9899fb8334504e37b00a6b51e6f9f522daa68c89fb7cc451e50faa4cf8990d23a2470c67 - languageName: node - linkType: hard - "@smithy/middleware-serde@npm:^4.2.16": version: 4.2.16 resolution: "@smithy/middleware-serde@npm:4.2.16" @@ -20796,21 +20381,6 @@ __metadata: languageName: node linkType: hard -"@smithy/smithy-client@npm:^4.12.7": - version: 4.12.7 - resolution: "@smithy/smithy-client@npm:4.12.7" - dependencies: - "@smithy/core": ^3.23.12 - "@smithy/middleware-endpoint": ^4.4.27 - "@smithy/middleware-stack": ^4.2.12 - "@smithy/protocol-http": ^5.3.12 - "@smithy/types": ^4.13.1 - "@smithy/util-stream": ^4.5.20 - tslib: ^2.6.2 - checksum: 7acb0c314bff3adff4625fe7cef773c9205d66debbef116972f88fd1456974944cb1f123c0fd6c5b3489640d4d5de370b0bdf70e9d7b7a63ff57bf6de81ceb4c - languageName: node - linkType: hard - "@smithy/smithy-client@npm:^4.12.8": version: 4.12.8 resolution: "@smithy/smithy-client@npm:4.12.8" @@ -21035,18 +20605,6 @@ __metadata: languageName: node linkType: hard -"@smithy/util-defaults-mode-browser@npm:^4.3.43": - version: 4.3.43 - resolution: "@smithy/util-defaults-mode-browser@npm:4.3.43" - dependencies: - "@smithy/property-provider": ^4.2.12 - "@smithy/smithy-client": ^4.12.7 - "@smithy/types": ^4.13.1 - tslib: ^2.6.2 - checksum: cac43b7057ae43005208943675880458a4a974d6c2ee25f0846ffc6fb270503d051dce25c14bed5665f7d32aa2dd4ff6257c8fe7603807438ce0c1522002c9c0 - languageName: node - linkType: hard - "@smithy/util-defaults-mode-browser@npm:^4.3.44": version: 4.3.44 resolution: "@smithy/util-defaults-mode-browser@npm:4.3.44" @@ -21089,21 +20647,6 @@ __metadata: languageName: node linkType: hard -"@smithy/util-defaults-mode-node@npm:^4.2.47": - version: 4.2.47 - resolution: "@smithy/util-defaults-mode-node@npm:4.2.47" - dependencies: - "@smithy/config-resolver": ^4.4.13 - "@smithy/credential-provider-imds": ^4.2.12 - "@smithy/node-config-provider": ^4.3.12 - "@smithy/property-provider": ^4.2.12 - "@smithy/smithy-client": ^4.12.7 - "@smithy/types": ^4.13.1 - tslib: ^2.6.2 - checksum: 912b5fe1566534b1549f8ff10d222139ef8ef0821cbf89c6975629ce043c379c80ac83cf339977bac62e368ff597892e064f2e765ef4887cf8cd170e8b7dce43 - languageName: node - linkType: hard - "@smithy/util-defaults-mode-node@npm:^4.2.48": version: 4.2.48 resolution: "@smithy/util-defaults-mode-node@npm:4.2.48" @@ -21231,17 +20774,6 @@ __metadata: languageName: node linkType: hard -"@smithy/util-retry@npm:^4.2.12": - version: 4.2.12 - resolution: "@smithy/util-retry@npm:4.2.12" - dependencies: - "@smithy/service-error-classification": ^4.2.12 - "@smithy/types": ^4.13.1 - tslib: ^2.6.2 - checksum: 1a8bff8da85d6637310286a3a52f557622cc9bb9dc75d9770640701a9565a3a995aeb34ed68acf333f60bb871dc49e9db196c5a35913b33944e02811f3cfcca2 - languageName: node - linkType: hard - "@smithy/util-retry@npm:^4.2.13": version: 4.2.13 resolution: "@smithy/util-retry@npm:4.2.13" @@ -21285,7 +20817,7 @@ __metadata: languageName: node linkType: hard -"@smithy/util-stream@npm:^4.5.10, @smithy/util-stream@npm:^4.5.20": +"@smithy/util-stream@npm:^4.5.10": version: 4.5.20 resolution: "@smithy/util-stream@npm:4.5.20" dependencies: